conductor-setup/v3.13.6/build/static/js/main.18fa60f5.js

3 lines
2.1 MiB

/*! For license information please see main.18fa60f5.js.LICENSE.txt */
!function(){var e={61553:function(e,t){t.black="#050505",t.blackLight="rgba(5,5,5,0.7)",t.blackXLight="rgba(5,5,5,0.4)",t.blackXXLight="rgba(5,5,5,0.1)",t.blue00="#00101f",t.blue01="#05192b",t.blue02="#092743",t.blue03="#0d365c",t.blue04="#12487a",t.blue05="#165b99",t.blue06="#1b6fb9",t.blue07="#1f83db",t.blue08="#5995e1",t.blue09="#7ea7e7",t.blue10="#9dbaec",t.blue11="#bacdf2",t.blue12="#d2def6",t.blue13="#eaf0fb",t.blue14="#f7fafd",t.blueLight="rgba(31,131,219,0.7)",t.blueXLight="rgba(31,131,219,0.4)",t.blueXXLight="rgba(31,131,219,0.1)",t.cyan00="#001b1e",t.cyan01="#042529",t.cyan02="#08373d",t.cyan03="#0f4a52",t.cyan04="#17616c",t.cyan05="#207986",t.cyan06="#2991a2",t.cyan07="#32abbe",t.cyan08="#5fb8c8",t.cyan09="#80c5d2",t.cyan10="#9ed2dc",t.cyan11="#badfe6",t.cyan12="#d2eaef",t.cyan13="#eaf5f8",t.cyan14="#f7fcfd",t.cyanLight="rgba(50,171,190,0.7)",t.cyanXLight="rgba(50,171,190,0.4)",t.cyanXXLight="rgba(50,171,190,0.1)",t.grape00="#18001f",t.grape01="#200b2a",t.grape02="#33143f",t.grape03="#481d56",t.grape04="#602871",t.grape05="#7a338d",t.grape06="#943eab",t.grape07="#b04ac9",t.grape08="#be68d2",t.grape09="#cb84da",t.grape10="#d89fe3",t.grape11="#e4baeb",t.grape12="#edd2f2",t.grape13="#f7e9f9",t.grape14="#fcf7fd",t.grapeLight="rgba(176,74,201,0.7)",t.grapeXLight="rgba(176,74,201,0.4)",t.grapeXXLight="rgba(176,74,201,0.1)",t.gray00="#0f0f0f",t.gray01="#181818",t.gray02="#242424",t.gray03="#323232",t.gray04="#424242",t.gray05="#535353",t.gray06="#646464",t.gray07="#767676",t.gray08="#8a8a8a",t.gray09="#9e9e9e",t.gray10="#b3b3b3",t.gray11="#c8c8c8",t.gray12="#dbdbdb",t.gray13="#efefef",t.gray14="#fafafa",t.grayLight="rgba(118,118,118,0.7)",t.grayXLight="rgba(118,118,118,0.4)",t.grayXXLight="rgba(118,118,118,0.1)",t.green00="#121e00",t.green01="#192a07",t.green02="#28400f",t.green03="#385714",t.green04="#4c731a",t.green05="#61911f",t.green06="#76af25",t.green07="#8ccf2a",t.green08="#a1d753",t.green09="#b4de74",t.green10="#c6e593",t.green11="#d7edb2",t.green12="#e5f3cd",t.green13="#f3f9e8",t.green14="#fbfdf7",t.greenLight="rgba(140,207,42,0.7)",t.greenXLight="rgba(140,207,42,0.4)",t.greenXXLight="rgba(140,207,42,0.1)",t.indigo00="#00071f",t.indigo01="#07122c",t.indigo02="#0f1e44",t.indigo03="#192b5e",t.indigo04="#24397e",t.indigo05="#30499f",t.indigo06="#3c59c1",t.indigo07="#4969e4",t.indigo08="#6f7ee9",t.indigo09="#8e94ed",t.indigo10="#a9abf1",t.indigo11="#c2c2f5",t.indigo12="#d7d7f8",t.indigo13="#ebedfb",t.indigo14="#f7f9fd",t.indigoLight="rgba(73,105,228,0.7)",t.indigoXLight="rgba(73,105,228,0.4)",t.indigoXXLight="rgba(73,105,228,0.1)",t.lime00="#001f06",t.lime01="#05290f",t.lime02="#0c3c19",t.lime03="#145124",t.lime04="#1f6930",t.lime05="#2a833c",t.lime06="#359e4a",t.lime07="#41b957",t.lime08="#65c470",t.lime09="#84d08a",t.lime10="#a0dba3",t.lime11="#bbe5bd",t.lime12="#d2efd4",t.lime13="#e9f8eb",t.lime14="#f6fdf8",t.limeLight="rgba(65,185,87,0.7)",t.limeXLight="rgba(65,185,87,0.4)",t.limeXXLight="rgba(65,185,87,0.1)",t.orange00="#1e0c00",t.orange01="#2b1505",t.orange02="#46210d",t.orange03="#622e10",t.orange04="#853d12",t.orange05="#a94d14",t.orange06="#cf5d14",t.orange07="#f66e13",t.orange08="#fd853f",t.orange09="#ff9c62",t.orange10="#ffb284",t.orange11="#ffc8a7",t.orange12="#ffdbc5",t.orange13="#ffeee5",t.orange14="#fdf9f7",t.orangeLight="rgba(246,110,19,0.7)",t.orangeXLight="rgba(246,110,19,0.4)",t.orangeXXLight="rgba(246,110,19,0.1)",t.pear00="#1e1d00",t.pear01="#2a2a07",t.pear02="#42410e",t.pear03="#5d5a12",t.pear04="#7c7815",t.pear05="#9d9718",t.pear06="#bfb71b",t.pear07="#e3d91c",t.pear08="#eade4f",t.pear09="#f0e472",t.pear10="#f6e993",t.pear11="#f9efb2",t.pear12="#fcf4cd",t.pear13="#fdf9e8",t.pear14="#fdfcf7",t.pearLight="rgba(227,217,28,0.7)",t.pearXLight="rgba(227,217,28,0.4)",t.pearXXLight="rgba(227,217,28,0.1)",t.pink00="#1e000a",t.pink01="#280a14",t.pink02="#3f1221",t.pink03="#58192f",t.pink04="#75223f",t.pink05="#942b50",t.pink06="#b53461",t.pink07="#d63d73",t.pink08="#e06187",t.pink09="#e87f9c",t.pink10="#f09cb1",t.pink11="#f5b8c6",t.pink12="#f9d1da",t.pink13="#fce9ee",t.pink14="#fdf7f9",t.pinkLight="rgba(214,61,115,0.7)",t.pinkXLight="rgba(214,61,115,0.4)",t.pinkXXLight="rgba(214,61,115,0.1)",t.red00="#1e0002",t.red01="#2a0805",t.red02="#420e0b",t.red03="#5d110f",t.red04="#7d1311",t.red05="#9e1313",t.red06="#c11014",t.red07="#e50914",t.red08="#f04c38",t.red09="#f9715a",t.red10="#ff927d",t.red11="#ffb2a2",t.red12="#ffcdc3",t.red13="#ffe8e4",t.red14="#fdf7f8",t.redLight="rgba(229,9,20,0.7)",t.redXLight="rgba(229,9,20,0.4)",t.redXXLight="rgba(229,9,20,0.1)",t.violet00="#08001e",t.violet01="#110b2b",t.violet02="#1d1643",t.violet03="#2a1f5d",t.violet04="#3b297c",t.violet05="#4c349d",t.violet06="#5e3fbf",t.violet07="#714be2",t.violet08="#8c66e7",t.violet09="#a481ec",t.violet10="#ba9cf1",t.violet11="#ceb8f5",t.violet12="#dfd0f8",t.violet13="#f0e9fb",t.violet14="#f9f7fd",t.violetLight="rgba(113,75,226,0.7)",t.violetXLight="rgba(113,75,226,0.4)",t.violetXXLight="rgba(113,75,226,0.1)",t.white="#FFFFFF",t.whiteLight="rgba(255,255,255,0.7)",t.whiteXLight="rgba(255,255,255,0.4)",t.whiteXXLight="rgba(255,255,255,0.1)",t.yellow00="#1e1400",t.yellow01="#2c1e06",t.yellow02="#47300d",t.yellow03="#64430f",t.yellow04="#875a11",t.yellow05="#ac7210",t.yellow06="#d38a0c",t.yellow07="#fba404",t.yellow08="#ffb141",t.yellow09="#ffbf66",t.yellow10="#ffcd89",t.yellow11="#ffdbaa",t.yellow12="#ffe7c8",t.yellow13="#fff4e6",t.yellow14="#fdfbf7",t.yellowLight="rgba(251,164,4,0.7)",t.yellowXLight="rgba(251,164,4,0.4)",t.yellowXXLight="rgba(251,164,4,0.1)"},13108:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return c},_4:function(){return l},_j:function(){return f},mi:function(){return s}});var r=n(37483);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),a({type:l,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},89688:function(e,t,n){"use strict";n.d(t,{Z:function(){return X}});var r=n(45987),i=n(81534),o=n(87462),a=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,u=e.step,l=void 0===u?5:u,c=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-l/100).concat(s,")")}return(0,o.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(s,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}var u=n(4942);function l(e,t,n){var r;return(0,o.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,o.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,u.Z)({},e.up("sm"),(0,o.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,u.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,u.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(37483),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(13108),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,i):"dark"===t&&(e.dark=(0,b._j)(e.main,o)))}function k(e){var t=e.primary,n=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,a=e.secondary,s=void 0===a?{light:p.A200,main:p.A400,dark:p.A700}:a,u=e.error,l=void 0===u?{light:m[300],main:m[500],dark:m[700]}:u,k=e.warning,S=void 0===k?{light:v[300],main:v[500],dark:v[700]}:k,M=e.info,T=void 0===M?{light:g[300],main:g[500],dark:g[700]}:M,E=e.success,C=void 0===E?{light:y[300],main:y[500],dark:y[700]}:E,O=e.type,D=void 0===O?"light":O,N=e.contrastThreshold,j=void 0===N?3:N,A=e.tonalOffset,P=void 0===A?.2:A,R=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,b.mi)(e,x.text.primary)>=j?x.text.primary:w.text.primary}var F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!==typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return _(e,"light",n,P),_(e,"dark",r,P),e.contrastText||(e.contrastText=I(e.main)),e},L={dark:x,light:w};return(0,i.Z)((0,o.Z)({common:f,type:D,primary:F(n),secondary:F(s,"A400","A200","A700"),error:F(l),warning:F(S),info:F(T),success:F(C),grey:d,contrastThreshold:j,getContrastText:I,augmentColor:F,tonalOffset:P},L[D]),R)}function S(e){return Math.round(1e5*e)/1e5}function M(e){return S(e)}var T={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?E:a,u=n.fontSize,l=void 0===u?14:u,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,h=void 0===d?400:d,p=n.fontWeightMedium,m=void 0===p?500:p,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,_=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var k=l/14,C=x||function(e){return"".concat(e/b*k,"rem")},O=function(e,t,n,r,i){return(0,o.Z)({fontFamily:s,fontWeight:e,fontSize:C(t),lineHeight:n},s===E?{letterSpacing:"".concat(S(r/t),"em")}:{},i,w)},D={h1:O(f,96,1.167,-1.5),h2:O(f,60,1.2,-.5),h3:O(h,48,1.167,0),h4:O(h,34,1.235,.25),h5:O(h,24,1.334,0),h6:O(m,20,1.6,.15),subtitle1:O(h,16,1.75,.15),subtitle2:O(m,14,1.57,.1),body1:O(h,16,1.5,.15),body2:O(h,14,1.43,.15),button:O(m,14,1.75,.4,T),caption:O(h,12,1.66,.4),overline:O(h,12,2.66,1,T)};return(0,i.Z)((0,o.Z)({htmlFontSize:b,pxToRem:C,round:M,fontFamily:s,fontSize:l,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:g},D),_,{clone:!1})}function O(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var D=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)],N={borderRadius:4},j=n(70885),A=n(71002),P={xs:0,sm:600,md:960,lg:1280,xl:1920},R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(P[e],"px)")}};var I=function(e,t){return t?(0,i.Z)(e,t,{clone:!1}):e};var F={m:"margin",p:"padding"},L={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},z={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!z[e])return[e];e=z[e]}var t=e.split(""),n=(0,j.Z)(t,2),r=n[0],i=n[1],o=F[r],a=L[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),Z=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function W(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function Y(e){var t=W(e.theme);return Object.keys(e).map((function(n){if(-1===Z.indexOf(n))return null;var r=H(B(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===(0,A.Z)(t)){var i=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(I,{})}Y.propTypes={},Y.filterProps=Z;function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=W({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var V=n(10812),q=n(19535);function G(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.mixins,a=void 0===o?{}:o,u=e.palette,c=void 0===u?{}:u,f=e.spacing,d=e.typography,h=void 0===d?{}:d,p=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=k(c),v=s(n),g=U(f),y=(0,i.Z)({breakpoints:v,direction:"ltr",mixins:l(v,g,a),overrides:{},palette:m,props:{},shadows:D,typography:C(m,h),spacing:g,shape:N,transitions:V.ZP,zIndex:q.Z},p),b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce((function(e,t){return(0,i.Z)(e,t)}),y)}var X=G},40663:function(e,t,n){"use strict";var r=(0,n(89688).Z)();t.Z=r},10812:function(e,t,n){"use strict";n.d(t,{x9:function(){return o}});var r=n(45987),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,u=t.easing,l=void 0===u?i.easeInOut:u,c=t.delay,f=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(l," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},38317:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),i=n(45987),o=n(72791),a=n(62110),s=n.n(a),u=n(63401),l=n(70794),c=n(78444),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,h=t.name,p=(0,i.Z)(t,["defaultTheme","withTheme","name"]);var m=h,v=(0,u.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:h||n.displayName,classNamePrefix:m},p)),g=o.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,f=(0,i.Z)(e,["classes","innerRef"]),p=v((0,r.Z)({},n.defaultProps,e)),m=f;return("string"===typeof h||d)&&(s=(0,c.Z)()||a,h&&(m=(0,l.Z)({theme:s,name:h,props:f})),d&&!m.theme&&(m.theme=s)),o.createElement(n,(0,r.Z)({ref:u||t,classes:p},m))}));return s()(g,n),g}},d=n(40663);var h=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},19535:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},91122:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37483);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},37545:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},28499:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(87462),i=n(72791),o=n(45987),a=n(28182),s=n(38317),u=n(91122),l=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.color,f=void 0===c?"inherit":c,d=e.component,h=void 0===d?"svg":d,p=e.fontSize,m=void 0===p?"medium":p,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,o.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,(0,r.Z)({className:(0,a.Z)(s.root,l,"inherit"!==f&&s["color".concat((0,u.Z)(f))],"default"!==m&&"medium"!==m&&s["fontSize".concat((0,u.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},w),n,g?i.createElement("title",null,g):null)}));l.muiName="SvgIcon";var c=(0,s.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l);function f(e,t){var n=function(t,n){return i.createElement(c,(0,r.Z)({ref:n},t),e)};return n.muiName=c.muiName,i.memo(i.forwardRef(n))}},50503:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},87156:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return i.Z},createSvgIcon:function(){return o.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return l.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return h},useControlled:function(){return p.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return y.Z}});var r=n(91122),i=n(37545),o=n(28499),a=n(50503);function s(e,t){return function(){return null}}var u=n(43375),l=n(54667),c=n(37636);function f(e){return function(){return null}}var d=n(21565);function h(e,t,n,r,i){return null}var p=n(92497),m=n(72216),v=n(69806),g=n(22939),y=n(81175)},43375:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(72791);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},54667:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},37636:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(54667);function i(e){return(0,r.Z)(e).defaultView||window}},21565:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},22939:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(72791);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},92497:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(72791);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},72216:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(72791),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},69806:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(72791),i=n(21565);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.Z)(e,n),(0,i.Z)(t,n)}}),[e,t])}},81175:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(72791),i=n(54164),o=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function f(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function p(){return{isFocusVisible:d,onBlurVisible:h,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},63459:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=a},28237:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.Z=a},54241:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");t.Z=a},30014:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},57407:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=a},23711:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");t.Z=a},85429:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.Z=a},97595:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},92809:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.Z=a},9557:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z"}),"Flare");t.Z=a},33352:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t.Z=a},14684:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");t.Z=a},79112:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");t.Z=a},35456:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");t.Z=a},72850:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"Pause");t.Z=a},23824:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M8 5v14l11-7z"}),"PlayArrow");t.Z=a},59340:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"}),"PlaylistAdd");t.Z=a},7553:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"}),"Redo");t.Z=a},66709:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");t.Z=a},40587:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=a},58388:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");t.Z=a},13880:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.Z=a},37714:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M6 6h12v12H6z"}),"Stop");t.Z=a},76441:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"}),"ViewColumn");t.Z=a},59707:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement(o.Fragment,null,o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),o.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})),"ZoomIn");t.Z=a},30836:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"}),"ZoomOut");t.Z=a},86183:function(e,t,n){"use strict";var r=n(64836),i=n(75263);t.Z=void 0;var o=i(n(72791)),a=(0,r(n(44894)).default)(o.createElement("path",{d:"M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3h-6zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3v6zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6h6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 2.89 2.87L15 21h6v-6z"}),"ZoomOutMap");t.Z=a},44894:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(87156)},79316:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},70794:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{Z:function(){return r}})},63401:function(e,t,n){"use strict";n.d(t,{Z:function(){return bn}});var r=n(45987),i=n(87462),o=n(72791),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},s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType,u=n(43144),l=n(94578),c=n(97326),f=n(63366),d={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==d)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function p(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=h(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},v=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=m(e[r]," ");else n=m(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function g(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function y(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function b(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=g(n),u=s.linebreak,l=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var f=a[c];for(var d in f){var h=f[d];null!=h&&(r&&(r+=u),r+=y(d+":"+l+v(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=u),r+=y(p+":"+l+v(m)+";",o))}for(var b in t){var w=t[b];null!=w&&"fallbacks"!==b&&(r&&(r+=u),r+=y(b+":"+l+v(w)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+u+r+u),y(""+e+l+"{"+r,--o)+y("}",o)):r}var w=/([[\].#*$><+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,_=function(e){return x?x(e):e.replace(w,"\\$1")},k=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),S=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,u=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=u((0,c.Z)((0,c.Z)(i)),s),i.selectorText="."+_(i.id)),i}(0,l.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},(0,u.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(k),M={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new S(e,t,n)}},T={indent:1,children:!0},E=/@([\w-]+)/,C=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(E);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new K((0,i.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=T);var t=g(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),O=/@media|@supports\s+/,D={onCreateRule:function(e,t,n){return O.test(e)?new C(e,t,n):null}},N={indent:1,children:!0},j=/@keyframes\s+([\w-]+)/,A=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(j);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:_(s(this,a)),this.rules=new K((0,i.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,i.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=N);var t=g(e).linebreak;if(null==e.indent&&(e.indent=N.indent),null==e.children&&(e.children=N.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),P=/@keyframes\s+/,R=/\$([\w-]+)/g,I=function(e,t){return"string"===typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},F=function(e,t,n){var r=e[t],i=I(r,n);i!==r&&(e[t]=i)},L={onCreateRule:function(e,t,n){return"string"===typeof e&&P.test(e)?new A(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&F(e,"animation-name",n.keyframes),"animation"in e&&F(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return I(e,r.keyframes);default:return e}}},z=function(e){function t(){return e.apply(this,arguments)||this}return(0,l.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(k),B={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new z(e,t,n):null}},Z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=g(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=b(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return b(this.at,this.style,e)},e}(),W=/@font-face/,H={onCreateRule:function(e,t,n){return W.test(e)?new Z(e,t,n):null}},Y=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return b(this.key,this.style,e)},e}(),U={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Y(e,t,n):null}},V=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),q={"@charset":!0,"@import":!0,"@namespace":!0},G={onCreateRule:function(e,t,n){return e in q?new V(e,t,n):null}},X=[M,D,L,B,H,U,G],$={process:!0},Q={force:!0,process:!0},K=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,a=r.sheet,s=r.jss,u=r.Renderer,l=r.generateId,c=r.scoped,f=(0,i.Z)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:u,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+_(this.classes[d]));var h=p(d,t,f);if(!h)return null;this.register(h);var m=void 0===f.index?this.index.length:f.index;return this.index.splice(m,0,h),h},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==o&&(a=(0,i.Z)({},n,{index:o})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof S?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof A&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof S?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof A&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=$);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var u in o.onProcessStyle(t.style,t,a),t.style){var l=t.style[u];l!==s[u]&&t.prop(u,l,Q)}for(var c in s){var f=t.style[c],d=s[c];null==f&&f!==d&&t.prop(c,null,Q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=g(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,i.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new K(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,f.Z)(t,["attached"]),i=g(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},(0,u.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ne=new te,re="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),ie="2f1acc6c3a606b082e5eef5e54414ffb";null==re[ie]&&(re[ie]=0);var oe=re[ie]++,ae=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+oe+i+t:o+n.key+"-"+oe+(i?"-"+i:"")+"-"+t}},se=function(e){var t;return function(){return t||(t=e()),t}},ue=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},le=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=v(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(i){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},fe=function(e,t){return e.selectorText=t,e.selectorText===t},de=se((function(){return document.querySelector("head")}));function he(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=de(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var pe=se((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),me=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},ve=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ge=function(){function e(e){this.getPropertyValue=ue,this.setProperty=le,this.removeProperty=ce,this.setSelector=fe,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=pe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=he(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else de().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=ve(n,t);if(!1===(i=me(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=ve(n,t),u=me(n,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ye=0,be=function(){function e(e){this.id=ye++,this.version="10.9.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ae,Renderer:s?ge:null,plugins:[]},this.generateId=ae({minify:!1});for(var t=0;t<X.length;t++)this.plugins.use(X[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,i.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===ne.index?0:ne.index+1);var r=new J(e,(0,i.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ne.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,i.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=p(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),we=function(e){return new be(e)},xe="object"===typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=_e(r);o&&(t||(t={}),t[n]=o)}}return t}we();var ke=n(25352),Se={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Me=Se,Te=n(78444),Ee=n(79316),Ce=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Oe=Date.now(),De="fnValues"+Oe,Ne="fnStyle"+ ++Oe,je=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=p(e,{},n);return r[Ne]=t,r},onProcessStyle:function(e,t){if(De in t||Ne in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[De]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ne];o&&(i.style=o(e)||{});var a=i[De];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Ae="@global",Pe="@global ",Re=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ae,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new K((0,i.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ie=function(){function e(e,t,n){this.type="global",this.at=Ae,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Pe.length);this.rule=n.jss.createRule(r,t,(0,i.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Fe=/\s*,\s*/g;function Le(e,t){for(var n=e.split(Fe),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var ze=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ae)return new Re(e,t,n);if("@"===e[0]&&e.substr(0,Pe.length)===Pe)return new Ie(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Ae]:null;if(o){for(var a in o)t.addRule(a,o[a],(0,i.Z)({},n,{selector:Le(a,e.selector)}));delete r[Ae]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Ae.length)===Ae){var a=Le(o.substr(Ae.length),e.selector);t.addRule(a,r[o],(0,i.Z)({},n,{selector:a})),delete r[o]}}(e,t))}}},Be=/\s*,\s*/g,Ze=/&/g,We=/\$([\w-]+)/g;var He=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Be),r=e.split(Be),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var u=r[s];i&&(i+=", "),i+=-1!==u.indexOf("&")?u.replace(Ze,a):a+" "+u}return i}function n(e,t,n){if(n)return(0,i.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,i.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var s,u,l=o,c=l.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),h="@"===f[0];if(d||h){if(s=n(l,c,s),d){var p=t(f,l.selector);u||(u=e(c,a)),p=p.replace(We,u);var m=l.key+"-"+f;"replaceRule"in c?c.replaceRule(m,r[f],(0,i.Z)({},s,{selector:p})):c.addRule(m,r[f],(0,i.Z)({},s,{selector:p}))}else h&&c.addRule(f,{},s).addRule(l.key,r[f],{selector:l.selector});delete r[f]}}return r}}},Ye=/[A-Z]/g,Ue=/^ms-/,Ve={};function qe(e){return"-"+e.toLowerCase()}var Ge=function(e){if(Ve.hasOwnProperty(e))return Ve[e];var t=e.replace(Ye,qe);return Ve[e]=Ue.test(t)?"-"+t:t};function Xe(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Ge(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Xe):t.fallbacks=Xe(e.fallbacks)),t}var $e=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Xe(e[t]);return e}return Xe(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Ge(t);return t===r?e:(n.prop(r,e),null)}}},Qe=xe&&CSS?CSS.px:"px",Ke=xe&&CSS?CSS.ms:"ms",Je=xe&&CSS?CSS.percent:"%";function et(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var tt=et({"animation-delay":Ke,"animation-duration":Ke,"background-position":Qe,"background-position-x":Qe,"background-position-y":Qe,"background-size":Qe,border:Qe,"border-bottom":Qe,"border-bottom-left-radius":Qe,"border-bottom-right-radius":Qe,"border-bottom-width":Qe,"border-left":Qe,"border-left-width":Qe,"border-radius":Qe,"border-right":Qe,"border-right-width":Qe,"border-top":Qe,"border-top-left-radius":Qe,"border-top-right-radius":Qe,"border-top-width":Qe,"border-width":Qe,"border-block":Qe,"border-block-end":Qe,"border-block-end-width":Qe,"border-block-start":Qe,"border-block-start-width":Qe,"border-block-width":Qe,"border-inline":Qe,"border-inline-end":Qe,"border-inline-end-width":Qe,"border-inline-start":Qe,"border-inline-start-width":Qe,"border-inline-width":Qe,"border-start-start-radius":Qe,"border-start-end-radius":Qe,"border-end-start-radius":Qe,"border-end-end-radius":Qe,margin:Qe,"margin-bottom":Qe,"margin-left":Qe,"margin-right":Qe,"margin-top":Qe,"margin-block":Qe,"margin-block-end":Qe,"margin-block-start":Qe,"margin-inline":Qe,"margin-inline-end":Qe,"margin-inline-start":Qe,padding:Qe,"padding-bottom":Qe,"padding-left":Qe,"padding-right":Qe,"padding-top":Qe,"padding-block":Qe,"padding-block-end":Qe,"padding-block-start":Qe,"padding-inline":Qe,"padding-inline-end":Qe,"padding-inline-start":Qe,"mask-position-x":Qe,"mask-position-y":Qe,"mask-size":Qe,height:Qe,width:Qe,"min-height":Qe,"max-height":Qe,"min-width":Qe,"max-width":Qe,bottom:Qe,left:Qe,top:Qe,right:Qe,inset:Qe,"inset-block":Qe,"inset-block-end":Qe,"inset-block-start":Qe,"inset-inline":Qe,"inset-inline-end":Qe,"inset-inline-start":Qe,"box-shadow":Qe,"text-shadow":Qe,"column-gap":Qe,"column-rule":Qe,"column-rule-width":Qe,"column-width":Qe,"font-size":Qe,"font-size-delta":Qe,"letter-spacing":Qe,"text-decoration-thickness":Qe,"text-indent":Qe,"text-stroke":Qe,"text-stroke-width":Qe,"word-spacing":Qe,motion:Qe,"motion-offset":Qe,outline:Qe,"outline-offset":Qe,"outline-width":Qe,perspective:Qe,"perspective-origin-x":Je,"perspective-origin-y":Je,"transform-origin":Je,"transform-origin-x":Je,"transform-origin-y":Je,"transform-origin-z":Je,"transition-delay":Ke,"transition-duration":Ke,"vertical-align":Qe,"flex-basis":Qe,"shape-margin":Qe,size:Qe,gap:Qe,grid:Qe,"grid-gap":Qe,"row-gap":Qe,"grid-row-gap":Qe,"grid-column-gap":Qe,"grid-template-rows":Qe,"grid-template-columns":Qe,"grid-auto-rows":Qe,"grid-auto-columns":Qe,"box-shadow-x":Qe,"box-shadow-y":Qe,"box-shadow-blur":Qe,"box-shadow-spread":Qe,"font-line-height":Qe,"text-shadow-x":Qe,"text-shadow-y":Qe,"text-shadow-blur":Qe});function nt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=nt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=nt(i,t[i],n);else for(var o in t)t[o]=nt(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||tt[e];return!a||0===t&&a===Qe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var rt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=nt(r,e[r],t);return e},onChangeValue:function(e,n){return nt(n,e,t)}}},it=n(42982),ot="",at="",st="",ut="",lt=s&&"ontouchstart"in document.documentElement;if(s){var ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ft=document.createElement("p").style;for(var dt in ct)if(dt+"Transform"in ft){ot=dt,at=ct[dt];break}"Webkit"===ot&&"msHyphens"in ft&&(ot="ms",at=ct.ms,ut="edge"),"Webkit"===ot&&"-apple-trailing-word"in ft&&(st="apple")}var ht=ot,pt=at,mt=st,vt=ut,gt=lt;var yt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ht?"-webkit-"+e:pt+e)}},bt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ht?pt+"print-"+e:e)}},wt=/[-\s]+(.)?/g;function xt(e,t){return t?t.toUpperCase():""}function _t(e){return e.replace(wt,xt)}function kt(e){return _t("-"+e)}var St,Mt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ht){var n="mask-image";if(_t(n)in t)return e;if(ht+kt(n)in t)return pt+e}return e}},Tt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==mt||gt?e:pt+e)}},Et={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:pt+e)}},Ct={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:pt+e)}},Ot={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ht||"ms"===ht&&"edge"!==vt?pt+e:e)}},Dt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ht||"ms"===ht||"apple"===mt?pt+e:e)}},Nt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ht?"WebkitColumn"+kt(e)in t&&pt+"column-"+e:"Moz"===ht&&("page"+kt(e)in t&&"page-"+e))}},jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ht)return e;var n=e.replace("-inline","");return ht+kt(n)in t&&pt+n}},At={supportedProperty:function(e,t){return _t(e)in t&&e}},Pt={supportedProperty:function(e,t){var n=kt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ht+n in t?pt+e:"Webkit"!==ht&&"Webkit"+n in t&&"-webkit-"+e}},Rt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ht?""+pt+e:e)}},It={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ht?pt+"scroll-chaining":e)}},Ft={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Lt={supportedProperty:function(e,t){var n=Ft[e];return!!n&&(ht+kt(n)in t&&pt+n)}},zt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Bt=Object.keys(zt),Zt=function(e){return pt+e},Wt={supportedProperty:function(e,t,n){var r=n.multiple;if(Bt.indexOf(e)>-1){var i=zt[e];if(!Array.isArray(i))return ht+kt(i)in t&&pt+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(ht+kt(i[0])in t))return!1;return i.map(Zt)}return!1}},Ht=[yt,bt,Mt,Tt,Et,Ct,Ot,Dt,Nt,jt,At,Pt,Rt,It,Lt,Wt],Yt=Ht.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ut=Ht.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,it.Z)(t.noPrefill)),e}),[]),Vt={};if(s){St=document.createElement("p");var qt=window.getComputedStyle(document.documentElement,"");for(var Gt in qt)isNaN(Gt)||(Vt[qt[Gt]]=qt[Gt]);Ut.forEach((function(e){return delete Vt[e]}))}function Xt(e,t){if(void 0===t&&(t={}),!St)return e;if(null!=Vt[e])return Vt[e];"transition"!==e&&"transform"!==e||(t[e]=e in St.style);for(var n=0;n<Yt.length&&(Vt[e]=Yt[n](e,St.style,t),!Vt[e]);n++);try{St.style[e]=""}catch(r){return!1}return Vt[e]}var $t,Qt={},Kt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Jt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function en(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Xt(t):", "+Xt(n);return r||(t||n)}function tn(e,t){var n=t;if(!$t||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Qt[r])return Qt[r];try{$t.style[e]=n}catch(i){return Qt[r]=!1,!1}if(Kt[e])n=n.replace(Jt,en);else if(""===$t.style[e]&&("-ms-flex"===(n=pt+n)&&($t.style[e]="-ms-flexbox"),$t.style[e]=n,""===$t.style[e]))return Qt[r]=!1,!1;return $t.style[e]="",Qt[r]=n,Qt[r]}s&&($t=document.createElement("p"));var nn=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Xt(n);o&&o!==n&&(i=!0);var a=!1,s=tn(o,v(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ht?e:"@"+pt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return tn(t,v(e))||e}}};var rn=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};var on=we({plugins:[je(),ze(),He(),$e(),rt(),"undefined"===typeof window?null:nn(),rn()]}),an=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),u=0,l=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ce.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ee.Z]&&""===a?"".concat(o,"-").concat(l()):o}return"".concat(s).concat(i).concat(l())}}(),sn={disableGeneration:!1,generateClassName:an,jss:on,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},un=o.createContext(sn);var ln=-1e9;function cn(){return ln+=1}var fn=n(81534);function dn(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.Z)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,fn.Z)(s[e],a[e])})),s},options:{}}}var hn={};function pn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=(0,ke.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function mn(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var u=Me.get(o.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},Me.set(o.sheetsManager,a,r,u));var l=(0,i.Z)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===u.refs){var f;o.sheetsCache&&(f=Me.get(o.sheetsCache,a,r));var d=a.create(r,s);f||((f=o.jss.createStyleSheet(d,(0,i.Z)({link:!1},l))).attach(),o.sheetsCache&&Me.set(o.sheetsCache,a,r,f)),c&&c.add(f),u.staticSheet=f,u.dynamicStyles=_e(d)}if(u.dynamicStyles){var h=o.jss.createStyleSheet(u.dynamicStyles,(0,i.Z)({link:!0},l));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=(0,ke.Z)({baseClasses:u.staticSheet.classes,newClasses:h.classes}),c&&c.add(h)}else n.classes=u.staticSheet.classes;u.refs+=1}}function vn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function gn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Me.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Me.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function yn(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,u=t.defaultTheme,l=void 0===u?hn:u,c=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),f=dn(e),d=n||a||"makeStyles";f.options={index:cn(),name:n,meta:d,classNamePrefix:d};var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Te.Z)()||l,r=(0,i.Z)({},o.useContext(un),c),a=o.useRef(),u=o.useRef();yn((function(){var i={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return mn(i,e),u.current=!1,a.current=i,function(){gn(i)}}),[t,f]),o.useEffect((function(){u.current&&vn(a.current,e),u.current=!0}));var d=pn(a.current,e.classes,s);return d};return h}},25352:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87462);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},40423:function(e,t,n){"use strict";var r=n(72791).createContext(null);t.Z=r},78444:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(72791),i=n(40423);function o(){return r.useContext(i.Z)}},81534:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(87462),i=n(71002);function o(e){return e&&"object"===(0,i.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},37483:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},44037:function(e,t,n){"use strict";var r=n(52506),i=n(19722),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},19722:function(e,t,n){"use strict";var r=n(33350),i=n(52506),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=s(r,a,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,o,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},28182:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.Z=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},24572:function(e,t,n){e.exports={graphlib:n(29453),dagre:n(73074),intersect:n(4875),render:n(884),util:n(80630),version:n(75315)}},40608:function(e,t,n){var r=n(80630);function i(e,t,n,i){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}e.exports={default:i,normal:i,vee:function(e,t,n,i){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])},undirected:function(e,t,n,i){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}}},91622:function(e,t,n){var r=n(80630),i=n(11985),o=n(75844);e.exports=function(e,t){var n,a=t.nodes().filter((function(e){return r.isSubgraph(t,e)})),s=e.selectAll("g.cluster").data(a,(function(e){return e}));s.selectAll("*").remove(),s.enter().append("g").attr("class","cluster").attr("id",(function(e){return t.node(e).id})).style("opacity",0),s=e.selectAll("g.cluster"),r.applyTransition(s,t).style("opacity",1),s.each((function(e){var n=t.node(e),r=i.select(this);i.select(this).append("rect");var a=r.append("g").attr("class","label");o(a,n,n.clusterLabelPos)})),s.selectAll("rect").each((function(e){var n=t.node(e),o=i.select(this);r.applyStyle(o,n.style)})),n=s.exit?s.exit():s.selectAll(null);return r.applyTransition(n,t).style("opacity",0).remove(),s}},27837:function(e,t,n){"use strict";var r=n(36453),i=n(75844),o=n(80630),a=n(11985);e.exports=function(e,t){var n,s=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return o.edgeToId(e)})).classed("update",!0);s.exit().remove(),s.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(s=e.selectAll("g.edgeLabel")).each((function(e){var n=a.select(this);n.select(".label").remove();var o=t.edge(e),s=i(n,t.edge(e),0,0).classed("label",!0),u=s.node().getBBox();o.labelId&&s.attr("id",o.labelId),r.has(o,"width")||(o.width=u.width),r.has(o,"height")||(o.height=u.height)})),n=s.exit?s.exit():s.selectAll(null);return o.applyTransition(n,t).style("opacity",0).remove(),s}},65233:function(e,t,n){"use strict";var r=n(36453),i=n(42788),o=n(80630),a=n(11985);function s(e,t){var n=(a.line||a.svg.line)().x((function(e){return e.x})).y((function(e){return e.y}));return(n.curve||n.interpolate)(e.curve),n(t)}e.exports=function(e,t,n){var u=e.selectAll("g.edgePath").data(t.edges(),(function(e){return o.edgeToId(e)})).classed("update",!0),l=function(e,t){var n=e.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(e){var n=t.edge(e),i=t.node(e.v).elem;return s(n,r.range(n.points.length).map((function(){return function(e){var t=e.getBBox(),n=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2);return{x:n.e,y:n.f}}(i)})))})),n.append("defs"),n}(u,t);!function(e,t){var n=e.exit();o.applyTransition(n,t).style("opacity",0).remove()}(u,t);var c=void 0!==u.merge?u.merge(l):u;return o.applyTransition(c,t).style("opacity",1),c.each((function(e){var n=a.select(this),r=t.edge(e);r.elem=this,r.id&&n.attr("id",r.id),o.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(e){var n=t.edge(e);n.arrowheadId=r.uniqueId("arrowhead");var u=a.select(this).attr("marker-end",(function(){return"url("+(e=location.href,t=n.arrowheadId,e.split("#")[0]+"#"+t+")");var e,t})).style("fill","none");o.applyTransition(u,t).attr("d",(function(e){return function(e,t){var n=e.edge(t),r=e.node(t.v),o=e.node(t.w),a=n.points.slice(1,n.points.length-1);return a.unshift(i(r,a[0])),a.push(i(o,a[a.length-1])),s(n,a)}(t,e)})),o.applyStyle(u,n.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(e){var r=t.edge(e);(0,n[r.arrowhead])(a.select(this),r.arrowheadId,r,"arrowhead")})),c}},1821:function(e,t,n){"use strict";var r=n(36453),i=n(75844),o=n(80630),a=n(11985);e.exports=function(e,t,n){var s,u=t.nodes().filter((function(e){return!o.isSubgraph(t,e)})),l=e.selectAll("g.node").data(u,(function(e){return e})).classed("update",!0);l.exit().remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=e.selectAll("g.node")).each((function(e){var s=t.node(e),u=a.select(this);o.applyClass(u,s.class,(u.classed("update")?"update ":"")+"node"),u.select("g.label").remove();var l=u.append("g").attr("class","label"),c=i(l,s),f=n[s.shape],d=r.pick(c.node().getBBox(),"width","height");s.elem=this,s.id&&u.attr("id",s.id),s.labelId&&l.attr("id",s.labelId),r.has(s,"width")&&(d.width=s.width),r.has(s,"height")&&(d.height=s.height),d.width+=s.paddingLeft+s.paddingRight,d.height+=s.paddingTop+s.paddingBottom,l.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var h=a.select(this);h.select(".label-container").remove();var p=f(h,d,s).classed("label-container",!0);o.applyStyle(p,s.style);var m=p.node().getBBox();s.width=m.width,s.height=m.height})),s=l.exit?l.exit():l.selectAll(null);return o.applyTransition(s,t).style("opacity",0).remove(),l}},11985:function(e,t,n){var r;if(!r)try{r=n(97814)}catch(i){}r||(r=window.d3),e.exports=r},73074:function(e,t,n){var r;try{r=n(69790)}catch(i){}r||(r=window.dagre),e.exports=r},29453:function(e,t,n){var r;try{r=n(86118)}catch(i){}r||(r=window.graphlib),e.exports=r},4875:function(e,t,n){e.exports={node:n(42788),circle:n(49155),ellipse:n(22172),polygon:n(50618),rect:n(68543)}},49155:function(e,t,n){var r=n(22172);e.exports=function(e,t,n){return r(e,t,t,n)}},22172:function(e){e.exports=function(e,t,n,r){var i=e.x,o=e.y,a=i-r.x,s=o-r.y,u=Math.sqrt(t*t*s*s+n*n*a*a),l=Math.abs(t*n*a/u);r.x<i&&(l=-l);var c=Math.abs(t*n*s/u);r.y<o&&(c=-c);return{x:i+l,y:o+c}}},13564:function(e){function t(e,t){return e*t>0}e.exports=function(e,n,r,i){var o,a,s,u,l,c,f,d,h,p,m,v,g;if(o=n.y-e.y,s=e.x-n.x,l=n.x*e.y-e.x*n.y,h=o*r.x+s*r.y+l,p=o*i.x+s*i.y+l,0!==h&&0!==p&&t(h,p))return;if(a=i.y-r.y,u=r.x-i.x,c=i.x*r.y-r.x*i.y,f=a*e.x+u*e.y+c,d=a*n.x+u*n.y+c,0!==f&&0!==d&&t(f,d))return;if(0===(m=o*u-a*s))return;return v=Math.abs(m/2),{x:(g=s*c-u*l)<0?(g-v)/m:(g+v)/m,y:(g=a*l-o*c)<0?(g-v)/m:(g+v)/m}}},42788:function(e){e.exports=function(e,t){return e.intersect(t)}},50618:function(e,t,n){var r=n(13564);e.exports=function(e,t,n){var i=e.x,o=e.y,a=[],s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY;t.forEach((function(e){s=Math.min(s,e.x),u=Math.min(u,e.y)}));for(var l=i-e.width/2-s,c=o-e.height/2-u,f=0;f<t.length;f++){var d=t[f],h=t[f<t.length-1?f+1:0],p=r(e,n,{x:l+d.x,y:c+d.y},{x:l+h.x,y:c+h.y});p&&a.push(p)}if(!a.length)return console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",e),e;a.length>1&&a.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return o<u?-1:o===u?0:1}));return a[0]}},68543:function(e){e.exports=function(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,u=e.width/2,l=e.height/2;Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=0===s?0:l*a/s,r=l):(a<0&&(u=-u),n=u,r=0===a?0:u*s/a);return{x:i+n,y:o+r}}},44203:function(e,t,n){var r=n(80630);e.exports=function(e,t){var n=e.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,t.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}},75844:function(e,t,n){var r=n(38312),i=n(44203),o=n(42365);e.exports=function(e,t,n){var a=t.label,s=e.append("g");"svg"===t.labelType?o(s,t):"string"!==typeof a||"html"===t.labelType?i(s,t):r(s,t);var u,l=s.node().getBBox();switch(n){case"top":u=-t.height/2;break;case"bottom":u=t.height/2-l.height;break;default:u=-l.height/2}return s.attr("transform","translate("+-l.width/2+","+u+")"),s}},42365:function(e,t,n){var r=n(80630);e.exports=function(e,t){var n=e;return n.node().appendChild(t.label),r.applyStyle(n,t.labelStyle),n}},38312:function(e,t,n){var r=n(80630);e.exports=function(e,t){for(var n=e.append("text"),i=function(e){for(var t,n="",r=!1,i=0;i<e.length;++i)if(t=e[i],r){if("n"===t)n+="\n";else n+=t;r=!1}else"\\"===t?r=!0:n+=t;return n}(t.label).split("\n"),o=0;o<i.length;o++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[o]);return r.applyStyle(n,t.labelStyle),n}},36453:function(e,t,n){var r;try{r={defaults:n(66933),each:n(29430),isFunction:n(74786),isPlainObject:n(93977),pick:n(36460),has:n(17805),range:n(66222),uniqueId:n(30804)}}catch(i){}r||(r=window._),e.exports=r},6539:function(e,t,n){"use strict";var r=n(80630),i=n(11985);e.exports=function(e,t){var n=e.filter((function(){return!i.select(this).classed("update")}));function o(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}n.attr("transform",o),r.applyTransition(e,t).style("opacity",1).attr("transform",o),r.applyTransition(n.selectAll("rect"),t).attr("width",(function(e){return t.node(e).width})).attr("height",(function(e){return t.node(e).height})).attr("x",(function(e){return-t.node(e).width/2})).attr("y",(function(e){return-t.node(e).height/2}))}},23610:function(e,t,n){"use strict";var r=n(80630),i=n(11985),o=n(36453);e.exports=function(e,t){function n(e){var n=t.edge(e);return o.has(n,"x")?"translate("+n.x+","+n.y+")":""}e.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(e,t).style("opacity",1).attr("transform",n)}},36652:function(e,t,n){"use strict";var r=n(80630),i=n(11985);e.exports=function(e,t){function n(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}e.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(e,t).style("opacity",1).attr("transform",n)}},884:function(e,t,n){var r=n(36453),i=n(11985),o=n(73074).layout;e.exports=function(){var e=n(1821),t=n(91622),i=n(27837),l=n(65233),c=n(36652),f=n(23610),d=n(6539),h=n(62323),p=n(40608),m=function(n,m){!function(e){e.nodes().forEach((function(t){var n=e.node(t);r.has(n,"label")||e.children(t).length||(n.label=t),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,a),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(e){n[e]=Number(n[e])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),e.edges().forEach((function(t){var n=e.edge(t);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(m);var v=u(n,"output"),g=u(v,"clusters"),y=u(v,"edgePaths"),b=i(u(v,"edgeLabels"),m),w=e(u(v,"nodes"),m,h);o(m),c(w,m),f(b,m),l(y,m,p);var x=t(g,m);d(x,m),function(e){r.each(e.nodes(),(function(t){var n=e.node(t);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(m)};return m.createNodes=function(t){return arguments.length?(e=t,m):e},m.createClusters=function(e){return arguments.length?(t=e,m):t},m.createEdgeLabels=function(e){return arguments.length?(i=e,m):i},m.createEdgePaths=function(e){return arguments.length?(l=e,m):l},m.shapes=function(e){return arguments.length?(h=e,m):h},m.arrows=function(e){return arguments.length?(p=e,m):p},m};var a={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function u(e,t){var n=e.select("g."+t);return n.empty()&&(n=e.append("g").attr("class",t)),n}},62323:function(e,t,n){"use strict";var r=n(68543),i=n(22172),o=n(49155),a=n(50618);e.exports={rect:function(e,t,n){var i=e.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return n.intersect=function(e){return r(n,e)},i},ellipse:function(e,t,n){var r=t.width/2,o=t.height/2,a=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",r).attr("ry",o);return n.intersect=function(e){return i(n,r,o,e)},a},circle:function(e,t,n){var r=Math.max(t.width,t.height)/2,i=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",r);return n.intersect=function(e){return o(n,r,e)},i},diamond:function(e,t,n){var r=t.width*Math.SQRT2/2,i=t.height*Math.SQRT2/2,o=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],s=e.insert("polygon",":first-child").attr("points",o.map((function(e){return e.x+","+e.y})).join(" "));return n.intersect=function(e){return a(n,o,e)},s}}},80630:function(e,t,n){var r=n(36453);e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return o(e.v)+":"+o(e.w)+":"+o(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))},applyTransition:function(e,t){var n=t.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(e)}return e}};var i=/:/g;function o(e){return e?String(e).replace(i,"\\:"):""}},75315:function(e){e.exports="0.6.4"},97814:function(e,t,n){"use strict";n.r(t),n.d(t,{FormatSpecifier:function(){return du},active:function(){return ei},arc:function(){return wx},area:function(){return Tx},areaRadial:function(){return Rx},ascending:function(){return i},autoType:function(){return za},axisBottom:function(){return ie},axisLeft:function(){return oe},axisRight:function(){return re},axisTop:function(){return ne},bisect:function(){return l},bisectLeft:function(){return u},bisectRight:function(){return s},bisector:function(){return o},blob:function(){return ws},brush:function(){return Oi},brushSelection:function(){return Ti},brushX:function(){return Ei},brushY:function(){return Ci},buffer:function(){return _s},chord:function(){return Li},clientPoint:function(){return jn},cluster:function(){return Dh},color:function(){return qt},contourDensity:function(){return ua},contours:function(){return na},create:function(){return qw},creator:function(){return it},cross:function(){return d},csv:function(){return Es},csvFormat:function(){return Ta},csvFormatBody:function(){return Ea},csvFormatRow:function(){return Oa},csvFormatRows:function(){return Ca},csvFormatValue:function(){return Da},csvParse:function(){return Sa},csvParseRows:function(){return Ma},cubehelix:function(){return Vo},curveBasis:function(){return m_},curveBasisClosed:function(){return g_},curveBasisOpen:function(){return b_},curveBundle:function(){return x_},curveCardinal:function(){return S_},curveCardinalClosed:function(){return T_},curveCardinalOpen:function(){return C_},curveCatmullRom:function(){return N_},curveCatmullRomClosed:function(){return A_},curveCatmullRomOpen:function(){return R_},curveLinear:function(){return _x},curveLinearClosed:function(){return F_},curveMonotoneX:function(){return U_},curveMonotoneY:function(){return V_},curveNatural:function(){return X_},curveStep:function(){return Q_},curveStepAfter:function(){return J_},curveStepBefore:function(){return K_},customEvent:function(){return vt},descending:function(){return h},deviation:function(){return v},dispatch:function(){return de},drag:function(){return ma},dragDisable:function(){return Et},dragEnable:function(){return Ct},dsv:function(){return Ts},dsvFormat:function(){return _a},easeBack:function(){return ps},easeBackIn:function(){return ds},easeBackInOut:function(){return ps},easeBackOut:function(){return hs},easeBounce:function(){return ls},easeBounceIn:function(){return us},easeBounceInOut:function(){return cs},easeBounceOut:function(){return ls},easeCircle:function(){return os},easeCircleIn:function(){return rs},easeCircleInOut:function(){return os},easeCircleOut:function(){return is},easeCubic:function(){return $r},easeCubicIn:function(){return Gr},easeCubicInOut:function(){return $r},easeCubicOut:function(){return Xr},easeElastic:function(){return gs},easeElasticIn:function(){return vs},easeElasticInOut:function(){return ys},easeElasticOut:function(){return gs},easeExp:function(){return ns},easeExpIn:function(){return es},easeExpInOut:function(){return ns},easeExpOut:function(){return ts},easeLinear:function(){return Za},easePoly:function(){return qa},easePolyIn:function(){return Ua},easePolyInOut:function(){return qa},easePolyOut:function(){return Va},easeQuad:function(){return Ya},easeQuadIn:function(){return Wa},easeQuadInOut:function(){return Ya},easeQuadOut:function(){return Ha},easeSin:function(){return Ka},easeSinIn:function(){return $a},easeSinInOut:function(){return Ka},easeSinOut:function(){return Qa},entries:function(){return vo},event:function(){return ct},extent:function(){return g},forceCenter:function(){return Is},forceCollide:function(){return Xs},forceLink:function(){return Ks},forceManyBody:function(){return ru},forceRadial:function(){return iu},forceSimulation:function(){return nu},forceX:function(){return ou},forceY:function(){return au},format:function(){return gu},formatDefaultLocale:function(){return _u},formatLocale:function(){return xu},formatPrefix:function(){return yu},formatSpecifier:function(){return fu},geoAlbers:function(){return Ud},geoAlbersUsa:function(){return Vd},geoArea:function(){return yl},geoAzimuthalEqualArea:function(){return $d},geoAzimuthalEqualAreaRaw:function(){return Xd},geoAzimuthalEquidistant:function(){return Kd},geoAzimuthalEquidistantRaw:function(){return Qd},geoBounds:function(){return cc},geoCentroid:function(){return _c},geoCircle:function(){return Ac},geoClipAntimeridian:function(){return Uc},geoClipCircle:function(){return Vc},geoClipExtent:function(){return $c},geoClipRectangle:function(){return Xc},geoConicConformal:function(){return ih},geoConicConformalRaw:function(){return rh},geoConicEqualArea:function(){return Yd},geoConicEqualAreaRaw:function(){return Hd},geoConicEquidistant:function(){return uh},geoConicEquidistantRaw:function(){return sh},geoContains:function(){return yf},geoDistance:function(){return lf},geoEqualEarth:function(){return mh},geoEqualEarthRaw:function(){return ph},geoEquirectangular:function(){return ah},geoEquirectangularRaw:function(){return oh},geoGnomonic:function(){return gh},geoGnomonicRaw:function(){return vh},geoGraticule:function(){return xf},geoGraticule10:function(){return _f},geoIdentity:function(){return yh},geoInterpolate:function(){return kf},geoLength:function(){return af},geoMercator:function(){return eh},geoMercatorRaw:function(){return Jd},geoNaturalEarth1:function(){return wh},geoNaturalEarth1Raw:function(){return bh},geoOrthographic:function(){return _h},geoOrthographicRaw:function(){return xh},geoPath:function(){return Td},geoProjection:function(){return Bd},geoProjectionMutator:function(){return Zd},geoRotation:function(){return Dc},geoStereographic:function(){return Sh},geoStereographicRaw:function(){return kh},geoStream:function(){return ol},geoTransform:function(){return Ed},geoTransverseMercator:function(){return Th},geoTransverseMercatorRaw:function(){return Mh},gray:function(){return Mo},hcl:function(){return Po},hierarchy:function(){return jh},histogram:function(){return N},hsl:function(){return on},html:function(){return Ps},image:function(){return Os},interpolate:function(){return Dn},interpolateArray:function(){return _n},interpolateBasis:function(){return ln},interpolateBasisClosed:function(){return cn},interpolateBlues:function(){return ww},interpolateBrBG:function(){return jb},interpolateBuGn:function(){return $b},interpolateBuPu:function(){return Kb},interpolateCividis:function(){return Nw},interpolateCool:function(){return Pw},interpolateCubehelix:function(){return Yp},interpolateCubehelixDefault:function(){return jw},interpolateCubehelixLong:function(){return Up},interpolateDate:function(){return Sn},interpolateDiscrete:function(){return Dp},interpolateGnBu:function(){return ew},interpolateGreens:function(){return _w},interpolateGreys:function(){return Sw},interpolateHcl:function(){return Zp},interpolateHclLong:function(){return Wp},interpolateHsl:function(){return Fp},interpolateHslLong:function(){return Lp},interpolateHue:function(){return Np},interpolateInferno:function(){return Uw},interpolateLab:function(){return zp},interpolateMagma:function(){return Yw},interpolateNumber:function(){return Mn},interpolateNumberArray:function(){return wn},interpolateObject:function(){return Tn},interpolateOrRd:function(){return nw},interpolateOranges:function(){return Dw},interpolatePRGn:function(){return Pb},interpolatePiYG:function(){return Ib},interpolatePlasma:function(){return Vw},interpolatePuBu:function(){return aw},interpolatePuBuGn:function(){return iw},interpolatePuOr:function(){return Lb},interpolatePuRd:function(){return uw},interpolatePurples:function(){return Tw},interpolateRainbow:function(){return Iw},interpolateRdBu:function(){return Bb},interpolateRdGy:function(){return Wb},interpolateRdPu:function(){return cw},interpolateRdYlBu:function(){return Yb},interpolateRdYlGn:function(){return Vb},interpolateReds:function(){return Cw},interpolateRgb:function(){return vn},interpolateRgbBasis:function(){return yn},interpolateRgbBasisClosed:function(){return bn},interpolateRound:function(){return jp},interpolateSinebow:function(){return Bw},interpolateSpectral:function(){return Gb},interpolateString:function(){return On},interpolateTransformCss:function(){return mr},interpolateTransformSvg:function(){return vr},interpolateTurbo:function(){return Zw},interpolateViridis:function(){return Hw},interpolateWarm:function(){return Aw},interpolateYlGn:function(){return pw},interpolateYlGnBu:function(){return dw},interpolateYlOrBr:function(){return vw},interpolateYlOrRd:function(){return yw},interpolateZoom:function(){return Rp},interrupt:function(){return ar},interval:function(){return wk},isoFormat:function(){return gk},isoParse:function(){return bk},json:function(){return Ns},keys:function(){return po},lab:function(){return To},lch:function(){return Ao},line:function(){return Mx},lineRadial:function(){return Px},linkHorizontal:function(){return Yx},linkRadial:function(){return Vx},linkVertical:function(){return Ux},local:function(){return Xw},map:function(){return ro},matcher:function(){return ge},max:function(){return R},mean:function(){return I},median:function(){return F},merge:function(){return L},min:function(){return z},mouse:function(){return Pn},namespace:function(){return Me},namespaces:function(){return Se},nest:function(){return io},now:function(){return Un},pack:function(){return rp},packEnclose:function(){return Lh},packSiblings:function(){return Qh},pairs:function(){return c},partition:function(){return lp},path:function(){return qi},permute:function(){return B},pie:function(){return Ox},piecewise:function(){return Vp},pointRadial:function(){return Ix},polygonArea:function(){return Gp},polygonCentroid:function(){return Xp},polygonContains:function(){return em},polygonHull:function(){return Jp},polygonLength:function(){return tm},precisionFixed:function(){return ku},precisionPrefix:function(){return Su},precisionRound:function(){return Mu},quadtree:function(){return Hs},quantile:function(){return j},quantize:function(){return qp},radialArea:function(){return Rx},radialLine:function(){return Px},randomBates:function(){return sm},randomExponential:function(){return um},randomIrwinHall:function(){return am},randomLogNormal:function(){return om},randomNormal:function(){return im},randomUniform:function(){return rm},range:function(){return k},rgb:function(){return Qt},ribbon:function(){return Ji},scaleBand:function(){return vm},scaleDiverging:function(){return pb},scaleDivergingLog:function(){return mb},scaleDivergingPow:function(){return gb},scaleDivergingSqrt:function(){return yb},scaleDivergingSymlog:function(){return vb},scaleIdentity:function(){return jm},scaleImplicit:function(){return pm},scaleLinear:function(){return Nm},scaleLog:function(){return Zm},scaleOrdinal:function(){return mm},scalePoint:function(){return ym},scalePow:function(){return $m},scaleQuantile:function(){return Km},scaleQuantize:function(){return Jm},scaleSequential:function(){return sb},scaleSequentialLog:function(){return ub},scaleSequentialPow:function(){return cb},scaleSequentialQuantile:function(){return db},scaleSequentialSqrt:function(){return fb},scaleSequentialSymlog:function(){return lb},scaleSqrt:function(){return Qm},scaleSymlog:function(){return Um},scaleThreshold:function(){return ev},scaleTime:function(){return Gy},scaleUtc:function(){return ib},scan:function(){return Z},schemeAccent:function(){return xb},schemeBlues:function(){return bw},schemeBrBG:function(){return Nb},schemeBuGn:function(){return Xb},schemeBuPu:function(){return Qb},schemeCategory10:function(){return wb},schemeDark2:function(){return _b},schemeGnBu:function(){return Jb},schemeGreens:function(){return xw},schemeGreys:function(){return kw},schemeOrRd:function(){return tw},schemeOranges:function(){return Ow},schemePRGn:function(){return Ab},schemePaired:function(){return kb},schemePastel1:function(){return Sb},schemePastel2:function(){return Mb},schemePiYG:function(){return Rb},schemePuBu:function(){return ow},schemePuBuGn:function(){return rw},schemePuOr:function(){return Fb},schemePuRd:function(){return sw},schemePurples:function(){return Mw},schemeRdBu:function(){return zb},schemeRdGy:function(){return Zb},schemeRdPu:function(){return lw},schemeRdYlBu:function(){return Hb},schemeRdYlGn:function(){return Ub},schemeReds:function(){return Ew},schemeSet1:function(){return Tb},schemeSet2:function(){return Eb},schemeSet3:function(){return Cb},schemeSpectral:function(){return qb},schemeTableau10:function(){return Ob},schemeYlGn:function(){return hw},schemeYlGnBu:function(){return fw},schemeYlOrBr:function(){return mw},schemeYlOrRd:function(){return gw},select:function(){return St},selectAll:function(){return Qw},selection:function(){return kt},selector:function(){return pe},selectorAll:function(){return ve},set:function(){return ho},shuffle:function(){return W},stack:function(){return rk},stackOffsetDiverging:function(){return ok},stackOffsetExpand:function(){return ik},stackOffsetNone:function(){return ek},stackOffsetSilhouette:function(){return ak},stackOffsetWiggle:function(){return sk},stackOrderAppearance:function(){return uk},stackOrderAscending:function(){return ck},stackOrderDescending:function(){return dk},stackOrderInsideOut:function(){return hk},stackOrderNone:function(){return tk},stackOrderReverse:function(){return pk},stratify:function(){return pp},style:function(){return Ie},sum:function(){return H},svg:function(){return Rs},symbol:function(){return f_},symbolCircle:function(){return qx},symbolCross:function(){return Gx},symbolDiamond:function(){return Qx},symbolSquare:function(){return n_},symbolStar:function(){return t_},symbolTriangle:function(){return i_},symbolWye:function(){return l_},symbols:function(){return c_},text:function(){return Ss},thresholdFreedmanDiaconis:function(){return A},thresholdScott:function(){return P},thresholdSturges:function(){return D},tickFormat:function(){return Om},tickIncrement:function(){return C},tickStep:function(){return O},ticks:function(){return E},timeDay:function(){return Nv},timeDays:function(){return jv},timeFormat:function(){return gg},timeFormatDefaultLocale:function(){return Ly},timeFormatLocale:function(){return mg},timeFriday:function(){return xv},timeFridays:function(){return Cv},timeHour:function(){return Pv},timeHours:function(){return Rv},timeInterval:function(){return rv},timeMillisecond:function(){return Hv},timeMilliseconds:function(){return Yv},timeMinute:function(){return Fv},timeMinutes:function(){return Lv},timeMonday:function(){return gv},timeMondays:function(){return Sv},timeMonth:function(){return uv},timeMonths:function(){return lv},timeParse:function(){return yg},timeSaturday:function(){return _v},timeSaturdays:function(){return Ov},timeSecond:function(){return Bv},timeSeconds:function(){return Zv},timeSunday:function(){return vv},timeSundays:function(){return kv},timeThursday:function(){return wv},timeThursdays:function(){return Ev},timeTuesday:function(){return yv},timeTuesdays:function(){return Mv},timeWednesday:function(){return bv},timeWednesdays:function(){return Tv},timeWeek:function(){return vv},timeWeeks:function(){return kv},timeYear:function(){return ov},timeYears:function(){return av},timeout:function(){return Jn},timer:function(){return Gn},timerFlush:function(){return Xn},touch:function(){return An},touches:function(){return Kw},transition:function(){return Ur},transpose:function(){return Y},tree:function(){return xp},treemap:function(){return Tp},treemapBinary:function(){return Ep},treemapDice:function(){return up},treemapResquarify:function(){return Op},treemapSlice:function(){return _p},treemapSliceDice:function(){return Cp},treemapSquarify:function(){return Mp},tsv:function(){return Cs},tsvFormat:function(){return Pa},tsvFormatBody:function(){return Ra},tsvFormatRow:function(){return Fa},tsvFormatRows:function(){return Ia},tsvFormatValue:function(){return La},tsvParse:function(){return ja},tsvParseRows:function(){return Aa},utcDay:function(){return sg},utcDays:function(){return ug},utcFormat:function(){return bg},utcFriday:function(){return Qv},utcFridays:function(){return ig},utcHour:function(){return Jy},utcHours:function(){return eb},utcMillisecond:function(){return Hv},utcMilliseconds:function(){return Yv},utcMinute:function(){return nb},utcMinutes:function(){return rb},utcMonday:function(){return qv},utcMondays:function(){return eg},utcMonth:function(){return $y},utcMonths:function(){return Qy},utcParse:function(){return wg},utcSaturday:function(){return Kv},utcSaturdays:function(){return og},utcSecond:function(){return Bv},utcSeconds:function(){return Zv},utcSunday:function(){return Vv},utcSundays:function(){return Jv},utcThursday:function(){return $v},utcThursdays:function(){return rg},utcTuesday:function(){return Gv},utcTuesdays:function(){return tg},utcWednesday:function(){return Xv},utcWednesdays:function(){return ng},utcWeek:function(){return Vv},utcWeeks:function(){return Jv},utcYear:function(){return cg},utcYears:function(){return fg},values:function(){return mo},variance:function(){return m},version:function(){return r},voronoi:function(){return aS},window:function(){return je},xml:function(){return As},zip:function(){return V},zoom:function(){return wS},zoomIdentity:function(){return cS},zoomTransform:function(){return fS}});var r="5.16.0";function i(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function o(e){var t;return 1===e.length&&(t=e,e=function(e,n){return i(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var a=o(i),s=a.right,u=a.left,l=s;function c(e,t){null==t&&(t=f);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return o}function f(e,t){return[e,t]}function d(e,t,n){var r,i,o,a,s=e.length,u=t.length,l=new Array(s*u);for(null==n&&(n=f),r=o=0;r<s;++r)for(a=e[r],i=0;i<u;++i,++o)l[o]=n(a,t[i]);return l}function h(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function p(e){return null===e?NaN:+e}function m(e,t){var n,r,i=e.length,o=0,a=-1,s=0,u=0;if(null==t)for(;++a<i;)isNaN(n=p(e[a]))||(u+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=p(t(e[a],a,e)))||(u+=(r=n-s)*(n-(s+=r/++o)));if(o>1)return u/(o-1)}function v(e,t){var n=m(e,t);return n?Math.sqrt(n):n}function g(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}var y=Array.prototype,b=y.slice,w=y.map;function x(e){return function(){return e}}function _(e){return e}function k(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}var S=Math.sqrt(50),M=Math.sqrt(10),T=Math.sqrt(2);function E(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=C(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}function C(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=S?10:o>=M?5:o>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=S?10:o>=M?5:o>=T?2:1)}function O(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=S?i*=10:o>=M?i*=5:o>=T&&(i*=2),t<e?-i:i}function D(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function N(){var e=_,t=g,n=D;function r(r){var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=e(r[i],i,r);var u=t(s),c=u[0],f=u[1],d=n(s,c,f);Array.isArray(d)||(d=O(c,f,d),d=k(Math.ceil(c/d)*d,f,d));for(var h=d.length;d[0]<=c;)d.shift(),--h;for(;d[h-1]>f;)d.pop(),--h;var p,m=new Array(h+1);for(i=0;i<=h;++i)(p=m[i]=[]).x0=i>0?d[i-1]:c,p.x1=i<h?d[i]:f;for(i=0;i<a;++i)c<=(o=s[i])&&o<=f&&m[l(d,o,0,h)].push(r[i]);return m}return r.value=function(t){return arguments.length?(e="function"===typeof t?t:x(t),r):e},r.domain=function(e){return arguments.length?(t="function"===typeof e?e:x([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?x(b.call(e)):x(e),r):n},r}function j(e,t,n){if(null==n&&(n=p),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function A(e,t,n){return e=w.call(e,p).sort(i),Math.ceil((n-t)/(2*(j(e,.75)-j(e,.25))*Math.pow(e.length,-1/3)))}function P(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))}function R(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}function I(e,t){var n,r=e.length,i=r,o=-1,a=0;if(null==t)for(;++o<r;)isNaN(n=p(e[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=p(t(e[o],o,e)))?--i:a+=n;if(i)return a/i}function F(e,t){var n,r=e.length,o=-1,a=[];if(null==t)for(;++o<r;)isNaN(n=p(e[o]))||a.push(n);else for(;++o<r;)isNaN(n=p(t(e[o],o,e)))||a.push(n);return j(a.sort(i),.5)}function L(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n}function z(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function B(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}function Z(e,t){if(n=e.length){var n,r,o=0,a=0,s=e[a];for(null==t&&(t=i);++o<n;)(t(r=e[o],s)<0||0!==t(s,s))&&(s=r,a=o);return 0===t(s,s)?a:void 0}}function W(e,t,n){for(var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e}function H(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}function Y(e){if(!(i=e.length))return[];for(var t=-1,n=z(e,U),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r}function U(e){return e.length}function V(){return Y(arguments)}var q=Array.prototype.slice;function G(e){return e}var X=1e-6;function $(e){return"translate("+(e+.5)+",0)"}function Q(e){return"translate(0,"+(e+.5)+")"}function K(e){return function(t){return+e(t)}}function J(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function ee(){return!this.__axis}function te(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,u=1===e||4===e?-1:1,l=4===e||2===e?"x":"y",c=1===e||3===e?$:Q;function f(f){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,h=null==i?t.tickFormat?t.tickFormat.apply(t,n):G:i,p=Math.max(o,0)+s,m=t.range(),v=+m[0]+.5,g=+m[m.length-1]+.5,y=(t.bandwidth?J:K)(t.copy()),b=f.selection?f.selection():f,w=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(d,t).order(),_=x.exit(),k=x.enter().append("g").attr("class","tick"),S=x.select("line"),M=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),M=M.merge(k.append("text").attr("fill","currentColor").attr(l,u*p).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),f!==b&&(w=w.transition(f),x=x.transition(f),S=S.transition(f),M=M.transition(f),_=_.transition(f).attr("opacity",X).attr("transform",(function(e){return isFinite(e=y(e))?c(e):this.getAttribute("transform")})),k.attr("opacity",X).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:y(e))}))),_.remove(),w.attr("d",4===e||2==e?a?"M"+u*a+","+v+"H0.5V"+g+"H"+u*a:"M0.5,"+v+"V"+g:a?"M"+v+","+u*a+"V0.5H"+g+"V"+u*a:"M"+v+",0.5H"+g),x.attr("opacity",1).attr("transform",(function(e){return c(y(e))})),S.attr(l+"2",u*o),M.attr(l,u*p).text(h),b.filter(ee).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),b.each((function(){this.__axis=y}))}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=q.call(arguments),f},f.tickArguments=function(e){return arguments.length?(n=null==e?[]:q.call(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=null==e?null:q.call(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(o=a=+e,f):o},f.tickSizeInner=function(e){return arguments.length?(o=+e,f):o},f.tickSizeOuter=function(e){return arguments.length?(a=+e,f):a},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f}function ne(e){return te(1,e)}function re(e){return te(2,e)}function ie(e){return te(3,e)}function oe(e){return te(4,e)}var ae={value:function(){}};function se(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new ue(r)}function ue(e){this._=e}function le(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function ce(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function fe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=ae,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}ue.prototype=se.prototype={constructor:ue,on:function(e,t){var n,r=this._,i=le(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=fe(r[n],e.name,t);else if(null==t)for(n in r)r[n]=fe(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=ce(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ue(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var de=se;function he(){}function pe(e){return null==e?he:function(){return this.querySelector(e)}}function me(){return[]}function ve(e){return null==e?me:function(){return this.querySelectorAll(e)}}function ge(e){return function(){return this.matches(e)}}function ye(e){return new Array(e.length)}function be(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}be.prototype={constructor:be,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function we(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new be(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function xe(e,t,n,r,i,o,a){var s,u,l,c={},f=t.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(h[s]=l="$"+a.call(u,u.__data__,s,t),l in c?i[s]=u:c[l]=u);for(s=0;s<d;++s)(u=c[l="$"+a.call(e,o[s],s,o)])?(r[s]=u,u.__data__=o[s],c[l]=null):n[s]=new be(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c[h[s]]===u&&(i[s]=u)}function _e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var ke="http://www.w3.org/1999/xhtml",Se={svg:"http://www.w3.org/2000/svg",xhtml:ke,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Me(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Se.hasOwnProperty(t)?{space:Se[t],local:e}:e}function Te(e){return function(){this.removeAttribute(e)}}function Ee(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ce(e,t){return function(){this.setAttribute(e,t)}}function Oe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function De(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ne(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function je(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ae(e){return function(){this.style.removeProperty(e)}}function Pe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Re(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ie(e,t){return e.style.getPropertyValue(t)||je(e).getComputedStyle(e,null).getPropertyValue(t)}function Fe(e){return function(){delete this[e]}}function Le(e,t){return function(){this[e]=t}}function ze(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Be(e){return e.trim().split(/^|\s+/)}function Ze(e){return e.classList||new We(e)}function We(e){this._node=e,this._names=Be(e.getAttribute("class")||"")}function He(e,t){for(var n=Ze(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Ye(e,t){for(var n=Ze(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Ue(e){return function(){He(this,e)}}function Ve(e){return function(){Ye(this,e)}}function qe(e,t){return function(){(t.apply(this,arguments)?He:Ye)(this,e)}}function Ge(){this.textContent=""}function Xe(e){return function(){this.textContent=e}}function $e(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Qe(){this.innerHTML=""}function Ke(e){return function(){this.innerHTML=e}}function Je(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function et(){this.nextSibling&&this.parentNode.appendChild(this)}function tt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ke&&t.documentElement.namespaceURI===ke?t.createElement(e):t.createElementNS(n,e)}}function rt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function it(e){var t=Me(e);return(t.local?rt:nt)(t)}function ot(){return null}function at(){var e=this.parentNode;e&&e.removeChild(this)}function st(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ut(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}We.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var lt={},ct=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(lt={mouseenter:"mouseover",mouseleave:"mouseout"}));function ft(e,t,n){return e=dt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function dt(e,t,n){return function(r){var i=ct;ct=r;try{e.call(this,this.__data__,t,n)}finally{ct=i}}}function ht(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function pt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function mt(e,t,n){var r=lt.hasOwnProperty(e.type)?ft:dt;return function(i,o,a){var s,u=this.__on,l=r(t,o,a);if(u)for(var c=0,f=u.length;c<f;++c)if((s=u[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=t);this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,capture:n},u?u.push(s):this.__on=[s]}}function vt(e,t,n,r){var i=ct;e.sourceEvent=ct,ct=e;try{return t.apply(n,r)}finally{ct=i}}function gt(e,t,n){var r=je(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function yt(e,t){return function(){return gt(this,e,t)}}function bt(e,t){return function(){return gt(this,e,t.apply(this,arguments))}}var wt=[null];function xt(e,t){this._groups=e,this._parents=t}function _t(){return new xt([[document.documentElement]],wt)}xt.prototype=_t.prototype={constructor:xt,select:function(e){"function"!==typeof e&&(e=pe(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new xt(r,this._parents)},selectAll:function(e){"function"!==typeof e&&(e=ve(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new xt(r,i)},filter:function(e){"function"!==typeof e&&(e=ge(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new xt(r,this._parents)},data:function(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each((function(e){h[++l]=e})),h;var n=t?xe:we,r=this._parents,i=this._groups;"function"!==typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],d=f.length,h=e.call(c,c&&c.__data__,l,r),p=h.length,m=s[l]=new Array(p),v=a[l]=new Array(p);n(c,f,m,v,u[l]=new Array(d),h,t);for(var g,y,b=0,w=0;b<p;++b)if(g=m[b]){for(b>=w&&(w=b+1);!(y=v[w])&&++w<p;);g._next=y||null}}return(a=new xt(a,r))._enter=s,a._exit=u,a},enter:function(){return new xt(this._enter||this._groups.map(ye),this._parents)},exit:function(){return new xt(this._exit||this._groups.map(ye),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new xt(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=_e);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new xt(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=Me(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Ee:Te:"function"===typeof t?n.local?Ne:De:n.local?Oe:Ce)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Ae:"function"===typeof t?Re:Pe)(e,t,null==n?"":n)):Ie(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Fe:"function"===typeof t?ze:Le)(e,t)):this.node()[e]},classed:function(e,t){var n=Be(e+"");if(arguments.length<2){for(var r=Ze(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?qe:t?Ue:Ve)(n,t))},text:function(e){return arguments.length?this.each(null==e?Ge:("function"===typeof e?$e:Xe)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Qe:("function"===typeof e?Je:Ke)(e)):this.node().innerHTML},raise:function(){return this.each(et)},lower:function(){return this.each(tt)},append:function(e){var t="function"===typeof e?e:it(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:it(e),r=null==t?ot:"function"===typeof t?t:pe(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(at)},clone:function(e){return this.select(e?ut:st)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=ht(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?mt:pt,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?bt:yt)(e,t))}};var kt=_t;function St(e){return"string"===typeof e?new xt([[document.querySelector(e)]],[document.documentElement]):new xt([[e]],wt)}function Mt(){ct.stopImmediatePropagation()}function Tt(){ct.preventDefault(),ct.stopImmediatePropagation()}function Et(e){var t=e.document.documentElement,n=St(e).on("dragstart.drag",Tt,!0);"onselectstart"in t?n.on("selectstart.drag",Tt,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Ct(e,t){var n=e.document.documentElement,r=St(e).on("dragstart.drag",null);t&&(r.on("click.drag",Tt,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Ot(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Nt(){}var jt=.7,At=1/jt,Pt="\\s*([+-]?\\d+)\\s*",Rt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ft=/^#([0-9a-f]{3,8})$/,Lt=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),zt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),Bt=new RegExp("^rgba\\("+[Pt,Pt,Pt,Rt]+"\\)$"),Zt=new RegExp("^rgba\\("+[It,It,It,Rt]+"\\)$"),Wt=new RegExp("^hsl\\("+[Rt,It,It]+"\\)$"),Ht=new RegExp("^hsla\\("+[Rt,It,It,Rt]+"\\)$"),Yt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ut(){return this.rgb().formatHex()}function Vt(){return this.rgb().formatRgb()}function qt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ft.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Gt(t):3===n?new Kt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Xt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Xt(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=Lt.exec(e))?new Kt(t[1],t[2],t[3],1):(t=zt.exec(e))?new Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Bt.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=Zt.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Wt.exec(e))?nn(t[1],t[2]/100,t[3]/100,1):(t=Ht.exec(e))?nn(t[1],t[2]/100,t[3]/100,t[4]):Yt.hasOwnProperty(e)?Gt(Yt[e]):"transparent"===e?new Kt(NaN,NaN,NaN,0):null}function Gt(e){return new Kt(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kt(e,t,n,r)}function $t(e){return e instanceof Nt||(e=qt(e)),e?new Kt((e=e.rgb()).r,e.g,e.b,e.opacity):new Kt}function Qt(e,t,n,r){return 1===arguments.length?$t(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Jt(){return"#"+tn(this.r)+tn(this.g)+tn(this.b)}function en(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function tn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function nn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new an(e,t,n,r)}function rn(e){if(e instanceof an)return new an(e.h,e.s,e.l,e.opacity);if(e instanceof Nt||(e=qt(e)),!e)return new an;if(e instanceof an)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new an(a,s,u,e.opacity)}function on(e,t,n,r){return 1===arguments.length?rn(e):new an(e,t,n,null==r?1:r)}function an(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function un(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function ln(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return un((n-r/t)*t,a,i,o,s)}}function cn(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return un((n-r/t)*t,i,o,a,s)}}function fn(e){return function(){return e}}function dn(e,t){return function(n){return e+n*t}}function hn(e,t){var n=t-e;return n?dn(e,n>180||n<-180?n-360*Math.round(n/360):n):fn(isNaN(e)?t:e)}function pn(e){return 1===(e=+e)?mn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):fn(isNaN(t)?n:t)}}function mn(e,t){var n=t-e;return n?dn(e,n):fn(isNaN(e)?t:e)}Ot(Nt,qt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ut,formatHex:Ut,formatHsl:function(){return rn(this).formatHsl()},formatRgb:Vt,toString:Vt}),Ot(Kt,Qt,Dt(Nt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?jt:Math.pow(jt,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Jt,formatHex:Jt,formatRgb:en,toString:en})),Ot(an,on,Dt(Nt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new an(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?jt:Math.pow(jt,e),new an(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Kt(sn(e>=240?e-240:e+120,i,r),sn(e,i,r),sn(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var vn=function e(t){var n=pn(t);function r(e,t){var r=n((e=Qt(e)).r,(t=Qt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=mn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function gn(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Qt(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var yn=gn(ln),bn=gn(cn);function wn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function xn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _n(e,t){return(xn(t)?wn:kn)(e,t)}function kn(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Dn(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Sn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Mn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Tn(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=Dn(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var En=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cn=new RegExp(En.source,"g");function On(e,t){var n,r,i,o=En.lastIndex=Cn.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=En.exec(e))&&(r=Cn.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Mn(n,r)})),o=Cn.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Dn(e,t){var n,r=typeof t;return null==t||"boolean"===r?fn(t):("number"===r?Mn:"string"===r?(n=qt(t))?(t=n,vn):On:t instanceof qt?vn:t instanceof Date?Sn:xn(t)?wn:Array.isArray(t)?kn:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Tn:Mn)(e,t)}function Nn(){for(var e,t=ct;e=t.sourceEvent;)t=e;return t}function jn(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function An(e,t,n){arguments.length<3&&(n=t,t=Nn().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return jn(e,r);return null}function Pn(e){var t=Nn();return t.changedTouches&&(t=t.changedTouches[0]),jn(e,t)}var Rn,In,Fn=0,Ln=0,zn=0,Bn=0,Zn=0,Wn=0,Hn="object"===typeof performance&&performance.now?performance:Date,Yn="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Un(){return Zn||(Yn(Vn),Zn=Hn.now()+Wn)}function Vn(){Zn=0}function qn(){this._call=this._time=this._next=null}function Gn(e,t,n){var r=new qn;return r.restart(e,t,n),r}function Xn(){Un(),++Fn;for(var e,t=Rn;t;)(e=Zn-t._time)>=0&&t._call.call(null,e),t=t._next;--Fn}function $n(){Zn=(Bn=Hn.now())+Wn,Fn=Ln=0;try{Xn()}finally{Fn=0,function(){var e,t,n=Rn,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Rn=t);In=e,Kn(r)}(),Zn=0}}function Qn(){var e=Hn.now(),t=e-Bn;t>1e3&&(Wn-=t,Bn=e)}function Kn(e){Fn||(Ln&&(Ln=clearTimeout(Ln)),e-Zn>24?(e<1/0&&(Ln=setTimeout($n,e-Hn.now()-Wn)),zn&&(zn=clearInterval(zn))):(zn||(Bn=Hn.now(),zn=setInterval(Qn,1e3)),Fn=1,Yn($n)))}function Jn(e,t,n){var r=new qn;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}qn.prototype=Gn.prototype={constructor:qn,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Un():+n)+(null==t?0:+t),this._next||In===this||(In?In._next=this:Rn=this,In=this),this._call=e,this._time=n,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};var er=de("start","end","cancel","interrupt"),tr=[];function nr(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return Jn(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(Jn((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Gn(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:er,tween:tr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function rr(e,t){var n=or(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function ir(e,t){var n=or(e,t);if(n.state>3)throw new Error("too late; already running");return n}function or(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function ar(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}var sr,ur,lr,cr,fr=180/Math.PI,dr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hr(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*fr,skewX:Math.atan(u)*fr,scaleX:a,scaleY:s}}function pr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:Mn(e,i)},{i:u-2,x:Mn(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Mn(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Mn(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Mn(e,n)},{i:s-2,x:Mn(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var mr=pr((function(e){return"none"===e?dr:(sr||(sr=document.createElement("DIV"),ur=document.documentElement,lr=document.defaultView),sr.style.transform=e,e=lr.getComputedStyle(ur.appendChild(sr),null).getPropertyValue("transform"),ur.removeChild(sr),hr(+(e=e.slice(7,-1).split(","))[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),vr=pr((function(e){return null==e?dr:(cr||(cr=document.createElementNS("http://www.w3.org/2000/svg","g")),cr.setAttribute("transform",e),(e=cr.transform.baseVal.consolidate())?hr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):dr)}),", ",")",")");function gr(e,t){var n,r;return function(){var i=ir(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function yr(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=ir(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function br(e,t,n){var r=e._id;return e.each((function(){var e=ir(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return or(e,r).value[t]}}function wr(e,t){var n;return("number"===typeof t?Mn:t instanceof qt?vn:(n=qt(t))?(t=n,vn):On)(e,t)}function xr(e){return function(){this.removeAttribute(e)}}function _r(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function Sr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function Mr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function Tr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Er(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Cr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Or(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Cr(e,i)),n}return i._value=t,i}function Dr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Er(e,i)),n}return i._value=t,i}function Nr(e,t){return function(){rr(this,e).delay=+t.apply(this,arguments)}}function jr(e,t){return t=+t,function(){rr(this,e).delay=t}}function Ar(e,t){return function(){ir(this,e).duration=+t.apply(this,arguments)}}function Pr(e,t){return t=+t,function(){ir(this,e).duration=t}}function Rr(e,t){if("function"!==typeof t)throw new Error;return function(){ir(this,e).ease=t}}function Ir(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?rr:ir;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var Fr=kt.prototype.constructor;function Lr(e){return function(){this.style.removeProperty(e)}}function zr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Br(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&zr(e,o,n)),r}return o._value=t,o}function Zr(e){return function(t){this.textContent=e.call(this,t)}}function Wr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Zr(r)),t}return r._value=e,r}var Hr=0;function Yr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ur(e){return kt().transition(e)}function Vr(){return++Hr}var qr=kt.prototype;function Gr(e){return e*e*e}function Xr(e){return--e*e*e+1}function $r(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Yr.prototype=Ur.prototype={constructor:Yr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=pe(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,nr(f[d],t,n,d,f,or(s,n)));return new Yr(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=ve(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=or(u,n),m=0,v=h.length;m<v;++m)(d=h[m])&&nr(d,t,n,m,h,p);o.push(h),a.push(u)}return new Yr(o,a,t,n)},filter:function(e){"function"!==typeof e&&(e=ge(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new Yr(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new Yr(a,this._parents,this._name,this._id)},selection:function(){return new Fr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Vr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=or(a,t);nr(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Yr(r,this._parents,e,n)},call:qr.call,nodes:qr.nodes,node:qr.node,size:qr.size,empty:qr.empty,each:qr.each,on:function(e,t){var n=this._id;return arguments.length<2?or(this.node(),n).on.on(e):this.each(Ir(n,e,t))},attr:function(e,t){var n=Me(e),r="transform"===n?vr:wr;return this.attrTween(e,"function"===typeof t?(n.local?Tr:Mr)(n,r,br(this,"attr."+e,t)):null==t?(n.local?_r:xr)(n):(n.local?Sr:kr)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Me(e);return this.tween(n,(r.local?Or:Dr)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?mr:wr;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Ie(this,e),a=(this.style.removeProperty(e),Ie(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,Lr(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Ie(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Ie(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,br(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=ir(this,e),l=u.on,c=null==u.value[a]?o||(o=Lr(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Ie(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Br(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(br(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Wr(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=or(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?gr:yr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Nr:jr)(t,e)):or(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Ar:Pr)(t,e)):or(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Rr(t,e)):or(this.node(),t).ease},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=ir(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t}))}))}};var Qr={time:null,delay:0,duration:250,ease:$r};function Kr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Qr.time=Un(),Qr;return n}kt.prototype.interrupt=function(e){return this.each((function(){ar(this,e)}))},kt.prototype.transition=function(e){var t,n;e instanceof Yr?(t=e._id,e=e._name):(t=Vr(),(n=Qr).time=Un(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&nr(a,e,t,l,s,n||Kr(a,t));return new Yr(r,this._parents,e,t)};var Jr=[null];function ei(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>1&&n.name===t)return new Yr([[e]],Jr,t,+r);return null}function ti(e){return function(){return e}}function ni(e,t,n){this.target=e,this.type=t,this.selection=n}function ri(){ct.stopImmediatePropagation()}function ii(){ct.preventDefault(),ct.stopImmediatePropagation()}var oi={name:"drag"},ai={name:"space"},si={name:"handle"},ui={name:"center"};function li(e){return[+e[0],+e[1]]}function ci(e){return[li(e[0]),li(e[1])]}function fi(e){return function(t){return An(t,ct.touches,e)}}var di={name:"x",handles:["w","e"].map(wi),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},hi={name:"y",handles:["n","s"].map(wi),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},pi={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(wi),input:function(e){return null==e?null:ci(e)},output:function(e){return e}},mi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},vi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},gi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},yi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function wi(e){return{type:e}}function xi(){return!ct.ctrlKey&&!ct.button}function _i(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function ki(){return navigator.maxTouchPoints||"ontouchstart"in this}function Si(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Mi(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Ti(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Ei(){return Di(di)}function Ci(){return Di(hi)}function Oi(){return Di(pi)}function Di(e){var t,n=_i,r=xi,i=ki,o=!0,a=de("start","brush","end"),s=6;function u(t){var n=t.property("__brush",m).selectAll(".overlay").data([wi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",mi.overlay).merge(n).each((function(){var e=Si(this).extent;St(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([wi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",mi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return mi[e.type]})),t.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",h).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var e=St(this),t=Si(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-s/2:t[0][0]-s/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-s/2:t[0][1]-s/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+s:s})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+s:s}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new f(e,t,n):r}function f(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function d(){if((!t||ct.touches)&&r.apply(this,arguments)){var n,i,a,s,u,f,d,h,p,m,v,g=this,y=ct.target.__data__.type,b="selection"===(o&&ct.metaKey?y="overlay":y)?oi:o&&ct.altKey?ui:si,w=e===hi?null:yi[y],x=e===di?null:bi[y],_=Si(g),k=_.extent,S=_.selection,M=k[0][0],T=k[0][1],E=k[1][0],C=k[1][1],O=0,D=0,N=w&&x&&o&&ct.shiftKey,j=ct.touches?fi(ct.changedTouches[0].identifier):Pn,A=j(g),P=A,R=c(g,arguments,!0).beforestart();"overlay"===y?(S&&(p=!0),_.selection=S=[[n=e===hi?M:A[0],a=e===di?T:A[1]],[u=e===hi?E:n,d=e===di?C:a]]):(n=S[0][0],a=S[0][1],u=S[1][0],d=S[1][1]),i=n,s=a,f=u,h=d;var I=St(g).attr("pointer-events","none"),F=I.selectAll(".overlay").attr("cursor",mi[y]);if(ct.touches)R.moved=z,R.ended=Z;else{var L=St(ct.view).on("mousemove.brush",z,!0).on("mouseup.brush",Z,!0);o&&L.on("keydown.brush",W,!0).on("keyup.brush",H,!0),Et(ct.view)}ri(),ar(g),l.call(g),R.start()}function z(){var e=j(g);!N||m||v||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?v=!0:m=!0),P=e,p=!0,ii(),B()}function B(){var e;switch(O=P[0]-A[0],D=P[1]-A[1],b){case ai:case oi:w&&(O=Math.max(M-n,Math.min(E-u,O)),i=n+O,f=u+O),x&&(D=Math.max(T-a,Math.min(C-d,D)),s=a+D,h=d+D);break;case si:w<0?(O=Math.max(M-n,Math.min(E-n,O)),i=n+O,f=u):w>0&&(O=Math.max(M-u,Math.min(E-u,O)),i=n,f=u+O),x<0?(D=Math.max(T-a,Math.min(C-a,D)),s=a+D,h=d):x>0&&(D=Math.max(T-d,Math.min(C-d,D)),s=a,h=d+D);break;case ui:w&&(i=Math.max(M,Math.min(E,n-O*w)),f=Math.max(M,Math.min(E,u+O*w))),x&&(s=Math.max(T,Math.min(C,a-D*x)),h=Math.max(T,Math.min(C,d+D*x)))}f<i&&(w*=-1,e=n,n=u,u=e,e=i,i=f,f=e,y in vi&&F.attr("cursor",mi[y=vi[y]])),h<s&&(x*=-1,e=a,a=d,d=e,e=s,s=h,h=e,y in gi&&F.attr("cursor",mi[y=gi[y]])),_.selection&&(S=_.selection),m&&(i=S[0][0],f=S[1][0]),v&&(s=S[0][1],h=S[1][1]),S[0][0]===i&&S[0][1]===s&&S[1][0]===f&&S[1][1]===h||(_.selection=[[i,s],[f,h]],l.call(g),R.brush())}function Z(){if(ri(),ct.touches){if(ct.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}else Ct(ct.view,p),L.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),F.attr("cursor",mi.overlay),_.selection&&(S=_.selection),Mi(S)&&(_.selection=null,l.call(g)),R.end()}function W(){switch(ct.keyCode){case 16:N=w&&x;break;case 18:b===si&&(w&&(u=f-O*w,n=i+O*w),x&&(d=h-D*x,a=s+D*x),b=ui,B());break;case 32:b!==si&&b!==ui||(w<0?u=f-O:w>0&&(n=i-O),x<0?d=h-D:x>0&&(a=s-D),b=ai,F.attr("cursor",mi.selection),B());break;default:return}ii()}function H(){switch(ct.keyCode){case 16:N&&(m=v=N=!1,B());break;case 18:b===ui&&(w<0?u=f:w>0&&(n=i),x<0?d=h:x>0&&(a=s),b=si,B());break;case 32:b===ai&&(ct.altKey?(w&&(u=f-O*w,n=i+O*w),x&&(d=h-D*x,a=s+D*x),b=ui):(w<0?u=f:w>0&&(n=i),x<0?d=h:x>0&&(a=s),b=si),F.attr("cursor",mi[y]),B());break;default:return}ii()}}function h(){c(this,arguments).moved()}function p(){c(this,arguments).ended()}function m(){var t=this.__brush||{selection:null};return t.extent=ci(n.apply(this,arguments)),t.dim=e,t}return u.move=function(t,n){t.selection?t.on("start.brush",(function(){c(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){c(this,arguments).end()})).tween("brush",(function(){var t=this,r=t.__brush,i=c(t,arguments),o=r.selection,a=e.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=Dn(o,a);function u(e){r.selection=1===e&&null===a?null:s(e),l.call(t),i.brush()}return null!==o&&null!==a?u:u(1)})):t.each((function(){var t=this,r=arguments,i=t.__brush,o=e.input("function"===typeof n?n.apply(t,r):n,i.extent),a=c(t,r).beforestart();ar(t),i.selection=null===o?null:o,l.call(t),a.start().brush().end()}))},u.clear=function(e){u.move(e,null)},f.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){vt(new ni(u,t,e.output(this.state.selection)),a.apply,a,[t,this.that,this.args])}},u.extent=function(e){return arguments.length?(n="function"===typeof e?e:ti(ci(e)),u):n},u.filter=function(e){return arguments.length?(r="function"===typeof e?e:ti(!!e),u):r},u.touchable=function(e){return arguments.length?(i="function"===typeof e?e:ti(!!e),u):i},u.handleSize=function(e){return arguments.length?(s=+e,u):s},u.keyModifiers=function(e){return arguments.length?(o=!!e,u):o},u.on=function(){var e=a.on.apply(a,arguments);return e===a?u:e},u}var Ni=Math.cos,ji=Math.sin,Ai=Math.PI,Pi=Ai/2,Ri=2*Ai,Ii=Math.max;function Fi(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function Li(){var e=0,t=null,n=null,r=null;function i(i){var o,a,s,u,l,c,f=i.length,d=[],h=k(f),p=[],m=[],v=m.groups=new Array(f),g=new Array(f*f);for(o=0,l=-1;++l<f;){for(a=0,c=-1;++c<f;)a+=i[l][c];d.push(a),p.push(k(f)),o+=a}for(t&&h.sort((function(e,n){return t(d[e],d[n])})),n&&p.forEach((function(e,t){e.sort((function(e,r){return n(i[t][e],i[t][r])}))})),u=(o=Ii(0,Ri-e*f)/o)?e:Ri/f,a=0,l=-1;++l<f;){for(s=a,c=-1;++c<f;){var y=h[l],b=p[y][c],w=i[y][b],x=a,_=a+=w*o;g[b*f+y]={index:y,subindex:b,startAngle:x,endAngle:_,value:w}}v[y]={index:y,startAngle:s,endAngle:a,value:d[y]},a+=u}for(l=-1;++l<f;)for(c=l-1;++c<f;){var S=g[c*f+l],M=g[l*f+c];(S.value||M.value)&&m.push(S.value<M.value?{source:M,target:S}:{source:S,target:M})}return r?m.sort(r):m}return i.padAngle=function(t){return arguments.length?(e=Ii(0,t),i):e},i.sortGroups=function(e){return arguments.length?(t=e,i):t},i.sortSubgroups=function(e){return arguments.length?(n=e,i):n},i.sortChords=function(e){return arguments.length?(null==e?r=null:(r=Fi(e))._=e,i):r&&r._},i}var zi=Array.prototype.slice;function Bi(e){return function(){return e}}var Zi=Math.PI,Wi=2*Zi,Hi=1e-6,Yi=Wi-Hi;function Ui(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Vi(){return new Ui}Ui.prototype=Vi.prototype={constructor:Ui,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>Hi)if(Math.abs(c*s-u*l)>Hi&&i){var d=n-o,h=r-a,p=s*s+u*u,m=d*d+h*h,v=Math.sqrt(p),g=Math.sqrt(f),y=i*Math.tan((Zi-Math.acos((p+f-m)/(2*v*g)))/2),b=y/g,w=y/v;Math.abs(b-1)>Hi&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*d>l*h)+","+(this._x1=e+w*s)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Hi||Math.abs(this._y1-l)>Hi)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Wi+Wi),f>Yi?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>Hi&&(this._+="A"+n+","+n+",0,"+ +(f>=Zi)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var qi=Vi;function Gi(e){return e.source}function Xi(e){return e.target}function $i(e){return e.radius}function Qi(e){return e.startAngle}function Ki(e){return e.endAngle}function Ji(){var e=Gi,t=Xi,n=$i,r=Qi,i=Ki,o=null;function a(){var a,s=zi.call(arguments),u=e.apply(this,s),l=t.apply(this,s),c=+n.apply(this,(s[0]=u,s)),f=r.apply(this,s)-Pi,d=i.apply(this,s)-Pi,h=c*Ni(f),p=c*ji(f),m=+n.apply(this,(s[0]=l,s)),v=r.apply(this,s)-Pi,g=i.apply(this,s)-Pi;if(o||(o=a=qi()),o.moveTo(h,p),o.arc(0,0,c,f,d),f===v&&d===g||(o.quadraticCurveTo(0,0,m*Ni(v),m*ji(v)),o.arc(0,0,m,v,g)),o.quadraticCurveTo(0,0,h,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"===typeof e?e:Bi(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:Bi(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:Bi(+e),a):i},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}var eo="$";function to(){}function no(e,t){var n=new to;if(e instanceof to)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}to.prototype=no.prototype={constructor:to,has:function(e){return eo+e in this},get:function(e){return this[eo+e]},set:function(e,t){return this[eo+e]=t,this},remove:function(e){var t=eo+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===eo&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===eo&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===eo&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===eo&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===eo&&++e;return e},empty:function(){for(var e in this)if(e[0]===eo)return!1;return!0},each:function(e){for(var t in this)t[0]===eo&&e(this[t],t.slice(1),this)}};var ro=no;function io(){var e,t,n,r=[],i=[];function o(n,i,a,s){if(i>=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var u,l,c,f=-1,d=n.length,h=r[i++],p=ro(),m=a();++f<d;)(c=p.get(u=h(l=n[f])+""))?c.push(l):p.set(u,[l]);return p.each((function(e,t){s(m,t,o(e,i,a,s))})),m}function a(e,n){if(++n>r.length)return e;var o,s=i[n-1];return null!=t&&n>=r.length?o=e.entries():(o=[],e.each((function(e,t){o.push({key:t,values:a(e,n)})}))),null!=s?o.sort((function(e,t){return s(e.key,t.key)})):o}return n={object:function(e){return o(e,0,oo,ao)},map:function(e){return o(e,0,so,uo)},entries:function(e){return a(o(e,0,so,uo),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}}function oo(){return{}}function ao(e,t,n){e[t]=n}function so(){return ro()}function uo(e,t,n){e.set(t,n)}function lo(){}var co=ro.prototype;function fo(e,t){var n=new lo;if(e instanceof lo)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}lo.prototype=fo.prototype={constructor:lo,has:co.has,add:function(e){return this[eo+(e+="")]=e,this},remove:co.remove,clear:co.clear,values:co.keys,size:co.size,empty:co.empty,each:co.each};var ho=fo;function po(e){var t=[];for(var n in e)t.push(n);return t}function mo(e){var t=[];for(var n in e)t.push(e[n]);return t}function vo(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t}var go=Math.PI/180,yo=180/Math.PI,bo=.96422,wo=.82521,xo=4/29,_o=6/29,ko=3*_o*_o;function So(e){if(e instanceof Eo)return new Eo(e.l,e.a,e.b,e.opacity);if(e instanceof Ro)return Io(e);e instanceof Kt||(e=$t(e));var t,n,r=No(e.r),i=No(e.g),o=No(e.b),a=Co((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Co((.4360747*r+.3850649*i+.1430804*o)/bo),n=Co((.0139322*r+.0971045*i+.7141733*o)/wo)),new Eo(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Mo(e,t){return new Eo(e,0,0,null==t?1:t)}function To(e,t,n,r){return 1===arguments.length?So(e):new Eo(e,t,n,null==r?1:r)}function Eo(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Co(e){return e>.008856451679035631?Math.pow(e,1/3):e/ko+xo}function Oo(e){return e>_o?e*e*e:ko*(e-xo)}function Do(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function No(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jo(e){if(e instanceof Ro)return new Ro(e.h,e.c,e.l,e.opacity);if(e instanceof Eo||(e=So(e)),0===e.a&&0===e.b)return new Ro(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yo;return new Ro(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Ao(e,t,n,r){return 1===arguments.length?jo(e):new Ro(n,t,e,null==r?1:r)}function Po(e,t,n,r){return 1===arguments.length?jo(e):new Ro(e,t,n,null==r?1:r)}function Ro(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Io(e){if(isNaN(e.h))return new Eo(e.l,0,0,e.opacity);var t=e.h*go;return new Eo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ot(Eo,To,Dt(Nt,{brighter:function(e){return new Eo(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Eo(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Kt(Do(3.1338561*(t=bo*Oo(t))-1.6168667*(e=1*Oo(e))-.4906146*(n=wo*Oo(n))),Do(-.9787684*t+1.9161415*e+.033454*n),Do(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ot(Ro,Po,Dt(Nt,{brighter:function(e){return new Ro(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Ro(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Io(this).rgb()}}));var Fo=-.14861,Lo=1.78277,zo=-.29227,Bo=-.90649,Zo=1.97294,Wo=Zo*Bo,Ho=Zo*Lo,Yo=Lo*zo-Bo*Fo;function Uo(e){if(e instanceof qo)return new qo(e.h,e.s,e.l,e.opacity);e instanceof Kt||(e=$t(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Yo*r+Wo*t-Ho*n)/(Yo+Wo-Ho),o=r-i,a=(Zo*(n-i)-zo*o)/Bo,s=Math.sqrt(a*a+o*o)/(Zo*i*(1-i)),u=s?Math.atan2(a,o)*yo-120:NaN;return new qo(u<0?u+360:u,s,i,e.opacity)}function Vo(e,t,n,r){return 1===arguments.length?Uo(e):new qo(e,t,n,null==r?1:r)}function qo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ot(qo,Vo,Dt(Nt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new qo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?jt:Math.pow(jt,e),new qo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*go,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Kt(255*(t+n*(Fo*r+Lo*i)),255*(t+n*(zo*r+Bo*i)),255*(t+n*(Zo*r)),this.opacity)}}));var Go=Array.prototype.slice;function Xo(e,t){return e-t}function $o(e){return function(){return e}}function Qo(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Ko(e,t[r]))return n;return 0}function Ko(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var u=e[o],l=u[0],c=u[1],f=e[s],d=f[0],h=f[1];if(Jo(u,f,t))return 0;c>r!==h>r&&n<(d-l)*(r-c)/(h-c)+l&&(i=-i)}return i}function Jo(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}function ea(){}var ta=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function na(){var e=1,t=1,n=D,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Xo);else{var r=g(e),i=r[0],a=r[1];t=O(i,a,t),t=k(Math.floor(i/t)*t,Math.floor(a/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,u,l,c,f,d=new Array,h=new Array;o=s=-1,l=n[0]>=r,ta[l<<1].forEach(p);for(;++o<e-1;)u=l,l=n[o+1]>=r,ta[u|l<<1].forEach(p);ta[l<<0].forEach(p);for(;++s<t-1;){for(o=-1,l=n[s*e+e]>=r,c=n[s*e]>=r,ta[l<<1|c<<2].forEach(p);++o<e-1;)u=l,l=n[s*e+e+o+1]>=r,f=c,c=n[s*e+o+1]>=r,ta[u|l<<1|c<<2|f<<3].forEach(p);ta[l|c<<3].forEach(p)}o=-1,c=n[s*e]>=r,ta[c<<2].forEach(p);for(;++o<e-1;)f=c,c=n[s*e+o+1]>=r,ta[c<<2|f<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+o,e[0][1]+s],u=[e[1][0]+o,e[1][1]+s],l=a(r),c=a(u);(t=h[l])?(n=d[c])?(delete h[t.end],delete d[n.start],t===n?(t.ring.push(u),i(t.ring)):d[t.start]=h[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete h[t.end],t.ring.push(u),h[t.end=c]=t):(t=d[c])?(n=h[l])?(delete d[t.start],delete h[n.end],t===n?(t.ring.push(u),i(t.ring)):d[n.start]=h[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(r),d[t.start=l]=t):d[l]=h[c]={start:l,end:c,ring:[r,u]}}ta[c<<3].forEach(p)}(n,i,(function(e){r(e,n,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}(e)>0?o.push([e]):s.push(e)})),s.forEach((function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==Qo((t=o[n])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,r,i){n.forEach((function(n){var o,a=n[0],s=n[1],u=0|a,l=0|s,c=r[l*e+u];a>0&&a<e&&u===a&&(o=r[l*e+u-1],n[0]=a+(i-o)/(c-o)-.5),s>0&&s<t&&l===s&&(o=r[(l-1)*e+u],n[1]=s+(i-o)/(c-o)-.5)}))}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(r>0)||!(o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?$o(Go.call(e)):$o(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:ea,i):r===s},i}function ra(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<i;++a)for(var s=0,u=0;s<r+n;++s)s<r&&(u+=e.data[s+a*r]),s>=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function ia(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<r;++a)for(var s=0,u=0;s<i+n;++s)s<i&&(u+=e.data[a+s*r]),s>=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function oa(e){return e[0]}function aa(e){return e[1]}function sa(){return 1}function ua(){var e=oa,t=aa,n=sa,r=960,i=500,o=20,a=2,s=3*o,u=r+2*s>>a,l=i+2*s>>a,c=$o(20);function f(r){var i=new Float32Array(u*l),f=new Float32Array(u*l);r.forEach((function(r,o,c){var f=+e(r,o,c)+s>>a,d=+t(r,o,c)+s>>a,h=+n(r,o,c);f>=0&&f<u&&d>=0&&d<l&&(i[f+d*u]+=h)})),ra({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),ia({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),ra({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),ia({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),ra({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),ia({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a);var h=c(i);if(!Array.isArray(h)){var p=R(i);h=O(0,p,h),(h=k(0,Math.floor(p/h)*h,h)).shift()}return na().thresholds(h).size([u,l])(i).map(d)}function d(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(h),e}function h(e){e.forEach(p)}function p(e){e.forEach(m)}function m(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function v(){return u=r+2*(s=3*o)>>a,l=i+2*s>>a,f}return f.x=function(t){return arguments.length?(e="function"===typeof t?t:$o(+t),f):e},f.y=function(e){return arguments.length?(t="function"===typeof e?e:$o(+e),f):t},f.weight=function(e){return arguments.length?(n="function"===typeof e?e:$o(+e),f):n},f.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0)&&!(t>=0))throw new Error("invalid size");return r=t,i=n,v()},f.cellSize=function(e){if(!arguments.length)return 1<<a;if(!((e=+e)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),v()},f.thresholds=function(e){return arguments.length?(c="function"===typeof e?e:Array.isArray(e)?$o(Go.call(e)):$o(e),f):c},f.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),v()},f}function la(e){return function(){return e}}function ca(e,t,n,r,i,o,a,s,u,l){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=u,this._=l}function fa(){return!ct.ctrlKey&&!ct.button}function da(){return this.parentNode}function ha(e){return null==e?{x:ct.x,y:ct.y}:e}function pa(){return navigator.maxTouchPoints||"ontouchstart"in this}function ma(){var e,t,n,r,i=fa,o=da,a=ha,s=pa,u={},l=de("start","drag","end"),c=0,f=0;function d(e){e.on("mousedown.drag",h).filter(s).on("touchstart.drag",v).on("touchmove.drag",g).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(){if(!r&&i.apply(this,arguments)){var a=b("mouse",o.apply(this,arguments),Pn,this,arguments);a&&(St(ct.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),Et(ct.view),Mt(),n=!1,e=ct.clientX,t=ct.clientY,a("start"))}}function p(){if(Tt(),!n){var r=ct.clientX-e,i=ct.clientY-t;n=r*r+i*i>f}u.mouse("drag")}function m(){St(ct.view).on("mousemove.drag mouseup.drag",null),Ct(ct.view,n),Tt(),u.mouse("end")}function v(){if(i.apply(this,arguments)){var e,t,n=ct.changedTouches,r=o.apply(this,arguments),a=n.length;for(e=0;e<a;++e)(t=b(n[e].identifier,r,An,this,arguments))&&(Mt(),t("start"))}}function g(){var e,t,n=ct.changedTouches,r=n.length;for(e=0;e<r;++e)(t=u[n[e].identifier])&&(Tt(),t("drag"))}function y(){var e,t,n=ct.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<i;++e)(t=u[n[e].identifier])&&(Mt(),t("end"))}function b(e,t,n,r,i){var o,s,f,h=n(t,e),p=l.copy();if(vt(new ca(d,"beforestart",o,e,c,h[0],h[1],0,0,p),(function(){return null!=(ct.subject=o=a.apply(r,i))&&(s=o.x-h[0]||0,f=o.y-h[1]||0,!0)})))return function a(l){var m,v=h;switch(l){case"start":u[e]=a,m=c++;break;case"end":delete u[e],--c;case"drag":h=n(t,e),m=c}vt(new ca(d,l,o,e,m,h[0]+s,h[1]+f,h[0]-v[0],h[1]-v[1],p),p.apply,p,[l,r,i])}}return d.filter=function(e){return arguments.length?(i="function"===typeof e?e:la(!!e),d):i},d.container=function(e){return arguments.length?(o="function"===typeof e?e:la(e),d):o},d.subject=function(e){return arguments.length?(a="function"===typeof e?e:la(e),d):a},d.touchable=function(e){return arguments.length?(s="function"===typeof e?e:la(!!e),d):s},d.on=function(){var e=l.on.apply(l,arguments);return e===l?d:e},d.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,d):Math.sqrt(f)},d}ca.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var va={},ga={};function ya(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function ba(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function wa(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function xa(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":function(e){return e<0?"-"+wa(-e,6):e>9999?"+"+wa(e,6):wa(e,4)}(e.getUTCFullYear())+"-"+wa(e.getUTCMonth()+1,2)+"-"+wa(e.getUTCDate(),2)+(i?"T"+wa(t,2)+":"+wa(n,2)+":"+wa(r,2)+"."+wa(i,3)+"Z":r?"T"+wa(t,2)+":"+wa(n,2)+":"+wa(r,2)+"Z":n||t?"T"+wa(t,2)+":"+wa(n,2)+"Z":"")}function _a(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,a=0,s=0,u=o<=0,l=!1;function c(){if(u)return ga;if(l)return l=!1,va;var t,r,i=a;if(34===e.charCodeAt(i)){for(;a++<o&&34!==e.charCodeAt(a)||34===e.charCodeAt(++a););return(t=a)>=o?u=!0:10===(r=e.charCodeAt(a++))?l=!0:13===r&&(l=!0,10===e.charCodeAt(a)&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=e.charCodeAt(t=a++)))l=!0;else if(13===r)l=!0,10===e.charCodeAt(a)&&++a;else if(r!==n)continue;return e.slice(i,t)}return u=!0,e.slice(i,o)}for(10===e.charCodeAt(o-1)&&--o,13===e.charCodeAt(o-1)&&--o;(r=c())!==ga;){for(var f=[];r!==va&&r!==ga;)f.push(r),r=c();t&&null==(f=t(f,s++))||i.push(f)}return i}function i(t,n){return t.map((function(t){return n.map((function(e){return a(t[e])})).join(e)}))}function o(t){return t.map(a).join(e)}function a(e){return null==e?"":e instanceof Date?xa(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,(function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=ya(e);return function(r,i){return t(n(r),i,e)}}(e,t):ya(e)}));return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=ba(t)),[n.map(a).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=ba(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:a}}var ka=_a(","),Sa=ka.parse,Ma=ka.parseRows,Ta=ka.format,Ea=ka.formatBody,Ca=ka.formatRows,Oa=ka.formatRow,Da=ka.formatValue,Na=_a("\t"),ja=Na.parse,Aa=Na.parseRows,Pa=Na.format,Ra=Na.formatBody,Ia=Na.formatRows,Fa=Na.formatRow,La=Na.formatValue;function za(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Ba&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e}var Ba=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Za(e){return+e}function Wa(e){return e*e}function Ha(e){return e*(2-e)}function Ya(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Ua=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Va=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),qa=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Ga=Math.PI,Xa=Ga/2;function $a(e){return 1===+e?1:1-Math.cos(e*Xa)}function Qa(e){return Math.sin(e*Xa)}function Ka(e){return(1-Math.cos(Ga*e))/2}function Ja(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function es(e){return Ja(1-+e)}function ts(e){return 1-Ja(e)}function ns(e){return((e*=2)<=1?Ja(1-e):2-Ja(e-1))/2}function rs(e){return 1-Math.sqrt(1-e*e)}function is(e){return Math.sqrt(1- --e*e)}function os(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var as=4/11,ss=7.5625;function us(e){return 1-ls(1-e)}function ls(e){return(e=+e)<as?ss*e*e:e<.7272727272727273?ss*(e-=.5454545454545454)*e+.75:e<.9090909090909091?ss*(e-=.8181818181818182)*e+.9375:ss*(e-=.9545454545454546)*e+.984375}function cs(e){return((e*=2)<=1?1-ls(1-e):ls(e-1)+1)/2}var fs=1.70158,ds=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(fs),hs=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(fs),ps=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(fs),ms=2*Math.PI,vs=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ms);function i(e){return t*Ja(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*ms)},i.period=function(n){return e(t,n)},i}(1,.3),gs=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ms);function i(e){return 1-t*Ja(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*ms)},i.period=function(n){return e(t,n)},i}(1,.3),ys=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ms);function i(e){return((e=2*e-1)<0?t*Ja(-e)*Math.sin((r-e)/n):2-t*Ja(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*ms)},i.period=function(n){return e(t,n)},i}(1,.3);function bs(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function ws(e,t){return fetch(e,t).then(bs)}function xs(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function _s(e,t){return fetch(e,t).then(xs)}function ks(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Ss(e,t){return fetch(e,t).then(ks)}function Ms(e){return function(t,n,r){return 2===arguments.length&&"function"===typeof n&&(r=n,n=void 0),Ss(t,n).then((function(t){return e(t,r)}))}}function Ts(e,t,n,r){3===arguments.length&&"function"===typeof n&&(r=n,n=void 0);var i=_a(e);return Ss(t,n).then((function(e){return i.parse(e,r)}))}var Es=Ms(Sa),Cs=Ms(ja);function Os(e,t){return new Promise((function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e}))}function Ds(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function Ns(e,t){return fetch(e,t).then(Ds)}function js(e){return function(t,n){return Ss(t,n).then((function(t){return(new DOMParser).parseFromString(t,e)}))}}var As=js("application/xml"),Ps=js("text/html"),Rs=js("image/svg+xml");function Is(e,t){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r<o;++r)a+=(i=n[r]).x,s+=i.y;for(a=a/o-e,s=s/o-t,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=s}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r}function Fs(e){return function(){return e}}function Ls(){return 1e-6*(Math.random()-.5)}function zs(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,l,c,f,d,h=e._root,p={data:r},m=e._x0,v=e._y0,g=e._x1,y=e._y1;if(!h)return e._root=p,e;for(;h.length;)if((l=t>=(o=(m+g)/2))?m=o:g=o,(c=n>=(a=(v+y)/2))?v=a:y=a,i=h,!(h=h[f=c<<1|l]))return i[f]=p,e;if(s=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===s&&n===u)return p.next=h,i?i[f]=p:e._root=p,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(l=t>=(o=(m+g)/2))?m=o:g=o,(c=n>=(a=(v+y)/2))?v=a:y=a}while((f=c<<1|l)===(d=(u>=a)<<1|s>=o));return i[d]=h,i[f]=p,e}function Bs(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function Zs(e){return e[0]}function Ws(e){return e[1]}function Hs(e,t,n){var r=new Ys(null==t?Zs:t,null==n?Ws:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function Ys(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Us(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Vs=Hs.prototype=Ys.prototype;function qs(e){return e.x+e.vx}function Gs(e){return e.y+e.vy}function Xs(e){var t,n,r=1,i=1;function o(){for(var e,o,s,u,l,c,f,d=t.length,h=0;h<i;++h)for(o=Hs(t,qs,Gs).visitAfter(a),e=0;e<d;++e)s=t[e],c=n[s.index],f=c*c,u=s.x+s.vx,l=s.y+s.vy,o.visit(p);function p(e,t,n,i,o){var a=e.data,d=e.r,h=c+d;if(!a)return t>u+h||i<u-h||n>l+h||o<l-h;if(a.index>s.index){var p=u-a.x-a.vx,m=l-a.y-a.vy,v=p*p+m*m;v<h*h&&(0===p&&(v+=(p=Ls())*p),0===m&&(v+=(m=Ls())*m),v=(h-(v=Math.sqrt(v)))/v*r,s.vx+=(p*=v)*(h=(d*=d)/(f+d)),s.vy+=(m*=v)*h,a.vx-=p*(h=1-h),a.vy-=m*h)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function s(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!==typeof e&&(e=Fs(null==e?1:+e)),o.initialize=function(e){t=e,s()},o.iterations=function(e){return arguments.length?(i=+e,o):i},o.strength=function(e){return arguments.length?(r=+e,o):r},o.radius=function(t){return arguments.length?(e="function"===typeof t?t:Fs(+t),s(),o):e},o}function $s(e){return e.index}function Qs(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ks(e){var t,n,r,i,o,a=$s,s=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},u=Fs(30),l=1;function c(r){for(var i=0,a=e.length;i<l;++i)for(var s,u,c,f,d,h,p,m=0;m<a;++m)u=(s=e[m]).source,f=(c=s.target).x+c.vx-u.x-u.vx||Ls(),d=c.y+c.vy-u.y-u.vy||Ls(),f*=h=((h=Math.sqrt(f*f+d*d))-n[m])/h*r*t[m],d*=h,c.vx-=f*(p=o[m]),c.vy-=d*p,u.vx+=f*(p=1-p),u.vy+=d*p}function f(){if(r){var s,u,l=r.length,c=e.length,f=ro(r,a);for(s=0,i=new Array(l);s<c;++s)(u=e[s]).index=s,"object"!==typeof u.source&&(u.source=Qs(f,u.source)),"object"!==typeof u.target&&(u.target=Qs(f,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(s=0,o=new Array(c);s<c;++s)u=e[s],o[s]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);t=new Array(c),d(),n=new Array(c),h()}}function d(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+s(e[n],n,e)}function h(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+u(e[t],t,e)}return null==e&&(e=[]),c.initialize=function(e){r=e,f()},c.links=function(t){return arguments.length?(e=t,f(),c):e},c.id=function(e){return arguments.length?(a=e,c):a},c.iterations=function(e){return arguments.length?(l=+e,c):l},c.strength=function(e){return arguments.length?(s="function"===typeof e?e:Fs(+e),d(),c):s},c.distance=function(e){return arguments.length?(u="function"===typeof e?e:Fs(+e),h(),c):u},c}function Js(e){return e.x}function eu(e){return e.y}Vs.copy=function(){var e,t,n=new Ys(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Us(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=Us(t));return n},Vs.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return zs(this.cover(t,n),t,n,e)},Vs.addAll=function(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),u=1/0,l=1/0,c=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<u&&(u=r),r>c&&(c=r),i<l&&(l=i),i>f&&(f=i));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),n=0;n<o;++n)zs(this,a[n],s[n],e[n]);return this},Vs.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a,s,u=i-n,l=this._root;n>e||e>=i||r>t||t>=o;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=l,l=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Vs.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},Vs.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Vs.find=function(e,t,n){var r,i,o,a,s,u,l,c=this._x0,f=this._y0,d=this._x1,h=this._y1,p=[],m=this._root;for(m&&p.push(new Bs(m,c,f,d,h)),null==n?n=1/0:(c=e-n,f=t-n,d=e+n,h=t+n,n*=n);u=p.pop();)if(!(!(m=u.node)||(i=u.x0)>d||(o=u.y0)>h||(a=u.x1)<c||(s=u.y1)<f))if(m.length){var v=(i+a)/2,g=(o+s)/2;p.push(new Bs(m[3],v,g,a,s),new Bs(m[2],i,g,v,s),new Bs(m[1],v,o,a,g),new Bs(m[0],i,o,v,g)),(l=(t>=g)<<1|e>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var y=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),w=y*y+b*b;if(w<n){var x=Math.sqrt(n=w);c=e-x,f=t-x,d=e+x,h=t+x,r=m.data}}return r},Vs.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,l,c,f,d,h=this._root,p=this._x0,m=this._y0,v=this._x1,g=this._y1;if(!h)return this;if(h.length)for(;;){if((l=o>=(s=(p+v)/2))?p=s:v=s,(c=a>=(u=(m+g)/2))?m=u:g=u,t=h,!(h=h[f=c<<1|l]))return this;if(!h.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=i,this)},Vs.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},Vs.root=function(){return this._root},Vs.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},Vs.visit=function(e){var t,n,r,i,o,a,s=[],u=this._root;for(u&&s.push(new Bs(u,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(u=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&u.length){var l=(r+o)/2,c=(i+a)/2;(n=u[3])&&s.push(new Bs(n,l,c,o,a)),(n=u[2])&&s.push(new Bs(n,r,c,l,a)),(n=u[1])&&s.push(new Bs(n,l,i,o,c)),(n=u[0])&&s.push(new Bs(n,r,i,l,c))}return this},Vs.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new Bs(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,u=t.x1,l=t.y1,c=(a+u)/2,f=(s+l)/2;(o=i[0])&&n.push(new Bs(o,a,s,c,f)),(o=i[1])&&n.push(new Bs(o,c,s,u,f)),(o=i[2])&&n.push(new Bs(o,a,f,c,l)),(o=i[3])&&n.push(new Bs(o,c,f,u,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},Vs.x=function(e){return arguments.length?(this._x=e,this):this._x},Vs.y=function(e){return arguments.length?(this._y=e,this):this._y};var tu=Math.PI*(3-Math.sqrt(5));function nu(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=ro(),u=Gn(c),l=de("tick","end");function c(){f(),l.call("tick",t),n<r&&(u.stop(),l.call("end",t))}function f(r){var u,l,c=e.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,s.each((function(e){e(n)})),u=0;u<c;++u)null==(l=e[u]).fx?l.x+=l.vx*=a:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=a:(l.y=l.fy,l.vy=0);return t}function d(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=10*Math.sqrt(n),o=n*tu;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function h(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),d(),t={tick:f,restart:function(){return u.restart(c),t},stop:function(){return u.stop(),t},nodes:function(n){return arguments.length?(e=n,d(),s.each(h),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},force:function(e,n){return arguments.length>1?(null==n?s.remove(e):s.set(e,h(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l<c;++l)(a=(i=t-(s=e[l]).x)*i+(o=n-s.y)*o)<r&&(u=s,r=a);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function ru(){var e,t,n,r,i=Fs(-30),o=1,a=1/0,s=.81;function u(r){var i,o=e.length,a=Hs(e,Js,eu).visitAfter(c);for(n=r,i=0;i<o;++i)t=e[i],a.visit(f)}function l(){if(e){var t,n,o=e.length;for(r=new Array(o),t=0;t<o;++t)n=e[t],r[n.index]=+i(n,t,e)}}function c(e){var t,n,i,o,a,s=0,u=0;if(e.length){for(i=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,u+=n,i+=n*t.x,o+=n*t.y);e.x=i/u,e.y=o/u}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=r[t.data.index]}while(t=t.next)}e.value=s}function f(e,i,u,l){if(!e.value)return!0;var c=e.x-t.x,f=e.y-t.y,d=l-i,h=c*c+f*f;if(d*d/s<h)return h<a&&(0===c&&(h+=(c=Ls())*c),0===f&&(h+=(f=Ls())*f),h<o&&(h=Math.sqrt(o*h)),t.vx+=c*e.value*n/h,t.vy+=f*e.value*n/h),!0;if(!(e.length||h>=a)){(e.data!==t||e.next)&&(0===c&&(h+=(c=Ls())*c),0===f&&(h+=(f=Ls())*f),h<o&&(h=Math.sqrt(o*h)));do{e.data!==t&&(d=r[e.data.index]*n/h,t.vx+=c*d,t.vy+=f*d)}while(e=e.next)}}return u.initialize=function(t){e=t,l()},u.strength=function(e){return arguments.length?(i="function"===typeof e?e:Fs(+e),l(),u):i},u.distanceMin=function(e){return arguments.length?(o=e*e,u):Math.sqrt(o)},u.distanceMax=function(e){return arguments.length?(a=e*e,u):Math.sqrt(a)},u.theta=function(e){return arguments.length?(s=e*e,u):Math.sqrt(s)},u}function iu(e,t,n){var r,i,o,a=Fs(.1);function s(e){for(var a=0,s=r.length;a<s;++a){var u=r[a],l=u.x-t||1e-6,c=u.y-n||1e-6,f=Math.sqrt(l*l+c*c),d=(o[a]-f)*i[a]*e/f;u.vx+=l*d,u.vy+=c*d}}function u(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+a(r[t],t,r)}}return"function"!==typeof e&&(e=Fs(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,u()},s.strength=function(e){return arguments.length?(a="function"===typeof e?e:Fs(+e),u(),s):a},s.radius=function(t){return arguments.length?(e="function"===typeof t?t:Fs(+t),u(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s}function ou(e){var t,n,r,i=Fs(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!==typeof e&&(e=Fs(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"===typeof e?e:Fs(+e),a(),o):i},o.x=function(t){return arguments.length?(e="function"===typeof t?t:Fs(+t),a(),o):e},o}function au(e){var t,n,r,i=Fs(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!==typeof e&&(e=Fs(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"===typeof e?e:Fs(+e),a(),o):i},o.y=function(t){return arguments.length?(e="function"===typeof t?t:Fs(+t),a(),o):e},o}function su(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 uu(e){return(e=su(Math.abs(e)))?e[1]:NaN}var lu,cu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fu(e){if(!(t=cu.exec(e)))throw new Error("invalid format: "+e);var t;return new du({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 du(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 hu(e,t){var n=su(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}fu.prototype=du.prototype,du.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 pu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return hu(100*e,t)},r:hu,s:function(e,t){var n=su(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(lu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+su(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function mu(e){return e}var vu,gu,yu,bu=Array.prototype.map,wu=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function xu(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?mu:(t=bu.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?mu:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(bu.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=fu(e)).fill,n=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,m=e.comma,v=e.precision,g=e.trim,y=e.type;"n"===y?(m=!0,y="g"):pu[y]||(void 0===v&&(v=12),g=!0,y="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===d?o:/[%p]/.test(y)?u:"",x=pu[y],_=/[defgprs%]/.test(y);function k(e){var i,o,u,d=b,k=w;if("c"===y)k=x(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),v),g&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:l:"-"===f||"("===f?"":f)+d,k=("s"===y?wu[8+lu/3]:"")+k+(S&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){k=(46===u?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var M=d.length+e.length+k.length,T=M<p?new Array(p-M+1).join(t):"";switch(m&&h&&(e=r(T+e,T.length?p-k.length:1/0),T=""),n){case"<":e=d+e+k+T;break;case"=":e=d+T+e+k;break;case"^":e=T.slice(0,M=T.length>>1)+d+e+k+T.slice(M);break;default:e=T+d+e+k}return s(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=fu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(uu(t)/3))),i=Math.pow(10,-r),o=wu[8+r/3];return function(e){return n(i*e)+o}}}}function _u(e){return vu=xu(e),gu=vu.format,yu=vu.formatPrefix,vu}function ku(e){return Math.max(0,-uu(Math.abs(e)))}function Su(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(uu(t)/3)))-uu(Math.abs(e)))}function Mu(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,uu(t)-uu(e))+1}function Tu(){return new Eu}function Eu(){this.reset()}_u({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Eu.prototype={constructor:Eu,reset:function(){this.s=this.t=0},add:function(e){Ou(Cu,e,this.t),Ou(this,Cu.s,this.s),this.s?this.t+=Cu.t:this.s=Cu.t},valueOf:function(){return this.s}};var Cu=new Eu;function Ou(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var Du=1e-6,Nu=1e-12,ju=Math.PI,Au=ju/2,Pu=ju/4,Ru=2*ju,Iu=180/ju,Fu=ju/180,Lu=Math.abs,zu=Math.atan,Bu=Math.atan2,Zu=Math.cos,Wu=Math.ceil,Hu=Math.exp,Yu=(Math.floor,Math.log),Uu=Math.pow,Vu=Math.sin,qu=Math.sign||function(e){return e>0?1:e<0?-1:0},Gu=Math.sqrt,Xu=Math.tan;function $u(e){return e>1?0:e<-1?ju:Math.acos(e)}function Qu(e){return e>1?Au:e<-1?-Au:Math.asin(e)}function Ku(e){return(e=Vu(e/2))*e}function Ju(){}function el(e,t){e&&nl.hasOwnProperty(e.type)&&nl[e.type](e,t)}var tl={Feature:function(e,t){el(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)el(n[r].geometry,t)}},nl={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){rl(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)rl(n[r],t,0)},Polygon:function(e,t){il(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)il(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)el(n[r],t)}};function rl(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function il(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)rl(e[n],t,1);t.polygonEnd()}function ol(e,t){e&&tl.hasOwnProperty(e.type)?tl[e.type](e,t):el(e,t)}var al,sl,ul,ll,cl,fl=Tu(),dl=Tu(),hl={point:Ju,lineStart:Ju,lineEnd:Ju,polygonStart:function(){fl.reset(),hl.lineStart=pl,hl.lineEnd=ml},polygonEnd:function(){var e=+fl;dl.add(e<0?Ru+e:e),this.lineStart=this.lineEnd=this.point=Ju},sphere:function(){dl.add(Ru)}};function pl(){hl.point=vl}function ml(){gl(al,sl)}function vl(e,t){hl.point=gl,al=e,sl=t,ul=e*=Fu,ll=Zu(t=(t*=Fu)/2+Pu),cl=Vu(t)}function gl(e,t){var n=(e*=Fu)-ul,r=n>=0?1:-1,i=r*n,o=Zu(t=(t*=Fu)/2+Pu),a=Vu(t),s=cl*a,u=ll*o+s*Zu(i),l=s*r*Vu(i);fl.add(Bu(l,u)),ul=e,ll=o,cl=a}function yl(e){return dl.reset(),ol(e,hl),2*dl}function bl(e){return[Bu(e[1],e[0]),Qu(e[2])]}function wl(e){var t=e[0],n=e[1],r=Zu(n);return[r*Zu(t),r*Vu(t),Vu(n)]}function xl(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function _l(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function kl(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Sl(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Ml(e){var t=Gu(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Tl,El,Cl,Ol,Dl,Nl,jl,Al,Pl,Rl,Il,Fl,Ll,zl,Bl,Zl,Wl,Hl,Yl,Ul,Vl,ql,Gl,Xl,$l,Ql,Kl=Tu(),Jl={point:ec,lineStart:nc,lineEnd:rc,polygonStart:function(){Jl.point=ic,Jl.lineStart=oc,Jl.lineEnd=ac,Kl.reset(),hl.polygonStart()},polygonEnd:function(){hl.polygonEnd(),Jl.point=ec,Jl.lineStart=nc,Jl.lineEnd=rc,fl<0?(Tl=-(Cl=180),El=-(Ol=90)):Kl>Du?Ol=90:Kl<-1e-6&&(El=-90),Rl[0]=Tl,Rl[1]=Cl},sphere:function(){Tl=-(Cl=180),El=-(Ol=90)}};function ec(e,t){Pl.push(Rl=[Tl=e,Cl=e]),t<El&&(El=t),t>Ol&&(Ol=t)}function tc(e,t){var n=wl([e*Fu,t*Fu]);if(Al){var r=_l(Al,n),i=_l([r[1],-r[0],0],r);Ml(i),i=bl(i);var o,a=e-Dl,s=a>0?1:-1,u=i[0]*Iu*s,l=Lu(a)>180;l^(s*Dl<u&&u<s*e)?(o=i[1]*Iu)>Ol&&(Ol=o):l^(s*Dl<(u=(u+360)%360-180)&&u<s*e)?(o=-i[1]*Iu)<El&&(El=o):(t<El&&(El=t),t>Ol&&(Ol=t)),l?e<Dl?sc(Tl,e)>sc(Tl,Cl)&&(Cl=e):sc(e,Cl)>sc(Tl,Cl)&&(Tl=e):Cl>=Tl?(e<Tl&&(Tl=e),e>Cl&&(Cl=e)):e>Dl?sc(Tl,e)>sc(Tl,Cl)&&(Cl=e):sc(e,Cl)>sc(Tl,Cl)&&(Tl=e)}else Pl.push(Rl=[Tl=e,Cl=e]);t<El&&(El=t),t>Ol&&(Ol=t),Al=n,Dl=e}function nc(){Jl.point=tc}function rc(){Rl[0]=Tl,Rl[1]=Cl,Jl.point=ec,Al=null}function ic(e,t){if(Al){var n=e-Dl;Kl.add(Lu(n)>180?n+(n>0?360:-360):n)}else Nl=e,jl=t;hl.point(e,t),tc(e,t)}function oc(){hl.lineStart()}function ac(){ic(Nl,jl),hl.lineEnd(),Lu(Kl)>Du&&(Tl=-(Cl=180)),Rl[0]=Tl,Rl[1]=Cl,Al=null}function sc(e,t){return(t-=e)<0?t+360:t}function uc(e,t){return e[0]-t[0]}function lc(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function cc(e){var t,n,r,i,o,a,s;if(Ol=Cl=-(Tl=El=1/0),Pl=[],ol(e,Jl),n=Pl.length){for(Pl.sort(uc),t=1,o=[r=Pl[0]];t<n;++t)lc(r,(i=Pl[t])[0])||lc(r,i[1])?(sc(r[0],i[1])>sc(r[0],r[1])&&(r[1]=i[1]),sc(i[0],r[1])>sc(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(s=sc(r[1],i[0]))>a&&(a=s,Tl=i[0],Cl=r[1])}return Pl=Rl=null,Tl===1/0||El===1/0?[[NaN,NaN],[NaN,NaN]]:[[Tl,El],[Cl,Ol]]}var fc={sphere:Ju,point:dc,lineStart:pc,lineEnd:gc,polygonStart:function(){fc.lineStart=yc,fc.lineEnd=bc},polygonEnd:function(){fc.lineStart=pc,fc.lineEnd=gc}};function dc(e,t){e*=Fu;var n=Zu(t*=Fu);hc(n*Zu(e),n*Vu(e),Vu(t))}function hc(e,t,n){++Il,Ll+=(e-Ll)/Il,zl+=(t-zl)/Il,Bl+=(n-Bl)/Il}function pc(){fc.point=mc}function mc(e,t){e*=Fu;var n=Zu(t*=Fu);Xl=n*Zu(e),$l=n*Vu(e),Ql=Vu(t),fc.point=vc,hc(Xl,$l,Ql)}function vc(e,t){e*=Fu;var n=Zu(t*=Fu),r=n*Zu(e),i=n*Vu(e),o=Vu(t),a=Bu(Gu((a=$l*o-Ql*i)*a+(a=Ql*r-Xl*o)*a+(a=Xl*i-$l*r)*a),Xl*r+$l*i+Ql*o);Fl+=a,Zl+=a*(Xl+(Xl=r)),Wl+=a*($l+($l=i)),Hl+=a*(Ql+(Ql=o)),hc(Xl,$l,Ql)}function gc(){fc.point=dc}function yc(){fc.point=wc}function bc(){xc(ql,Gl),fc.point=dc}function wc(e,t){ql=e,Gl=t,e*=Fu,t*=Fu,fc.point=xc;var n=Zu(t);Xl=n*Zu(e),$l=n*Vu(e),Ql=Vu(t),hc(Xl,$l,Ql)}function xc(e,t){e*=Fu;var n=Zu(t*=Fu),r=n*Zu(e),i=n*Vu(e),o=Vu(t),a=$l*o-Ql*i,s=Ql*r-Xl*o,u=Xl*i-$l*r,l=Gu(a*a+s*s+u*u),c=Qu(l),f=l&&-c/l;Yl+=f*a,Ul+=f*s,Vl+=f*u,Fl+=c,Zl+=c*(Xl+(Xl=r)),Wl+=c*($l+($l=i)),Hl+=c*(Ql+(Ql=o)),hc(Xl,$l,Ql)}function _c(e){Il=Fl=Ll=zl=Bl=Zl=Wl=Hl=Yl=Ul=Vl=0,ol(e,fc);var t=Yl,n=Ul,r=Vl,i=t*t+n*n+r*r;return i<Nu&&(t=Zl,n=Wl,r=Hl,Fl<Du&&(t=Ll,n=zl,r=Bl),(i=t*t+n*n+r*r)<Nu)?[NaN,NaN]:[Bu(n,t)*Iu,Qu(r/Gu(i))*Iu]}function kc(e){return function(){return e}}function Sc(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Mc(e,t){return[Lu(e)>ju?e+Math.round(-e/Ru)*Ru:e,t]}function Tc(e,t,n){return(e%=Ru)?t||n?Sc(Cc(e),Oc(t,n)):Cc(e):t||n?Oc(t,n):Mc}function Ec(e){return function(t,n){return[(t+=e)>ju?t-Ru:t<-ju?t+Ru:t,n]}}function Cc(e){var t=Ec(e);return t.invert=Ec(-e),t}function Oc(e,t){var n=Zu(e),r=Vu(e),i=Zu(t),o=Vu(t);function a(e,t){var a=Zu(t),s=Zu(e)*a,u=Vu(e)*a,l=Vu(t),c=l*n+s*r;return[Bu(u*i-c*o,s*n-l*r),Qu(c*i+u*o)]}return a.invert=function(e,t){var a=Zu(t),s=Zu(e)*a,u=Vu(e)*a,l=Vu(t),c=l*i-u*o;return[Bu(u*i+l*o,s*n+c*r),Qu(c*n-s*r)]},a}function Dc(e){function t(t){return(t=e(t[0]*Fu,t[1]*Fu))[0]*=Iu,t[1]*=Iu,t}return e=Tc(e[0]*Fu,e[1]*Fu,e.length>2?e[2]*Fu:0),t.invert=function(t){return(t=e.invert(t[0]*Fu,t[1]*Fu))[0]*=Iu,t[1]*=Iu,t},t}function Nc(e,t,n,r,i,o){if(n){var a=Zu(t),s=Vu(t),u=r*n;null==i?(i=t+r*Ru,o=t-u/2):(i=jc(a,i),o=jc(a,o),(r>0?i<o:i>o)&&(i+=r*Ru));for(var l,c=i;r>0?c>o:c<o;c-=u)l=bl([a,-s*Zu(c),-s*Vu(c)]),e.point(l[0],l[1])}}function jc(e,t){(t=wl(t))[0]-=e,Ml(t);var n=$u(-t[1]);return((-t[2]<0?-n:n)+Ru-Du)%Ru}function Ac(){var e,t,n=kc([0,0]),r=kc(90),i=kc(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=Iu,n[1]*=Iu}};function a(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*Fu,u=i.apply(this,arguments)*Fu;return e=[],t=Tc(-a[0]*Fu,-a[1]*Fu,0).invert,Nc(o,s,u,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"===typeof e?e:kc([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"===typeof e?e:kc(+e),a):r},a.precision=function(e){return arguments.length?(i="function"===typeof e?e:kc(+e),a):i},a}function Pc(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:Ju,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Rc(e,t){return Lu(e[0]-t[0])<Du&&Lu(e[1]-t[1])<Du}function Ic(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Fc(e,t,n,r,i){var o,a,s=[],u=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(Rc(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);return void i.lineEnd()}a[0]+=2e-6}s.push(n=new Ic(r,e,null,!0)),u.push(n.o=new Ic(r,null,n,!1)),s.push(n=new Ic(a,e,null,!1)),u.push(n.o=new Ic(a,null,n,!0))}})),s.length){for(u.sort(t),Lc(s),Lc(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;for(var l,c,f=s[0];;){for(var d=f,h=!0;d.v;)if((d=d.n)===f)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(o=0,a=l.length;o<a;++o)i.point((c=l[o])[0],c[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(h)for(l=d.p.z,o=l.length-1;o>=0;--o)i.point((c=l[o])[0],c[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}}function Lc(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}Mc.invert=Mc;var zc=Tu();function Bc(e){return Lu(e[0])<=ju?e[0]:qu(e[0])*((Lu(e[0])+ju)%Ru-ju)}function Zc(e,t){var n=Bc(t),r=t[1],i=Vu(r),o=[Vu(n),-Zu(n),0],a=0,s=0;zc.reset(),1===i?r=Au+Du:-1===i&&(r=-Au-Du);for(var u=0,l=e.length;u<l;++u)if(f=(c=e[u]).length)for(var c,f,d=c[f-1],h=Bc(d),p=d[1]/2+Pu,m=Vu(p),v=Zu(p),g=0;g<f;++g,h=b,m=x,v=_,d=y){var y=c[g],b=Bc(y),w=y[1]/2+Pu,x=Vu(w),_=Zu(w),k=b-h,S=k>=0?1:-1,M=S*k,T=M>ju,E=m*x;if(zc.add(Bu(E*S*Vu(M),v*_+E*Zu(M))),a+=T?k+S*Ru:k,T^h>=n^b>=n){var C=_l(wl(d),wl(y));Ml(C);var O=_l(o,C);Ml(O);var D=(T^k>=0?-1:1)*Qu(O[2]);(r>D||r===D&&(C[0]||C[1]))&&(s+=T^k>=0?1:-1)}}return(a<-1e-6||a<Du&&zc<-1e-6)^1&s}function Wc(e,t,n,r){return function(i){var o,a,s,u=t(i),l=Pc(),c=t(l),f=!1,d={point:h,lineStart:m,lineEnd:v,polygonStart:function(){d.point=g,d.lineStart=y,d.lineEnd=b,a=[],o=[]},polygonEnd:function(){d.point=h,d.lineStart=m,d.lineEnd=v,a=L(a);var e=Zc(o,r);a.length?(f||(i.polygonStart(),f=!0),Fc(a,Yc,e,n,i)):e&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function h(t,n){e(t,n)&&i.point(t,n)}function p(e,t){u.point(e,t)}function m(){d.point=p,u.lineStart()}function v(){d.point=h,u.lineEnd()}function g(e,t){s.push([e,t]),c.point(e,t)}function y(){c.lineStart(),s=[]}function b(){g(s[0][0],s[0][1]),c.lineEnd();var e,t,n,r,u=c.clean(),d=l.result(),h=d.length;if(s.pop(),o.push(s),s=null,h)if(1&u){if((t=(n=d[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else h>1&&2&u&&d.push(d.pop().concat(d.shift())),a.push(d.filter(Hc))}return d}}function Hc(e){return e.length>1}function Yc(e,t){return((e=e.x)[0]<0?e[1]-Au-Du:Au-e[1])-((t=t.x)[0]<0?t[1]-Au-Du:Au-t[1])}var Uc=Wc((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?ju:-ju,u=Lu(o-n);Lu(u-ju)<Du?(e.point(n,r=(r+a)/2>0?Au:-Au),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=ju&&(Lu(n-i)<Du&&(n-=i*Du),Lu(o-s)<Du&&(o-=s*Du),r=function(e,t,n,r){var i,o,a=Vu(e-n);return Lu(a)>Du?zu((Vu(t)*(o=Zu(r))*Vu(n)-Vu(r)*(i=Zu(t))*Vu(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Au,r.point(-ju,i),r.point(0,i),r.point(ju,i),r.point(ju,0),r.point(ju,-i),r.point(0,-i),r.point(-ju,-i),r.point(-ju,0),r.point(-ju,i);else if(Lu(e[0]-t[0])>Du){var o=e[0]<t[0]?ju:-ju;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-ju,-Au]);function Vc(e){var t=Zu(e),n=6*Fu,r=t>0,i=Lu(t)>Du;function o(e,n){return Zu(e)*Zu(n)>t}function a(e,n,r){var i=[1,0,0],o=_l(wl(e),wl(n)),a=xl(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var l=t*a/u,c=-t*s/u,f=_l(i,o),d=Sl(i,l);kl(d,Sl(o,c));var h=f,p=xl(d,h),m=xl(h,h),v=p*p-m*(xl(d,d)-1);if(!(v<0)){var g=Gu(v),y=Sl(h,(-p-g)/m);if(kl(y,d),y=bl(y),!r)return y;var b,w=e[0],x=n[0],_=e[1],k=n[1];x<w&&(b=w,w=x,x=b);var S=x-w,M=Lu(S-ju)<Du;if(!M&&k<_&&(b=_,_=k,k=b),M||S<Du?M?_+k>0^y[1]<(Lu(y[0]-w)<Du?_:k):_<=y[1]&&y[1]<=k:S>ju^(w<=y[0]&&y[0]<=x)){var T=Sl(h,(-p+g)/m);return kl(T,d),[y,bl(T)]}}}function s(t,n){var i=r?e:ju-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Wc(o,(function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,d){var h,p=[f,d],m=o(f,d),v=r?m?0:s(f,d):m?s(f+(f<0?ju:-ju),d):0;if(!t&&(l=u=m)&&e.lineStart(),m!==u&&(!(h=a(t,p))||Rc(t,h)||Rc(p,h))&&(p[2]=1),m!==u)c=0,m?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(i&&t&&r^m){var g;v&n||!(g=a(p,t,!0))||(c=0,r?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1],3)))}!m||t&&Rc(t,p)||e.point(p[0],p[1]),t=p,u=m,n=v},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}}),(function(t,r,i,o){Nc(o,e,n,i,t,r)}),r?[0,-e]:[-ju,e-ju])}var qc=1e9,Gc=-qc;function Xc(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,l){var c=0,f=0;if(null==i||(c=a(i,s))!==(f=a(o,s))||u(i,o)<0^s>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return Lu(r[0]-e)<Du?i>0?0:3:Lu(r[0]-n)<Du?i>0?2:1:Lu(r[1]-t)<Du?i>0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var u,l,c,f,d,h,p,m,v,g,y,b=a,w=Pc(),x={point:_,lineStart:function(){x.point=k,l&&l.push(c=[]);g=!0,v=!1,p=m=NaN},lineEnd:function(){u&&(k(f,d),h&&v&&w.rejoin(),u.push(w.result()));x.point=_,v&&b.lineEnd()},polygonStart:function(){b=w,u=[],l=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;n<i;++n)for(var o,a,s=l[n],u=1,c=s.length,f=s[0],d=f[0],h=f[1];u<c;++u)o=d,a=h,d=(f=s[u])[0],h=f[1],a<=r?h>r&&(d-o)*(r-a)>(h-a)*(e-o)&&++t:h<=r&&(d-o)*(r-a)<(h-a)*(e-o)&&--t;return t}(),n=y&&t,i=(u=L(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&Fc(u,s,t,o,a),a.polygonEnd());b=a,u=l=c=null}};function _(e,t){i(e,t)&&b.point(e,t)}function k(o,a){var s=i(o,a);if(l&&c.push([o,a]),g)f=o,d=a,h=s,g=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&v)b.point(o,a);else{var u=[p=Math.max(Gc,Math.min(qc,p)),m=Math.max(Gc,Math.min(qc,m))],w=[o=Math.max(Gc,Math.min(qc,o)),a=Math.max(Gc,Math.min(qc,a))];!function(e,t,n,r,i,o){var a,s=e[0],u=e[1],l=0,c=1,f=t[0]-s,d=t[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a<l)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>l&&(l=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a<l)return;a<c&&(c=a)}if(a=r-u,d||!(a>0)){if(a/=d,d<0){if(a<l)return;a<c&&(c=a)}else if(d>0){if(a>c)return;a>l&&(l=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>c)return;a>l&&(l=a)}else if(d>0){if(a<l)return;a<c&&(c=a)}return l>0&&(e[0]=s+l*f,e[1]=u+l*d),c<1&&(t[0]=s+c*f,t[1]=u+c*d),!0}}}}}(u,w,e,t,n,r)?s&&(b.lineStart(),b.point(o,a),y=!1):(v||(b.lineStart(),b.point(u[0],u[1])),b.point(w[0],w[1]),s||b.lineEnd(),y=!1)}p=o,m=a,v=s}return x}}function $c(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=Xc(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}}var Qc,Kc,Jc,ef=Tu(),tf={sphere:Ju,point:Ju,lineStart:function(){tf.point=rf,tf.lineEnd=nf},lineEnd:Ju,polygonStart:Ju,polygonEnd:Ju};function nf(){tf.point=tf.lineEnd=Ju}function rf(e,t){Qc=e*=Fu,Kc=Vu(t*=Fu),Jc=Zu(t),tf.point=of}function of(e,t){e*=Fu;var n=Vu(t*=Fu),r=Zu(t),i=Lu(e-Qc),o=Zu(i),a=r*Vu(i),s=Jc*n-Kc*r*o,u=Kc*n+Jc*r*o;ef.add(Bu(Gu(a*a+s*s),u)),Qc=e,Kc=n,Jc=r}function af(e){return ef.reset(),ol(e,tf),+ef}var sf=[null,null],uf={type:"LineString",coordinates:sf};function lf(e,t){return sf[0]=e,sf[1]=t,af(uf)}var cf={Feature:function(e,t){return df(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(df(n[r].geometry,t))return!0;return!1}},ff={Sphere:function(){return!0},Point:function(e,t){return hf(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(hf(n[r],t))return!0;return!1},LineString:function(e,t){return pf(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(pf(n[r],t))return!0;return!1},Polygon:function(e,t){return mf(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(mf(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(df(n[r],t))return!0;return!1}};function df(e,t){return!(!e||!ff.hasOwnProperty(e.type))&&ff[e.type](e,t)}function hf(e,t){return 0===lf(e,t)}function pf(e,t){for(var n,r,i,o=0,a=e.length;o<a;o++){if(0===(r=lf(e[o],t)))return!0;if(o>0&&(i=lf(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Nu*i)return!0;n=r}return!1}function mf(e,t){return!!Zc(e.map(vf),gf(t))}function vf(e){return(e=e.map(gf)).pop(),e}function gf(e){return[e[0]*Fu,e[1]*Fu]}function yf(e,t){return(e&&cf.hasOwnProperty(e.type)?cf[e.type]:df)(e,t)}function bf(e,t,n){var r=k(e,t-Du,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function wf(e,t,n){var r=k(e,t-Du,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function xf(){var e,t,n,r,i,o,a,s,u,l,c,f,d=10,h=d,p=90,m=360,v=2.5;function g(){return{type:"MultiLineString",coordinates:y()}}function y(){return k(Wu(r/p)*p,n,p).map(c).concat(k(Wu(s/m)*m,a,m).map(f)).concat(k(Wu(t/d)*d,e,d).filter((function(e){return Lu(e%p)>Du})).map(u)).concat(k(Wu(o/h)*h,i,h).filter((function(e){return Lu(e%m)>Du})).map(l))}return g.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},g.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(f(a).slice(1),c(n).reverse().slice(1),f(s).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.extentMajor(e).extentMinor(e):g.extentMinor()},g.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),g.precision(v)):[[r,s],[n,a]]},g.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),g.precision(v)):[[t,o],[e,i]]},g.step=function(e){return arguments.length?g.stepMajor(e).stepMinor(e):g.stepMinor()},g.stepMajor=function(e){return arguments.length?(p=+e[0],m=+e[1],g):[p,m]},g.stepMinor=function(e){return arguments.length?(d=+e[0],h=+e[1],g):[d,h]},g.precision=function(d){return arguments.length?(v=+d,u=bf(o,i,90),l=wf(t,e,v),c=bf(s,a,90),f=wf(r,n,v),g):v},g.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function _f(){return xf()()}function kf(e,t){var n=e[0]*Fu,r=e[1]*Fu,i=t[0]*Fu,o=t[1]*Fu,a=Zu(r),s=Vu(r),u=Zu(o),l=Vu(o),c=a*Zu(n),f=a*Vu(n),d=u*Zu(i),h=u*Vu(i),p=2*Qu(Gu(Ku(o-r)+a*u*Ku(i-n))),m=Vu(p),v=p?function(e){var t=Vu(e*=p)/m,n=Vu(p-e)/m,r=n*c+t*d,i=n*f+t*h,o=n*s+t*l;return[Bu(i,r)*Iu,Bu(o,Gu(r*r+i*i))*Iu]}:function(){return[n*Iu,r*Iu]};return v.distance=p,v}function Sf(e){return e}var Mf,Tf,Ef,Cf,Of=Tu(),Df=Tu(),Nf={point:Ju,lineStart:Ju,lineEnd:Ju,polygonStart:function(){Nf.lineStart=jf,Nf.lineEnd=Rf},polygonEnd:function(){Nf.lineStart=Nf.lineEnd=Nf.point=Ju,Of.add(Lu(Df)),Df.reset()},result:function(){var e=Of/2;return Of.reset(),e}};function jf(){Nf.point=Af}function Af(e,t){Nf.point=Pf,Mf=Ef=e,Tf=Cf=t}function Pf(e,t){Df.add(Cf*e-Ef*t),Ef=e,Cf=t}function Rf(){Pf(Mf,Tf)}var If=Nf,Ff=1/0,Lf=Ff,zf=-Ff,Bf=zf,Zf={point:function(e,t){e<Ff&&(Ff=e);e>zf&&(zf=e);t<Lf&&(Lf=t);t>Bf&&(Bf=t)},lineStart:Ju,lineEnd:Ju,polygonStart:Ju,polygonEnd:Ju,result:function(){var e=[[Ff,Lf],[zf,Bf]];return zf=Bf=-(Lf=Ff=1/0),e}};var Wf,Hf,Yf,Uf,Vf=Zf,qf=0,Gf=0,Xf=0,$f=0,Qf=0,Kf=0,Jf=0,ed=0,td=0,nd={point:rd,lineStart:id,lineEnd:sd,polygonStart:function(){nd.lineStart=ud,nd.lineEnd=ld},polygonEnd:function(){nd.point=rd,nd.lineStart=id,nd.lineEnd=sd},result:function(){var e=td?[Jf/td,ed/td]:Kf?[$f/Kf,Qf/Kf]:Xf?[qf/Xf,Gf/Xf]:[NaN,NaN];return qf=Gf=Xf=$f=Qf=Kf=Jf=ed=td=0,e}};function rd(e,t){qf+=e,Gf+=t,++Xf}function id(){nd.point=od}function od(e,t){nd.point=ad,rd(Yf=e,Uf=t)}function ad(e,t){var n=e-Yf,r=t-Uf,i=Gu(n*n+r*r);$f+=i*(Yf+e)/2,Qf+=i*(Uf+t)/2,Kf+=i,rd(Yf=e,Uf=t)}function sd(){nd.point=rd}function ud(){nd.point=cd}function ld(){fd(Wf,Hf)}function cd(e,t){nd.point=fd,rd(Wf=Yf=e,Hf=Uf=t)}function fd(e,t){var n=e-Yf,r=t-Uf,i=Gu(n*n+r*r);$f+=i*(Yf+e)/2,Qf+=i*(Uf+t)/2,Kf+=i,Jf+=(i=Uf*e-Yf*t)*(Yf+e),ed+=i*(Uf+t),td+=3*i,rd(Yf=e,Uf=t)}var dd=nd;function hd(e){this._context=e}hd.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Ru)}},result:Ju};var pd,md,vd,gd,yd,bd=Tu(),wd={point:Ju,lineStart:function(){wd.point=xd},lineEnd:function(){pd&&_d(md,vd),wd.point=Ju},polygonStart:function(){pd=!0},polygonEnd:function(){pd=null},result:function(){var e=+bd;return bd.reset(),e}};function xd(e,t){wd.point=_d,md=gd=e,vd=yd=t}function _d(e,t){gd-=e,yd-=t,bd.add(Gu(gd*gd+yd*yd)),gd=e,yd=t}var kd=wd;function Sd(){this._string=[]}function Md(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Td(e,t){var n,r,i=4.5;function o(e){return e&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),ol(e,n(r))),r.result()}return o.area=function(e){return ol(e,n(If)),If.result()},o.measure=function(e){return ol(e,n(kd)),kd.result()},o.bounds=function(e){return ol(e,n(Vf)),Vf.result()},o.centroid=function(e){return ol(e,n(dd)),dd.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Sf):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new Sd):new hd(t=e),"function"!==typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)}function Ed(e){return{stream:Cd(e)}}function Cd(e){return function(t){var n=new Od;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Od(){}function Dd(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),ol(n,e.stream(Vf)),t(Vf.result()),null!=r&&e.clipExtent(r),e}function Nd(e,t,n){return Dd(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])}),n)}function jd(e,t,n){return Nd(e,[[0,0],t],n)}function Ad(e,t,n){return Dd(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])}),n)}function Pd(e,t,n){return Dd(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])}),n)}Sd.prototype={_radius:4.5,_circle:Md(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Md(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},Od.prototype={constructor:Od,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Rd=Zu(30*Fu);function Id(e,t){return+t?function(e,t){function n(r,i,o,a,s,u,l,c,f,d,h,p,m,v){var g=l-r,y=c-i,b=g*g+y*y;if(b>4*t&&m--){var w=a+d,x=s+h,_=u+p,k=Gu(w*w+x*x+_*_),S=Qu(_/=k),M=Lu(Lu(_)-1)<Du||Lu(o-f)<Du?(o+f)/2:Bu(x,w),T=e(M,S),E=T[0],C=T[1],O=E-r,D=C-i,N=y*O-g*D;(N*N/b>t||Lu((g*O+y*D)/b-.5)>.3||a*d+s*h+u*p<Rd)&&(n(r,i,o,a,s,u,E,C,M,w/=k,x/=k,_,m,v),v.point(E,C),n(E,C,M,w,x,_,l,c,f,d,h,p,m,v))}}return function(t){var r,i,o,a,s,u,l,c,f,d,h,p,m={point:v,lineStart:g,lineEnd:b,polygonStart:function(){t.polygonStart(),m.lineStart=w},polygonEnd:function(){t.polygonEnd(),m.lineStart=g}};function v(n,r){n=e(n,r),t.point(n[0],n[1])}function g(){c=NaN,m.point=y,t.lineStart()}function y(r,i){var o=wl([r,i]),a=e(r,i);n(c,f,l,d,h,p,c=a[0],f=a[1],l=r,d=o[0],h=o[1],p=o[2],16,t),t.point(c,f)}function b(){m.point=v,t.lineEnd()}function w(){g(),m.point=x,m.lineEnd=_}function x(e,t){y(r=e,t),i=c,o=f,a=d,s=h,u=p,m.point=y}function _(){n(c,f,l,d,h,p,i,o,r,a,s,u,16,t),m.lineEnd=b,b()}return m}}(e,t):function(e){return Cd({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Fd=Cd({point:function(e,t){this.stream.point(e*Fu,t*Fu)}});function Ld(e,t,n,r,i){function o(o,a){return[t+e*(o*=r),n-e*(a*=i)]}return o.invert=function(o,a){return[(o-t)/e*r,(n-a)/e*i]},o}function zd(e,t,n,r,i,o){var a=Zu(o),s=Vu(o),u=a*e,l=s*e,c=a/e,f=s/e,d=(s*n-a*t)/e,h=(s*t+a*n)/e;function p(e,o){return[u*(e*=r)-l*(o*=i)+t,n-l*e-u*o]}return p.invert=function(e,t){return[r*(c*e-f*t+d),i*(h-f*e-c*t)]},p}function Bd(e){return Zd((function(){return e}))()}function Zd(e){var t,n,r,i,o,a,s,u,l,c,f=150,d=480,h=250,p=0,m=0,v=0,g=0,y=0,b=0,w=1,x=1,_=null,k=Uc,S=null,M=Sf,T=.5;function E(e){return u(e[0]*Fu,e[1]*Fu)}function C(e){return(e=u.invert(e[0],e[1]))&&[e[0]*Iu,e[1]*Iu]}function O(){var e=zd(f,0,0,w,x,b).apply(null,t(p,m)),r=(b?zd:Ld)(f,d-e[0],h-e[1],w,x,b);return n=Tc(v,g,y),s=Sc(t,r),u=Sc(n,s),a=Id(s,T),D()}function D(){return l=c=null,E}return E.stream=function(e){return l&&c===e?l:l=Fd(function(e){return Cd({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(k(a(M(c=e)))))},E.preclip=function(e){return arguments.length?(k=e,_=void 0,D()):k},E.postclip=function(e){return arguments.length?(M=e,S=r=i=o=null,D()):M},E.clipAngle=function(e){return arguments.length?(k=+e?Vc(_=e*Fu):(_=null,Uc),D()):_*Iu},E.clipExtent=function(e){return arguments.length?(M=null==e?(S=r=i=o=null,Sf):Xc(S=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),D()):null==S?null:[[S,r],[i,o]]},E.scale=function(e){return arguments.length?(f=+e,O()):f},E.translate=function(e){return arguments.length?(d=+e[0],h=+e[1],O()):[d,h]},E.center=function(e){return arguments.length?(p=e[0]%360*Fu,m=e[1]%360*Fu,O()):[p*Iu,m*Iu]},E.rotate=function(e){return arguments.length?(v=e[0]%360*Fu,g=e[1]%360*Fu,y=e.length>2?e[2]%360*Fu:0,O()):[v*Iu,g*Iu,y*Iu]},E.angle=function(e){return arguments.length?(b=e%360*Fu,O()):b*Iu},E.reflectX=function(e){return arguments.length?(w=e?-1:1,O()):w<0},E.reflectY=function(e){return arguments.length?(x=e?-1:1,O()):x<0},E.precision=function(e){return arguments.length?(a=Id(s,T=e*e),D()):Gu(T)},E.fitExtent=function(e,t){return Nd(E,e,t)},E.fitSize=function(e,t){return jd(E,e,t)},E.fitWidth=function(e,t){return Ad(E,e,t)},E.fitHeight=function(e,t){return Pd(E,e,t)},function(){return t=e.apply(this,arguments),E.invert=t.invert&&C,O()}}function Wd(e){var t=0,n=ju/3,r=Zd(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Fu,n=e[1]*Fu):[t*Iu,n*Iu]},i}function Hd(e,t){var n=Vu(e),r=(n+Vu(t))/2;if(Lu(r)<Du)return function(e){var t=Zu(e);function n(e,n){return[e*t,Vu(n)/t]}return n.invert=function(e,n){return[e/t,Qu(n*t)]},n}(e);var i=1+n*(2*r-n),o=Gu(i)/r;function a(e,t){var n=Gu(i-2*r*Vu(t))/r;return[n*Vu(e*=r),o-n*Zu(e)]}return a.invert=function(e,t){var n=o-t,a=Bu(e,Lu(n))*qu(n);return n*r<0&&(a-=ju*qu(e)*qu(n)),[a/r,Qu((i-(e*e+n*n)*r*r)/(2*r))]},a}function Yd(){return Wd(Hd).scale(155.424).center([0,33.6442])}function Ud(){return Yd().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Vd(){var e,t,n,r,i,o,a=Ud(),s=Yd().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Yd().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,t){o=[e,t]}};function c(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(r.point(t,a),o)||(i.point(t,a),o)}function f(){return e=t=null,c}return c.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(e)},c.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}([a.stream(t=n),s.stream(n),u.stream(n)])},c.precision=function(e){return arguments.length?(a.precision(e),s.precision(e),u.precision(e),f()):a.precision()},c.scale=function(e){return arguments.length?(a.scale(e),s.scale(.35*e),u.scale(e),c.translate(a.translate())):a.scale()},c.translate=function(e){if(!arguments.length)return a.translate();var t=a.scale(),o=+e[0],c=+e[1];return n=a.translate(e).clipExtent([[o-.455*t,c-.238*t],[o+.455*t,c+.238*t]]).stream(l),r=s.translate([o-.307*t,c+.201*t]).clipExtent([[o-.425*t+Du,c+.12*t+Du],[o-.214*t-Du,c+.234*t-Du]]).stream(l),i=u.translate([o-.205*t,c+.212*t]).clipExtent([[o-.214*t+Du,c+.166*t+Du],[o-.115*t-Du,c+.234*t-Du]]).stream(l),f()},c.fitExtent=function(e,t){return Nd(c,e,t)},c.fitSize=function(e,t){return jd(c,e,t)},c.fitWidth=function(e,t){return Ad(c,e,t)},c.fitHeight=function(e,t){return Pd(c,e,t)},c.scale(1070)}function qd(e){return function(t,n){var r=Zu(t),i=Zu(n),o=e(r*i);return[o*i*Vu(t),o*Vu(n)]}}function Gd(e){return function(t,n){var r=Gu(t*t+n*n),i=e(r),o=Vu(i),a=Zu(i);return[Bu(t*o,r*a),Qu(r&&n*o/r)]}}var Xd=qd((function(e){return Gu(2/(1+e))}));function $d(){return Bd(Xd).scale(124.75).clipAngle(179.999)}Xd.invert=Gd((function(e){return 2*Qu(e/2)}));var Qd=qd((function(e){return(e=$u(e))&&e/Vu(e)}));function Kd(){return Bd(Qd).scale(79.4188).clipAngle(179.999)}function Jd(e,t){return[e,Yu(Xu((Au+t)/2))]}function eh(){return th(Jd).scale(961/Ru)}function th(e){var t,n,r,i=Bd(e),o=i.center,a=i.scale,s=i.translate,u=i.clipExtent,l=null;function c(){var o=ju*a(),s=i(Dc(i.rotate()).invert([0,0]));return u(null==l?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===Jd?[[Math.max(s[0]-o,l),t],[Math.min(s[0]+o,n),r]]:[[l,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),c()):a()},i.translate=function(e){return arguments.length?(s(e),c()):s()},i.center=function(e){return arguments.length?(o(e),c()):o()},i.clipExtent=function(e){return arguments.length?(null==e?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==l?null:[[l,t],[n,r]]},c()}function nh(e){return Xu((Au+e)/2)}function rh(e,t){var n=Zu(e),r=e===t?Vu(e):Yu(n/Zu(t))/Yu(nh(t)/nh(e)),i=n*Uu(nh(e),r)/r;if(!r)return Jd;function o(e,t){i>0?t<-Au+Du&&(t=-Au+Du):t>Au-Du&&(t=Au-Du);var n=i/Uu(nh(t),r);return[n*Vu(r*e),i-n*Zu(r*e)]}return o.invert=function(e,t){var n=i-t,o=qu(r)*Gu(e*e+n*n),a=Bu(e,Lu(n))*qu(n);return n*r<0&&(a-=ju*qu(e)*qu(n)),[a/r,2*zu(Uu(i/o,1/r))-Au]},o}function ih(){return Wd(rh).scale(109.5).parallels([30,30])}function oh(e,t){return[e,t]}function ah(){return Bd(oh).scale(152.63)}function sh(e,t){var n=Zu(e),r=e===t?Vu(e):(n-Zu(t))/(t-e),i=n/r+e;if(Lu(r)<Du)return oh;function o(e,t){var n=i-t,o=r*e;return[n*Vu(o),i-n*Zu(o)]}return o.invert=function(e,t){var n=i-t,o=Bu(e,Lu(n))*qu(n);return n*r<0&&(o-=ju*qu(e)*qu(n)),[o/r,i-qu(r)*Gu(e*e+n*n)]},o}function uh(){return Wd(sh).scale(131.154).center([0,13.9389])}Qd.invert=Gd((function(e){return e})),Jd.invert=function(e,t){return[e,2*zu(Hu(t))-Au]},oh.invert=oh;var lh=1.340264,ch=-.081106,fh=893e-6,dh=.003796,hh=Gu(3)/2;function ph(e,t){var n=Qu(hh*Vu(t)),r=n*n,i=r*r*r;return[e*Zu(n)/(hh*(lh+3*ch*r+i*(7*fh+9*dh*r))),n*(lh+ch*r+i*(fh+dh*r))]}function mh(){return Bd(ph).scale(177.158)}function vh(e,t){var n=Zu(t),r=Zu(e)*n;return[n*Vu(e)/r,Vu(t)/r]}function gh(){return Bd(vh).scale(144.049).clipAngle(60)}function yh(){var e,t,n,r,i,o,a,s=1,u=0,l=0,c=1,f=1,d=0,h=null,p=1,m=1,v=Cd({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),g=Sf;function y(){return p=s*c,m=s*f,o=a=null,b}function b(n){var r=n[0]*p,i=n[1]*m;if(d){var o=i*e-r*t;r=r*e+i*t,i=o}return[r+u,i+l]}return b.invert=function(n){var r=n[0]-u,i=n[1]-l;if(d){var o=i*e+r*t;r=r*e-i*t,i=o}return[r/p,i/m]},b.stream=function(e){return o&&a===e?o:o=v(g(a=e))},b.postclip=function(e){return arguments.length?(g=e,h=n=r=i=null,y()):g},b.clipExtent=function(e){return arguments.length?(g=null==e?(h=n=r=i=null,Sf):Xc(h=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),y()):null==h?null:[[h,n],[r,i]]},b.scale=function(e){return arguments.length?(s=+e,y()):s},b.translate=function(e){return arguments.length?(u=+e[0],l=+e[1],y()):[u,l]},b.angle=function(n){return arguments.length?(t=Vu(d=n%360*Fu),e=Zu(d),y()):d*Iu},b.reflectX=function(e){return arguments.length?(c=e?-1:1,y()):c<0},b.reflectY=function(e){return arguments.length?(f=e?-1:1,y()):f<0},b.fitExtent=function(e,t){return Nd(b,e,t)},b.fitSize=function(e,t){return jd(b,e,t)},b.fitWidth=function(e,t){return Ad(b,e,t)},b.fitHeight=function(e,t){return Pd(b,e,t)},b}function bh(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function wh(){return Bd(bh).scale(175.295)}function xh(e,t){return[Zu(t)*Vu(e),Vu(t)]}function _h(){return Bd(xh).scale(249.5).clipAngle(90.000001)}function kh(e,t){var n=Zu(t),r=1+Zu(e)*n;return[n*Vu(e)/r,Vu(t)/r]}function Sh(){return Bd(kh).scale(250).clipAngle(142)}function Mh(e,t){return[Yu(Xu((Au+t)/2)),-e]}function Th(){var e=th(Mh),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}function Eh(e,t){return e.parent===t.parent?1:2}function Ch(e,t){return e+t.x}function Oh(e,t){return Math.max(e,t.y)}function Dh(){var e=Eh,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Ch,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Oh,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(i),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),l=s.x-e(s,u)/2,c=u.x+e(u,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(c-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function Nh(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function jh(e,t){var n,r,i,o,a,s=new Ih(e),u=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=Ah);n=l.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new Ih(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Rh)}function Ah(e){return e.children}function Ph(e){e.data=e.data.data}function Rh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ih(e){this.data=e,this.depth=this.height=0,this.parent=null}ph.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(lh+ch*i+o*(fh+dh*i))-t)/(lh+3*ch*i+o*(7*fh+9*dh*i)))*r)*i*i,!(Lu(n)<Nu));++a);return[hh*e*(lh+3*ch*i+o*(7*fh+9*dh*i))/Zu(r),Qu(Vu(r)/hh)]},vh.invert=Gd(zu),bh.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Lu(n)>Du&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},xh.invert=Gd(Qu),kh.invert=Gd((function(e){return 2*zu(e)})),Mh.invert=function(e,t){return[-t,2*zu(Hu(e))-Au]},Ih.prototype=jh.prototype={constructor:Ih,count:function(){return this.eachAfter(Nh)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return jh(this).eachBefore(Ph)}};var Fh=Array.prototype.slice;function Lh(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(Fh.call(e))).length,o=[];r<i;)t=e[r],n&&Zh(n,t)?++r:(n=Hh(o=zh(o,t)),r=0);return n}function zh(e,t){var n,r;if(Wh(t,e))return[t];for(n=0;n<e.length;++n)if(Bh(t,e[n])&&Wh(Yh(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Bh(Yh(e[n],e[r]),t)&&Bh(Yh(e[n],t),e[r])&&Bh(Yh(e[r],t),e[n])&&Wh(Uh(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Bh(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Zh(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Wh(e,t){for(var n=0;n<t.length;++n)if(!Zh(e,t[n]))return!1;return!0}function Hh(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return Yh(e[0],e[1]);case 3:return Uh(e[0],e[1],e[2])}}function Yh(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function Uh(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,f=n.r,d=r-a,h=r-l,p=i-s,m=i-c,v=u-o,g=f-o,y=r*r+i*i-o*o,b=y-a*a-s*s+u*u,w=y-l*l-c*c+f*f,x=h*p-d*m,_=(p*w-m*b)/(2*x)-r,k=(m*v-p*g)/x,S=(h*b-d*w)/(2*x)-i,M=(d*g-h*v)/x,T=k*k+M*M-1,E=2*(o+_*k+S*M),C=_*_+S*S-o*o,O=-(T?(E+Math.sqrt(E*E-4*T*C))/(2*T):C/E);return{x:r+_+k*O,y:i+S+M*O,r:O}}function Vh(e,t,n){var r,i,o,a,s=e.x-t.x,u=e.y-t.y,l=s*s+u*u;l?(i=t.r+n.r,i*=i,a=e.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function qh(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Gh(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function Xh(e){this._=e,this.next=null,this.previous=null}function $h(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,l,c,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;Vh(n,t,r=e[2]),t=new Xh(t),n=new Xh(n),r=new Xh(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){Vh(t._,n._,r=e[s]),r=new Xh(r),u=n.next,l=t.previous,c=n._.r,f=t._.r;do{if(c<=f){if(qh(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(qh(l._,r._)){(t=l).next=n,n.previous=t,--s;continue e}f+=l._.r,l=l.previous}}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=Gh(t);(r=r.next)!==n;)(a=Gh(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=Lh(t),s=0;s<i;++s)(t=e[s]).x-=r.x,t.y-=r.y;return r.r}function Qh(e){return $h(e),e}function Kh(e){return null==e?null:Jh(e)}function Jh(e){if("function"!==typeof e)throw new Error;return e}function ep(){return 0}function tp(e){return function(){return e}}function np(e){return Math.sqrt(e.value)}function rp(){var e=null,t=1,n=1,r=ep;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(ip(e)).eachAfter(op(r,.5)).eachBefore(ap(1)):i.eachBefore(ip(np)).eachAfter(op(ep,1)).eachAfter(op(r,i.r/Math.min(t,n))).eachBefore(ap(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=Kh(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"===typeof e?e:tp(+e),i):r},i}function ip(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function op(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,s=e(n)*t||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=$h(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function ap(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function sp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function up(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(r-t)/e.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function lp(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&up(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(t,o)),r&&i.eachBefore(sp),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i}var cp={depth:-1},fp={};function dp(e){return e.id}function hp(e){return e.parentId}function pp(){var e=dp,t=hp;function n(n){var r,i,o,a,s,u,l,c=n.length,f=new Array(c),d={};for(i=0;i<c;++i)r=n[i],s=f[i]=new Ih(r),null!=(u=e(r,i,n))&&(u+="")&&(d[l="$"+(s.id=u)]=l in d?fp:s);for(i=0;i<c;++i)if(s=f[i],null!=(u=t(n[i],i,n))&&(u+="")){if(!(a=d["$"+u]))throw new Error("missing: "+u);if(a===fp)throw new Error("ambiguous: "+u);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=cp,o.eachBefore((function(e){e.depth=e.parent.depth+1,--c})).eachBefore(Rh),o.parent=null,c>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=Jh(t),n):e},n.parentId=function(e){return arguments.length?(t=Jh(e),n):t},n}function mp(e,t){return e.parent===t.parent?1:2}function vp(e){var t=e.children;return t?t[0]:e.t}function gp(e){var t=e.children;return t?t[t.length-1]:e.t}function yp(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function bp(e,t,n){return e.a.parent===t.parent?e.a:n}function wp(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function xp(){var e=mp,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,a=new wp(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new wp(r[i],i)),n.parent=t;return(a.parent=new wp(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var l=i,c=i,f=i;i.eachBefore((function(e){e.x<l.x&&(l=e),e.x>c.x&&(c=e),e.depth>f.depth&&(f=e)}));var d=l===c?1:e(l,c)/2,h=d-l.x,p=t/(c.x+d+h),m=n/(f.depth||1);i.eachBefore((function(e){e.x=(e.x+h)*p,e.y=e.depth*m}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,d=u.m;s=gp(s),o=vp(o),s&&o;)u=vp(u),(a=gp(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(yp(bp(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,d+=u.m,c+=a.m;s&&!gp(a)&&(a.t=s,a.m+=f-c),o&&!vp(u)&&(u.t=o,u.m+=l-d,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function _p(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(i-n)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}wp.prototype=Object.create(Ih.prototype);var kp=(1+Math.sqrt(5))/2;function Sp(e,t,n,r,i,o){for(var a,s,u,l,c,f,d,h,p,m,v,g=[],y=t.children,b=0,w=0,x=y.length,_=t.value;b<x;){u=i-n,l=o-r;do{c=y[w++].value}while(!c&&w<x);for(f=d=c,v=c*c*(m=Math.max(l/u,u/l)/(_*e)),p=Math.max(d/v,v/f);w<x;++w){if(c+=s=y[w].value,s<f&&(f=s),s>d&&(d=s),v=c*c*m,(h=Math.max(d/v,v/f))>p){c-=s;break}p=h}g.push(a={value:c,dice:u<l,children:y.slice(b,w)}),a.dice?up(a,n,r,i,_?r+=l*c/_:o):_p(a,n,r,_?n+=u*c/_:i,o),_-=c,b=w}return g}var Mp=function e(t){function n(e,n,r,i,o){Sp(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(kp);function Tp(){var e=Mp,t=!1,n=1,r=1,i=[0],o=ep,a=ep,s=ep,u=ep,l=ep;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(sp),e}function f(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,f=t.x1-n,d=t.y1-n;f<r&&(r=f=(r+f)/2),d<c&&(c=d=(c+d)/2),t.x0=r,t.y0=c,t.x1=f,t.y1=d,t.children&&(n=i[t.depth+1]=o(t)/2,r+=l(t)-n,c+=a(t)-n,(f-=s(t)-n)<r&&(r=f=(r+f)/2),(d-=u(t)-n)<c&&(c=d=(c+d)/2),e(t,r,c,f,d))}return c.round=function(e){return arguments.length?(t=!!e,c):t},c.size=function(e){return arguments.length?(n=+e[0],r=+e[1],c):[n,r]},c.tile=function(t){return arguments.length?(e=Jh(t),c):e},c.padding=function(e){return arguments.length?c.paddingInner(e).paddingOuter(e):c.paddingInner()},c.paddingInner=function(e){return arguments.length?(o="function"===typeof e?e:tp(+e),c):o},c.paddingOuter=function(e){return arguments.length?c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):c.paddingTop()},c.paddingTop=function(e){return arguments.length?(a="function"===typeof e?e:tp(+e),c):a},c.paddingRight=function(e){return arguments.length?(s="function"===typeof e?e:tp(+e),c):s},c.paddingBottom=function(e){return arguments.length?(u="function"===typeof e?e:tp(+e),c):u},c.paddingLeft=function(e){return arguments.length?(l="function"===typeof e?e:tp(+e),c):l},c}function Ep(e,t,n,r,i){var o,a,s=e.children,u=s.length,l=new Array(u+1);for(l[0]=a=o=0;o<u;++o)l[o+1]=a+=s[o].value;!function e(t,n,r,i,o,a,u){if(t>=n-1){var c=s[t];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var f=l[t],d=r/2+f,h=t+1,p=n-1;for(;h<p;){var m=h+p>>>1;l[m]<d?h=m+1:p=m}d-l[h-1]<l[h]-d&&t+1<h&&--h;var v=l[h]-f,g=r-v;if(a-i>u-o){var y=(i*g+a*v)/r;e(t,h,v,i,o,y,u),e(h,n,g,y,o,a,u)}else{var b=(o*g+u*v)/r;e(t,h,v,i,o,a,b),e(h,n,g,i,b,a,u)}}(0,u,e.value,t,n,r,i)}function Cp(e,t,n,r,i){(1&e.depth?_p:up)(e,t,n,r,i)}var Op=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,l,c,f=-1,d=a.length,h=e.value;++f<d;){for(u=(s=a[f]).children,l=s.value=0,c=u.length;l<c;++l)s.value+=u[l].value;s.dice?up(s,n,r,i,r+=(o-r)*s.value/h):_p(s,n,r,n+=(i-n)*s.value/h,o),h-=s.value}else e._squarify=a=Sp(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(kp);function Dp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function Np(e,t){var n=hn(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}function jp(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Ap=Math.SQRT2;function Pp(e){return((e=Math.exp(e))+1/e)/2}function Rp(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],u=t[1],l=t[2],c=s-i,f=u-o,d=c*c+f*f;if(d<1e-12)r=Math.log(l/a)/Ap,n=function(e){return[i+e*c,o+e*f,a*Math.exp(Ap*e*r)]};else{var h=Math.sqrt(d),p=(l*l-a*a+4*d)/(2*a*2*h),m=(l*l-a*a-4*d)/(2*l*2*h),v=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(m*m+1)-m);r=(g-v)/Ap,n=function(e){var t=e*r,n=Pp(v),s=a/(2*h)*(n*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(Ap*t+v)-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[i+s*c,o+s*f,a*n/Pp(Ap*t+v)]}}return n.duration=1e3*r,n}function Ip(e){return function(t,n){var r=e((t=on(t)).h,(n=on(n)).h),i=mn(t.s,n.s),o=mn(t.l,n.l),a=mn(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var Fp=Ip(hn),Lp=Ip(mn);function zp(e,t){var n=mn((e=To(e)).l,(t=To(t)).l),r=mn(e.a,t.a),i=mn(e.b,t.b),o=mn(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function Bp(e){return function(t,n){var r=e((t=Po(t)).h,(n=Po(n)).h),i=mn(t.c,n.c),o=mn(t.l,n.l),a=mn(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var Zp=Bp(hn),Wp=Bp(mn);function Hp(e){return function t(n){function r(t,r){var i=e((t=Vo(t)).h,(r=Vo(r)).h),o=mn(t.s,r.s),a=mn(t.l,r.l),s=mn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}var Yp=Hp(hn),Up=Hp(mn);function Vp(e,t){for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function qp(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function Gp(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2}function Xp(e){for(var t,n,r=-1,i=e.length,o=0,a=0,s=e[i-1],u=0;++r<i;)t=s,s=e[r],u+=n=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o/(u*=3),a/u]}function $p(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Qp(e,t){return e[0]-t[0]||e[1]-t[1]}function Kp(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;++i){for(;r>1&&$p(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Jp(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(Qp),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=Kp(r),a=Kp(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[r[o[t]][2]]);for(t=+s;t<a.length-u;++t)l.push(e[r[a[t]][2]]);return l}function em(e,t){for(var n,r,i=e.length,o=e[i-1],a=t[0],s=t[1],u=o[0],l=o[1],c=!1,f=0;f<i;++f)n=(o=e[f])[0],(r=o[1])>s!==l>s&&a<(u-n)*(s-r)/(l-r)+n&&(c=!c),u=n,l=r;return c}function tm(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],u=0;++r<i;)t=a,n=s,t-=a=(o=e[r])[0],n-=s=o[1],u+=Math.sqrt(t*t+n*n);return u}function nm(){return Math.random()}var rm=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(nm),im=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(nm),om=function e(t){function n(){var e=im.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(nm),am=function e(t){function n(e){return function(){for(var n=0,r=0;r<e;++r)n+=t();return n}}return n.source=e,n}(nm),sm=function e(t){function n(e){var n=am.source(t)(e);return function(){return n()/e}}return n.source=e,n}(nm),um=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(nm);function lm(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function cm(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}var fm=Array.prototype,dm=fm.map,hm=fm.slice,pm={name:"implicit"};function mm(){var e=ro(),t=[],n=[],r=pm;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==pm)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=ro();for(var r,o,a=-1,s=n.length;++a<s;)e.has(o=(r=n[a])+"")||e.set(o,t.push(r));return i},i.range=function(e){return arguments.length?(n=hm.call(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return mm(t,n).unknown(r)},lm.apply(i,arguments),i}function vm(){var e,t,n=mm().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,l=.5;function c(){var n=r().length,c=o[1]<o[0],f=o[c-0],d=o[1-c];e=(d-f)/Math.max(1,n-s+2*u),a&&(e=Math.floor(e)),f+=(d-f-e*(n-s))*l,t=e*(1-s),a&&(f=Math.round(f),t=Math.round(t));var h=k(n).map((function(t){return f+e*t}));return i(c?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),c()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],c()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,c()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,c()):a},n.padding=function(e){return arguments.length?(s=Math.min(1,u=+e),c()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),c()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,c()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),c()):l},n.copy=function(){return vm(r(),o).round(a).paddingInner(s).paddingOuter(u).align(l)},lm.apply(c(),arguments)}function gm(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return gm(t())},e}function ym(){return gm(vm.apply(null,arguments).paddingInner(1))}function bm(e){return+e}var wm=[0,1];function xm(e){return e}function _m(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function km(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Sm(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=_m(i,r),o=n(a,o)):(r=_m(r,i),o=n(o,a)),function(e){return o(r(e))}}function Mm(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=_m(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=l(e,t,1,r)-1;return o[n](i[n](t))}}function Tm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Em(){var e,t,n,r,i,o,a=wm,s=wm,u=Dn,l=xm;function c(){return r=Math.min(a.length,s.length)>2?Mm:Sm,i=o=null,f}function f(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(s,a.map(e),Mn)))(n)))},f.domain=function(e){return arguments.length?(a=dm.call(e,bm),l===xm||(l=km(a)),c()):a.slice()},f.range=function(e){return arguments.length?(s=hm.call(e),c()):s.slice()},f.rangeRound=function(e){return s=hm.call(e),u=jp,c()},f.clamp=function(e){return arguments.length?(l=e?km(a):xm,f):l!==xm},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function Cm(e,t){return Em()(e,t)}function Om(e,t,n,r){var i,o=O(e,t,n);switch((r=fu(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=Su(o,a))||(r.precision=i),yu(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Mu(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=ku(o))||(r.precision=i-2*("%"===r.type))}return gu(r)}function Dm(e){var t=e.domain;return e.ticks=function(e){var n=t();return E(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Om(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),(r=C(s,u,n))>0?r=C(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=C(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,t(i)),e},e}function Nm(){var e=Cm(xm,xm);return e.copy=function(){return Tm(e,Nm())},lm.apply(e,arguments),Dm(e)}function jm(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=dm.call(t,bm),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return jm(e).unknown(t)},e=arguments.length?dm.call(e,bm):[0,1],Dm(n)}function Am(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function Pm(e){return Math.log(e)}function Rm(e){return Math.exp(e)}function Im(e){return-Math.log(-e)}function Fm(e){return-Math.exp(-e)}function Lm(e){return isFinite(e)?+("1e"+e):e<0?0:e}function zm(e){return function(t){return-e(-t)}}function Bm(e){var t,n,r=e(Pm,Rm),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?Lm:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=zm(t),n=zm(n),e(Im,Fm)):e(Pm,Rm),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(d=s,s=u,u=d);var l,c,f,d=t(s),h=t(u),p=null==e?10:+e,m=[];if(!(o%1)&&h-d<p){if(d=Math.round(d)-1,h=Math.round(h)+1,s>0){for(;d<h;++d)for(c=1,l=n(d);c<o;++c)if(!((f=l*c)<s)){if(f>u)break;m.push(f)}}else for(;d<h;++d)for(c=o-1,l=n(d);c>=1;--c)if(!((f=l*c)<s)){if(f>u)break;m.push(f)}}else m=E(d,h,Math.min(h-d,p)).map(n);return r?m.reverse():m},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=gu(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(Am(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Zm(){var e=Bm(Em()).domain([1,10]);return e.copy=function(){return Tm(e,Zm()).base(e.base())},lm.apply(e,arguments),e}function Wm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ym(e){var t=1,n=e(Wm(t),Hm(t));return n.constant=function(n){return arguments.length?e(Wm(t=+n),Hm(t)):t},Dm(n)}function Um(){var e=Ym(Em());return e.copy=function(){return Tm(e,Um()).constant(e.constant())},lm.apply(e,arguments)}function Vm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Gm(e){return e<0?-e*e:e*e}function Xm(e){var t=e(xm,xm),n=1;function r(){return 1===n?e(xm,xm):.5===n?e(qm,Gm):e(Vm(n),Vm(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Dm(t)}function $m(){var e=Xm(Em());return e.copy=function(){return Tm(e,$m()).exponent(e.exponent())},lm.apply(e,arguments),e}function Qm(){return $m.apply(null,arguments).exponent(.5)}function Km(){var e,t=[],n=[],r=[];function o(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=j(t,e/i);return a}function a(t){return isNaN(t=+t)?e:n[l(r,t)]}return a.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},a.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,r=0,a=e.length;r<a;++r)null==(n=e[r])||isNaN(n=+n)||t.push(n);return t.sort(i),o()},a.range=function(e){return arguments.length?(n=hm.call(e),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return r.slice()},a.copy=function(){return Km().domain(t).range(n).unknown(e)},lm.apply(a,arguments)}function Jm(){var e,t=0,n=1,r=1,i=[.5],o=[0,1];function a(t){return t<=t?o[l(i,t,0,r)]:e}function s(){var e=-1;for(i=new Array(r);++e<r;)i[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],s()):[t,n]},a.range=function(e){return arguments.length?(r=(o=hm.call(e)).length-1,s()):o.slice()},a.invertExtent=function(e){var a=o.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Jm().domain([t,n]).range(o).unknown(e)},lm.apply(Dm(a),arguments)}function ev(){var e,t=[.5],n=[0,1],r=1;function i(i){return i<=i?n[l(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=hm.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=hm.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return ev().domain(t).range(n).unknown(e)},lm.apply(i,arguments)}var tv=new Date,nv=new Date;function rv(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return rv((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(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&&(i.count=function(t,r){return tv.setTime(+t),nv.setTime(+r),e(tv),e(nv),Math.floor(n(tv,nv))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var iv=rv((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));iv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rv((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ov=iv,av=iv.range,sv=rv((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),uv=sv,lv=sv.range,cv=1e3,fv=6e4,dv=36e5,hv=864e5,pv=6048e5;function mv(e){return rv((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fv)/pv}))}var vv=mv(0),gv=mv(1),yv=mv(2),bv=mv(3),wv=mv(4),xv=mv(5),_v=mv(6),kv=vv.range,Sv=gv.range,Mv=yv.range,Tv=bv.range,Ev=wv.range,Cv=xv.range,Ov=_v.range,Dv=rv((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fv)/hv}),(function(e){return e.getDate()-1})),Nv=Dv,jv=Dv.range,Av=rv((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cv-e.getMinutes()*fv)}),(function(e,t){e.setTime(+e+t*dv)}),(function(e,t){return(t-e)/dv}),(function(e){return e.getHours()})),Pv=Av,Rv=Av.range,Iv=rv((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cv)}),(function(e,t){e.setTime(+e+t*fv)}),(function(e,t){return(t-e)/fv}),(function(e){return e.getMinutes()})),Fv=Iv,Lv=Iv.range,zv=rv((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*cv)}),(function(e,t){return(t-e)/cv}),(function(e){return e.getUTCSeconds()})),Bv=zv,Zv=zv.range,Wv=rv((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Wv.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rv((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Wv:null};var Hv=Wv,Yv=Wv.range;function Uv(e){return rv((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/pv}))}var Vv=Uv(0),qv=Uv(1),Gv=Uv(2),Xv=Uv(3),$v=Uv(4),Qv=Uv(5),Kv=Uv(6),Jv=Vv.range,eg=qv.range,tg=Gv.range,ng=Xv.range,rg=$v.range,ig=Qv.range,og=Kv.range,ag=rv((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/hv}),(function(e){return e.getUTCDate()-1})),sg=ag,ug=ag.range,lg=rv((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));lg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rv((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var cg=lg,fg=lg.range;function dg(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 hg(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 pg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mg(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=Eg(i),c=Cg(i),f=Eg(o),d=Cg(o),h=Eg(a),p=Cg(a),m=Eg(s),v=Cg(s),g=Eg(u),y=Cg(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Xg,e:Xg,f:ey,g:fy,G:hy,H:$g,I:Qg,j:Kg,L:Jg,m:ty,M:ny,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Iy,s:Fy,S:ry,u:iy,U:oy,V:sy,w:uy,W:ly,x:null,X:null,y:cy,Y:dy,Z:py,"%":Ry},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:my,e:my,f:wy,g:Ny,G:Ay,H:vy,I:gy,j:yy,L:by,m:xy,M:_y,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Iy,s:Fy,S:ky,u:Sy,U:My,V:Ey,w:Cy,W:Oy,x:null,X:null,y:Dy,Y:jy,Z:Py,"%":Ry},x={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:zg,e:zg,f:Ug,g:Rg,G:Pg,H:Zg,I:Zg,j:Bg,L:Yg,m:Lg,M:Wg,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Fg,Q:qg,s:Gg,S:Hg,u:Dg,U:Ng,V:jg,w:Og,W:Ag,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Rg,Y:Pg,Z:Ig,"%":Vg};function _(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=xg[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function k(e,t){return function(n){var r,i,o=pg(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=hg(pg(o.y,0,1))).getUTCDay(),r=i>4||0===i?qv.ceil(r):qv(r),r=sg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=dg(pg(o.y,0,1))).getDay(),r=i>4||0===i?gv.ceil(r):gv(r),r=Nv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?hg(pg(o.y,0,1)).getUTCDay():dg(pg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,hg(o)):dg(o)}}function S(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in xg?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(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=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}var vg,gg,yg,bg,wg,xg={"-":"",_:" ",0:"0"},_g=/^\s*\d+/,kg=/^%/,Sg=/[\\^$*+?|[\]().{}]/g;function Mg(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Tg(e){return e.replace(Sg,"\\$&")}function Eg(e){return new RegExp("^(?:"+e.map(Tg).join("|")+")","i")}function Cg(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Og(e,t,n){var r=_g.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Dg(e,t,n){var r=_g.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ng(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ag(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Pg(e,t,n){var r=_g.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Rg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ig(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 Fg(e,t,n){var r=_g.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Lg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Bg(e,t,n){var r=_g.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Zg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Wg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Hg(e,t,n){var r=_g.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Yg(e,t,n){var r=_g.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ug(e,t,n){var r=_g.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vg(e,t,n){var r=kg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function qg(e,t,n){var r=_g.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gg(e,t,n){var r=_g.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Xg(e,t){return Mg(e.getDate(),t,2)}function $g(e,t){return Mg(e.getHours(),t,2)}function Qg(e,t){return Mg(e.getHours()%12||12,t,2)}function Kg(e,t){return Mg(1+Nv.count(ov(e),e),t,3)}function Jg(e,t){return Mg(e.getMilliseconds(),t,3)}function ey(e,t){return Jg(e,t)+"000"}function ty(e,t){return Mg(e.getMonth()+1,t,2)}function ny(e,t){return Mg(e.getMinutes(),t,2)}function ry(e,t){return Mg(e.getSeconds(),t,2)}function iy(e){var t=e.getDay();return 0===t?7:t}function oy(e,t){return Mg(vv.count(ov(e)-1,e),t,2)}function ay(e){var t=e.getDay();return t>=4||0===t?wv(e):wv.ceil(e)}function sy(e,t){return e=ay(e),Mg(wv.count(ov(e),e)+(4===ov(e).getDay()),t,2)}function uy(e){return e.getDay()}function ly(e,t){return Mg(gv.count(ov(e)-1,e),t,2)}function cy(e,t){return Mg(e.getFullYear()%100,t,2)}function fy(e,t){return Mg((e=ay(e)).getFullYear()%100,t,2)}function dy(e,t){return Mg(e.getFullYear()%1e4,t,4)}function hy(e,t){var n=e.getDay();return Mg((e=n>=4||0===n?wv(e):wv.ceil(e)).getFullYear()%1e4,t,4)}function py(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mg(t/60|0,"0",2)+Mg(t%60,"0",2)}function my(e,t){return Mg(e.getUTCDate(),t,2)}function vy(e,t){return Mg(e.getUTCHours(),t,2)}function gy(e,t){return Mg(e.getUTCHours()%12||12,t,2)}function yy(e,t){return Mg(1+sg.count(cg(e),e),t,3)}function by(e,t){return Mg(e.getUTCMilliseconds(),t,3)}function wy(e,t){return by(e,t)+"000"}function xy(e,t){return Mg(e.getUTCMonth()+1,t,2)}function _y(e,t){return Mg(e.getUTCMinutes(),t,2)}function ky(e,t){return Mg(e.getUTCSeconds(),t,2)}function Sy(e){var t=e.getUTCDay();return 0===t?7:t}function My(e,t){return Mg(Vv.count(cg(e)-1,e),t,2)}function Ty(e){var t=e.getUTCDay();return t>=4||0===t?$v(e):$v.ceil(e)}function Ey(e,t){return e=Ty(e),Mg($v.count(cg(e),e)+(4===cg(e).getUTCDay()),t,2)}function Cy(e){return e.getUTCDay()}function Oy(e,t){return Mg(qv.count(cg(e)-1,e),t,2)}function Dy(e,t){return Mg(e.getUTCFullYear()%100,t,2)}function Ny(e,t){return Mg((e=Ty(e)).getUTCFullYear()%100,t,2)}function jy(e,t){return Mg(e.getUTCFullYear()%1e4,t,4)}function Ay(e,t){var n=e.getUTCDay();return Mg((e=n>=4||0===n?$v(e):$v.ceil(e)).getUTCFullYear()%1e4,t,4)}function Py(){return"+0000"}function Ry(){return"%"}function Iy(e){return+e}function Fy(e){return Math.floor(+e/1e3)}function Ly(e){return vg=mg(e),gg=vg.format,yg=vg.parse,bg=vg.utcFormat,wg=vg.utcParse,vg}Ly({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"]});var zy=1e3,By=6e4,Zy=36e5,Wy=864e5,Hy=2592e6,Yy=31536e6;function Uy(e){return new Date(e)}function Vy(e){return e instanceof Date?+e:+new Date(+e)}function qy(e,t,n,r,i,a,s,u,l){var c=Cm(xm,xm),f=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),m=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),y=l("%b %d"),b=l("%B"),w=l("%Y"),x=[[s,1,zy],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,By],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,Zy],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Wy],[r,2,1728e5],[n,1,6048e5],[t,1,Hy],[t,3,7776e6],[e,1,Yy]];function _(o){return(s(o)<o?h:a(o)<o?p:i(o)<o?m:r(o)<o?v:t(o)<o?n(o)<o?g:y:e(o)<o?b:w)(o)}function k(t,n,r,i){if(null==t&&(t=10),"number"===typeof t){var a=Math.abs(r-n)/t,s=o((function(e){return e[2]})).right(x,a);s===x.length?(i=O(n/Yy,r/Yy,t),t=e):s?(i=(s=x[a/x[s-1][2]<x[s][2]/a?s-1:s])[1],t=s[0]):(i=Math.max(O(n,r,t),1),t=u)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(f(e))},c.domain=function(e){return arguments.length?d(dm.call(e,Vy)):d().map(Uy)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=k(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?_:l(t)},c.nice=function(e,t){var n=d();return(e=k(e,n[0],n[n.length-1],t))?d(Am(n,e)):c},c.copy=function(){return Tm(c,qy(e,t,n,r,i,a,s,u,l))},c}function Gy(){return lm.apply(qy(ov,uv,vv,Nv,Pv,Fv,Bv,Hv,gg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Xy=rv((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),$y=Xy,Qy=Xy.range,Ky=rv((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*dv)}),(function(e,t){return(t-e)/dv}),(function(e){return e.getUTCHours()})),Jy=Ky,eb=Ky.range,tb=rv((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*fv)}),(function(e,t){return(t-e)/fv}),(function(e){return e.getUTCMinutes()})),nb=tb,rb=tb.range;function ib(){return lm.apply(qy(cg,$y,Vv,sg,Jy,nb,Bv,Hv,bg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ob(){var e,t,n,r,i,o=0,a=1,s=xm,u=!1;function l(t){return isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}return l.domain=function(i){return arguments.length?(e=r(o=+i[0]),t=r(a=+i[1]),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(u=!!e,l):u},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function ab(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sb(){var e=Dm(ob()(xm));return e.copy=function(){return ab(e,sb())},cm.apply(e,arguments)}function ub(){var e=Bm(ob()).domain([1,10]);return e.copy=function(){return ab(e,ub()).base(e.base())},cm.apply(e,arguments)}function lb(){var e=Ym(ob());return e.copy=function(){return ab(e,lb()).constant(e.constant())},cm.apply(e,arguments)}function cb(){var e=Xm(ob());return e.copy=function(){return ab(e,cb()).exponent(e.exponent())},cm.apply(e,arguments)}function fb(){return cb.apply(null,arguments).exponent(.5)}function db(){var e=[],t=xm;function n(n){if(!isNaN(n=+n))return t((l(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var r,o=0,a=t.length;o<a;++o)null==(r=t[o])||isNaN(r=+r)||e.push(r);return e.sort(i),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return db(t).domain(e)},cm.apply(n,arguments)}function hb(){var e,t,n,r,i,o,a,s=0,u=.5,l=1,c=xm,f=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(e<t?r:i),c(f?Math.max(0,Math.min(1,e)):e))}return d.domain=function(a){return arguments.length?(e=o(s=+a[0]),t=o(u=+a[1]),n=o(l=+a[2]),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),d):[s,u,l]},d.clamp=function(e){return arguments.length?(f=!!e,d):f},d.interpolator=function(e){return arguments.length?(c=e,d):c},d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(s),t=a(u),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),d}}function pb(){var e=Dm(hb()(xm));return e.copy=function(){return ab(e,pb())},cm.apply(e,arguments)}function mb(){var e=Bm(hb()).domain([.1,1,10]);return e.copy=function(){return ab(e,mb()).base(e.base())},cm.apply(e,arguments)}function vb(){var e=Ym(hb());return e.copy=function(){return ab(e,vb()).constant(e.constant())},cm.apply(e,arguments)}function gb(){var e=Xm(hb());return e.copy=function(){return ab(e,gb()).exponent(e.exponent())},cm.apply(e,arguments)}function yb(){return gb.apply(null,arguments).exponent(.5)}function bb(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}var wb=bb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),xb=bb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),_b=bb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),kb=bb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Sb=bb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Mb=bb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Tb=bb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Eb=bb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Cb=bb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ob=bb("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Db(e){return yn(e[e.length-1])}var Nb=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bb),jb=Db(Nb),Ab=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bb),Pb=Db(Ab),Rb=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bb),Ib=Db(Rb),Fb=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bb),Lb=Db(Fb),zb=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bb),Bb=Db(zb),Zb=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bb),Wb=Db(Zb),Hb=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bb),Yb=Db(Hb),Ub=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bb),Vb=Db(Ub),qb=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bb),Gb=Db(qb),Xb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bb),$b=Db(Xb),Qb=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bb),Kb=Db(Qb),Jb=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bb),ew=Db(Jb),tw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bb),nw=Db(tw),rw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bb),iw=Db(rw),ow=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bb),aw=Db(ow),sw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bb),uw=Db(sw),lw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bb),cw=Db(lw),fw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bb),dw=Db(fw),hw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bb),pw=Db(hw),mw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bb),vw=Db(mw),gw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bb),yw=Db(gw),bw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bb),ww=Db(bw),xw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bb),_w=Db(xw),kw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bb),Sw=Db(kw),Mw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bb),Tw=Db(Mw),Ew=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bb),Cw=Db(Ew),Ow=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bb),Dw=Db(Ow);function Nw(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"}var jw=Up(Vo(300,.5,0),Vo(-240,.5,1)),Aw=Up(Vo(-100,.75,.35),Vo(80,1.5,.8)),Pw=Up(Vo(260,.75,.35),Vo(80,1.5,.8)),Rw=Vo();function Iw(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Rw.h=360*e-100,Rw.s=1.5-1.5*t,Rw.l=.8-.9*t,Rw+""}var Fw=Qt(),Lw=Math.PI/3,zw=2*Math.PI/3;function Bw(e){var t;return e=(.5-e)*Math.PI,Fw.r=255*(t=Math.sin(e))*t,Fw.g=255*(t=Math.sin(e+Lw))*t,Fw.b=255*(t=Math.sin(e+zw))*t,Fw+""}function Zw(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"}function Ww(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Hw=Ww(bb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Yw=Ww(bb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Uw=Ww(bb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Vw=Ww(bb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function qw(e){return St(it(e).call(document.documentElement))}var Gw=0;function Xw(){return new $w}function $w(){this._="@"+(++Gw).toString(36)}function Qw(e){return"string"===typeof e?new xt([document.querySelectorAll(e)],[document.documentElement]):new xt([null==e?[]:e],wt)}function Kw(e,t){null==t&&(t=Nn().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=jn(e,t[n]);return i}function Jw(e){return function(){return e}}$w.prototype=Xw.prototype={constructor:$w,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var ex=Math.abs,tx=Math.atan2,nx=Math.cos,rx=Math.max,ix=Math.min,ox=Math.sin,ax=Math.sqrt,sx=1e-12,ux=Math.PI,lx=ux/2,cx=2*ux;function fx(e){return e>1?0:e<-1?ux:Math.acos(e)}function dx(e){return e>=1?lx:e<=-1?-lx:Math.asin(e)}function hx(e){return e.innerRadius}function px(e){return e.outerRadius}function mx(e){return e.startAngle}function vx(e){return e.endAngle}function gx(e){return e&&e.padAngle}function yx(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,d=f*u-c*l;if(!(d*d<sx))return[e+(d=(c*(t-o)-f*(e-i))/d)*u,t+d*l]}function bx(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/ax(s*s+u*u),c=l*u,f=-l*s,d=e+c,h=t+f,p=n+c,m=r+f,v=(d+p)/2,g=(h+m)/2,y=p-d,b=m-h,w=y*y+b*b,x=i-o,_=d*m-p*h,k=(b<0?-1:1)*ax(rx(0,x*x*w-_*_)),S=(_*b-y*k)/w,M=(-_*y-b*k)/w,T=(_*b+y*k)/w,E=(-_*y+b*k)/w,C=S-v,O=M-g,D=T-v,N=E-g;return C*C+O*O>D*D+N*N&&(S=T,M=E),{cx:S,cy:M,x01:-c,y01:-f,x11:S*(i/x-1),y11:M*(i/x-1)}}function wx(){var e=hx,t=px,n=Jw(0),r=null,i=mx,o=vx,a=gx,s=null;function u(){var u,l,c=+e.apply(this,arguments),f=+t.apply(this,arguments),d=i.apply(this,arguments)-lx,h=o.apply(this,arguments)-lx,p=ex(h-d),m=h>d;if(s||(s=u=qi()),f<c&&(l=f,f=c,c=l),f>sx)if(p>cx-sx)s.moveTo(f*nx(d),f*ox(d)),s.arc(0,0,f,d,h,!m),c>sx&&(s.moveTo(c*nx(h),c*ox(h)),s.arc(0,0,c,h,d,m));else{var v,g,y=d,b=h,w=d,x=h,_=p,k=p,S=a.apply(this,arguments)/2,M=S>sx&&(r?+r.apply(this,arguments):ax(c*c+f*f)),T=ix(ex(f-c)/2,+n.apply(this,arguments)),E=T,C=T;if(M>sx){var O=dx(M/c*ox(S)),D=dx(M/f*ox(S));(_-=2*O)>sx?(w+=O*=m?1:-1,x-=O):(_=0,w=x=(d+h)/2),(k-=2*D)>sx?(y+=D*=m?1:-1,b-=D):(k=0,y=b=(d+h)/2)}var N=f*nx(y),j=f*ox(y),A=c*nx(x),P=c*ox(x);if(T>sx){var R,I=f*nx(b),F=f*ox(b),L=c*nx(w),z=c*ox(w);if(p<ux&&(R=yx(N,j,L,z,I,F,A,P))){var B=N-R[0],Z=j-R[1],W=I-R[0],H=F-R[1],Y=1/ox(fx((B*W+Z*H)/(ax(B*B+Z*Z)*ax(W*W+H*H)))/2),U=ax(R[0]*R[0]+R[1]*R[1]);E=ix(T,(c-U)/(Y-1)),C=ix(T,(f-U)/(Y+1))}}k>sx?C>sx?(v=bx(L,z,N,j,f,C,m),g=bx(I,F,A,P,f,C,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),C<T?s.arc(v.cx,v.cy,C,tx(v.y01,v.x01),tx(g.y01,g.x01),!m):(s.arc(v.cx,v.cy,C,tx(v.y01,v.x01),tx(v.y11,v.x11),!m),s.arc(0,0,f,tx(v.cy+v.y11,v.cx+v.x11),tx(g.cy+g.y11,g.cx+g.x11),!m),s.arc(g.cx,g.cy,C,tx(g.y11,g.x11),tx(g.y01,g.x01),!m))):(s.moveTo(N,j),s.arc(0,0,f,y,b,!m)):s.moveTo(N,j),c>sx&&_>sx?E>sx?(v=bx(A,P,I,F,c,-E,m),g=bx(N,j,L,z,c,-E,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),E<T?s.arc(v.cx,v.cy,E,tx(v.y01,v.x01),tx(g.y01,g.x01),!m):(s.arc(v.cx,v.cy,E,tx(v.y01,v.x01),tx(v.y11,v.x11),!m),s.arc(0,0,c,tx(v.cy+v.y11,v.cx+v.x11),tx(g.cy+g.y11,g.cx+g.x11),m),s.arc(g.cx,g.cy,E,tx(g.y11,g.x11),tx(g.y01,g.x01),!m))):s.arc(0,0,c,x,w,m):s.lineTo(A,P)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-ux/2;return[nx(r)*n,ox(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:Jw(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:Jw(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:Jw(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Jw(+e),u):r},u.startAngle=function(e){return arguments.length?(i="function"===typeof e?e:Jw(+e),u):i},u.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:Jw(+e),u):o},u.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:Jw(+e),u):a},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u}function xx(e){this._context=e}function _x(e){return new xx(e)}function kx(e){return e[0]}function Sx(e){return e[1]}function Mx(){var e=kx,t=Sx,n=Jw(!0),r=null,i=_x,o=null;function a(a){var s,u,l,c=a.length,f=!1;for(null==r&&(o=i(l=qi())),s=0;s<=c;++s)!(s<c&&n(u=a[s],s,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,a),+t(u,s,a));if(l)return o=null,l+""||null}return a.x=function(t){return arguments.length?(e="function"===typeof t?t:Jw(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:Jw(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:Jw(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function Tx(){var e=kx,t=null,n=Jw(0),r=Sx,i=Jw(!0),o=null,a=_x,s=null;function u(u){var l,c,f,d,h,p=u.length,m=!1,v=new Array(p),g=new Array(p);for(null==o&&(s=a(h=qi())),l=0;l<=p;++l){if(!(l<p&&i(d=u[l],l,u))===m)if(m=!m)c=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=l-1;f>=c;--f)s.point(v[f],g[f]);s.lineEnd(),s.areaEnd()}m&&(v[l]=+e(d,l,u),g[l]=+n(d,l,u),s.point(t?+t(d,l,u):v[l],r?+r(d,l,u):g[l]))}if(h)return s=null,h+""||null}function l(){return Mx().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(e="function"===typeof n?n:Jw(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:Jw(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Jw(+e),u):t},u.y=function(e){return arguments.length?(n="function"===typeof e?e:Jw(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"===typeof e?e:Jw(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Jw(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:Jw(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u}function Ex(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Cx(e){return e}function Ox(){var e=Cx,t=Ex,n=null,r=Jw(0),i=Jw(cx),o=Jw(0);function a(a){var s,u,l,c,f,d=a.length,h=0,p=new Array(d),m=new Array(d),v=+r.apply(this,arguments),g=Math.min(cx,Math.max(-cx,i.apply(this,arguments)-v)),y=Math.min(Math.abs(g)/d,o.apply(this,arguments)),b=y*(g<0?-1:1);for(s=0;s<d;++s)(f=m[p[s]=s]=+e(a[s],s,a))>0&&(h+=f);for(null!=t?p.sort((function(e,n){return t(m[e],m[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,l=h?(g-d*b)/h:0;s<d;++s,v=c)u=p[s],c=v+((f=m[u])>0?f*l:0)+b,m[u]={data:a[u],index:s,value:f,startAngle:v,endAngle:c,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:Jw(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:Jw(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:Jw(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:Jw(+e),a):o},a}xx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(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;default:this._context.lineTo(e,t)}}};var Dx=jx(_x);function Nx(e){this._curve=e}function jx(e){function t(t){return new Nx(e(t))}return t._curve=e,t}function Ax(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(jx(e)):t()._curve},e}function Px(){return Ax(Mx().curve(Dx))}function Rx(){var e=Tx().curve(Dx),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Ax(n())},delete e.lineX0,e.lineEndAngle=function(){return Ax(r())},delete e.lineX1,e.lineInnerRadius=function(){return Ax(i())},delete e.lineY0,e.lineOuterRadius=function(){return Ax(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(jx(e)):t()._curve},e}function Ix(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}Nx.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Fx=Array.prototype.slice;function Lx(e){return e.source}function zx(e){return e.target}function Bx(e){var t=Lx,n=zx,r=kx,i=Sx,o=null;function a(){var a,s=Fx.call(arguments),u=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=qi()),e(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"===typeof e?e:Jw(+e),a):r},a.y=function(e){return arguments.length?(i="function"===typeof e?e:Jw(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function Zx(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Wx(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Hx(e,t,n,r,i){var o=Ix(t,n),a=Ix(t,n=(n+i)/2),s=Ix(r,n),u=Ix(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function Yx(){return Bx(Zx)}function Ux(){return Bx(Wx)}function Vx(){var e=Bx(Hx);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var qx={draw:function(e,t){var n=Math.sqrt(t/ux);e.moveTo(n,0),e.arc(0,0,n,0,cx)}},Gx={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Xx=Math.sqrt(1/3),$x=2*Xx,Qx={draw:function(e,t){var n=Math.sqrt(t/$x),r=n*Xx;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Kx=Math.sin(ux/10)/Math.sin(7*ux/10),Jx=Math.sin(cx/10)*Kx,e_=-Math.cos(cx/10)*Kx,t_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Jx*n,i=e_*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=cx*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},n_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},r_=Math.sqrt(3),i_={draw:function(e,t){var n=-Math.sqrt(t/(3*r_));e.moveTo(0,2*n),e.lineTo(-r_*n,-n),e.lineTo(r_*n,-n),e.closePath()}},o_=-.5,a_=Math.sqrt(3)/2,s_=1/Math.sqrt(12),u_=3*(s_/2+1),l_={draw:function(e,t){var n=Math.sqrt(t/u_),r=n/2,i=n*s_,o=r,a=n*s_+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(o_*r-a_*i,a_*r+o_*i),e.lineTo(o_*o-a_*a,a_*o+o_*a),e.lineTo(o_*s-a_*u,a_*s+o_*u),e.lineTo(o_*r+a_*i,o_*i-a_*r),e.lineTo(o_*o+a_*a,o_*a-a_*o),e.lineTo(o_*s+a_*u,o_*u-a_*s),e.closePath()}},c_=[qx,Gx,Qx,n_,t_,i_,l_];function f_(){var e=Jw(qx),t=Jw(64),n=null;function r(){var r;if(n||(n=r=qi()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:Jw(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:Jw(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function d_(){}function h_(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 p_(e){this._context=e}function m_(e){return new p_(e)}function v_(e){this._context=e}function g_(e){return new v_(e)}function y_(e){this._context=e}function b_(e){return new y_(e)}function w_(e,t){this._basis=new p_(e),this._beta=t}p_.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:h_(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:h_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},v_.prototype={areaStart:d_,areaEnd:d_,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:h_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},y_.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:h_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},w_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var x_=function e(t){function n(e){return 1===t?new p_(e):new w_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function __(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function k_(e,t){this._context=e,this._k=(1-t)/6}k_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:__(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:__(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var S_=function e(t){function n(e){return new k_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function M_(e,t){this._context=e,this._k=(1-t)/6}M_.prototype={areaStart:d_,areaEnd:d_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:__(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var T_=function e(t){function n(e){return new M_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function E_(e,t){this._context=e,this._k=(1-t)/6}E_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:__(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var C_=function e(t){function n(e){return new E_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function O_(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>sx){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>sx){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function D_(e,t){this._context=e,this._alpha=t}D_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:O_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var N_=function e(t){function n(e){return t?new D_(e,t):new k_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function j_(e,t){this._context=e,this._alpha=t}j_.prototype={areaStart:d_,areaEnd:d_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:O_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var A_=function e(t){function n(e){return t?new j_(e,t):new M_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function P_(e,t){this._context=e,this._alpha=t}P_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:O_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R_=function e(t){function n(e){return t?new P_(e,t):new E_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I_(e){this._context=e}function F_(e){return new I_(e)}function L_(e){return e<0?-1:1}function z_(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(L_(o)+L_(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function B_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Z_(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function W_(e){this._context=e}function H_(e){this._context=new Y_(e)}function Y_(e){this._context=e}function U_(e){return new W_(e)}function V_(e){return new H_(e)}function q_(e){this._context=e}function G_(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function X_(e){return new q_(e)}function $_(e,t){this._context=e,this._t=t}function Q_(e){return new $_(e,.5)}function K_(e){return new $_(e,0)}function J_(e){return new $_(e,1)}function ek(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function tk(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nk(e,t){return e[t]}function rk(){var e=Jw([]),t=tk,n=ek,r=nk;function i(i){var o,a,s=e.apply(this,arguments),u=i.length,l=s.length,c=new Array(l);for(o=0;o<l;++o){for(var f,d=s[o],h=c[o]=new Array(u),p=0;p<u;++p)h[p]=f=[0,+r(i[p],d,p,i)],f.data=i[p];h.key=d}for(o=0,a=t(c);o<l;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:Jw(Fx.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:Jw(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?tk:"function"===typeof e?e:Jw(Fx.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?ek:e,i):n},i}function ik(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}ek(e,t)}}function ok(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,u=0,l=e[t[0]].length;u<l;++u)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function ak(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}ek(e,t)}}function sk(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,l=0;s<i;++s){for(var c=e[t[s]],f=c[a][1]||0,d=(f-(c[a-1][1]||0))/2,h=0;h<s;++h){var p=e[t[h]];d+=(p[a][1]||0)-(p[a-1][1]||0)}u+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,ek(e,t)}}function uk(e){var t=e.map(lk);return tk(e).sort((function(e,n){return t[e]-t[n]}))}function lk(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function ck(e){var t=e.map(fk);return tk(e).sort((function(e,n){return t[e]-t[n]}))}function fk(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function dk(e){return ck(e).reverse()}function hk(e){var t,n,r=e.length,i=e.map(fk),o=uk(e),a=0,s=0,u=[],l=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],u.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(u)}function pk(e){return tk(e).reverse()}I_.prototype={areaStart:d_,areaEnd:d_,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},W_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Z_(this,this._t0,B_(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Z_(this,B_(this,n=z_(this,e,t)),n);break;default:Z_(this,this._t0,n=z_(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(H_.prototype=Object.create(W_.prototype)).point=function(e,t){W_.prototype.point.call(this,t,e)},Y_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},q_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=G_(e),i=G_(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},$_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var mk="%Y-%m-%dT%H:%M:%S.%LZ";var vk=Date.prototype.toISOString?function(e){return e.toISOString()}:bg(mk),gk=vk;var yk=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:wg(mk),bk=yk;function wk(e,t,n){var r=new qn,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Un():+n,r.restart((function o(a){a+=i,r.restart(o,i+=t,n),e(a)}),t,n),r)}function xk(e){return function(){return e}}function _k(e){return e[0]}function kk(e){return e[1]}function Sk(){this._=null}function Mk(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Tk(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Ek(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Ck(e){for(;e.L;)e=e.L;return e}Sk.prototype={constructor:Sk,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Ck(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Tk(this,n),n=(e=n).U),n.C=!1,r.C=!0,Ek(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(Ek(this,n),n=(e=n).U),n.C=!1,r.C=!0,Tk(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?Ck(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Tk(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Ek(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Tk(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Ek(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Tk(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Ek(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var Ok=Sk;function Dk(e,t,n,r){var i=[null,null],o=eS.push(i)-1;return i.left=e,i.right=t,n&&jk(i,e,t,n),r&&jk(i,t,e,r),Kk[e.index].halfedges.push(o),Kk[t.index].halfedges.push(o),i}function Nk(e,t,n){var r=[t,n];return r.left=e,r}function jk(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function Ak(e,t,n,r,i){var o,a=e[0],s=e[1],u=a[0],l=a[1],c=0,f=1,d=s[0]-u,h=s[1]-l;if(o=t-u,d||!(o>0)){if(o/=d,d<0){if(o<c)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>c&&(c=o)}if(o=r-u,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>c&&(c=o)}else if(d>0){if(o<c)return;o<f&&(f=o)}if(o=n-l,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>c&&(c=o)}if(o=i-l,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<f&&(f=o)}return!(c>0||f<1)||(c>0&&(e[0]=[u+c*d,l+c*h]),f<1&&(e[1]=[u+f*d,l+f*h]),!0)}}}}}function Pk(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,u=e[0],l=e.left,c=e.right,f=l[0],d=l[1],h=c[0],p=c[1],m=(f+h)/2,v=(d+p)/2;if(p===d){if(m<t||m>=r)return;if(f>h){if(u){if(u[1]>=i)return}else u=[m,n];o=[m,i]}else{if(u){if(u[1]<n)return}else u=[m,i];o=[m,n]}}else if(s=v-(a=(f-h)/(p-d))*m,a<-1||a>1)if(f>h){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}else if(d<p){if(u){if(u[0]>=r)return}else u=[t,a*t+s];o=[r,a*r+s]}else{if(u){if(u[0]<t)return}else u=[r,a*r+s];o=[t,a*t+s]}return e[0]=u,e[1]=o,!0}function Rk(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Ik(e,t){return t[+(t.left!==e.site)]}function Fk(e,t){return t[+(t.left===e.site)]}var Lk,zk=[];function Bk(){Mk(this),this.x=this.y=this.arc=this.site=this.cy=null}function Zk(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i[0],s=i[1],u=r[0]-a,l=r[1]-s,c=o[0]-a,f=o[1]-s,d=2*(u*f-l*c);if(!(d>=-nS)){var h=u*u+l*l,p=c*c+f*f,m=(f*h-l*p)/d,v=(u*p-c*h)/d,g=zk.pop()||new Bk;g.arc=e,g.site=i,g.x=m+a,g.y=(g.cy=v+s)+Math.sqrt(m*m+v*v),e.circle=g;for(var y=null,b=Jk._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}Jk.insert(y,g),y||(Lk=g)}}}}function Wk(e){var t=e.circle;t&&(t.P||(Lk=t.N),Jk.remove(t),zk.push(t),Mk(t),e.circle=null)}var Hk=[];function Yk(){Mk(this),this.edge=this.site=this.circle=null}function Uk(e){var t=Hk.pop()||new Yk;return t.site=e,t}function Vk(e){Wk(e),Qk.remove(e),Hk.push(e),Mk(e)}function qk(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];Vk(e);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<tS&&Math.abs(r-u.circle.cy)<tS;)o=u.P,s.unshift(u),Vk(u),u=o;s.unshift(u),Wk(u);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<tS&&Math.abs(r-l.circle.cy)<tS;)a=l.N,s.push(l),Vk(l),l=a;s.push(l),Wk(l);var c,f=s.length;for(c=1;c<f;++c)l=s[c],u=s[c-1],jk(l.edge,u.site,l.site,i);u=s[0],(l=s[f-1]).edge=Dk(u.site,l.site,null,i),Zk(u),Zk(l)}function Gk(e){for(var t,n,r,i,o=e[0],a=e[1],s=Qk._;s;)if((r=Xk(s,a)-o)>tS)s=s.L;else{if(!((i=o-$k(s,a))>tS)){r>-tS?(t=s.P,n=s):i>-tS?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Kk[e.index]={site:e,halfedges:[]}}(e);var u=Uk(e);if(Qk.insert(t,u),t||n){if(t===n)return Wk(t),n=Uk(t.site),Qk.insert(u,n),u.edge=n.edge=Dk(t.site,u.site),Zk(t),void Zk(n);if(n){Wk(t),Wk(n);var l=t.site,c=l[0],f=l[1],d=e[0]-c,h=e[1]-f,p=n.site,m=p[0]-c,v=p[1]-f,g=2*(d*v-h*m),y=d*d+h*h,b=m*m+v*v,w=[(v*y-h*b)/g+c,(d*b-m*y)/g+f];jk(n.edge,l,p,w),u.edge=Dk(l,e,null,w),n.edge=Dk(e,p,null,w),Zk(t),Zk(n)}else u.edge=Dk(t.site,u.site)}}function Xk(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],l=u-t;if(!l)return s;var c=s-r,f=1/o-1/l,d=c/l;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function $k(e,t){var n=e.N;if(n)return Xk(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Qk,Kk,Jk,eS,tS=1e-6,nS=1e-12;function rS(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function iS(e,t){return t[1]-e[1]||t[0]-e[0]}function oS(e,t){var n,r,i,o=e.sort(iS).pop();for(eS=[],Kk=new Array(e.length),Qk=new Ok,Jk=new Ok;;)if(i=Lk,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(Gk(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;qk(i.arc)}if(function(){for(var e,t,n,r,i=0,o=Kk.length;i<o;++i)if((e=Kk[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=Rk(e,eS[t[n]]);for(a.sort((function(e,t){return s[t]-s[e]})),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],u=+t[1][0],l=+t[1][1];!function(e,t,n,r){for(var i,o=eS.length;o--;)Pk(i=eS[o],e,t,n,r)&&Ak(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>tS||Math.abs(i[0][1]-i[1][1])>tS)||delete eS[o]}(a,s,u,l),function(e,t,n,r){var i,o,a,s,u,l,c,f,d,h,p,m,v=Kk.length,g=!0;for(i=0;i<v;++i)if(o=Kk[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)eS[u[s]]||u.splice(s,1);for(s=0,l=u.length;s<l;)p=(h=Fk(o,eS[u[s]]))[0],m=h[1],f=(c=Ik(o,eS[u[++s%l]]))[0],d=c[1],(Math.abs(p-f)>tS||Math.abs(m-d)>tS)&&(u.splice(s,0,eS.push(Nk(a,h,Math.abs(p-e)<tS&&r-m>tS?[e,Math.abs(f-e)<tS?d:r]:Math.abs(m-r)<tS&&n-p>tS?[Math.abs(d-r)<tS?f:n,r]:Math.abs(p-n)<tS&&m-t>tS?[n,Math.abs(f-n)<tS?d:t]:Math.abs(m-t)<tS&&p-e>tS?[Math.abs(d-t)<tS?f:e,t]:null))-1),++l);l&&(g=!1)}if(g){var y,b,w,x=1/0;for(i=0,g=null;i<v;++i)(o=Kk[i])&&(w=(y=(a=o.site)[0]-e)*y+(b=a[1]-t)*b)<x&&(x=w,g=o);if(g){var _=[e,t],k=[e,r],S=[n,r],M=[n,t];g.halfedges.push(eS.push(Nk(a=g.site,_,k))-1,eS.push(Nk(a,k,S))-1,eS.push(Nk(a,S,M))-1,eS.push(Nk(a,M,_))-1)}}for(i=0;i<v;++i)(o=Kk[i])&&(o.halfedges.length||delete Kk[i])}(a,s,u,l)}this.edges=eS,this.cells=Kk,Qk=Jk=eS=Kk=null}function aS(){var e=_k,t=kk,n=null;function r(r){return new oS(r.map((function(n,i){var o=[Math.round(e(n,i,r)/tS)*tS,Math.round(t(n,i,r)/tS)*tS];return o.index=i,o.data=n,o})),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"===typeof t?t:xk(+t),r):e},r.y=function(e){return arguments.length?(t="function"===typeof e?e:xk(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}function sS(e){return function(){return e}}function uS(e,t,n){this.target=e,this.type=t,this.transform=n}function lS(e,t,n){this.k=e,this.x=t,this.y=n}oS.prototype={constructor:oS,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return Ik(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s=n.site,u=-1,l=t[i[o-1]],c=l.left===s?l.right:l.left;++u<o;)a=c,c=(l=t[i[u]]).left===s?l.right:l.left,a&&c&&r<a.index&&r<c.index&&rS(s,a,c)<0&&e.push([s.data,a.data,c.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var u=e-i.site[0],l=t-i.site[1],c=u*u+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=e-s[0],l=t-s[1],f=u*u+l*l;f<c&&(c=f,a=s.index)}}))}while(null!==a);return o._found=r,null==n||c<=n*n?i.site:null}},lS.prototype={constructor:lS,scale:function(e){return 1===e?this:new lS(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new lS(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var cS=new lS(1,0,0);function fS(e){for(;!e.__zoom;)if(!(e=e.parentNode))return cS;return e.__zoom}function dS(){ct.stopImmediatePropagation()}function hS(){ct.preventDefault(),ct.stopImmediatePropagation()}function pS(){return!ct.ctrlKey&&!ct.button}function mS(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function vS(){return this.__zoom||cS}function gS(){return-ct.deltaY*(1===ct.deltaMode?.05:ct.deltaMode?1:.002)}function yS(){return navigator.maxTouchPoints||"ontouchstart"in this}function bS(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function wS(){var e,t,n=pS,r=mS,i=bS,o=gS,a=yS,s=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Rp,f=de("start","zoom","end"),d=500,h=0;function p(e){e.property("__zoom",vS).on("wheel.zoom",x).on("mousedown.zoom",_).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",M).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new lS(t,e.x,e.y)}function v(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new lS(e.k,r,i)}function g(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function y(e,t,n){e.on("start.zoom",(function(){b(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).end()})).tween("zoom",(function(){var e=this,i=arguments,o=b(e,i),a=r.apply(e,i),s=null==n?g(a):"function"===typeof n?n.apply(e,i):n,u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=e.__zoom,f="function"===typeof t?t.apply(e,i):t,d=c(l.invert(s).concat(u/l.k),f.invert(s).concat(u/f.k));return function(e){if(1===e)e=f;else{var t=d(e),n=u/t[2];e=new lS(n,s[0]-t[0]*n,s[1]-t[1]*n)}o.zoom(null,e)}}))}function b(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.extent=r.apply(e,t),this.taps=0}function x(){if(n.apply(this,arguments)){var e=b(this,arguments),t=this.__zoom,r=Math.max(s[0],Math.min(s[1],t.k*Math.pow(2,o.apply(this,arguments)))),a=Pn(this);if(e.wheel)e.mouse[0][0]===a[0]&&e.mouse[0][1]===a[1]||(e.mouse[1]=t.invert(e.mouse[0]=a)),clearTimeout(e.wheel);else{if(t.k===r)return;e.mouse=[a,t.invert(a)],ar(this),e.start()}hS(),e.wheel=setTimeout(l,150),e.zoom("mouse",i(v(m(t,r),e.mouse[0],e.mouse[1]),e.extent,u))}function l(){e.wheel=null,e.end()}}function _(){if(!t&&n.apply(this,arguments)){var e=b(this,arguments,!0),r=St(ct.view).on("mousemove.zoom",l,!0).on("mouseup.zoom",c,!0),o=Pn(this),a=ct.clientX,s=ct.clientY;Et(ct.view),dS(),e.mouse=[o,this.__zoom.invert(o)],ar(this),e.start()}function l(){if(hS(),!e.moved){var t=ct.clientX-a,n=ct.clientY-s;e.moved=t*t+n*n>h}e.zoom("mouse",i(v(e.that.__zoom,e.mouse[0]=Pn(e.that),e.mouse[1]),e.extent,u))}function c(){r.on("mousemove.zoom mouseup.zoom",null),Ct(ct.view,e.moved),hS(),e.end()}}function k(){if(n.apply(this,arguments)){var e=this.__zoom,t=Pn(this),o=e.invert(t),a=e.k*(ct.shiftKey?.5:2),s=i(v(m(e,a),t,o),r.apply(this,arguments),u);hS(),l>0?St(this).transition().duration(l).call(y,s,t):St(this).call(p.transform,s)}}function S(){if(n.apply(this,arguments)){var t,r,i,o,a=ct.touches,s=a.length,u=b(this,arguments,ct.changedTouches.length===s);for(dS(),r=0;r<s;++r)o=[o=An(this,a,(i=a[r]).identifier),this.__zoom.invert(o),i.identifier],u.touch0?u.touch1||u.touch0[2]===o[2]||(u.touch1=o,u.taps=0):(u.touch0=o,t=!0,u.taps=1+!!e);e&&(e=clearTimeout(e)),t&&(u.taps<2&&(e=setTimeout((function(){e=null}),d)),ar(this),u.start())}}function M(){if(this.__zooming){var t,n,r,o,a=b(this,arguments),s=ct.changedTouches,l=s.length;for(hS(),e&&(e=clearTimeout(e)),a.taps=0,t=0;t<l;++t)r=An(this,s,(n=s[t]).identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=r:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=r);if(n=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],d=a.touch1[0],h=a.touch1[1],p=(p=d[0]-c[0])*p+(p=d[1]-c[1])*p,g=(g=h[0]-f[0])*g+(g=h[1]-f[1])*g;n=m(n,Math.sqrt(p/g)),r=[(c[0]+d[0])/2,(c[1]+d[1])/2],o=[(f[0]+h[0])/2,(f[1]+h[1])/2]}else{if(!a.touch0)return;r=a.touch0[0],o=a.touch0[1]}a.zoom("touch",i(v(n,r,o),a.extent,u))}}function T(){if(this.__zooming){var e,n,r=b(this,arguments),i=ct.changedTouches,o=i.length;for(dS(),t&&clearTimeout(t),t=setTimeout((function(){t=null}),d),e=0;e<o;++e)n=i[e],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var a=St(this).on("dblclick.zoom");a&&a.apply(this,arguments)}}}return p.transform=function(e,t,n){var r=e.selection?e.selection():e;r.property("__zoom",vS),e!==r?y(e,t,n):r.interrupt().each((function(){b(this,arguments).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},p.scaleBy=function(e,t,n){p.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n)},p.scaleTo=function(e,t,n){p.transform(e,(function(){var e=r.apply(this,arguments),o=this.__zoom,a=null==n?g(e):"function"===typeof n?n.apply(this,arguments):n,s=o.invert(a),l="function"===typeof t?t.apply(this,arguments):t;return i(v(m(o,l),a,s),e,u)}),n)},p.translateBy=function(e,t,n){p.transform(e,(function(){return i(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),r.apply(this,arguments),u)}))},p.translateTo=function(e,t,n,o){p.transform(e,(function(){var e=r.apply(this,arguments),a=this.__zoom,s=null==o?g(e):"function"===typeof o?o.apply(this,arguments):o;return i(cS.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,u)}),o)},w.prototype={start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){vt(new uS(p,e,this.that.__zoom),f.apply,f,[e,this.that,this.args])}},p.wheelDelta=function(e){return arguments.length?(o="function"===typeof e?e:sS(+e),p):o},p.filter=function(e){return arguments.length?(n="function"===typeof e?e:sS(!!e),p):n},p.touchable=function(e){return arguments.length?(a="function"===typeof e?e:sS(!!e),p):a},p.extent=function(e){return arguments.length?(r="function"===typeof e?e:sS([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),p):r},p.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],p):[s[0],s[1]]},p.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],p):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},p.constrain=function(e){return arguments.length?(i=e,p):i},p.duration=function(e){return arguments.length?(l=+e,p):l},p.interpolate=function(e){return arguments.length?(c=e,p):c},p.on=function(){var e=f.on.apply(f,arguments);return e===f?p:e},p.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,p):Math.sqrt(h)},p}fS.prototype=lS.prototype},69790:function(e,t,n){e.exports={graphlib:n(2990),layout:n(26456),debug:n(97920),util:{time:n(48392).time,notime:n(48392).notime},version:n(6206)}},2212:function(e,t,n){"use strict";var r=n(38899),i=n(63857);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?i(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),(function(e){r.has(n,e.w)?t.push(e):o(e.w)})),delete n[a])}return r.forEach(e.nodes(),o),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},24093:function(e,t,n){var r=n(38899),i=n(48392);function o(e,t,n,r,o,a){var s={width:0,height:0,rank:a,borderType:t},u=o[t][a-1],l=i.addDummyNode(e,"border",s,n);o[t][a]=l,e.setParent(l,r),u&&e.setEdge(u,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.forEach(i,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s<u;++s)o(e,"borderLeft","_bl",n,a,s),o(e,"borderRight","_br",n,a,s)}}))}},87523:function(e,t,n){"use strict";var r=n(38899);function i(e){r.forEach(e.nodes(),(function(t){o(e.node(t))})),r.forEach(e.edges(),(function(t){o(e.edge(t))}))}function o(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(e),i(e))}}},45639:function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},97920:function(e,t,n){var r=n(38899),i=n(48392),o=n(2990).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var i="layer"+t;n.setNode(i,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},2990:function(e,t,n){var r;try{r=n(86118)}catch(i){}r||(r=window.graphlib),e.exports=r},63857:function(e,t,n){var r=n(38899),i=n(2990).Graph,o=n(45639);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new i,a=0,s=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),o=r+i;n.setEdge(e.v,e.w,o),s=Math.max(s,n.node(e.v).out+=i),a=Math.max(a,n.node(e.w).in+=i)}));var l=r.range(s+a+3).map((function(){return new o})),c=a+1;return r.forEach(n.nodes(),(function(e){u(l,c,n.node(e))})),{graph:n,buckets:l,zeroIdx:c}}(e,t||a),l=function(e,t,n){var r,i=[],o=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount())for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){i=i.concat(s(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(t){return e.outEdges(t.v,t.w)})),!0)};var a=r.constant(1);function s(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(t,n,s)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,u(t,n,a)})),e.removeNode(i.v),a}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},26456:function(e,t,n){"use strict";var r=n(38899),i=n(2212),o=n(81898),a=n(56744),s=n(48392).normalizeRanks,u=n(77652),l=n(48392).removeEmptyRanks,c=n(51652),f=n(24093),d=n(87523),h=n(57348),p=n(13090),m=n(48392),v=n(2990).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?m.time:m.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new v({multigraph:!0,compound:!0}),n=T(e.graph());return t.setGraph(r.merge({},y,M(n,g),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var i=T(e.node(n));t.setNode(n,r.defaults(M(i,w),x)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=T(e.edge(n));t.setEdge(n,r.merge({},k,M(i,_),r.pick(i,S)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){a(m.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};m.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){l(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){s(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){f(e)})),t(" order",(function(){h(e)})),t(" insertSelfEdges",(function(){!function(e){var t=m.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){m.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){d.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){d.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,u=a.marginy||0;function l(e){var r=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(e.nodes(),(function(t){l(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&l(n)})),t-=s,i-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),a.width=n-t+s,a.height=o-i+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(m.intersectRect(o,n)),i.points.push(m.intersectRect(a,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var g=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],x={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function M(e,t){return r.mapValues(r.pick(e,t),Number)}function T(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},38899:function(e,t,n){var r;try{r={cloneDeep:n(58121),constant:n(71547),defaults:n(66933),each:n(29430),filter:n(80086),find:n(61211),flatten:n(25506),forEach:n(36514),forIn:n(69144),has:n(17805),isUndefined:n(42530),last:n(15727),map:n(72034),mapValues:n(37702),max:n(29627),merge:n(79286),min:n(66452),minBy:n(43638),now:n(50072),pick:n(36460),range:n(66222),reduce:n(25080),sortBy:n(64286),uniqueId:n(30804),values:n(92063),zipObject:n(84827)}}catch(i){}r||(r=window._),e.exports=r},51652:function(e,t,n){var r=n(38899),i=n(48392);function o(e,t,n,a,s,u,l){var c=e.children(l);if(c.length){var f=i.addBorderNode(e,"_bt"),d=i.addBorderNode(e,"_bb"),h=e.node(l);e.setParent(f,l),h.borderTop=f,e.setParent(d,l),h.borderBottom=d,r.forEach(c,(function(r){o(e,t,n,a,s,u,r);var i=e.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,m=c!==h?1:s-u[l]+1;e.setEdge(f,c,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(h,d,{weight:p,minlen:m,nestingEdge:!0})})),e.parent(l)||e.setEdge(t,f,{weight:0,minlen:s+u[l]})}else l!==t&&e.setEdge(t,l,{weight:0,minlen:n})}e.exports={run:function(e){var t=i.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};function n(i,o){var a=e.children(i);a&&a.length&&r.forEach(a,(function(e){n(e,o+1)})),t[i]=o}return r.forEach(e.children(),(function(e){n(e,1)})),t}(e),a=r.max(r.values(n))-1,s=2*a+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=s}));var u=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(r){o(e,t,s,u,a,n,r)})),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},81898:function(e,t,n){"use strict";var r=n(38899),i=n(48392);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,o,a=t.v,s=e.node(a).rank,u=t.w,l=e.node(u).rank,c=t.name,f=e.edge(t),d=f.labelRank;if(l===s+1)return;for(e.removeEdge(t),o=0,++s;s<l;++o,++s)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:t,rank:s},n=i.addDummyNode(e,"edge",r,"_d"),s===d&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),e.setEdge(a,n,{weight:f.weight},c),0===o&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,u,{weight:f.weight},c)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)}))}}},94388:function(e,t,n){var r=n(38899);e.exports=function(e,t,n){var i,o={};r.forEach(n,(function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void t.setEdge(a,s);s=r}}))}},85213:function(e,t,n){var r=n(38899);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var i=r.reduce(n,(function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}}))}},21386:function(e,t,n){var r=n(38899),i=n(2990).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var s=e.node(i),u=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:e.edge(t).weight+s})})),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))})),a}},83862:function(e,t,n){"use strict";var r=n(38899);function i(e,t,n){for(var i=r.zipObject(n,r.map(n,(function(e,t){return t}))),o=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:i[t.w],weight:e.edge(t).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),(function(){return 0})),l=0;return r.forEach(o.forEach((function(e){var t=e.pos+a;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;l+=e.weight*n}))),l}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}},57348:function(e,t,n){"use strict";var r=n(38899),i=n(75586),o=n(83862),a=n(83616),s=n(21386),u=n(94388),l=n(2990).Graph,c=n(48392);function f(e,t,n){return r.map(t,(function(t){return s(e,t,n)}))}function d(e,t){var n=new l;r.forEach(e,(function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,(function(t,n){e.node(t).order=n})),u(e,n,o.vs)}))}function h(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=c.maxRank(e),n=f(e,r.range(1,t+1),"inEdges"),a=f(e,r.range(t-1,-1,-1),"outEdges"),s=i(e);h(e,s);for(var u,l=Number.POSITIVE_INFINITY,p=0,m=0;m<4;++p,++m){d(p%2?n:a,p%4>=2),s=c.buildLayerMatrix(e);var v=o(e,s);v<l&&(m=0,u=r.cloneDeep(s),l=v)}h(e,u)}},75586:function(e,t,n){"use strict";var r=n(38899);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),i=r.max(r.map(n,(function(t){return e.node(t).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var a=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(a,(function n(i){if(r.has(t,i))return;t[i]=!0;var a=e.node(i);o[a.rank].push(i),r.forEach(e.successors(i),n)})),o}},31982:function(e,t,n){"use strict";var r=n(38899);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},83616:function(e,t,n){var r=n(38899),i=n(85213),o=n(31982),a=n(54929);e.exports=function e(t,n,s,u){var l=t.children(n),c=t.node(n),f=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,h={};f&&(l=r.filter(l,(function(e){return e!==f&&e!==d})));var p=i(t,l);r.forEach(p,(function(n){if(t.children(n.v).length){var i=e(t,n.v,s,u);h[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var m=o(p,s);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(m,h);var v=a(m,u);if(f&&(v.vs=r.flatten([f,v.vs,d],!0),t.predecessors(f).length)){var g=t.node(t.predecessors(f)[0]),y=t.node(t.predecessors(d)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+g.order+y.order)/(v.weight+2),v.weight+=2}return v}},54929:function(e,t,n){var r=n(38899),i=n(48392);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),a=n.lhs,s=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],l=0,c=0,f=0;a.sort((d=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:d?t.i-e.i:e.i-t.i})),f=o(u,s,f),r.forEach(a,(function(e){f+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,f=o(u,s,f)}));var d;var h={vs:r.flatten(u,!0)};c&&(h.barycenter=l/c,h.weight=c);return h}},77652:function(e,t,n){var r=n(38899);e.exports=function(e){var t=function(e){var t={},n=0;function i(o){var a=n;r.forEach(e.children(o),i),t[o]={low:a,lim:n++}}return r.forEach(e.children(),i),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,a=[],s=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),a.push(i)}while(i&&(t[i].low>u||l>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,t,i.v,i.w),a=o.path,s=o.lca,u=0,l=a[u],c=!0;n!==i.w;){if(r=e.node(n),c){for(;(l=a[u])!==s&&e.node(l).maxRank<r.rank;)u++;l===s&&(c=!1)}if(!c){for(;u<a.length-1&&e.node(l=a[u+1]).minRank<=r.rank;)u++;l=a[u]}e.setParent(n,l),n=e.successors(n)[0]}}))}},26137:function(e,t,n){"use strict";var r=n(38899),i=n(2990).Graph,o=n(48392);function a(e,t){var n={};return r.reduce(t,(function(t,i){var o=0,a=0,s=t.length,l=r.last(i);return r.forEach(i,(function(t,c){var f=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),d=f?e.node(f).order:s;(f||t===l)&&(r.forEach(i.slice(a,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),a=i.order;!(a<o||d<a)||i.dummy&&e.node(t).dummy||u(n,r,t)}))})),a=c+1,o=d)})),i})),n}function s(e,t){var n={};function i(t,i,o,a,s){var l;r.forEach(r.range(i,o),(function(i){l=t[i],e.node(l).dummy&&r.forEach(e.predecessors(l),(function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&u(n,t,l)}))}))}return r.reduce(t,(function(t,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},a={},s={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,a[e]=e,s[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=i(e);if(u.length){u=r.sortBy(u,(function(e){return s[e]}));for(var c=(u.length-1)/2,f=Math.floor(c),d=Math.ceil(c);f<=d;++f){var h=u[f];a[e]===e&&t<s[h]&&!l(n,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}}}))})),{root:o,align:a}}function f(e,t,n,o,a){var s={},u=function(e,t,n,o){var a=new i,s=e.graph(),u=function(e,t,n){return function(i,o,a){var s,u=i.node(o),l=i.node(a),c=0;if(c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2}if(s&&(c+=n?s:-s),s=0,c+=(u.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2}return s&&(c+=n?s:-s),s=0,c}}(s.nodesep,s.edgesep,o);return r.forEach(t,(function(t){var i;r.forEach(t,(function(t){var r=n[t];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(u(e,t,i),s||0))}i=t}))})),a}(e,t,n,a),l=a?"borderLeft":"borderRight";function c(e,t){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return c((function(e){s[e]=u.inEdges(e).reduce((function(e,t){return Math.max(e,s[t.v]+u.edge(t))}),0)}),u.predecessors.bind(u)),c((function(t){var n=u.outEdges(t).reduce((function(e,t){return Math.min(e,s[t.w]-u.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(s[t]=Math.max(s[t],n))}),u.successors.bind(u)),r.forEach(o,(function(e){s[e]=s[n[e]]})),s}function d(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var o=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+o,n),i=Math.min(t-o,i)})),n-i}))}function h(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,u=n+a,l=e[u];if(l!==t){var c=r.values(l);(s="l"===a?i-r.min(c):o-r.max(c))&&(e[u]=r.mapValues(l,(function(e){return e+s})))}}))}))}function p(e,t){return r.mapValues(e.ul,(function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2}))}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(a(e,n),s(e,n)),u={};r.forEach(["u","d"],(function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var a=("u"===o?e.predecessors:e.successors).bind(e),s=c(e,t,i,a),l=f(e,t,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,(function(e){return-e}))),u[o+n]=l}))}));var l=d(e,u);return h(u,l),p(u,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:u,hasConflict:l,verticalAlignment:c,horizontalCompaction:f,alignCoordinates:h,findSmallestWidthAlignment:d,balance:p}},13090:function(e,t,n){"use strict";var r=n(38899),i=n(48392),o=n(26137).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}},5378:function(e,t,n){"use strict";var r=n(38899),i=n(2990).Graph,o=n(64441).slack;function a(e,t){return r.forEach(e.nodes(),(function n(i){r.forEach(t.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;e.hasNode(s)||o(t,r)||(e.setNode(s,{}),e.setEdge(i,s,{}),n(s))}))})),e.nodeCount()}function s(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function u(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new i({directed:!1}),l=e.nodes()[0],c=e.nodeCount();r.setNode(l,{});for(;a(r,e)<c;)t=s(r,e),n=r.hasNode(t.v)?o(e,t):-o(e,t),u(r,e,n);return r}},56744:function(e,t,n){"use strict";var r=n(64441).longestPath,i=n(5378),o=n(87986);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:s(e);break;case"tight-tree":!function(e){r(e),i(e)}(e);break;case"longest-path":a(e)}};var a=r;function s(e){o(e)}},87986:function(e,t,n){"use strict";var r=n(38899),i=n(5378),o=n(64441).slack,a=n(64441).longestPath,s=n(2990).alg.preorder,u=n(2990).alg.postorder,l=n(48392).simplify;function c(e){e=l(e),a(e);var t,n=i(e);for(h(n),f(n,e);t=m(n);)g(n,e,t,v(n,e,t))}function f(e,t){var n=u(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=d(e,t,n)}(e,t,n)}))}function d(e,t,n){var i=e.node(n).parent,o=!0,a=t.edge(n,i),s=0;return a||(o=!1,a=t.edge(i,n)),s=a.weight,r.forEach(t.nodeEdges(n),(function(r){var a,u,l=r.v===n,c=l?r.w:r.v;if(c!==i){var f=l===o,d=t.edge(r).weight;if(s+=f?d:-d,a=n,u=c,e.hasEdge(a,u)){var h=e.edge(n,c).cutvalue;s+=f?-h:h}}})),s}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),p(e,{},1,t)}function p(e,t,n,i,o){var a=n,s=e.node(i);return t[i]=!0,r.forEach(e.neighbors(i),(function(o){r.has(t,o)||(n=p(e,t,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function m(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function v(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),u=e.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var f=r.filter(t.edges(),(function(t){return c===y(e,e.node(t.v),l)&&c!==y(e,e.node(t.w),l)}));return r.minBy(f,(function(e){return o(t,e)}))}function g(e,t,n,i){var o=n.v,a=n.w;e.removeEdge(o,a),e.setEdge(i.v,i.w,{}),h(e),f(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=s(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function y(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=h,c.initCutValues=f,c.calcCutValue=d,c.leaveEdge=m,c.enterEdge=v,c.exchangeEdges=g},64441:function(e,t,n){"use strict";var r=n(38899);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var a=r.min(r.map(e.outEdges(i),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),o.rank=a}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},48392:function(e,t,n){"use strict";var r=n(38899),i=n(2990).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function a(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,u=e.width/2,l=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!==0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},6206:function(e){e.exports="0.8.5"},30222:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o=this;if("function"!==typeof o||r.call(o)!==i)throw new TypeError(t+o);for(var a,s=n.call(arguments,1),u=function(){if(this instanceof a){var t=o.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return o.apply(e,s.concat(n.call(arguments)))},l=Math.max(0,o.length-s.length),c=[],f=0;f<l;f++)c.push("$"+f);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),o.prototype){var d=function(){};d.prototype=o.prototype,a.prototype=new d,d.prototype=null}return a}},33350:function(e,t,n){"use strict";var r=n(30222);e.exports=Function.prototype.bind||r},52506:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(O){u=null}var l=function(){throw new a},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(t){return l}}}():l,f=n(80697)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(33350),b=n(58316),w=y.call(Function.call,Array.prototype.concat),x=y.call(Function.apply,Array.prototype.splice),_=y.call(Function.call,String.prototype.replace),k=y.call(Function.call,String.prototype.slice),S=y.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,E=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,M,(function(e,t,n,i){r[r.length]=n?_(i,T,"$1"):t||e})),r},C=function(e,t){var n,r=e;if(b(g,r)&&(r="%"+(n=g[r])[0]+"%"),b(m,r)){var o=m[r];if(o===h&&(o=v(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),s=o.name,l=o.value,c=!1,f=o.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],v=k(p,0,1),g=k(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&h||(c=!0),b(m,s="%"+(r+="."+p)+"%"))l=m[s];else if(null!=l){if(!(p in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var y=u(l,p);l=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[p]}else h=b(l,p),l=l[p];h&&!c&&(m[s]=l)}}return l}},86118:function(e,t,n){var r=n(95828);e.exports={Graph:r.Graph,json:n(15710),alg:n(25280),version:r.version}},46666:function(e,t,n){var r=n(90980);e.exports=function(e){var t,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}return r.each(e.nodes(),(function(e){t=[],o(e),t.length&&i.push(t)})),i}},30672:function(e,t,n){var r=n(90980);function i(e,t,n,o,a,s){r.has(o,t)||(o[t]=!0,n||s.push(t),r.each(a(t),(function(t){i(e,t,n,o,a,s)})),n&&s.push(t))}e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],s={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);i(e,t,"post"===n,s,o,a)})),a}},99919:function(e,t,n){var r=n(44871),i=n(90980);e.exports=function(e,t,n){return i.transform(e.nodes(),(function(i,o){i[o]=r(e,o,t,n)}),{})}},44871:function(e,t,n){var r=n(90980),i=n(96071);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,a,s={},u=new i,l=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),l=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=o,u.decrease(t,l))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)}));for(;u.size()>0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return s}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},86050:function(e,t,n){var r=n(90980),i=n(18172);e.exports=function(e){return r.filter(i(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},65053:function(e,t,n){var r=n(90980);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}(e,t||i,n||function(t){return e.outEdges(t)})};var i=r.constant(1)},25280:function(e,t,n){e.exports={components:n(46666),dijkstra:n(44871),dijkstraAll:n(99919),findCycles:n(86050),floydWarshall:n(65053),isAcyclic:n(40810),postorder:n(51189),preorder:n(26743),prim:n(9863),tarjan:n(18172),topsort:n(11731)}},40810:function(e,t,n){var r=n(11731);e.exports=function(e){try{r(e)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},51189:function(e,t,n){var r=n(30672);e.exports=function(e,t){return r(e,t,"post")}},26743:function(e,t,n){var r=n(30672);e.exports=function(e,t){return r(e,t,"pre")}},9863:function(e,t,n){var r=n(90980),i=n(41311),o=n(96071);e.exports=function(e,t){var n,a=new i,s={},u=new o;function l(e){var r=e.v===n?e.w:e.v,i=u.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),(function(e){u.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),u.decrease(e.nodes()[0],0);var c=!1;for(;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(l)}return a}},18172:function(e,t,n){var r=n(90980);e.exports=function(e){var t=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(i,e)?i[e].onStack&&(u.lowlink=Math.min(u.lowlink,i[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,i[e].lowlink))})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),i[l].onStack=!1,c.push(l)}while(s!==l);o.push(c)}}return e.nodes().forEach((function(e){r.has(i,e)||a(e)})),o}},11731:function(e,t,n){var r=n(90980);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))})),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=new Error},96071:function(e,t,n){var r=n(90980);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},41311:function(e,t,n){"use strict";var r=n(90980);e.exports=o;var i="\0";function o(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function s(e,t){--e[t]||delete e[t]}function u(e,t,n,i){var o=""+t,a=""+n;if(!e&&o>a){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function l(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(e,t){return u(e,t.v,t.w,t.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},o.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},o.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};function o(e){var r=n.parent(e);return void 0===r||t.hasNode(r)?(i[e]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,o(e))})),t},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},o.prototype.setEdge=function(){var e,t,n,i,o=!1,s=arguments[0];"object"===typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var c=u(this._isDirected,e,t,n);if(r.has(this._edgeLabels,c))return o&&(this._edgeLabels[c]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[c]=o?i:this._defaultEdgeLabelFn(e,t,n);var f=l(this._isDirected,e,t,n);return e=f.v,t=f.w,Object.freeze(f),this._edgeObjs[c]=f,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][c]=f,this._out[e][c]=f,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},o.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],e),s(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},o.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},o.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},95828:function(e,t,n){e.exports={Graph:n(41311),version:n(54161)}},15710:function(e,t,n){var r=n(90980),i=n(41311);function o(e){return r.map(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(e){return r.map(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:a(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},90980:function(e,t,n){var r;try{r={clone:n(68787),constant:n(71547),each:n(29430),filter:n(80086),has:n(17805),isArray:n(93629),isEmpty:n(66364),isFunction:n(74786),isUndefined:n(42530),keys:n(12742),map:n(72034),reduce:n(25080),size:n(69467),transform:n(25653),union:n(26310),values:n(92063)}}catch(i){}r||(r=window._),e.exports=r},54161:function(e){e.exports="2.1.8"},80697:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(63297);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},63297:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},58316:function(e,t,n){"use strict";var r=n(33350);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},62110:function(e,t,n){"use strict";var r=n(48309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=d(n,g);try{l(t,g,y)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case m:case u:return e;default:return t}}case i:return t}}}function _(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||x(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},48309:function(e,t,n){"use strict";e.exports=n(746)},11172:function(e,t){"use strict";function n(e){return"object"!==typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"===typeof process&&!0;function i(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var o=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function u(e){return s.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return c(t).forEach((function(n){o.call(t,n)&&(e[n]=t[n])})),e},c="function"===typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function f(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===u(e)?new Map(e):"Set"===u(e)?new Set(e):e&&"object"===typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var d=function(){function e(){this.commands=l({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"===typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||i(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),i("object"===typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=e;return c(r).forEach((function(t){if(o.call(n.commands,t)){var i=e===a;a=n.commands[t](r[t],a,r,e),i&&n.isEquals(a,e)&&(a=e)}else{var s="Map"===u(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),l="Map"===u(a)?a.get(t):a[t];n.isEquals(s,l)&&("undefined"!==typeof s||o.call(e,t))||(a===e&&(a=f(e)),"Map"===u(a)?a.set(t,s):a[t]=s)}})),a},e}();t.Context=d;var h={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,o){return function(e,t){i(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+n(e)})),g(t.$splice)}(t,r),e.forEach((function(e){g(e),t===o&&e.length&&(t=f(o)),a.apply(t,e)})),t},$set:function(e,t,n){return function(e){i(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){v(e,"$toggle");var n=e.length?f(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return v(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=f(r)),delete t[e])})),t},$add:function(e,t,n,r){return y(t,"$add"),v(e,"$add"),"Map"===u(t)?e.forEach((function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=f(r)),t.set(n,i)})):e.forEach((function(e){t!==r||t.has(e)||(t=f(r)),t.add(e)})),t},$remove:function(e,t,n,r){return y(t,"$remove"),v(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=f(r)),t.delete(e)})),t},$merge:function(e,t,r,o){var a,s;return a=t,i((s=e)&&"object"===typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(s)})),i(a&&"object"===typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+n(a)})),c(e).forEach((function(n){e[n]!==t[n]&&(t===o&&(t=f(o)),t[n]=e[n])})),t},$apply:function(e,t){var r;return i("function"===typeof(r=e),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),e(t)}},p=new d;function m(e,t,r){i(Array.isArray(e),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."})),v(t[r],r)}function v(e,t){i(Array.isArray(e),(function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"}))}function g(e){i(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var r=u(e);i("Map"===r||"Set"===r,(function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)}))}t.isEquals=p.update.isEquals,t.extend=p.extend,t.default=p.update,t.default.default=e.exports=l(t.default,t)},50908:function(e,t,n){var r=n(68136)(n(97009),"DataView");e.exports=r},29676:function(e,t,n){var r=n(85403),i=n(62747),o=n(16037),a=n(94154),s=n(77728);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},38384:function(e,t,n){var r=n(43894),i=n(8699),o=n(64957),a=n(87184),s=n(87109);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},95797:function(e,t,n){var r=n(68136)(n(97009),"Map");e.exports=r},78059:function(e,t,n){var r=n(34086),i=n(9255),o=n(29186),a=n(13423),s=n(73739);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},78319:function(e,t,n){var r=n(68136)(n(97009),"Promise");e.exports=r},23924:function(e,t,n){var r=n(68136)(n(97009),"Set");e.exports=r},20692:function(e,t,n){var r=n(78059),i=n(35774),o=n(41596);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},22854:function(e,t,n){var r=n(38384),i=n(20511),o=n(50835),a=n(90707),s=n(18832),u=n(35077);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},87197:function(e,t,n){var r=n(97009).Symbol;e.exports=r},46219:function(e,t,n){var r=n(97009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(68136)(n(97009),"WeakMap");e.exports=r},13665:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4550:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},84903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},59055:function(e,t,n){var r=n(24842);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},32683:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},47538:function(e,t,n){var r=n(86478),i=n(34963),o=n(93629),a=n(5174),s=n(26800),u=n(19102),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&u(e),h=n||c||f||d,p=h?r(e.length,String):[],m=p.length;for(var v in e)!t&&!l.call(e,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||p.push(v);return p}},68950:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},41705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},32095:function(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},47897:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},40405:function(e,t,n){var r=n(9586)("length");e.exports=r},54622:function(e){e.exports=function(e){return e.split("")}},40240:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},28002:function(e,t,n){var r=n(32526),i=n(29231);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},18463:function(e,t,n){var r=n(32526),i=n(29231),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},27112:function(e,t,n){var r=n(29231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},11855:function(e,t,n){var r=n(64503),i=n(12742);e.exports=function(e,t){return e&&r(t,i(t),e)}},95076:function(e,t,n){var r=n(64503),i=n(73961);e.exports=function(e,t){return e&&r(t,i(t),e)}},32526:function(e,t,n){var r=n(48528);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},31905:function(e,t,n){var r=n(22854),i=n(4550),o=n(18463),a=n(11855),s=n(95076),u=n(94523),l=n(10291),c=n(52455),f=n(57636),d=n(38248),h=n(55341),p=n(88383),m=n(39243),v=n(39759),g=n(40548),y=n(93629),b=n(5174),w=n(60103),x=n(8092),_=n(36995),k=n(12742),S=n(73961),M="[object Arguments]",T="[object Function]",E="[object Object]",C={};C[M]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[E]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[T]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,O,D,N,j){var A,P=1&n,R=2&n,I=4&n;if(O&&(A=N?O(t,D,N,j):O(t)),void 0!==A)return A;if(!x(t))return t;var F=y(t);if(F){if(A=m(t),!P)return l(t,A)}else{var L=p(t),z=L==T||"[object GeneratorFunction]"==L;if(b(t))return u(t,P);if(L==E||L==M||z&&!N){if(A=R||z?{}:g(t),!P)return R?f(t,s(A,t)):c(t,a(A,t))}else{if(!C[L])return N?t:{};A=v(t,L,P)}}j||(j=new r);var B=j.get(t);if(B)return B;j.set(t,A),_(t)?t.forEach((function(r){A.add(e(r,n,O,r,t,j))})):w(t)&&t.forEach((function(r,i){A.set(i,e(r,n,O,i,t,j))}));var Z=F?void 0:(I?R?h:d:R?S:k)(t);return i(Z||t,(function(r,i){Z&&(r=t[i=r]),o(A,i,e(r,n,O,i,t,j))})),A}},65763:function(e,t,n){var r=n(8092),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},21468:function(e,t,n){var r=n(20692),i=n(59055),o=n(32683),a=n(68950),s=n(16194),u=n(60075);e.exports=function(e,t,n,l){var c=-1,f=i,d=!0,h=e.length,p=[],m=t.length;if(!h)return p;n&&(t=a(t,s(n))),l?(f=o,d=!1):t.length>=200&&(f=u,d=!1,t=new r(t));e:for(;++c<h;){var v=e[c],g=null==n?v:n(v);if(v=l||0!==v?v:0,d&&g===g){for(var y=m;y--;)if(t[y]===g)continue e;p.push(v)}else f(t,g,l)||p.push(v)}return p}},87927:function(e,t,n){var r=n(15358),i=n(67056)(r);e.exports=i},43079:function(e,t,n){var r=n(70152);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===u?s===s&&!r(s):n(s,u)))var u=s,l=a}return l}},57523:function(e,t,n){var r=n(87927);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},2045:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},55182:function(e,t,n){var r=n(41705),i=n(73529);e.exports=function e(t,n,o,a,s){var u=-1,l=t.length;for(o||(o=i),s||(s=[]);++u<l;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},85099:function(e,t,n){var r=n(30372)();e.exports=r},15358:function(e,t,n){var r=n(85099),i=n(12742);e.exports=function(e,t){return e&&r(e,t,i)}},98667:function(e,t,n){var r=n(43082),i=n(69793);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},61986:function(e,t,n){var r=n(41705),i=n(93629);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},39066:function(e,t,n){var r=n(87197),i=n(81587),o=n(43581),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},81954:function(e){e.exports=function(e,t){return e>t}},97852:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},90529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},24842:function(e,t,n){var r=n(2045),i=n(50505),o=n(77167);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},75188:function(e,t,n){var r=n(20692),i=n(59055),o=n(32683),a=n(68950),s=n(16194),u=n(60075),l=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,f=e[0].length,d=e.length,h=d,p=Array(d),m=1/0,v=[];h--;){var g=e[h];h&&t&&(g=a(g,s(t))),m=l(g.length,m),p[h]=!n&&(t||f>=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,b=p[0];e:for(;++y<f&&v.length<m;){var w=g[y],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?u(b,x):c(v,x,n))){for(h=d;--h;){var _=p[h];if(!(_?u(_,x):c(e[h],x,n)))continue e}b&&b.push(x),v.push(w)}}return v}},4906:function(e,t,n){var r=n(39066),i=n(43141);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},71848:function(e,t,n){var r=n(93355),i=n(43141);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},93355:function(e,t,n){var r=n(22854),i=n(15305),o=n(92206),a=n(88078),s=n(88383),u=n(93629),l=n(5174),c=n(19102),f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var y=u(e),b=u(t),w=y?d:s(e),x=b?d:s(t),_=(w=w==f?h:w)==h,k=(x=x==f?h:x)==h,S=w==x;if(S&&l(e)){if(!l(t))return!1;y=!0,_=!1}if(S&&!_)return g||(g=new r),y||c(e)?i(e,t,n,m,v,g):o(e,t,w,n,m,v,g);if(!(1&n)){var M=_&&p.call(e,"__wrapped__"),T=k&&p.call(t,"__wrapped__");if(M||T){var E=M?e.value():e,C=T?t.value():t;return g||(g=new r),v(E,C,n,m,g)}}return!!S&&(g||(g=new r),a(e,t,n,m,v,g))}},53085:function(e,t,n){var r=n(88383),i=n(43141);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},8856:function(e,t,n){var r=n(22854),i=n(71848);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],f=e[c],d=l[1];if(u&&l[2]){if(void 0===f&&!(c in e))return!1}else{var h=new r;if(o)var p=o(f,d,c,e,t,h);if(!(void 0===p?i(d,f,3,o,h):p))return!1}}return!0}},50505:function(e){e.exports=function(e){return e!==e}},26703:function(e,t,n){var r=n(74786),i=n(257),o=n(8092),a=n(27907),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},48680:function(e,t,n){var r=n(88383),i=n(43141);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},68150:function(e,t,n){var r=n(39066),i=n(24635),o=n(43141),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["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},56025:function(e,t,n){var r=n(97080),i=n(24322),o=n(2100),a=n(93629),s=n(10038);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},43654:function(e,t,n){var r=n(62936),i=n(75964),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8664:function(e,t,n){var r=n(8092),i=n(62936),o=n(4221),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},92580:function(e){e.exports=function(e,t){return e<t}},53849:function(e,t,n){var r=n(87927),i=n(21473);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},97080:function(e,t,n){var r=n(8856),i=n(79091),o=n(50284);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},24322:function(e,t,n){var r=n(71848),i=n(26181),o=n(75658),a=n(25823),s=n(25072),u=n(50284),l=n(69793);e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},64173:function(e,t,n){var r=n(22854),i=n(28002),o=n(85099),a=n(49216),s=n(8092),u=n(73961),l=n(85906);e.exports=function e(t,n,c,f,d){t!==n&&o(n,(function(o,u){if(d||(d=new r),s(o))a(t,n,u,c,e,f,d);else{var h=f?f(l(t,u),o,u+"",t,n,d):void 0;void 0===h&&(h=o),i(t,u,h)}}),u)}},49216:function(e,t,n){var r=n(28002),i=n(94523),o=n(40613),a=n(10291),s=n(40548),u=n(34963),l=n(93629),c=n(56279),f=n(5174),d=n(74786),h=n(8092),p=n(93977),m=n(19102),v=n(85906),g=n(6576);e.exports=function(e,t,n,y,b,w,x){var _=v(e,n),k=v(t,n),S=x.get(k);if(S)r(e,n,S);else{var M=w?w(_,k,n+"",e,t,x):void 0,T=void 0===M;if(T){var E=l(k),C=!E&&f(k),O=!E&&!C&&m(k);M=k,E||C||O?l(_)?M=_:c(_)?M=a(_):C?(T=!1,M=i(k,!0)):O?(T=!1,M=o(k,!0)):M=[]:p(k)||u(k)?(M=_,u(_)?M=g(_):h(_)&&!d(_)||(M=s(k))):T=!1}T&&(x.set(k,M),b(M,k,y,w,x),x.delete(k)),r(e,n,M)}}},93226:function(e,t,n){var r=n(68950),i=n(98667),o=n(56025),a=n(53849),s=n(19179),u=n(16194),l=n(94480),c=n(2100),f=n(93629);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var d=-1;t=r(t,u(o));var h=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return s(h,(function(e,t){return l(e,t,n)}))}},14980:function(e,t,n){var r=n(2591),i=n(75658);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},2591:function(e,t,n){var r=n(98667),i=n(40379),o=n(43082);e.exports=function(e,t,n){for(var a=-1,s=t.length,u={};++a<s;){var l=t[a],c=r(e,l);n(c,l)&&i(u,o(l,e),c)}return u}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,n){var r=n(98667);e.exports=function(e){return function(t){return r(t,e)}}},14632:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},7255:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},10750:function(e){e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},58794:function(e,t,n){var r=n(2100),i=n(64262),o=n(79156);e.exports=function(e,t){return o(i(e,t,r),e+"")}},40379:function(e,t,n){var r=n(18463),i=n(43082),o=n(26800),a=n(8092),s=n(69793);e.exports=function(e,t,n,u){if(!a(e))return e;for(var l=-1,c=(t=i(t,e)).length,f=c-1,d=e;null!=d&&++l<c;){var h=s(t[l]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(l!=f){var m=d[h];void 0===(p=u?u(m,h,d):void 0)&&(p=a(m)?m:o(t[l+1])?[]:{})}r(d,h,p),d=d[h]}return e}},7532:function(e,t,n){var r=n(71547),i=n(48528),o=n(2100),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},2646:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},19179:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},86478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2446:function(e,t,n){var r=n(87197),i=n(68950),o=n(93629),a=n(70152),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},20821:function(e,t,n){var r=n(26050),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},16194:function(e){e.exports=function(e){return function(t){return e(t)}}},39602:function(e,t,n){var r=n(20692),i=n(59055),o=n(32683),a=n(60075),s=n(77730),u=n(22230);e.exports=function(e,t,n){var l=-1,c=i,f=e.length,d=!0,h=[],p=h;if(n)d=!1,c=o;else if(f>=200){var m=t?null:s(e);if(m)return u(m);d=!1,c=a,p=new r}else p=t?[]:h;e:for(;++l<f;){var v=e[l],g=t?t(v):v;if(v=n||0!==v?v:0,d&&g===g){for(var y=p.length;y--;)if(p[y]===g)continue e;t&&p.push(g),h.push(v)}else c(p,g,n)||(p!==h&&p.push(g),h.push(v))}return h}},86555:function(e,t,n){var r=n(43082),i=n(15727),o=n(68978),a=n(69793);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},28019:function(e,t,n){var r=n(68950);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},62971:function(e){e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},60075:function(e){e.exports=function(e,t){return e.has(t)}},75600:function(e,t,n){var r=n(56279);e.exports=function(e){return r(e)?e:[]}},43410:function(e,t,n){var r=n(2100);e.exports=function(e){return"function"==typeof e?e:r}},43082:function(e,t,n){var r=n(93629),i=n(25823),o=n(10170),a=n(63518);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},69813:function(e,t,n){var r=n(2646);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},7010:function(e,t,n){var r=n(46219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},94523:function(e,t,n){e=n.nmd(e);var r=n(97009),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},61022:function(e,t,n){var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},18503:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},64720:function(e,t,n){var r=n(87197),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},40613:function(e,t,n){var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},88558:function(e,t,n){var r=n(70152);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e===e,a=r(e),s=void 0!==t,u=null===t,l=t===t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}},94480:function(e,t,n){var r=n(88558);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},10291:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},64503:function(e,t,n){var r=n(18463),i=n(32526);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):r(n,l,c)}return n}},52455:function(e,t,n){var r=n(64503),i=n(65918);e.exports=function(e,t){return r(e,i(e),t)}},57636:function(e,t,n){var r=n(64503),i=n(38487);e.exports=function(e,t){return r(e,i(e),t)}},65525:function(e,t,n){var r=n(97009)["__core-js_shared__"];e.exports=r},39934:function(e,t,n){var r=n(58794),i=n(3195);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}},67056:function(e,t,n){var r=n(21473);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},30372:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},10322:function(e,t,n){var r=n(69813),i=n(47302),o=n(27580),a=n(63518);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},17810:function(e,t,n){var r=n(32095),i=n(94857),o=n(95660),a=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},95481:function(e,t,n){var r=n(56025),i=n(21473),o=n(12742);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}},56381:function(e,t,n){var r=n(7255),i=n(3195),o=n(91495);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},77730:function(e,t,n){var r=n(23924),i=n(19694),o=n(22230),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},26013:function(e,t,n){var r=n(93977);e.exports=function(e){return r(e)?void 0:e}},35868:function(e,t,n){var r=n(14632)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},48528:function(e,t,n){var r=n(68136),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},15305:function(e,t,n){var r=n(20692),i=n(47897),o=n(60075);e.exports=function(e,t,n,a,s,u){var l=1&n,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var g=e[p],y=t[p];if(a)var b=l?a(y,g,p,t,e,u):a(g,y,p,e,t,u);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,u)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,n,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},92206:function(e,t,n){var r=n(87197),i=n(46219),o=n(29231),a=n(15305),s=n(90234),u=n(22230),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var v=a(h(e),h(t),r,l,f,d);return d.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},88078:function(e,t,n){var r=n(38248),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var d=l[f];if(!(u?d in t:i.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=u;++f<c;){var g=e[d=l[f]],y=t[d];if(o)var b=u?o(y,g,d,t,e,s):o(g,y,d,e,t,s);if(!(void 0===b?g===y||a(g,y,n,o,s):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},27038:function(e,t,n){var r=n(25506),i=n(64262),o=n(79156);e.exports=function(e){return o(i(e,void 0,r),e+"")}},31032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},38248:function(e,t,n){var r=n(61986),i=n(65918),o=n(12742);e.exports=function(e){return r(e,o,i)}},55341:function(e,t,n){var r=n(61986),i=n(38487),o=n(73961);e.exports=function(e){return r(e,o,i)}},32799:function(e,t,n){var r=n(55964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},79091:function(e,t,n){var r=n(25072),i=n(12742);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},68136:function(e,t,n){var r=n(26703),i=n(30040);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},31137:function(e,t,n){var r=n(12709)(Object.getPrototypeOf,Object);e.exports=r},81587:function(e,t,n){var r=n(87197),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},65918:function(e,t,n){var r=n(84903),i=n(68174),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},38487:function(e,t,n){var r=n(41705),i=n(31137),o=n(65918),a=n(68174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},88383:function(e,t,n){var r=n(50908),i=n(95797),o=n(78319),a=n(23924),s=n(7091),u=n(39066),l=n(27907),c="[object Map]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",m=l(r),v=l(i),g=l(o),y=l(a),b=l(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=h)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return p;case v:return c;case g:return f;case y:return d;case b:return h}return t}),e.exports=w},30040:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},86417:function(e,t,n){var r=n(43082),i=n(34963),o=n(93629),a=n(26800),s=n(24635),u=n(69793);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l<c;){var d=u(t[l]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++l!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(o(e)||i(e))}},47302:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},87137:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},85403:function(e,t,n){var r=n(49620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},62747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},16037:function(e,t,n){var r=n(49620),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},94154:function(e,t,n){var r=n(49620),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},77728:function(e,t,n){var r=n(49620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},39243:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},39759:function(e,t,n){var r=n(7010),i=n(61022),o=n(18503),a=n(64720),s=n(40613);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);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 s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},40548:function(e,t,n){var r=n(65763),i=n(31137),o=n(62936);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},73529:function(e,t,n){var r=n(87197),i=n(34963),o=n(93629),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},26800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},3195:function(e,t,n){var r=n(29231),i=n(21473),o=n(26800),a=n(8092);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},25823:function(e,t,n){var r=n(93629),i=n(70152),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},55964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(65525),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},62936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},25072:function(e,t,n){var r=n(8092);e.exports=function(e){return e===e&&!r(e)}},43894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(27112),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},64957:function(e,t,n){var r=n(27112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},87184:function(e,t,n){var r=n(27112);e.exports=function(e){return r(this.__data__,e)>-1}},87109:function(e,t,n){var r=n(27112);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},34086:function(e,t,n){var r=n(29676),i=n(38384),o=n(95797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},9255:function(e,t,n){var r=n(32799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},29186:function(e,t,n){var r=n(32799);e.exports=function(e){return r(this,e).get(e)}},13423:function(e,t,n){var r=n(32799);e.exports=function(e){return r(this,e).has(e)}},73739:function(e,t,n){var r=n(32799);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},90234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},50284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},14634:function(e,t,n){var r=n(49151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},49620:function(e,t,n){var r=n(68136)(Object,"create");e.exports=r},75964:function(e,t,n){var r=n(12709)(Object.keys,Object);e.exports=r},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},49494:function(e,t,n){e=n.nmd(e);var r=n(31032),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},43581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},12709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},64262:function(e,t,n){var r=n(13665),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}},68978:function(e,t,n){var r=n(98667),i=n(2646);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},97009:function(e,t,n){var r=n(31032),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},85906:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},35774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41596:function(e){e.exports=function(e){return this.__data__.has(e)}},22230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},79156:function(e,t,n){var r=n(7532),i=n(83197)(r);e.exports=i},83197:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},20511:function(e,t,n){var r=n(38384);e.exports=function(){this.__data__=new r,this.size=0}},50835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},90707:function(e){e.exports=function(e){return this.__data__.get(e)}},18832:function(e){e.exports=function(e){return this.__data__.has(e)}},35077:function(e,t,n){var r=n(38384),i=n(95797),o=n(78059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},77167:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},64651:function(e,t,n){var r=n(40405),i=n(47302),o=n(67184);e.exports=function(e){return i(e)?o(e):r(e)}},27580:function(e,t,n){var r=n(54622),i=n(47302),o=n(42110);e.exports=function(e){return i(e)?o(e):r(e)}},10170:function(e,t,n){var r=n(14634),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},69793:function(e,t,n){var r=n(70152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},27907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},26050:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},67184:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+s+("(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*"),c="(?:"+[i+n+"?",n,o,a,t].join("|")+")",f=RegExp(r+"(?="+r+")|"+c+l,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},42110:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+s+("(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*"),c="(?:"+[i+n+"?",n,o,a,t].join("|")+")",f=RegExp(r+"(?="+r+")|"+c+l,"g");e.exports=function(e){return e.match(f)||[]}},41029:function(e){var t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\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",o="["+i+"]",a="\\d+",s="[\\u2700-\\u27bf]",u="["+n+"]",l="[^\\ud800-\\udfff"+i+a+t+n+r+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+r+"]",h="(?:"+u+"|"+l+")",p="(?:"+d+"|"+l+")",m="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",v="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",b=y+g+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",c,f].join("|")+")"+y+g+")*"),w="(?:"+[s,c,f].join("|")+")"+b,x=RegExp([d+"?"+u+"+"+m+"(?="+[o,d,"$"].join("|")+")",p+"+"+v+"(?="+[o,d+h,"$"].join("|")+")",d+"?"+h+"+"+m,d+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,w].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},15687:function(e,t,n){var r=n(18463),i=n(64503),o=n(39934),a=n(21473),s=n(62936),u=n(12742),l=Object.prototype.hasOwnProperty,c=o((function(e,t){if(s(t)||a(t))i(t,u(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=c},80567:function(e,t,n){var r=n(73131),i=n(17810)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},73131:function(e,t,n){var r=n(63518),i=n(52085);e.exports=function(e){return i(r(e).toLowerCase())}},68787:function(e,t,n){var r=n(31905);e.exports=function(e){return r(e,4)}},58121:function(e,t,n){var r=n(31905);e.exports=function(e){return r(e,5)}},71547:function(e){e.exports=function(e){return function(){return e}}},48573:function(e,t,n){var r=n(8092),i=n(50072),o=n(42582),a=Math.max,s=Math.min;e.exports=function(e,t,n){var u,l,c,f,d,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=u,r=l;return u=l=void 0,p=t,f=e.apply(r,n)}function b(e){return p=e,d=setTimeout(x,t),m?y(e):f}function w(e){var n=e-h;return void 0===h||n>=t||n<0||v&&e-p>=c}function x(){var e=i();if(w(e))return _(e);d=setTimeout(x,function(e){var n=t-(e-h);return v?s(n,c-(e-p)):n}(e))}function _(e){return d=void 0,g&&u?y(e):(u=l=void 0,f)}function k(){var e=i(),n=w(e);if(u=arguments,l=this,h=e,n){if(void 0===d)return b(h);if(v)return clearTimeout(d),d=setTimeout(x,t),y(h)}return void 0===d&&(d=setTimeout(x,t)),f}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==d&&clearTimeout(d),p=0,u=h=l=d=void 0},k.flush=function(){return void 0===d?f:_(i())},k}},94857:function(e,t,n){var r=n(35868),i=n(63518),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},66933:function(e,t,n){var r=n(58794),i=n(29231),o=n(3195),a=n(73961),s=Object.prototype,u=s.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n<r;)for(var c=t[n],f=a(c),d=-1,h=f.length;++d<h;){var p=f[d],m=e[p];(void 0===m||i(m,s[p])&&!u.call(e,p))&&(e[p]=c[p])}return e}));e.exports=l},71180:function(e,t,n){var r=n(21468),i=n(55182),o=n(58794),a=n(56279),s=o((function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]}));e.exports=s},29430:function(e,t,n){e.exports=n(36514)},29231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},80086:function(e,t,n){var r=n(84903),i=n(57523),o=n(56025),a=n(93629);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},61211:function(e,t,n){var r=n(95481)(n(51475));e.exports=r},51475:function(e,t,n){var r=n(2045),i=n(56025),o=n(39753),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},25506:function(e,t,n){var r=n(55182);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},36514:function(e,t,n){var r=n(4550),i=n(87927),o=n(43410),a=n(93629);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},69144:function(e,t,n){var r=n(85099),i=n(43410),o=n(73961);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},26181:function(e,t,n){var r=n(98667);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},17805:function(e,t,n){var r=n(97852),i=n(86417);e.exports=function(e,t){return null!=e&&i(e,t,r)}},75658:function(e,t,n){var r=n(90529),i=n(86417);e.exports=function(e,t){return null!=e&&i(e,t,r)}},2100:function(e){e.exports=function(e){return e}},57753:function(e,t,n){var r=n(68950),i=n(75188),o=n(58794),a=n(75600),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},34963:function(e,t,n){var r=n(4906),i=n(43141),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},93629:function(e){var t=Array.isArray;e.exports=t},21473:function(e,t,n){var r=n(74786),i=n(24635);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},56279:function(e,t,n){var r=n(21473),i=n(43141);e.exports=function(e){return i(e)&&r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(97009),i=n(49488),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},66364:function(e,t,n){var r=n(43654),i=n(88383),o=n(34963),a=n(93629),s=n(21473),u=n(5174),l=n(62936),c=n(19102),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},74786:function(e,t,n){var r=n(39066),i=n(8092);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},24635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},60103:function(e,t,n){var r=n(53085),i=n(16194),o=n(49494),a=o&&o.isMap,s=a?i(a):r;e.exports=s},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},93977:function(e,t,n){var r=n(39066),i=n(31137),o=n(43141),a=Function.prototype,s=Object.prototype,u=a.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},36995:function(e,t,n){var r=n(48680),i=n(16194),o=n(49494),a=o&&o.isSet,s=a?i(a):r;e.exports=s},26769:function(e,t,n){var r=n(39066),i=n(93629),o=n(43141);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},70152:function(e,t,n){var r=n(39066),i=n(43141);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},19102:function(e,t,n){var r=n(68150),i=n(16194),o=n(49494),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},42530:function(e){e.exports=function(e){return void 0===e}},12742:function(e,t,n){var r=n(47538),i=n(43654),o=n(21473);e.exports=function(e){return o(e)?r(e):i(e)}},73961:function(e,t,n){var r=n(47538),i=n(8664),o=n(21473);e.exports=function(e){return o(e)?r(e,!0):i(e)}},15727:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},763:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=16,l=32,c=64,f=128,d=256,h=1/0,p=9007199254740991,m=NaN,v=4294967295,g=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",l],["partialRight",c],["rearg",d]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",k="[object Function]",S="[object GeneratorFunction]",M="[object Map]",T="[object Number]",E="[object Object]",C="[object Promise]",O="[object RegExp]",D="[object Set]",N="[object String]",j="[object Symbol]",A="[object WeakMap]",P="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",L="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",Z="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",Y="[object Uint32Array]",U=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,$=RegExp(G.source),Q=RegExp(X.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\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",De="['\u2019]",Ne="[\\ud800-\\udfff]",je="["+Oe+"]",Ae="["+Se+"]",Pe="\\d+",Re="[\\u2700-\\u27bf]",Ie="["+Te+"]",Fe="[^\\ud800-\\udfff"+Oe+Pe+Me+Te+Ee+"]",Le="\\ud83c[\\udffb-\\udfff]",ze="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ze="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ee+"]",He="(?:"+Ie+"|"+Fe+")",Ye="(?:"+We+"|"+Fe+")",Ue="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ve="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ae+"|"+Le+")"+"?",Ge="[\\ufe0e\\ufe0f]?",Xe=Ge+qe+("(?:\\u200d(?:"+[ze,Be,Ze].join("|")+")"+Ge+qe+")*"),$e="(?:"+[Re,Be,Ze].join("|")+")"+Xe,Qe="(?:"+[ze+Ae+"?",Ae,Be,Ze,Ne].join("|")+")",Ke=RegExp(De,"g"),Je=RegExp(Ae,"g"),et=RegExp(Le+"(?="+Le+")|"+Qe+Xe,"g"),tt=RegExp([We+"?"+Ie+"+"+Ue+"(?="+[je,We,"$"].join("|")+")",Ye+"+"+Ve+"(?="+[je,We+He,"$"].join("|")+")",We+"?"+He+"+"+Ue,We+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,$e].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Ce+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[I]=at[F]=at[L]=at[z]=at[B]=at[Z]=at[W]=at[H]=at[Y]=!0,at[y]=at[b]=at[P]=at[w]=at[R]=at[x]=at[_]=at[k]=at[M]=at[T]=at[E]=at[O]=at[D]=at[N]=at[A]=!1;var st={};st[y]=st[b]=st[P]=st[R]=st[w]=st[x]=st[I]=st[F]=st[L]=st[z]=st[B]=st[M]=st[T]=st[E]=st[O]=st[D]=st[N]=st[j]=st[Z]=st[W]=st[H]=st[Y]=!0,st[_]=st[k]=st[A]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ct=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,dt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||dt||Function("return this")(),pt=t&&!t.nodeType&&t,mt=pt&&e&&!e.nodeType&&e,vt=mt&&mt.exports===pt,gt=vt&&ft.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(t){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,xt=yt&&yt.isMap,_t=yt&&yt.isRegExp,kt=yt&&yt.isSet,St=yt&&yt.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Nt(e,t){return!!(null==e?0:e.length)&&Zt(e,t,0)>-1}function jt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function It(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Ut("length");function zt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Zt(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Ht,n)}function Wt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ht(e){return e!==e}function Yt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:m}function Ut(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Gt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function Kt(e,t){return At(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Zt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Zt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ut[e]}function sn(e){return nt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Lt(e)}function pn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gn=function e(t){var n=(t=null==t?ht:gn.defaults(ht.Object(),t,gn.pick(ht,it))).Array,r=t.Date,se=t.Error,Se=t.Function,Me=t.Math,Te=t.Object,Ee=t.RegExp,Ce=t.String,Oe=t.TypeError,De=n.prototype,Ne=Se.prototype,je=Te.prototype,Ae=t["__core-js_shared__"],Pe=Ne.toString,Re=je.hasOwnProperty,Ie=0,Fe=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=je.toString,ze=Pe.call(Te),Be=ht._,Ze=Ee("^"+Pe.call(Re).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=vt?t.Buffer:i,He=t.Symbol,Ye=t.Uint8Array,Ue=We?We.allocUnsafe:i,Ve=ln(Te.getPrototypeOf,Te),qe=Te.create,Ge=je.propertyIsEnumerable,Xe=De.splice,$e=He?He.isConcatSpreadable:i,Qe=He?He.iterator:i,et=He?He.toStringTag:i,nt=function(){try{var e=ho(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ft=r&&r.now!==ht.Date.now&&r.now,dt=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=Me.ceil,mt=Me.floor,gt=Te.getOwnPropertySymbols,yt=We?We.isBuffer:i,Lt=t.isFinite,Vt=De.join,yn=ln(Te.keys,Te),bn=Me.max,wn=Me.min,xn=r.now,_n=t.parseInt,kn=Me.random,Sn=De.reverse,Mn=ho(t,"DataView"),Tn=ho(t,"Map"),En=ho(t,"Promise"),Cn=ho(t,"Set"),On=ho(t,"WeakMap"),Dn=ho(Te,"create"),Nn=On&&new On,jn={},An=Bo(Mn),Pn=Bo(Tn),Rn=Bo(En),In=Bo(Cn),Fn=Bo(On),Ln=He?He.prototype:i,zn=Ln?Ln.valueOf:i,Bn=Ln?Ln.toString:i;function Zn(e){if(rs(e)&&!Va(e)&&!(e instanceof Un)){if(e instanceof Yn)return e;if(Re.call(e,"__wrapped__"))return Zo(e)}return new Yn(e)}var Wn=function(){function e(){}return function(t){if(!ns(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Hn(){}function Yn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new qn(e);this.size=t.size}function Qn(e,t){var n=Va(e),r=!n&&Ua(e),i=!n&&!r&&$a(e),o=!n&&!r&&!i&&fs(e),a=n||r||i||o,s=a?Xt(e.length,Ce):[],u=s.length;for(var l in e)!t&&!Re.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||wo(l,u))||s.push(l);return s}function Kn(e){var t=e.length;return t?e[Xr(0,t-1)]:i}function Jn(e,t){return Fo(Di(e),ur(t,0,e.length))}function er(e){return Fo(Di(e))}function tr(e,t,n){(n!==i&&!Wa(e[t],n)||n===i&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Re.call(e,t)&&Wa(r,n)&&(n!==i||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Wa(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&Ni(t,As(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Cs(e,t[r]);return a}function ur(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function lr(e,t,n,r,o,a){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ns(e))return e;var f=Va(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Di(e,s)}else{var d=vo(e),h=d==k||d==S;if($a(e))return Si(e,u);if(d==E||d==y||h&&!o){if(s=l||h?{}:yo(e),!u)return l?function(e,t){return Ni(e,mo(e),t)}(e,function(e,t){return e&&Ni(t,Ps(t),e)}(s,e)):function(e,t){return Ni(e,po(e),t)}(e,or(s,e))}else{if(!st[d])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case P:return Mi(e);case w:case x:return new r(+e);case R:return function(e,t){var n=t?Mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case F:case L:case z:case B:case Z:case W:case H:case Y:return Ti(e,n);case M:return new r;case T:case N:return new r(e);case O:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case j:return i=e,zn?Te(zn.call(i)):{}}var i}(e,d,u)}}a||(a=new $n);var p=a.get(e);if(p)return p;a.set(e,s),us(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,i){s.set(i,lr(r,t,n,i,e,a))}));var m=f?i:(c?l?oo:io:l?Ps:As)(e);return Et(m||e,(function(r,i){m&&(r=e[i=r]),nr(s,i,lr(r,t,n,i,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Oe(o);return Ao((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=Nt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=At(t,Qt(n))),r?(o=jt,a=!1):t.length>=200&&(o=Jt,a=!1,t=new Xn(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;u.push(c)}else o(t,f,r)||u.push(c)}return u}Zn.templateSettings={escape:K,evaluate:J,interpolate:ee,variable:"",imports:{_:Zn}},Zn.prototype=Hn.prototype,Zn.prototype.constructor=Zn,Yn.prototype=Wn(Hn.prototype),Yn.prototype.constructor=Yn,Un.prototype=Wn(Hn.prototype),Un.prototype.constructor=Un,Vn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?i:n}return Re.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==i:Re.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===i?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return rr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Tn||qn),string:new Vn}},Gn.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return co(this,e).get(e)},Gn.prototype.has=function(e){return co(this,e).has(e)},Gn.prototype.set=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,a),this},Xn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new qn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var hr=Pi(xr),pr=Pi(_r,!0);function mr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s===s&&!cs(s):n(s,u)))var u=s,l=a}return l}function gr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Pt(i,s):r||(i[i.length]=s)}return i}var br=Ri(),wr=Ri(!0);function xr(e,t){return e&&br(e,t,As)}function _r(e,t){return e&&wr(e,t,As)}function kr(e,t){return Dt(t,(function(t){return Ja(e[t])}))}function Sr(e,t){for(var n=0,r=(t=wi(t,e)).length;null!=e&&n<r;)e=e[zo(t[n++])];return n&&n==r?e:i}function Mr(e,t,n){var r=t(e);return Va(e)?r:Pt(r,n(e))}function Tr(e){return null==e?e===i?"[object Undefined]":"[object Null]":et&&et in Te(e)?function(e){var t=Re.call(e,et),n=e[et];try{e[et]=i;var r=!0}catch(a){}var o=Le.call(e);r&&(t?e[et]=n:delete e[et]);return o}(e):function(e){return Le.call(e)}(e)}function Er(e,t){return e>t}function Cr(e,t){return null!=e&&Re.call(e,t)}function Or(e,t){return null!=e&&t in Te(e)}function Dr(e,t,r){for(var o=r?jt:Nt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=At(d,Qt(t))),c=wn(d.length,c),l[u]=!r&&(t||a>=120&&d.length>=120)?new Xn(u&&d):i}d=e[0];var h=-1,p=l[0];e:for(;++h<a&&f.length<c;){var m=d[h],v=t?t(m):m;if(m=r||0!==m?m:0,!(p?Jt(p,v):o(f,v,r))){for(u=s;--u;){var g=l[u];if(!(g?Jt(g,v):o(e[u],v,r)))continue e}p&&p.push(v),f.push(m)}}return f}function Nr(e,t,n){var r=null==(e=Oo(e,t=wi(t,e)))?e:e[zo(Ko(t))];return null==r?i:Mt(r,e,n)}function jr(e){return rs(e)&&Tr(e)==y}function Ar(e,t,n,r,o){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var s=Va(e),u=Va(t),l=s?b:vo(e),c=u?b:vo(t),f=(l=l==y?E:l)==E,d=(c=c==y?E:c)==E,h=l==c;if(h&&$a(e)){if(!$a(t))return!1;s=!0,f=!1}if(h&&!f)return a||(a=new $n),s||fs(e)?no(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!o(new Ye(e),new Ye(t)));case w:case x:case T:return Wa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case O:case N:return e==t+"";case M:var s=un;case D:var u=1&r;if(s||(s=fn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=no(s(e),s(t),r,i,o,a);return a.delete(e),c;case j:if(zn)return zn.call(e)==zn.call(t)}return!1}(e,t,l,n,r,o,a);if(!(1&n)){var p=f&&Re.call(e,"__wrapped__"),m=d&&Re.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,g=m?t.value():t;return a||(a=new $n),o(v,g,n,r,a)}}if(!h)return!1;return a||(a=new $n),function(e,t,n,r,o,a){var s=1&n,u=io(e),l=u.length,c=io(t).length;if(l!=c&&!s)return!1;var f=l;for(;f--;){var d=u[f];if(!(s?d in t:Re.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++f<l;){var g=e[d=u[f]],y=t[d];if(r)var b=s?r(y,g,d,t,e,a):r(g,y,d,e,t,a);if(!(b===i?g===y||o(g,y,n,r,a):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,o,a)}(e,t,n,r,Ar,o))}function Pr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Te(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var l=(u=n[o])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===i&&!(l in e))return!1}else{var d=new $n;if(r)var h=r(c,f,l,e,t,d);if(!(h===i?Ar(f,c,3,r,d):h))return!1}}return!0}function Rr(e){return!(!ns(e)||(t=e,Fe&&Fe in t))&&(Ja(e)?Ze:ye).test(Bo(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?Va(e)?Wr(e[0],e[1]):Zr(e):pu(e)}function Fr(e){if(!Mo(e))return yn(e);var t=[];for(var n in Te(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Mo(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function zr(e,t){return e<t}function Br(e,t){var r=-1,i=Ga(e)?n(e.length):[];return hr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Zr(e){var t=fo(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Wr(e,t){return _o(e)&&To(t)?Eo(zo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?Os(n,e):Ar(t,r,3)}}function Hr(e,t,n,r,o){e!==t&&br(t,(function(a,s){if(o||(o=new $n),ns(a))!function(e,t,n,r,o,a,s){var u=No(e,n),l=No(t,n),c=s.get(l);if(c)return void tr(e,n,c);var f=a?a(u,l,n+"",e,t,s):i,d=f===i;if(d){var h=Va(l),p=!h&&$a(l),m=!h&&!p&&fs(l);f=l,h||p||m?Va(u)?f=u:Xa(u)?f=Di(u):p?(d=!1,f=Si(l,!0)):m?(d=!1,f=Ti(l,!0)):f=[]:as(l)||Ua(l)?(f=u,Ua(u)?f=bs(u):ns(u)&&!Ja(u)||(f=yo(l))):d=!1}d&&(s.set(l,f),o(f,l,r,a,s),s.delete(l));tr(e,n,f)}(e,t,s,n,Hr,r,o);else{var u=r?r(No(e,s),a,s+"",e,t,o):i;u===i&&(u=a),tr(e,s,u)}}),Ps)}function Yr(e,t){var n=e.length;if(n)return wo(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?At(t,(function(e){return Va(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;t=At(t,Qt(lo()));var i=Br(e,(function(e,n,i){var o=At(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Ei(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&ei(o,wi(a,e),s)}return o}function qr(e,t,n,r){var i=r?Wt:Zt,o=-1,a=t.length,s=e;for(e===t&&(t=Di(t)),n&&(s=At(e,Qt(n)));++o<a;)for(var u=0,l=t[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&Xe.call(s,u,1),Xe.call(e,u,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;wo(i)?Xe.call(e,i,1):di(e,i)}}return e}function Xr(e,t){return e+mt(kn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Po(Co(e,t,ou),e+"")}function Kr(e){return Kn(Ws(e))}function Jr(e,t){var n=Ws(e);return Fo(n,ur(t,0,n.length))}function ei(e,t,n,r){if(!ns(e))return e;for(var o=-1,a=(t=wi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var l=zo(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var f=u[l];(c=r?r(f,l,u):i)===i&&(c=ns(f)?f:wo(t[o+1])?[]:{})}nr(u,l,c),u=u[l]}return e}var ti=Nn?function(e,t){return Nn.set(e,t),e}:ou,ni=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:ou;function ri(e){return Fo(Ws(e))}function ii(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function oi(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return si(e,t,ou,n)}function si(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,u=null===t,l=cs(t),c=t===i;o<a;){var f=mt((o+a)/2),d=n(e[f]),h=d!==i,p=null===d,m=d===d,v=cs(d);if(s)var g=r||m;else g=c?m&&(r||h):u?m&&h&&(r||!p):l?m&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);g?o=f+1:a=f}return wn(a,4294967294)}function ui(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Wa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:cs(e)?m:+e}function ci(e){if("string"==typeof e)return e;if(Va(e))return At(e,ci)+"";if(cs(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fi(e,t,n){var r=-1,i=Nt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=jt;else if(o>=200){var l=t?null:$i(e);if(l)return fn(l);a=!1,i=Jt,u=new Xn}else u=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f===f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function di(e,t){return null==(e=Oo(e,t=wi(t,e)))||delete e[zo(Ko(t))]}function hi(e,t,n,r){return ei(e,t,n(Sr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function mi(e,t){var n=e;return n instanceof Un&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function vi(e,t,r){var i=e.length;if(i<2)return i?fi(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=dr(a[o]||s,e[u],t,r));return fi(yr(a,1),t,r)}function gi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function yi(e){return Xa(e)?e:[]}function bi(e){return"function"==typeof e?e:ou}function wi(e,t){return Va(e)?e:_o(e,t)?[e]:Lo(ws(e))}var xi=Qr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ii(e,t,n)}var ki=ut||function(e){return ht.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Mi(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function Ti(e,t){var n=t?Mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=cs(e),s=t!==i,u=null===t,l=t===t,c=cs(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}function Ci(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,l=t.length,c=bn(a-s,0),f=n(l+c),d=!i;++u<l;)f[u]=t[u];for(;++o<s;)(d||o<a)&&(f[r[o]]=e[o]);for(;c--;)f[u++]=e[o++];return f}function Oi(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,l=-1,c=t.length,f=bn(a-u,0),d=n(f+c),h=!i;++o<f;)d[o]=e[o];for(var p=o;++l<c;)d[p+l]=t[l];for(;++s<u;)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function Di(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ni(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),o?ar(n,u,l):nr(n,u,l)}return n}function ji(e,t){return function(n,r){var i=Va(n)?Tt:ir,o=t?t():{};return i(n,e,lo(r,2),o)}}function Ai(e){return Qr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&xo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Te(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Pi(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Te(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ri(e){return function(t,n,r){for(var i=-1,o=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ii(e){return function(t){var n=sn(t=ws(t))?pn(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Fi(e){return function(t){return Rt(Js(Us(t).replace(Ke,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function zi(e){return function(t,n,r){var o=Te(t);if(!Ga(t)){var a=lo(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Bi(e){return ro((function(t){var n=t.length,r=n,a=Yn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Oe(o);if(a&&!u&&"wrapper"==so(s))var u=new Yn([],!0)}for(r=u?r:n;++r<n;){var l=so(s=t[r]),c="wrapper"==l?ao(s):i;u=c&&ko(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[so(c[0])].apply(u,c[3]):1==s.length&&ko(s)?u[l]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Va(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Zi(e,t,r,o,a,s,u,l,c,d){var h=t&f,p=1&t,m=2&t,v=24&t,g=512&t,y=m?i:Li(e);return function i(){for(var f=arguments.length,b=n(f),w=f;w--;)b[w]=arguments[w];if(v)var x=uo(i),_=nn(b,x);if(o&&(b=Ci(b,o,a,v)),s&&(b=Oi(b,s,u,v)),f-=_,v&&f<d){var k=cn(b,x);return Gi(e,t,Zi,i.placeholder,r,b,k,l,c,d-f)}var S=p?r:this,M=m?S[e]:e;return f=b.length,l?b=Do(b,l):g&&f>1&&b.reverse(),h&&c<f&&(b.length=c),this&&this!==ht&&this instanceof i&&(M=y||Li(M)),M.apply(S,b)}}function Wi(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=li(n),r=li(r)),o=e(n,r)}return o}}function Yi(e){return ro((function(t){return t=At(t,Qt(lo())),Qr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function Ui(e,t){var n=(t=t===i?" ":ci(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,pt(e/hn(t)));return sn(t)?_i(pn(r),0,e).join(""):r.slice(0,e)}function Vi(e){return function(t,r,o){return o&&"number"!=typeof o&&xo(t,r,o)&&(r=o=i),t=ms(t),r===i?(r=t,t=0):r=ms(r),function(e,t,r,i){for(var o=-1,a=bn(pt((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:ms(o),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Gi(e,t,n,r,o,a,s,u,f,d){var h=8&t;t|=h?l:c,4&(t&=~(h?c:l))||(t&=-4);var p=[e,t,o,h?a:i,h?s:i,h?i:a,h?i:s,u,f,d],m=n.apply(i,p);return ko(e)&&jo(m,p),m.placeholder=r,Ro(m,e,t)}function Xi(e){var t=Me[e];return function(e,n){if(e=ys(e),(n=null==n?0:wn(vs(n),292))&&Lt(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Cn&&1/fn(new Cn([,-0]))[1]==h?function(e){return new Cn(e)}:cu;function Qi(e){return function(t){var n=vo(t);return n==M?un(t):n==D?dn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,r,a,h,p,m,v){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(o);var y=a?a.length:0;if(y||(t&=-97,a=h=i),m=m===i?m:bn(vs(m),0),v=v===i?v:vs(v),y-=h?h.length:0,t&c){var b=a,w=h;a=h=i}var x=g?i:ao(e),_=[e,t,r,a,h,b,w,p,m,v];if(x&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ci(l,u,t[4]):u,e[4]=l?cn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Oi(l,u,t[6]):u,e[6]=l?cn(e[5],s):t[6]);(u=t[7])&&(e[7]=u);r&f&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(_,x),e=_[0],t=_[1],r=_[2],a=_[3],h=_[4],!(v=_[9]=_[9]===i?g?0:e.length:bn(_[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==u?function(e,t,r){var o=Li(e);return function a(){for(var s=arguments.length,u=n(s),l=s,c=uo(a);l--;)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:cn(u,c);return(s-=f.length)<r?Gi(e,t,Zi,a.placeholder,i,u,f,i,i,r-s):Mt(this&&this!==ht&&this instanceof a?o:e,this,u)}}(e,t,v):t!=l&&33!=t||h.length?Zi.apply(i,_):function(e,t,r,i){var o=1&t,a=Li(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=i.length,f=n(c+u),d=this&&this!==ht&&this instanceof t?a:e;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++s];return Mt(d,o?r:this,f)}}(e,t,r,a);else var k=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Ro((x?ti:jo)(k,_),e,t)}function Ji(e,t,n,r){return e===i||Wa(e,je[n])&&!Re.call(r,n)?t:e}function eo(e,t,n,r,o,a){return ns(e)&&ns(t)&&(a.set(t,e),Hr(e,t,i,eo,a),a.delete(t)),e}function to(e){return as(e)?i:e}function no(e,t,n,r,o,a){var s=1&n,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=2&n?new Xn:i;for(a.set(e,t),a.set(t,e);++d<u;){var m=e[d],v=t[d];if(r)var g=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(g!==i){if(g)continue;h=!1;break}if(p){if(!Ft(t,(function(e,t){if(!Jt(p,t)&&(m===e||o(m,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(m!==v&&!o(m,v,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ro(e){return Po(Co(e,i,qo),e+"")}function io(e){return Mr(e,As,po)}function oo(e){return Mr(e,Ps,mo)}var ao=Nn?function(e){return Nn.get(e)}:cu;function so(e){for(var t=e.name+"",n=jn[t],r=Re.call(jn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function uo(e){return(Re.call(Zn,"placeholder")?Zn:e).placeholder}function lo(){var e=Zn.iteratee||au;return e=e===au?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function co(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fo(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,To(i)]}return t}function ho(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var po=gt?function(e){return null==e?[]:(e=Te(e),Dt(gt(e),(function(t){return Ge.call(e,t)})))}:gu,mo=gt?function(e){for(var t=[];e;)Pt(t,po(e)),e=Ve(e);return t}:gu,vo=Tr;function go(e,t,n){for(var r=-1,i=(t=wi(t,e)).length,o=!1;++r<i;){var a=zo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ts(i)&&wo(a,i)&&(Va(e)||Ua(e))}function yo(e){return"function"!=typeof e.constructor||Mo(e)?{}:Wn(Ve(e))}function bo(e){return Va(e)||Ua(e)||!!($e&&e&&e[$e])}function wo(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xo(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&wo(t,n.length):"string"==r&&t in n)&&Wa(n[t],e)}function _o(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Te(t))}function ko(e){var t=so(e),n=Zn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(Mn&&vo(new Mn(new ArrayBuffer(1)))!=R||Tn&&vo(new Tn)!=M||En&&vo(En.resolve())!=C||Cn&&vo(new Cn)!=D||On&&vo(new On)!=A)&&(vo=function(e){var t=Tr(e),n=t==E?e.constructor:i,r=n?Bo(n):"";if(r)switch(r){case An:return R;case Pn:return M;case Rn:return C;case In:return D;case Fn:return A}return t});var So=Ae?Ja:yu;function Mo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)}function To(e){return e===e&&!ns(e)}function Eo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Te(n)))}}function Co(e,t,r){return t=bn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=bn(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),Mt(e,this,u)}}function Oo(e,t){return t.length<2?e:Sr(e,ii(t,0,-1))}function Do(e,t){for(var n=e.length,r=wn(t.length,n),o=Di(e);r--;){var a=t[r];e[r]=wo(a,n)?o[a]:i}return e}function No(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var jo=Io(ti),Ao=dt||function(e,t){return ht.setTimeout(e,t)},Po=Io(ni);function Ro(e,t,n){var r=t+"";return Po(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(g,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Io(e){var t=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Fo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Xr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Lo=function(e){var t=Ia(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t}));function zo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bo(e){if(null!=e){try{return Pe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Zo(e){if(e instanceof Un)return e.clone();var t=new Yn(e.__wrapped__,e.__chain__);return t.__actions__=Di(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wo=Qr((function(e,t){return Xa(e)?dr(e,yr(t,1,Xa,!0)):[]})),Ho=Qr((function(e,t){var n=Ko(t);return Xa(n)&&(n=i),Xa(e)?dr(e,yr(t,1,Xa,!0),lo(n,2)):[]})),Yo=Qr((function(e,t){var n=Ko(t);return Xa(n)&&(n=i),Xa(e)?dr(e,yr(t,1,Xa,!0),i,n):[]}));function Uo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Bt(e,lo(t,3),i)}function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?bn(r+o,0):wn(o,r-1)),Bt(e,lo(t,3),o,!0)}function qo(e){return(null==e?0:e.length)?yr(e,1):[]}function Go(e){return e&&e.length?e[0]:i}var Xo=Qr((function(e){var t=At(e,yi);return t.length&&t[0]===e[0]?Dr(t):[]})),$o=Qr((function(e){var t=Ko(e),n=At(e,yi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Dr(n,lo(t,2)):[]})),Qo=Qr((function(e){var t=Ko(e),n=At(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,i,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Qr(ea);function ea(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ta=ro((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Gr(e,At(t,(function(e){return wo(e,n)?+e:e})).sort(Ei)),r}));function na(e){return null==e?e:Sn.call(e)}var ra=Qr((function(e){return fi(yr(e,1,Xa,!0))})),ia=Qr((function(e){var t=Ko(e);return Xa(t)&&(t=i),fi(yr(e,1,Xa,!0),lo(t,2))})),oa=Qr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,fi(yr(e,1,Xa,!0),i,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Xa(e))return t=bn(e.length,t),!0})),Xt(t,(function(t){return At(e,Ut(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:At(n,(function(e){return Mt(t,i,e)}))}var ua=Qr((function(e,t){return Xa(e)?dr(e,t):[]})),la=Qr((function(e){return vi(Dt(e,Xa))})),ca=Qr((function(e){var t=Ko(e);return Xa(t)&&(t=i),vi(Dt(e,Xa),lo(t,2))})),fa=Qr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,vi(Dt(e,Xa),i,t)})),da=Qr(aa);var ha=Qr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sa(e,n)}));function pa(e){var t=Zn(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var va=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&wo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ma,args:[o],thisArg:i}),new Yn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ga=ji((function(e,t,n){Re.call(e,n)?++e[n]:ar(e,n,1)}));var ya=zi(Uo),ba=zi(Vo);function wa(e,t){return(Va(e)?Et:hr)(e,lo(t,3))}function xa(e,t){return(Va(e)?Ct:pr)(e,lo(t,3))}var _a=ji((function(e,t,n){Re.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ka=Qr((function(e,t,r){var i=-1,o="function"==typeof t,a=Ga(e)?n(e.length):[];return hr(e,(function(e){a[++i]=o?Mt(t,e,r):Nr(e,t,r)})),a})),Sa=ji((function(e,t,n){ar(e,n,t)}));function Ma(e,t){return(Va(e)?At:Br)(e,lo(t,3))}var Ta=ji((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,yr(t,1),[])})),Ca=ft||function(){return ht.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,f,i,i,i,i,t)}function Da(e,t){var n;if("function"!=typeof t)throw new Oe(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Na=Qr((function(e,t,n){var r=1;if(n.length){var i=cn(n,uo(Na));r|=l}return Ki(e,r,t,n,i)})),ja=Qr((function(e,t,n){var r=3;if(n.length){var i=cn(n,uo(ja));r|=l}return Ki(t,r,e,n,i)}));function Aa(e,t,n){var r,a,s,u,l,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function v(e){return f=e,l=Ao(y,t),d?m(e):u}function g(e){var n=e-c;return c===i||n>=t||n<0||h&&e-f>=s}function y(){var e=Ca();if(g(e))return b(e);l=Ao(y,function(e){var n=t-(e-c);return h?wn(n,s-(e-f)):n}(e))}function b(e){return l=i,p&&r?m(e):(r=a=i,u)}function w(){var e=Ca(),n=g(e);if(r=arguments,a=this,c=e,n){if(l===i)return v(c);if(h)return ki(l),l=Ao(y,t),m(c)}return l===i&&(l=Ao(y,t)),u}return t=ys(t)||0,ns(n)&&(d=!!n.leading,s=(h="maxWait"in n)?bn(ys(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){l!==i&&ki(l),f=0,r=c=a=l=i},w.flush=function(){return l===i?u:b(Ca())},w}var Pa=Qr((function(e,t){return fr(e,1,t)})),Ra=Qr((function(e,t,n){return fr(e,ys(t)||0,n)}));function Ia(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ia.Cache||Gn),n}function Fa(e){if("function"!=typeof e)throw new Oe(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)}}Ia.Cache=Gn;var La=xi((function(e,t){var n=(t=1==t.length&&Va(t[0])?At(t[0],Qt(lo())):At(yr(t,1),Qt(lo()))).length;return Qr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Mt(e,this,r)}))})),za=Qr((function(e,t){var n=cn(t,uo(za));return Ki(e,l,i,t,n)})),Ba=Qr((function(e,t){var n=cn(t,uo(Ba));return Ki(e,c,i,t,n)})),Za=ro((function(e,t){return Ki(e,d,i,i,i,t)}));function Wa(e,t){return e===t||e!==e&&t!==t}var Ha=qi(Er),Ya=qi((function(e,t){return e>=t})),Ua=jr(function(){return arguments}())?jr:function(e){return rs(e)&&Re.call(e,"callee")&&!Ge.call(e,"callee")},Va=n.isArray,qa=bt?Qt(bt):function(e){return rs(e)&&Tr(e)==P};function Ga(e){return null!=e&&ts(e.length)&&!Ja(e)}function Xa(e){return rs(e)&&Ga(e)}var $a=yt||yu,Qa=wt?Qt(wt):function(e){return rs(e)&&Tr(e)==x};function Ka(e){if(!rs(e))return!1;var t=Tr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Ja(e){if(!ns(e))return!1;var t=Tr(e);return t==k||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var is=xt?Qt(xt):function(e){return rs(e)&&vo(e)==M};function os(e){return"number"==typeof e||rs(e)&&Tr(e)==T}function as(e){if(!rs(e)||Tr(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==ze}var ss=_t?Qt(_t):function(e){return rs(e)&&Tr(e)==O};var us=kt?Qt(kt):function(e){return rs(e)&&vo(e)==D};function ls(e){return"string"==typeof e||!Va(e)&&rs(e)&&Tr(e)==N}function cs(e){return"symbol"==typeof e||rs(e)&&Tr(e)==j}var fs=St?Qt(St):function(e){return rs(e)&&ts(e.length)&&!!at[Tr(e)]};var ds=qi(zr),hs=qi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ga(e))return ls(e)?pn(e):Di(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=vo(e);return(t==M?un:t==D?fn:Ws)(e)}function ms(e){return e?(e=ys(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vs(e){var t=ms(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?ur(vs(e),0,v):0}function ys(e){if("number"==typeof e)return e;if(cs(e))return m;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=ge.test(e);return n||be.test(e)?ct(e.slice(2),n?2:8):ve.test(e)?m:+e}function bs(e){return Ni(e,Ps(e))}function ws(e){return null==e?"":ci(e)}var xs=Ai((function(e,t){if(Mo(t)||Ga(t))Ni(t,As(t),e);else for(var n in t)Re.call(t,n)&&nr(e,n,t[n])})),_s=Ai((function(e,t){Ni(t,Ps(t),e)})),ks=Ai((function(e,t,n,r){Ni(t,Ps(t),e,r)})),Ss=Ai((function(e,t,n,r){Ni(t,As(t),e,r)})),Ms=ro(sr);var Ts=Qr((function(e,t){e=Te(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&xo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===i||Wa(f,je[c])&&!Re.call(e,c))&&(e[c]=a[c])}return e})),Es=Qr((function(e){return e.push(i,eo),Mt(Is,i,e)}));function Cs(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&go(e,t,Or)}var Ds=Wi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),nu(ou)),Ns=Wi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),lo),js=Qr(Nr);function As(e){return Ga(e)?Qn(e):Fr(e)}function Ps(e){return Ga(e)?Qn(e,!0):Lr(e)}var Rs=Ai((function(e,t,n){Hr(e,t,n)})),Is=Ai((function(e,t,n,r){Hr(e,t,n,r)})),Fs=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=wi(t,e),r||(r=t.length>1),t})),Ni(e,oo(e),n),r&&(n=lr(n,7,to));for(var i=t.length;i--;)di(n,t[i]);return n}));var Ls=ro((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function zs(e,t){if(null==e)return{};var n=At(oo(e),(function(e){return[e]}));return t=lo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=Qi(As),Zs=Qi(Ps);function Ws(e){return null==e?[]:Kt(e,As(e))}var Hs=Fi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ys(t):t)}));function Ys(e){return Ks(ws(e).toLowerCase())}function Us(e){return(e=ws(e))&&e.replace(xe,rn).replace(Je,"")}var Vs=Fi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Fi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=Ii("toLowerCase");var Xs=Fi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var $s=Fi((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Qs=Fi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ii("toUpperCase");function Js(e,t,n){return e=ws(e),(t=n?i:t)===i?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var eu=Qr((function(e,t){try{return Mt(e,i,t)}catch(n){return Ka(n)?n:new se(n)}})),tu=ro((function(e,t){return Et(t,(function(t){t=zo(t),ar(e,t,Na(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Bi(),iu=Bi(!0);function ou(e){return e}function au(e){return Ir("function"==typeof e?e:lr(e,1))}var su=Qr((function(e,t){return function(n){return Nr(n,e,t)}})),uu=Qr((function(e,t){return function(n){return Nr(e,n,t)}}));function lu(e,t,n){var r=As(t),i=kr(t,r);null!=n||ns(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,As(t)));var o=!(ns(n)&&"chain"in n)||!!n.chain,a=Ja(e);return Et(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Di(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function cu(){}var fu=Yi(At),du=Yi(Ot),hu=Yi(Ft);function pu(e){return _o(e)?Ut(zo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var mu=Vi(),vu=Vi(!0);function gu(){return[]}function yu(){return!1}var bu=Hi((function(e,t){return e+t}),0),wu=Xi("ceil"),xu=Hi((function(e,t){return e/t}),1),_u=Xi("floor");var ku=Hi((function(e,t){return e*t}),1),Su=Xi("round"),Mu=Hi((function(e,t){return e-t}),0);return Zn.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Zn.ary=Oa,Zn.assign=xs,Zn.assignIn=_s,Zn.assignInWith=ks,Zn.assignWith=Ss,Zn.at=Ms,Zn.before=Da,Zn.bind=Na,Zn.bindAll=tu,Zn.bindKey=ja,Zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Zn.chain=pa,Zn.chunk=function(e,t,r){t=(r?xo(e,t,r):t===i)?1:bn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(pt(o/t));a<o;)u[s++]=ii(e,a,a+=t);return u},Zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Pt(Va(r)?Di(r):[r],yr(t,1))},Zn.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Mt(i[0],this,n))return Mt(i[1],this,n)}}))},Zn.conforms=function(e){return function(e){var t=As(e);return function(n){return cr(n,e,t)}}(lr(e,1))},Zn.constant=nu,Zn.countBy=ga,Zn.create=function(e,t){var n=Wn(e);return null==t?n:or(n,t)},Zn.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Zn.curryRight=function e(t,n,r){var o=Ki(t,u,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Zn.debounce=Aa,Zn.defaults=Ts,Zn.defaultsDeep=Es,Zn.defer=Pa,Zn.delay=Ra,Zn.difference=Wo,Zn.differenceBy=Ho,Zn.differenceWith=Yo,Zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===i?1:vs(t))<0?0:t,r):[]},Zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===i?1:vs(t)))<0?0:t):[]},Zn.dropRightWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!0,!0):[]},Zn.dropWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!0):[]},Zn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&xo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Zn.filter=function(e,t){return(Va(e)?Dt:gr)(e,lo(t,3))},Zn.flatMap=function(e,t){return yr(Ma(e,t),1)},Zn.flatMapDeep=function(e,t){return yr(Ma(e,t),h)},Zn.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ma(e,t),n)},Zn.flatten=qo,Zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,h):[]},Zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:vs(t)):[]},Zn.flip=function(e){return Ki(e,512)},Zn.flow=ru,Zn.flowRight=iu,Zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Zn.functions=function(e){return null==e?[]:kr(e,As(e))},Zn.functionsIn=function(e){return null==e?[]:kr(e,Ps(e))},Zn.groupBy=_a,Zn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Zn.intersection=Xo,Zn.intersectionBy=$o,Zn.intersectionWith=Qo,Zn.invert=Ds,Zn.invertBy=Ns,Zn.invokeMap=ka,Zn.iteratee=au,Zn.keyBy=Sa,Zn.keys=As,Zn.keysIn=Ps,Zn.map=Ma,Zn.mapKeys=function(e,t){var n={};return t=lo(t,3),xr(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Zn.mapValues=function(e,t){var n={};return t=lo(t,3),xr(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Zn.matches=function(e){return Zr(lr(e,1))},Zn.matchesProperty=function(e,t){return Wr(e,lr(t,1))},Zn.memoize=Ia,Zn.merge=Rs,Zn.mergeWith=Is,Zn.method=su,Zn.methodOf=uu,Zn.mixin=lu,Zn.negate=Fa,Zn.nthArg=function(e){return e=vs(e),Qr((function(t){return Yr(t,e)}))},Zn.omit=Fs,Zn.omitBy=function(e,t){return zs(e,Fa(lo(t)))},Zn.once=function(e){return Da(2,e)},Zn.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Zn.over=fu,Zn.overArgs=La,Zn.overEvery=du,Zn.overSome=hu,Zn.partial=za,Zn.partialRight=Ba,Zn.partition=Ta,Zn.pick=Ls,Zn.pickBy=zs,Zn.property=pu,Zn.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},Zn.pull=Jo,Zn.pullAll=ea,Zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,lo(n,2)):e},Zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},Zn.pullAt=ta,Zn.range=mu,Zn.rangeRight=vu,Zn.rearg=Za,Zn.reject=function(e,t){return(Va(e)?Dt:gr)(e,Fa(lo(t,3)))},Zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Gr(e,i),n},Zn.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Qr(e,t=t===i?t:vs(t))},Zn.reverse=na,Zn.sampleSize=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:vs(t),(Va(e)?Jn:Jr)(e,t)},Zn.set=function(e,t,n){return null==e?e:ei(e,t,n)},Zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ei(e,t,n,r)},Zn.shuffle=function(e){return(Va(e)?er:ri)(e)},Zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xo(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===i?r:vs(n)),ii(e,t,n)):[]},Zn.sortBy=Ea,Zn.sortedUniq=function(e){return e&&e.length?ui(e):[]},Zn.sortedUniqBy=function(e,t){return e&&e.length?ui(e,lo(t,2)):[]},Zn.split=function(e,t,n){return n&&"number"!=typeof n&&xo(e,t,n)&&(t=n=i),(n=n===i?v:n>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=ci(t))&&sn(e)?_i(pn(e),0,n):e.split(t,n):[]},Zn.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:bn(vs(t),0),Qr((function(n){var r=n[t],i=_i(n,0,t);return r&&Pt(i,r),Mt(e,this,i)}))},Zn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Zn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Zn.takeRightWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!1,!0):[]},Zn.takeWhile=function(e,t){return e&&e.length?pi(e,lo(t,3)):[]},Zn.tap=function(e,t){return t(e),e},Zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return ns(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},Zn.thru=ma,Zn.toArray=ps,Zn.toPairs=Bs,Zn.toPairsIn=Zs,Zn.toPath=function(e){return Va(e)?At(e,zo):cs(e)?[e]:Di(Lo(ws(e)))},Zn.toPlainObject=bs,Zn.transform=function(e,t,n){var r=Va(e),i=r||$a(e)||fs(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ns(e)&&Ja(o)?Wn(Ve(e)):{}}return(i?Et:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Zn.unary=function(e){return Oa(e,1)},Zn.union=ra,Zn.unionBy=ia,Zn.unionWith=oa,Zn.uniq=function(e){return e&&e.length?fi(e):[]},Zn.uniqBy=function(e,t){return e&&e.length?fi(e,lo(t,2)):[]},Zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?fi(e,i,t):[]},Zn.unset=function(e,t){return null==e||di(e,t)},Zn.unzip=aa,Zn.unzipWith=sa,Zn.update=function(e,t,n){return null==e?e:hi(e,t,bi(n))},Zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,bi(n),r)},Zn.values=Ws,Zn.valuesIn=function(e){return null==e?[]:Kt(e,Ps(e))},Zn.without=ua,Zn.words=Js,Zn.wrap=function(e,t){return za(bi(t),e)},Zn.xor=la,Zn.xorBy=ca,Zn.xorWith=fa,Zn.zip=da,Zn.zipObject=function(e,t){return gi(e||[],t||[],nr)},Zn.zipObjectDeep=function(e,t){return gi(e||[],t||[],ei)},Zn.zipWith=ha,Zn.entries=Bs,Zn.entriesIn=Zs,Zn.extend=_s,Zn.extendWith=ks,lu(Zn,Zn),Zn.add=bu,Zn.attempt=eu,Zn.camelCase=Hs,Zn.capitalize=Ys,Zn.ceil=wu,Zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ys(n))===n?n:0),t!==i&&(t=(t=ys(t))===t?t:0),ur(ys(e),t,n)},Zn.clone=function(e){return lr(e,4)},Zn.cloneDeep=function(e){return lr(e,5)},Zn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Zn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Zn.conformsTo=function(e,t){return null==t||cr(e,t,As(t))},Zn.deburr=Us,Zn.defaultTo=function(e,t){return null==e||e!==e?t:e},Zn.divide=xu,Zn.endsWith=function(e,t,n){e=ws(e),t=ci(t);var r=e.length,o=n=n===i?r:ur(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Zn.eq=Wa,Zn.escape=function(e){return(e=ws(e))&&Q.test(e)?e.replace(X,on):e},Zn.escapeRegExp=function(e){return(e=ws(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Zn.every=function(e,t,n){var r=Va(e)?Ot:mr;return n&&xo(e,t,n)&&(t=i),r(e,lo(t,3))},Zn.find=ya,Zn.findIndex=Uo,Zn.findKey=function(e,t){return zt(e,lo(t,3),xr)},Zn.findLast=ba,Zn.findLastIndex=Vo,Zn.findLastKey=function(e,t){return zt(e,lo(t,3),_r)},Zn.floor=_u,Zn.forEach=wa,Zn.forEachRight=xa,Zn.forIn=function(e,t){return null==e?e:br(e,lo(t,3),Ps)},Zn.forInRight=function(e,t){return null==e?e:wr(e,lo(t,3),Ps)},Zn.forOwn=function(e,t){return e&&xr(e,lo(t,3))},Zn.forOwnRight=function(e,t){return e&&_r(e,lo(t,3))},Zn.get=Cs,Zn.gt=Ha,Zn.gte=Ya,Zn.has=function(e,t){return null!=e&&go(e,t,Cr)},Zn.hasIn=Os,Zn.head=Go,Zn.identity=ou,Zn.includes=function(e,t,n,r){e=Ga(e)?e:Ws(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Zt(e,t,n)>-1},Zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Zt(e,t,i)},Zn.inRange=function(e,t,n){return t=ms(t),n===i?(n=t,t=0):n=ms(n),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=ys(e),t,n)},Zn.invoke=js,Zn.isArguments=Ua,Zn.isArray=Va,Zn.isArrayBuffer=qa,Zn.isArrayLike=Ga,Zn.isArrayLikeObject=Xa,Zn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&Tr(e)==w},Zn.isBuffer=$a,Zn.isDate=Qa,Zn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},Zn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||fs(e)||Ua(e)))return!e.length;var t=vo(e);if(t==M||t==D)return!e.size;if(Mo(e))return!Fr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Zn.isEqual=function(e,t){return Ar(e,t)},Zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Zn.isError=Ka,Zn.isFinite=function(e){return"number"==typeof e&&Lt(e)},Zn.isFunction=Ja,Zn.isInteger=es,Zn.isLength=ts,Zn.isMap=is,Zn.isMatch=function(e,t){return e===t||Pr(e,t,fo(t))},Zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Pr(e,t,fo(t),n)},Zn.isNaN=function(e){return os(e)&&e!=+e},Zn.isNative=function(e){if(So(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Zn.isNil=function(e){return null==e},Zn.isNull=function(e){return null===e},Zn.isNumber=os,Zn.isObject=ns,Zn.isObjectLike=rs,Zn.isPlainObject=as,Zn.isRegExp=ss,Zn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=p},Zn.isSet=us,Zn.isString=ls,Zn.isSymbol=cs,Zn.isTypedArray=fs,Zn.isUndefined=function(e){return e===i},Zn.isWeakMap=function(e){return rs(e)&&vo(e)==A},Zn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Tr(e)},Zn.join=function(e,t){return null==e?"":Vt.call(e,t)},Zn.kebabCase=Vs,Zn.last=Ko,Zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?bn(r+o,0):wn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ht,o,!0)},Zn.lowerCase=qs,Zn.lowerFirst=Gs,Zn.lt=ds,Zn.lte=hs,Zn.max=function(e){return e&&e.length?vr(e,ou,Er):i},Zn.maxBy=function(e,t){return e&&e.length?vr(e,lo(t,2),Er):i},Zn.mean=function(e){return Yt(e,ou)},Zn.meanBy=function(e,t){return Yt(e,lo(t,2))},Zn.min=function(e){return e&&e.length?vr(e,ou,zr):i},Zn.minBy=function(e,t){return e&&e.length?vr(e,lo(t,2),zr):i},Zn.stubArray=gu,Zn.stubFalse=yu,Zn.stubObject=function(){return{}},Zn.stubString=function(){return""},Zn.stubTrue=function(){return!0},Zn.multiply=ku,Zn.nth=function(e,t){return e&&e.length?Yr(e,vs(t)):i},Zn.noConflict=function(){return ht._===this&&(ht._=Be),this},Zn.noop=cu,Zn.now=Ca,Zn.pad=function(e,t,n){e=ws(e);var r=(t=vs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(mt(i),n)+e+Ui(pt(i),n)},Zn.padEnd=function(e,t,n){e=ws(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?e+Ui(t-r,n):e},Zn.padStart=function(e,t,n){e=ws(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?Ui(t-r,n)+e:e},Zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ws(e).replace(ae,""),t||0)},Zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ms(e),t===i?(t=e,e=0):t=ms(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=kn();return wn(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return Xr(e,t)},Zn.reduce=function(e,t,n){var r=Va(e)?Rt:qt,i=arguments.length<3;return r(e,lo(t,4),n,i,hr)},Zn.reduceRight=function(e,t,n){var r=Va(e)?It:qt,i=arguments.length<3;return r(e,lo(t,4),n,i,pr)},Zn.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:vs(t),$r(ws(e),t)},Zn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Zn.result=function(e,t,n){var r=-1,o=(t=wi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[zo(t[r])];a===i&&(r=o,a=n),e=Ja(a)?a.call(e):a}return e},Zn.round=Su,Zn.runInContext=e,Zn.sample=function(e){return(Va(e)?Kn:Kr)(e)},Zn.size=function(e){if(null==e)return 0;if(Ga(e))return ls(e)?hn(e):e.length;var t=vo(e);return t==M||t==D?e.size:Fr(e).length},Zn.snakeCase=Xs,Zn.some=function(e,t,n){var r=Va(e)?Ft:oi;return n&&xo(e,t,n)&&(t=i),r(e,lo(t,3))},Zn.sortedIndex=function(e,t){return ai(e,t)},Zn.sortedIndexBy=function(e,t,n){return si(e,t,lo(n,2))},Zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Wa(e[r],t))return r}return-1},Zn.sortedLastIndex=function(e,t){return ai(e,t,!0)},Zn.sortedLastIndexBy=function(e,t,n){return si(e,t,lo(n,2),!0)},Zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Wa(e[n],t))return n}return-1},Zn.startCase=$s,Zn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:ur(vs(n),0,e.length),t=ci(t),e.slice(n,n+t.length)==t},Zn.subtract=Mu,Zn.sum=function(e){return e&&e.length?Gt(e,ou):0},Zn.sumBy=function(e,t){return e&&e.length?Gt(e,lo(t,2)):0},Zn.template=function(e,t,n){var r=Zn.templateSettings;n&&xo(e,t,n)&&(t=i),e=ws(e),t=ks({},t,r,Ji);var o,a,s=ks({},t.imports,r.imports,Ji),u=As(s),l=Kt(s,u),c=0,f=t.interpolate||_e,d="__p += '",h=Ee((t.escape||_e).source+"|"+f.source+"|"+(f===ee?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),p="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(h,(function(t,n,r,i,s,u){return r||(r=i),d+=e.slice(c,u).replace(ke,an),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new se("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(U,""):d).replace(V,"$1").replace(q,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=eu((function(){return Se(u,p+"return "+d).apply(i,l)}));if(v.source=d,Ka(v))throw v;return v},Zn.times=function(e,t){if((e=vs(e))<1||e>p)return[];var n=v,r=wn(e,v);t=lo(t),e-=v;for(var i=Xt(r,t);++n<e;)t(n);return i},Zn.toFinite=ms,Zn.toInteger=vs,Zn.toLength=gs,Zn.toLower=function(e){return ws(e).toLowerCase()},Zn.toNumber=ys,Zn.toSafeInteger=function(e){return e?ur(vs(e),-9007199254740991,p):0===e?e:0},Zn.toString=ws,Zn.toUpper=function(e){return ws(e).toUpperCase()},Zn.trim=function(e,t,n){if((e=ws(e))&&(n||t===i))return $t(e);if(!e||!(t=ci(t)))return e;var r=pn(e),o=pn(t);return _i(r,en(r,o),tn(r,o)+1).join("")},Zn.trimEnd=function(e,t,n){if((e=ws(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ci(t)))return e;var r=pn(e);return _i(r,0,tn(r,pn(t))+1).join("")},Zn.trimStart=function(e,t,n){if((e=ws(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ci(t)))return e;var r=pn(e);return _i(r,en(r,pn(t))).join("")},Zn.truncate=function(e,t){var n=30,r="...";if(ns(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,r="omission"in t?ci(t.omission):r}var a=(e=ws(e)).length;if(sn(e)){var s=pn(e);a=s.length}if(n>=a)return e;var u=n-hn(r);if(u<1)return r;var l=s?_i(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),ss(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=Ee(o.source,ws(me.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;l=l.slice(0,d===i?u:d)}}else if(e.indexOf(ci(o),u)!=u){var h=l.lastIndexOf(o);h>-1&&(l=l.slice(0,h))}return l+r},Zn.unescape=function(e){return(e=ws(e))&&$.test(e)?e.replace(G,vn):e},Zn.uniqueId=function(e){var t=++Ie;return ws(e)+t},Zn.upperCase=Qs,Zn.upperFirst=Ks,Zn.each=wa,Zn.eachRight=xa,Zn.first=Go,lu(Zn,function(){var e={};return xr(Zn,(function(t,n){Re.call(Zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Zn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Zn[e].placeholder=Zn})),Et(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:bn(vs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ou)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Nr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Fa(lo(e)))},Un.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(v)},xr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Un,l=s[0],c=u||Va(t),f=function(e){var t=o.apply(Zn,Pt([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,m=u&&!h;if(!a&&c){t=m?t:new Un(this);var v=e.apply(t,s);return v.__actions__.push({func:ma,args:[f],thisArg:i}),new Yn(v,d)}return p&&m?e.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Va(i)?i:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),xr(Un.prototype,(function(e,t){var n=Zn[t];if(n){var r=n.name+"";Re.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}})),jn[Zi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Di(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Di(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Di(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=wn(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return mi(e,this.__actions__);var p=[];e:for(;u--&&d<h;){for(var m=-1,v=e[l+=t];++m<f;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[d++]=v}return p},Zn.prototype.at=va,Zn.prototype.chain=function(){return pa(this)},Zn.prototype.commit=function(){return new Yn(this.value(),this.__chain__)},Zn.prototype.next=function(){this.__values__===i&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Zn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Zo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ma,args:[na],thisArg:i}),new Yn(t,this.__chain__)}return this.thru(na)},Zn.prototype.toJSON=Zn.prototype.valueOf=Zn.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Zn.prototype.first=Zn.prototype.head,Qe&&(Zn.prototype[Qe]=function(){return this}),Zn}();ht._=gn,(r=function(){return gn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},72034:function(e,t,n){var r=n(68950),i=n(56025),o=n(53849),a=n(93629);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},19029:function(e,t,n){var r=n(32526),i=n(15358),o=n(56025);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},37702:function(e,t,n){var r=n(32526),i=n(15358),o=n(56025);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},29627:function(e,t,n){var r=n(43079),i=n(81954),o=n(2100);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},49151:function(e,t,n){var r=n(78059);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},79286:function(e,t,n){var r=n(64173),i=n(39934)((function(e,t,n){r(e,t,n)}));e.exports=i},66452:function(e,t,n){var r=n(43079),i=n(92580),o=n(2100);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},43638:function(e,t,n){var r=n(43079),i=n(56025),o=n(92580);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},19694:function(e){e.exports=function(){}},50072:function(e,t,n){var r=n(97009);e.exports=function(){return r.Date.now()}},24242:function(e,t,n){var r=n(68950),i=n(31905),o=n(86555),a=n(43082),s=n(64503),u=n(26013),l=n(27038),c=n(55341),f=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,c(e),n),l&&(n=i(n,7,u));for(var f=t.length;f--;)o(n,t[f]);return n}));e.exports=f},36460:function(e,t,n){var r=n(14980),i=n(27038)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},10038:function(e,t,n){var r=n(9586),i=n(4084),o=n(25823),a=n(69793);e.exports=function(e){return o(e)?r(a(e)):i(e)}},66222:function(e,t,n){var r=n(56381)();e.exports=r},25080:function(e,t,n){var r=n(32095),i=n(87927),o=n(56025),a=n(10750),s=n(93629);e.exports=function(e,t,n){var u=s(e)?r:a,l=arguments.length<3;return u(e,o(t,4),n,l,i)}},69467:function(e,t,n){var r=n(43654),i=n(88383),o=n(21473),a=n(26769),s=n(64651);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},37499:function(e,t,n){var r=n(17810)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},64286:function(e,t,n){var r=n(55182),i=n(93226),o=n(58794),a=n(3195),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},68174:function(e){e.exports=function(){return[]}},49488:function(e){e.exports=function(){return!1}},33038:function(e,t,n){var r=n(48573),i=n(8092);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},91495:function(e,t,n){var r=n(42582),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},39753:function(e,t,n){var r=n(91495);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},42582:function(e,t,n){var r=n(20821),i=n(8092),o=n(70152),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6576:function(e,t,n){var r=n(64503),i=n(73961);e.exports=function(e){return r(e,i(e))}},63518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},25653:function(e,t,n){var r=n(4550),i=n(65763),o=n(15358),a=n(56025),s=n(31137),u=n(93629),l=n(5174),c=n(74786),f=n(8092),d=n(19102);e.exports=function(e,t,n){var h=u(e),p=h||l(e)||d(e);if(t=a(t,4),null==n){var m=e&&e.constructor;n=p?h?new m:[]:f(e)&&c(m)?i(s(e)):{}}return(p?r:o)(e,(function(e,r,i){return t(n,e,r,i)})),n}},26310:function(e,t,n){var r=n(55182),i=n(58794),o=n(39602),a=n(56279),s=i((function(e){return o(r(e,1,a,!0))}));e.exports=s},30804:function(e,t,n){var r=n(63518),i=0;e.exports=function(e){var t=++i;return r(e)+t}},52085:function(e,t,n){var r=n(10322)("toUpperCase");e.exports=r},92063:function(e,t,n){var r=n(28019),i=n(12742);e.exports=function(e){return null==e?[]:r(e,i(e))}},95660:function(e,t,n){var r=n(40240),i=n(87137),o=n(63518),a=n(41029);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},84827:function(e,t,n){var r=n(18463),i=n(62971);e.exports=function(e,t){return i(e||[],t||[],r)}},72426:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=v(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=p(NaN);return null!=e?h(v(t),e):v(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,i,o=b.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=v(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(i=t[r=b[n]])||(e[r]=i);return e}function _(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function k(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,a,u=[],l=arguments.length;for(o=0;o<l;o++){if(i="","object"===typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,E={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),E[e]||(S(t),E[e]=!0)}function O(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e){var t,n;for(n in e)s(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function j(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function R(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},z={};function B(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(z[e]=i),t&&(z[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,r=e.match(I);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=Z(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}function H(e,t){return e.isValid()?(t=Y(t,e.localeData()),L[t]=L[t]||W(t),L[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function G(){return this._invalidDate}var X="%d",$=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4===0&&e%100!==0||e%400===0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function fe(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Je(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function pe(e){return O(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=re(e)]))return this[e](t);return this}var ve,ge=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,xe=/[+-]?\d{6}/,_e=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Me=/\d{1,3}/,Te=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,Ce=/\d+/,Oe=/[+-]?\d+/,De=/Z|[+-]\d\d:?\d\d/gi,Ne=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Pe(e,t,n){ve[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Re(e,t){return s(ve,e)?ve[e](t._strict,t._locale):new RegExp(Ie(e))}function Ie(e){return Fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Le={};function ze(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Le[e[n]]=i}function Be(e,t){ze(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ze(e,t,n){null!=t&&s(Le,e)&&Le[e](t,n._a,n,e)}var We,He=0,Ye=1,Ue=2,Ve=3,qe=4,Ge=5,Xe=6,$e=7,Qe=8;function Ke(e,t){return(e%t+t)%t}function Je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ke(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}We=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ae("month",8),Pe("M",_e),Pe("MM",_e,ye),Pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ze(["M","MM"],(function(e,t){t[Ye]=ce(e)-1})),ze(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ye]=i:v(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Ae,it=Ae;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=We.call(this._shortMonthsParse,a))?i:null:-1!==(i=We.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=We.call(this._shortMonthsParse,a))||-1!==(i=We.call(this._longMonthsParse,a))?i:null:-1!==(i=We.call(this._longMonthsParse,a))||-1!==(i=We.call(this._shortMonthsParse,a))?i:null}function ut(e,t,n){var r,i,o;if(this._monthsParseExact)return st.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Je(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(lt(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function ft(){return Je(this.year(),this.month())}function dt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Fe(r[t]),i[t]=Fe(i[t]);for(t=0;t<24;t++)o[t]=Fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return ue(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ae("year",1),Pe("Y",Oe),Pe("YY",_e,ye),Pe("YYYY",Te,we),Pe("YYYYY",Ee,xe),Pe("YYYYYY",Ee,xe),ze(["YYYYY","YYYYYY"],He),ze("YYYY",(function(e,t){t[He]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),ze("YY",(function(e,t){t[He]=r.parseTwoDigitYear(e)})),ze("Y",(function(e,t){t[He]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var vt=fe("FullYear",!0);function gt(){return ue(this.year())}function yt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function _t(e,t,n){var r,i,o=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+kt(i=e.year()-1,t,n):a>kt(e.year(),t,n)?(r=a-kt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function kt(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(mt(e)-r+i)/7}function St(e){return _t(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),Pe("w",_e),Pe("ww",_e,ye),Pe("W",_e),Pe("WW",_e,ye),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var Mt={dow:0,doy:6};function Tt(){return this._week.dow}function Et(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Dt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Nt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Pe("d",_e),Pe("e",_e),Pe("E",_e),Pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),It=Ae,Ft=Ae,Lt=Ae;function zt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Zt(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=We.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=We.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=We.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=We.call(this._weekdaysParse,a))||-1!==(i=We.call(this._shortWeekdaysParse,a))||-1!==(i=We.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=We.call(this._shortWeekdaysParse,a))||-1!==(i=We.call(this._weekdaysParse,a))||-1!==(i=We.call(this._minWeekdaysParse,a))?i:null:-1!==(i=We.call(this._minWeekdaysParse,a))||-1!==(i=We.call(this._weekdaysParse,a))||-1!==(i=We.call(this._shortWeekdaysParse,a))?i:null}function Ht(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Wt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Yt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Dt(e,this.localeData()),this.add(e-t,"d")):t}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Nt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=It),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Fe(this.weekdaysMin(n,"")),i=Fe(this.weekdaysShort(n,"")),o=Fe(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Kt(){return this.hours()||24}function Jt(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Qt),B("k",["kk",2],0,Kt),B("hmm",0,0,(function(){return""+Qt.apply(this)+R(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Qt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),ne("hour","h"),ae("hour",13),Pe("a",en),Pe("A",en),Pe("H",_e),Pe("h",_e),Pe("k",_e),Pe("HH",_e,ye),Pe("hh",_e,ye),Pe("kk",_e,ye),Pe("hmm",ke),Pe("hmmss",Se),Pe("Hmm",ke),Pe("Hmmss",Se),ze(["H","HH"],Ve),ze(["k","kk"],(function(e,t,n){var r=ce(e);t[Ve]=24===r?0:r})),ze(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ze(["h","hh"],(function(e,t,n){t[Ve]=ce(e),v(n).bigHour=!0})),ze("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r)),v(n).bigHour=!0})),ze("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r,2)),t[Ge]=ce(e.substr(i)),v(n).bigHour=!0})),ze("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r))})),ze("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r,2)),t[Ge]=ce(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=fe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:A,longDateFormat:U,invalidDate:q,ordinal:X,dayOfMonthOrdinalParse:$,relativeTime:K,months:et,monthsShort:tt,week:Mt,weekdays:At,weekdaysMin:Rt,weekdaysShort:Pt,meridiemParse:nn},un={},ln={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=fn(e[o]).split("-")).length,n=(n=fn(e[o+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(i,n)>=t-1)break;t--}o++}return an}function hn(e){return null!=e.match("^[^/\\\\]*$")}function pn(t){var n=null;if(void 0===un[t]&&e&&e.exports&&hn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),mn(n)}catch(r){un[t]=null}return un[t]}function mn(e,t){var n;return e&&((n=l(t)?yn(e):vn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function vn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=un[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new j(N(r,t)),ln[e]&&ln[e].forEach((function(e){vn(e.name,e.config)})),mn(e),un[e]}return delete un[e],null}function gn(e,t){if(null!=t){var n,r,i=sn;null!=un[e]&&null!=un[e].parentLocale?un[e].set(N(un[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=N(i,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=un[e],un[e]=n),mn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===mn()&&mn(e)):null!=un[e]&&delete un[e]);return un[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=pn(e))return t;e=[e]}return dn(e)}function bn(){return T(un)}function wn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ye]<0||n[Ye]>11?Ye:n[Ue]<1||n[Ue]>Je(n[He],n[Ye])?Ue:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[qe]||0!==n[Ge]||0!==n[Xe])?Ve:n[qe]<0||n[qe]>59?qe:n[Ge]<0||n[Ge]>59?Ge:n[Xe]<0||n[Xe]>999?Xe:-1,v(e)._overflowDayOfYear&&(t<He||t>Ue)&&(t=Ue),v(e)._overflowWeeks&&-1===t&&(t=$e),v(e)._overflowWeekday&&-1===t&&(t=Qe),v(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,i,o,a,s=e._i,u=xn.exec(s)||_n.exec(s),l=Sn.length,c=Mn.length;if(u){for(v(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(u[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(Mn[t][1].exec(u[3])){o=(u[2]||" ")+Mn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!kn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Zn(e)}else e._isValid=!1}function Dn(e,t,n,r,i,o){var a=[Nn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Nn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function jn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Cn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Rn(e){var t,n=En.exec(jn(e._i));if(n){if(t=Dn(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=Tn.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,Rn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[Ue]&&null==e._a[Ye]&&Bn(e),null!=e._dayOfYear&&(o=Fn(e._a[He],r[He]),(e._dayOfYear>mt(o)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[Ye]=n.getUTCMonth(),e._a[Ue]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ve]&&0===e._a[qe]&&0===e._a[Ge]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?bt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,i,o,a,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Fn(t.GG,e._a[He],_t(Xn(),1,4).year),r=Fn(t.W,1),((i=Fn(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,l=_t(Xn(),o,a),n=Fn(t.gg,e._a[He],l.year),r=Fn(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>kt(n,o,a)?v(e)._overflowWeeks=!0:null!=u?v(e)._overflowWeekday=!0:(s=xt(n,r,i,o,a),e._a[He]=s.year,e._dayOfYear=s.dayOfYear)}function Zn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],v(e).empty=!0;var t,n,i,o,a,s,u,l=""+e._i,c=l.length,f=0;for(u=(i=Y(e._f,e._locale).match(I)||[]).length,t=0;t<u;t++)o=i[t],(n=(l.match(Re(o,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&v(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),f+=n.length),z[o]?(n?v(e).empty=!1:v(e).unusedTokens.push(o),Ze(o,n,e)):e._strict&&!n&&v(e).unusedTokens.push(o);v(e).charsLeftOver=c-f,l.length>0&&v(e).unusedInput.push(l),e._a[Ve]<=12&&!0===v(e).bigHour&&e._a[Ve]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ve]=Wn(e._locale,e._a[Ve],e._meridiem),null!==(s=v(e).era)&&(e._a[He]=e._locale.erasConvertYear(s,e._a[He])),zn(e),wn(e)}else Rn(e);else On(e)}function Wn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Hn(e){var t,n,r,i,o,a,s=!1,u=e._f.length;if(0===u)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Zn(t),g(t)&&(a=!0),o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));h(e,n||t)}function Yn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function Un(e){var t=new _(wn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new _(wn(t)):(f(t)?e._d=t:o(n)?Hn(e):n?Zn(e):qn(e),g(e)||(e._d=null),e))}function qn(e){var t=e._i;l(t)?e._d=new Date(r.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?In(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):a(t)?Yn(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&u(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,Un(s)}function Xn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var $n=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Qn=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Kn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Kn("isBefore",[].slice.call(arguments,0))}function er(){return Kn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(s(e,t)&&(-1===We.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==ce(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Cr(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function sr(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function lr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&a++;return a+o}function cr(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),Pe("Z",Ne),Pe("ZZ",Ne),ze(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(Ne,e)}));var fr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(k(e)||f(e)?e.valueOf():Xn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Xn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=dr(Ne,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Ar(this,Cr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:pr(this)}function vr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=dr(De,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _r(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Vn(t))._a?(e=t._isUTC?p(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Tr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Tr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:ce(a[Ue])*n,h:ce(a[Ve])*n,m:ce(a[qe])*n,s:ce(a[Ge])*n,ms:ce(ur(1e3*a[Xe]))*n}):(a=Er.exec(e))?(n="-"===a[1]?-1:1,o={y:Or(a[2],n),M:Or(a[3],n),w:Or(a[4],n),d:Or(a[5],n),h:Or(a[6],n),m:Or(a[7],n),s:Or(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Nr(Xn(o.from),Xn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Dr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Nr(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Dr(e,t):((n=Dr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function jr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Ar(this,Cr(n,r),e),this}}function Ar(e,t,n,i){var o=t._milliseconds,a=ur(t._days),s=ur(t._months);e.isValid()&&(i=null==i||i,s&&lt(e,de(e,"Month")+s*n),a&&he(e,"Date",de(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Cr.fn=ar.prototype,Cr.invalid=or;var Pr=jr(1,"add"),Rr=jr(-1,"subtract");function Ir(e){return"string"===typeof e||e instanceof String}function Fr(e){return k(e)||f(e)||Ir(e)||c(e)||zr(e)||Lr(e)||null===e||void 0===e}function Lr(e){var t,n,r=a(e)&&!u(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=o.length;for(t=0;t<l;t+=1)n=o[t],i=i||s(e,n);return r&&i}function zr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Ir(e)})).length),t&&n}function Br(e){var t,n,r=a(e)&&!u(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||s(e,n);return r&&i}function Zr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Wr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Xn(),i=hr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Xn(n)))}function Hr(){return new _(this)}function Yr(e,t){var n=k(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ur(e,t){var n=k(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var i=k(e)?e:Xn(e),o=k(t)?t:Xn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function qr(e,t){var n,r=k(e)?e:Xn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Qr(this,r)/12;break;case"month":o=Qr(this,r);break;case"quarter":o=Qr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:le(o)}function Qr(e,t){if(e.date()<t.date())return-Qr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(k(e)&&e.isValid()||Xn(e).isValid())?Cr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Xn(),e)}function ii(e,t){return this.isValid()&&(k(e)&&e.isValid()||Xn(e).isValid())?Cr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Xn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var li=1e3,ci=60*li,fi=60*ci,di=3506328*fi;function hi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-di:new Date(e,t,n).valueOf()}function mi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-di:Date.UTC(e,t,n)}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*ci),fi);break;case"minute":t=this._d.valueOf(),t-=hi(t,ci);break;case"second":t=this._d.valueOf(),t-=hi(t,li)}return this._d.setTime(t),r.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-hi(t+(this._isUTC?0:this.utcOffset()*ci),fi)-1;break;case"minute":t=this._d.valueOf(),t+=ci-hi(t,ci)-1;break;case"second":t=this._d.valueOf(),t+=li-hi(t,li)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function xi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _i(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ki(){return this.isValid()?this.toISOString():null}function Si(){return g(this)}function Mi(){return h({},v(this))}function Ti(){return v(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ci(e,t){var n,i,o,a=this._eras||yn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"===typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Oi(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]}function Di(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ni(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function ji(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Pi(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ri(e){return s(this,"_erasNameRegex")||Wi.call(this),e?this._erasNameRegex:this._erasRegex}function Ii(e){return s(this,"_erasAbbrRegex")||Wi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fi(e){return s(this,"_erasNarrowRegex")||Wi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Li(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Zi(e,t){return t._eraYearOrdinalRegex||Ce}function Wi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Fe(a[e].name)),n.push(Fe(a[e].abbr)),i.push(Fe(a[e].narrow)),o.push(Fe(a[e].name)),o.push(Fe(a[e].abbr)),o.push(Fe(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Hi(e,t){B(0,[e,e.length],0,t)}function Yi(e){return $i.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ui(e){return $i.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vi(){return kt(this.year(),1,4)}function qi(){return kt(this.isoWeekYear(),1,4)}function Gi(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function Xi(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function $i(e,t,n,r,i){var o;return null==e?_t(this,r,i).year:(t>(o=kt(e,r,i))&&(t=o),Qi.call(this,e,t,n,r,i))}function Qi(e,t,n,r,i){var o=xt(e,t,n,r,i),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ki(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Pe("N",Li),Pe("NN",Li),Pe("NNN",Li),Pe("NNNN",zi),Pe("NNNNN",Bi),ze(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e})),Pe("y",Ce),Pe("yy",Ce),Pe("yyy",Ce),Pe("yyyy",Ce),Pe("yo",Zi),ze(["y","yy","yyy","yyyy"],He),ze(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[He]=n._locale.eraYearOrdinalParse(e,i):t[He]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Pe("G",Oe),Pe("g",Oe),Pe("GG",_e,ye),Pe("gg",_e,ye),Pe("GGGG",Te,we),Pe("gggg",Te,we),Pe("GGGGG",Ee,xe),Pe("ggggg",Ee,xe),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),Pe("Q",ge),ze("Q",(function(e,t){t[Ye]=3*(ce(e)-1)})),B("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),Pe("D",_e),Pe("DD",_e,ye),Pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ze(["D","DD"],Ue),ze("Do",(function(e,t){t[Ue]=ce(e.match(_e)[0])}));var Ji=fe("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),Pe("DDD",Me),Pe("DDDD",be),ze(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),B("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),Pe("m",_e),Pe("mm",_e,ye),ze(["m","mm"],qe);var to=fe("Minutes",!1);B("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),Pe("s",_e),Pe("ss",_e,ye),ze(["s","ss"],Ge);var no,ro,io=fe("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),Pe("S",Me,ge),Pe("SS",Me,ye),Pe("SSS",Me,be),no="SSSS";no.length<=9;no+="S")Pe(no,Ce);function oo(e,t){t[Xe]=ce(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")ze(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=fe("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var uo=_.prototype;function lo(e){return Xn(1e3*e)}function co(){return Xn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Pr,uo.calendar=Wr,uo.clone=Hr,uo.diff=$r,uo.endOf=gi,uo.format=ti,uo.from=ni,uo.fromNow=ri,uo.to=ii,uo.toNow=oi,uo.get=pe,uo.invalidAt=Ti,uo.isAfter=Yr,uo.isBefore=Ur,uo.isBetween=Vr,uo.isSame=qr,uo.isSameOrAfter=Gr,uo.isSameOrBefore=Xr,uo.isValid=Si,uo.lang=si,uo.locale=ai,uo.localeData=ui,uo.max=Qn,uo.min=$n,uo.parsingFlags=Mi,uo.set=me,uo.startOf=vi,uo.subtract=Rr,uo.toArray=xi,uo.toObject=_i,uo.toDate=wi,uo.toISOString=Jr,uo.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=ki,uo.toString=Kr,uo.unix=bi,uo.valueOf=yi,uo.creationData=Ei,uo.eraName=Ni,uo.eraNarrow=ji,uo.eraAbbr=Ai,uo.eraYear=Pi,uo.year=vt,uo.isLeapYear=gt,uo.weekYear=Yi,uo.isoWeekYear=Ui,uo.quarter=uo.quarters=Ki,uo.month=ct,uo.daysInMonth=ft,uo.week=uo.weeks=Ct,uo.isoWeek=uo.isoWeeks=Ot,uo.weeksInYear=Gi,uo.weeksInWeekYear=Xi,uo.isoWeeksInYear=Vi,uo.isoWeeksInISOWeekYear=qi,uo.date=Ji,uo.day=uo.days=Yt,uo.weekday=Ut,uo.isoWeekday=Vt,uo.dayOfYear=eo,uo.hour=uo.hours=rn,uo.minute=uo.minutes=to,uo.second=uo.seconds=io,uo.millisecond=uo.milliseconds=ro,uo.utcOffset=mr,uo.utc=gr,uo.local=yr,uo.parseZone=br,uo.hasAlignedHourOffset=wr,uo.isDST=xr,uo.isLocal=kr,uo.isUtcOffset=Sr,uo.isUtc=Mr,uo.isUTC=Mr,uo.zoneAbbr=ao,uo.zoneName=so,uo.dates=M("dates accessor is deprecated. Use date instead.",Ji),uo.months=M("months accessor is deprecated. Use month instead",ct),uo.years=M("years accessor is deprecated. Use year instead",vt),uo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),uo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_r);var ho=j.prototype;function po(e,t,n,r){var i=yn(),o=p().set(r,t);return i[n](o,e)}function mo(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}function vo(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=yn(),a=e?o._week.dow:0,s=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,r,"day");return s}function go(e,t){return mo(e,t,"months")}function yo(e,t){return mo(e,t,"monthsShort")}function bo(e,t,n){return vo(e,t,n,"weekdays")}function wo(e,t,n){return vo(e,t,n,"weekdaysShort")}function xo(e,t,n){return vo(e,t,n,"weekdaysMin")}ho.calendar=P,ho.longDateFormat=V,ho.invalidDate=G,ho.ordinal=Q,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=J,ho.pastFuture=ee,ho.set=D,ho.eras=Ci,ho.erasParse=Oi,ho.erasConvertYear=Di,ho.erasAbbrRegex=Ii,ho.erasNameRegex=Ri,ho.erasNarrowRegex=Fi,ho.months=ot,ho.monthsShort=at,ho.monthsParse=ut,ho.monthsRegex=ht,ho.monthsShortRegex=dt,ho.week=St,ho.firstDayOfYear=Et,ho.firstDayOfWeek=Tt,ho.weekdays=zt,ho.weekdaysMin=Zt,ho.weekdaysShort=Bt,ho.weekdaysParse=Ht,ho.weekdaysRegex=qt,ho.weekdaysShortRegex=Gt,ho.weekdaysMinRegex=Xt,ho.isPM=tn,ho.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=M("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",yn);var _o=Math.abs;function ko(){var e=this._data;return this._milliseconds=_o(this._milliseconds),this._days=_o(this._days),this._months=_o(this._months),e.milliseconds=_o(e.milliseconds),e.seconds=_o(e.seconds),e.minutes=_o(e.minutes),e.hours=_o(e.hours),e.months=_o(e.months),e.years=_o(e.years),this}function So(e,t,n,r){var i=Cr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Mo(e,t){return So(this,e,t,1)}function To(e,t){return So(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function Co(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Do(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,n=le(t/60),u.hours=n%24,a+=le(n/24),s+=i=le(Oo(a)),a-=Eo(Do(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Oo(e){return 4800*e/146097}function Do(e){return 146097*e/4800}function No(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Do(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function jo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var Po=Ao("ms"),Ro=Ao("s"),Io=Ao("m"),Fo=Ao("h"),Lo=Ao("d"),zo=Ao("w"),Bo=Ao("M"),Zo=Ao("Q"),Wo=Ao("y");function Ho(){return Cr(this)}function Yo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Uo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vo=Uo("milliseconds"),qo=Uo("seconds"),Go=Uo("minutes"),Xo=Uo("hours"),$o=Uo("days"),Qo=Uo("months"),Ko=Uo("years");function Jo(){return le(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Cr(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),u=ea(i.as("d")),l=ea(i.as("M")),c=ea(i.as("w")),f=ea(i.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,na.apply(null,d)}function ia(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=sa(this._milliseconds)/1e3,l=sa(this._days),c=sa(this._months),f=this.asSeconds();return f?(e=le(u/60),t=le(e/60),u%=60,e%=60,n=le(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=ua(this._months)!==ua(f)?"-":"",a=ua(this._days)!==ua(f)?"-":"",s=ua(this._milliseconds)!==ua(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ca=ar.prototype;return ca.isValid=ir,ca.abs=ko,ca.add=Mo,ca.subtract=To,ca.as=No,ca.asMilliseconds=Po,ca.asSeconds=Ro,ca.asMinutes=Io,ca.asHours=Fo,ca.asDays=Lo,ca.asWeeks=zo,ca.asMonths=Bo,ca.asQuarters=Zo,ca.asYears=Wo,ca.valueOf=jo,ca._bubble=Co,ca.clone=Ho,ca.get=Yo,ca.milliseconds=Vo,ca.seconds=qo,ca.minutes=Go,ca.hours=Xo,ca.days=$o,ca.weeks=Jo,ca.months=Qo,ca.years=Ko,ca.humanize=aa,ca.toISOString=la,ca.toString=la,ca.toJSON=la,ca.locale=ai,ca.localeData=ui,ca.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),ca.lang=si,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Pe("x",Oe),Pe("X",je),ze("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ze("x",(function(e,t,n){n._d=new Date(ce(e))})),r.version="2.29.4",i(Xn),r.fn=uo,r.min=Jn,r.max=er,r.now=tr,r.utc=p,r.unix=lo,r.months=go,r.isDate=f,r.locale=mn,r.invalid=y,r.duration=Cr,r.isMoment=k,r.weekdays=bo,r.parseZone=co,r.localeData=yn,r.isDuration=sr,r.monthsShort=yo,r.weekdaysMin=xo,r.defineLocale=vn,r.updateLocale=gn,r.locales=bn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=ia,r.relativeTimeThreshold=oa,r.calendarFormat=Zr,r.prototype=uo,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},31725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,s,u=i(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(u[c]=a[c]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},42584:function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"===typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,k=Array.prototype.concat,S=Array.prototype.join,M=Array.prototype.slice,T=Math.floor,E="function"===typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"===typeof Symbol&&"object"===typeof Symbol.iterator,N="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,A=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var R=n(24654),I=R.custom,F=W(I)?I:null;function L(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function z(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return"[object Array]"===U(e)&&(!N||!("object"===typeof e&&N in e))}function Z(e){return"[object RegExp]"===U(e)&&(!N||!("object"===typeof e&&N in e))}function W(e){if(D)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(Y(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!Y(s,"customInspect")||s.customInspect;if("boolean"!==typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return q(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?P(t,w):w}if("bigint"===typeof t){var _=String(t)+"n";return m?P(t,_):_}var T="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=T&&T>0&&"object"===typeof t)return B(t)?"[Array]":"[Object]";var C=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(s,r);if("undefined"===typeof i)i=[];else if(V(i,t)>=0)return"[Circular]";function I(t,n,o){if(n&&(i=M.call(i)).push(n),o){var a={depth:s.depth};return Y(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"===typeof t&&!Z(t)){var H=function(e){if(e.name)return e.name;var t=g.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),G=J(t,I);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(G.length>0?" { "+S.call(G,", ")+" }":"")}if(W(t)){var ee=D?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!==typeof t||D?ee:X(ee)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var te="<"+x.call(String(t.nodeName)),ne=t.attributes||[],re=0;re<ne.length;re++)te+=" "+ne[re].name+"="+L(z(ne[re].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+x.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=J(t,I);return C&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+K(ie,C)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return"[object Error]"===U(e)&&(!N||!("object"===typeof e&&N in e))}(t)){var oe=J(t,I);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(oe,", ")+" }":"{ ["+String(t)+"] "+S.call(k.call("[cause]: "+I(t.cause),oe),", ")+" }"}if("object"===typeof t&&u){if(F&&"function"===typeof t[F]&&R)return R(t,{depth:T-r});if("symbol"!==u&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ae=[];return a.call(t,(function(e,n){ae.push(I(n,t,!0)+" => "+I(e,t))})),Q("Map",o.call(t),ae,C)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var se=[];return c.call(t,(function(e){se.push(I(e,t))})),Q("Set",l.call(t),se,C)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(te){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return $("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(te){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return $("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return $("WeakRef");if(function(e){return"[object Number]"===U(e)&&(!N||!("object"===typeof e&&N in e))}(t))return X(I(Number(t)));if(function(e){if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}(t))return X(I(E.call(t)));if(function(e){return"[object Boolean]"===U(e)&&(!N||!("object"===typeof e&&N in e))}(t))return X(p.call(t));if(function(e){return"[object String]"===U(e)&&(!N||!("object"===typeof e&&N in e))}(t))return X(I(String(t)));if(!function(e){return"[object Date]"===U(e)&&(!N||!("object"===typeof e&&N in e))}(t)&&!Z(t)){var ue=J(t,I),le=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",fe=!le&&N&&Object(t)===t&&N in t?y.call(U(t),8,-1):ce?"Object":"",de=(le||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||ce?"["+S.call(k.call([],fe||[],ce||[]),": ")+"] ":"");return 0===ue.length?de+"{}":C?de+"{"+K(ue,C)+"}":de+"{ "+S.call(ue,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function Y(e,t){return H.call(e,t)}function U(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function q(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return q(y.call(e,0,t.maxStringLength),t)+r}return L(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?K(n,r):S.call(n,", "))+"}"}function K(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Y(e,i)?t(e[i],e):""}var o,a="function"===typeof C?C(e):[];if(D){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)Y(e,u)&&(n&&String(Number(u))===u&&u<e.length||D&&o["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof C)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},81205:function(e){e.exports=function(e){var i=[];return e.replace(n,(function(e,n,o){var a=n.toLowerCase();for(o=function(e){var t=e.match(r);return t?t.map(Number):[]}(o),"m"==a&&o.length>2&&(i.push([n].concat(o.splice(0,2))),a="l",n="m"==n?"l":"L");;){if(o.length==t[a])return o.unshift(n),i.push(o);if(o.length<t[a])throw new Error("malformed path data");i.push([n].concat(o.splice(0,t[a])))}})),i};var t={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var r=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},66151:function(e,t,n){var r=n(52878);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var x=null!=m&&null!=p&&p!==m,_="+"===b||"*"===b,k="?"===b||"*"===b,S=n[2]||c,M=g||y;r.push({name:v||o++,prefix:m||"",delimiter:S,optional:k,repeat:_,partial:x,asterisk:!!w,pattern:M?l(M):w?".*":"[^"+u(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var f,d=s[c.name];if(null==d){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=u(l);else{var d=u(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+d+h+")*"),a+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=u(n.delimiter||"/"),m=a.slice(-p.length)===p;return i||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+p+"|$)",c(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},52878:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},80888:function(e,t,n){"use strict";var r=n(79047);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},52007:function(e,t,n){e.exports=n(80888)()},79047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},52758:function(e){"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),u=new t(512),l=new t(512);function c(e){return s.get(e)||s.set(e,f(e).map((function(e){return e.replace(a,"$2")})))}function f(e){return e.match(n)||[""]}function d(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function h(e){return!d(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:f,normalizePath:c,setter:function(e){var t=c(e);return u.get(e)||u.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=c(e);return l.get(e)||l.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(d(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(h(r)&&(r='"'+r+'"'),o=!(a=d(r))&&/^\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:f(e),t,n)}}},59874:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},32808:function(e,t,n){"use strict";var r=n(22334),i=n(4360),o=n(59874);e.exports={formats:o,parse:i,stringify:r}},4360:function(e,t,n){"use strict";var r=n(64184),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var m,v,g=d[n],y=g.indexOf("]="),b=-1===y?g.indexOf("="):y+1;-1===b?(m=t.decoder(g,a.decoder,p,"key"),v=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),a.decoder,p,"key"),v=r.maybeMap(u(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===p&&(v=s(v)),g.indexOf("[]=")>-1&&(v=o(v)?[v]:v),i.call(l,m)?l[m]=r.combine(l[m],v):l[m]=v}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),h=0;h<d.length;++h){var p=d[h],m=l(p,c[p],n,"string"===typeof e);f=r.merge(f,m,n)}return!0===n.allowSparse?f:r.compact(f)}},22334:function(e,t,n){"use strict";var r=n(40581),i=n(64184),o=n(59874),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=String.prototype.split,c=Array.prototype.push,f=function(e,t){c.apply(e,u(t)?t:[t])},d=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},v=function e(t,n,o,a,s,c,d,h,v,g,y,b,w,x,_){for(var k,S=t,M=_,T=0,E=!1;void 0!==(M=M.get(m))&&!E;){var C=M.get(t);if(T+=1,"undefined"!==typeof C){if(C===T)throw new RangeError("Cyclic object value");E=!0}"undefined"===typeof M.get(m)&&(T=0)}if("function"===typeof d?S=d(n,S):S instanceof Date?S=g(S):"comma"===o&&u(S)&&(S=i.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(a)return c&&!w?c(n,p.encoder,x,"key",y):n;S=""}if("string"===typeof(k=S)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||i.isBuffer(S)){if(c){var O=w?n:c(n,p.encoder,x,"key",y);if("comma"===o&&w){for(var D=l.call(String(S),","),N="",j=0;j<D.length;++j)N+=(0===j?"":",")+b(c(D[j],p.encoder,x,"value",y));return[b(O)+"="+N]}return[b(O)+"="+b(c(S,p.encoder,x,"value",y))]}return[b(n)+"="+b(String(S))]}var A,P=[];if("undefined"===typeof S)return P;if("comma"===o&&u(S))A=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(d))A=d;else{var R=Object.keys(S);A=h?R.sort(h):R}for(var I=0;I<A.length;++I){var F=A[I],L="object"===typeof F&&"undefined"!==typeof F.value?F.value:S[F];if(!s||null!==L){var z=u(S)?"function"===typeof o?o(n,F):n:n+(v?"."+F:"["+F+"]");_.set(t,T);var B=r();B.set(m,_),f(P,e(L,z,o,a,s,c,d,h,v,g,y,b,w,x,B))}}return P};e.exports=function(e,t){var n,i=e,l=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"===typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof l.filter?i=(0,l.filter)("",i):u(l.filter)&&(n=l.filter);var c,d=[];if("object"!==typeof i||null===i)return"";c=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[c];n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var m=r(),g=0;g<n.length;++g){var y=n[g];l.skipNulls&&null===i[y]||f(d,v(i[y],y,h,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var b=d.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},64184:function(e,t,n){"use strict";var r=n(59874),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",l=0;l<s.length;++l){var c=s.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},96962:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var r,o,a=[];for(o in"string"!==typeof t&&(t="?"),e)if(n.call(e,o)){if((r=e[o])||null!==r&&undefined!==r&&!isNaN(r)||(r=""),o=i(o),r=i(r),null===o||null===r)continue;a.push(o+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,i={};t=n.exec(e);){var o=r(t[1]),a=r(t[2]);null===o||null===a||o in i||(i[o]=a)}return i}},43513:function(e,t,n){"use strict";var r=n(72791),i=n(36031);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(r),s=o(i);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 l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function f(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return t=t||e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||v(e,t)||function(){throw new 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){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function b(e,t){return e(t={exports:{}},t.exports),t.exports}var w="function"==typeof Symbol&&Symbol.for,x=w?Symbol.for("react.element"):60103,_=w?Symbol.for("react.portal"):60106,k=w?Symbol.for("react.fragment"):60107,S=w?Symbol.for("react.strict_mode"):60108,M=w?Symbol.for("react.profiler"):60114,T=w?Symbol.for("react.provider"):60109,E=w?Symbol.for("react.context"):60110,C=w?Symbol.for("react.async_mode"):60111,O=w?Symbol.for("react.concurrent_mode"):60111,D=w?Symbol.for("react.forward_ref"):60112,N=w?Symbol.for("react.suspense"):60113,j=w?Symbol.for("react.suspense_list"):60120,A=w?Symbol.for("react.memo"):60115,P=w?Symbol.for("react.lazy"):60116,R=w?Symbol.for("react.block"):60121,I=w?Symbol.for("react.fundamental"):60117,F=w?Symbol.for("react.responder"):60118,L=w?Symbol.for("react.scope"):60119;function z(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case x:switch(e=e.type){case C:case O:case k:case M:case S:case N:return e;default:switch(e=e&&e.$$typeof){case E:case D:case P:case A:case T:return e;default:return t}}case _:return t}}}function B(e){return z(e)===O}var Z={AsyncMode:C,ConcurrentMode:O,ContextConsumer:E,ContextProvider:T,Element:x,ForwardRef:D,Fragment:k,Lazy:P,Memo:A,Portal:_,Profiler:M,StrictMode:S,Suspense:N,isAsyncMode:function(e){return B(e)||z(e)===C},isConcurrentMode:B,isContextConsumer:function(e){return z(e)===E},isContextProvider:function(e){return z(e)===T},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===x},isForwardRef:function(e){return z(e)===D},isFragment:function(e){return z(e)===k},isLazy:function(e){return z(e)===P},isMemo:function(e){return z(e)===A},isPortal:function(e){return z(e)===_},isProfiler:function(e){return z(e)===M},isStrictMode:function(e){return z(e)===S},isSuspense:function(e){return z(e)===N},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===k||e===O||e===M||e===S||e===N||e===j||"object"==typeof e&&null!==e&&(e.$$typeof===P||e.$$typeof===A||e.$$typeof===T||e.$$typeof===E||e.$$typeof===D||e.$$typeof===I||e.$$typeof===F||e.$$typeof===L||e.$$typeof===R)},typeOf:z},W=b((function(e,t){})),H=(W.AsyncMode,W.ConcurrentMode,W.ContextConsumer,W.ContextProvider,W.Element,W.ForwardRef,W.Fragment,W.Lazy,W.Memo,W.Portal,W.Profiler,W.StrictMode,W.Suspense,W.isAsyncMode,W.isConcurrentMode,W.isContextConsumer,W.isContextProvider,W.isElement,W.isForwardRef,W.isFragment,W.isLazy,W.isMemo,W.isPortal,W.isProfiler,W.isStrictMode,W.isSuspense,W.isValidElementType,W.typeOf,b((function(e){e.exports=Z})),Object.getOwnPropertySymbols),Y=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;function V(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}})()&&Object.assign;var q="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function G(e,t,n,r,i){}G.resetWarningCache=function(){};Function.call.bind(Object.prototype.hasOwnProperty);function X(){}function $(){}$.resetWarningCache=X;var Q=b((function(e){e.exports=function(){function e(e,t,n,r,i,o){if(o!==q)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$,resetWarningCache:X};return n.PropTypes=n}()})),K=r.createContext(),J=function(){return r.useContext(K)},ee=function(e){var t=e.children;e=e.initialState;return a.default.createElement(K.Provider,{value:e},t)};ee.propTypes={initialState:Q.object.isRequired,children:Q.oneOfType([Q.arrayOf(Q.node),Q.node]).isRequired};var te=1;var ne,re,ie,oe={nextValue:function(){return(te=(9301*te+49297)%233280)/233280},seed:function(e){te=e}},ae="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function se(){ie=!1}function ue(e){if(e){if(e!==ne){if(e.length!==ae.length)throw new Error("Custom alphabet for shortid must be "+ae.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+ae.length+" unique characters. These characters were not unique: "+t.join(", "));ne=e,se()}}else ne!==ae&&(ne=ae,se())}function le(){return ie=ie||function(){ne||ue(ae);for(var e,t=ne.split(""),n=[],r=oe.nextValue();0<t.length;)r=oe.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}()}var ce={get:function(){return ne||ae},characters:function(e){return ue(e),ne},seed:function(e){oe.seed(e),re!==e&&(se(),re=e)},lookup:function(e){return le()[e]},shuffled:le},fe="object"==typeof window&&(window.crypto||window.msCrypto),de=fe&&fe.getRandomValues?function(e){return fe.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},he=de,pe=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*n/t.length),o="";;)for(var a=e(i),s=i;s--;)if((o+=t[a[s]&r]||"").length===+n)return o};var me,ve,ge=function(e){for(var t,n=0,r="";!t;)r+=pe(he,ce.get(),1),t=e<Math.pow(16,n+1),n++;return r};var ye=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===ve?me++:(me=0,ve=n),t+=ge(7),t+=ge(e),0<me&&(t+=ge(me)),t+ge(n)};var be=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+ce.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)},we=b((function(e){var t=0;function n(){return ye(t)}e.exports=n,e.exports.generate=n,e.exports.seed=function(t){return ce.seed(t),e.exports},e.exports.worker=function(n){return t=n,e.exports},e.exports.characters=function(e){return void 0!==e&&ce.characters(e),ce.shuffled()},e.exports.isValid=be})),xe=(we.generate,we.seed,we.worker,we.characters,we.isValid,we),_e=b((function(e,t){var n="__lodash_hash_undefined__",r=1/0,i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",b="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",_="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,M=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[o]=D[a]=D[x]=D[s]=D[_]=D[u]=D[l]=D[c]=D[f]=D[d]=D[h]=D[m]=D[v]=D[g]=D[w]=!1;var N="object"==typeof y&&y&&y.Object===Object&&y,j="object"==typeof self&&self&&self.Object===Object&&self,A=N||j||Function("return this")(),P=(W=(H=t&&!t.nodeType&&t)&&e&&!e.nodeType&&e)&&W.exports===H&&N.process;t=(j=function(){try{return P&&P.binding("util")}catch(e){}}())&&j.isTypedArray;function R(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function I(e){return function(t){return e(t)}}function F(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var B,Z,W=Array.prototype,H=Function.prototype,Y=Object.prototype,U=(N=A["__core-js_shared__"],(j=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+j:""),V=H.toString,q=Y.hasOwnProperty,G=Y.toString,X=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=(N=A.Symbol,A.Uint8Array),Q=Y.propertyIsEnumerable,K=W.splice,J=(B=Object.keys,Z=Object,function(e){return B(Z(e))}),ee=(j=Ee(A,"DataView"),Ee(A,"Map")),te=(H=Ee(A,"Promise"),W=Ee(A,"Set"),A=Ee(A,"WeakMap"),Ee(Object,"create")),ne=Re(j),re=Re(ee),ie=Re(H),oe=Re(W),ae=Re(A),se=(N=N?N.prototype:void 0)?N.valueOf:void 0,ue=N?N.toString:void 0;function le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function fe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function de(e){var t=-1,n=e?e.length:0;for(this.__data__=new fe;++t<n;)this.add(e[t])}function he(e){this.__data__=new ce(e)}function pe(e,t){var n,r=ze(e)||Le(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=r.length,o=!!i;for(n in e)!t&&!q.call(e,n)||o&&("length"==n||Oe(n,i))||r.push(n);return r}function me(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}le.prototype.clear=function(){this.__data__=te?te(null):{}},le.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},le.prototype.get=function(e){var t=this.__data__;if(te){var r=t[e];return r===n?void 0:r}return q.call(t,e)?t[e]:void 0},le.prototype.has=function(e){var t=this.__data__;return te?void 0!==t[e]:q.call(t,e)},le.prototype.set=function(e,t){return this.__data__[e]=te&&void 0===t?n:t,this},ce.prototype.clear=function(){this.__data__=[]},ce.prototype.delete=function(e){var t=this.__data__;return!((e=me(t,e))<0)&&(e==t.length-1?t.pop():K.call(t,e,1),!0)},ce.prototype.get=function(e){var t=this.__data__;return(e=me(t,e))<0?void 0:t[e][1]},ce.prototype.has=function(e){return-1<me(this.__data__,e)},ce.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},fe.prototype.clear=function(){this.__data__={hash:new le,map:new(ee||ce),string:new le}},fe.prototype.delete=function(e){return Te(this,e).delete(e)},fe.prototype.get=function(e){return Te(this,e).get(e)},fe.prototype.has=function(e){return Te(this,e).has(e)},fe.prototype.set=function(e,t){return Te(this,e).set(e,t),this},de.prototype.add=de.prototype.push=function(e){return this.__data__.set(e,n),this},de.prototype.has=function(e){return this.__data__.has(e)},he.prototype.clear=function(){this.__data__=new ce},he.prototype.delete=function(e){return this.__data__.delete(e)},he.prototype.get=function(e){return this.__data__.get(e)},he.prototype.has=function(e){return this.__data__.has(e)},he.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ce){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this;n=this.__data__=new fe(r)}return n.set(e,t),this};var ve,ge=(ve=function(e,t){return e&&ye(e,t,qe)},function(e,t){if(null==e)return e;if(!Be(e))return ve(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),ye=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function be(e,t){for(var n=0,r=(t=De(t,e)?[t]:Se(t)).length;null!=e&&n<r;)e=e[Pe(t[n++])];return n&&n==r?e:void 0}function we(e,t){return null!=e&&t in Object(e)}function xe(e,t,n,r,i){return e===t||(null==e||null==t||!He(e)&&!Ye(t)?e!=e&&t!=t:function(e,t,n,r,i,c){var p=ze(e),y=ze(t),w=a,k=a;p||(w=(w=Ce(e))==o?h:w),y||(k=(k=Ce(t))==o?h:k);var S=w==h&&!F(e);y=k==h&&!F(t);return(k=w==k)&&!S?(c=c||new he,p||Ve(e)?Me(e,t,n,r,i,c):function(e,t,n,r,i,o,a){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!r(new $(e),new $(t)));case s:case u:case d:return Fe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case f:var c=L;case v:return n=2&o,c=c||z,e.size==t.size||n?(n=a.get(e))?n==t:(o|=1,a.set(e,t),o=Me(c(e),c(t),r,i,o,a),a.delete(e),o):!1;case b:if(se)return se.call(e)==se.call(t)}return!1}(e,t,w,n,r,i,c)):2&i||(S=S&&q.call(e,"__wrapped__"),y=y&&q.call(t,"__wrapped__"),!S&&!y)?k&&function(e,t,n,r,i,o){var a=2&i,s=qe(e),u=s.length,l=qe(t).length;if(u!=l&&!a)return!1;for(var c=u;c--;){var f=s[c];if(!(a?f in t:q.call(t,f)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<u;){var m,v=e[f=s[c]],g=t[f];if(r&&(m=a?r(g,v,f,t,e,o):r(v,g,f,e,t,o)),!(void 0===m?v===g||n(v,g,r,i,o):m)){h=!1;break}p=p||"constructor"==f}return h&&!p&&((l=e.constructor)!=(d=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof l&&l instanceof l&&"function"==typeof d&&d instanceof d)&&(h=!1)),o.delete(e),o.delete(t),h}(e,t,n,r,i,c=c||new he):n(S=S?e.value():e,y=y?t.value():t,r,i,c=c||new he)}(e,t,xe,n,r,i))}function _e(e){return"function"==typeof e?e:null==e?Ge:"object"==typeof e?ze(e)?function(e,t){return De(e)&&Ne(t)?je(Pe(e),t):function(n){var r=function(e,t,n){return void 0===(t=null==e?void 0:be(e,t))?void 0:t}(n,e);return void 0===r&&r===t?null!=n&&function(e,t,n){for(var r,i=-1,o=(t=De(t,e)?[t]:Se(t)).length;++i<o;){var a=Pe(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||!!(o=e?e.length:0)&&We(o)&&Oe(a,o)&&(ze(e)||Le(e))}(n,e,we):xe(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=qe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ne(i)]}return t}(e);return 1==t.length&&t[0][2]?je(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var s=(a=n[i])[0],u=e[s],l=a[1];if(a[2]){if(void 0===u&&!(s in e))return!1}else{var c,f=new he;if(!(void 0===c?xe(l,u,r,3,f):c))return!1}}return!0}(n,0,t)}}(e):De(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Pe(e)):function(e){return function(t){return be(t,e)}}(e)}function ke(e){if(n="function"==typeof(n=(t=e)&&t.constructor)&&n.prototype||Y,t!==n)return J(e);var t,n,r,i=[];for(r in Object(e))q.call(e,r)&&"constructor"!=r&&i.push(r);return i}function Se(e){return ze(e)?e:Ae(e)}function Me(e,t,n,r,i,o){var a=2&i,s=e.length,u=t.length;if(s!=u&&!(a&&s<u))return!1;if((u=o.get(e))&&o.get(t))return u==t;var l=-1,c=!0,f=1&i?new de:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var d,h=e[l],p=t[l];if(r&&(d=a?r(p,h,l,t,e,o):r(h,p,l,e,t,o)),void 0!==d){if(d)continue;c=!1;break}if(f){if(!function(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n))return 1}(t,(function(e,t){return!f.has(t)&&(h===e||n(h,e,r,i,o))&&f.add(t)}))){c=!1;break}}else if(h!==p&&!n(h,p,r,i,o)){c=!1;break}}return o.delete(e),o.delete(t),c}function Te(e,t){var n,r=e.__data__;return("string"==(e=typeof(n=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ee(e,t){return function(e){return He(e)&&!(U&&U in e)&&(Ze(e)||F(e)?X:C).test(Re(e))}(t=null==e?void 0:e[t])?t:void 0}var Ce=function(e){return G.call(e)};function Oe(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||O.test(e))&&-1<e&&e%1==0&&e<t}function De(e,t){if(!ze(e)){var n=typeof e;return"number"==n||"symbol"==n||"boolean"==n||null==e||Ue(e)||S.test(e)||!k.test(e)||null!=t&&e in Object(t)}}function Ne(e){return e==e&&!He(e)}function je(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(j&&Ce(new j(new ArrayBuffer(1)))!=_||ee&&Ce(new ee)!=f||H&&Ce(H.resolve())!=p||W&&Ce(new W)!=v||A&&Ce(new A)!=w)&&(Ce=function(e){var t=G.call(e);if(e=(e=t==h?e.constructor:void 0)?Re(e):void 0)switch(e){case ne:return _;case re:return f;case ie:return p;case oe:return v;case ae:return w}return t});var Ae=Ie((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Ue(e))return ue?ue.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}(t);var n=[];return M.test(e)&&n.push(""),e.replace(T,(function(e,t,r,i){n.push(r?i.replace(E,"$1"):t||e)})),n}));function Pe(e){if("string"==typeof e||Ue(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function Re(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ie(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;return o.has(i)?o.get(i):(r=e.apply(this,r),n.cache=o.set(i,r),r)};return n.cache=new(Ie.Cache||fe),n}function Fe(e,t){return e===t||e!=e&&t!=t}function Le(e){return Ye(t=e)&&Be(t)&&q.call(e,"callee")&&(!Q.call(e,"callee")||G.call(e)==o);var t}Ie.Cache=fe;var ze=Array.isArray;function Be(e){return null!=e&&We(e.length)&&!Ze(e)}function Ze(e){return(e=He(e)?G.call(e):"")==c||"[object GeneratorFunction]"==e}function We(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=i}function He(e){var t=typeof e;return e&&("object"==t||"function"==t)}function Ye(e){return!!e&&"object"==typeof e}function Ue(e){return"symbol"==typeof e||Ye(e)&&G.call(e)==b}var Ve=t?I(t):function(e){return Ye(e)&&We(e.length)&&!!D[G.call(e)]};function qe(e){return(Be(e)?pe:ke)(e)}function Ge(e){return e}e.exports=function(e,t,n,r){return null==e?[]:(ze(t)||(t=null==t?[]:[t]),ze(n=r?void 0:n)||(n=null==n?[]:[n]),function(e,t,n){var r,i,o,a=-1;return t=R(t.length?t:[Ge],I(_e)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}((r=function(e,n,r){return{criteria:R(t,(function(t){return t(e)})),index:++a,value:e}},i=-1,o=Be(e)?Array(e.length):[],ge(e,(function(e,t,n){o[++i]=r(e)})),o),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ue(e),a=void 0!==t,s=null===t,u=t==t,l=Ue(t);if(!s&&!l&&!o&&t<e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}(i[r],o[r]);if(u)return s<=r?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}(e,t,n))}})),ke=function(e,t,n){return t=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==n?n:0,[].concat(m((e=0<arguments.length&&void 0!==e?e:[]).slice(0,n)),[t],m(e.slice(n)))},Se=function(e,t,n){var r=1<arguments.length&&void 0!==t?t:{},i=2<arguments.length?n:void 0;e=(0<arguments.length&&void 0!==e?e:[]).slice();return r[i]?e.splice(e.findIndex((function(e){return e[i]===r[i]})),1):e.splice(e.findIndex((function(e){return e===r})),1),e},Me=function(e){return e?"asc":"desc"},Te=function(e,t){return Math.ceil(e/t)},Ee=function(e,t){return Math.min(e,t)},Ce=function(){return null},Oe=function(e,t){var n=0<arguments.length&&void 0!==e?e:{},r={};return(t=1<arguments.length&&void 0!==t?t:[]).length&&t.forEach((function(e){if(!e.when||"function"!=typeof e.when)throw new Error('"when" must be defined in the conditional style object and must be function');e.when(n)&&(r=e.style||{},"function"==typeof e.style&&(r=e.style(n)||{}))})),r},De=function(e,t,n){var r=0<arguments.length&&void 0!==e?e:{},i=(t=1<arguments.length&&void 0!==t?t:[],2<arguments.length&&void 0!==n?n:"id");return r[i]?t.some((function(e){return e[i]===r[i]})):t.some((function(e){return e===r}))},Ne=function(e){return"auto"!==(e=0<arguments.length&&void 0!==e?e:"auto")?"rtl"===e:!("undefined"==typeof window||!window.document||!window.document.createElement)&&("rtl"===document.getElementsByTagName("BODY")[0]||"rtl"===document.getElementsByTagName("HTML")[0].dir)};function je(e,t){switch(t.type){case"SELECT_ALL_ROWS":var n=t.rows,r=t.rowCount,i=t.mergeSelections,o=t.keyField,a=!e.allSelected;if(i){var s=a?[].concat(m(e.selectedRows),m(n.filter((function(t){return!De(t,e.selectedRows,o)})))):e.selectedRows.filter((function(e){return!De(e,n,o)}));return d(d({},e),{},{allSelected:a,selectedCount:s.length,selectedRows:s})}return d(d({},e),{},{allSelected:a,selectedCount:a?r:0,selectedRows:a?n:[]});case"SELECT_SINGLE_ROW":return i=t.row,s=t.isSelected,r=t.keyField,a=t.rowCount,d(d({},e),{},s?{selectedCount:0<e.selectedRows.length?e.selectedRows.length-1:0,allSelected:!1,selectedRows:Se(e.selectedRows,i,r)}:{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===a,selectedRows:ke(e.selectedRows,i)});case"SELECT_MULTIPLE_ROWS":var u=t.selectedRows,l=t.rows,c=t.mergeSelections,f=t.keyField;if(c){var h=[].concat(m(e.selectedRows),m(u.filter((function(t){return!De(t,e.selectedRows,f)}))));return d(d({},e),{},{selectedCount:h.length,allSelected:!1,selectedRows:h})}return d(d({},e),{},{selectedCount:u.length,allSelected:u.length===l.length,selectedRows:u});case"SORT_CHANGE":var p=t.sortColumn,v=t.sortDirection,g=(c=t.sortServer,t.selectedColumn),y=(h=t.pagination,l=t.paginationServer,t.visibleOnly);u=t.persistSelectedOnSort,y=h&&l&&!u||c||y;return d(d({},e),{},{sortColumn:p,selectedColumn:g,sortDirection:v,currentPage:1},y&&{allSelected:!1,selectedCount:0,selectedRows:[]});case"CHANGE_PAGE":p=t.page,g=t.paginationServer;var b=t.visibleOnly;v=t.persistSelectedOnPageChange,y=g&&v,b=g&&!v||b;return d(d(d({},e),{},{currentPage:p},y&&{allSelected:!1}),b&&{allSelected:!1,selectedCount:0,selectedRows:[]});case"CHANGE_ROWS_PER_PAGE":var w=t.rowsPerPage;b=t.page;return d(d({},e),{},{currentPage:b,rowsPerPage:w});case"CLEAR_SELECTED_ROWS":return w=t.selectedRowsFlag,d(d({},e),{},{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:w});default:throw new Error("Unhandled action type: ".concat(t.type))}}function Ae(){var e=h(["\n position: relative;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n max-width: 100%;\n ",";\n ",";\n"]);return Ae=function(){return e},e}function Pe(){var e=h(["\n pointer-events: none;\n opacity: 0.4;\n"]);return Pe=function(){return e},e}var Re=i.css(Pe()),Ie=s.default.div(Ae(),(function(e){return e.disabled&&Re}),(function(e){return e.theme.table.style}));function Fe(){var e=h(["\n display: flex;\n text-align: left;\n ",";\n"]);return Fe=function(){return e},e}var Le=s.default.div(Fe(),(function(e){return e.theme.head.style}));function ze(){var e=h(["\n display: flex;\n align-items: stretch;\n width: 100%;\n ",";\n ",";\n ",";\n"]);return ze=function(){return e},e}function Be(){var e=h(["\n pointer-events: none;\n"]);return Be=function(){return e},e}var Ze=i.css(Be()),We=s.default.div(ze(),(function(e){return e.theme.headRow.style}),(function(e){return e.dense&&e.theme.headRow.denseStyle}),(function(e){return e.disabled&&Ze}));function He(){var e=h(["\n @media screen and (max-width: ","px) {\n ","\n }\n "]);return He=function(){return e},e}function Ye(){var e=h(["\n @media screen and (max-width: ","px) {\n ","\n }\n "]);return Ye=function(){return e},e}function Ue(){var e=h(["\n @media screen and (max-width: ","px) {\n ","\n }\n "]);return Ue=function(){return e},e}function Ve(){var e=h(["\n @media screen and (max-width: ","px) {\n ","\n }\n "]);return Ve=function(){return e},e}var qe=function(){return i.css(Ve(),599,i.css.apply(void 0,arguments))},Ge=function(){return i.css(Ue(),959,i.css.apply(void 0,arguments))},Xe=function(){return i.css(Ye(),1280,i.css.apply(void 0,arguments))},$e=function(e){return function(){return i.css(He(),e,i.css.apply(void 0,arguments))}};function Qe(){var e=h(["\n display: none;\n "]);return Qe=function(){return e},e}function Ke(){var e=h(["\n display: none;\n "]);return Ke=function(){return e},e}function Je(){var e=h(["\n display: none;\n "]);return Je=function(){return e},e}function et(){var e=h(["\n display: none;\n "]);return et=function(){return e},e}function tt(){var e=h(["\n min-width: ",";\n max-width: ",";\n "]);return tt=function(){return e},e}function nt(){var e=h(["\n flex-grow: ",";\n flex-shrink: 0;\n flex-basis: 0;\n max-width: ",";\n min-width: ",";\n ",";\n ",";\n ",";\n ",";\n\n /* handle hiding cells */\n ",";\n ",";\n ",";\n ",";\n"]);return nt=function(){return e},e}function rt(){var e=h(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n line-height: normal;\n ",";\n ",";\n"]);return rt=function(){return e},e}var it=s.default.div(rt(),(function(e){return e.theme[e.head?"headCells":"cells"].style}),(function(e){return e.noPadding&&"padding: 0"})),ot=s.default(it)(nt(),(function(e){return 0===e.column.grow||e.column.button?0:e.column.grow||1}),(function(e){return e.column.maxWidth||"100%"}),(function(e){return e.column.minWidth||"100px"}),(function(e){return e.column.width&&i.css(tt(),e.column.width,e.column.width)}),(function(e){return e.column.right&&"justify-content: flex-end"}),(function(e){return(e.column.center||e.column.button)&&"justify-content: center"}),(function(e){return(e.column.compact||e.column.button)&&"padding: 0"}),(function(e){return e.column.hide&&"sm"===e.column.hide&&qe(et())}),(function(e){return e.column.hide&&"md"===e.column.hide&&Ge(Je())}),(function(e){return e.column.hide&&"lg"===e.column.hide&&Xe(Ke())}),(function(e){return e.column.hide&&Number.isInteger(e.column.hide)&&$e(e.column.hide)(Qe())})),at="allowRowEvents";function st(){var e=h(["\n font-size: ",";\n font-weight: 400;\n ",";\n ",";\n ",";\n"]);return st=function(){return e},e}function ut(){var e=h(["\n div:first-child {\n white-space: ",";\n overflow: ",";\n text-overflow: ellipsis;\n }\n"]);return ut=function(){return e},e}var lt=i.css(ut(),(function(e){return e.column.wrap?"normal":"nowrap"}),(function(e){return e.column.allowOverflow?"visible":"hidden"})),ct=s.default(ot)(st(),(function(e){return e.theme.rows.fontSize}),(function(e){return!e.column.cell&&lt}),(function(e){return e.column.style}),(function(e){return e.extendedCellStyle})),ft=r.memo((function(e){var t=e.id,n=e.rowIndex,r=e.column,i=e.row;if(r.omit)return null;var o=r.ignoreRowClick||r.button?null:at;e=Oe(i,r.conditionalCellStyles);return a.default.createElement(ct,{id:t,role:"gridcell",column:r,"data-tag":o,className:"rdt_TableCell",extendedCellStyle:e},!r.cell&&a.default.createElement("div",{"data-tag":o},function(e,t,n,r){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,r):t&&"function"==typeof t?t(e,r):t.split(".").reduce((function(e,t){var n=t.match(/[^\]\\[.]+/g);return 1<n.length&&0<n.length?e[n[0]][n[1]]:e[t]}),e)}(i,r.selector,r.format,n)),r.cell&&r.cell(i,n,r,t))}));ft.propTypes={id:Q.string.isRequired,rowIndex:Q.number.isRequired,column:Q.object.isRequired,row:Q.object.isRequired};var dt=r.memo((function(e){var t=e.component,n=e.componentOptions,i=e.indeterminate,o=e.checked,s=e.name,u=e.onClick,f=e.disabled,h=t;e="input"!==h?n.style:function(e){return d(d({fontSize:"18px"},!e&&{cursor:"pointer"}),{},{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"})}(f),t=r.useMemo((function(){return function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Object.keys(e).map((function(t){return e[t]})).forEach((function(n,i){var o=e;"function"==typeof n&&(t=d(d({},o),{},l({},Object.keys(e)[i],n.apply(void 0,r))),delete o[n])})),t||e}(n,i)}),[n,i]);return a.default.createElement(h,c({type:"checkbox",ref:function(e){e&&(e.indeterminate=i)},style:e,onClick:f?Ce:u,name:s,"aria-label":s,checked:o,disabled:f},t,{onChange:Ce}))}));function ht(){var e=h(["\n flex: 0 0 48px;\n justify-content: center;\n align-items: center;\n user-select: none;\n white-space: nowrap;\n"]);return ht=function(){return e},e}dt.propTypes={name:Q.string.isRequired,indeterminate:Q.bool,component:Q.oneOfType([Q.string,Q.node,Q.func,Q.object]),componentOptions:Q.object,checked:Q.bool,disabled:Q.bool,onClick:Q.func},dt.defaultProps={indeterminate:!1,component:"input",componentOptions:{style:{}},checked:!1,disabled:!1,onClick:null};var pt=s.default(it)(ht()),mt=function(e){var t=e.name,n=e.row,i=e.selected,o=(f=J()).dispatch,s=f.data,u=f.keyField,l=f.selectableRowsComponent,c=f.selectableRowsComponentProps,f=(e=f.selectableRowDisabled)&&e(n);e=r.useCallback((function(){return o({type:"SELECT_SINGLE_ROW",row:n,isSelected:i,keyField:u,rowCount:s.length})}),[o,n,i,u,s.length]);return a.default.createElement(pt,{onClick:function(e){return e.stopPropagation()},className:"rdt_TableCell",noPadding:!0},a.default.createElement(dt,{name:t,component:l,componentOptions:c,checked:i,"aria-checked":i,onClick:e,disabled:f}))};function vt(){var e=h(["\n display: inline-flex;\n align-items: center;\n user-select: none;\n white-space: nowrap;\n border: none;\n background-color: transparent;\n ",";\n"]);return vt=function(){return e},e}mt.propTypes={name:Q.string.isRequired,row:Q.object.isRequired,selected:Q.bool.isRequired};var gt=s.default.button(vt(),(function(e){return e.theme.expanderButton.style})),yt=function(e){var t=e.expanded,n=e.row,r=e.onToggled,i=e.disabled,o=(e=(o=J()).expandableIcon,o.keyField);e=t?e.expanded:e.collapsed;return a.default.createElement(gt,{"aria-disabled":i,onClick:function(e){return r&&r(n,e)},"data-testid":"expander-button-".concat(n[o]),disabled:i,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},e)};function bt(){var e=h(["\n white-space: nowrap;\n font-weight: 400;\n ",";\n"]);return bt=function(){return e},e}yt.propTypes={row:Q.object.isRequired,expanded:Q.bool,onToggled:Q.func,disabled:Q.bool},yt.defaultProps={onToggled:null,expanded:!1,disabled:!1};var wt=s.default(it)(bt(),(function(e){return e.theme.expanderCell.style})),xt=function(e){var t=e.column,n=e.row,r=e.expanded,i=e.onRowExpandToggled;e=e.disabled;return a.default.createElement(wt,{column:t,onClick:function(e){return e.stopPropagation()},noPadding:!0},a.default.createElement(yt,{onToggled:i,row:n,expanded:r,disabled:e}))};function _t(){var e=h(["\n width: 100%;\n box-sizing: border-box;\n ",";\n ",";\n"]);return _t=function(){return e},e}xt.propTypes={column:Q.object,row:Q.object,expanded:Q.bool,onRowExpandToggled:Q.func.isRequired,disabled:Q.bool},xt.defaultProps={column:{},row:{},expanded:!1,disabled:!1};var kt=s.default.div(_t(),(function(e){return e.theme.expanderRow.style}),(function(e){return e.extendedRowStyle})),St=function(e){var t=e.data,n=e.children;e=e.extendedRowStyle;return a.default.createElement(kt,{className:"rdt_ExpanderRow",extendedRowStyle:e},function(e,t){return r.Children.map(e,(function(e){return r.cloneElement(e,{data:t})}))}(n,t))};function Mt(){var e=h(["\n display: flex;\n align-items: stretch;\n align-content: stretch;\n width: 100%;\n box-sizing: border-box;\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n"]);return Mt=function(){return e},e}function Tt(){var e=h(["\n &:hover {\n cursor: pointer;\n }\n"]);return Tt=function(){return e},e}function Et(){var e=h(["\n &:hover {\n ",";\n }\n"]);return Et=function(){return e},e}St.propTypes={data:Q.object,children:Q.oneOfType([Q.arrayOf(Q.node),Q.node]),extendedRowStyle:Q.object},St.defaultProps={data:{},children:null,extendedRowStyle:null};var Ct=i.css(Et(),(function(e){return e.highlightOnHover&&e.theme.rows.highlightOnHoverStyle})),Ot=i.css(Tt()),Dt=s.default.div(Mt(),(function(e){return e.theme.rows.style}),(function(e){return e.dense&&e.theme.rows.denseStyle}),(function(e){return e.striped&&e.theme.rows.stripedStyle}),(function(e){return e.highlightOnHover&&Ct}),(function(e){return e.pointerOnHover&&Ot}),(function(e){return e.selected&&e.theme.rows.selectedHighlightStyle}),(function(e){return e.extendedRowStyle})),Nt=r.memo((function(e){var t=e.id,n=e.keyField,i=e.columns,o=e.row,s=e.onRowClicked,u=e.onRowDoubleClicked,l=e.selectableRows,c=e.expandableRows,f=e.striped,d=e.highlightOnHover,h=e.pointerOnHover,m=e.dense,v=e.expandableRowsComponent,g=e.defaultExpanderDisabled,y=e.defaultExpanded,b=e.expandableRowsHideExpander,w=e.expandOnRowClicked,x=e.expandOnRowDoubleClicked,_=e.conditionalRowStyles,k=e.inheritConditionalStyles,S=e.onRowExpandToggled,M=e.selected,T=e.selectableRowsHighlight,E=e.rowIndex,C=(N=p(r.useState(y),2))[0],O=N[1];r.useEffect((function(){O(y)}),[y]);var D=r.useCallback((function(){O(!C),S(!C,o)}),[C,S,o]),N=(e=h||c&&(w||x),r.useCallback((function(e){e.target&&e.target.getAttribute("data-tag")===at&&(s(o,e),!g&&c&&w&&D())}),[g,w,c,D,s,o]));h=r.useCallback((function(e){e.target&&e.target.getAttribute("data-tag")===at&&(u(o,e),!g&&c&&x&&D())}),[g,x,c,D,u,o]),_=Oe(o,_),T=T&&M,k=k?_:null,f=f&&function(e){return e%2}(E);return a.default.createElement(a.default.Fragment,null,a.default.createElement(Dt,{id:"row-".concat(t),role:"row",striped:f,highlightOnHover:d,pointerOnHover:!g&&e,dense:m,onClick:N,onDoubleClick:h,className:"rdt_TableRow",extendedRowStyle:_,selected:T},l&&a.default.createElement(mt,{name:"select-row-".concat(o[n]),row:o,selected:M}),c&&!b&&a.default.createElement(xt,{expanded:C,row:o,onRowExpandToggled:D,disabled:g}),i.map((function(e){return a.default.createElement(ft,{id:"cell-".concat(e.id,"-").concat(o[n]),key:"cell-".concat(e.id,"-").concat(o[n]),column:e,row:o,rowIndex:E})}))),c&&C&&a.default.createElement(St,{key:"expander--".concat(o[n]),data:o,extendedRowStyle:k},v))}));function jt(){var e=h(["\n padding: 2px;\n color: inherit;\n flex-grow: 0;\n flex-shrink: 0;\n ",";\n ",";\n"]);return jt=function(){return e},e}Nt.propTypes={id:Q.any.isRequired,keyField:Q.string.isRequired,columns:Q.array.isRequired,row:Q.object.isRequired,rowIndex:Q.number.isRequired,onRowClicked:Q.func.isRequired,onRowDoubleClicked:Q.func.isRequired,onRowExpandToggled:Q.func.isRequired,defaultExpanded:Q.bool,defaultExpanderDisabled:Q.bool,selectableRows:Q.bool.isRequired,expandableRows:Q.bool.isRequired,striped:Q.bool.isRequired,highlightOnHover:Q.bool.isRequired,pointerOnHover:Q.bool.isRequired,dense:Q.bool.isRequired,expandableRowsComponent:Q.oneOfType([Q.arrayOf(Q.node),Q.node,Q.func]).isRequired,expandableRowsHideExpander:Q.bool.isRequired,expandOnRowClicked:Q.bool.isRequired,expandOnRowDoubleClicked:Q.bool.isRequired,conditionalRowStyles:Q.array.isRequired,inheritConditionalStyles:Q.bool.isRequired,selected:Q.bool.isRequired,selectableRowsHighlight:Q.bool.isRequired},Nt.defaultProps={defaultExpanded:!1,defaultExpanderDisabled:!1};var At=s.default.span(jt(),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return"desc"===e.sortDirection&&"transform: rotate(180deg)"})),Pt=function(e){var t=e.sortActive,n=e.sortDirection;e=e.sortIcon;return a.default.createElement(At,{sortActive:t,sortDirection:n},e)};function Rt(){var e=h(["\n display: inline-flex;\n align-items: center;\n height: 100%;\n line-height: 1;\n user-select: none;\n ",";\n\n span.__rdt_custom_sort_icon__ {\n i,\n svg {\n ",";\n color: inherit;\n font-size: 18px !important;\n height: 18px !important;\n width: 18px !important;\n backface-visibility: hidden;\n transform-style: preserve-3d;\n transition-duration: 125ms;\n transition-property: transform;\n }\n\n &.asc i,\n &.asc svg {\n transform: rotate(180deg);\n }\n }\n\n &:hover {\n ",";\n ",";\n\n span,\n span.__rdt_custom_sort_icon__ * {\n ",";\n }\n }\n"]);return Rt=function(){return e},e}function It(){var e=h(["\n ",";\n"]);return It=function(){return e},e}Pt.propTypes={sortDirection:Q.string.isRequired,sortActive:Q.bool,sortIcon:Q.node},Pt.defaultProps={sortActive:!1,sortIcon:a.default.createElement(a.default.Fragment,null,"\u25b2")};var Ft=s.default(ot)(It(),(function(e){return e.column.button&&"text-align: center"})),Lt=s.default.div(Rt(),(function(e){return e.sortActive?e.theme.headCells.activeSortStyle:e.theme.headCells.inactiveSortStyle}),(function(e){return e.sortActive?"opacity: 1":"opacity: 0"}),(function(e){return e.column.sortable&&"cursor: pointer"}),(function(e){var t=e.column;e=e.theme;return t.sortable&&e.headCells.activeStyle}),(function(e){var t=e.sortActive;e=e.column;return!t&&e.sortable&&"opacity: 1"})),zt=r.memo((function(e){var t=e.column,n=e.sortIcon,r=(y=J()).dispatch,i=y.pagination,o=y.paginationServer,s=y.sortColumn,u=y.sortDirection,l=y.sortServer,c=y.selectableRowsVisibleOnly,f=y.persistSelectedOnSort;if(t.omit)return null;function d(){var e;t.sortable&&(e=u,s===t.selector&&(e="asc"===u?"desc":"asc"),r({type:"SORT_CHANGE",sortDirection:e,sortColumn:t.selector,sortServer:l,selectedColumn:t,pagination:i,paginationServer:o,visibleOnly:c,persistSelectedOnSort:f}))}function h(e){return a.default.createElement(Pt,{column:t,sortActive:e,sortDirection:u})}function p(){return a.default.createElement("span",{className:[u,"__rdt_custom_sort_icon__"].join(" ")},n)}var m=t.sortable&&s===t.selector,v=t.sortable&&!n&&!t.right,g=t.sortable&&!n&&t.right,y=(e=t.sortable&&n&&!t.right,t.sortable&&n&&t.right);return a.default.createElement(Ft,{className:"rdt_TableCol",column:t,head:!0},t.name&&a.default.createElement(Lt,{id:"column-".concat(t.selector),role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:d,onKeyPress:function(e){"Enter"===e.key&&d()},sortActive:m,column:t},y&&p(),g&&h(m),a.default.createElement("div",null,t.name),e&&p(),v&&h(m)))}));function Bt(){var e=h(["\n flex: 0 0 48px;\n justify-content: center;\n align-items: center;\n user-select: none;\n white-space: nowrap;\n"]);return Bt=function(){return e},e}zt.propTypes={column:Q.object.isRequired,sortIcon:Q.oneOfType([Q.bool,Q.object]).isRequired};var Zt=s.default(it)(Bt()),Wt=function(e){var t=e.head,n=(d=J()).dispatch,i=d.data,o=d.selectedRows,s=d.allSelected,u=d.selectableRowsComponent,l=(e=d.selectableRowsComponentProps,d.selectableRowDisabled),c=d.keyField,f=d.mergeSelections,d=0<o.length&&!s,h=l?i.filter((function(e){return!l(e)})):i,p=(o=0===h.length,Math.min(i.length,h.length));i=r.useCallback((function(){return n({type:"SELECT_ALL_ROWS",rows:h,rowCount:p,mergeSelections:f,keyField:c})}),[n,c,f,p,h]);return a.default.createElement(Zt,{className:"rdt_TableCol",head:t,noPadding:!0},a.default.createElement(dt,{name:"select-all-rows",component:u,componentOptions:e,onClick:i,checked:s,indeterminate:d,disabled:o}))};function Ht(){var e=h(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-sizing: inherit;\n z-index: 1;\n align-items: center;\n justify-content: space-between;\n display: flex;\n ",";\n ",";\n"]);return Ht=function(){return e},e}function Yt(){var e=h(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n flex-wrap: wrap;\n"]);return Yt=function(){return e},e}function Ut(){var e=h(["\n display: flex;\n align-items: center;\n flex: 1 0 auto;\n height: 100%;\n color: ",";\n font-size: ",";\n font-weight: 400;\n"]);return Ut=function(){return e},e}Wt.propTypes={head:Q.bool},Wt.defaultProps={head:!0};var Vt=s.default.div(Ut(),(function(e){return e.theme.contextMenu.fontColor}),(function(e){return e.theme.contextMenu.fontSize})),qt=s.default.div(Yt()),Gt=s.default.div(Ht(),(function(e){return e.theme.contextMenu.style}),(function(e){return e.visible&&e.theme.contextMenu.activeStyle})),Xt=function(){var e=(s=J()).contextMessage,t=s.contextActions,n=s.contextComponent,i=s.selectedCount,o=s.direction,s=0<i;return n?a.default.createElement(Gt,{visible:s},r.cloneElement(n,{selectedCount:i})):a.default.createElement(Gt,{visible:s},a.default.createElement(Vt,null,function(e,t,n){if(0===t)return null;var r=1===t?e.singular:e.plural;return Ne(n)?"".concat(t," ").concat(e.message||""," ").concat(r):"".concat(t," ").concat(r," ").concat(e.message||"")}(e,i,o)),a.default.createElement(qt,null,t))};function $t(){var e=h(["\n flex: 1 0 auto;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n > * {\n margin-left: 5px;\n }\n"]);return $t=function(){return e},e}function Qt(){var e=h(["\n flex: 1 0 auto;\n color: ",";\n font-size: ",";\n font-weight: 400;\n"]);return Qt=function(){return e},e}function Kt(){var e=h(["\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n ","\n"]);return Kt=function(){return e},e}var Jt=s.default.div(Kt(),(function(e){return e.theme.header.style})),en=s.default.div(Qt(),(function(e){return e.theme.header.fontColor}),(function(e){return e.theme.header.fontSize})),tn=s.default.div($t()),nn=function(e){var t=e.title,n=e.actions;e=e.showMenu;return a.default.createElement(Jt,{className:"rdt_TableHeader",role:"heading","aria-level":"1"},a.default.createElement(en,null,t),a.default.createElement(tn,null,n),e&&a.default.createElement(Xt,null))};function rn(){var e=h(["\n position: relative;\n display: flex;\n flex: 1 1 auto;\n box-sizing: border-box;\n align-items: center;\n padding: 4px 16px 4px 24px;\n width: 100%;\n justify-content: ",";\n flex-wrap: ",";\n ","\n"]);return rn=function(){return e},e}nn.propTypes={title:Q.oneOfType([Q.string,Q.node]).isRequired,actions:Q.oneOfType([Q.arrayOf(Q.node),Q.node]),showMenu:Q.bool},nn.defaultProps={actions:[],showMenu:!0};var on={left:"flex-start",right:"flex-end",center:"center"},an=s.default.header(rn(),(function(e){return on[e.align]}),(function(e){return e.wrapContent?"wrap":"nowrap"}),(function(e){return e.theme.subHeader.style})),sn=function(e){var t=e.align,n=e.wrapContent;e=e.children;return a.default.createElement(an,{align:t,wrapContent:n},e)};function un(){var e=h(["\n max-height: ",";\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n "]);return un=function(){return e},e}function ln(){var e=h(["\n display: flex;\n flex-direction: column;\n ",";\n"]);return ln=function(){return e},e}sn.propTypes={children:Q.oneOfType([Q.arrayOf(Q.node),Q.node,Q.string]),align:Q.oneOf(["center","left","right"]),wrapContent:Q.bool},sn.defaultProps={children:null,align:"right",wrapContent:!0};var cn=s.default.div(ln(),(function(e){var t=e.fixedHeader,n=e.hasOffset,r=e.offset;e=e.fixedHeaderScrollHeight;return t&&i.css(un(),n?"calc(".concat(e," - ").concat(r,")"):e)}));function fn(){var e=h(["\n padding-bottom: ",";\n margin-bottom: -",";\n "]);return fn=function(){return e},e}function dn(){var e=h(["\n overflow-x: auto;\n\n // prevents vertical scrolling in firefox\n overflow-y: hidden;\n min-height: 0;\n "]);return dn=function(){return e},e}function hn(){var e=h(["\n position: relative;\n width: 100%;\n border-radius: inherit;\n ",";\n ",";\n"]);return hn=function(){return e},e}cn.defaultProps={fixedHeaderScrollHeight:"100vh",offset:0};var pn=s.default.div(hn(),(function(e){return e.responsive&&i.css(dn())}),(function(e){return e.overflowY&&e.responsive&&e.overflowYOffset&&i.css(fn(),e.overflowYOffset,e.overflowYOffset)}));function mn(){var e=h(["\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n ",";\n"]);return mn=function(){return e},e}var vn=s.default.div(mn(),(function(e){return e.theme.progress.style})),gn=function(e){return e=e.children,a.default.createElement(vn,null,e)};function yn(){var e=h(["\n position: relative;\n width: 100%;\n ",";\n"]);return yn=function(){return e},e}gn.propTypes={children:Q.oneOfType([Q.string,Q.node,Q.func]).isRequired};var bn=s.default.div(yn(),(function(e){return e.theme.tableWrapper.style}));function wn(){var e=h(["\n white-space: nowrap;\n ",";\n"]);return wn=function(){return e},e}var xn=s.default(it)(wn(),(function(e){return e.theme.expanderCell.style}));function _n(){var e=h(["\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n ",";\n"]);return _n=function(){return e},e}var kn=s.default.div(_n(),(function(e){return e.theme.noData.style})),Sn=function(e){return e=e.children,a.default.createElement(kn,null,e)};Sn.propTypes={children:Q.oneOfType([Q.string,Q.node]).isRequired};var Mn=function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},a.default.createElement("path",{d:"M7 10l5 5 5-5z"}),a.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))};function Tn(){var e=h(["\n position: relative;\n flex-shrink: 0;\n font-size: inherit;\n color: inherit;\n margin-top: 1px;\n\n svg {\n top: 0;\n right: 0;\n color: inherit;\n position: absolute;\n fill: currentColor;\n width: 24px;\n height: 24px;\n display: inline-block;\n user-select: none;\n pointer-events: none;\n }\n"]);return Tn=function(){return e},e}function En(){var e=h(["\n cursor: pointer;\n height: 24px;\n min-width: 24px;\n user-select: none;\n padding-left: 8px;\n padding-right: 12px;\n box-sizing: content-box;\n font-size: inherit;\n color: inherit;\n border: none;\n background-color: transparent;\n appearance: none;\n direction: ltr;\n\n &::-ms-expand {\n display: none;\n }\n\n &:disabled::-ms-expand {\n background: #f60;\n }\n\n option {\n color: initial;\n }\n"]);return En=function(){return e},e}var Cn=s.default.select(En()),On=s.default.div(Tn()),Dn=function(e){return a.default.createElement(On,null,a.default.createElement(Cn,e),a.default.createElement(Mn,null))};function Nn(){var e=h(["\n margin: 0 4px;\n"]);return Nn=function(){return e},e}function jn(){var e=h(["\n margin: 0 24px;\n"]);return jn=function(){return e},e}function An(){var e=h(["\n flex-shrink: 1;\n user-select: none;\n"]);return An=function(){return e},e}function Pn(){var e=h(["\n width: 100%;\n justify-content: space-around;\n "]);return Pn=function(){return e},e}function Rn(){var e=h(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n ",";\n"]);return Rn=function(){return e},e}function In(){var e=h(["\n position: relative;\n display: block;\n user-select: none;\n border: none;\n ",";\n ",";\n"]);return In=function(){return e},e}function Fn(){var e=h(["\n display: flex;\n flex: 1 1 auto;\n justify-content: flex-end;\n align-items: center;\n box-sizing: border-box;\n padding-right: 8px;\n padding-left: 8px;\n width: 100%;\n ",";\n"]);return Fn=function(){return e},e}var Ln={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},zn=s.default.nav(Fn(),(function(e){return e.theme.pagination.style})),Bn=s.default.button(In(),(function(e){return e.theme.pagination.pageButtonsStyle}),(function(e){return e.isRTL&&"transform: scale(-1, -1)"})),Zn=s.default.div(Rn(),qe(Pn())),Wn=s.default.span(An()),Hn=s.default(Wn)(jn()),Yn=s.default(Wn)(Nn()),Un=function(e){var t=e.rowsPerPage,n=e.rowCount,i=e.onChangePage,o=e.onChangeRowsPerPage,s=e.currentPage,l=(S=J()).direction,c=S.paginationRowsPerPageOptions,f=S.paginationIconLastPage,h=S.paginationIconFirstPage,m=S.paginationIconNext,v=S.paginationIconPrevious,g=S.paginationComponentOptions,y=function(){var e="object"===("undefined"==typeof window?"undefined":u(window));function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}var n=p(r.useState(t),2),i=n[0],o=n[1];return r.useEffect((function(){return!!e&&(window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)});function n(){o(t())}}),[]),i}().width>599,b=Ne(l),w=Te(n,t),x=(M=s*t)-t+1,_=1===s,k=s===w,S=(e=d(d({},Ln),g),(s===w?"".concat(x,"-").concat(n," "):"".concat(x,"-").concat(M," ")).concat(e.rangeSeparatorText," ").concat(n)),M=(l=r.useCallback((function(){return i(s-1)}),[s,i]),g=r.useCallback((function(){return i(s+1)}),[s,i]),w=r.useCallback((function(){return i(1)}),[i]),x=r.useCallback((function(){return i(Te(n,t))}),[i,n,t]),r.useCallback((function(e){return e=e.target,o(Number(e.value),s)}),[s,o]));c=c.map((function(e){return a.default.createElement("option",{key:e,value:e},e)}));return e.selectAllRowsItem&&c.push(a.default.createElement("option",{key:-1,value:n},e.selectAllRowsItemText)),c=a.default.createElement(Dn,{onChange:M,defaultValue:t,"aria-label":e.rowsPerPageText},c),a.default.createElement(zn,{className:"rdt_Pagination"},!e.noRowsPerPage&&y&&a.default.createElement(a.default.Fragment,null,a.default.createElement(Yn,null,e.rowsPerPageText),c),y&&a.default.createElement(Hn,null,S),a.default.createElement(Zn,null,a.default.createElement(Bn,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":_,onClick:w,disabled:_,isRTL:b},h),a.default.createElement(Bn,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":_,onClick:l,disabled:_,isRTL:b},v),!y&&c,a.default.createElement(Bn,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":k,onClick:g,disabled:k,isRTL:b},m),a.default.createElement(Bn,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":k,onClick:x,disabled:k,isRTL:b},f)))};function Vn(e,t){var n=r.useRef(!0);r.useEffect((function(){n.current?n.current=!1:e()}),t)}Un.propTypes={rowsPerPage:Q.number.isRequired,rowCount:Q.number.isRequired,onChangePage:Q.func.isRequired,onChangeRowsPerPage:Q.func.isRequired,currentPage:Q.number.isRequired};var qn={title:Q.oneOfType([Q.string,Q.node]),selectableRows:Q.bool,selectableRowsHighlight:Q.bool,selectableRowsVisibleOnly:Q.bool,selectableRowsNoSelectAll:Q.bool,selectableRowSelected:Q.func,selectableRowDisabled:Q.func,selectableRowsComponent:Q.oneOfType([Q.string,Q.node,Q.func,Q.object]),selectableRowsComponentProps:Q.object,onRowsSelectedUpdate:Q.func,clearSelectedRows:Q.bool,expandableRows:Q.bool,expandableRowDisabled:Q.func,expandableRowExpanded:Q.func,expandOnRowClicked:Q.bool,expandableRowsHideExpander:Q.bool,expandOnRowDoubleClicked:Q.bool,onRowExpandToggled:Q.func,expandableInheritConditionalStyles:Q.bool,keyField:Q.string,progressPending:Q.bool,progressComponent:Q.oneOfType([Q.string,Q.node,Q.func]),persistTableHead:Q.bool,expandableRowsComponent:Q.oneOfType([Q.arrayOf(Q.node),Q.node,Q.func]),expandableIcon:Q.shape({collapsed:Q.oneOfType([Q.string,Q.node,Q.func]),expanded:Q.oneOfType([Q.string,Q.node,Q.func])}),sortIcon:Q.oneOfType([Q.bool,Q.node]),sortFunction:Q.func,sortServer:Q.bool,onSort:Q.func,striped:Q.bool,highlightOnHover:Q.bool,pointerOnHover:Q.bool,actions:Q.oneOfType([Q.arrayOf(Q.node),Q.node]),noContextMenu:Q.bool,contextMessage:Q.shape({singular:Q.string.isRequired,plural:Q.string.isRequired,message:Q.string}),contextActions:Q.oneOfType([Q.arrayOf(Q.node),Q.node]),contextComponent:Q.oneOfType([Q.node,Q.func]),defaultSortField:Q.string,defaultSortAsc:Q.bool,columns:Q.array,data:Q.array,className:Q.string,style:Q.object,responsive:Q.bool,overflowY:Q.bool,overflowYOffset:Q.string,noDataComponent:Q.oneOfType([Q.string,Q.node,Q.func]),disabled:Q.bool,noTableHead:Q.bool,noHeader:Q.bool,subHeader:Q.bool,subHeaderAlign:Q.string,subHeaderWrap:Q.bool,subHeaderComponent:Q.oneOfType([Q.arrayOf(Q.node),Q.node,Q.string]),onRowClicked:Q.func,onRowDoubleClicked:Q.func,fixedHeader:Q.bool,fixedHeaderScrollHeight:Q.string,pagination:Q.bool,paginationServer:Q.bool,paginationServerOptions:Q.shape({persistSelectedOnSort:Q.bool,persistSelectedOnPageChange:Q.bool}),paginationDefaultPage:Q.number,paginationResetDefaultPage:Q.bool,paginationTotalRows:Q.number,paginationPerPage:Q.number,paginationRowsPerPageOptions:Q.array,onChangePage:Q.func,onChangeRowsPerPage:Q.func,paginationComponent:Q.oneOfType([Q.arrayOf(Q.node),Q.node,Q.func]),paginationComponentOptions:Q.object,paginationIconFirstPage:Q.oneOfType([Q.string,Q.node,Q.func]),paginationIconLastPage:Q.oneOfType([Q.string,Q.node,Q.func]),paginationIconNext:Q.oneOfType([Q.string,Q.node,Q.func]),paginationIconPrevious:Q.oneOfType([Q.string,Q.node,Q.func]),dense:Q.bool,conditionalRowStyles:Q.arrayOf(Q.shape({when:Q.func.isRequired,style:Q.object.isRequired})),theme:Q.string,customStyles:Q.object,direction:Q.oneOf(["ltr","rtl","auto"])},Gn={title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},onSelectedRowsChange:function(){return null},clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,onRowExpandToggled:function(){return null},progressPending:!1,progressComponent:a.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,expandableRowsComponent:a.default.createElement("div",{style:{padding:"24px"}},"Add a custom expander component. Use props.data for row data"),expandableIcon:{collapsed:a.default.createElement((function(){return a.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),a.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))}),null),expanded:a.default.createElement((function(){return a.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),a.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))}),null)},sortIcon:!1,sortFunction:null,sortServer:!1,onSort:function(){return null},striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},contextActions:[],contextComponent:null,defaultSortField:null,defaultSortAsc:!0,columns:[],data:[],className:null,style:{},responsive:!0,overflowY:!1,overflowYOffset:"250px",noDataComponent:a.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:"right",subHeaderWrap:!0,subHeaderComponent:[],onRowClicked:function(){return null},onRowDoubleClicked:function(){return null},fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],onChangePage:function(){return null},onChangeRowsPerPage:function(){return null},paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),a.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))}),null),paginationIconLastPage:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),a.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),paginationIconNext:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),a.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),paginationIconPrevious:a.default.createElement((function(){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},a.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),a.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:"auto"},Xn=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===$n}(e)}(e)};var $n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Qn(e,t){return!1!==t.clone&&t.isMergeableObject(e)?nr(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function Kn(e,t,n){return e.concat(t).map((function(e){return Qn(e,n)}))}function Jn(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function er(e,t){try{return t in e}catch(e){return!1}}function tr(e,t,n){var r={};return n.isMergeableObject(e)&&Jn(e).forEach((function(t){r[t]=Qn(e[t],n)})),Jn(t).forEach((function(i){(function(e,t){return er(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(er(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){return t.customMerge&&"function"==typeof(e=t.customMerge(e))?e:nr}(i,n)(e[i],t[i],n):r[i]=Qn(t[i],n))})),r}function nr(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Kn,n.isMergeableObject=n.isMergeableObject||Xn,n.cloneUnlessOtherwiseSpecified=Qn;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):tr(e,t,n):Qn(t,n)}nr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return nr(e,n,t)}),{})};var rr=nr,ir={default:{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},sortFocus:{default:"rgba(0, 0, 0, .54)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},sortFocus:{default:"rgba(255, 255, 255, .54)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}},or=function(e){return{table:{style:{color:e.text.primary,backgroundColor:e.background.default}},tableWrapper:{style:{display:"table"}},header:{style:{fontSize:"22px",color:e.text.primary,backgroundColor:e.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:e.background.default,minHeight:"52px"}},head:{style:{}},headRow:{style:{backgroundColor:e.background.default,minHeight:"56px",borderBottomWidth:"1px",borderBottomColor:e.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{fontSize:"12px",fontWeight:500,color:e.text.primary,paddingLeft:"16px",paddingRight:"16px"},activeSortStyle:{color:e.text.primary,"&:focus":{outline:"none"},"&:hover:not(:focus)":{color:e.sortFocus.default}},inactiveSortStyle:{"&:focus":{outline:"none",color:e.sortFocus.default},"&:hover":{color:e.sortFocus.default}}},contextMenu:{style:{backgroundColor:e.context.background,fontSize:"18px",fontWeight:400,color:e.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"}},rows:{style:{fontSize:"13px",color:e.text.primary,backgroundColor:e.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:e.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:e.selected.text,backgroundColor:e.selected.default,borderBottomColor:e.background.default}},highlightOnHoverStyle:{color:e.highlightOnHover.text,backgroundColor:e.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:e.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:e.background.default},stripedStyle:{color:e.striped.text,backgroundColor:e.striped.default}},expanderRow:{style:{color:e.text.primary,backgroundColor:e.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:e.button.default,fill:e.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:e.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:e.button.hover},"&:focus":{outline:"none",backgroundColor:e.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:e.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:e.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:e.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:e.button.default,fill:e.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:e.button.disabled,fill:e.button.disabled},"&:hover:not(:disabled)":{backgroundColor:e.button.hover},"&:focus":{outline:"none",backgroundColor:e.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:e.text.primary,backgroundColor:e.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:e.text.primary,backgroundColor:e.background.default}}}},ar=r.memo((function(e){function t(e){return et({type:"CHANGE_PAGE",page:e,paginationServer:j,visibleOnly:_,persistSelectedOnPageChange:tt})}var n=e.data,o=e.columns,s=e.title,u=e.actions,f=e.keyField,h=e.striped,v=e.highlightOnHover,g=e.pointerOnHover,y=e.dense,b=e.selectableRows,w=e.selectableRowsHighlight,x=e.selectableRowsNoSelectAll,_=e.selectableRowsVisibleOnly,k=e.selectableRowSelected,S=e.selectableRowDisabled,M=e.selectableRowsComponent,T=e.selectableRowsComponentProps,E=e.onRowExpandToggled,C=e.onSelectedRowsChange,O=e.expandableIcon,D=e.onChangeRowsPerPage,N=e.onChangePage,j=e.paginationServer,A=e.paginationServerOptions,P=e.paginationTotalRows,R=e.paginationDefaultPage,I=e.paginationResetDefaultPage,F=e.paginationPerPage,L=e.paginationRowsPerPageOptions,z=e.paginationIconLastPage,B=e.paginationIconFirstPage,Z=e.paginationIconNext,W=e.paginationIconPrevious,H=e.paginationComponent,Y=e.paginationComponentOptions,U=e.className,V=e.style,q=e.responsive,G=e.overflowY,X=e.overflowYOffset,$=e.progressPending,Q=e.progressComponent,K=e.persistTableHead,J=e.noDataComponent,te=e.disabled,ne=e.noTableHead,re=e.noHeader,ie=e.fixedHeader,oe=e.fixedHeaderScrollHeight,ae=e.pagination,se=e.subHeader,ue=e.subHeaderAlign,le=e.subHeaderWrap,ce=e.subHeaderComponent,fe=e.noContextMenu,de=e.contextMessage,he=e.contextActions,pe=e.contextComponent,me=e.expandableRows,ve=e.onRowClicked,ge=e.onRowDoubleClicked,ye=e.sortIcon,be=e.onSort,we=e.sortFunction,ke=e.sortServer,Se=e.expandableRowsComponent,Ce=e.expandableRowDisabled,Oe=e.expandableRowsHideExpander,Ne=e.expandOnRowClicked,Ae=e.expandOnRowDoubleClicked,Pe=e.expandableRowExpanded,Re=e.expandableInheritConditionalStyles,Fe=e.defaultSortField,ze=e.defaultSortAsc,Be=e.clearSelectedRows,Ze=e.conditionalRowStyles,He=e.theme,Ye=e.customStyles,Ue=e.direction,Ve=(e={allSelected:!1,selectedCount:0,selectedRows:[],sortColumn:Fe,selectedColumn:{},sortDirection:Me(ze),currentPage:R,rowsPerPage:F},(ze=(Fe=p(r.useReducer(je,e),2))[0]).rowsPerPage),qe=ze.currentPage,Ge=ze.selectedRows,Xe=ze.allSelected,$e=ze.selectedCount,Qe=ze.sortColumn,Ke=ze.selectedColumn,Je=ze.sortDirection,et=Fe[1],tt=(F=A.persistSelectedOnSort,A.persistSelectedOnPageChange),nt=j&&(tt||F),rt=(e=ae&&!$&&0<n.length,ze=H||Un,r.useMemo((function(){return function(e){return e.map((function(e){return d(d({id:xe.generate()},e),{},{sortable:e.sortable||!!e.sortFunction||void 0})}))}(o)}),[o])),ot=(Fe=r.useMemo((function(){return function(e,t){return e=0<arguments.length&&void 0!==e?e:{},t=ir[t=1<arguments.length&&void 0!==t?t:"default"]?t:"default",rr(or(ir[t]),e)}(Ye,He)}),[Ye,He]),r.useMemo((function(){return Se}),[Se])),at=(H=r.useMemo((function(){return d({},"auto"!==Ue&&{dir:Ue})}),[Ue]),r.useCallback((function(e,t){return ve(e,t)}),[ve])),st=r.useCallback((function(e,t){return ge(e,t)}),[ge]);Vn((function(){C({allSelected:Xe,selectedCount:$e,selectedRows:Ge})}),[$e]),Vn((function(){N(qe,P||n.length)}),[qe]),Vn((function(){D(Ve,qe)}),[Ve]),Vn((function(){be(Ke,Je)}),[Qe,Je]),r.useEffect((function(){et({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Be})}),[Be]),Vn((function(){t(R)}),[R,I]),r.useEffect((function(){var e;k&&(e=n.filter((function(e){return k(e)})),et({type:"SELECT_MULTIPLE_ROWS",selectedRows:e,rows:n,mergeSelections:nt}))}),[n]),Vn((function(){var e;ae&&j&&0<P&&(e=Te(P,Ve),e=Ee(qe,e),qe!==e&&t(e))}),[P]);var ut=r.useMemo((function(){return o.reduce((function(e,t){return d(d({},e),{},l({},t.selector,t))}),{})}),[o]),lt=r.useMemo((function(){if(ke)return n;var e=Qe&&ut[Qe];if(!e||!e.sortFunction)return function(e,t,n,r){return((r=3<arguments.length?r:void 0)&&"function"==typeof r?r:_e)(e,t=1<arguments.length&&void 0!==t?t:"",n=2<arguments.length?n:void 0)}(n,Qe,Je,we);var t="asc"===Je?e.sortFunction:function(t,n){return-1*e.sortFunction(t,n)};return m(n).sort(t)}),[ke,Qe,ut,Je,n,we]),ct=r.useMemo((function(){if(!ae||j)return lt;var e=qe*Ve,t=e-Ve;return lt.slice(t,e)}),[qe,ae,j,Ve,lt]);return ae&&!j&&0<n.length&&0===ct.length&&(I=Te(n.length,Ve),t(I=Ee(qe,I))),Y={dispatch:et,data:_?ct:n,allSelected:Xe,selectedRows:Ge,selectedCount:$e,sortColumn:Qe,sortDirection:Je,keyField:f,contextMessage:de,contextActions:he,contextComponent:pe,sortServer:ke,selectableRowsVisibleOnly:_,selectableRowSelected:k,selectableRowDisabled:S,selectableRowsComponent:M,selectableRowsComponentProps:T,persistSelectedOnSort:F,expandableIcon:O,pagination:ae,paginationServer:j,paginationServerOptions:A,paginationTotalRows:P,paginationRowsPerPageOptions:L,paginationIconLastPage:z,paginationIconFirstPage:B,paginationIconNext:Z,paginationIconPrevious:W,paginationComponentOptions:Y,direction:Ue,mergeSelections:nt},x=tt||x,a.default.createElement(i.ThemeProvider,{theme:Fe},a.default.createElement(ee,{initialState:Y},!re&&a.default.createElement(nn,{title:s,actions:u,showMenu:!fe}),se&&a.default.createElement(sn,{align:ue,wrapContent:le},ce),a.default.createElement(pn,c({responsive:q,className:U,style:V,overflowYOffset:X,overflowY:G},H),a.default.createElement(bn,null,$&&!K&&a.default.createElement(gn,null,Q),a.default.createElement(Ie,{disabled:te,className:"rdt_Table",role:"table"},!ne&&(!!K||0<n.length&&!$)&&a.default.createElement(Le,{className:"rdt_TableHead",role:"rowgroup"},a.default.createElement(We,{className:"rdt_TableHeadRow",role:"row",dense:y,disabled:$||0===n.length},b&&(x?a.default.createElement(it,{style:{flex:"0 0 48px"}}):a.default.createElement(Wt,null)),me&&!Oe&&a.default.createElement(xn,null),rt.map((function(e){return a.default.createElement(zt,{key:e.id,column:e,sortIcon:ye})})))),0<!n.length&&!$&&a.default.createElement(Sn,null,J),$&&K&&a.default.createElement(gn,null,Q),!$&&0<n.length&&a.default.createElement(cn,{fixedHeader:ie,fixedHeaderScrollHeight:oe,hasOffset:G,offset:X,className:"rdt_TableBody",role:"rowgroup"},ct.map((function(e,t){var n=function(e){return null==(e=0<arguments.length&&void 0!==e?e:"")||0===e.length}(e[f])?t:e[f],r=De(e,Ge,f),i=me&&Pe&&Pe(e),o=me&&Ce&&Ce(e);return a.default.createElement(Nt,{id:n,key:n,keyField:f,row:e,columns:rt,selectableRows:b,expandableRows:me,striped:h,highlightOnHover:v,pointerOnHover:g,dense:y,expandOnRowClicked:Ne,expandOnRowDoubleClicked:Ae,expandableRowsComponent:ot,expandableRowsHideExpander:Oe,onRowExpandToggled:E,defaultExpanderDisabled:o,defaultExpanded:i,inheritConditionalStyles:Re,onRowClicked:at,onRowDoubleClicked:st,conditionalRowStyles:Ze,selected:r,selectableRowsHighlight:w,rowIndex:t})})))))),e&&a.default.createElement("div",null,a.default.createElement(ze,{onChangePage:t,onChangeRowsPerPage:function(e){var n=P||ct.length;n=Te(n,e),n=Ee(qe,n);j||t(n),et({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})},rowCount:P||n.length,currentPage:qe,rowsPerPage:Ve}))))}));ar.propTypes=qn,ar.defaultProps=Gn,t.ZP=ar},34463:function(e,t,n){"use strict";var r=n(72791),i=n(31725),o=n(45296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var u=!1,l=null,c=!1,f=null,d={onError:function(e){u=!0,l=e}};function h(e,t,n,r,i,o,a,c,f){u=!1,l=null,s.apply(d,arguments)}var p=null,m=null,v=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=v(n),function(e,t,n,r,i,o,s,d,p){if(h.apply(this,arguments),u){if(!u)throw Error(a(198));var m=l;u=!1,l=null,c||(c=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!_[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in _[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,u=r;if(k.hasOwnProperty(u))throw Error(a(99,u));k[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&x(l[i],s,u);i=!0}else o.registrationName?(x(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function x(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,M[e]=t.eventTypes[n].dependencies}var _=[],k={},S={},M={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var E=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,O=null,D=null;function N(e){if(e=m(e)){if("function"!==typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),C(e.stateNode,e.type,t))}}function j(e){O?D?D.push(e):D=[e]:O=e}function A(){if(O){var e=O,t=D;if(D=O=null,N(e),t)for(e=0;e<t.length;e++)N(t[e])}}function P(e,t){return e(t)}function R(e,t,n,r,i){return e(t,n,r,i)}function I(){}var F=P,L=!1,z=!1;function B(){null===O&&null===D||(I(),A())}function Z(e,t,n){if(z)return e(t,n);z=!0;try{return F(e,t,n)}finally{z=!1,B()}}var W=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,Y={},U={};function V(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var G=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(G,X);q[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(G,X);q[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(G,X);q[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,n,r){var i=q.hasOwnProperty(t)?q[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!H.call(U,e)||!H.call(Y,e)&&(W.test(e)?U[e]=!0:(Y[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}$.hasOwnProperty("ReactCurrentDispatcher")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty("ReactCurrentBatchConfig")||($.ReactCurrentBatchConfig={suspense:null});var K=/^(.*)[\\\/]/,J="function"===typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,ie=J?Symbol.for("react.profiler"):60114,oe=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,ue=J?Symbol.for("react.forward_ref"):60112,le=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,he=J?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ve(e.type);case he:return ve(e.render);case de:if(e=1===e._status?e._result:null)return ve(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ve(e.type);n=null,r&&(n=ve(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(K,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Q(e,"checked",t,!1)}function Me(e,t){Se(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ee(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ee(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function De(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function je(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Pe="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,ze,Be=(ze=function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ze(e,t)}))}:ze);function Ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function We(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:We("Animation","AnimationEnd"),animationiteration:We("Animation","AnimationIteration"),animationstart:We("Animation","AnimationStart"),transitionend:We("Transition","TransitionEnd")},Ye={},Ue={};function Ve(e){if(Ye[e])return Ye[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ue)return Ye[e]=n[t];return e}E&&(Ue=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var qe=Ve("animationend"),Ge=Ve("animationiteration"),Xe=Ve("animationstart"),$e=Ve("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ke=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=Ke.get(e);return void 0===t&&(t=new Map,Ke.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return nt(i),e;if(o===r)return nt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(at=it(at,e)),e=at,at=null,e){if(ot(e,st),at)throw Error(a(95));if(c)throw e=f,c=!1,f=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!E)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function ht(e,t,n,r){if(ft.length){var i=ft.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Nn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<_.length;u++){var l=_[u];l&&(l=l.extractEvents(r,t,o,i,a))&&(s=it(s,l))}ut(s)}}function mt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Xt(t,"scroll",!0);break;case"focus":case"blur":Xt(t,"focus",!0),Xt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Xt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var vt,gt,yt,bt=!1,wt=[],xt=null,_t=null,kt=null,St=new Map,Mt=new Map,Tt=[],Et="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ot(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Dt(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Nt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ot(t,n,r,i,o),null!==t&&(null!==(t=jn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function jt(e){var t=Nn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=jn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function Pt(e,t,n){At(e)&&n.delete(t)}function Rt(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=jn(e.blockedOn))&&vt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==xt&&At(xt)&&(xt=null),null!==_t&&At(_t)&&(_t=null),null!==kt&&At(kt)&&(kt=null),St.forEach(Pt),Mt.forEach(Pt)}function It(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Rt)))}function Ft(e){function t(t){return It(t,e)}if(0<wt.length){It(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&It(xt,e),null!==_t&&It(_t,e),null!==kt&&It(kt,e),St.forEach(t),Mt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)jt(n),null===n.blockedOn&&Tt.shift()}var Lt={},zt=new Map,Bt=new Map,Zt=["abort","abort",qe,"animationEnd",Ge,"animationIteration",Xe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function Wt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),zt.set(r,o),Lt[i]=o}}Wt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wt(Zt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Yt=0;Yt<Ht.length;Yt++)Bt.set(Ht[Yt],0);var Ut=o.unstable_UserBlockingPriority,Vt=o.unstable_runWithPriority,qt=!0;function Gt(e,t){Xt(t,e,!1)}function Xt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=$t.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Kt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function $t(e,t,n,r){L||I();var i=Kt,o=L;L=!0;try{R(i,e,t,n,r)}finally{(L=o)||B()}}function Qt(e,t,n,r){Vt(Ut,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){if(qt)if(0<wt.length&&-1<Et.indexOf(e))e=Ot(null,e,t,n,r),wt.push(e);else{var i=Jt(e,t,n,r);if(null===i)Dt(e,r);else if(-1<Et.indexOf(e))e=Ot(i,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return xt=Nt(xt,e,t,n,r,i),!0;case"dragenter":return _t=Nt(_t,e,t,n,r,i),!0;case"mouseover":return kt=Nt(kt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return St.set(o,Nt(St.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Mt.set(o,Nt(Mt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Dt(e,r),e=ht(e,r,null,t);try{Z(pt,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=Nn(n=lt(r)))){var i=et(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=tt(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ht(e,r,n,t);try{Z(pt,e)}finally{dt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Pe;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=M[t];for(var r=0;r<t.length;r++)mt(t[r],e,n)}function cn(){}function fn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn="$?",yn="$!",bn=null,wn=null;function xn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _n(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kn="function"===typeof setTimeout?setTimeout:void 0,Sn="function"===typeof clearTimeout?clearTimeout:void 0;function Mn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Tn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===yn||n===gn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+En,On="__reactEventHandlers$"+En,Dn="__reactContainere$"+En;function Nn(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tn(e);null!==e;){if(n=e[Cn])return n;e=Tn(e)}return t}n=(e=n).parentNode}return null}function jn(e){return!(e=e[Cn]||e[Dn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Pn(e){return e[On]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function In(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function Fn(e,t,n){(t=In(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Ln(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)Fn(n[t],"captured",e);for(t=0;t<n.length;t++)Fn(n[t],"bubbled",e)}}function zn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=In(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&zn(e._targetInst,null,e)}function Zn(e){ot(e,Ln)}var Wn=null,Hn=null,Yn=null;function Un(){if(Yn)return Yn;var e,t,n=Hn,r=n.length,i="value"in Wn?Wn.value:Wn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Yn=i.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function qn(){return!1}function Gn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:qn,this.isPropagationStopped=qn,this}function Xn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function $n(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Qn(e){e.eventPool=[],e.getPooled=Xn,e.release=$n}i(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Qn(n),n},Qn(Gn);var Kn=Gn.extend({data:null}),Jn=Gn.extend({data:null}),er=[9,13,27,32],tr=E&&"CompositionEvent"in window,nr=null;E&&"documentMode"in document&&(nr=document.documentMode);var rr=E&&"TextEvent"in window&&!nr,ir=E&&(!tr||nr&&8<nr&&11>=nr),or=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sr=!1;function ur(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function lr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1;var fr={eventTypes:ar,extractEvents:function(e,t,n,r){var i;if(tr)e:{switch(e){case"compositionstart":var o=ar.compositionStart;break e;case"compositionend":o=ar.compositionEnd;break e;case"compositionupdate":o=ar.compositionUpdate;break e}o=void 0}else cr?ur(e,n)&&(o=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ar.compositionStart);return o?(ir&&"ko"!==n.locale&&(cr||o!==ar.compositionStart?o===ar.compositionEnd&&cr&&(i=Un()):(Hn="value"in(Wn=r)?Wn.value:Wn.textContent,cr=!0)),o=Kn.getPooled(o,t,n,r),i?o.data=i:null!==(i=lr(n))&&(o.data=i),Zn(o),i=o):i=null,(e=rr?function(e,t){switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(sr=!0,or);case"textInput":return(e=t.data)===or&&sr?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!tr&&ur(e,t)?(e=Un(),Yn=Hn=Wn=null,cr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ir&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,Zn(t)):t=null,null===i?t:null===t?i:[i,t]}},dr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!dr[e.type]:"textarea"===t}var pr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mr(e,t,n){return(e=Gn.getPooled(pr.change,e,t,n)).type="change",j(n),Zn(e),e}var vr=null,gr=null;function yr(e){ut(e)}function br(e){if(xe(An(e)))return e}function wr(e,t){if("change"===e)return t}var xr=!1;function _r(){vr&&(vr.detachEvent("onpropertychange",kr),gr=vr=null)}function kr(e){if("value"===e.propertyName&&br(gr))if(e=mr(gr,e,lt(e)),L)ut(e);else{L=!0;try{P(yr,e)}finally{L=!1,B()}}}function Sr(e,t,n){"focus"===e?(_r(),gr=n,(vr=t).attachEvent("onpropertychange",kr)):"blur"===e&&_r()}function Mr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return br(gr)}function Tr(e,t){if("click"===e)return br(t)}function Er(e,t){if("input"===e||"change"===e)return br(t)}E&&(xr=ct("input")&&(!document.documentMode||9<document.documentMode));var Cr={eventTypes:pr,_isInputEventSupported:xr,extractEvents:function(e,t,n,r){var i=t?An(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=wr;else if(hr(i))if(xr)a=Er;else{a=Mr;var s=Sr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Tr);if(a&&(a=a(e,t)))return mr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ee(i,"number",i.value)}},Or=Gn.extend({view:null,detail:null}),Dr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dr[e])&&!!t[e]}function jr(){return Nr}var Ar=0,Pr=0,Rr=!1,Ir=!1,Fr=Or.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:jr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Pr;return Pr=e.screenY,Ir?"mousemove"===e.type?e.screenY-t:0:(Ir=!0,0)}}),Lr=Fr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:zr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Nn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Fr,u=zr.mouseLeave,l=zr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Lr,u=zr.pointerLeave,l=zr.pointerEnter,c="pointer");if(e=null==a?o:An(a),o=null==t?o:An(t),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=e,u.relatedTarget=o,(n=s.getPooled(l,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(l=c,a=0,e=s=r;e;e=Rn(e))a++;for(e=0,t=l;t;t=Rn(t))e++;for(;0<a-e;)s=Rn(s),a--;for(;0<e-a;)l=Rn(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Rn(s),l=Rn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Rn(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=Rn(c);for(c=0;c<s.length;c++)zn(s[c],"bubbled",u);for(c=r.length;0<c--;)zn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var Zr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Wr=Object.prototype.hasOwnProperty;function Hr(e,t){if(Zr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Wr.call(t,n[r])||!Zr(e[n[r]],t[n[r]]))return!1;return!0}var Yr=E&&"documentMode"in document&&11>=document.documentMode,Ur={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,qr=null,Gr=null,Xr=!1;function $r(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==Vr||Vr!==fn(n)?null:("selectionStart"in(n=Vr)&&vn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Hr(Gr,n)?null:(Gr=n,(e=Gn.getPooled(Ur.select,qr,e,t)).type="select",e.target=Vr,Zn(e),e))}var Qr={eventTypes:Ur,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),o=M.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?An(t):window,e){case"focus":(hr(i)||"true"===i.contentEditable)&&(Vr=i,qr=t,Gr=null);break;case"blur":Gr=qr=Vr=null;break;case"mousedown":Xr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xr=!1,$r(n,r);case"selectionchange":if(Yr)break;case"keydown":case"keyup":return $r(n,r)}return null}},Kr=Gn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Gn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ei=Or.extend({relatedTarget:null});function ti(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ri={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ii=Or.extend({key:function(e){if(e.key){var t=ni[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ti(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ri[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:jr,charCode:function(e){return"keypress"===e.type?ti(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ti(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),oi=Fr.extend({dataTransfer:null}),ai=Or.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:jr}),si=Gn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=Fr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),li={eventTypes:Lt,extractEvents:function(e,t,n,r){var i=zt.get(e);if(!i)return null;switch(e){case"keypress":if(0===ti(n))return null;case"keydown":case"keyup":e=ii;break;case"blur":case"focus":e=ei;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=oi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ai;break;case qe:case Ge:case Xe:e=Kr;break;case $e:e=si;break;case"scroll":e=Or;break;case"wheel":e=ui;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Lr;break;default:e=Gn}return Zn(t=e.getPooled(i,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=Pn,m=jn,v=An,T({SimpleEventPlugin:li,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Cr,SelectEventPlugin:Qr,BeforeInputEventPlugin:fr});var ci=[],fi=-1;function di(e){0>fi||(e.current=ci[fi],ci[fi]=null,fi--)}function hi(e,t){fi++,ci[fi]=e.current,e.current=t}var pi={},mi={current:pi},vi={current:!1},gi=pi;function yi(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function wi(){di(vi),di(mi)}function xi(e,t,n){if(mi.current!==pi)throw Error(a(168));hi(mi,t),hi(vi,n)}function _i(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ve(t)||"Unknown",o));return i({},n,{},r)}function ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,gi=mi.current,hi(mi,e),hi(vi,vi.current),!0}function Si(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=_i(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,di(vi),di(mi),hi(mi,e)):di(vi),hi(vi,n)}var Mi=o.unstable_runWithPriority,Ti=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Ci=o.unstable_requestPaint,Oi=o.unstable_now,Di=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,ji=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Ii={},Fi=o.unstable_shouldYield,Li=void 0!==Ci?Ci:function(){},zi=null,Bi=null,Zi=!1,Wi=Oi(),Hi=1e4>Wi?Oi:function(){return Oi()-Wi};function Yi(){switch(Di()){case Ni:return 99;case ji:return 98;case Ai:return 97;case Pi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Ni;case 98:return ji;case 97:return Ai;case 96:return Pi;case 95:return Ri;default:throw Error(a(332))}}function Vi(e,t){return e=Ui(e),Mi(e,t)}function qi(e,t,n){return e=Ui(e),Ti(e,t,n)}function Gi(e){return null===zi?(zi=[e],Bi=Ti(Ni,$i)):zi.push(e),Ii}function Xi(){if(null!==Bi){var e=Bi;Bi=null,Ei(e)}$i()}function $i(){if(!Zi&&null!==zi){Zi=!0;var e=0;try{var t=zi;Vi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),zi=null}catch(n){throw null!==zi&&(zi=zi.slice(e+1)),Ti(Ni,Xi),n}finally{Zi=!1}}}function Qi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ki(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ji={current:null},eo=null,to=null,no=null;function ro(){no=to=eo=null}function io(e){var t=Ji.current;di(Ji),e.type._context._currentValue=t}function oo(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ao(e,t){eo=e,no=to=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Pa=!0),e.firstContext=null)}function so(e,t){if(no!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(no=e,t=1073741823),t={context:e,observedBits:t,next:null},null===to){if(null===eo)throw Error(a(308));to=t,eo.dependencies={expirationTime:0,firstContext:t,responders:null}}else to=to.next=t;return e._currentValue}var uo=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function fo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ho(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.alternate;null!==n&&co(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function mo(e,t,n,r){var o=e.updateQueue;uo=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=o.baseState,c=0,f=null,d=null,h=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var m={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===h?(d=h=m,f=l):h=h.next=m,s>c&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),hu(s,p.suspenseConfig);e:{var v=e,g=p;switch(s=t,m=n,g.tag){case 1:if("function"===typeof(v=g.payload)){l=v.call(m,l,s);break e}l=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(s="function"===typeof(v=g.payload)?v.call(m,l,s):v)||void 0===s)break e;l=i({},l,s);break e;case 2:uo=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=o.shared.pending))break;p=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===h?f=l:h.next=d,o.baseState=f,o.baseQueue=h,pu(c),e.expirationTime=c,e.memoizedState=l}}function vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var go=$.ReactCurrentBatchConfig,yo=(new r.Component).refs;function bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var wo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),i=go.suspense;(i=fo(r=tu(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),ho(e,i),nu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),i=go.suspense;(i=fo(r=tu(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),ho(e,i),nu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=eu(),r=go.suspense;(r=fo(n=tu(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),ho(e,r),nu(e,n)}};function xo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Hr(n,r)||!Hr(i,o))}function _o(e,t,n){var r=!1,i=pi,o=t.contextType;return"object"===typeof o&&null!==o?o=so(o):(i=bi(t)?gi:mi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?yi(e,i):pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ko(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wo.enqueueReplaceState(t,t.state,null)}function So(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=yo,lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=so(o):(o=bi(t)?gi:mi.current,i.context=yi(e,o)),mo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(bo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&wo.enqueueReplaceState(i,i.state,null),mo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var Mo=Array.isArray;function To(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===yo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Eo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Co(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=To(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=To(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=To(e,null,t),n.return=e,n;case te:return(t=Lu(t,e.mode,n)).return=e,t}if(Mo(t)||me(t))return(t=Iu(t,e.mode,n,null)).return=e,t;Eo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(Mo(n)||me(n))return null!==i?null:f(e,t,n,r,null);Eo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Mo(r)||me(r))return f(t,e=e.get(n)||null,r,i,null);Eo(t,r)}return null}function m(i,a,s,u){for(var l=null,c=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=h(i,f,s[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===c?l=g:c.sibling=g,c=g,f=v}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(a=o(f,a,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(v=p(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,s,u,l){var c=me(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=s,v=s=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(i,m,y.value,l);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=d(i,y.value,l))&&(s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=u.next())null!==(y=p(m,i,v,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var l="object"===typeof o&&null!==o&&o.type===ne&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===ne){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=To(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===ne?((r=Iu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Ru(o.type,o.key,o.props,null,e.mode,u)).ref=To(e,r,o),u.return=e,e=u)}return s(e);case te:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Lu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Fu(o,e.mode,u)).return=e,e=r),s(e);if(Mo(o))return m(e,r,o,u);if(me(o))return v(e,r,o,u);if(c&&Eo(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Oo=Co(!0),Do=Co(!1),No={},jo={current:No},Ao={current:No},Po={current:No};function Ro(e){if(e===No)throw Error(a(174));return e}function Io(e,t){switch(hi(Po,t),hi(Ao,e),hi(jo,No),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}di(jo),hi(jo,t)}function Fo(){di(jo),di(Ao),di(Po)}function Lo(e){Ro(Po.current);var t=Ro(jo.current),n=Fe(t,e.type);t!==n&&(hi(Ao,e),hi(jo,n))}function zo(e){Ao.current===e&&(di(jo),di(Ao))}var Bo={current:0};function Zo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Wo(e,t){return{responder:e,props:t}}var Ho=$.ReactCurrentDispatcher,Yo=$.ReactCurrentBatchConfig,Uo=0,Vo=null,qo=null,Go=null,Xo=!1;function $o(){throw Error(a(321))}function Qo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zr(e[n],t[n]))return!1;return!0}function Ko(e,t,n,r,i,o){if(Uo=o,Vo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ho.current=null===e||null===e.memoizedState?xa:_a,e=n(r,i),t.expirationTime===Uo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Go=qo=null,t.updateQueue=null,Ho.current=ka,e=n(r,i)}while(t.expirationTime===Uo)}if(Ho.current=wa,t=null!==qo&&null!==qo.next,Uo=0,Go=qo=Vo=null,Xo=!1,t)throw Error(a(300));return e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Go?Vo.memoizedState=Go=e:Go=Go.next=e,Go}function ea(){if(null===qo){var e=Vo.alternate;e=null!==e?e.memoizedState:null}else e=qo.next;var t=null===Go?Vo.memoizedState:Go.next;if(null!==t)Go=t,qo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qo=e).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Go?Vo.memoizedState=Go=e:Go=Go.next=e}return Go}function ta(e,t){return"function"===typeof t?t(e):t}function na(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.expirationTime;if(c<Uo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,c>Vo.expirationTime&&(Vo.expirationTime=c,pu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),hu(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,Zr(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ra(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Zr(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ia(e){var t=Jo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=ba.bind(null,Vo,e),[t.memoizedState,e]}function oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Vo.updateQueue)?(t={lastEffect:null},Vo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aa(){return ea().memoizedState}function sa(e,t,n,r){var i=Jo();Vo.effectTag|=e,i.memoizedState=oa(1|t,n,void 0,void 0===r?null:r)}function ua(e,t,n,r){var i=ea();r=void 0===r?null:r;var o=void 0;if(null!==qo){var a=qo.memoizedState;if(o=a.destroy,null!==r&&Qo(r,a.deps))return void oa(t,n,o,r)}Vo.effectTag|=e,i.memoizedState=oa(1|t,n,o,r)}function la(e,t){return sa(516,4,e,t)}function ca(e,t){return ua(516,4,e,t)}function fa(e,t){return ua(4,2,e,t)}function da(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ha(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ua(4,2,da.bind(null,t,e),n)}function pa(){}function ma(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e}function va(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Qo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ya(e,t,n){var r=Yi();Vi(98>r?98:r,(function(){e(!0)})),Vi(97<r?97:r,(function(){var r=Yo.suspense;Yo.suspense=void 0===t?null:t;try{e(!1),n()}finally{Yo.suspense=r}}))}function ba(e,t,n){var r=eu(),i=go.suspense;i={expirationTime:r=tu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Vo||null!==o&&o===Vo)Xo=!0,i.expirationTime=Uo,Vo.expirationTime=Uo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Zr(s,a))return}catch(u){}nu(e,r)}}var wa={readContext:so,useCallback:$o,useContext:$o,useEffect:$o,useImperativeHandle:$o,useLayoutEffect:$o,useMemo:$o,useReducer:$o,useRef:$o,useState:$o,useDebugValue:$o,useResponder:$o,useDeferredValue:$o,useTransition:$o},xa={readContext:so,useCallback:ma,useContext:so,useEffect:la,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,sa(4,2,da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sa(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ba.bind(null,Vo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:ia,useDebugValue:pa,useResponder:Wo,useDeferredValue:function(e,t){var n=ia(e),r=n[0],i=n[1];return la((function(){var n=Yo.suspense;Yo.suspense=void 0===t?null:t;try{i(e)}finally{Yo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ia(!1),n=t[0];return t=t[1],[ma(ya.bind(null,t,e),[t,e]),n]}},_a={readContext:so,useCallback:va,useContext:so,useEffect:ca,useImperativeHandle:ha,useLayoutEffect:fa,useMemo:ga,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:pa,useResponder:Wo,useDeferredValue:function(e,t){var n=na(ta),r=n[0],i=n[1];return ca((function(){var n=Yo.suspense;Yo.suspense=void 0===t?null:t;try{i(e)}finally{Yo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(ta),n=t[0];return t=t[1],[va(ya.bind(null,t,e),[t,e]),n]}},ka={readContext:so,useCallback:va,useContext:so,useEffect:ca,useImperativeHandle:ha,useLayoutEffect:fa,useMemo:ga,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:pa,useResponder:Wo,useDeferredValue:function(e,t){var n=ra(ta),r=n[0],i=n[1];return ca((function(){var n=Yo.suspense;Yo.suspense=void 0===t?null:t;try{i(e)}finally{Yo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ra(ta),n=t[0];return t=t[1],[va(ya.bind(null,t,e),[t,e]),n]}},Sa=null,Ma=null,Ta=!1;function Ea(e,t){var n=ju(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Oa(e){if(Ta){var t=Ma;if(t){var n=t;if(!Ca(e,t)){if(!(t=Mn(n.nextSibling))||!Ca(e,t))return e.effectTag=-1025&e.effectTag|2,Ta=!1,void(Sa=e);Ea(Sa,n)}Sa=e,Ma=Mn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ta=!1,Sa=e}}function Da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Sa=e}function Na(e){if(e!==Sa)return!1;if(!Ta)return Da(e),Ta=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!_n(t,e.memoizedProps))for(t=Ma;t;)Ea(e,t),t=Mn(t.nextSibling);if(Da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ma=Mn(e.nextSibling);break e}t--}else"$"!==n&&n!==yn&&n!==gn||t++}e=e.nextSibling}Ma=null}}else Ma=Sa?Mn(e.stateNode.nextSibling):null;return!0}function ja(){Ma=Sa=null,Ta=!1}var Aa=$.ReactCurrentOwner,Pa=!1;function Ra(e,t,n,r){t.child=null===e?Do(t,null,n,r):Oo(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return ao(t,i),r=Ko(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ka(e,t,i))}function Fa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Au(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,La(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Hr)(i,r)&&e.ref===t.ref)?Ka(e,t,o):(t.effectTag|=1,(e=Pu(a,r)).ref=t.ref,e.return=t,t.child=e)}function La(e,t,n,r,i,o){return null!==e&&Hr(e.memoizedProps,r)&&e.ref===t.ref&&(Pa=!1,i<o)?(t.expirationTime=e.expirationTime,Ka(e,t,o)):Ba(e,t,n,r,o)}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,i){var o=bi(n)?gi:mi.current;return o=yi(t,o),ao(t,i),n=Ko(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ka(e,t,i))}function Za(e,t,n,r,i){if(bi(n)){var o=!0;ki(t)}else o=!1;if(ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),_o(t,n,r),So(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=so(l):l=yi(t,l=bi(n)?gi:mi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&ko(t,a,r,l),uo=!1;var d=t.memoizedState;a.state=d,mo(t,r,a,i),u=t.memoizedState,s!==r||d!==u||vi.current||uo?("function"===typeof c&&(bo(t,n,c,r),u=t.memoizedState),(s=uo||xo(t,n,s,r,d,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,co(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Ki(t.type,s),u=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=so(l):l=yi(t,l=bi(n)?gi:mi.current),(f="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&ko(t,a,r,l),uo=!1,u=t.memoizedState,a.state=u,mo(t,r,a,i),d=t.memoizedState,s!==r||u!==d||vi.current||uo?("function"===typeof c&&(bo(t,n,c,r),d=t.memoizedState),(c=uo||xo(t,n,s,r,u,d,l))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Wa(e,t,n,r,o,i)}function Wa(e,t,n,r,i,o){za(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return i&&Si(t,n,!1),Ka(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&Si(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xi(0,t.context,!1),Io(e,t.containerInfo)}var Ya,Ua,Va,qa={dehydrated:null,retryTime:0};function Ga(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Bo.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),hi(Bo,1&a),null===e){if(void 0!==o.fallback&&Oa(t),s){if(s=o.fallback,(o=Iu(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Iu(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=qa,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Do(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Pu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Pu(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=qa,t.child=n,i}return n=Oo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Iu(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Iu(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=qa,t.child=o,n}return t.memoizedState=null,t.child=Oo(t,e,o.children,n)}function Xa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oo(e.return,t)}function $a(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Qa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!==(2&(r=Bo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(hi(Bo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Zo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$a(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Zo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$a(t,!0,n,null,o,t.lastEffect);break;case"together":$a(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&pu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Pu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function es(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return bi(t.type)&&wi(),null;case 3:return Fo(),di(vi),di(mi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Na(t)||(t.effectTag|=4),null;case 5:zo(t),n=Ro(Po.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ua(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ro(jo.current),Na(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Cn]=t,r[On]=s,o){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Gt(Qe[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":ke(r,s),Gt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),ln(n,"onChange");break;case"textarea":Ne(r,s),Gt("invalid",r),ln(n,"onChange")}for(var u in an(o,s),e=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(o){case"input":we(r),Te(r,s,!0);break;case"textarea":we(r),Ae(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Ie(o)),e===un?"script"===o?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(o,{is:r.is}):(e=u.createElement(o),"select"===o&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,o),e[Cn]=t,e[On]=r,Ya(e,t),t.stateNode=e,u=sn(o,r),o){case"iframe":case"object":case"embed":Gt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qe.length;l++)Gt(Qe[l],e);l=r;break;case"source":Gt("error",e),l=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),l=r;break;case"form":Gt("reset",e),Gt("submit",e),l=r;break;case"details":Gt("toggle",e),l=r;break;case"input":ke(e,r),l=_e(e,r),Gt("invalid",e),ln(n,"onChange");break;case"option":l=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Gt("invalid",e),ln(n,"onChange");break;case"textarea":Ne(e,r),l=De(e,r),Gt("invalid",e),ln(n,"onChange");break;default:l=r}an(o,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?rn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Be(e,f):"children"===s?"string"===typeof f?("textarea"!==o||""!==f)&&Ze(e,f):"number"===typeof f&&Ze(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=f&&ln(n,s):null!=f&&Q(e,s,f,u))}switch(o){case"input":we(e),Te(e,r,!1);break;case"textarea":we(e),Ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=cn)}xn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ro(Po.current),Ro(jo.current),Na(t)?(n=t.stateNode,r=t.memoizedProps,n[Cn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Cn]=t,t.stateNode=n)}return null;case 13:return di(Bo),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Na(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Bo.current)?Rs===Cs&&(Rs=Os):(Rs!==Cs&&Rs!==Os||(Rs=Ds),0!==Bs&&null!==js&&(Zu(js,Ps),Wu(js,Bs)))),(n||r)&&(t.effectTag|=4),null);case 4:return Fo(),null;case 10:return io(t),null;case 19:if(di(Bo),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(s=r.rendering)){if(o)Ja(r,!1);else if(Rs!==Cs||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Zo(s))){for(t.effectTag|=64,Ja(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return hi(Bo,1&Bo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Zo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ja(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Hi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ja(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Hi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Hi(),n.sibling=null,t=Bo.current,hi(Bo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function ts(e){switch(e.tag){case 1:bi(e.type)&&wi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Fo(),di(vi),di(mi),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return zo(e),null;case 13:return di(Bo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return di(Bo),null;case 4:return Fo(),null;case 10:return io(e),null;default:return null}}function ns(e,t){return{value:e,source:t,stack:ge(t)}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,u,l=t.stateNode;switch(Ro(jo.current),e=null,n){case"input":a=_e(l,a),r=_e(l,r),e=[];break;case"option":a=Ce(l,a),r=Ce(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=De(l,a),r=De(l,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=cn)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=c&&ln(o,s),e||l===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Va=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var rs="function"===typeof WeakSet?WeakSet:Set;function is(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function os(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Tu(e,n)}else t.current=null}function as(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void us(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&vo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&xn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))))}throw Error(a(163))}function cs(e,t,n){switch("function"===typeof Du&&Du(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Vi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){Tu(i,o)}}e=e.next}while(e!==r)}))}break;case 1:os(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Tu(e,n)}}(t,n);break;case 5:os(t);break;case 4:vs(e,t,n)}}function fs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&fs(t)}function ds(e){return 5===e.tag||3===e.tag||4===e.tag}function hs(e){e:{for(var t=e.return;null!==t;){if(ds(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ds(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ps(e,n,t):ms(e,n,t)}function ps(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=cn));else if(4!==r&&null!==(e=e.child))for(ps(e,t,n),e=e.sibling;null!==e;)ps(e,t,n),e=e.sibling}function ms(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ms(e,t,n),e=e.sibling;null!==e;)ms(e,t,n),e=e.sibling}function vs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var u=e,l=o,c=n,f=l;;)if(cs(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(cs(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function gs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ss(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[On]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),sn(e,i),t=sn(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?rn(n,u):"dangerouslySetInnerHTML"===s?Be(n,u):"children"===s?Ze(n,u):Q(n,s,u,t)}switch(e){case"input":Me(n,r);break;case"textarea":je(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ws=Hi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=nn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ys(t);case 19:return void ys(t)}throw Error(a(163))}function ys(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new rs),t.forEach((function(t){var r=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var bs="function"===typeof WeakMap?WeakMap:Map;function ws(e,t,n){(n=fo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Us=r),is(e,t)},n}function xs(e,t,n){(n=fo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return is(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this),is(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var _s,ks=Math.ceil,Ss=$.ReactCurrentDispatcher,Ms=$.ReactCurrentOwner,Ts=16,Es=32,Cs=0,Os=3,Ds=4,Ns=0,js=null,As=null,Ps=0,Rs=Cs,Is=null,Fs=1073741823,Ls=1073741823,zs=null,Bs=0,Zs=!1,Ws=0,Hs=null,Ys=!1,Us=null,Vs=null,qs=!1,Gs=null,Xs=90,$s=null,Qs=0,Ks=null,Js=0;function eu(){return 0!==(48&Ns)?1073741821-(Hi()/10|0):0!==Js?Js:Js=1073741821-(Hi()/10|0)}function tu(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Yi();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(Ns&Ts))return Ps;if(null!==n)e=Qi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qi(e,150,100);break;case 97:case 96:e=Qi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==js&&e===Ps&&--e,e}function nu(e,t){if(50<Qs)throw Qs=0,Ks=null,Error(a(185));if(null!==(e=ru(e,t))){var n=Yi();1073741823===t?0!==(8&Ns)&&0===(48&Ns)?su(e):(ou(e),0===Ns&&Xi()):ou(e),0===(4&Ns)||98!==n&&99!==n||(null===$s?$s=new Map([[e,t]]):(void 0===(n=$s.get(e))||n>t)&&$s.set(e,t))}}function ru(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(js===i&&(pu(t),Rs===Ds&&Zu(i,Ps)),Wu(i,t)),i}function iu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Bu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function ou(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Gi(su.bind(null,e));else{var t=iu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=eu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ii&&Ei(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Gi(su.bind(null,e)):qi(r,au.bind(null,e),{timeout:10*(1073741821-t)-Hi()}),e.callbackNode=t}}}function au(e,t){if(Js=0,t)return Hu(e,t=eu()),ou(e),null;var n=iu(e);if(0!==n){if(t=e.callbackNode,0!==(48&Ns))throw Error(a(327));if(ku(),e===js&&n===Ps||cu(e,n),null!==As){var r=Ns;Ns|=Ts;for(var i=du();;)try{vu();break}catch(u){fu(e,u)}if(ro(),Ns=r,Ss.current=i,1===Rs)throw t=Is,cu(e,n),Zu(e,n),ou(e),t;if(null===As)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Rs,js=null,r){case Cs:case 1:throw Error(a(345));case 2:Hu(e,2<n?2:n);break;case Os:if(Zu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(i)),1073741823===Fs&&10<(i=Ws+500-Hi())){if(Zs){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,cu(e,n);break}}if(0!==(o=iu(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=kn(wu.bind(null,e),i);break}wu(e);break;case Ds:if(Zu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(i)),Zs&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,cu(e,n);break}if(0!==(i=iu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ls?r=10*(1073741821-Ls)-Hi():1073741823===Fs?r=0:(r=10*(1073741821-Fs)-5e3,0>(r=(i=Hi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ks(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=kn(wu.bind(null,e),r);break}wu(e);break;case 5:if(1073741823!==Fs&&null!==zs){o=Fs;var s=zs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Hi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Zu(e,n),e.timeoutHandle=kn(wu.bind(null,e),r);break}}wu(e);break;default:throw Error(a(329))}if(ou(e),e.callbackNode===t)return au.bind(null,e)}}return null}function su(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Ns))throw Error(a(327));if(ku(),e===js&&t===Ps||cu(e,t),null!==As){var n=Ns;Ns|=Ts;for(var r=du();;)try{mu();break}catch(i){fu(e,i)}if(ro(),Ns=n,Ss.current=r,1===Rs)throw n=Is,cu(e,t),Zu(e,t),ou(e),n;if(null!==As)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,js=null,wu(e),ou(e)}return null}function uu(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&Xi()}}function lu(e,t){var n=Ns;Ns&=-2,Ns|=8;try{return e(t)}finally{0===(Ns=n)&&Xi()}}function cu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sn(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&wi();break;case 3:Fo(),di(vi),di(mi);break;case 5:zo(r);break;case 4:Fo();break;case 13:case 19:di(Bo);break;case 10:io(r)}n=n.return}js=e,As=Pu(e.current,null),Ps=t,Rs=Cs,Is=null,Ls=Fs=1073741823,zs=null,Bs=0,Zs=!1}function fu(e,t){for(;;){try{if(ro(),Ho.current=wa,Xo)for(var n=Vo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Uo=0,Go=qo=Vo=null,Xo=!1,null===As||null===As.return)return Rs=1,Is=t,As=null;e:{var i=e,o=As.return,a=As,s=t;if(t=Ps,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&Bo.current),f=o;do{var d;if(d=13===f.tag){var h=f.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var p=f.memoizedProps;d=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(d){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=fo(1073741823,null);g.tag=2,ho(a,g)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new bs,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(a)){s.add(a);var b=Eu.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((ve(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}5!==Rs&&(Rs=2),s=ns(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t,po(f,ws(f,u,t));break e;case 1:u=s;var w=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Vs||!Vs.has(x)))){f.effectTag|=4096,f.expirationTime=t,po(f,xs(f,u,t));break e}}f=f.return}while(null!==f)}As=yu(As)}catch(_){t=_;continue}break}}function du(){var e=Ss.current;return Ss.current=wa,null===e?wa:e}function hu(e,t){e<Fs&&2<e&&(Fs=e),null!==t&&e<Ls&&2<e&&(Ls=e,zs=t)}function pu(e){e>Bs&&(Bs=e)}function mu(){for(;null!==As;)As=gu(As)}function vu(){for(;null!==As&&!Fi();)As=gu(As)}function gu(e){var t=_s(e.alternate,e,Ps);return e.memoizedProps=e.pendingProps,null===t&&(t=yu(e)),Ms.current=null,t}function yu(e){As=e;do{var t=As.alternate;if(e=As.return,0===(2048&As.effectTag)){if(t=es(t,As,Ps),1===Ps||1!==As.childExpirationTime){for(var n=0,r=As.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}As.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=As.firstEffect),null!==As.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=As.firstEffect),e.lastEffect=As.lastEffect),1<As.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=As:e.firstEffect=As,e.lastEffect=As))}else{if(null!==(t=ts(As)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=As.sibling))return t;As=e}while(null!==As);return Rs===Cs&&(Rs=5),null}function bu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function wu(e){var t=Yi();return Vi(99,xu.bind(null,e,t)),null}function xu(e,t){do{ku()}while(null!==Gs);if(0!==(48&Ns))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=bu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===js&&(As=js=null,Ps=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Ns;Ns|=Es,Ms.current=null,bn=qt;var s=mn();if(vn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(T){u=null;break e}var d=0,h=-1,p=-1,m=0,v=0,g=s,y=null;t:for(;;){for(var b;g!==u||0!==c&&3!==g.nodeType||(h=d+c),g!==f||0!==l&&3!==g.nodeType||(p=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break t;if(y===u&&++m===c&&(h=d),y===f&&++v===l&&(p=d),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}u=-1===h||-1===p?null:{start:h,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;wn={activeElementDetached:null,focusedElem:s,selectionRange:u},qt=!1,Hs=i;do{try{_u()}catch(T){if(null===Hs)throw Error(a(330));Tu(Hs,T),Hs=Hs.nextEffect}}while(null!==Hs);Hs=i;do{try{for(s=e,u=t;null!==Hs;){var w=Hs.effectTag;if(16&w&&Ze(Hs.stateNode,""),128&w){var x=Hs.alternate;if(null!==x){var _=x.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&w){case 2:hs(Hs),Hs.effectTag&=-3;break;case 6:hs(Hs),Hs.effectTag&=-3,gs(Hs.alternate,Hs);break;case 1024:Hs.effectTag&=-1025;break;case 1028:Hs.effectTag&=-1025,gs(Hs.alternate,Hs);break;case 4:gs(Hs.alternate,Hs);break;case 8:vs(s,c=Hs,u),fs(c)}Hs=Hs.nextEffect}}catch(T){if(null===Hs)throw Error(a(330));Tu(Hs,T),Hs=Hs.nextEffect}}while(null!==Hs);if(_=wn,x=mn(),w=_.focusedElem,u=_.selectionRange,x!==w&&w&&w.ownerDocument&&pn(w.ownerDocument.documentElement,w)){null!==u&&vn(w)&&(x=u.start,void 0===(_=u.end)&&(_=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(_,w.value.length)):(_=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(_=_.getSelection(),c=w.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!_.extend&&s>u&&(c=u,u=s,s=c),c=hn(w,s),f=hn(w,u),c&&f&&(1!==_.rangeCount||_.anchorNode!==c.node||_.anchorOffset!==c.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((x=x.createRange()).setStart(c.node,c.offset),_.removeAllRanges(),s>u?(_.addRange(x),_.extend(f.node,f.offset)):(x.setEnd(f.node,f.offset),_.addRange(x))))),x=[];for(_=w;_=_.parentNode;)1===_.nodeType&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<x.length;w++)(_=x[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}qt=!!bn,wn=bn=null,e.current=n,Hs=i;do{try{for(w=e;null!==Hs;){var k=Hs.effectTag;if(36&k&&ls(w,Hs.alternate,Hs),128&k){x=void 0;var S=Hs.ref;if(null!==S){var M=Hs.stateNode;Hs.tag,x=M,"function"===typeof S?S(x):S.current=x}}Hs=Hs.nextEffect}}catch(T){if(null===Hs)throw Error(a(330));Tu(Hs,T),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Li(),Ns=o}else e.current=n;if(qs)qs=!1,Gs=e,Xs=t;else for(Hs=i;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,Hs=t;if(0===(t=e.firstPendingTime)&&(Vs=null),1073741823===t?e===Ks?Qs++:(Qs=0,Ks=e):Qs=0,"function"===typeof Ou&&Ou(n.stateNode,r),ou(e),Ys)throw Ys=!1,e=Us,Us=null,e;return 0!==(8&Ns)||Xi(),null}function _u(){for(;null!==Hs;){var e=Hs.effectTag;0!==(256&e)&&as(Hs.alternate,Hs),0===(512&e)||qs||(qs=!0,qi(97,(function(){return ku(),null}))),Hs=Hs.nextEffect}}function ku(){if(90!==Xs){var e=97<Xs?97:Xs;return Xs=90,Vi(e,Su)}}function Su(){if(null===Gs)return!1;var e=Gs;if(Gs=null,0!==(48&Ns))throw Error(a(331));var t=Ns;for(Ns|=Es,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ss(5,n),us(5,n)}}catch(r){if(null===e)throw Error(a(330));Tu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Ns=t,Xi(),!0}function Mu(e,t,n){ho(e,t=ws(e,t=ns(n,t),1073741823)),null!==(e=ru(e,1073741823))&&ou(e)}function Tu(e,t){if(3===e.tag)Mu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Mu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vs||!Vs.has(r))){ho(n,e=xs(n,e=ns(t,e),1073741823)),null!==(n=ru(n,1073741823))&&ou(n);break}}n=n.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),js===e&&Ps===n?Rs===Ds||Rs===Os&&1073741823===Fs&&Hi()-Ws<500?cu(e,Ps):Zs=!0:Bu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,ou(e)))}function Cu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=tu(t=eu(),e,null)),null!==(e=ru(e,t))&&ou(e)}_s=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||vi.current)Pa=!0;else{if(r<n){switch(Pa=!1,t.tag){case 3:Ha(t),ja();break;case 5:if(Lo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:bi(t.type)&&ki(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,hi(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ga(e,t,n):(hi(Bo,1&Bo.current),null!==(t=Ka(e,t,n))?t.sibling:null);hi(Bo,1&Bo.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Qa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),hi(Bo,Bo.current),!r)return null}return Ka(e,t,n)}Pa=!1}}else Pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=yi(t,mi.current),ao(t,n),i=Ko(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)){var o=!0;ki(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,lo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&bo(t,r,s,e),i.updater=wo,t.stateNode=i,i._reactInternalFiber=t,So(t,r,e,n),t=Wa(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"===typeof e)return Au(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=Za(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Fa(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Za(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),mo(t,r,null,n),(r=t.memoizedState.element)===i)ja(),t=Ka(e,t,n);else{if((i=t.stateNode.hydrate)&&(Ma=Mn(t.stateNode.containerInfo.firstChild),Sa=t,i=Ta=!0),i)for(n=Do(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(e,t,r,n),ja();t=t.child}return t;case 5:return Lo(t),null===e&&Oa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,_n(r,i)?s=null:null!==o&&_n(r,o)&&(t.effectTag|=16),za(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,s,n),t=t.child),t;case 6:return null===e&&Oa(t),null;case 13:return Ga(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(hi(Ji,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Zr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!vi.current){t=Ka(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===u.tag&&((c=fo(n,null)).tag=2,ho(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),oo(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ra(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(i=so(i,o.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Fa(e,t,i,o=Ki(i.type,o),r,n);case 15:return La(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,bi(r)?(e=!0,ki(t)):e=!1,ao(t,n),_o(t,r,i),So(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return Qa(e,t,n)}throw Error(a(156,t.tag))};var Ou=null,Du=null;function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ju(e,t,n,r){return new Nu(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pu(e,t){var n=e.alternate;return null===n?((n=ju(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Au(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return Iu(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=ju(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=ju(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ce:return(e=ju(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ue:s=11;break e;case fe:s=14;break e;case de:s=16,r=null;break e;case he:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=ju(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Iu(e,t,n,r){return(e=ju(7,e,r,t)).expirationTime=n,e}function Fu(e,t,n){return(e=ju(6,e,null,t)).expirationTime=n,e}function Lu(e,t,n){return(t=ju(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Bu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Zu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Wu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Yu(e,t,n,r){var i=t.current,o=eu(),s=go.suspense;o=tu(o,i,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(bi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(bi(l)){n=_i(n,l,u);break e}}n=u}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=fo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ho(i,t),nu(i,o),o}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}function Gu(e,t,n){var r=new zu(e,t,n=null!=n&&!0===n.hydrate),i=ju(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,lo(i),e[Dn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Et.forEach((function(e){mt(e,t,n)})),Ct.forEach((function(e){mt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Uu(a);s.call(e)}}Yu(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Gu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=Uu(a);u.call(e)}}lu((function(){Yu(t,a,e,i)}))}return Uu(a)}function Qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ku(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(a(200));return Qu(e,t,null,n)}Gu.prototype.render=function(e){Yu(e,this._internalRoot,null,null)},Gu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yu(null,e,null,(function(){t[Dn]=null}))},vt=function(e){if(13===e.tag){var t=Qi(eu(),150,100);nu(e,t),qu(e,t)}},gt=function(e){13===e.tag&&(nu(e,3),qu(e,3))},yt=function(e){if(13===e.tag){var t=eu();nu(e,t=tu(t,e,null)),qu(e,t)}},C=function(e,t,n){switch(t){case"input":if(Me(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Pn(r);if(!i)throw Error(a(90));xe(r),Me(r,i)}}}break;case"textarea":je(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},P=uu,R=function(e,t,n,r,i){var o=Ns;Ns|=4;try{return Vi(98,e.bind(null,t,n,r,i))}finally{0===(Ns=o)&&Xi()}},I=function(){0===(49&Ns)&&(function(){if(null!==$s){var e=$s;$s=null,e.forEach((function(e,t){Hu(t,e),ou(t)})),Xi()}}(),ku())},F=function(e,t){var n=Ns;Ns|=2;try{return e(t)}finally{0===(Ns=n)&&Xi()}};var Ju={Events:[jn,An,Pn,T,k,Zn,function(e){ot(e,Bn)},j,A,Kt,ut,ku,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ou=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Du=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Nn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ju,t.createPortal=Ku,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Ns))throw Error(a(187));var n=Ns;Ns|=1;try{return Vi(99,e.bind(null,t))}finally{Ns=n,Xi()}},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(a(200));return $u(null,e,t,!0,n)},t.render=function(e,t,n){if(!Xu(t))throw Error(a(200));return $u(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(a(40));return!!e._reactRootContainer&&(lu((function(){$u(null,null,e,!1,(function(){e._reactRootContainer=null,e[Dn]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_createPortal=function(e,t){return Ku(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return $u(e,t,n,!1,r)},t.version="16.14.0"},54164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(34463)},50077:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!==typeof Element;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,u,l,c=t(e),f=t(a);if(c&&f){if((u=e.length)!=a.length)return!1;for(s=u;0!==s--;)if(!o(e[s],a[s]))return!1;return!0}if(c!=f)return!1;var d=e instanceof Date,h=a instanceof Date;if(d!=h)return!1;if(d&&h)return e.getTime()==a.getTime();var p=e instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return e.toString()==a.toString();var v=n(e);if((u=v.length)!==n(a).length)return!1;for(s=u;0!==s--;)if(!r.call(a,v[s]))return!1;if(i&&e instanceof Element&&a instanceof Element)return e===a;for(s=u;0!==s--;)if(("_owner"!==(l=v[s])||!e.$$typeof)&&!o(e[l],a[l]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},73967:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,l,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!o(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=e.entries();!(u=c.next()).done;)if(!o(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!e.$$typeof)&&!o(e[l[u]],a[l[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},11372:function(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,u=60110,l=60112,c=60113,f=60120,d=60115,h=60116,p=60121,m=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),l=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),d=b("react.memo"),h=b("react.lazy"),p=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case h:case d:case s:return e;default:return t}}case r:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===g||e===o||e===c||e===f||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===v||e.$$typeof===p||e[0]===m)},t.typeOf=w},57441:function(e,t,n){"use strict";e.exports=n(11372)},96179:function(e){e.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}}},25590:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(94578),i=n(88846),o=n(91985),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},95708:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.S}});var r=n(37161),i=n(45044);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useMutation")&&n.d(t,{useMutation:function(){return i.useMutation}}),n.o(i,"useQueries")&&n.d(t,{useQueries:function(){return i.useQueries}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}}),n.o(i,"useQueryClient")&&n.d(t,{useQueryClient:function(){return i.useQueryClient}})},209:function(e,t,n){"use strict";n.d(t,{E:function(){return o},j:function(){return i}});var r=console;function i(){return r}function o(e){r=e}},51909:function(e,t,n){"use strict";n.d(t,{R:function(){return l},m:function(){return u}});var r=n(87462),i=n(209),o=n(82363),a=n(96350),s=n(91985),u=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||l(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),o.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function l(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},82363:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(91985),i=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),o=new i},4463:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(94578),i=n(88846),o=n(91985),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(i.l))},37161:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(87462),i=n(91985),o=n(94578),a=n(82363),s=n(209),u=n(96350),l=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return null==(l=this.retryer)||l.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var c=this.observers.find((function(e){return e.options.queryFn}));c&&this.setOptions(c.options)}var f=(0,i.mc)(this.queryKey),d=(0,i.G9)(),h={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return a.abortSignalConsumed=!0,d.signal}});var p,m,v={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(p=this.options.behavior)||p.onFetch(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=v.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(m=v.fetchOptions)?void 0:m.meta});return this.retryer=new u.m4({fn:v.fetchFn,abort:null==d||null==(o=d.abort)?void 0:o.bind(d),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,u.DV)(o)&&o.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),c=n(88846),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new l({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(c.l),d=n(51909),h=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new d.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(c.l),p=n(25590),m=n(4463);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function g(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new f,this.mutationCache=e.mutationCache||new h,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=p.j.subscribe((function(){p.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){p.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],l=s[1],c=this.queryCache,f=(0,r.Z)({},u,{active:!0});return a.V.batch((function(){return c.findAll(u).forEach((function(e){e.reset()})),o.refetchQueries(f,l)}))},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],l=void 0===u?{}:u;"undefined"===typeof l.revert&&(l.revert=!0);var c=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(l)}))}));return Promise.all(c).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,l=this,c=(0,i.I6)(e,t,n),f=c[0],d=c[1],h=(0,r.Z)({},f,{active:null==(o=null!=(s=f.refetchActive)?s:f.active)||o,inactive:null!=(u=f.refetchInactive)&&u});return a.V.batch((function(){return l.queryCache.findAll(f).forEach((function(e){e.invalidate()})),l.refetchQueries(h,d)}))},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],l=s[1],c=a.V.batch((function(){return o.queryCache.findAll(u).map((function(e){return e.fetch(void 0,(0,r.Z)({},l,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))}))})),f=Promise.all(c).then(i.ZT);return(null==l?void 0:l.throwOnError)||(f=f.catch(i.ZT)),f},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);"undefined"===typeof o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,s,l,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,f=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,d=null==f?void 0:f.pageParam,h="forward"===(null==f?void 0:f.direction),p="backward"===(null==f?void 0:f.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),w=null==b?void 0:b.signal,x=y,_=!1,k=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(e,t,n,r){return x=r?[t].concat(x):[].concat(x,[t]),r?[n].concat(e):[].concat(e,[n])},M=function(t,n,r,i){if(_)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:w,pageParam:r,meta:e.meta},a=k(o),s=Promise.resolve(a).then((function(e){return S(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(m.length)if(h){var T="undefined"!==typeof d,E=T?d:v(e.options,m);l=M(m,T,E)}else if(p){var C="undefined"!==typeof d,O=C?d:g(e.options,m);l=M(m,C,O,!0)}else!function(){x=[];var t="undefined"===typeof e.options.getNextPageParam,n=!c||!m[0]||c(m[0],0,m);l=n?M([],t,y[0]):Promise.resolve(S([],y[0],m[0]));for(var r=function(n){l=l.then((function(r){if(!c||!m[n]||c(m[n],n,m)){var i=t?y[n]:v(e.options,r);return M(r,t,i)}return Promise.resolve(S(r,y[n],m[n]))}))},i=1;i<m.length;i++)r(i)}();else l=M([]);var D=l.then((function(e){return{pages:e,pageParams:x}}));return D.cancel=function(){_=!0,null==b||b.abort(),(0,u.LE)(l)&&l.cancel()},D}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},96350:function(e,t,n){"use strict";n.d(t,{DV:function(){return l},LE:function(){return s},m4:function(){return c}});var r=n(25590),i=n(4463),o=n(91985);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function l(e){return e instanceof u}var c=function(e){var t,n,l,c,f=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){l=e,c=t}));var h=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),l(t))},p=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),c(t))};!function l(){if(!f.isResolved){var c;try{c=e.fn()}catch(m){c=Promise.reject(m)}t=function(e){if(!f.isResolved&&(p(new u(e)),null==f.abort||f.abort(),s(c)))try{c.cancel()}catch(t){}},f.isTransportCancelable=s(c),Promise.resolve(c).then(h).catch((function(t){var s,u;if(!f.isResolved){var c=null!=(s=e.retry)?s:3,h=null!=(u=e.retryDelay)?u:a,m="function"===typeof h?h(f.failureCount,t):h,v=!0===c||"number"===typeof c&&f.failureCount<c||"function"===typeof c&&c(f.failureCount,t);!d&&v?(f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),(0,o.Gh)(m).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?p(t):l()}))):p(t)}}))}}()}},88846:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},45044:function(){},91985:function(e,t,n){"use strict";n.d(t,{A4:function(){return E},G9:function(){return C},Gh:function(){return T},I6:function(){return p},Kp:function(){return f},PN:function(){return s},Q$:function(){return x},Rc:function(){return c},Rm:function(){return g},SE:function(){return a},VS:function(){return _},X7:function(){return v},ZT:function(){return o},_v:function(){return d},_x:function(){return m},e5:function(){return l},lV:function(){return h},mc:function(){return u},sk:function(){return i},to:function(){return b},yF:function(){return y}});var r=n(87462),i="undefined"===typeof window;function o(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function l(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function c(e,t,n){var r=e.slice(0);return r[t]=n,r}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function d(e,t,n){return M(e)?"function"===typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function h(e,t,n){return M(e)?"function"===typeof t?(0,r.Z)({},n,{mutationKey:e,mutationFn:t}):(0,r.Z)({},t,{mutationKey:e}):"function"===typeof e?(0,r.Z)({},t,{mutationFn:e}):(0,r.Z)({},e)}function p(e,t,n){return M(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function m(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(M(s))if(r){if(t.queryHash!==g(s,t.options))return!1}else if(!b(t.queryKey,s))return!1;var l=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===l)return!1;if("all"!==l){var c=t.isActive();if("active"===l&&!c)return!1;if("inactive"===l&&c)return!1}return("boolean"!==typeof u||t.isStale()===u)&&(("boolean"!==typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function v(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(M(o)){if(!t.options.mutationKey)return!1;if(n){if(y(t.options.mutationKey)!==y(o))return!1}else if(!b(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function g(e,t){return((null==t?void 0:t.queryKeyHashFn)||y)(e)}function y(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return k(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function b(e,t){return w(u(e),u(t))}function w(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!w(e[n],t[n])})))}function x(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||k(e)&&k(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var l=n?u:i[u];a[l]=x(e[l],t[l]),a[l]===e[l]&&s++}return r===o&&s===r?e:a}return t}function _(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function k(e){if(!S(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var n=t.prototype;return!!S(n)&&!!n.hasOwnProperty("isPrototypeOf")}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function M(e){return"string"===typeof e||Array.isArray(e)}function T(e){return new Promise((function(t){setTimeout(t,e)}))}function E(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function C(){if("function"===typeof AbortController)return new AbortController}},91933:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useMutation:function(){return i.useMutation},useQueries:function(){return i.useQueries},useQuery:function(){return i.useQuery},useQueryClient:function(){return i.useQueryClient}});var r=n(95708);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useQueries")&&n.d(t,{useQueries:function(){return r.useQueries}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}}),n.o(r,"useQueryClient")&&n.d(t,{useQueryClient:function(){return r.useQueryClient}});var i=n(90381)},90381:function(e,t,n){"use strict";n.d(t,{QueryClientProvider:function(){return d},useMutation:function(){return w},useQueries:function(){return A},useQuery:function(){return N},useQueryClient:function(){return f}});var r=n(82363),i=n(54164).unstable_batchedUpdates;r.V.setBatchNotifyFunction(i);var o=n(209),a=console;(0,o.E)(a);var s=n(72791),u=s.createContext(void 0),l=s.createContext(!1);function c(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=u),window.ReactQueryClientContext):u}var f=function(){var e=s.useContext(c(s.useContext(l)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},d=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=c(r);return s.createElement(l.Provider,{value:r},s.createElement(o.Provider,{value:t},i))},h=n(87462),p=n(91985),m=n(94578),v=n(51909),g=n(88846),y=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,h.Z)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,v.R)(),t=(0,h.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;r.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(g.l);function b(e,t,n){return"function"===typeof t?t.apply(void 0,n):"boolean"===typeof t?t:!!e}function w(e,t,n){var i=s.useRef(!1),o=s.useState(0)[1],a=(0,p.lV)(e,t,n),u=f(),l=s.useRef();l.current?l.current.setOptions(a):l.current=new y(u,a);var c=l.current.getCurrentResult();s.useEffect((function(){i.current=!0;var e=l.current.subscribe(r.V.batchCalls((function(){i.current&&o((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var d=s.useCallback((function(e,t){l.current.mutate(e,t).catch(p.ZT)}),[]);if(c.error&&b(void 0,l.current.options.useErrorBoundary,[c.error]))throw c.error;return(0,h.Z)({},c,{mutate:d,mutateAsync:c.mutate})}var x=n(25590),_=n(96350),k=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),S(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return M(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return M(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&T(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(p.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!p.sk&&!this.currentResult.isStale&&(0,p.PN)(this.options.staleTime)){var t=(0,p.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!p.sk&&!1!==this.options.enabled&&(0,p.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||x.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=e!==r,c=l?e.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,d=e.state,h=d.dataUpdatedAt,m=d.error,v=d.errorUpdatedAt,g=d.isFetching,y=d.status,b=!1,w=!1;if(t.optimisticResults){var x=this.hasListeners(),_=!x&&S(e,t),k=x&&T(e,r,t,i);(_||k)&&(g=!0,h||(y="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==f?void 0:f.isSuccess)&&"error"!==y)n=f.data,h=f.dataUpdatedAt,y=f.status,b=!0;else if(t.select&&"undefined"!==typeof d.data)if(a&&d.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=(0,p.Q$)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(C){(0,o.j)().error(C),this.selectError=C}else n=d.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof n&&("loading"===y||"idle"===y)){var M;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))M=a.data;else if(M="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof M)try{M=t.select(M),!1!==t.structuralSharing&&(M=(0,p.Q$)(null==a?void 0:a.data,M)),this.selectError=null}catch(C){(0,o.j)().error(C),this.selectError=C}"undefined"!==typeof M&&(y="success",n=M,w=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:h,error:m,errorUpdatedAt:v,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==y,isLoadingError:"error"===y&&0===d.dataUpdatedAt,isPlaceholderData:w,isPreviousData:b,isRefetchError:"error"===y&&0!==d.dataUpdatedAt,isStale:E(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,p.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,_.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(g.l);function S(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&M(e,t,t.refetchOnMount)}function M(e,t,n){if(!1!==t.enabled){var r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&E(e,t)}return!1}function T(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&E(e,n)}function E(e,t){return e.isStaleByTime(t.staleTime)}function C(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var O=s.createContext(C());function D(e,t){var n=s.useRef(!1),i=s.useState(0)[1],o=f(),a=s.useContext(O),u=o.defaultQueryObserverOptions(e);u.optimisticResults=!0,u.onError&&(u.onError=r.V.batchCalls(u.onError)),u.onSuccess&&(u.onSuccess=r.V.batchCalls(u.onSuccess)),u.onSettled&&(u.onSettled=r.V.batchCalls(u.onSettled)),u.suspense&&("number"!==typeof u.staleTime&&(u.staleTime=1e3),0===u.cacheTime&&(u.cacheTime=1)),(u.suspense||u.useErrorBoundary)&&(a.isReset()||(u.retryOnMount=!1));var l=s.useState((function(){return new t(o,u)}))[0],c=l.getOptimisticResult(u);if(s.useEffect((function(){n.current=!0,a.clearReset();var e=l.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return l.updateResult(),function(){n.current=!1,e()}}),[a,l]),s.useEffect((function(){l.setOptions(u,{listeners:!1})}),[u,l]),u.suspense&&c.isLoading)throw l.fetchOptimistic(u).then((function(e){var t=e.data;null==u.onSuccess||u.onSuccess(t),null==u.onSettled||u.onSettled(t,null)})).catch((function(e){a.clearReset(),null==u.onError||u.onError(e),null==u.onSettled||u.onSettled(void 0,e)}));if(c.isError&&!a.isReset()&&!c.isFetching&&b(u.suspense,u.useErrorBoundary,[c.error,l.getCurrentQuery()]))throw c.error;return"tracked"===u.notifyOnChangeProps&&(c=l.trackResult(c,u)),c}function N(e,t,n){return D((0,p._v)(e,t,n),k)}var j=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.queries=[],r.result=[],r.observers=[],r.observersMap={},n&&r.setQueries(n),r}(0,m.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){var e=this;1===this.listeners.length&&this.observers.forEach((function(t){t.subscribe((function(n){e.onUpdate(t,n)}))}))},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.destroy=function(){this.listeners=[],this.observers.forEach((function(e){e.destroy()}))},n.setQueries=function(e,t){this.queries=e,this.updateObservers(t)},n.getCurrentResult=function(){return this.result},n.getOptimisticResult=function(e){return this.findMatchingObservers(e).map((function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)}))},n.findMatchingObservers=function(e){var t=this,n=this.observers,r=e.map((function(e){return t.client.defaultQueryObserverOptions(e)})),i=r.flatMap((function(e){var t=n.find((function(t){return t.options.queryHash===e.queryHash}));return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=i.map((function(e){return e.defaultedQueryOptions.queryHash})),a=r.filter((function(e){return!o.includes(e.queryHash)})),s=n.filter((function(e){return!i.some((function(t){return t.observer===e}))})),u=a.map((function(e,n){if(e.keepPreviousData){var r=s[n];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:t.getObserver(e)}}));return i.concat(u).sort((function(e,t){return r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)}))},n.getObserver=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new k(this.client,t)},n.updateObservers=function(e){var t=this;r.V.batch((function(){var n=t.observers,r=t.findMatchingObservers(t.queries);r.forEach((function(t){return t.observer.setOptions(t.defaultedQueryOptions,e)}));var i=r.map((function(e){return e.observer})),o=Object.fromEntries(i.map((function(e){return[e.options.queryHash,e]}))),a=i.map((function(e){return e.getCurrentResult()})),s=i.some((function(e,t){return e!==n[t]}));(n.length!==i.length||s)&&(t.observers=i,t.observersMap=o,t.result=a,t.hasListeners()&&((0,p.e5)(n,i).forEach((function(e){e.destroy()})),(0,p.e5)(i,n).forEach((function(e){e.subscribe((function(n){t.onUpdate(e,n)}))})),t.notify()))}))},n.onUpdate=function(e,t){var n=this.observers.indexOf(e);-1!==n&&(this.result=(0,p.Rc)(this.result,n,t),this.notify())},n.notify=function(){var e=this;r.V.batch((function(){e.listeners.forEach((function(t){t(e.result)}))}))},t}(g.l);function A(e){var t=s.useRef(!1),n=s.useState(0)[1],i=f(),o=(0,s.useMemo)((function(){return e.map((function(e){var t=i.defaultQueryObserverOptions(e);return t.optimisticResults=!0,t}))}),[e,i]),a=s.useState((function(){return new j(i,o)}))[0],u=a.getOptimisticResult(o);return s.useEffect((function(){t.current=!0;var e=a.subscribe(r.V.batchCalls((function(){t.current&&n((function(e){return e+1}))})));return function(){t.current=!1,e()}}),[a]),s.useEffect((function(){a.setQueries(o,{listeners:!1})}),[o,a]),u}},29195:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case m:case u:return e;default:return t}}case i:return t}}}function _(e){return x(e)===f}},28228:function(e,t,n){"use strict";n(29195)},39475:function(e,t,n){"use strict";var r,i=n(72791),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,l=[];function c(){u=e(l.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,l=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),c()},a.componentDidUpdate=function(){c()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),c()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},50264:function(e,t,n){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return r.Timeline}});var r=n(78672)},78672:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.Timeline=void 0;var o=i(n(56690)),a=i(n(89728)),s=i(n(66115)),u=i(n(61655)),l=i(n(94993)),c=i(n(73808)),f=i(n(38416)),d=i(n(50468)),h=r(n(72791)),p=n(38655);n(15677);var m=i(n(71180)),v=i(n(57753)),g=i(n(29430)),y=i(n(15687)),b=i(n(24242)),w=i(n(12742));function x(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(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,r=(0,c.default)(e);if(t){var i=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var S=function(){},M=["currentTimeTick","click","contextmenu","doubleClick","dragover","drop","mouseOver","mouseDown","mouseUp","mouseMove","groupDragged","changed","rangechange","rangechanged","select","itemover","itemout","timechange","timechanged","markerchange","markerchanged"],T={};(0,g.default)(M,(function(e){T["".concat(e,"Handler")]=S}));var E=new WeakMap,C=function(e){(0,u.default)(n,e);var t=k(n);function n(e){var r;return(0,o.default)(this,n),r=t.call(this,e),(0,f.default)((0,s.default)(r),"timeline",void 0),(0,f.default)((0,s.default)(r),"items",void 0),(0,f.default)((0,s.default)(r),"groups",void 0),E.set((0,s.default)(r),{writable:!0,value:h.default.createRef()}),Object.defineProperty((0,s.default)(r),"items",{value:new p.DataSet,writable:!1}),Object.defineProperty((0,s.default)(r),"groups",{value:new p.DataSet,writable:!1}),r}return(0,a.default)(n,[{key:"componentWillUnmount",value:function(){this.timeline.destroy()}},{key:"componentDidMount",value:function(){Object.defineProperty(this,"timeline",{value:new p.Timeline((0,d.default)(this,E).current,this.items,this.groups,this.props.options),writable:!1});var e,t=x(M);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.props["".concat(n,"Handler")];r!==S&&this.timeline.on(n,r)}}catch(i){t.e(i)}finally{t.f()}this.init()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.initialItems,r=t.initialGroups,i=t.options,o=t.selection,a=t.customTimes,s=t.currentTime,u=n!==e.initialItems,l=r!==e.initialGroups,c=i!==e.options,f=a!==e.customTimes,d=o!==e.selection,h=s!==e.currentTime;return l&&console.warn("react-vis-timeline: you are trying to change 'initialGroups' prop. Please use the public api exposed with in ref"),u&&console.warn("react-vis-timeline: you are trying to change 'initialItems' prop. Please use the public api exposed with in ref"),c&&this.timeline.setOptions(e.options),f&&this.updateCustomTimes(a,e.customTimes),d&&this.updateSelection(e.selection,e.selectionOptions),h&&this.timeline.setCurrentTime(e.currentTime),!1}},{key:"updateCustomTimes",value:function(e,t){var n=this,r=(0,w.default)(e),i=(0,w.default)(t),o=(0,m.default)(i,r),a=(0,m.default)(r,i),s=(0,v.default)(r,i);(0,g.default)(a,(function(e){return n.timeline.removeCustomTime(e)})),(0,g.default)(o,(function(e){var r=t[e].datetime;n.timeline.addCustomTime(r,e)})),(0,g.default)(s,(function(e){var r=t[e].datetime;n.timeline.setCustomTime(r,e)}))}},{key:"updateSelection",value:function(e,t){this.timeline.setSelection(e,t)}},{key:"init",value:function(){var e=this.props,t=e.initialItems,n=e.initialGroups,r=e.options,i=e.selection,o=e.selectionOptions,a=void 0===o?{}:o,s=e.customTimes,u=e.animate,l=void 0===u||u,c=e.currentTime,f=r;l&&(f=(0,b.default)(r,"start","end"),this.timeline.setWindow(r.start,r.end,{animation:l})),this.timeline.setOptions(f),(null===n||void 0===n?void 0:n.length)>0&&this.groups.add(n),(null===t||void 0===t?void 0:t.length)>0&&this.items.add(t),this.updateSelection(i,a),c&&this.timeline.setCurrentTime(c),this.updateCustomTimes([],s)}},{key:"render",value:function(){return h.default.createElement("div",{ref:(0,d.default)(this,E)})}}]),n}(h.Component);t.Timeline=C,(0,f.default)(C,"defaultProps",(0,y.default)({initialItems:[],groups:[],options:{},selection:[],customTimes:[]},T))},66374:function(e,t,n){"use strict";var r=n(72791),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:a.current}}t.jsx=l,t.jsxs=l},59117:function(e,t,n){"use strict";var r=n(31725),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var k=_.prototype=new x;k.constructor=_,r(k,w.prototype),k.isPureReactComponent=!0;var S={current:null},M=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)M.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var O=/\/+/g,D=[];function N(e,t,n,r){if(D.length){var i=D.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function A(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return n(r,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var l=t+R(i=e[u],u);s+=A(i,l,n,r)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=v&&e[v]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),u=0;!(i=e.next()).done;)s+=A(i=i.value,l=t+R(i,u++),n,r);else if("object"===i)throw n=""+e,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function P(e,t,n){return null==e?0:A(e,"",t,n)}function R(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(O,"$&/")+"/"),P(e,F,t=N(t,o,r,i)),j(t)}var z={current:null};function B(){var e=z.current;if(null===e)throw Error(g(321));return e}var Z={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;P(e,I,t=N(null,null,t,n)),j(t)},count:function(e){return P(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=l,t.PureComponent=_,t.StrictMode=u,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(g(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)M.call(t,c)&&!T.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},72791:function(e,t,n){"use strict";e.exports=n(59117)},80184:function(e,t,n){"use strict";e.exports=n(66374)},43841:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},22305:function(e,t){var n,r,i;r=[t],n=function(e){var t=e;"undefined"==typeof t&&(window.rison={}),t.uri_ok={"~":!0,"!":!0,"*":!0,"(":!0,")":!0,"-":!0,_:!0,".":!0,",":!0,":":!0,"@":!0,$:!0,"'":!0,"/":!0},function(){for(var e=[],n=0;n<16;n++)for(var r=0;r<16;r++)if(n+r!=0){var i=String.fromCharCode(16*n+r);/\w|[-_.\/~]/.test(i)||e.push("\\u00"+n.toString(16)+r.toString(16))}t.not_idchar=e.join("")}(),t.not_idchar=" '!:(),*@$",t.not_idstart="-0123456789",function(){var e="[^"+t.not_idstart+t.not_idchar+"][^"+t.not_idchar+"]*";t.id_ok=new RegExp("^"+e+"$"),t.next_id=new RegExp(e,"g")}(),t.quote=function(e){return/^[-A-Za-z0-9~!*()_.',:@$\/]*$/.test(e)?e:encodeURIComponent(e).replace("%2C",",","g").replace("%3A",":","g").replace("%40","@","g").replace("%24","$","g").replace("%2F","/","g").replace("%20","+","g")},function(){var e={"'":!0,"!":!0},n={array:function(e){var t,r,i,o,a=["!("],s=e.length;for(i=0;i<s;i+=1)o=e[i],(r=n[typeof o])&&"string"==typeof(o=r(o))&&(t&&(a[a.length]=","),a[a.length]=o,t=!0);return a[a.length]=")",a.join("")},boolean:function(e){return e?"!t":"!f"},null:function(e){return"!n"},number:function(e){return isFinite(e)?String(e).replace(/\+/,""):"!n"},object:function(e){if(e){if(e instanceof Array)return n.array(e);if("object"===typeof e.__prototype__&&"undefined"!==typeof e.__prototype__.encode_rison)return e.encode_rison();var t,r,i,o,a,s=["("],u=[];for(i in e)u[u.length]=i;for(u.sort(),a=0;a<u.length;a++)o=e[i=u[a]],(r=n[typeof o])&&"string"==typeof(o=r(o))&&(t&&(s[s.length]=","),s.push(n.string(i),":",o),t=!0);return s[s.length]=")",s.join("")}return"!n"},string:function(n){return""==n?"''":t.id_ok.test(n)?n:"'"+(n=n.replace(/(['!])/g,(function(t,n){return e[n]?"!"+n:n})))+"'"},undefined:function(e){throw new Error("rison can't encode the undefined value")}};t.encode=function(e){return n[typeof e](e)},t.encode_object=function(e){if("object"!=typeof e||null===e||e instanceof Array)throw new Error("rison.encode_object expects an object argument");var t=n[typeof e](e);return t.substring(1,t.length-1)},t.encode_array=function(e){if(!(e instanceof Array))throw new Error("rison.encode_array expects an array argument");var t=n[typeof e](e);return t.substring(2,t.length-1)},t.encode_uri=function(e){return t.quote(n[typeof e](e))}}(),t.decode=function(e){var n=function(e){throw Error("rison decoder error: "+e)};return new t.parser(n).parse(e)},t.decode_object=function(e){return t.decode("("+e+")")},t.decode_array=function(e){return t.decode("!("+e+")")},t.parser=function(e){this.errorHandler=e},t.parser.WHITESPACE="",t.parser.prototype.setOptions=function(e){e.errorHandler&&(this.errorHandler=e.errorHandler)},t.parser.prototype.parse=function(e){this.string=e,this.index=0,this.message=null;var n=this.readValue();return!this.message&&this.next()&&(n=this.error("unable to parse string as rison: '"+t.encode(e)+"'")),this.message&&this.errorHandler&&this.errorHandler(this.message,this.index),n},t.parser.prototype.error=function(e){"undefined"!=typeof console&&console.log("rison parser error: ",e),this.message=e},t.parser.prototype.readValue=function(){var e=this.next(),n=e&&this.table[e];if(n)return n.apply(this);var r=this.string,i=this.index-1;t.next_id.lastIndex=i;var o=t.next_id.exec(r);if(o.length>0){var a=o[0];return this.index=i+a.length,a}return e?this.error("invalid character: '"+e+"'"):this.error("empty expression")},t.parser.parse_array=function(e){for(var t,n=[];")"!=(t=e.next());){if(!t)return e.error("unmatched '!('");if(n.length)","!=t&&e.error("missing ','");else{if(","==t)return e.error("extra ','");--e.index}var r=e.readValue();if("undefined"==typeof r)return;n.push(r)}return n},t.parser.bangs={t:!0,f:!1,n:null,"(":t.parser.parse_array},t.parser.prototype.table={"!":function(){var e=this.string.charAt(this.index++);if(!e)return this.error('"!" at end of input');var n=t.parser.bangs[e];return"function"==typeof n?n.call(null,this):"undefined"==typeof n?this.error('unknown literal: "!'+e+'"'):n},"(":function(){for(var e,t={},n=0;")"!=(e=this.next());){if(n)","!=e&&this.error("missing ','");else{if(","==e)return this.error("extra ','");--this.index}var r=this.readValue();if("undefined"==typeof r)return;if(":"!=this.next())return this.error("missing ':'");var i=this.readValue();if("undefined"==typeof i)return;t[r]=i,n++}return t},"'":function(){for(var e,t=this.string,n=this.index,r=n,i=[];"'"!=(e=t.charAt(n++));){if(!e)return this.error('unmatched "\'"');if("!"==e){if(r<n-1&&i.push(t.slice(r,n-1)),e=t.charAt(n++),!("!'".indexOf(e)>=0))return this.error('invalid string escape: "!'+e+'"');i.push(e),r=n}}return r<n-1&&i.push(t.slice(r,n-1)),this.index=n,1==i.length?i[0]:i.join("")},"-":function(){var e=this.string,t=this.index,n=t-1,r="int",i="-",o={"int+.":"frac","int+e":"exp","frac+e":"exp"};do{var a=e.charAt(t++);if(!a)break;"0"<=a&&a<="9"||(i.indexOf(a)>=0?i="":"exp"==(r=o[r+"+"+a.toLowerCase()])&&(i="-"))}while(r);return this.index=--t,"-"==(e=e.slice(n,t))?this.error("invalid number"):Number(e)}},function(e){for(var t=0;t<=9;t++)e[String(t)]=e["-"]}(t.parser.prototype.table),t.parser.prototype.next=function(){var e=this.string,n=this.index;do{if(n==e.length)return;var r=e.charAt(n++)}while(t.parser.WHITESPACE.indexOf(r)>=0);return this.index=n,r}},void 0===(i="function"===typeof n?n.apply(t,r):n)||(e.exports=i)},36813:function(e,t){"use strict";var n,r,i,o,a;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,u=null,l=function e(){if(null!==s)try{var n=t.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(e,0),r}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(l,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var v=d.now();t.unstable_now=function(){return d.now()-v}}var g=!1,y=null,b=-1,w=5,x=0;o=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,k=_.port2;_.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?k.postMessage(null):(g=!1,y=null)}catch(n){throw k.postMessage(null),n}}else g=!1},n=function(e){y=e,g||(g=!0,k.postMessage(null))},r=function(e,n){b=h((function(){e(t.unstable_now())}),n)},i=function(){p(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<E(i,t)))break e;e[r]=t,e[n]=i,n=r}}function M(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>E(a,n))void 0!==u&&0>E(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>E(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],D=1,N=null,j=3,A=!1,P=!1,R=!1;function I(e){for(var t=M(O);null!==t;){if(null===t.callback)T(O);else{if(!(t.startTime<=e))break;T(O),t.sortIndex=t.expirationTime,S(C,t)}t=M(O)}}function F(e){if(R=!1,I(e),!P)if(null!==M(C))P=!0,n(L);else{var t=M(O);null!==t&&r(F,t.startTime-e)}}function L(e,n){P=!1,R&&(R=!1,i()),A=!0;var a=j;try{for(I(n),N=M(C);null!==N&&(!(N.expirationTime>n)||e&&!o());){var s=N.callback;if(null!==s){N.callback=null,j=N.priorityLevel;var u=s(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?N.callback=u:N===M(C)&&T(C),I(n)}else T(C);N=M(C)}if(null!==N)var l=!0;else{var c=M(O);null!==c&&r(F,c.startTime-n),l=!1}return l}finally{N=null,j=a,A=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||A||(P=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return M(C)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?s+u:s,a="number"===typeof a.timeout?a.timeout:z(e)}else a=z(e),u=s;return e={id:D++,callback:o,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(e.sortIndex=u,S(O,e),null===M(C)&&e===M(O)&&(R?i():R=!0,r(F,u-s))):(e.sortIndex=a,S(C,e),P||A||(P=!0,n(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var n=M(C);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},45296:function(e,t,n){"use strict";e.exports=n(36813)},79613:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=n?n.call(r,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},40581:function(e,t,n){"use strict";var r=n(52506),i=n(44037),o=n(42584),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(u){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(u){if(t)return p(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),c(e,r,i)):u?(t||(t=new u),h(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},36031:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:function(){return Be},StyleSheetConsumer:function(){return ie},StyleSheetContext:function(){return re},StyleSheetManager:function(){return ce},ThemeConsumer:function(){return je},ThemeContext:function(){return Ne},ThemeProvider:function(){return Ae},__PRIVATE__:function(){return He},createGlobalStyle:function(){return Le},css:function(){return we},default:function(){return Ye},isStyledComponent:function(){return w},keyframes:function(){return ze},useTheme:function(){return We},version:function(){return _},withTheme:function(){return Ze}});var r=n(57441),i=n(72791),o=n(79613),a=n.n(o);var s=function(e){function t(e,r,u,l,d){for(var h,p,m,v,w,_=0,k=0,S=0,M=0,T=0,j=0,P=m=h=0,I=0,F=0,L=0,z=0,B=u.length,Z=B-1,W="",H="",Y="",U="";I<B;){if(p=u.charCodeAt(I),I===Z&&0!==k+M+S+_&&(0!==k&&(p=47===k?10:47),M=S=_=0,B++,Z++),0===k+M+S+_){if(I===Z&&(0<F&&(W=W.replace(f,"")),0<W.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(I)}p=59}switch(p){case 123:for(h=(W=W.trim()).charCodeAt(0),m=1,z=++I;I<B;){switch(p=u.charCodeAt(I)){case 123:m++;break;case 125:m--;break;case 47:switch(p=u.charCodeAt(I+1)){case 42:case 47:e:{for(P=I+1;P<Z;++P)switch(u.charCodeAt(P)){case 47:if(42===p&&42===u.charCodeAt(P-1)&&I+2!==P){I=P+1;break e}break;case 10:if(47===p){I=P+1;break e}}I=P}}break;case 91:p++;case 40:p++;case 34:case 39:for(;I++<Z&&u.charCodeAt(I)!==p;);}if(0===m)break;I++}if(m=u.substring(z,I),0===h&&(h=(W=W.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<F&&(W=W.replace(f,"")),p=W.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=N}if(z=(m=t(r,F,m,p,d+1)).length,0<A&&(w=s(3,m,F=n(N,W,L),r,C,E,z,p,d,l),W=F.join(""),void 0!==w&&0===(z=(m=w.trim()).length)&&(p=0,m="")),0<z)switch(p){case 115:W=W.replace(x,a);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(g,"$1 $2"))+"{"+m+"}",m=1===D||2===D&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===l&&(H+=m,m="")}else m=""}else m=t(r,n(r,W,L),m,l,d+1);Y+=m,m=L=F=P=h=0,W="",p=u.charCodeAt(++I);break;case 125:case 59:if(1<(z=(W=(0<F?W.replace(f,""):W).trim()).length))switch(0===P&&(h=W.charCodeAt(0),45===h||96<h&&123>h)&&(z=(W=W.replace(" ",":")).length),0<A&&void 0!==(w=s(1,W,r,e,C,E,H.length,l,d,l))&&0===(z=(W=w.trim()).length)&&(W="\0\0"),h=W.charCodeAt(0),p=W.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){U+=W+u.charAt(I);break}default:58!==W.charCodeAt(z-1)&&(H+=i(W,h,p,W.charCodeAt(2)))}L=F=P=h=0,W="",p=u.charCodeAt(++I)}}switch(p){case 13:case 10:47===k?k=0:0===1+h&&107!==l&&0<W.length&&(F=1,W+="\0"),0<A*R&&s(0,W,r,e,C,E,H.length,l,d,l),E=1,C++;break;case 59:case 125:if(0===k+M+S+_){E++;break}default:switch(E++,v=u.charAt(I),p){case 9:case 32:if(0===M+_+k)switch(T){case 44:case 58:case 9:case 32:v="";break;default:32!==p&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===M+k+_&&(F=L=1,v="\f"+v);break;case 108:if(0===M+k+_+O&&0<P)switch(I-P){case 2:112===T&&58===u.charCodeAt(I-3)&&(O=T);case 8:111===j&&(O=j)}break;case 58:0===M+k+_&&(P=I);break;case 44:0===k+S+M+_&&(F=1,v+="\r");break;case 34:case 39:0===k&&(M=M===p?0:0===M?p:M);break;case 91:0===M+k+S&&_++;break;case 93:0===M+k+S&&_--;break;case 41:0===M+k+_&&S--;break;case 40:if(0===M+k+_){if(0===h)if(2*T+3*j===533);else h=1;S++}break;case 64:0===k+S+M+_+P+m&&(m=1);break;case 42:case 47:if(!(0<M+_+S))switch(k){case 0:switch(2*p+3*u.charCodeAt(I+1)){case 235:k=47;break;case 220:z=I,k=42}break;case 42:47===p&&42===T&&z+2!==I&&(33===u.charCodeAt(z+2)&&(H+=u.substring(z,I+1)),v="",k=0)}}0===k&&(W+=v)}j=T,T=p,I++}if(0<(z=H.length)){if(F=r,0<A&&(void 0!==(w=s(2,H,F,e,C,E,z,l,d,l))&&0===(H=w).length))return U+H+Y;if(H=F.join(",")+"{"+H+"}",0!==D*O){switch(2!==D||o(H,2)||(O=0),O){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}O=0}}return U+H+Y}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=r(e[l]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===D||2===D&&o(u,1)?"-webkit-"+u+u:u}if(0===D||2===D&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return h.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,u,c){for(var f,d=0,h=t;d<A;++d)switch(f=j[d].call(l,e,h,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!==typeof e?D=1:(D=2,P=e):D=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var i=s(-1,n,r,r,C,E,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(N,r,n,0,0);return 0<A&&(void 0!==(i=s(-2,o,r,r,C,E,o.length,0,0,0))&&(o=i)),"",O=0,E=C=1,o}var c=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,E=1,C=1,O=0,D=1,N=[],j=[],A=0,P=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:A=j.length=0;break;default:if("function"===typeof t)j[A++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=u,void 0!==e&&u(e),l},u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return l.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=n(62110),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},v=Object.freeze([]),g=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var x="undefined"!=typeof process&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",_="5.3.5",k="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),M={};function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&T(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),C=new Map,O=new Map,D=1,N=function(e){if(C.has(e))return C.get(e);for(;O.has(D);)D++;var t=D++;return C.set(e,t),O.set(t,e),t},j=function(e){return O.get(e)},A=function(e,t){t>=D&&(D=t+1),C.set(e,t),O.set(t,e)},P="style["+x+'][data-styled-version="5.3.5"]',R=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),I=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(R);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(A(l,u),I(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},L=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},z=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.5");var a=L();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},B=function(){function e(e){var t=this.element=z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}T(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Z=function(){function e(e){var t=this.element=z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=k,Y={isServer:!k,useCSSOMInjection:!S},U=function(){function e(e,t,n){void 0===e&&(e=g),void 0===t&&(t={}),this.options=h({},Y,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(P),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(x)&&(F(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return N(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new W(i):r?new B(i):new Z(i),new E(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=j(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=x+".g"+i+'[id="'+o+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=/(a)(d)/gi,q=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=q(t%52)+n;return(q(t%52)+n).replace(V,"$1-$2")}var X=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return X(5381,e)};function Q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var K=$("5.3.5"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Q(e),this.componentId=t,this.baseHash=X(K,t),this.baseStyle=n,U.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ye(this.rules,e,t,n).join(""),a=G(X(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=X(this.baseHash,n.hash),c="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var h=ye(d,e,t,n),p=Array.isArray(h)?h.join(""):h;l=X(l,p+f),c+=p}}if(c){var m=G(l>>>0);if(!t.hasNameForId(r,m)){var v=n(c,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,i,o=void 0===e?g:e,a=o.options,u=void 0===a?g:a,l=o.plugins,c=void 0===l?v:l,f=new s(u),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,u,l,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,o){return 0===r&&-1!==te.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var u=e.replace(ee,""),l=o&&a?a+" "+o+" { "+u+" }":u;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),f(a||!o?"":o,l)}return f.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||T(15),X(e,t.name)}),5381).toString():"",m}var re=i.createContext(),ie=re.Consumer,oe=i.createContext(),ae=(oe.Consumer,new U),se=ne();function ue(){return(0,i.useContext)(re)||ae}function le(){return(0,i.useContext)(oe)||se}function ce(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ue(),s=(0,i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,i.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,i.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(re.Provider,{value:s},i.createElement(oe.Provider,{value:u},e.children))}var fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return T(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),de=/([A-Z])/,he=/([A-Z])/g,pe=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function ve(e){return de.test(e)?e.replace(he,me).replace(pe,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function ye(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ye(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ge(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ye(e(t),t,n,r):e instanceof fe?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!ge(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?o.push(ve(a)+":",t[a],";"):m(t[a])?o.push.apply(o,e(t[a],a)):o.push(ve(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in u?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||m(e)?be(ye(p(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:be(ye(p(e,n)))}new Set;var xe=function(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme},_e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Se(e){return e.replace(_e,"-").replace(ke,"")}var Me=function(e){return G($(e)>>>0)};function Te(e){return"string"==typeof e&&!0}var Ee=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,n){var r=e[n];Ee(t)&&Ee(r)?De(r,t):e[n]=t}function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(Ee(a))for(var s in a)Ce(s)&&Oe(e,a[s],s)}return e}var Ne=i.createContext(),je=Ne.Consumer;function Ae(e){var t=(0,i.useContext)(Ne),n=(0,i.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?T(8):t?h({},t,{},e):e:T(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.createElement(Ne.Provider,{value:n},e.children):null}var Pe={};function Re(e,t,n){var r=w(e),o=!Te(e),a=t.attrs,s=void 0===a?v:a,u=t.componentId,l=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Se(e);Pe[n]=(Pe[n]||0)+1;var r=n+"-"+Me("5.3.5"+n+Pe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,f=t.displayName,p=void 0===f?function(e){return Te(e)?"styled."+e:"Styled("+b(e)+")"}(e):f,m=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||l,x=r&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,_=t.shouldForwardProp;r&&e.shouldForwardProp&&(_=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var k,S=new J(n,m,r?e.componentStyle:void 0),M=S.isStatic&&0===s.length,T=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=g);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(xe(t,(0,i.useContext)(Ne),s)||g,t,o),m=p[0],v=p[1],b=function(e,t,n,r){var i=ue(),o=le();return t?e.generateAndInjectStyles(g,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,m),w=n,x=v.$as||t.$as||v.as||t.as||d,_=Te(x),k=v!==t?h({},t,{},v):t,S={};for(var M in k)"$"!==M[0]&&"as"!==M&&("forwardedAs"===M?S.as=k[M]:(l?l(M,c,x):!_||c(M))&&(S[M]=k[M]));return t.style&&v.style!==t.style&&(S.style=h({},t.style,{},v.style)),S.className=Array.prototype.concat(u,f,b!==f?b:null,t.className,v.className).filter(Boolean).join(" "),S.ref=w,(0,i.createElement)(x,S)}(k,e,t,M)};return T.displayName=p,(k=i.forwardRef(T)).attrs=x,k.componentStyle=S,k.displayName=p,k.shouldForwardProp=_,k.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,k.styledComponentId=m,k.target=r?e.target:e,k.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Te(e)?e:Se(b(e)));return Re(e,h({},i,{attrs:x,componentId:o}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?De({},e.defaultProps,t):t}}),k.toString=function(){return"."+k.styledComponentId},o&&d()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Ie=function(e){return function e(t,n,i){if(void 0===i&&(i=g),!(0,r.isValidElementType)(n))return T(1,String(n));var o=function(){return t(n,i,we.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,h({},i,{},r))},o.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Re,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));var Fe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),U.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ye(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&U.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=we.apply(void 0,[e].concat(n)),a="sc-global-"+Me(JSON.stringify(o)),s=new Fe(o,a);function u(e){var t=ue(),n=le(),r=(0,i.useContext)(Ne),o=(0,i.useRef)(t.allocateGSInstance(a)).current;return t.server&&l(o,e,t,r,n),(0,i.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,r,n),function(){return s.removeStyles(o,t)}}),[o,e,t,r,n]),null}function l(e,t,n,r,i){if(s.isStatic)s.renderStyles(e,M,n,i);else{var o=h({},t,{theme:xe(t,r,u.defaultProps)});s.renderStyles(e,o,n,i)}}return i.memo(u)}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=we.apply(void 0,[e].concat(n)).join(""),o=Me(i);return new fe(o,i)}var Be=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=L();return"<style "+[n&&'nonce="'+n+'"',x+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?T(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return T(2);var n=((t={})[x]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=L();return r&&(n.nonce=r),[i.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?T(2):i.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return T(3)},e}(),Ze=function(e){var t=i.forwardRef((function(t,n){var r=(0,i.useContext)(Ne),o=e.defaultProps,a=xe(t,r,o);return i.createElement(e,h({},t,{theme:a,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+b(e)+")",t},We=function(){return(0,i.useContext)(Ne)},He={StyleSheet:U,masterSheet:ae},Ye=Ie},86514:function(e){function t(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||u(e[o],o,new Set);return r;function u(e,t,o){if(o.has(e)){var l;try{l=", node was:"+JSON.stringify(e)}catch(d){l=""}throw new Error("Cyclic dependency"+l)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var c=a.get(e)||new Set;if(t=(c=Array.from(c)).length){o.add(e);do{var f=c[--t];u(f,s.get(f),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},65915:function(e,t,n){"use strict";var r=n(43841),i=n(96962),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function f(e){return(e||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function p(e){var t,r=("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{}).location||{},i={},o=typeof(e=e||r);if("blob:"===e.protocol)i=new g(unescape(e.pathname),{});else if("string"===o)for(t in i=new g(e,{}),h)delete i[t];else if("object"===o){for(t in e)t in h||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=s.test(e.href))}return i}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function v(e,t){e=(e=f(e)).replace(a,""),t=t||{};var n,r=l.exec(e),i=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],u=0;return o?s?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):s?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===i?u>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?o&&(n=n.slice(2)):u>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:o||m(i),slashesCount:u,rest:n}}function g(e,t,n){if(e=(e=f(e)).replace(a,""),!(this instanceof g))return new g(e,t,n);var o,s,u,l,h,y,b=d.slice(),w=typeof t,x=this,_=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!==typeof n&&(n=i.parse),o=!(s=v(e||"",t=p(t))).protocol&&!s.slashes,x.slashes=s.slashes||o&&t.slashes,x.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||c.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(x.protocol)))&&(b[3]=[/(.*)/,"pathname"]);_<b.length;_++)"function"!==typeof(l=b[_])?(u=l[0],y=l[1],u!==u?x[y]=e:"string"===typeof u?~(h="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"===typeof l[2]?(x[y]=e.slice(0,h),e=e.slice(h+l[2])):(x[y]=e.slice(h),e=e.slice(0,h))):(h=u.exec(e))&&(x[y]=h[1],e=e.slice(0,h.index)),x[y]=x[y]||o&&l[3]&&t[y]||"",l[4]&&(x[y]=x[y].toLowerCase())):e=l(e,x);n&&(x.query=n(x.query)),o&&t.slashes&&"/"!==x.pathname.charAt(0)&&(""!==x.pathname||""!==t.pathname)&&(x.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(o=!0),n.splice(r,1),a--);return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}(x.pathname,t.pathname)),"/"!==x.pathname.charAt(0)&&m(x.protocol)&&(x.pathname="/"+x.pathname),r(x.port,x.protocol)||(x.host=x.hostname,x.port=""),x.username=x.password="",x.auth&&(~(h=x.auth.indexOf(":"))?(x.username=x.auth.slice(0,h),x.username=encodeURIComponent(decodeURIComponent(x.username)),x.password=x.auth.slice(h+1),x.password=encodeURIComponent(decodeURIComponent(x.password))):x.username=encodeURIComponent(decodeURIComponent(x.auth)),x.auth=x.password?x.username+":"+x.password:x.username),x.origin="file:"!==x.protocol&&m(x.protocol)&&x.host?x.protocol+"//"+x.host:"null",x.href=x.toString()}g.prototype={set:function(e,t,n){var o=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(n||i.parse)(t)),o[e]=t;break;case"port":o[e]=t,r(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,u.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";o[e]=t.charAt(0)!==a?a+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(o.username=t.slice(0,s),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(s+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<d.length;l++){var c=d[l];c[4]&&(o[c[1]]=o[c[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&m(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"===typeof e||(e=i.stringify);var t,n=this,r=n.host,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var a=o+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(t="object"===typeof n.query?e(n.query):n.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}},g.extractProtocol=v,g.location=p,g.trimLeft=f,g.qs=i,e.exports=g},38655:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMutil:function(){return ew},DataSet:function(){return jC},DataView:function(){return AC},Graph2d:function(){return CA},Hammer:function(){return HD},Queue:function(){return OC},Timeline:function(){return rA},keycharm:function(){return $D},moment:function(){return RC},timeline:function(){return DA},util:function(){return Ub}});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var s,u={exports:{}};function l(){return s||(s=1,function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function c(e){return void 0===e}function f(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Xn(e,t,n,r,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=v()),e._pf}function y(e){if(null==e._isValid){var t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function b(e){var t=m(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=r.momentProperties=[],x=!1;function _(e,t){var n,r,i,o=w.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)c(i=t[r=w[n]])||(e[r]=i);return e}function k(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,r.updateOffset(this),x=!1)}function S(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,a,s=[],l=arguments.length;for(o=0;o<l;o++){if(i="","object"===typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])u(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];s.push(i)}M(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,C={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),C[e]||(M(t),C[e]=!0)}function D(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e){var t,n;for(n in e)u(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function j(e,t){var n,r=p({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},B={};function Z(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(B[e]=i),t&&(B[t[0]]=function(){return I(i.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(F);for(t=0,n=r.length;t<n;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=W(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(t,e):r[i];return o}}function Y(e,t){return e.isValid()?(t=U(t,e.localeData()),z[t]=z[t]||H(t),z[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function X(){return this._invalidDate}var $="%d",Q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return D(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ie(e){return"string"===typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)u(e,n)&&(t=ie(n))&&(r[t]=e[n]);return r}var ae={};function se(e,t){ae[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function fe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function de(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=fe(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function me(e){return D(this[e=ie(e)])?this[e]():this}function ve(e,t){if("object"===typeof e){var n,r=ue(e=oe(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=ie(e)]))return this[e](t);return this}var ge,ye=/\d/,be=/\d\d/,we=/\d{3}/,xe=/\d{4}/,_e=/[+-]?\d{6}/,ke=/\d\d?/,Se=/\d\d\d\d?/,Me=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Ee=/\d{1,4}/,Ce=/[+-]?\d{1,6}/,Oe=/\d+/,De=/[+-]?\d+/,Ne=/Z|[+-]\d\d:?\d\d/gi,je=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,Pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(e,t,n){ge[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Ie(e,t){return u(ge,e)?ge[e](t._strict,t._locale):new RegExp(Fe(e))}function Fe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var ze={};function Be(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),f(t)&&(i=function(e,n){n[t]=fe(e)}),r=e.length,n=0;n<r;n++)ze[e[n]]=i}function Ze(e,t){Be(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function We(e,t,n){null!=t&&u(ze,e)&&ze[e](t,n._a,n,e)}var He,Ye=0,Ue=1,Ve=2,qe=3,Ge=4,Xe=5,$e=6,Qe=7,Ke=8;function Je(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}He=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Z("M",["MM",2],"Mo",(function(){return this.month()+1})),Z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Re("M",ke),Re("MM",ke,be),Re("MMM",(function(e,t){return t.monthsShortRegex(e)})),Re("MMMM",(function(e,t){return t.monthsRegex(e)})),Be(["M","MM"],(function(e,t){t[Ue]=fe(e)-1})),Be(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ue]=i:g(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Pe,ot=Pe;function at(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function st(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=He.call(this._shortMonthsParse,a))?i:null:-1!==(i=He.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=He.call(this._shortMonthsParse,a))||-1!==(i=He.call(this._longMonthsParse,a))?i:null:-1!==(i=He.call(this._longMonthsParse,a))||-1!==(i=He.call(this._shortMonthsParse,a))?i:null}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ct(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=fe(t);else if(!f(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ft(e){return null!=e?(ct(this,e),r.updateOffset(this,!0),this):he(this,"Month")}function dt(){return et(this.year(),this.month())}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Le(r[t]),i[t]=Le(i[t]);for(t=0;t<24;t++)o[t]=Le(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function vt(e){return le(e)?366:365}Z("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),Z(0,["YY",2],0,(function(){return this.year()%100})),Z(0,["YYYY",4],0,"year"),Z(0,["YYYYY",5],0,"year"),Z(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Re("Y",De),Re("YY",ke,be),Re("YYYY",Ee,xe),Re("YYYYY",Ce,_e),Re("YYYYYY",Ce,_e),Be(["YYYYY","YYYYYY"],Ye),Be("YYYY",(function(e,t){t[Ye]=2===e.length?r.parseTwoDigitYear(e):fe(e)})),Be("YY",(function(e,t){t[Ye]=r.parseTwoDigitYear(e)})),Be("Y",(function(e,t){t[Ye]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return fe(e)+(fe(e)>68?1900:2e3)};var gt=de("FullYear",!0);function yt(){return le(this.year())}function bt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function wt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}function _t(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+xt(e,r,i);return s<=0?a=vt(o=e-1)+s:s>vt(e)?(o=e+1,a=s-vt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function kt(e,t,n){var r,i,o=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+St(i=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function St(e,t,n){var r=xt(e,t,n),i=xt(e+1,t,n);return(vt(e)-r+i)/7}function Mt(e){return kt(e,this._week.dow,this._week.doy).week}Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Re("w",ke),Re("ww",ke,be),Re("W",ke),Re("WW",ke,be),Ze(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=fe(e)}));var Tt={dow:0,doy:6};function Et(){return this._week.dow}function Ct(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Dt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Nt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function jt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}Z("d",0,"do","day"),Z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Re("d",ke),Re("e",ke),Re("E",ke),Re("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Re("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Re("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ze(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e})),Ze(["d","e","E"],(function(e,t,n,r){t[r]=fe(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Pe,Lt=Pe,zt=Pe;function Bt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Zt(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=He.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=He.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=He.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=He.call(this._weekdaysParse,a))||-1!==(i=He.call(this._shortWeekdaysParse,a))||-1!==(i=He.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=He.call(this._shortWeekdaysParse,a))||-1!==(i=He.call(this._weekdaysParse,a))||-1!==(i=He.call(this._minWeekdaysParse,a))?i:null:-1!==(i=He.call(this._minWeekdaysParse,a))||-1!==(i=He.call(this._weekdaysParse,a))||-1!==(i=He.call(this._shortWeekdaysParse,a))?i:null}function Yt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Nt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=jt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),i=Le(this.weekdaysShort(n,"")),o=Le(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){Z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,Kt),Z("k",["kk",2],0,Jt),Z("hmm",0,0,(function(){return""+Kt.apply(this)+I(this.minutes(),2)})),Z("hmmss",0,0,(function(){return""+Kt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),Z("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),Z("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Re("a",tn),Re("A",tn),Re("H",ke),Re("h",ke),Re("k",ke),Re("HH",ke,be),Re("hh",ke,be),Re("kk",ke,be),Re("hmm",Se),Re("hmmss",Me),Re("Hmm",Se),Re("Hmmss",Me),Be(["H","HH"],qe),Be(["k","kk"],(function(e,t,n){var r=fe(e);t[qe]=24===r?0:r})),Be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Be(["h","hh"],(function(e,t,n){t[qe]=fe(e),g(n).bigHour=!0})),Be("hmm",(function(e,t,n){var r=e.length-2;t[qe]=fe(e.substr(0,r)),t[Ge]=fe(e.substr(r)),g(n).bigHour=!0})),Be("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=fe(e.substr(0,r)),t[Ge]=fe(e.substr(r,2)),t[Xe]=fe(e.substr(i)),g(n).bigHour=!0})),Be("Hmm",(function(e,t,n){var r=e.length-2;t[qe]=fe(e.substr(0,r)),t[Ge]=fe(e.substr(r))})),Be("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=fe(e.substr(0,r)),t[Ge]=fe(e.substr(r,2)),t[Xe]=fe(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=de("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:P,longDateFormat:V,invalidDate:G,ordinal:$,dayOfMonthOrdinalParse:Q,relativeTime:J,months:tt,monthsShort:nt,week:Tt,weekdays:Pt,weekdaysMin:It,weekdaysShort:Rt,meridiemParse:rn},ln={},cn={};function fn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).length,n=(n=dn(e[o+1]))?n.split("-"):null;t>0;){if(r=mn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&fn(i,n)>=t-1)break;t--}o++}return sn}function pn(e){return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=sn._abbr,a("./locale/"+t),vn(n)}catch(r){ln[t]=null}return ln[t]}function vn(e,t){var n;return e&&((n=c(t)?bn(e):gn(e,t))?sn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function gn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new A(j(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),vn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,i=un;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(j(ln[e]._config,t)):(null!=(r=mn(e))&&(i=r._config),t=j(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=ln[e],ln[e]=n),vn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===vn()&&vn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!o(e)){if(t=mn(e))return t;e=[e]}return hn(e)}function wn(){return E(ln)}function xn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ve]<1||n[Ve]>et(n[Ye],n[Ue])?Ve:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Ge]||0!==n[Xe]||0!==n[$e])?qe:n[Ge]<0||n[Ge]>59?Ge:n[Xe]<0||n[Xe]>59?Xe:n[$e]<0||n[$e]>999?$e:-1,g(e)._overflowDayOfYear&&(t<Ye||t>Ve)&&(t=Ve),g(e)._overflowWeeks&&-1===t&&(t=Qe),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(e){var t,n,r,i,o,a,s=e._i,u=_n.exec(s)||kn.exec(s),l=Mn.length,c=Tn.length;if(u){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(Mn[t][1].exec(u[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(Tn[t][1].exec(u[3])){o=(u[2]||" ")+Tn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Sn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Wn(e)}else e._isValid=!1}function Nn(e,t,n,r,i,o){var a=[jn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function jn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Pn(e,t,n){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Rn(e,t,n){if(e)return On[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function In(e){var t,n=Cn.exec(An(e._i));if(n){if(t=Nn(n[4],n[3],n[2],n[5],n[6],n[7]),!Pn(n[1],t,e))return;e._a=t,e._tzm=Rn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=En.exec(e._i);null===t?(Dn(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ln(e,t,n){return null!=e?e:null!=t?t:n}function zn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Bn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=zn(e),e._w&&null==e._a[Ve]&&null==e._a[Ue]&&Zn(e),null!=e._dayOfYear&&(o=Ln(e._a[Ye],r[Ye]),(e._dayOfYear>vt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Ge]&&0===e._a[Xe]&&0===e._a[$e]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?wt:bt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Zn(e){var t,n,r,i,o,a,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Ln(t.GG,e._a[Ye],kt($n(),1,4).year),r=Ln(t.W,1),((i=Ln(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,l=kt($n(),o,a),n=Ln(t.gg,e._a[Ye],l.year),r=Ln(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>St(n,o,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(s=_t(n,r,i,o,a),e._a[Ye]=s.year,e._dayOfYear=s.dayOfYear)}function Wn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,o,a,s,u,l=""+e._i,c=l.length,f=0;for(u=(i=U(e._f,e._locale).match(F)||[]).length,t=0;t<u;t++)o=i[t],(n=(l.match(Ie(o,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&g(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),f+=n.length),B[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),We(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=c-f,l.length>0&&g(e).unusedInput.push(l),e._a[qe]<=12&&!0===g(e).bigHour&&e._a[qe]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[qe]=Hn(e._locale,e._a[qe],e._meridiem),null!==(s=g(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),Bn(e),xn(e)}else In(e);else Dn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Yn(e){var t,n,r,i,o,a,s=!1,u=e._f.length;if(0===u)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Wn(t),y(t)&&(a=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=oe(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Bn(e)}}function Vn(e){var t=new k(xn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new k(xn(t)):(d(t)?e._d=t:o(n)?Yn(e):n?Wn(e):Gn(e),y(e)||(e._d=null),e))}function Gn(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Fn(e):o(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Bn(e)):s(t)?Un(e):f(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Xn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,Vn(a)}function $n(e,t,n,r){return Xn(e,t,n,r,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=$n.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Kn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=$n.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Jn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return $n();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(u(e,t)&&(-1===He.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==fe(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Or(NaN)}function sr(e){var t=oe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=ir(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function ur(e){return e instanceof sr}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&fe(e[r])!==fe(t[r]))&&a++;return a+o}function fr(e,t){Z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}fr("Z",":"),fr("ZZ",""),Re("Z",je),Re("ZZ",je),Be(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(je,e)}));var dr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+fe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||d(e)?e.valueOf():$n(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):$n(e).local()}function mr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=hr(je,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Pr(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function gr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hr(Ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xr(e){return!!this.isValid()&&(e=e?$n(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=qn(t))._a?(e=t._isUTC?m(t._a):$n(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,i,o=e,a=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:f(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Er.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:fe(a[Ve])*n,h:fe(a[qe])*n,m:fe(a[Ge])*n,s:fe(a[Xe])*n,ms:fe(lr(1e3*a[$e]))*n}):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,o={y:Dr(a[2],n),M:Dr(a[3],n),w:Dr(a[4],n),d:Dr(a[5],n),h:Dr(a[6],n),m:Dr(a[7],n),s:Dr(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=jr($n(o.from),$n(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new sr(o),ur(e)&&u(e,"_locale")&&(r._locale=e._locale),ur(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Nr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function jr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Nr(e,t):((n=Nr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Pr(this,Or(n,r),e),this}}function Pr(e,t,n,i){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(i=null==i||i,s&&ct(e,he(e,"Month")+s*n),a&&pe(e,"Date",he(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Or.fn=sr.prototype,Or.invalid=ar;var Rr=Ar(1,"add"),Ir=Ar(-1,"subtract");function Fr(e){return"string"===typeof e||e instanceof String}function Lr(e){return S(e)||d(e)||Fr(e)||f(e)||Br(e)||zr(e)||null===e||void 0===e}function zr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Br(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!f(t)&&Fr(e)})).length),t&&n}function Zr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Wr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Lr(arguments[0])?(e=arguments[0],t=void 0):Zr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||$n(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,$n(n)))}function Yr(){return new k(this)}function Ur(e,t){var n=S(e)?e:$n(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=S(e)?e:$n(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var i=S(e)?e:$n(e),o=S(t)?t:$n(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Gr(e,t){var n,r=S(e)?e:$n(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $r(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ie(t)){case"year":o=Kr(this,r)/12;break;case"month":o=Kr(this,r);break;case"quarter":o=Kr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ce(o)}function Kr(e,t){if(e.date()<t.date())return-Kr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||$n(e).isValid())?Or({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from($n(),e)}function oi(e,t){return this.isValid()&&(S(e)&&e.isValid()||$n(e).isValid())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to($n(),e)}function si(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var ci=1e3,fi=60*ci,di=60*fi,hi=3506328*di;function pi(e,t){return(e%t+t)%t}function mi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function vi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*fi),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,fi);break;case"second":t=this._d.valueOf(),t-=pi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-pi(t+(this._isUTC?0:this.utcOffset()*fi),di)-1;break;case"minute":t=this._d.valueOf(),t+=fi-pi(t,fi)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function xi(){return new Date(this.valueOf())}function _i(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ki(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function Mi(){return y(this)}function Ti(){return p({},g(this))}function Ei(){return g(this).overflow}function Ci(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(e,t){var n,i,o,a=this._eras||bn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"===typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Di(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]}function Ni(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function ji(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ri(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ii(e){return u(this,"_erasNameRegex")||Hi.call(this),e?this._erasNameRegex:this._erasRegex}function Fi(e){return u(this,"_erasAbbrRegex")||Hi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Li(e){return u(this,"_erasNarrowRegex")||Hi.call(this),e?this._erasNarrowRegex:this._erasRegex}function zi(e,t){return t.erasAbbrRegex(e)}function Bi(e,t){return t.erasNameRegex(e)}function Zi(e,t){return t.erasNarrowRegex(e)}function Wi(e,t){return t._eraYearOrdinalRegex||Oe}function Hi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Le(a[e].name)),n.push(Le(a[e].abbr)),i.push(Le(a[e].narrow)),o.push(Le(a[e].name)),o.push(Le(a[e].abbr)),o.push(Le(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Yi(e,t){Z(0,[e,e.length],0,t)}function Ui(e){return Qi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Qi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return St(this.year(),1,4)}function Gi(){return St(this.isoWeekYear(),1,4)}function Xi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function $i(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Qi(e,t,n,r,i){var o;return null==e?kt(this,r,i).year:(t>(o=St(e,r,i))&&(t=o),Ki.call(this,e,t,n,r,i))}function Ki(e,t,n,r,i){var o=_t(e,t,n,r,i),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ji(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}Z("N",0,0,"eraAbbr"),Z("NN",0,0,"eraAbbr"),Z("NNN",0,0,"eraAbbr"),Z("NNNN",0,0,"eraName"),Z("NNNNN",0,0,"eraNarrow"),Z("y",["y",1],"yo","eraYear"),Z("y",["yy",2],0,"eraYear"),Z("y",["yyy",3],0,"eraYear"),Z("y",["yyyy",4],0,"eraYear"),Re("N",zi),Re("NN",zi),Re("NNN",zi),Re("NNNN",Bi),Re("NNNNN",Zi),Be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Re("y",Oe),Re("yy",Oe),Re("yyy",Oe),Re("yyyy",Oe),Re("yo",Wi),Be(["y","yy","yyy","yyyy"],Ye),Be(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ye]=n._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)})),Z(0,["gg",2],0,(function(){return this.weekYear()%100})),Z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Re("G",De),Re("g",De),Re("GG",ke,be),Re("gg",ke,be),Re("GGGG",Ee,xe),Re("gggg",Ee,xe),Re("GGGGG",Ce,_e),Re("ggggg",Ce,_e),Ze(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=fe(e)})),Ze(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),Z("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Re("Q",ye),Be("Q",(function(e,t){t[Ue]=3*(fe(e)-1)})),Z("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Re("D",ke),Re("DD",ke,be),Re("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Be(["D","DD"],Ve),Be("Do",(function(e,t){t[Ve]=fe(e.match(ke)[0])}));var eo=de("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}Z("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Re("DDD",Te),Re("DDDD",we),Be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=fe(e)})),Z("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Re("m",ke),Re("mm",ke,be),Be(["m","mm"],Ge);var no=de("Minutes",!1);Z("s",["ss",2],0,"second"),re("second","s"),se("second",15),Re("s",ke),Re("ss",ke,be),Be(["s","ss"],Xe);var ro,io,oo=de("Seconds",!1);for(Z("S",0,0,(function(){return~~(this.millisecond()/100)})),Z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Z(0,["SSS",3],0,"millisecond"),Z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Re("S",Te,ye),Re("SS",Te,be),Re("SSS",Te,we),ro="SSSS";ro.length<=9;ro+="S")Re(ro,Oe);function ao(e,t){t[$e]=fe(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Be(ro,ao);function so(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=de("Milliseconds",!1),Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");var lo=k.prototype;function co(e){return $n(1e3*e)}function fo(){return $n.apply(null,arguments).parseZone()}function ho(e){return e}lo.add=Rr,lo.calendar=Hr,lo.clone=Yr,lo.diff=Qr,lo.endOf=yi,lo.format=ni,lo.from=ri,lo.fromNow=ii,lo.to=oi,lo.toNow=ai,lo.get=me,lo.invalidAt=Ei,lo.isAfter=Ur,lo.isBefore=Vr,lo.isBetween=qr,lo.isSame=Gr,lo.isSameOrAfter=Xr,lo.isSameOrBefore=$r,lo.isValid=Mi,lo.lang=ui,lo.locale=si,lo.localeData=li,lo.max=Kn,lo.min=Qn,lo.parsingFlags=Ti,lo.set=ve,lo.startOf=gi,lo.subtract=Ir,lo.toArray=_i,lo.toObject=ki,lo.toDate=xi,lo.toISOString=ei,lo.inspect=ti,"undefined"!==typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Si,lo.toString=Jr,lo.unix=wi,lo.valueOf=bi,lo.creationData=Ci,lo.eraName=ji,lo.eraNarrow=Ai,lo.eraAbbr=Pi,lo.eraYear=Ri,lo.year=gt,lo.isLeapYear=yt,lo.weekYear=Ui,lo.isoWeekYear=Vi,lo.quarter=lo.quarters=Ji,lo.month=ft,lo.daysInMonth=dt,lo.week=lo.weeks=Ot,lo.isoWeek=lo.isoWeeks=Dt,lo.weeksInYear=Xi,lo.weeksInWeekYear=$i,lo.isoWeeksInYear=qi,lo.isoWeeksInISOWeekYear=Gi,lo.date=eo,lo.day=lo.days=Ut,lo.weekday=Vt,lo.isoWeekday=qt,lo.dayOfYear=to,lo.hour=lo.hours=on,lo.minute=lo.minutes=no,lo.second=lo.seconds=oo,lo.millisecond=lo.milliseconds=io,lo.utcOffset=vr,lo.utc=yr,lo.local=br,lo.parseZone=wr,lo.hasAlignedHourOffset=xr,lo.isDST=_r,lo.isLocal=Sr,lo.isUtcOffset=Mr,lo.isUtc=Tr,lo.isUTC=Tr,lo.zoneAbbr=so,lo.zoneName=uo,lo.dates=T("dates accessor is deprecated. Use date instead.",eo),lo.months=T("months accessor is deprecated. Use month instead",ft),lo.years=T("years accessor is deprecated. Use year instead",gt),lo.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),lo.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var po=A.prototype;function mo(e,t,n,r){var i=bn(),o=m().set(r,t);return i[n](o,e)}function vo(e,t,n){if(f(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}function go(e,t,n,r){"boolean"===typeof e?(f(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,f(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return mo(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=mo(t,(i+a)%7,r,"day");return s}function yo(e,t){return vo(e,t,"months")}function bo(e,t){return vo(e,t,"monthsShort")}function wo(e,t,n){return go(e,t,n,"weekdays")}function xo(e,t,n){return go(e,t,n,"weekdaysShort")}function _o(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=R,po.longDateFormat=q,po.invalidDate=X,po.ordinal=K,po.preparse=ho,po.postformat=ho,po.relativeTime=ee,po.pastFuture=te,po.set=N,po.eras=Oi,po.erasParse=Di,po.erasConvertYear=Ni,po.erasAbbrRegex=Fi,po.erasNameRegex=Ii,po.erasNarrowRegex=Li,po.months=at,po.monthsShort=st,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=ht,po.week=Mt,po.firstDayOfYear=Ct,po.firstDayOfWeek=Et,po.weekdays=Bt,po.weekdaysMin=Wt,po.weekdaysShort=Zt,po.weekdaysParse=Yt,po.weekdaysRegex=Gt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=$t,po.isPM=nn,po.meridiem=an,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===fe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",vn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",bn);var ko=Math.abs;function So(){var e=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),e.milliseconds=ko(e.milliseconds),e.seconds=ko(e.seconds),e.minutes=ko(e.minutes),e.hours=ko(e.hours),e.months=ko(e.months),e.years=ko(e.years),this}function Mo(e,t,n,r){var i=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function To(e,t){return Mo(this,e,t,1)}function Eo(e,t){return Mo(this,e,t,-1)}function Co(e){return e<0?Math.floor(e):Math.ceil(e)}function Oo(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Co(No(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=ce(o/1e3),u.seconds=e%60,t=ce(e/60),u.minutes=t%60,n=ce(t/60),u.hours=n%24,a+=ce(n/24),s+=i=ce(Do(a)),a-=Co(No(i)),r=ce(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Do(e){return 4800*e/146097}function No(e){return 146097*e/4800}function jo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Do(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(No(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*fe(this._months/12):NaN}function Po(e){return function(){return this.as(e)}}var Ro=Po("ms"),Io=Po("s"),Fo=Po("m"),Lo=Po("h"),zo=Po("d"),Bo=Po("w"),Zo=Po("M"),Wo=Po("Q"),Ho=Po("y");function Yo(){return Or(this)}function Uo(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var qo=Vo("milliseconds"),Go=Vo("seconds"),Xo=Vo("minutes"),$o=Vo("hours"),Qo=Vo("days"),Ko=Vo("months"),Jo=Vo("years");function ea(){return ce(this.days()/7)}var ta=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ia(e,t,n,r){var i=Or(e).abs(),o=ta(i.as("s")),a=ta(i.as("m")),s=ta(i.as("h")),u=ta(i.as("d")),l=ta(i.as("M")),c=ta(i.as("w")),f=ta(i.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,ra.apply(null,d)}function oa(e){return void 0===e?ta:"function"===typeof e&&(ta=e,!0)}function aa(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},na,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ia(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ua=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=ua(this._milliseconds)/1e3,l=ua(this._days),c=ua(this._months),f=this.asSeconds();return f?(e=ce(u/60),t=ce(e/60),u%=60,e%=60,n=ce(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=la(this._months)!==la(f)?"-":"",a=la(this._days)!==la(f)?"-":"",s=la(this._milliseconds)!==la(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var fa=sr.prototype;return fa.isValid=or,fa.abs=So,fa.add=To,fa.subtract=Eo,fa.as=jo,fa.asMilliseconds=Ro,fa.asSeconds=Io,fa.asMinutes=Fo,fa.asHours=Lo,fa.asDays=zo,fa.asWeeks=Bo,fa.asMonths=Zo,fa.asQuarters=Wo,fa.asYears=Ho,fa.valueOf=Ao,fa._bubble=Oo,fa.clone=Yo,fa.get=Uo,fa.milliseconds=qo,fa.seconds=Go,fa.minutes=Xo,fa.hours=$o,fa.days=Qo,fa.weeks=ea,fa.months=Ko,fa.years=Jo,fa.humanize=sa,fa.toISOString=ca,fa.toString=ca,fa.toJSON=ca,fa.locale=si,fa.localeData=li,fa.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),fa.lang=ui,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),Re("x",De),Re("X",Ae),Be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Be("x",(function(e,t,n){n._d=new Date(fe(e))})),r.version="2.29.4",i($n),r.fn=lo,r.min=er,r.max=tr,r.now=nr,r.utc=m,r.unix=co,r.months=yo,r.isDate=d,r.locale=vn,r.invalid=b,r.duration=Or,r.isMoment=S,r.weekdays=wo,r.parseZone=fo,r.localeData=bn,r.isDuration=ur,r.monthsShort=bo,r.weekdaysMin=_o,r.defineLocale=gn,r.updateLocale=yn,r.locales=wn,r.weekdaysShort=xo,r.normalizeUnits=ie,r.relativeTimeRounding=oa,r.relativeTimeThreshold=aa,r.calendarFormat=Wr,r.prototype=lo,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(u)),u.exports}!function(e,t){var n;n=function(e){function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}return e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},n(l())}(),function(e,t){var n;n=function(e){var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})},n(l())}(),function(e,t){var n;n=function(e){var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i],r=e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return r},n(l())}(),function(e,t){var n;n=function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},n(l())}(),function(e,t){var n;n=function(e){var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}});return t},n(l())}(),function(e,t){var n;n=function(e){var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,o=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return o},n(l())}(),function(e,t){var n;n=function(e){var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function o(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}return e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:o,M:"miesi\u0105c",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},n(l())}(),function(e,t){var n;n=function(e){function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+function(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n],+e)}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i],r=e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}});return r},n(l())}(),function(e,t){var n;n=function(e){function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+function(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n],+e)}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}var r=e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}});return r},n(l())}();var c={exports:{}},f=function(e){try{return!!e()}catch(t){return!0}},d=!f((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),h=d,p=Function.prototype,m=p.bind,v=p.call,g=h&&m.bind(v,v),y=h?function(e){return e&&g(e)}:function(e){return e&&function(){return v.apply(e,arguments)}},b=Math.ceil,w=Math.floor,x=function(e){var t=+e;return t!==t||0===t?0:(t>0?w:b)(t)},_=function(e){return e&&e.Math==Math&&e},k=_("object"==typeof globalThis&&globalThis)||_("object"==typeof window&&window)||_("object"==typeof self&&self)||_("object"==typeof r&&r)||function(){return this}()||Function("return this")(),S={exports:{}},M=k,T=Object.defineProperty,E=function(e,t){try{T(M,e,{value:t,configurable:!0,writable:!0})}catch(n){M[e]=t}return t},C="__core-js_shared__",O=k[C]||E(C,{}),D=O;(S.exports=function(e,t){return D[e]||(D[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"pure",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var N,j,A=k.TypeError,P=function(e){if(void 0==e)throw A("Can't call method on "+e);return e},R=P,I=k.Object,F=function(e){return I(R(e))},L=F,z=y({}.hasOwnProperty),B=Object.hasOwn||function(e,t){return z(L(e),t)},Z=y,W=0,H=Math.random(),Y=Z(1..toString),U=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Y(++W+H,36)},V={},q=function(e){return"function"==typeof e},G=V,X=k,$=q,Q=function(e){return $(e)?e:void 0},K=function(e,t){return arguments.length<2?Q(G[e])||Q(X[e]):G[e]&&G[e][t]||X[e]&&X[e][t]},J=K("navigator","userAgent")||"",ee=k,te=J,ne=ee.process,re=ee.Deno,ie=ne&&ne.versions||re&&re.version,oe=ie&&ie.v8;oe&&(j=(N=oe.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!j&&te&&(!(N=te.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=te.match(/Chrome\/(\d+)/))&&(j=+N[1]);var ae=j,se=ae,ue=f,le=!!Object.getOwnPropertySymbols&&!ue((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&se&&se<41})),ce=le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fe=k,de=S.exports,he=B,pe=U,me=le,ve=ce,ge=de("wks"),ye=fe.Symbol,be=ye&&ye.for,we=ve?ye:ye&&ye.withoutSetter||pe,xe=function(e){if(!he(ge,e)||!me&&"string"!=typeof ge[e]){var t="Symbol."+e;me&&he(ye,e)?ge[e]=ye[e]:ge[e]=ve&&be?be(t):we(t)}return ge[e]},_e={};_e[xe("toStringTag")]="z";var ke="[object z]"===String(_e),Se=y,Me=Se({}.toString),Te=Se("".slice),Ee=function(e){return Te(Me(e),8,-1)},Ce=k,Oe=ke,De=q,Ne=Ee,je=xe("toStringTag"),Ae=Ce.Object,Pe="Arguments"==Ne(function(){return arguments}()),Re=Oe?Ne:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Ae(e),je))?n:Pe?Ne(t):"Object"==(r=Ne(t))&&De(t.callee)?"Arguments":r},Ie=Re,Fe=k.String,Le=function(e){if("Symbol"===Ie(e))throw TypeError("Cannot convert a Symbol value to a string");return Fe(e)},ze=y,Be=x,Ze=Le,We=P,He=ze("".charAt),Ye=ze("".charCodeAt),Ue=ze("".slice),Ve=function(e){return function(t,n){var r,i,o=Ze(We(t)),a=Be(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Ye(o,a))<55296||r>56319||a+1===s||(i=Ye(o,a+1))<56320||i>57343?e?He(o,a):r:e?Ue(o,a,a+2):i-56320+(r-55296<<10)+65536}},qe={codeAt:Ve(!1),charAt:Ve(!0)},Ge=q,Xe=O,$e=y(Function.toString);Ge(Xe.inspectSource)||(Xe.inspectSource=function(e){return $e(e)});var Qe=Xe.inspectSource,Ke=q,Je=Qe,et=k.WeakMap,tt=Ke(et)&&/native code/.test(Je(et)),nt=q,rt=function(e){return"object"==typeof e?null!==e:nt(e)},it=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ot={},at=rt,st=k.document,ut=at(st)&&at(st.createElement),lt=function(e){return ut?st.createElement(e):{}},ct=lt,ft=!it&&!f((function(){return 7!=Object.defineProperty(ct("div"),"a",{get:function(){return 7}}).a})),dt=it&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ht=k,pt=rt,mt=ht.String,vt=ht.TypeError,gt=function(e){if(pt(e))return e;throw vt(mt(e)+" is not an object")},yt=d,bt=Function.prototype.call,wt=yt?bt.bind(bt):function(){return bt.apply(bt,arguments)},xt=y({}.isPrototypeOf),_t=K,kt=q,St=xt,Mt=ce,Tt=k.Object,Et=Mt?function(e){return"symbol"==typeof e}:function(e){var t=_t("Symbol");return kt(t)&&St(t.prototype,Tt(e))},Ct=k.String,Ot=function(e){try{return Ct(e)}catch(t){return"Object"}},Dt=q,Nt=Ot,jt=k.TypeError,At=function(e){if(Dt(e))return e;throw jt(Nt(e)+" is not a function")},Pt=At,Rt=function(e,t){var n=e[t];return null==n?void 0:Pt(n)},It=wt,Ft=q,Lt=rt,zt=k.TypeError,Bt=wt,Zt=rt,Wt=Et,Ht=Rt,Yt=function(e,t){var n,r;if("string"===t&&Ft(n=e.toString)&&!Lt(r=It(n,e)))return r;if(Ft(n=e.valueOf)&&!Lt(r=It(n,e)))return r;if("string"!==t&&Ft(n=e.toString)&&!Lt(r=It(n,e)))return r;throw zt("Can't convert object to primitive value")},Ut=xe,Vt=k.TypeError,qt=Ut("toPrimitive"),Gt=function(e,t){if(!Zt(e)||Wt(e))return e;var n,r=Ht(e,qt);if(r){if(void 0===t&&(t="default"),n=Bt(r,e,t),!Zt(n)||Wt(n))return n;throw Vt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Yt(e,t)},Xt=Et,$t=function(e){var t=Gt(e,"string");return Xt(t)?t:t+""},Qt=it,Kt=ft,Jt=dt,en=gt,tn=$t,nn=k.TypeError,rn=Object.defineProperty,on=Object.getOwnPropertyDescriptor,an="enumerable",sn="configurable",un="writable";ot.f=Qt?Jt?function(e,t,n){if(en(e),t=tn(t),en(n),"function"===typeof e&&"prototype"===t&&"value"in n&&un in n&&!n.writable){var r=on(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:sn in n?n.configurable:r.configurable,enumerable:an in n?n.enumerable:r.enumerable,writable:!1})}return rn(e,t,n)}:rn:function(e,t,n){if(en(e),t=tn(t),en(n),Kt)try{return rn(e,t,n)}catch(r){}if("get"in n||"set"in n)throw nn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ln,cn,fn,dn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hn=ot,pn=dn,mn=it?function(e,t,n){return hn.f(e,t,pn(1,n))}:function(e,t,n){return e[t]=n,e},vn=S.exports,gn=U,yn=vn("keys"),bn=function(e){return yn[e]||(yn[e]=gn(e))},wn={},xn=tt,_n=k,kn=y,Sn=rt,Mn=mn,Tn=B,En=O,Cn=bn,On=wn,Dn="Object already initialized",Nn=_n.TypeError,jn=_n.WeakMap;if(xn||En.state){var An=En.state||(En.state=new jn),Pn=kn(An.get),Rn=kn(An.has),In=kn(An.set);ln=function(e,t){if(Rn(An,e))throw new Nn(Dn);return t.facade=e,In(An,e,t),t},cn=function(e){return Pn(An,e)||{}},fn=function(e){return Rn(An,e)}}else{var Fn=Cn("state");On[Fn]=!0,ln=function(e,t){if(Tn(e,Fn))throw new Nn(Dn);return t.facade=e,Mn(e,Fn,t),t},cn=function(e){return Tn(e,Fn)?e[Fn]:{}},fn=function(e){return Tn(e,Fn)}}var Ln={set:ln,get:cn,has:fn,enforce:function(e){return fn(e)?cn(e):ln(e,{})},getterFor:function(e){return function(t){var n;if(!Sn(t)||(n=cn(t)).type!==e)throw Nn("Incompatible receiver, "+e+" required");return n}}},zn=d,Bn=Function.prototype,Zn=Bn.apply,Wn=Bn.call,Hn="object"==typeof Reflect&&Reflect.apply||(zn?Wn.bind(Zn):function(){return Wn.apply(Zn,arguments)}),Yn={},Un={},Vn={}.propertyIsEnumerable,qn=Object.getOwnPropertyDescriptor,Gn=qn&&!Vn.call({1:2},1);Un.f=Gn?function(e){var t=qn(this,e);return!!t&&t.enumerable}:Vn;var Xn=y,$n=f,Qn=Ee,Kn=k.Object,Jn=Xn("".split),er=$n((function(){return!Kn("z").propertyIsEnumerable(0)}))?function(e){return"String"==Qn(e)?Jn(e,""):Kn(e)}:Kn,tr=er,nr=P,rr=function(e){return tr(nr(e))},ir=it,or=wt,ar=Un,sr=dn,ur=rr,lr=$t,cr=B,fr=ft,dr=Object.getOwnPropertyDescriptor;Yn.f=ir?dr:function(e,t){if(e=ur(e),t=lr(t),fr)try{return dr(e,t)}catch(n){}if(cr(e,t))return sr(!or(ar.f,e,t),e[t])};var hr=f,pr=q,mr=/#|\.prototype\./,vr=function(e,t){var n=yr[gr(e)];return n==wr||n!=br&&(pr(t)?hr(t):!!t)},gr=vr.normalize=function(e){return String(e).replace(mr,".").toLowerCase()},yr=vr.data={},br=vr.NATIVE="N",wr=vr.POLYFILL="P",xr=vr,_r=At,kr=d,Sr=y(y.bind),Mr=function(e,t){return _r(e),void 0===t?e:kr?Sr(e,t):function(){return e.apply(t,arguments)}},Tr=k,Er=Hn,Cr=y,Or=q,Dr=Yn.f,Nr=xr,jr=V,Ar=Mr,Pr=mn,Rr=B,Ir=function(e){var t=function t(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return Er(e,this,arguments)};return t.prototype=e.prototype,t},Fr=function(e,t){var n,r,i,o,a,s,u,l,c=e.target,f=e.global,d=e.stat,h=e.proto,p=f?Tr:d?Tr[c]:(Tr[c]||{}).prototype,m=f?jr:jr[c]||Pr(jr,c,{})[c],v=m.prototype;for(i in t)n=!Nr(f?i:c+(d?".":"#")+i,e.forced)&&p&&Rr(p,i),a=m[i],n&&(s=e.noTargetGet?(l=Dr(p,i))&&l.value:p[i]),o=n&&s?s:t[i],n&&typeof a==typeof o||(u=e.bind&&n?Ar(o,Tr):e.wrap&&n?Ir(o):h&&Or(o)?Cr(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Pr(u,"sham",!0),Pr(m,i,u),h&&(Rr(jr,r=c+"Prototype")||Pr(jr,r,{}),Pr(jr[r],i,o),e.real&&v&&!v[i]&&Pr(v,i,o)))},Lr=it,zr=B,Br=Function.prototype,Zr=Lr&&Object.getOwnPropertyDescriptor,Wr=zr(Br,"name"),Hr={EXISTS:Wr,PROPER:Wr&&"something"===function(){}.name,CONFIGURABLE:Wr&&(!Lr||Lr&&Zr(Br,"name").configurable)},Yr={},Ur=x,Vr=Math.max,qr=Math.min,Gr=function(e,t){var n=Ur(e);return n<0?Vr(n+t,0):qr(n,t)},Xr=x,$r=Math.min,Qr=function(e){return e>0?$r(Xr(e),9007199254740991):0},Kr=function(e){return Qr(e.length)},Jr=rr,ei=Gr,ti=Kr,ni=function(e){return function(t,n,r){var i,o=Jr(t),a=ti(o),s=ei(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ri={includes:ni(!0),indexOf:ni(!1)},ii=B,oi=rr,ai=ri.indexOf,si=wn,ui=y([].push),li=function(e,t){var n,r=oi(e),i=0,o=[];for(n in r)!ii(si,n)&&ii(r,n)&&ui(o,n);for(;t.length>i;)ii(r,n=t[i++])&&(~ai(o,n)||ui(o,n));return o},ci=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fi=li,di=ci,hi=Object.keys||function(e){return fi(e,di)},pi=it,mi=dt,vi=ot,gi=gt,yi=rr,bi=hi;Yr.f=pi&&!mi?Object.defineProperties:function(e,t){gi(e);for(var n,r=yi(t),i=bi(t),o=i.length,a=0;o>a;)vi.f(e,n=i[a++],r[n]);return e};var wi,xi=K("document","documentElement"),_i=gt,ki=Yr,Si=ci,Mi=wn,Ti=xi,Ei=lt,Ci=bn("IE_PROTO"),Oi=function(){},Di=function(e){return"<script>"+e+"</"+"script>"},Ni=function(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t},ji=function(){try{wi=new ActiveXObject("htmlfile")}catch(t){}ji="undefined"!=typeof document?document.domain&&wi?Ni(wi):function(){var e,t=Ei("iframe");return t.style.display="none",Ti.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F}():Ni(wi);for(var e=Si.length;e--;)delete ji.prototype[Si[e]];return ji()};Mi[Ci]=!0;var Ai,Pi,Ri,Ii=Object.create||function(e,t){var n;return null!==e?(Oi.prototype=_i(e),n=new Oi,Oi.prototype=null,n[Ci]=e):n=ji(),void 0===t?n:ki.f(n,t)},Fi=!f((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Li=k,zi=B,Bi=q,Zi=F,Wi=Fi,Hi=bn("IE_PROTO"),Yi=Li.Object,Ui=Yi.prototype,Vi=Wi?Yi.getPrototypeOf:function(e){var t=Zi(e);if(zi(t,Hi))return t[Hi];var n=t.constructor;return Bi(n)&&t instanceof n?n.prototype:t instanceof Yi?Ui:null},qi=mn,Gi=function(e,t,n,r){r&&r.enumerable?e[t]=n:qi(e,t,n)},Xi=f,$i=q,Qi=Ii,Ki=Vi,Ji=Gi,eo=xe("iterator"),to=!1;[].keys&&("next"in(Ri=[].keys())?(Pi=Ki(Ki(Ri)))!==Object.prototype&&(Ai=Pi):to=!0);var no=void 0==Ai||Xi((function(){var e={};return Ai[eo].call(e)!==e}));$i((Ai=no?{}:Qi(Ai))[eo])||Ji(Ai,eo,(function(){return this}));var ro={IteratorPrototype:Ai,BUGGY_SAFARI_ITERATORS:to},io=Re,oo=ke?{}.toString:function(){return"[object "+io(this)+"]"},ao=ke,so=ot.f,uo=mn,lo=B,co=oo,fo=xe("toStringTag"),ho=function(e,t,n,r){if(e){var i=n?e:e.prototype;lo(i,fo)||so(i,fo,{configurable:!0,value:t}),r&&!ao&&uo(i,"toString",co)}},po={},mo=ro.IteratorPrototype,vo=Ii,go=dn,yo=ho,bo=po,wo=function(){return this},xo=k,_o=q,ko=xo.String,So=xo.TypeError,Mo=y,To=gt,Eo=function(e){if("object"==typeof e||_o(e))return e;throw So("Can't set "+ko(e)+" as a prototype")},Co=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Mo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return To(n),Eo(r),t?e(n,r):n.__proto__=r,n}}():void 0),Oo=Fr,Do=wt,No=function(e,t,n,r){var i=t+" Iterator";return e.prototype=vo(mo,{next:go(+!r,n)}),yo(e,i,!1,!0),bo[i]=wo,e},jo=Vi,Ao=ho,Po=Gi,Ro=po,Io=Hr.PROPER,Fo=ro.BUGGY_SAFARI_ITERATORS,Lo=xe("iterator"),zo="keys",Bo="values",Zo="entries",Wo=function(){return this},Ho=function(e,t,n,r,i,o,a){No(n,t,r);var s,u,l,c=function(e){if(e===i&&m)return m;if(!Fo&&e in h)return h[e];switch(e){case zo:case Bo:case Zo:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[Lo]||h["@@iterator"]||i&&h[i],m=!Fo&&p||c(i),v="Array"==t&&h.entries||p;if(v&&(s=jo(v.call(new e)))!==Object.prototype&&s.next&&(Ao(s,f,!0,!0),Ro[f]=Wo),Io&&i==Bo&&p&&p.name!==Bo&&(d=!0,m=function(){return Do(p,this)}),i)if(u={values:c(Bo),keys:o?m:c(zo),entries:c(Zo)},a)for(l in u)(Fo||d||!(l in h))&&Po(h,l,u[l]);else Oo({target:t,proto:!0,forced:Fo||d},u);return a&&h[Lo]!==m&&Po(h,Lo,m,{name:i}),Ro[t]=m,u},Yo=qe.charAt,Uo=Le,Vo=Ln,qo=Ho,Go="String Iterator",Xo=Vo.set,$o=Vo.getterFor(Go);qo(String,"String",(function(e){Xo(this,{type:Go,string:Uo(e),index:0})}),(function(){var e,t=$o(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Yo(n,r),t.index+=e.length,{value:e,done:!1})}));var Qo=wt,Ko=gt,Jo=Rt,ea=function(e,t,n){var r,i;Ko(e);try{if(!(r=Jo(e,"return"))){if("throw"===t)throw n;return n}r=Qo(r,e)}catch(o){i=!0,r=o}if("throw"===t)throw n;if(i)throw r;return Ko(r),n},ta=gt,na=ea,ra=po,ia=xe("iterator"),oa=Array.prototype,aa=function(e){return void 0!==e&&(ra.Array===e||oa[ia]===e)},sa=y,ua=f,la=q,ca=Re,fa=Qe,da=function(){},ha=[],pa=K("Reflect","construct"),ma=/^\s*(?:class|function)\b/,va=sa(ma.exec),ga=!ma.exec(da),ya=function(e){if(!la(e))return!1;try{return pa(da,ha,e),!0}catch(t){return!1}},ba=function(e){if(!la(e))return!1;switch(ca(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ga||!!va(ma,fa(e))}catch(t){return!0}};ba.sham=!0;var wa=!pa||ua((function(){var e;return ya(ya.call)||!ya(Object)||!ya((function(){e=!0}))||e}))?ba:ya,xa=$t,_a=ot,ka=dn,Sa=function(e,t,n){var r=xa(t);r in e?_a.f(e,r,ka(0,n)):e[r]=n},Ma=Re,Ta=Rt,Ea=po,Ca=xe("iterator"),Oa=function(e){if(void 0!=e)return Ta(e,Ca)||Ta(e,"@@iterator")||Ea[Ma(e)]},Da=wt,Na=At,ja=gt,Aa=Ot,Pa=Oa,Ra=k.TypeError,Ia=function(e,t){var n=arguments.length<2?Pa(e):t;if(Na(n))return ja(Da(n,e));throw Ra(Aa(e)+" is not iterable")},Fa=Mr,La=wt,za=F,Ba=function(e,t,n,r){try{return r?t(ta(n)[0],n[1]):t(n)}catch(i){na(e,"throw",i)}},Za=aa,Wa=wa,Ha=Kr,Ya=Sa,Ua=Ia,Va=Oa,qa=k.Array,Ga=xe("iterator"),Xa=!1;try{var $a=0,Qa={next:function(){return{done:!!$a++}},return:function(){Xa=!0}};Qa[Ga]=function(){return this},Array.from(Qa,(function(){throw 2}))}catch(NA){}var Ka=function(e,t){if(!t&&!Xa)return!1;var n=!1;try{var r={};r[Ga]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(NA){}return n},Ja=function(e){var t=za(e),n=Wa(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Fa(i,r>2?arguments[2]:void 0));var a,s,u,l,c,f,d=Va(t),h=0;if(!d||this==qa&&Za(d))for(a=Ha(t),s=n?new this(a):qa(a);a>h;h++)f=o?i(t[h],h):t[h],Ya(s,h,f);else for(c=(l=Ua(t,d)).next,s=n?new this:[];!(u=La(c,l)).done;h++)f=o?Ba(l,i,[u.value,h],!0):u.value,Ya(s,h,f);return s.length=h,s};Fr({target:"Array",stat:!0,forced:!Ka((function(e){Array.from(e)}))},{from:Ja});var es=V.Array.from;!function(e){e.exports=es}(c);var ts=o(c.exports),ns={exports:{}},rs=rr,is=po,os=Ln;ot.f;var as=Ho,ss="Array Iterator",us=os.set,ls=os.getterFor(ss);as(Array,"Array",(function(e,t){us(this,{type:ss,target:rs(e),index:0,kind:t})}),(function(){var e=ls(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),is.Arguments=is.Array;var cs=Oa,fs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ds=k,hs=Re,ps=mn,ms=po,vs=xe("toStringTag");for(var gs in fs){var ys=ds[gs],bs=ys&&ys.prototype;bs&&hs(bs)!==vs&&ps(bs,vs,gs),ms[gs]=ms.Array}var ws=cs;!function(e){e.exports=ws}(ns);var xs=o(ns.exports),_s={exports:{}},ks=Ee,Ss=Array.isArray||function(e){return"Array"==ks(e)},Ms={},Ts=li,Es=ci.concat("length","prototype");Ms.f=Object.getOwnPropertyNames||function(e){return Ts(e,Es)};var Cs={},Os=Gr,Ds=Kr,Ns=Sa,js=k.Array,As=Math.max,Ps=function(e,t,n){for(var r=Ds(e),i=Os(t,r),o=Os(void 0===n?r:n,r),a=js(As(o-i,0)),s=0;i<o;i++,s++)Ns(a,s,e[i]);return a.length=s,a},Rs=Ee,Is=rr,Fs=Ms.f,Ls=Ps,zs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Cs.f=function(e){return zs&&"Window"==Rs(e)?function(e){try{return Fs(e)}catch(NA){return Ls(zs)}}(e):Fs(Is(e))};var Bs={};Bs.f=Object.getOwnPropertySymbols;var Zs=y([].slice),Ws={},Hs=xe;Ws.f=Hs;var Ys=V,Us=B,Vs=Ws,qs=ot.f,Gs=function(e){var t=Ys.Symbol||(Ys.Symbol={});Us(t,e)||qs(t,e,{value:Vs.f(e)})},Xs=k,$s=Ss,Qs=wa,Ks=rt,Js=xe("species"),eu=Xs.Array,tu=function(e){var t;return $s(e)&&(t=e.constructor,(Qs(t)&&(t===eu||$s(t.prototype))||Ks(t)&&null===(t=t[Js]))&&(t=void 0)),void 0===t?eu:t},nu=function(e,t){return new(tu(e))(0===t?0:t)},ru=Mr,iu=er,ou=F,au=Kr,su=nu,uu=y([].push),lu=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,l,c,f){for(var d,h,p=ou(u),m=iu(p),v=ru(l,c),g=au(m),y=0,b=f||su,w=t?b(u,g):n||a?b(u,0):void 0;g>y;y++)if((s||y in m)&&(h=v(d=m[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:uu(w,d)}else switch(e){case 4:return!1;case 7:uu(w,d)}return o?-1:r||i?i:w}},cu={forEach:lu(0),map:lu(1),filter:lu(2),some:lu(3),every:lu(4),find:lu(5),findIndex:lu(6),filterReject:lu(7)},fu=Fr,du=k,hu=K,pu=Hn,mu=wt,vu=y,gu=it,yu=le,bu=f,wu=B,xu=Ss,_u=q,ku=rt,Su=xt,Mu=Et,Tu=gt,Eu=F,Cu=rr,Ou=$t,Du=Le,Nu=dn,ju=Ii,Au=hi,Pu=Ms,Ru=Cs,Iu=Bs,Fu=Yn,Lu=ot,zu=Yr,Bu=Un,Zu=Zs,Wu=Gi,Hu=S.exports,Yu=wn,Uu=U,Vu=xe,qu=Ws,Gu=Gs,Xu=ho,$u=Ln,Qu=cu.forEach,Ku=bn("hidden"),Ju="Symbol",el=Vu("toPrimitive"),tl=$u.set,nl=$u.getterFor(Ju),rl=Object.prototype,il=du.Symbol,ol=il&&il.prototype,al=du.TypeError,sl=du.QObject,ul=hu("JSON","stringify"),ll=Fu.f,cl=Lu.f,fl=Ru.f,dl=Bu.f,hl=vu([].push),pl=Hu("symbols"),ml=Hu("op-symbols"),vl=Hu("string-to-symbol-registry"),gl=Hu("symbol-to-string-registry"),yl=Hu("wks"),bl=!sl||!sl.prototype||!sl.prototype.findChild,wl=gu&&bu((function(){return 7!=ju(cl({},"a",{get:function(){return cl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ll(rl,t);r&&delete rl[t],cl(e,t,n),r&&e!==rl&&cl(rl,t,r)}:cl,xl=function(e,t){var n=pl[e]=ju(ol);return tl(n,{type:Ju,tag:e,description:t}),gu||(n.description=t),n},_l=function(e,t,n){e===rl&&_l(ml,t,n),Tu(e);var r=Ou(t);return Tu(n),wu(pl,r)?(n.enumerable?(wu(e,Ku)&&e[Ku][r]&&(e[Ku][r]=!1),n=ju(n,{enumerable:Nu(0,!1)})):(wu(e,Ku)||cl(e,Ku,Nu(1,{})),e[Ku][r]=!0),wl(e,r,n)):cl(e,r,n)},kl=function(e,t){Tu(e);var n=Cu(t),r=Au(n).concat(El(n));return Qu(r,(function(t){gu&&!mu(Sl,n,t)||_l(e,t,n[t])})),e},Sl=function(e){var t=Ou(e),n=mu(dl,this,t);return!(this===rl&&wu(pl,t)&&!wu(ml,t))&&(!(n||!wu(this,t)||!wu(pl,t)||wu(this,Ku)&&this[Ku][t])||n)},Ml=function(e,t){var n=Cu(e),r=Ou(t);if(n!==rl||!wu(pl,r)||wu(ml,r)){var i=ll(n,r);return!i||!wu(pl,r)||wu(n,Ku)&&n[Ku][r]||(i.enumerable=!0),i}},Tl=function(e){var t=fl(Cu(e)),n=[];return Qu(t,(function(e){wu(pl,e)||wu(Yu,e)||hl(n,e)})),n},El=function(e){var t=e===rl,n=fl(t?ml:Cu(e)),r=[];return Qu(n,(function(e){!wu(pl,e)||t&&!wu(rl,e)||hl(r,pl[e])})),r};if(yu||(il=function(){if(Su(ol,this))throw al("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Du(arguments[0]):void 0,t=Uu(e),n=function e(n){this===rl&&mu(e,ml,n),wu(this,Ku)&&wu(this[Ku],t)&&(this[Ku][t]=!1),wl(this,t,Nu(1,n))};return gu&&bl&&wl(rl,t,{configurable:!0,set:n}),xl(t,e)},Wu(ol=il.prototype,"toString",(function(){return nl(this).tag})),Wu(il,"withoutSetter",(function(e){return xl(Uu(e),e)})),Bu.f=Sl,Lu.f=_l,zu.f=kl,Fu.f=Ml,Pu.f=Ru.f=Tl,Iu.f=El,qu.f=function(e){return xl(Vu(e),e)},gu&&cl(ol,"description",{configurable:!0,get:function(){return nl(this).description}})),fu({global:!0,wrap:!0,forced:!yu,sham:!yu},{Symbol:il}),Qu(Au(yl),(function(e){Gu(e)})),fu({target:Ju,stat:!0,forced:!yu},{for:function(e){var t=Du(e);if(wu(vl,t))return vl[t];var n=il(t);return vl[t]=n,gl[n]=t,n},keyFor:function(e){if(!Mu(e))throw al(e+" is not a symbol");if(wu(gl,e))return gl[e]},useSetter:function(){bl=!0},useSimple:function(){bl=!1}}),fu({target:"Object",stat:!0,forced:!yu,sham:!gu},{create:function(e,t){return void 0===t?ju(e):kl(ju(e),t)},defineProperty:_l,defineProperties:kl,getOwnPropertyDescriptor:Ml}),fu({target:"Object",stat:!0,forced:!yu},{getOwnPropertyNames:Tl,getOwnPropertySymbols:El}),fu({target:"Object",stat:!0,forced:bu((function(){Iu.f(1)}))},{getOwnPropertySymbols:function(e){return Iu.f(Eu(e))}}),ul){var Cl=!yu||bu((function(){var e=il();return"[null]"!=ul([e])||"{}"!=ul({a:e})||"{}"!=ul(Object(e))}));fu({target:"JSON",stat:!0,forced:Cl},{stringify:function(e,t,n){var r=Zu(arguments),i=t;if((ku(t)||void 0!==e)&&!Mu(e))return xu(t)||(t=function(e,t){if(_u(i)&&(t=mu(i,this,e,t)),!Mu(t))return t}),r[1]=t,pu(ul,null,r)}})}if(!ol[el]){var Ol=ol.valueOf;Wu(ol,el,(function(e){return mu(Ol,this)}))}Xu(il,Ju),Yu[Ku]=!0;var Dl=V.Object.getOwnPropertySymbols;!function(e){e.exports=Dl}(_s);var Nl=o(_s.exports),jl={exports:{}},Al={exports:{}},Pl=Fr,Rl=f,Il=rr,Fl=Yn.f,Ll=it,zl=Rl((function(){Fl(1)}));Pl({target:"Object",stat:!0,forced:!Ll||zl,sham:!Ll},{getOwnPropertyDescriptor:function(e,t){return Fl(Il(e),t)}});var Bl=V.Object,Zl=Al.exports=function(e,t){return Bl.getOwnPropertyDescriptor(e,t)};Bl.getOwnPropertyDescriptor.sham&&(Zl.sham=!0);var Wl=Al.exports;!function(e){e.exports=Wl}(jl);var Hl=o(jl.exports),Yl={exports:{}},Ul=K,Vl=Ms,ql=Bs,Gl=gt,Xl=y([].concat),$l=Ul("Reflect","ownKeys")||function(e){var t=Vl.f(Gl(e)),n=ql.f;return n?Xl(t,n(e)):t},Ql=$l,Kl=rr,Jl=Yn,ec=Sa;Fr({target:"Object",stat:!0,sham:!it},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Kl(e),i=Jl.f,o=Ql(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&ec(a,t,n);return a}});var tc=V.Object.getOwnPropertyDescriptors;!function(e){e.exports=tc}(Yl);var nc=o(Yl.exports),rc={exports:{}},ic={exports:{}},oc=Fr,ac=it,sc=Yr.f;oc({target:"Object",stat:!0,forced:Object.defineProperties!==sc,sham:!ac},{defineProperties:sc});var uc=V.Object,lc=ic.exports=function(e,t){return uc.defineProperties(e,t)};uc.defineProperties.sham&&(lc.sham=!0);var cc=ic.exports;!function(e){e.exports=cc}(rc);var fc=o(rc.exports),dc={exports:{}},hc={exports:{}},pc=Fr,mc=it,vc=ot.f;pc({target:"Object",stat:!0,forced:Object.defineProperty!==vc,sham:!mc},{defineProperty:vc});var gc=V.Object,yc=hc.exports=function(e,t,n){return gc.defineProperty(e,t,n)};gc.defineProperty.sham&&(yc.sham=!0);var bc=hc.exports;!function(e){e.exports=bc}(dc);var wc=o(dc.exports);function xc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _c={exports:{}},kc=bc;!function(e){e.exports=kc}(_c);var Sc=o(_c.exports);function Mc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Sc(e,r.key,r)}}function Tc(e,t,n){return t&&Mc(e.prototype,t),n&&Mc(e,n),Sc(e,"prototype",{writable:!1}),e}function Ec(e,t,n){return t in e?Sc(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cc={exports:{}};Fr({target:"Array",stat:!0},{isArray:Ss});var Oc=V.Array.isArray,Dc=Oc;!function(e){e.exports=Dc}(Cc);var Nc=o(Cc.exports);var jc={exports:{}},Ac=f,Pc=ae,Rc=xe("species"),Ic=function(e){return Pc>=51||!Ac((function(){var t=[];return(t.constructor={})[Rc]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Fc=Fr,Lc=k,zc=f,Bc=Ss,Zc=rt,Wc=F,Hc=Kr,Yc=Sa,Uc=nu,Vc=Ic,qc=ae,Gc=xe("isConcatSpreadable"),Xc=9007199254740991,$c="Maximum allowed index exceeded",Qc=Lc.TypeError,Kc=qc>=51||!zc((function(){var e=[];return e[Gc]=!1,e.concat()[0]!==e})),Jc=Vc("concat"),ef=function(e){if(!Zc(e))return!1;var t=e[Gc];return void 0!==t?!!t:Bc(e)};Fc({target:"Array",proto:!0,forced:!Kc||!Jc},{concat:function(e){var t,n,r,i,o,a=Wc(this),s=Uc(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(ef(o=-1===t?a:arguments[t])){if(u+(i=Hc(o))>Xc)throw Qc($c);for(n=0;n<i;n++,u++)n in o&&Yc(s,u,o[n])}else{if(u>=Xc)throw Qc($c);Yc(s,u++,o)}return s.length=u,s}}),Gs("asyncIterator"),Gs("hasInstance"),Gs("isConcatSpreadable"),Gs("iterator"),Gs("match"),Gs("matchAll"),Gs("replace"),Gs("search"),Gs("species"),Gs("split"),Gs("toPrimitive"),Gs("toStringTag"),Gs("unscopables"),ho(k.JSON,"JSON",!0);var tf=V.Symbol,nf=tf;Gs("asyncDispose"),Gs("dispose"),Gs("matcher"),Gs("metadata"),Gs("observable"),Gs("patternMatch"),Gs("replaceAll");var rf=nf;!function(e){e.exports=rf}(jc);var of=o(jc.exports);var af={exports:{}},sf=Fr,uf=k,lf=Ss,cf=wa,ff=rt,df=Gr,hf=Kr,pf=rr,mf=Sa,vf=xe,gf=Zs,yf=Ic("slice"),bf=vf("species"),wf=uf.Array,xf=Math.max;sf({target:"Array",proto:!0,forced:!yf},{slice:function(e,t){var n,r,i,o=pf(this),a=hf(o),s=df(e,a),u=df(void 0===t?a:t,a);if(lf(o)&&(n=o.constructor,(cf(n)&&(n===wf||lf(n.prototype))||ff(n)&&null===(n=n[bf]))&&(n=void 0),n===wf||void 0===n))return gf(o,s,u);for(r=new(void 0===n?wf:n)(xf(u-s,0)),i=0;s<u;s++,i++)s in o&&mf(r,i,o[s]);return r.length=i,r}});var _f=V,kf=function(e){return _f[e+"Prototype"]},Sf=kf("Array").slice,Mf=xt,Tf=Sf,Ef=Array.prototype,Cf=function(e){var t=e.slice;return e===Ef||Mf(Ef,e)&&t===Ef.slice?Tf:t},Of=Cf,Df=Of;!function(e){e.exports=Df}(af);var Nf=o(af.exports),jf={exports:{}},Af=es;!function(e){e.exports=Af}(jf);var Pf=o(jf.exports);function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function If(e,t){var n;if(e){if("string"===typeof e)return Rf(e,t);var r=Nf(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Pf(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rf(e,t):void 0}}function Ff(e,t){return function(e){if(Nc(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof of&&xs(e)||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||If(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Lf={exports:{}},zf=Ws.f("iterator"),Bf=zf;!function(e){e.exports=Bf}(Lf);var Zf=o(Lf.exports);function Wf(e){return Wf="function"==typeof of&&"symbol"==typeof Zf?function(e){return typeof e}:function(e){return e&&"function"==typeof of&&e.constructor===of&&e!==of.prototype?"symbol":typeof e},Wf(e)}function Hf(e){return function(e){if(Nc(e))return Rf(e)}(e)||function(e){if("undefined"!==typeof of&&null!=xs(e)||null!=e["@@iterator"])return Pf(e)}(e)||If(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Yf={exports:{}};!function(e){e.exports=tf}(Yf);var Uf=o(Yf.exports),Vf={exports:{}},qf=kf("Array").concat,Gf=xt,Xf=qf,$f=Array.prototype,Qf=function(e){var t=e.concat;return e===$f||Gf($f,e)&&t===$f.concat?Xf:t},Kf=Qf;!function(e){e.exports=Kf}(Vf);var Jf=o(Vf.exports),ed={exports:{}};!function(e){e.exports=Of}(ed);var td=o(ed.exports),nd={exports:{}};Fr({target:"Reflect",stat:!0},{ownKeys:$l});var rd=V.Reflect.ownKeys;!function(e){e.exports=rd}(nd);var id=o(nd.exports),od={exports:{}};!function(e){e.exports=Oc}(od);var ad=o(od.exports),sd={exports:{}},ud=cu.map;Fr({target:"Array",proto:!0,forced:!Ic("map")},{map:function(e){return ud(this,e,arguments.length>1?arguments[1]:void 0)}});var ld=kf("Array").map,cd=xt,fd=ld,dd=Array.prototype,hd=function(e){var t=e.map;return e===dd||cd(dd,e)&&t===dd.map?fd:t},pd=hd;!function(e){e.exports=pd}(sd);var md=o(sd.exports),vd={exports:{}},gd=F,yd=hi;Fr({target:"Object",stat:!0,forced:f((function(){yd(1)}))},{keys:function(e){return yd(gd(e))}});var bd=V.Object.keys;!function(e){e.exports=bd}(vd);var wd=o(vd.exports),xd={exports:{}},_d=Fr,kd=y,Sd=k.Date,Md=kd(Sd.prototype.getTime);_d({target:"Date",stat:!0},{now:function(){return Md(new Sd)}});var Td=V.Date.now;!function(e){e.exports=Td}(xd);var Ed=o(xd.exports),Cd={exports:{}},Od=y,Dd=At,Nd=rt,jd=B,Ad=Zs,Pd=d,Rd=k.Function,Id=Od([].concat),Fd=Od([].join),Ld={},zd=function(e,t,n){if(!jd(Ld,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";Ld[t]=Rd("C,a","return new C("+Fd(r,",")+")")}return Ld[t](e,n)},Bd=Pd?Rd.bind:function(e){var t=Dd(this),n=t.prototype,r=Ad(arguments,1),i=function(){var n=Id(r,Ad(arguments));return this instanceof i?zd(t,n.length,n):t.apply(e,n)};return Nd(n)&&(i.prototype=n),i},Zd=Bd;Fr({target:"Function",proto:!0,forced:Function.bind!==Zd},{bind:Zd});var Wd=kf("Function").bind,Hd=xt,Yd=Wd,Ud=Function.prototype,Vd=function(e){var t=e.bind;return e===Ud||Hd(Ud,e)&&t===Ud.bind?Yd:t},qd=Vd;!function(e){e.exports=qd}(Cd);var Gd=o(Cd.exports),Xd={exports:{}},$d=f,Qd=function(e,t){var n=[][e];return!!n&&$d((function(){n.call(null,t||function(){return 1},1)}))},Kd=cu.forEach,Jd=Qd("forEach")?[].forEach:function(e){return Kd(this,e,arguments.length>1?arguments[1]:void 0)};Fr({target:"Array",proto:!0,forced:[].forEach!=Jd},{forEach:Jd});var eh=kf("Array").forEach,th=Re,nh=B,rh=xt,ih=eh,oh=Array.prototype,ah={DOMTokenList:!0,NodeList:!0},sh=function(e){var t=e.forEach;return e===oh||rh(oh,e)&&t===oh.forEach||nh(ah,th(e))?ih:t};!function(e){e.exports=sh}(Xd);var uh=o(Xd.exports),lh={exports:{}},ch=Fr,fh=Ss,dh=y([].reverse),hh=[1,2];ch({target:"Array",proto:!0,forced:String(hh)===String(hh.reverse())},{reverse:function(){return fh(this)&&(this.length=this.length),dh(this)}});var ph=kf("Array").reverse,mh=xt,vh=ph,gh=Array.prototype,yh=function(e){var t=e.reverse;return e===gh||mh(gh,e)&&t===gh.reverse?vh:t},bh=yh;!function(e){e.exports=bh}(lh);var wh=o(lh.exports),xh={exports:{}},_h=Fr,kh=k,Sh=Gr,Mh=x,Th=Kr,Eh=F,Ch=nu,Oh=Sa,Dh=Ic("splice"),Nh=kh.TypeError,jh=Math.max,Ah=Math.min,Ph=9007199254740991,Rh="Maximum allowed length exceeded";_h({target:"Array",proto:!0,forced:!Dh},{splice:function(e,t){var n,r,i,o,a,s,u=Eh(this),l=Th(u),c=Sh(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=Ah(jh(Mh(t),0),l-c)),l+n-r>Ph)throw Nh(Rh);for(i=Ch(u,r),o=0;o<r;o++)(a=c+o)in u&&Oh(i,o,u[a]);if(i.length=r,n<r){for(o=c;o<l-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:delete u[s];for(o=l;o>l-r+n;o--)delete u[o-1]}else if(n>r)for(o=l-r;o>c;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:delete u[s];for(o=0;o<n;o++)u[o+c]=arguments[o+2];return u.length=l-r+n,i}});var Ih=kf("Array").splice,Fh=xt,Lh=Ih,zh=Array.prototype,Bh=function(e){var t=e.splice;return e===zh||Fh(zh,e)&&t===zh.splice?Lh:t},Zh=Bh;!function(e){e.exports=Zh}(xh);var Wh=o(xh.exports),Hh={exports:{}},Yh=it,Uh=y,Vh=wt,qh=f,Gh=hi,Xh=Bs,$h=Un,Qh=F,Kh=er,Jh=Object.assign,ep=Object.defineProperty,tp=Uh([].concat),np=!Jh||qh((function(){if(Yh&&1!==Jh({b:1},Jh(ep({},"a",{enumerable:!0,get:function(){ep(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Jh({},e)[n]||Gh(Jh({},t)).join("")!=r}))?function(e,t){for(var n=Qh(e),r=arguments.length,i=1,o=Xh.f,a=$h.f;r>i;)for(var s,u=Kh(arguments[i++]),l=o?tp(Gh(u),o(u)):Gh(u),c=l.length,f=0;c>f;)s=l[f++],Yh&&!Vh(a,u,s)||(n[s]=u[s]);return n}:Jh,rp=np;Fr({target:"Object",stat:!0,forced:Object.assign!==rp},{assign:rp});var ip=V.Object.assign;!function(e){e.exports=ip}(Hh);var op=o(Hh.exports),ap={exports:{}},sp=ri.includes;Fr({target:"Array",proto:!0},{includes:function(e){return sp(this,e,arguments.length>1?arguments[1]:void 0)}});var up=kf("Array").includes,lp=rt,cp=Ee,fp=xe("match"),dp=function(e){var t;return lp(e)&&(void 0!==(t=e[fp])?!!t:"RegExp"==cp(e))},hp=k.TypeError,pp=xe("match"),mp=Fr,vp=function(e){if(dp(e))throw hp("The method doesn't accept regular expressions");return e},gp=P,yp=Le,bp=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[pp]=!1,"/./"[e](t)}catch(r){}}return!1},wp=y("".indexOf);mp({target:"String",proto:!0,forced:!bp("includes")},{includes:function(e){return!!~wp(yp(gp(this)),yp(vp(e)),arguments.length>1?arguments[1]:void 0)}});var xp=kf("String").includes,_p=xt,kp=up,Sp=xp,Mp=Array.prototype,Tp=String.prototype,Ep=function(e){var t=e.includes;return e===Mp||_p(Mp,e)&&t===Mp.includes?kp:"string"==typeof e||e===Tp||_p(Tp,e)&&t===Tp.includes?Sp:t},Cp=Ep;!function(e){e.exports=Cp}(ap);var Op=o(ap.exports),Dp={exports:{}},Np=F,jp=Vi,Ap=Fi;Fr({target:"Object",stat:!0,forced:f((function(){jp(1)})),sham:!Ap},{getPrototypeOf:function(e){return jp(Np(e))}});var Pp=V.Object.getPrototypeOf;!function(e){e.exports=Pp}(Dp);var Rp=o(Dp.exports),Ip={exports:{}},Fp=cu.filter;Fr({target:"Array",proto:!0,forced:!Ic("filter")},{filter:function(e){return Fp(this,e,arguments.length>1?arguments[1]:void 0)}});var Lp=kf("Array").filter,zp=xt,Bp=Lp,Zp=Array.prototype,Wp=function(e){var t=e.filter;return e===Zp||zp(Zp,e)&&t===Zp.filter?Bp:t},Hp=Wp;!function(e){e.exports=Hp}(Ip);var Yp=o(Ip.exports),Up={exports:{}},Vp=it,qp=y,Gp=hi,Xp=rr,$p=qp(Un.f),Qp=qp([].push),Kp=function(e){return function(t){for(var n,r=Xp(t),i=Gp(r),o=i.length,a=0,s=[];o>a;)n=i[a++],Vp&&!$p(r,n)||Qp(s,e?[n,r[n]]:r[n]);return s}},Jp={entries:Kp(!0),values:Kp(!1)}.values;Fr({target:"Object",stat:!0},{values:function(e){return Jp(e)}});var em=V.Object.values;!function(e){e.exports=em}(Up);var tm=o(Up.exports),nm={exports:{}},rm="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",im=P,om=Le,am=y("".replace),sm="[\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]",um=RegExp("^"+sm+sm+"*"),lm=RegExp(sm+sm+"*$"),cm=function(e){return function(t){var n=om(im(t));return 1&e&&(n=am(n,um,"")),2&e&&(n=am(n,lm,"")),n}},fm={start:cm(1),end:cm(2),trim:cm(3)},dm=k,hm=f,pm=y,mm=Le,vm=fm.trim,gm=rm,ym=dm.parseInt,bm=dm.Symbol,wm=bm&&bm.iterator,xm=/^[+-]?0x/i,_m=pm(xm.exec),km=8!==ym(gm+"08")||22!==ym(gm+"0x16")||wm&&!hm((function(){ym(Object(wm))}))?function(e,t){var n=vm(mm(e));return ym(n,t>>>0||(_m(xm,n)?16:10))}:ym;Fr({global:!0,forced:parseInt!=km},{parseInt:km});var Sm=V.parseInt;!function(e){e.exports=Sm}(nm);var Mm=o(nm.exports),Tm={exports:{}},Em=Fr,Cm=ri.indexOf,Om=Qd,Dm=y([].indexOf),Nm=!!Dm&&1/Dm([1],1,-0)<0,jm=Om("indexOf");Em({target:"Array",proto:!0,forced:Nm||!jm},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Nm?Dm(this,e,t)||0:Cm(this,e,t)}});var Am=kf("Array").indexOf,Pm=xt,Rm=Am,Im=Array.prototype,Fm=function(e){var t=e.indexOf;return e===Im||Pm(Im,e)&&t===Im.indexOf?Rm:t},Lm=Fm;!function(e){e.exports=Lm}(Tm);var zm=o(Tm.exports),Bm={exports:{}},Zm=Hr.PROPER,Wm=f,Hm=rm,Ym=fm.trim;Fr({target:"String",proto:!0,forced:function(e){return Wm((function(){return!!Hm[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||Zm&&Hm[e].name!==e}))}("trim")},{trim:function(){return Ym(this)}});var Um=kf("String").trim,Vm=xt,qm=Um,Gm=String.prototype,Xm=function(e){var t=e.trim;return"string"==typeof e||e===Gm||Vm(Gm,e)&&t===Gm.trim?qm:t},$m=Xm;!function(e){e.exports=$m}(Bm);var Qm=o(Bm.exports),Km={exports:{}};Fr({target:"Object",stat:!0,sham:!it},{create:Ii});var Jm=V.Object,ev=function(e,t){return Jm.create(e,t)};!function(e){e.exports=ev}(Km);var tv=o(Km.exports),nv={exports:{}},rv=Fr,iv=K,ov=Hn,av=y,sv=f,uv=k.Array,lv=iv("JSON","stringify"),cv=av(/./.exec),fv=av("".charAt),dv=av("".charCodeAt),hv=av("".replace),pv=av(1..toString),mv=/[\uD800-\uDFFF]/g,vv=/^[\uD800-\uDBFF]$/,gv=/^[\uDC00-\uDFFF]$/,yv=function(e,t,n){var r=fv(n,t-1),i=fv(n,t+1);return cv(vv,e)&&!cv(gv,i)||cv(gv,e)&&!cv(vv,r)?"\\u"+pv(dv(e,0),16):e},bv=sv((function(){return'"\\udf06\\ud834"'!==lv("\udf06\ud834")||'"\\udead"'!==lv("\udead")}));lv&&rv({target:"JSON",stat:!0,forced:bv},{stringify:function(e,t,n){for(var r=0,i=arguments.length,o=uv(i);r<i;r++)o[r]=arguments[r];var a=ov(lv,null,o);return"string"==typeof a?hv(a,mv,yv):a}});var wv=V,xv=Hn;wv.JSON||(wv.JSON={stringify:JSON.stringify});var _v=function(e,t,n){return xv(wv.JSON.stringify,null,arguments)},kv=_v;!function(e){e.exports=kv}(nv);var Sv=o(nv.exports),Mv={exports:{}},Tv=k.TypeError,Ev=function(e,t){if(e<t)throw Tv("Not enough arguments");return e},Cv=Fr,Ov=k,Dv=Hn,Nv=q,jv=Zs,Av=Ev,Pv=/MSIE .\./.test(J),Rv=Ov.Function,Iv=function(e){return function(t,n){var r=Av(arguments.length,1)>2,i=Nv(t)?t:Rv(t),o=r?jv(arguments,2):void 0;return e(r?function(){Dv(i,this,o)}:i,n)}};Cv({global:!0,bind:!0,forced:Pv},{setTimeout:Iv(Ov.setTimeout),setInterval:Iv(Ov.setInterval)});var Fv=V.setTimeout;!function(e){e.exports=Fv}(Mv);var Lv=o(Mv.exports),zv={exports:{}},Bv=F,Zv=Gr,Wv=Kr,Hv=function(e){for(var t=Bv(this),n=Wv(t),r=arguments.length,i=Zv(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:Zv(o,n);a>i;)t[i++]=e;return t};Fr({target:"Array",proto:!0},{fill:Hv});var Yv=kf("Array").fill,Uv=xt,Vv=Yv,qv=Array.prototype,Gv=function(e){var t=e.fill;return e===qv||Uv(qv,e)&&t===qv.fill?Vv:t},Xv=Gv;!function(e){e.exports=Xv}(zv);var $v=o(zv.exports),Qv={exports:{}};!function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}}(Qv);var Kv,Jv=Qv.exports;function eg(){return eg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eg.apply(this,arguments)}function tg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ng(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Kv="function"!==typeof Object.assign?function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var rg,ig=Kv,og=["","webkit","Moz","MS","ms","o"],ag="undefined"===typeof document?{style:{}}:document.createElement("div"),sg=Math.round,ug=Math.abs,lg=Date.now;function cg(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<og.length;){if((r=(n=og[o])?n+i:t)in e)return r;o++}}rg="undefined"===typeof window?{}:window;var fg=cg(ag.style,"touchAction"),dg=void 0!==fg;var hg="compute",pg="auto",mg="manipulation",vg="none",gg="pan-x",yg="pan-y",bg=function(){if(!dg)return!1;var e={},t=rg.CSS&&rg.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return e[n]=!t||rg.CSS.supports("touch-action",n)})),e}(),wg="ontouchstart"in rg,xg=void 0!==cg(rg,"PointerEvent"),_g=wg&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),kg="touch",Sg="mouse",Mg=16,Tg=24,Eg=["x","y"],Cg=["clientX","clientY"];function Og(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function Dg(e,t){return"function"===typeof e?e.apply(t&&t[0]||void 0,t):e}function Ng(e,t){return e.indexOf(t)>-1}var jg=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){e===hg&&(e=this.compute()),dg&&this.manager.element.style&&bg[e]&&(this.manager.element.style[fg]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return Og(this.manager.recognizers,(function(t){Dg(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(Ng(e,vg))return vg;var t=Ng(e,gg),n=Ng(e,yg);return t&&n?vg:t||n?t?gg:yg:Ng(e,mg)?mg:pg}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=Ng(r,vg)&&!bg.none,o=Ng(r,yg)&&!bg["pan-y"],a=Ng(r,gg)&&!bg["pan-x"];if(i){var s=1===e.pointers.length,u=e.distance<2,l=e.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return i||o&&6&n||a&&n&Tg?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function Ag(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Pg(e){var t=e.length;if(1===t)return{x:sg(e[0].clientX),y:sg(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:sg(n/t),y:sg(r/t)}}function Rg(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:sg(e.pointers[n].clientX),clientY:sg(e.pointers[n].clientY)},n++;return{timeStamp:lg(),pointers:t,center:Pg(t),deltaX:e.deltaX,deltaY:e.deltaY}}function Ig(e,t,n){n||(n=Eg);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function Fg(e,t,n){n||(n=Eg);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}function Lg(e,t){return e===t?1:ug(e)>=ug(t)?e<0?2:4:t<0?8:Mg}function zg(e,t,n){return{x:t/e||0,y:n/e||0}}function Bg(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=Rg(t)),i>1&&!n.firstMultiple?n.firstMultiple=Rg(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=t.center=Pg(r);t.timeStamp=lg(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=Fg(s,u),t.distance=Ig(s,u),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=Lg(t.deltaX,t.deltaY);var l,c,f=zg(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=ug(f.x)>ug(f.y)?f.x:f.y,t.scale=a?(l=a.pointers,Ig((c=r)[0],c[1],Cg)/Ig(l[0],l[1],Cg)):1,t.rotation=a?function(e,t){return Fg(t[1],t[0],Cg)+Fg(e[1],e[0],Cg)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!==t.eventType&&(s>25||void 0===a.velocity)){var u=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,c=zg(s,u,l);r=c.x,i=c.y,n=ug(c.x)>ug(c.y)?c.x:c.y,o=Lg(u,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var d,h=e.element,p=t.srcEvent;Ag(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,h)&&(h=d),t.target=h}function Zg(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i===0,a=12&t&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,Bg(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function Wg(e){return e.trim().split(/\s+/g)}function Hg(e,t,n){Og(Wg(t),(function(t){e.addEventListener(t,n,!1)}))}function Yg(e,t,n){Og(Wg(t),(function(t){e.removeEventListener(t,n,!1)}))}function Ug(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var Vg=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){Dg(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&Hg(this.element,this.evEl,this.domHandler),this.evTarget&&Hg(this.target,this.evTarget,this.domHandler),this.evWin&&Hg(Ug(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&Yg(this.element,this.evEl,this.domHandler),this.evTarget&&Yg(this.target,this.evTarget,this.domHandler),this.evWin&&Yg(Ug(this.element),this.evWin,this.domHandler)},e}();function qg(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}var Gg={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Xg={2:kg,3:"pen",4:Sg,5:"kinect"},$g="pointerdown",Qg="pointermove pointerup pointercancel";rg.MSPointerEvent&&!rg.PointerEvent&&($g="MSPointerDown",Qg="MSPointerMove MSPointerUp MSPointerCancel");var Kg=function(e){function t(){var n,r=t.prototype;return r.evEl=$g,r.evWin=Qg,(n=e.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return tg(t,e),t.prototype.handler=function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Gg[r],o=Xg[e.pointerType]||e.pointerType,a=o===kg,s=qg(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))},t}(Vg);function Jg(e){return Array.prototype.slice.call(e,0)}function ey(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];qg(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}var ty={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ny="touchstart touchmove touchend touchcancel",ry=function(e){function t(){var n;return t.prototype.evTarget=ny,(n=e.apply(this,arguments)||this).targetIds={},n}return tg(t,e),t.prototype.handler=function(e){var t=ty[e.type],n=iy.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:kg,srcEvent:e})},t}(Vg);function iy(e,t){var n,r,i=Jg(e.touches),o=this.targetIds;if(3&t&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Jg(e.changedTouches),s=[],u=this.target;if(r=i.filter((function(e){return Ag(e.target,u)})),1===t)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&t&&delete o[a[n].identifier],n++;return s.length?[ey(r.concat(s),"identifier",!0),s]:void 0}var oy={mousedown:1,mousemove:2,mouseup:4},ay="mousedown",sy="mousemove mouseup",uy=function(e){function t(){var n,r=t.prototype;return r.evEl=ay,r.evWin=sy,(n=e.apply(this,arguments)||this).pressed=!1,n}return tg(t,e),t.prototype.handler=function(e){var t=oy[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Sg,srcEvent:e}))},t}(Vg);function ly(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function cy(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ly.call(this,t)):12&e&&ly.call(this,t)}function fy(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var dy=function(){return function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handler=function(e,t,n){var i=n.pointerType===kg,o=n.pointerType===Sg;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)cy.call(ng(ng(r)),t,n);else if(o&&fy.call(ng(ng(r)),n))return;r.callback(e,t,n)}},r.touch=new ry(r.manager,r.handler),r.mouse=new uy(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return tg(t,e),t.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(Vg)}();function hy(e,t,n){return!!Array.isArray(e)&&(Og(e,n[t],n),!0)}var py=32,my=1;function vy(e,t){var n=t.manager;return n?n.get(e):e}function gy(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}var yy=function(){function e(e){void 0===e&&(e={}),this.options=eg({enable:!0},e),this.id=my++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(e){return ig(this.options,e),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(e){if(hy(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=vy(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},t.dropRecognizeWith=function(e){return hy(e,"dropRecognizeWith",this)||(e=vy(e,this),delete this.simultaneous[e.id]),this},t.requireFailure=function(e){if(hy(e,"requireFailure",this))return this;var t=this.requireFail;return-1===qg(t,e=vy(e,this))&&(t.push(e),e.requireFailure(this)),this},t.dropRequireFailure=function(e){if(hy(e,"dropRequireFailure",this))return this;e=vy(e,this);var t=qg(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+gy(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+gy(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=py},t.canEmit=function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},t.recognize=function(e){var t=ig({},e);if(!Dg(this.options.enable,[this,t]))return this.reset(),void(this.state=py);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},t.process=function(e){},t.getTouchAction=function(){},t.reset=function(){},e}(),by=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,eg({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}tg(t,e);var n=t.prototype;return n.getTouchAction=function(){return[mg]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,o=e.deltaTime<n.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<n.interval,s=!this.pCenter||Ig(this.pCenter,e.center)<n.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&a?this.count+=1:this.count=1,this._input=e,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.interval),2):8}return py},n.failTimeout=function(){var e=this;return this._timer=setTimeout((function(){e.state=py}),this.options.interval),py},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(yy),wy=function(e){function t(t){return void 0===t&&(t={}),e.call(this,eg({pointers:1},t))||this}tg(t,e);var n=t.prototype;return n.attrTest=function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},n.process=function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:py},t}(yy);function xy(e){return e===Mg?"down":8===e?"up":2===e?"left":4===e?"right":""}var _y=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,eg({event:"pan",threshold:10,pointers:1,direction:30},t))||this).pX=null,n.pY=null,n}tg(t,e);var n=t.prototype;return n.getTouchAction=function(){var e=this.options.direction,t=[];return 6&e&&t.push(yg),e&Tg&&t.push(gg),t},n.directionTest=function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:Mg,n=a!==this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},n.attrTest=function(e){return wy.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=xy(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}(wy),ky=function(e){function t(t){return void 0===t&&(t={}),e.call(this,eg({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},t))||this}tg(t,e);var n=t.prototype;return n.getTouchAction=function(){return _y.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n,r=this.options.direction;return 30&r?n=t.overallVelocity:6&r?n=t.overallVelocityX:r&Tg&&(n=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&ug(n)>this.options.velocity&&4&t.eventType},n.emit=function(e){var t=xy(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(wy),Sy=function(e){function t(t){return void 0===t&&(t={}),e.call(this,eg({event:"pinch",threshold:0,pointers:2},t))||this}tg(t,e);var n=t.prototype;return n.getTouchAction=function(){return[vg]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},n.emit=function(t){if(1!==t.scale){var n=t.scale<1?"in":"out";t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}(wy),My=function(e){function t(t){return void 0===t&&(t={}),e.call(this,eg({event:"rotate",threshold:0,pointers:2},t))||this}tg(t,e);var n=t.prototype;return n.getTouchAction=function(){return[vg]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},t}(wy),Ty=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,eg({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,n._input=null,n}tg(t,e);var n=t.prototype;return n.getTouchAction=function(){return[pg]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,o=e.deltaTime>n.time;if(this._input=e,!i||!r||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.time);else if(4&e.eventType)return 8;return py},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=lg(),this.manager.emit(this.options.event,this._input)))},t}(yy),Ey={domEvents:!1,touchAction:hg,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Cy=[[My,{enable:!1}],[Sy,{enable:!1},["rotate"]],[ky,{direction:6}],[_y,{direction:6},["swipe"]],[by],[by,{event:"doubletap",taps:2},["tap"]],[Ty]];function Oy(e,t){var n,r=e.element;r.style&&(Og(e.options.cssProps,(function(i,o){n=cg(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var Dy=function(){function e(e,t){var n,r=this;this.options=ig({},Ey,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(xg?Kg:_g?ry:wg?dy:uy))(n,Zg),this.touchAction=new jg(this,this.options.touchAction),Oy(this,!0),Og(this.options.recognizers,(function(e){var t=r.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}var t=e.prototype;return t.set=function(e){return ig(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(t.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(t.curRecognizer=n,i=n),o++}},t.get=function(e){if(e instanceof yy)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event===e)return t[n];return null},t.add=function(e){if(hy(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},t.remove=function(e){if(hy(e,"remove",this))return this;var t=this.get(e);if(e){var n=this.recognizers,r=qg(n,t);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},t.on=function(e,t){if(void 0===e||void 0===t)return this;var n=this.handlers;return Og(Wg(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this},t.off=function(e,t){if(void 0===e)return this;var n=this.handlers;return Og(Wg(e),(function(e){t?n[e]&&n[e].splice(qg(n[e],t),1):delete n[e]})),this},t.emit=function(e,t){this.options.domEvents&&function(e,t){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},t.destroy=function(){this.element&&Oy(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),Ny={touchstart:1,touchmove:2,touchend:4,touchcancel:8},jy="touchstart",Ay="touchstart touchmove touchend touchcancel",Py=function(e){function t(){var n,r=t.prototype;return r.evTarget=jy,r.evWin=Ay,(n=e.apply(this,arguments)||this).started=!1,n}return tg(t,e),t.prototype.handler=function(e){var t=Ny[e.type];if(1===t&&(this.started=!0),this.started){var n=Ry.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:kg,srcEvent:e})}},t}(Vg);function Ry(e,t){var n=Jg(e.touches),r=Jg(e.changedTouches);return 12&t&&(n=ey(n.concat(r),"identifier",!0)),[n,r]}function Iy(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),e.apply(this,arguments)}}var Fy=Iy((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&void 0===e[r[i]])&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),Ly=Iy((function(e,t){return Fy(e,t,!0)}),"merge","Use `assign`.");function zy(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&ig(r,n)}function By(e,t){return function(){return e.apply(t,arguments)}}var Zy=function(){var e=function(e,t){return void 0===t&&(t={}),new Dy(e,eg({recognizers:Cy.concat()},t))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=30,e.DIRECTION_DOWN=Mg,e.DIRECTION_LEFT=2,e.DIRECTION_RIGHT=4,e.DIRECTION_UP=8,e.DIRECTION_HORIZONTAL=6,e.DIRECTION_VERTICAL=Tg,e.DIRECTION_NONE=1,e.DIRECTION_DOWN=Mg,e.INPUT_START=1,e.INPUT_MOVE=2,e.INPUT_END=4,e.INPUT_CANCEL=8,e.STATE_POSSIBLE=1,e.STATE_BEGAN=2,e.STATE_CHANGED=4,e.STATE_ENDED=8,e.STATE_RECOGNIZED=8,e.STATE_CANCELLED=16,e.STATE_FAILED=py,e.Manager=Dy,e.Input=Vg,e.TouchAction=jg,e.TouchInput=ry,e.MouseInput=uy,e.PointerEventInput=Kg,e.TouchMouseInput=dy,e.SingleTouchInput=Py,e.Recognizer=yy,e.AttrRecognizer=wy,e.Tap=by,e.Pan=_y,e.Swipe=ky,e.Pinch=Sy,e.Rotate=My,e.Press=Ty,e.on=Hg,e.off=Yg,e.each=Og,e.merge=Ly,e.extend=Fy,e.bindFn=By,e.assign=ig,e.inherit=zy,e.bindFn=By,e.prefixed=cg,e.toArray=Jg,e.inArray=qg,e.uniqueArray=ey,e.splitStr=Wg,e.boolOrFn=Dg,e.hasParent=Ag,e.addEventListeners=Hg,e.removeEventListeners=Yg,e.defaults=ig({},Ey,{preset:Cy}),e}();function Wy(e,t){var n=wd(e);if(Nl){var r=Nl(e);t&&(r=Yp(r).call(r,(function(t){return Hl(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hy(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?uh(n=Wy(Object(i),!0)).call(n,(function(t){Ec(e,t,i[t])})):nc?fc(e,nc(i)):uh(r=Wy(Object(i))).call(r,(function(t){wc(e,t,Hl(i,t))}))}return e}function Yy(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return Uy(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uy(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Zy.defaults;var Vy=Uf("DELETE");function qy(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Gy.apply(void 0,Jf(t=[{},e]).call(t,r))}function Gy(){var e=Xy.apply(void 0,arguments);return Qy(e),e}function Xy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)return t[0];var r;if(t.length>2)return Xy.apply(void 0,Jf(r=[Gy(t[0],t[1])]).call(r,Hf(td(t).call(t,2))));var i,o=t[0],a=t[1],s=Yy(id(a));try{for(s.s();!(i=s.n()).done;){var u=i.value;Object.prototype.propertyIsEnumerable.call(a,u)&&(a[u]===Vy?delete o[u]:null===o[u]||null===a[u]||"object"!==Wf(o[u])||"object"!==Wf(a[u])||ad(o[u])||ad(a[u])?o[u]=$y(a[u]):o[u]=Xy(o[u],a[u]))}}catch(l){s.e(l)}finally{s.f()}return o}function $y(e){return ad(e)?md(e).call(e,(function(e){return $y(e)})):"object"===Wf(e)&&null!==e?Xy({},e):e}function Qy(e){for(var t=0,n=wd(e);t<n.length;t++){var r=n[t];e[r]===Vy?delete e[r]:"object"===Wf(e[r])&&null!==e[r]&&Qy(e[r])}}function Ky(e){var t=function(){for(var e=Jy(),t=e(" "),n=e(" "),r=e(" "),i=0;i<arguments.length;i++)(t-=e(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(t+=1),(n-=e(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=e(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[t,n,r]}(e),n=Ff(t,3),r=n[0],i=n[1],o=n[2],a=1,s=function(){var e=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=e-(a=0|e)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=e,s.version="0.9",s}function Jy(){var e=4022871197;return function(t){for(var n=t.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(e+=n.charCodeAt(r));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)}}var eb="undefined"!==typeof window?window.Hammer||Zy:function(){return function(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}()};function tb(e){var t,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=eb(this._dom.overlay);r.on("tap",Gd(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];uh(i).call(i,(function(e){r.on(e,(function(e){e.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(t){(function(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1})(t.target,e)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(e){("key"in e?"Escape"===e.key:27===e.keyCode)&&n.deactivate()}}Jv(tb.prototype),tb.current=null,tb.prototype.destroy=function(){var e,t;this.deactivate();var n,r=Yy(wh(e=Wh(t=this._cleanupQueue).call(t,0)).call(e));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(i){r.e(i)}finally{r.f()}},tb.prototype.activate=function(){tb.current&&tb.current.deactivate(),tb.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},tb.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},tb.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};var nb=/^\/?Date\((-?\d+)/i,rb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ib=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ob=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,ab=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function sb(e){return e instanceof Number||"number"===typeof e}function ub(e){return e instanceof String||"string"===typeof e}function lb(e){return"object"===Wf(e)&&null!==e}function cb(e,t,n,r){var i=!1;!0===r&&(i=null===t[n]&&void 0!==e[n]),i?delete e[n]:e[n]=t[n]}var fb=op;function db(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)||!0===n)if("object"===Wf(t[i])&&null!==t[i]&&Rp(t[i])===Object.prototype)void 0===e[i]?e[i]=db({},t[i],n):"object"===Wf(e[i])&&null!==e[i]&&Rp(e[i])===Object.prototype?db(e[i],t[i],n):cb(e,t,i,r);else if(ad(t[i])){var o;e[i]=td(o=t[i]).call(o)}else cb(e,t,i,r);return e}function hb(e){var t=Wf(e);return"object"===t?null===e?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":ad(e)?"Array":e instanceof Date?"Date":"Object":"number"===t?"Number":"boolean"===t?"Boolean":"string"===t?"String":void 0===t?"undefined":t}function pb(e,t){var n;return Jf(n=[]).call(n,Hf(e),[t])}function mb(e){return td(e).call(e)}var vb=tm;var gb={asBoolean:function(e,t){return"function"==typeof e&&(e=e()),null!=e?0!=e:t||null},asNumber:function(e,t){return"function"==typeof e&&(e=e()),null!=e?Number(e)||t||null:t||null},asString:function(e,t){return"function"==typeof e&&(e=e()),null!=e?String(e):t||null},asSize:function(e,t){return"function"==typeof e&&(e=e()),ub(e)?e:sb(e)?e+"px":t||null},asElement:function(e,t){return"function"==typeof e&&(e=e()),e||t||null}};function yb(e){var t;switch(e.length){case 3:case 4:return(t=ib.exec(e))?{r:Mm(t[1]+t[1],16),g:Mm(t[2]+t[2],16),b:Mm(t[3]+t[3],16)}:null;case 6:case 7:return(t=rb.exec(e))?{r:Mm(t[1],16),g:Mm(t[2],16),b:Mm(t[3],16)}:null;default:return null}}function bb(e,t,n){var r;return"#"+td(r=((1<<24)+(e<<16)+(t<<8)+n).toString(16)).call(r,1)}function wb(e,t,n){e/=255,t/=255,n/=255;var r=Math.min(e,Math.min(t,n)),i=Math.max(e,Math.max(t,n));return r===i?{h:0,s:0,v:r}:{h:60*((e===r?3:n===r?1:5)-(e===r?t-n:n===r?e-t:n-e)/(i-r))/360,s:(i-r)/i,v:i}}var xb=function(e){var t,n={};return uh(t=e.split(";")).call(t,(function(e){if(""!=Qm(e).call(e)){var t,r,i=e.split(":"),o=Qm(t=i[0]).call(t),a=Qm(r=i[1]).call(r);n[o]=a}})),n},_b=function(e){var t;return md(t=wd(e)).call(t,(function(t){return t+": "+e[t]})).join("; ")};function kb(e,t,n){var r,i,o,a=Math.floor(6*e),s=6*e-a,u=n*(1-t),l=n*(1-s*t),c=n*(1-(1-s)*t);switch(a%6){case 0:r=n,i=c,o=u;break;case 1:r=l,i=n,o=u;break;case 2:r=u,i=n,o=c;break;case 3:r=u,i=l,o=n;break;case 4:r=c,i=u,o=n;break;case 5:r=n,i=u,o=l}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function Sb(e,t,n){var r=kb(e,t,n);return bb(r.r,r.g,r.b)}function Mb(e){var t=yb(e);if(!t)throw new TypeError("'".concat(e,"' is not a valid color."));return wb(t.r,t.g,t.b)}function Tb(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}function Eb(e){return ob.test(e)}function Cb(e){return ab.test(e)}function Ob(e){if(null===e||"object"!==Wf(e))return null;if(e instanceof Element)return e;var t=tv(e);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"object"==Wf(e[n])&&(t[n]=Ob(e[n]));return t}var Db={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Nb=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;xc(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Tc(e,[{key:"insertTo",value:function(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if("function"!==typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if("function"!==typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if("string"===typeof e)return Db[e]}},{key:"setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==e){var n,r=this._isColorString(e);if(void 0!==r&&(e=r),!0===ub(e)){if(!0===Eb(e)){var i=e.substr(4).substr(0,e.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===Cb(e)){var o=e.substr(5).substr(0,e.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Tb(e)){var a=yb(e);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){var s=void 0!==e.a?e.a:"1.0";n={r:e.r,g:e.g,b:e.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Sv(e));this._setColor(n,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===t&&(this.previousColor=op({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Lv((function(){void 0!==e.closeCallback&&(e.closeCallback(),e.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===t&&(this.initialColor=op({},e)),this.color=e;var n=wb(e.r,e.g,e.b),r=2*Math.PI,i=this.r*n.s,o=this.centerCoordinates.x+i*Math.sin(r*n.h),a=this.centerCoordinates.y+i*Math.cos(r*n.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=wb(this.color.r,this.color.g,this.color.b);t.v=e/100;var n=kb(t.h,t.s,t.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=wb(e.r,e.g,e.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-t.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),$v(n).call(n),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(s){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(s){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Gd(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Gd(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Gd(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Gd(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new eb(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(t){t.isFirst&&e._moveSelector(t)})),this.hammer.on("tap",(function(t){e._moveSelector(t)})),this.hammer.on("panstart",(function(t){e._moveSelector(t)})),this.hammer.on("panmove",(function(t){e._moveSelector(t)})),this.hammer.on("panend",(function(t){e._moveSelector(t)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,u=2*Math.PI/360,l=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)t=this.centerCoordinates.x+i*Math.sin(u*r),n=this.centerCoordinates.y+i*Math.cos(u*r),s=kb(.002777777777777778*r,i*l,1),e.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",e.fillRect(t-.5,n-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(e){var t=this.colorPickerDiv.getBoundingClientRect(),n=e.center.x-t.left,r=e.center.y-t.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,u=Math.atan2(a,s),l=.98*Math.min(Math.sqrt(a*a+s*s),o),c=Math.cos(u)*l+i,f=Math.sin(u)*l+o;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px";var d=u/(2*Math.PI);d=d<0?d+1:d;var h=l/this.r,p=wb(this.color.r,this.color.g,this.color.b);p.h=d,p.s=h;var m=kb(p.h,p.s,p.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();function jb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<1)throw new TypeError("Invalid arguments.");if(1===t.length)return document.createTextNode(t[0]);var r=document.createElement(t[0]);return r.appendChild(jb.apply(void 0,Hf(td(t).call(t,1)))),r}var Ab,Pb=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};xc(this,e),this.parent=t,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},op(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Nb(i),this.wrapper=void 0}return Tc(e,[{key:"setOptions",value:function(e){if(void 0!==e){this.popupHistory={},this._removePopup();var t=!0;if("string"===typeof e)this.options.filter=e;else if(ad(e))this.options.filter=e.join();else if("object"===Wf(e)){if(null==e)throw new TypeError("options cannot be null");void 0!==e.container&&(this.options.container=e.container),void 0!==Yp(e)&&(this.options.filter=Yp(e)),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)}else"boolean"===typeof e?(this.options.filter=!0,t=e):"function"===typeof e&&(this.options.filter=e,t=!0);!1===Yp(this.options)&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=Yp(this.options),t=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"===typeof e?n=(n=e(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==e&&-1===zm(e).call(e,r)||(n=!0),!1!==n&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(e){for(var t=this.moduleOptions,n=0;n<e.length;n++){if(void 0===t[e[n]]){t=void 0;break}t=t[e[n]]}return t}},{key:"_makeItem",value:function(e){if(!0===this.allowCreation){var t=document.createElement("div");t.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return uh(r).call(r,(function(e){t.appendChild(e)})),this.domElements.push(t),this.domElements.length}return 0}},{key:"_makeHeader",value:function(e){var t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerText=e,this._makeItem([],t)}},{key:"_makeLabel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+t.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(jb("i","b",e))}else r.innerText=e+":";return r}},{key:"_makeDropdown",value:function(e,t,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==t&&-1!==zm(e).call(e,t)&&(i=zm(e).call(e,t));for(var o=0;o<e.length;o++){var a=document.createElement("option");a.value=e[o],o===i&&(a.selected="selected"),a.innerText=e[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var u=this._makeLabel(n[n.length-1],n);this._makeItem(n,u,r)}},{key:"_makeRange",value:function(e,t,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(m){}s.step=a;var u="",l=0;if(void 0!==t){var c=1.2;t<0&&t*c<i?(s.min=Math.ceil(t*c),l=s.min,u="range increased"):t/c<i&&(s.min=Math.ceil(t/c),l=s.min,u="range increased"),t*c>o&&1!==o&&(s.max=Math.ceil(t*c),l=s.max,u="range increased"),s.value=t}else s.value=r;var f=document.createElement("input");f.className="vis-configuration vis-config-rangeinput",f.value=s.value;var d=this;s.onchange=function(){f.value=this.value,d._update(Number(this.value),n)},s.oninput=function(){f.value=this.value};var h=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,h,s,f);""!==u&&this.popupHistory[p]!==l&&(this.popupHistory[p]=l,this._setupPopup(u,p))}},{key:"_makeButton",value:function(){var e=this;if(!0===this.options.showButton){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=e,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:t}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var e=this;if(void 0!==this.popupDiv.html){var t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Lv((function(){e.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=Lv((function(){e._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(e,t,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=e,void 0!==t&&(r.checked=t,t!==e&&("object"===Wf(e)?t!==e.enabled&&this.changedOptions.push({path:n,value:t}):this.changedOptions.push({path:n,value:t})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(e,t,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=t,t!==e&&this.changedOptions.push({path:n,value:t});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(e,t,n){var r=this,i=e[1],o=document.createElement("div");"none"!==(t=void 0===t?i:t)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=t):o.className="vis-configuration vis-config-colorBlock none",t=void 0===t?i:t,o.onclick=function(){r._showColorPicker(t,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(e,t,n){var r=this;t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback((function(e){var i="rgba("+e.r+","+e.g+","+e.b+","+e.a+")";t.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){t.onclick=function(){r._showColorPicker(e,t,n)}}))}},{key:"_handleObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=Yp(this.options),o=!1;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){r=!0;var s=e[a],u=pb(t,a);if("function"===typeof i&&!1===(r=i(a,t))&&!ad(s)&&"string"!==typeof s&&"boolean"!==typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,u,!0),this.allowCreation=!1===n),!1!==r){o=!0;var l=this._getValue(u);if(ad(s))this._handleArray(s,l,u);else if("string"===typeof s)this._makeTextInput(s,l,u);else if("boolean"===typeof s)this._makeCheckbox(s,l,u);else if(s instanceof Object){if(!this.hideOption(t,a,this.moduleOptions))if(void 0!==s.enabled){var c=pb(u,"enabled"),f=this._getValue(c);if(!0===f){var d=this._makeLabel(a,u,!0);this._makeItem(u,d),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,f,u)}else{var h=this._makeLabel(a,u,!0);this._makeItem(u,h),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,a,u)}}return o}},{key:"_handleArray",value:function(e,t,n){"string"===typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,n),e[1]!==t&&this.changedOptions.push({path:n,value:t})):"string"===typeof e[0]?(this._makeDropdown(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:t})):"number"===typeof e[0]&&(this._makeRange(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:Number(t)}))}},{key:"_update",value:function(e,t){var n=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;e="false"!==(e="true"===e||e)&&e;for(var i=0;i<t.length;i++)"global"!==t[i]&&(void 0===r[t[i]]&&(r[t[i]]={}),i!==t.length-1?r=r[t[i]]:r[t[i]]=e);return n}},{key:"_printOptions",value:function(){for(var e=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(jb("pre","const options = "+Sv(e,null,2)))}},{key:"getOptions",value:function(){for(var e={},t=0;t<this.changedOptions.length;t++)this._constructOptions(this.changedOptions[t].value,this.changedOptions[t].path,e);return e}}]),e}(),Rb=function(){function e(t,n){xc(this,e),this.container=t,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Tc(e,[{key:"setPosition",value:function(e,t){this.x=Mm(e),this.y=Mm(t)}},{key:"setText",value:function(e){if(e instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(e)}else this.frame.innerText=e}},{key:"show",value:function(e){if(void 0===e&&(e=!0),!0===e){var t=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,u=!0;this.y-t<this.padding&&(u=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=u?this.y-t:this.y}else(a=this.y-t)+t+this.padding>r&&(a=r-t-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),Ib=!1,Fb="background: #FFeeee; color: #dd0000",Lb=function(){function e(){xc(this,e)}return Tc(e,null,[{key:"validate",value:function(t,n,r){Ib=!1,Ab=n;var i=n;return void 0!==r&&(i=n[r]),e.parse(t,i,[]),Ib}},{key:"parse",value:function(t,n,r){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.check(i,t,n,r)}},{key:"check",value:function(t,n,r,i){if(void 0!==r[t]||void 0!==r.__any__){var o=t,a=!0;void 0===r[t]&&void 0!==r.__any__&&(o="__any__",a="object"===e.getType(n[t]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),e.checkFields(t,n,r,o,s,i)}else e.getSuggestion(t,r,i)}},{key:"checkFields",value:function(t,n,r,i,o,a){var s=function(n){console.error("%c"+n+e.printLocation(a,t),Fb)},u=e.getType(n[t]),l=o[u];void 0!==l?"array"===e.getType(l)&&-1===zm(l).call(l,n[t])?(s('Invalid option detected in "'+t+'". Allowed values are:'+e.print(l)+' not "'+n[t]+'". '),Ib=!0):"object"===u&&"__any__"!==i&&(a=pb(a,t),e.parse(n[t],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+t+'". Expected: '+e.print(wd(o))+". Received ["+u+'] "'+n[t]+'"'),Ib=!0)}},{key:"getType",value:function(e){var t=Wf(e);return"object"===t?null===e?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":ad(e)?"array":e instanceof Date?"date":void 0!==e.nodeType?"dom":!0===e._isAMomentObject?"moment":"object":"number"===t?"number":"boolean"===t?"boolean":"string"===t?"string":void 0===t?"undefined":t}},{key:"getSuggestion",value:function(t,n,r){var i,o=e.findInOptions(t,n,r,!1),a=e.findInOptions(t,Ab,[],!0);i=void 0!==o.indexMatch?" in "+e.printLocation(o.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+e.printLocation(o.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+e.printLocation(o.path,t):". Did you mean one of these: "+e.print(wd(n))+e.printLocation(r,t),console.error('%cUnknown option detected: "'+t+'"'+i,Fb),Ib=!0}},{key:"findInOptions",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],u=t.toLowerCase(),l=void 0;for(var c in n){var f=void 0;if(void 0!==n[c].__type__&&!0===i){var d=e.findInOptions(t,n[c],pb(r,c));o>d.distance&&(a=d.closestMatch,s=d.path,o=d.distance,l=d.indexMatch)}else{var h;-1!==zm(h=c.toLowerCase()).call(h,u)&&(l=c),o>(f=e.levenshteinDistance(t,c))&&(a=c,s=mb(r),o=f)}}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",r="\n\n"+n+"options = {\n",i=0;i<e.length;i++){for(var o=0;o<i+1;o++)r+=" ";r+=e[i]+": {\n"}for(var a=0;a<e.length+1;a++)r+=" ";r+=t+"\n";for(var s=0;s<e.length+1;s++){for(var u=0;u<e.length-s;u++)r+=" ";r+="}\n"}return r+"\n\n"}},{key:"print",value:function(e){return Sv(e).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)==e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}}]),e}(),zb=tb,Bb=Nb,Zb=Pb,Wb=eb,Hb=Rb,Yb=Lb,Ub=Object.freeze({__proto__:null,Activator:zb,Alea:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ky(t.length?t:[Ed()])},ColorPicker:Bb,Configurator:Zb,DELETE:Vy,HSVToHex:Sb,HSVToRGB:kb,Hammer:Wb,Popup:Hb,RGBToHSV:wb,RGBToHex:bb,VALIDATOR_PRINT_STYLE:"background: #FFeeee; color: #dd0000",Validator:Yb,addClassName:function(e,t){var n=e.className.split(" "),r=t.split(" ");n=Jf(n).call(n,Yp(r).call(r,(function(e){return!Op(n).call(n,e)}))),e.className=n.join(" ")},addCssText:function(e,t){var n=xb(e.style.cssText),r=xb(t),i=Hy(Hy({},n),r);e.style.cssText=_b(i)},addEventListener:function(e,t,n,r){var i;e.addEventListener?(void 0===r&&(r=!1),"mousewheel"===t&&Op(i=navigator.userAgent).call(i,"Firefox")&&(t="DOMMouseScroll"),e.addEventListener(t,n,r)):e.attachEvent("on"+t,n)},binarySearchCustom:function(e,t,n,r){for(var i=0,o=0,a=e.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),u=e[s],l=t(void 0===r?u[n]:u[n][r]);if(0==l)return s;-1==l?o=s+1:a=s-1,i++}return-1},binarySearchValue:function(e,t,n,r,i){var o,a,s,u,l=0,c=0,f=e.length-1;for(i=void 0!=i?i:function(e,t){return e==t?0:e<t?-1:1};c<=f&&l<1e4;){if(u=Math.floor(.5*(f+c)),o=e[Math.max(0,u-1)][n],a=e[u][n],s=e[Math.min(e.length-1,u+1)][n],0==i(a,t))return u;if(i(o,t)<0&&i(a,t)>0)return"before"==r?Math.max(0,u-1):u;if(i(a,t)<0&&i(s,t)>0)return"before"==r?u:Math.min(e.length-1,u+1);i(a,t)<0?c=u+1:f=u-1,l++}return-1},bridgeObject:Ob,copyAndExtendArray:pb,copyArray:mb,deepExtend:db,deepObjectAssign:Gy,easingFunctions:{linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},equalArray:function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!=t[n])return!1;return!0},extend:fb,fillIfDefined:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in t)if(void 0!==n[i])if(null===n[i]||"object"!==Wf(n[i]))cb(t,n,i,r);else{var o=t[i],a=n[i];lb(o)&&lb(a)&&e(o,a,r)}},forEach:function(e,t){if(ad(e))for(var n=e.length,r=0;r<n;r++)t(e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t(e[i],i,e)},getAbsoluteLeft:function(e){return e.getBoundingClientRect().left},getAbsoluteRight:function(e){return e.getBoundingClientRect().right},getAbsoluteTop:function(e){return e.getBoundingClientRect().top},getScrollBarWidth:function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;return n==r&&(r=t.clientWidth),document.body.removeChild(t),n-r},getTarget:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,t=null;return e&&(e.target?t=e.target:e.srcElement&&(t=e.srcElement)),t instanceof Element&&(null==t.nodeType||3!=t.nodeType||(t=t.parentNode)instanceof Element)?t:null},getType:hb,hasParent:function(e,t){for(var n=e;n;){if(n===t)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},hexToHSV:Mb,hexToRGB:yb,insertSort:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=void 0;for(i=n;i>0&&t(r,e[i-1])<0;i--)e[i]=e[i-1];e[i]=r}return e},isDate:function(e){if(e instanceof Date)return!0;if(ub(e)){if(nb.exec(e))return!0;if(!isNaN(Date.parse(e)))return!0}return!1},isNumber:sb,isObject:lb,isString:ub,isValidHex:Tb,isValidRGB:Eb,isValidRGBA:Cb,mergeOptions:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(e){return null!==e&&void 0!==e},o=function(e){return null!==e&&"object"===Wf(e)},a=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0};if(!o(e))throw new Error("Parameter mergeTarget must be an object");if(!o(t))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var s=function(e,t,n){o(e[n])||(e[n]={});var r=t[n],i=e[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},u=t[n],l=o(r)&&!a(r),c=l?r[n]:void 0,f=c?c.enabled:void 0;if(void 0!==u){if("boolean"===typeof u)return o(e[n])||(e[n]={}),void(e[n].enabled=u);if(null===u&&!o(e[n])){if(!i(c))return;e[n]=tv(c)}if(o(u)){var d=!0;void 0!==u.enabled?d=u.enabled:void 0!==f&&(d=c.enabled),s(e,t,n),e[n].enabled=d}}},option:gb,overrideOpacity:function(e,t){if(Op(e).call(e,"rgba"))return e;if(Op(e).call(e,"rgb")){var n=e.substr(zm(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+t+")"}var r=yb(e);return null==r?e:"rgba("+r.r+","+r.g+","+r.b+","+t+")"},parseColor:function(e,t){if(ub(e)){var n=e;if(Eb(n)){var r,i=md(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(e){return Mm(e)}));n=bb(i[0],i[1],i[2])}if(!0===Tb(n)){var o=Mb(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},u=Sb(s.h,s.s,s.v),l=Sb(a.h,a.s,a.v);return{background:n,border:u,highlight:{background:l,border:u},hover:{background:l,border:u}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return t?{background:e.background||t.background,border:e.border||t.border,highlight:ub(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||t.highlight.background,border:e.highlight&&e.highlight.border||t.highlight.border},hover:ub(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||t.hover.border,background:e.hover&&e.hover.background||t.hover.background}}:{background:e.background||void 0,border:e.border||void 0,highlight:ub(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:ub(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}}},preventDefault:function(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},pureDeepObjectAssign:qy,recursiveDOMDelete:function e(t){if(t)for(;!0===t.hasChildNodes();){var n=t.firstChild;n&&(e(n),t.removeChild(n))}},removeClassName:function(e,t){var n=e.className.split(" "),r=t.split(" ");n=Yp(n).call(n,(function(e){return!Op(r).call(r,e)})),e.className=n.join(" ")},removeCssText:function(e,t){var n=xb(e.style.cssText),r=xb(t);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete n[i];e.style.cssText=_b(n)},removeEventListener:function(e,t,n,r){var i;e.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===t&&Op(i=navigator.userAgent).call(i,"Firefox")&&(t="DOMMouseScroll"),e.removeEventListener(t,n,r)):e.detachEvent("on"+t,n)},selectiveBridgeObject:function(e,t){if(null!==t&&"object"===Wf(t)){for(var n=tv(t),r=0;r<e.length;r++)Object.prototype.hasOwnProperty.call(t,e[r])&&"object"==Wf(t[e[r]])&&(n[e[r]]=Ob(t[e[r]]));return n}return null},selectiveDeepExtend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ad(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<e.length;i++){var o=e[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===t[o]&&(t[o]={}),t[o].constructor===Object?db(t[o],n[o],!1,r):cb(t,n,o,r);else{if(ad(n[o]))throw new TypeError("Arrays are not supported by deepExtend");cb(t,n,o,r)}}return t},selectiveExtend:function(e,t){if(!ad(e))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var o=0,a=r;o<a.length;o++)for(var s=a[o],u=0;u<e.length;u++){var l=e[u];s&&Object.prototype.hasOwnProperty.call(s,l)&&(t[l]=s[l])}return t},selectiveNotDeepExtend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ad(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Op(e).call(e,i))if(n[i]&&n[i].constructor===Object)void 0===t[i]&&(t[i]={}),t[i].constructor===Object?db(t[i],n[i]):cb(t,n,i,r);else if(ad(n[i])){t[i]=[];for(var o=0;o<n[i].length;o++)t[i].push(n[i][o])}else cb(t,n,i,r);return t},throttle:function(e){var t=!1;return function(){t||(t=!0,requestAnimationFrame((function(){t=!1,e()})))}},toArray:vb,topMost:function(e,t){var n;ad(t)||(t=[t]);var r,i=Yy(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[t[0]];for(var a=1;a<t.length;a++)n&&(n=n[t[a]]);if("undefined"!==typeof n)break}}}catch(s){i.e(s)}finally{i.f()}return n},updateProperty:function(e,t,n){return e[t]!==n&&(e[t]=n,!0)}});function Vb(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])}function qb(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].redundant){for(var n=0;n<e[t].redundant.length;n++)e[t].redundant[n].parentNode.removeChild(e[t].redundant[n]);e[t].redundant=[]}}function Gb(e){Vb(e),qb(e),Vb(e)}function Xb(e,t,n){var r;return t.hasOwnProperty(e)?t[e].redundant.length>0?(r=t[e].redundant[0],t[e].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",e),n.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},n.appendChild(r)),t[e].used.push(r),r}function $b(e,t,n,r){var i;return t.hasOwnProperty(e)?t[e].redundant.length>0?(i=t[e].redundant[0],t[e].redundant.shift()):(i=document.createElement(e),void 0!==r?n.insertBefore(i,r):n.appendChild(i)):(i=document.createElement(e),t[e]={used:[],redundant:[]},void 0!==r?n.insertBefore(i,r):n.appendChild(i)),t[e].used.push(i),i}function Qb(e,t,n,r,i,o){var a;if("circle"==n.style?((a=Xb("circle",r,i)).setAttributeNS(null,"cx",e),a.setAttributeNS(null,"cy",t),a.setAttributeNS(null,"r",.5*n.size)):((a=Xb("rect",r,i)).setAttributeNS(null,"x",e-.5*n.size),a.setAttributeNS(null,"y",t-.5*n.size),a.setAttributeNS(null,"width",n.size),a.setAttributeNS(null,"height",n.size)),void 0!==n.styles&&a.setAttributeNS(null,"style",n.styles),a.setAttributeNS(null,"class",n.className+" vis-point"),o){var s=Xb("text",r,i);o.xOffset&&(e+=o.xOffset),o.yOffset&&(t+=o.yOffset),o.content&&(s.textContent=o.content),o.className&&s.setAttributeNS(null,"class",o.className+" vis-label"),s.setAttributeNS(null,"x",e),s.setAttributeNS(null,"y",t)}return a}function Kb(e,t,n,r,i,o,a,s){if(0!=r){r<0&&(t-=r*=-1);var u=Xb("rect",o,a);u.setAttributeNS(null,"x",e-.5*n),u.setAttributeNS(null,"y",t),u.setAttributeNS(null,"width",n),u.setAttributeNS(null,"height",r),u.setAttributeNS(null,"class",i),s&&u.setAttributeNS(null,"style",s)}}function Jb(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(NA){return"en"}}var ew=Object.freeze({__proto__:null,prepareElements:Vb,cleanupElements:qb,resetElements:Gb,getSVGElement:Xb,getDOMElement:$b,drawPoint:Qb,drawBar:Kb,getNavigatorLanguage:Jb}),tw={exports:{}},nw=wa,rw=Ot,iw=k.TypeError,ow=function(e){if(nw(e))return e;throw iw(rw(e)+" is not a constructor")},aw=Fr,sw=Hn,uw=Bd,lw=ow,cw=gt,fw=rt,dw=Ii,hw=f,pw=K("Reflect","construct"),mw=Object.prototype,vw=[].push,gw=hw((function(){function e(){}return!(pw((function(){}),[],e)instanceof e)})),yw=!hw((function(){pw((function(){}))})),bw=gw||yw;aw({target:"Reflect",stat:!0,forced:bw,sham:bw},{construct:function(e,t){lw(e),cw(t);var n=arguments.length<3?e:lw(arguments[2]);if(yw&&!gw)return pw(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return sw(vw,r,t),new(sw(uw,e,r))}var i=n.prototype,o=dw(fw(i)?i:mw),a=sw(e,o,t);return fw(a)?a:o}});var ww=V.Reflect.construct;!function(e){e.exports=ww}(tw);var xw=o(tw.exports);function _w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var kw={exports:{}},Sw=ev;!function(e){e.exports=Sw}(kw);var Mw=o(kw.exports),Tw={exports:{}};Fr({target:"Object",stat:!0},{setPrototypeOf:Co});var Ew=V.Object.setPrototypeOf;!function(e){e.exports=Ew}(Tw);var Cw=o(Tw.exports),Ow={exports:{}},Dw=qd;!function(e){e.exports=Dw}(Ow);var Nw=o(Ow.exports);function jw(e,t){var n;return jw=Cw?Nw(n=Cw).call(n):function(e,t){return e.__proto__=t,e},jw(e,t)}function Aw(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Mw(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Sc(e,"prototype",{writable:!1}),t&&jw(e,t)}function Pw(e,t){if(t&&("object"===Wf(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _w(e)}var Rw={exports:{}},Iw=Pp;!function(e){e.exports=Iw}(Rw);var Fw=o(Rw.exports);function Lw(e){var t;return Lw=Cw?Nw(t=Fw).call(t):function(e){return e.__proto__||Fw(e)},Lw(e)}var zw={exports:{}},Bw={exports:{}};!function(e){var t=jc.exports,n=Lf.exports;function r(i){return e.exports=r="function"==typeof t&&"symbol"==typeof n?function(e){return typeof e}:function(e){return e&&"function"==typeof t&&e.constructor===t&&e!==t.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Bw);var Zw={exports:{}},Ww=sh;!function(e){e.exports=Ww}(Zw);var Hw={exports:{}},Yw=B,Uw=$l,Vw=Yn,qw=ot,Gw=y("".replace),Xw=String(Error("zxcasd").stack),$w=/\n\s*at [^:]*:[^\n]*/,Qw=$w.test(Xw),Kw=rt,Jw=mn,ex=Mr,tx=wt,nx=gt,rx=Ot,ix=aa,ox=Kr,ax=xt,sx=Ia,ux=Oa,lx=ea,cx=k.TypeError,fx=function(e,t){this.stopped=e,this.result=t},dx=fx.prototype,hx=function(e,t,n){var r,i,o,a,s,u,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=ex(t,c),m=function(e){return r&&lx(r,"normal",e),new fx(!0,e)},v=function(e){return f?(nx(e),h?p(e[0],e[1],m):p(e[0],e[1])):h?p(e,m):p(e)};if(d)r=e;else{if(!(i=ux(e)))throw cx(rx(e)+" is not iterable");if(ix(i)){for(o=0,a=ox(e);a>o;o++)if((s=v(e[o]))&&ax(dx,s))return s;return new fx(!1)}r=sx(e,i)}for(u=r.next;!(l=tx(u,r)).done;){try{s=v(l.value)}catch(NA){lx(r,"throw",NA)}if("object"==typeof s&&s&&ax(dx,s))return s}return new fx(!1)},px=Le,mx=dn,vx=!f((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",mx(1,7)),7!==e.stack)})),gx=Fr,yx=k,bx=xt,wx=Vi,xx=Co,_x=function(e,t,n){for(var r=Uw(t),i=qw.f,o=Vw.f,a=0;a<r.length;a++){var s=r[a];Yw(e,s)||n&&Yw(n,s)||i(e,s,o(t,s))}},kx=Ii,Sx=mn,Mx=dn,Tx=function(e,t){if(Qw&&"string"==typeof e)for(;t--;)e=Gw(e,$w,"");return e},Ex=function(e,t){Kw(t)&&"cause"in t&&Jw(e,"cause",t.cause)},Cx=hx,Ox=function(e,t){return void 0===e?arguments.length<2?"":t:px(e)},Dx=vx,Nx=xe("toStringTag"),jx=yx.Error,Ax=[].push,Px=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=bx(Rx,this);xx?n=xx(new jx,i?wx(this):Rx):(n=i?this:kx(Rx),Sx(n,Nx,"Error")),void 0!==t&&Sx(n,"message",Ox(t)),Dx&&Sx(n,"stack",Tx(n.stack,1)),Ex(n,r);var o=[];return Cx(e,Ax,{that:o}),Sx(n,"errors",o),n};xx?xx(Px,jx):_x(Px,jx,{name:!0});var Rx=Px.prototype=kx(jx.prototype,{constructor:Mx(1,Px),message:Mx(1,""),name:Mx(1,"AggregateError")});gx({global:!0},{AggregateError:Px});var Ix,Fx,Lx,zx,Bx=k.Promise,Zx=Gi,Wx=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:Zx(e,r,t[r],n);return e},Hx=K,Yx=ot,Ux=it,Vx=xe("species"),qx=function(e){var t=Hx(e),n=Yx.f;Ux&&t&&!t[Vx]&&n(t,Vx,{configurable:!0,get:function(){return this}})},Gx=xt,Xx=k.TypeError,$x=function(e,t){if(Gx(t,e))return e;throw Xx("Incorrect invocation")},Qx=gt,Kx=ow,Jx=xe("species"),e_=function(e,t){var n,r=Qx(e).constructor;return void 0===r||void 0==(n=Qx(r)[Jx])?t:Kx(n)},t_=/(?:ipad|iphone|ipod).*applewebkit/i.test(J),n_="process"==Ee(k.process),r_=k,i_=Hn,o_=Mr,a_=q,s_=B,u_=f,l_=xi,c_=Zs,f_=lt,d_=Ev,h_=t_,p_=n_,m_=r_.setImmediate,v_=r_.clearImmediate,g_=r_.process,y_=r_.Dispatch,b_=r_.Function,w_=r_.MessageChannel,x_=r_.String,__=0,k_={},S_="onreadystatechange";try{Ix=r_.location}catch(NA){}var M_=function(e){if(s_(k_,e)){var t=k_[e];delete k_[e],t()}},T_=function(e){return function(){M_(e)}},E_=function(e){M_(e.data)},C_=function(e){r_.postMessage(x_(e),Ix.protocol+"//"+Ix.host)};m_&&v_||(m_=function(e){d_(arguments.length,1);var t=a_(e)?e:b_(e),n=c_(arguments,1);return k_[++__]=function(){i_(t,void 0,n)},Fx(__),__},v_=function(e){delete k_[e]},p_?Fx=function(e){g_.nextTick(T_(e))}:y_&&y_.now?Fx=function(e){y_.now(T_(e))}:w_&&!h_?(zx=(Lx=new w_).port2,Lx.port1.onmessage=E_,Fx=o_(zx.postMessage,zx)):r_.addEventListener&&a_(r_.postMessage)&&!r_.importScripts&&Ix&&"file:"!==Ix.protocol&&!u_(C_)?(Fx=C_,r_.addEventListener("message",E_,!1)):Fx=S_ in f_("script")?function(e){l_.appendChild(f_("script")).onreadystatechange=function(){l_.removeChild(this),M_(e)}}:function(e){setTimeout(T_(e),0)});var O_,D_,N_,j_,A_,P_,R_,I_,F_={set:m_,clear:v_},L_=k,z_=/ipad|iphone|ipod/i.test(J)&&void 0!==L_.Pebble,B_=/web0s(?!.*chrome)/i.test(J),Z_=k,W_=Mr,H_=Yn.f,Y_=F_.set,U_=t_,V_=z_,q_=B_,G_=n_,X_=Z_.MutationObserver||Z_.WebKitMutationObserver,$_=Z_.document,Q_=Z_.process,K_=Z_.Promise,J_=H_(Z_,"queueMicrotask"),ek=J_&&J_.value;ek||(O_=function(){var e,t;for(G_&&(e=Q_.domain)&&e.exit();D_;){t=D_.fn,D_=D_.next;try{t()}catch(NA){throw D_?j_():N_=void 0,NA}}N_=void 0,e&&e.enter()},U_||G_||q_||!X_||!$_?!V_&&K_&&K_.resolve?((R_=K_.resolve(void 0)).constructor=K_,I_=W_(R_.then,R_),j_=function(){I_(O_)}):G_?j_=function(){Q_.nextTick(O_)}:(Y_=W_(Y_,Z_),j_=function(){Y_(O_)}):(A_=!0,P_=$_.createTextNode(""),new X_(O_).observe(P_,{characterData:!0}),j_=function(){P_.data=A_=!A_}));var tk=ek||function(e){var t={fn:e,next:void 0};N_&&(N_.next=t),D_||(D_=t,j_()),N_=t},nk={},rk=At,ik=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=rk(t),this.reject=rk(n)};nk.f=function(e){return new ik(e)};var ok=gt,ak=rt,sk=nk,uk=function(e,t){if(ok(e),ak(t)&&t.constructor===e)return t;var n=sk.f(e);return(0,n.resolve)(t),n.promise},lk=k,ck=function(e){try{return{error:!1,value:e()}}catch(NA){return{error:!0,value:NA}}},fk=function(){this.head=null,this.tail=null};fk.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var dk,hk,pk,mk="object"==typeof window,vk=Fr,gk=k,yk=K,bk=wt,wk=Bx,xk=Wx,_k=ho,kk=qx,Sk=At,Mk=q,Tk=rt,Ek=$x,Ck=Qe,Ok=hx,Dk=Ka,Nk=e_,jk=F_.set,Ak=tk,Pk=uk,Rk=function(e,t){var n=lk.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},Ik=nk,Fk=ck,Lk=fk,zk=Ln,Bk=xr,Zk=mk,Wk=n_,Hk=ae,Yk=xe("species"),Uk="Promise",Vk=zk.getterFor(Uk),qk=zk.set,Gk=zk.getterFor(Uk),Xk=wk&&wk.prototype,$k=wk,Qk=Xk,Kk=gk.TypeError,Jk=gk.document,eS=gk.process,tS=Ik.f,nS=tS,rS=!!(Jk&&Jk.createEvent&&gk.dispatchEvent),iS=Mk(gk.PromiseRejectionEvent),oS="unhandledrejection",aS=Bk(Uk,(function(){var e=Ck($k),t=e!==String($k);if(!t&&66===Hk)return!0;if(!Qk.finally)return!0;if(Hk>=51&&/native code/.test(e))return!1;var n=new $k((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Yk]=r,!(n.then((function(){}))instanceof r)||!t&&Zk&&!iS})),sS=aS||!Dk((function(e){$k.all(e).catch((function(){}))})),uS=function(e){var t;return!(!Tk(e)||!Mk(t=e.then))&&t},lS=function(e,t){var n,r,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&pS(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?l(Kk("Promise-chain cycle")):(r=uS(n))?bk(r,n,u,l):u(n)):l(o)}catch(NA){c&&!i&&c.exit(),l(NA)}},cS=function(e,t){e.notified||(e.notified=!0,Ak((function(){for(var n,r=e.reactions;n=r.get();)lS(n,e);e.notified=!1,t&&!e.rejection&&dS(e)})))},fS=function(e,t,n){var r,i;rS?((r=Jk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),gk.dispatchEvent(r)):r={promise:t,reason:n},!iS&&(i=gk["on"+e])?i(r):e===oS&&Rk("Unhandled promise rejection",n)},dS=function(e){bk(jk,gk,(function(){var t,n=e.facade,r=e.value;if(hS(e)&&(t=Fk((function(){Wk?eS.emit("unhandledRejection",r,n):fS(oS,n,r)})),e.rejection=Wk||hS(e)?2:1,t.error))throw t.value}))},hS=function(e){return 1!==e.rejection&&!e.parent},pS=function(e){bk(jk,gk,(function(){var t=e.facade;Wk?eS.emit("rejectionHandled",t):fS("rejectionhandled",t,e.value)}))},mS=function(e,t,n){return function(r){e(t,r,n)}},vS=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,cS(e,!0))},gS=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw Kk("Promise can't be resolved itself");var i=uS(n);i?Ak((function(){var r={done:!1};try{bk(i,n,mS(e,r,t),mS(vS,r,t))}catch(NA){vS(r,NA,t)}})):(t.value=n,t.state=1,cS(t,!1))}catch(NA){vS({done:!1},NA,t)}}};aS&&(Qk=($k=function(e){Ek(this,Qk),Sk(e),bk(dk,this);var t=Vk(this);try{e(mS(gS,t),mS(vS,t))}catch(NA){vS(t,NA)}}).prototype,(dk=function(e){qk(this,{type:Uk,done:!1,notified:!1,parent:!1,reactions:new Lk,rejection:!1,state:0,value:void 0})}).prototype=xk(Qk,{then:function(e,t){var n=Gk(this),r=tS(Nk(this,$k));return n.parent=!0,r.ok=!Mk(e)||e,r.fail=Mk(t)&&t,r.domain=Wk?eS.domain:void 0,0==n.state?n.reactions.add(r):Ak((function(){lS(r,n)})),r.promise},catch:function(e){return this.then(void 0,e)}}),hk=function(){var e=new dk,t=Vk(e);this.promise=e,this.resolve=mS(gS,t),this.reject=mS(vS,t)},Ik.f=tS=function(e){return e===$k||e===pk?new hk(e):nS(e)}),vk({global:!0,wrap:!0,forced:aS},{Promise:$k}),_k($k,Uk,!1,!0),kk(Uk),pk=yk(Uk),vk({target:Uk,stat:!0,forced:aS},{reject:function(e){var t=tS(this);return bk(t.reject,void 0,e),t.promise}}),vk({target:Uk,stat:!0,forced:true},{resolve:function(e){return Pk(this===pk?$k:this,e)}}),vk({target:Uk,stat:!0,forced:sS},{all:function(e){var t=this,n=tS(t),r=n.resolve,i=n.reject,o=Fk((function(){var n=Sk(t.resolve),o=[],a=0,s=1;Ok(e,(function(e){var u=a++,l=!1;s++,bk(n,t,e).then((function(e){l||(l=!0,o[u]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=tS(t),r=n.reject,i=Fk((function(){var i=Sk(t.resolve);Ok(e,(function(e){bk(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var yS=wt,bS=At,wS=nk,xS=ck,_S=hx;Fr({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=wS.f(t),r=n.resolve,i=n.reject,o=xS((function(){var n=bS(t.resolve),i=[],o=0,a=1;_S(e,(function(e){var s=o++,u=!1;a++,yS(n,t,e).then((function(e){u||(u=!0,i[s]={status:"fulfilled",value:e},--a||r(i))}),(function(e){u||(u=!0,i[s]={status:"rejected",reason:e},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var kS=At,SS=K,MS=wt,TS=nk,ES=ck,CS=hx,OS="No one promise resolved";Fr({target:"Promise",stat:!0},{any:function(e){var t=this,n=SS("AggregateError"),r=TS.f(t),i=r.resolve,o=r.reject,a=ES((function(){var r=kS(t.resolve),a=[],s=0,u=1,l=!1;CS(e,(function(e){var c=s++,f=!1;u++,MS(r,t,e).then((function(e){f||l||(l=!0,i(e))}),(function(e){f||l||(f=!0,a[c]=e,--u||o(new n(a,OS)))}))})),--u||o(new n(a,OS))}));return a.error&&o(a.value),r.promise}});var DS=Bx,NS=K,jS=q,AS=e_,PS=uk;Fr({target:"Promise",proto:!0,real:!0,forced:!!DS&&f((function(){DS.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=AS(this,NS("Promise")),n=jS(e);return this.then(n?function(n){return PS(t,e()).then((function(){return n}))}:e,n?function(n){return PS(t,e()).then((function(){throw n}))}:e)}});var RS=V.Promise,IS=nk,FS=ck;Fr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=IS.f(this),n=FS(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var LS=RS;!function(e){e.exports=LS}(Hw);var zS={exports:{}},BS=bh;!function(e){e.exports=BS}(zS),function(e){var t=Bw.exports.default,n=jc.exports,r=_c.exports,i=kw.exports,o=Rw.exports,a=Zw.exports,s=Tw.exports,u=Hw.exports,l=zS.exports,c=af.exports;function f(){e.exports=f=function(){return d},e.exports.__esModule=!0,e.exports.default=e.exports;var d={},h=Object.prototype,p=h.hasOwnProperty,m="function"==typeof n?n:{},v=m.iterator||"@@iterator",g=m.asyncIterator||"@@asyncIterator",y=m.toStringTag||"@@toStringTag";function b(e,t,n){return r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{b({},"")}catch(F){b=function(e,t,n){return e[t]=n}}function w(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,a=i(o.prototype),s=new P(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=N(a,n);if(s){if(s===_)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=x(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===_)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,s),a}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(F){return{type:"throw",arg:F}}}d.wrap=w;var _={};function k(){}function S(){}function M(){}var T={};b(T,v,(function(){return this}));var E=o&&o(o(R([])));E&&E!==h&&p.call(E,v)&&(T=E);var C=M.prototype=k.prototype=i(T);function O(e){var t;a(t=["next","throw","return"]).call(t,(function(t){b(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,n){function r(i,o,a,s){var u=x(e[i],e,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==t(c)&&p.call(c,"__await")?n.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):n.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}}function N(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method))return _;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var r=x(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,_;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,_):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],a(e).call(e,j,this),this.reset(!0)}function R(e){if(e){var t=e[v];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(p.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return S.prototype=M,b(C,"constructor",M),b(M,"constructor",S),S.displayName=b(M,y,"GeneratorFunction"),d.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},d.mark=function(e){return s?s(e,M):(e.__proto__=M,b(e,y,"GeneratorFunction")),e.prototype=i(C),e},d.awrap=function(e){return{__await:e}},O(D.prototype),b(D.prototype,g,(function(){return this})),d.AsyncIterator=D,d.async=function(e,t,n,r,i){void 0===i&&(i=u);var o=new D(w(e,t,n,r),i);return d.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},O(C),b(C,y,"Generator"),b(C,v,(function(){return this})),b(C,"toString",(function(){return"[object Generator]"})),d.keys=function(e){var t=[];for(var n in e)t.push(n);return l(t).call(t),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},d.values=R,P.prototype={constructor:P,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,a(t=this.tryEntries).call(t,A),!e)for(var n in this)"t"===n.charAt(0)&&p.call(this,n)&&!isNaN(+c(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=p.call(i,"catchLoc"),s=p.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&p.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),_}},d}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports}(zw);var ZS=zw.exports(),WS=ZS;try{regeneratorRuntime=ZS}catch(jA){"object"===typeof globalThis?globalThis.regeneratorRuntime=ZS:Function("r","regeneratorRuntime = r")(ZS)}var HS={exports:{}},YS=At,US=F,VS=er,qS=Kr,GS=k.TypeError,XS=function(e){return function(t,n,r,i){YS(n);var o=US(t),a=VS(o),s=qS(o),u=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(u in a){i=a[u],u+=l;break}if(u+=l,e?u<0:s<=u)throw GS("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=l)u in a&&(i=n(i,a[u],u,o));return i}},$S={left:XS(!1),right:XS(!0)}.left,QS=ae,KS=n_;Fr({target:"Array",proto:!0,forced:!Qd("reduce")||!KS&&QS>79&&QS<83},{reduce:function(e){var t=arguments.length;return $S(this,e,t,t>1?arguments[1]:void 0)}});var JS=kf("Array").reduce,eM=xt,tM=JS,nM=Array.prototype,rM=function(e){var t=e.reduce;return e===nM||eM(nM,e)&&t===nM.reduce?tM:t},iM=rM;!function(e){e.exports=iM}(HS);var oM=o(HS.exports),aM={exports:{}},sM=Ss,uM=Kr,lM=Mr,cM=k.TypeError,fM=function e(t,n,r,i,o,a,s,u){for(var l,c=o,f=0,d=!!s&&lM(s,u);f<i;){if(f in r){if(l=d?d(r[f],f,n):r[f],a>0&&sM(l))c=e(t,n,l,uM(l),c,a-1)-1;else{if(c>=9007199254740991)throw cM("Exceed the acceptable array length");t[c]=l}c++}f++}return c},dM=fM,hM=At,pM=F,mM=Kr,vM=nu;Fr({target:"Array",proto:!0},{flatMap:function(e){var t,n=pM(this),r=mM(n);return hM(e),(t=vM(n,0)).length=dM(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var gM=kf("Array").flatMap,yM=xt,bM=gM,wM=Array.prototype,xM=function(e){var t=e.flatMap;return e===wM||yM(wM,e)&&t===wM.flatMap?bM:t},_M=xM;!function(e){e.exports=_M}(aM);var kM=o(aM.exports),SM={exports:{}},MM={exports:{}},TM=f((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),EM=f,CM=rt,OM=Ee,DM=TM,NM=Object.isExtensible,jM=EM((function(){NM(1)}))||DM?function(e){return!!CM(e)&&((!DM||"ArrayBuffer"!=OM(e))&&(!NM||NM(e)))}:NM,AM=!f((function(){return Object.isExtensible(Object.preventExtensions({}))})),PM=Fr,RM=y,IM=wn,FM=rt,LM=B,zM=ot.f,BM=Ms,ZM=Cs,WM=jM,HM=AM,YM=!1,UM=U("meta"),VM=0,qM=function(e){zM(e,UM,{value:{objectID:"O"+VM++,weakData:{}}})},GM=MM.exports={enable:function(){GM.enable=function(){},YM=!0;var e=BM.f,t=RM([].splice),n={};n[UM]=1,e(n).length&&(BM.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===UM){t(r,i,1);break}return r},PM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ZM.f}))},fastKey:function(e,t){if(!FM(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!LM(e,UM)){if(!WM(e))return"F";if(!t)return"E";qM(e)}return e[UM].objectID},getWeakData:function(e,t){if(!LM(e,UM)){if(!WM(e))return!0;if(!t)return!1;qM(e)}return e[UM].weakData},onFreeze:function(e){return HM&&YM&&WM(e)&&!LM(e,UM)&&qM(e),e}};IM[UM]=!0;var XM=Fr,$M=k,QM=MM.exports,KM=f,JM=mn,eT=hx,tT=$x,nT=q,rT=rt,iT=ho,oT=ot.f,aT=cu.forEach,sT=it,uT=Ln.set,lT=Ln.getterFor,cT=function(e,t,n){var r,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=$M[e],u=s&&s.prototype,l={};if(sT&&nT(s)&&(o||u.forEach&&!KM((function(){(new s).entries().next()})))){var c=(r=t((function(t,n){uT(tT(t,c),{type:e,collection:new s}),void 0!=n&&eT(n,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=lT(e);aT(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||o&&"clear"==e||JM(c,e,(function(n,r){var i=f(this).collection;if(!t&&o&&!rT(n))return"get"==e&&void 0;var a=i[e](0===n?0:n,r);return t?this:a}))})),o||oT(c,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(t,e,i,a),QM.enable();return iT(r,e,!1,!0),l[e]=r,XM({global:!0,forced:!0},l),o||n.setStrong(r,e,i),r},fT=ot.f,dT=Ii,hT=Wx,pT=Mr,mT=$x,vT=hx,gT=Ho,yT=qx,bT=it,wT=MM.exports.fastKey,xT=Ln.set,_T=Ln.getterFor,kT={getConstructor:function(e,t,n,r){var i=e((function(e,i){mT(e,o),xT(e,{type:t,index:dT(null),first:void 0,last:void 0,size:0}),bT||(e.size=0),void 0!=i&&vT(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=_T(t),s=function(e,t,n){var r,i,o=a(e),s=u(e,t);return s?s.value=n:(o.last=s={index:i=wT(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),bT?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},u=function(e,t){var n,r=a(e),i=wT(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return hT(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,bT?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=u(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),bT?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=pT(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),hT(o,n?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),bT&&fT(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=_T(t),o=_T(r);gT(e,t,(function(e,t){xT(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),yT(t)}};cT("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),kT);var ST=V.Map;!function(e){e.exports=ST}(SM);var MT=o(SM.exports),TT={exports:{}};cT("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),kT);var ET=V.Set;!function(e){e.exports=ET}(TT);var CT=o(TT.exports),OT={exports:{}};!function(e){e.exports=zf}(OT);var DT=o(OT.exports),NT={exports:{}},jT=Ia;!function(e){e.exports=jT}(NT);var AT=o(NT.exports),PT={exports:{}},RT=Ps,IT=Math.floor,FT=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},LT=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e},zT=function e(t,n){var r=t.length,i=IT(r/2);return r<8?FT(t,n):LT(t,e(RT(t,0,i),n),e(RT(t,i),n),n)},BT=J.match(/firefox\/(\d+)/i),ZT=!!BT&&+BT[1],WT=/MSIE|Trident/.test(J),HT=J.match(/AppleWebKit\/(\d+)\./),YT=!!HT&&+HT[1],UT=Fr,VT=y,qT=At,GT=F,XT=Kr,$T=Le,QT=f,KT=zT,JT=Qd,eE=ZT,tE=WT,nE=ae,rE=YT,iE=[],oE=VT(iE.sort),aE=VT(iE.push),sE=QT((function(){iE.sort(void 0)})),uE=QT((function(){iE.sort(null)})),lE=JT("sort"),cE=!QT((function(){if(nE)return nE<70;if(!(eE&&eE>3)){if(tE)return!0;if(rE)return rE<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)iE.push({k:t+r,v:n})}for(iE.sort((function(e,t){return t.v-e.v})),r=0;r<iE.length;r++)t=iE[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));UT({target:"Array",proto:!0,forced:sE||!uE||!lE||!cE},{sort:function(e){void 0!==e&&qT(e);var t=GT(this);if(cE)return void 0===e?oE(t):oE(t,e);var n,r,i=[],o=XT(t);for(r=0;r<o;r++)r in t&&aE(i,t[r]);for(KT(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:$T(t)>$T(n)?1:-1}}(e)),n=i.length,r=0;r<n;)t[r]=i[r++];for(;r<o;)delete t[r++];return t}});var fE=kf("Array").sort,dE=xt,hE=fE,pE=Array.prototype,mE=function(e){var t=e.sort;return e===pE||dE(pE,e)&&t===pE.sort?hE:t},vE=mE;!function(e){e.exports=vE}(PT);var gE=o(PT.exports),yE={exports:{}},bE=cu.some;Fr({target:"Array",proto:!0,forced:!Qd("some")},{some:function(e){return bE(this,e,arguments.length>1?arguments[1]:void 0)}});var wE=kf("Array").some,xE=xt,_E=wE,kE=Array.prototype,SE=function(e){var t=e.some;return e===kE||xE(kE,e)&&t===kE.some?_E:t},ME=SE;!function(e){e.exports=ME}(yE);var TE=o(yE.exports),EE={exports:{}},CE=kf("Array").keys,OE=Re,DE=B,NE=xt,jE=CE,AE=Array.prototype,PE={DOMTokenList:!0,NodeList:!0},RE=function(e){var t=e.keys;return e===AE||NE(AE,e)&&t===AE.keys||DE(PE,OE(e))?jE:t};!function(e){e.exports=RE}(EE);var IE=o(EE.exports),FE={exports:{}},LE=kf("Array").values,zE=Re,BE=B,ZE=xt,WE=LE,HE=Array.prototype,YE={DOMTokenList:!0,NodeList:!0},UE=function(e){var t=e.values;return e===HE||ZE(HE,e)&&t===HE.values||BE(YE,zE(e))?WE:t};!function(e){e.exports=UE}(FE);var VE=o(FE.exports),qE={exports:{}},GE=kf("Array").entries,XE=Re,$E=B,QE=xt,KE=GE,JE=Array.prototype,eC={DOMTokenList:!0,NodeList:!0},tC=function(e){var t=e.entries;return e===JE||QE(JE,e)&&t===JE.entries||$E(eC,XE(e))?KE:t};!function(e){e.exports=tC}(qE);var nC=o(qE.exports),rC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),iC=new Uint8Array(16);function oC(){if(!rC)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rC(iC)}for(var aC=[],sC=0;sC<256;++sC)aC[sC]=(sC+256).toString(16).substr(1);function uC(e,t){var n=t||0,r=aC;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}var lC;function cC(e,t,n){var r=function(e,r,i,o){var a=i&&o||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)),"string"==typeof r&&(r=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(r)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(r)||16!==r.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var s=n(r.concat(e));if(s[6]=15&s[6]|t,s[8]=63&s[8]|128,i)for(var u=0;u<16;++u)i[a+u]=s[u];return i||uC(s)};try{r.name=e}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function fC(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function dC(e,t,n,r,i,o){return fC((a=fC(fC(t,e),fC(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function hC(e,t,n,r,i,o,a){return dC(t&n|~t&r,e,t,i,o,a)}function pC(e,t,n,r,i,o,a){return dC(t&r|n&~r,e,t,i,o,a)}function mC(e,t,n,r,i,o,a){return dC(t^n^r,e,t,i,o,a)}function vC(e,t,n,r,i,o,a){return dC(n^(t|~r),e,t,i,o,a)}function gC(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||oC)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||uC(i)}function yC(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function bC(e,t){return e<<t|e>>>32-t}function wC(e,t){var n=wd(e);if(Nl){var r=Nl(e);t&&(r=Yp(r).call(r,(function(t){return Hl(e,t).enumerable}))),n.push.apply(n,r)}return n}function xC(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?uh(n=wC(Object(i),!0)).call(n,(function(t){Ec(e,t,i[t])})):nc?fc(e,nc(i)):uh(r=wC(Object(i))).call(r,(function(t){wc(e,t,Hl(i,t))}))}return e}function _C(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}function kC(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return SC(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SC(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function SC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MC(e){return new EC(e)}cC("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n<t.length;n++)e[n]=t.charCodeAt(n)}return function(e){var t,n,r,i=[],o=32*e.length,a="0123456789abcdef";for(t=0;t<o;t+=8)n=e[t>>5]>>>t%32&255,r=parseInt(a.charAt(n>>>4&15)+a.charAt(15&n),16),i.push(r);return i}(function(e,t){var n,r,i,o,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n<e.length;n+=16)r=s,i=u,o=l,a=c,s=hC(s,u,l,c,e[n],7,-680876936),c=hC(c,s,u,l,e[n+1],12,-389564586),l=hC(l,c,s,u,e[n+2],17,606105819),u=hC(u,l,c,s,e[n+3],22,-1044525330),s=hC(s,u,l,c,e[n+4],7,-176418897),c=hC(c,s,u,l,e[n+5],12,1200080426),l=hC(l,c,s,u,e[n+6],17,-1473231341),u=hC(u,l,c,s,e[n+7],22,-45705983),s=hC(s,u,l,c,e[n+8],7,1770035416),c=hC(c,s,u,l,e[n+9],12,-1958414417),l=hC(l,c,s,u,e[n+10],17,-42063),u=hC(u,l,c,s,e[n+11],22,-1990404162),s=hC(s,u,l,c,e[n+12],7,1804603682),c=hC(c,s,u,l,e[n+13],12,-40341101),l=hC(l,c,s,u,e[n+14],17,-1502002290),s=pC(s,u=hC(u,l,c,s,e[n+15],22,1236535329),l,c,e[n+1],5,-165796510),c=pC(c,s,u,l,e[n+6],9,-1069501632),l=pC(l,c,s,u,e[n+11],14,643717713),u=pC(u,l,c,s,e[n],20,-373897302),s=pC(s,u,l,c,e[n+5],5,-701558691),c=pC(c,s,u,l,e[n+10],9,38016083),l=pC(l,c,s,u,e[n+15],14,-660478335),u=pC(u,l,c,s,e[n+4],20,-405537848),s=pC(s,u,l,c,e[n+9],5,568446438),c=pC(c,s,u,l,e[n+14],9,-1019803690),l=pC(l,c,s,u,e[n+3],14,-187363961),u=pC(u,l,c,s,e[n+8],20,1163531501),s=pC(s,u,l,c,e[n+13],5,-1444681467),c=pC(c,s,u,l,e[n+2],9,-51403784),l=pC(l,c,s,u,e[n+7],14,1735328473),s=mC(s,u=pC(u,l,c,s,e[n+12],20,-1926607734),l,c,e[n+5],4,-378558),c=mC(c,s,u,l,e[n+8],11,-2022574463),l=mC(l,c,s,u,e[n+11],16,1839030562),u=mC(u,l,c,s,e[n+14],23,-35309556),s=mC(s,u,l,c,e[n+1],4,-1530992060),c=mC(c,s,u,l,e[n+4],11,1272893353),l=mC(l,c,s,u,e[n+7],16,-155497632),u=mC(u,l,c,s,e[n+10],23,-1094730640),s=mC(s,u,l,c,e[n+13],4,681279174),c=mC(c,s,u,l,e[n],11,-358537222),l=mC(l,c,s,u,e[n+3],16,-722521979),u=mC(u,l,c,s,e[n+6],23,76029189),s=mC(s,u,l,c,e[n+9],4,-640364487),c=mC(c,s,u,l,e[n+12],11,-421815835),l=mC(l,c,s,u,e[n+15],16,530742520),s=vC(s,u=mC(u,l,c,s,e[n+2],23,-995338651),l,c,e[n],6,-198630844),c=vC(c,s,u,l,e[n+7],10,1126891415),l=vC(l,c,s,u,e[n+14],15,-1416354905),u=vC(u,l,c,s,e[n+5],21,-57434055),s=vC(s,u,l,c,e[n+12],6,1700485571),c=vC(c,s,u,l,e[n+3],10,-1894986606),l=vC(l,c,s,u,e[n+10],15,-1051523),u=vC(u,l,c,s,e[n+1],21,-2054922799),s=vC(s,u,l,c,e[n+8],6,1873313359),c=vC(c,s,u,l,e[n+15],10,-30611744),l=vC(l,c,s,u,e[n+6],15,-1560198380),u=vC(u,l,c,s,e[n+13],21,1309151649),s=vC(s,u,l,c,e[n+4],6,-145523070),c=vC(c,s,u,l,e[n+11],10,-1120210379),l=vC(l,c,s,u,e[n+2],15,718787259),u=vC(u,l,c,s,e[n+9],21,-343485551),s=fC(s,r),u=fC(u,i),l=fC(l,o),c=fC(c,a);return[s,u,l,c]}(function(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e[t/8])<<t%32;return n}(e),8*e.length))})),cC("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=new Array(r.length);for(var i=0;i<r.length;i++)e[i]=r.charCodeAt(i)}e.push(128);var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a);for(i=0;i<a;i++){s[i]=new Array(16);for(var u=0;u<16;u++)s[i][u]=e[64*i+4*u]<<24|e[64*i+4*u+1]<<16|e[64*i+4*u+2]<<8|e[64*i+4*u+3]}for(s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295,i=0;i<a;i++){for(var l=new Array(80),c=0;c<16;c++)l[c]=s[i][c];for(c=16;c<80;c++)l[c]=bC(l[c-3]^l[c-8]^l[c-14]^l[c-16],1);var f=n[0],d=n[1],h=n[2],p=n[3],m=n[4];for(c=0;c<80;c++){var v=Math.floor(c/20),g=bC(f,5)+yC(v,d,h,p)+m+t[v]+l[c]>>>0;m=p,p=h,h=bC(d,30)>>>0,d=f,f=g}n[0]=n[0]+f>>>0,n[1]=n[1]+d>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+p>>>0,n[4]=n[4]+m>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var TC=function(){function e(t,n,r){var i,o,a;xc(this,e),Ec(this,"_source",void 0),Ec(this,"_transformers",void 0),Ec(this,"_target",void 0),Ec(this,"_listeners",{add:Gd(i=this._add).call(i,this),remove:Gd(o=this._remove).call(o,this),update:Gd(a=this._update).call(a,this)}),this._source=t,this._transformers=n,this._target=r}return Tc(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(e){var t;return oM(t=this._transformers).call(t,(function(e,t){return t(e)}),e)}},{key:"_add",value:function(e,t){null!=t&&this._target.add(this._transformItems(this._source.get(t.items)))}},{key:"_update",value:function(e,t){null!=t&&this._target.update(this._transformItems(this._source.get(t.items)))}},{key:"_remove",value:function(e,t){null!=t&&this._target.remove(this._transformItems(t.oldData))}}]),e}(),EC=function(){function e(t){xc(this,e),Ec(this,"_source",void 0),Ec(this,"_transformers",[]),this._source=t}return Tc(e,[{key:"filter",value:function(e){return this._transformers.push((function(t){return Yp(t).call(t,e)})),this}},{key:"map",value:function(e){return this._transformers.push((function(t){return md(t).call(t,e)})),this}},{key:"flatMap",value:function(e){return this._transformers.push((function(t){return kM(t).call(t,e)})),this}},{key:"to",value:function(e){return new TC(this._source,this._transformers,e)}}]),e}();function CC(e){return"string"===typeof e||"number"===typeof e}var OC=function(){function e(t){xc(this,e),Ec(this,"delay",void 0),Ec(this,"max",void 0),Ec(this,"_queue",[]),Ec(this,"_timeout",null),Ec(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return Tc(e,[{key:"setOptions",value:function(e){e&&"undefined"!==typeof e.delay&&(this.delay=e.delay),e&&"undefined"!==typeof e.max&&(this.max=e.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var e=this._extended.object,t=this._extended.methods,n=0;n<t.length;n++){var r=t[n];r.original?e[r.name]=r.original:delete e[r.name]}this._extended=null}}},{key:"replace",value:function(e,t){var n=this,r=e[t];if(!r)throw new Error("Method "+t+" undefined");e[t]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.queue({args:t,fn:r,context:this})}}},{key:"queue",value:function(e){"function"===typeof e?this._queue.push({fn:e}):this._queue.push(e),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var e=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"===typeof this.delay&&(this._timeout=Lv((function(){e.flush()}),this.delay))}},{key:"flush",value:function(){var e,t;uh(e=Wh(t=this._queue).call(t,0)).call(e,(function(e){e.fn.apply(e.context||e.fn,e.args||[])}))}}],[{key:"extend",value:function(t,n){var r=new e(n);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){r.flush()};var i=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o<n.replace.length;o++){var a=n.replace[o];i.push({name:a,original:t[a]}),r.replace(t,a)}return r._extended={object:t,methods:i},r}}]),e}(),DC=function(){function e(){xc(this,e),Ec(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Ec(this,"subscribe",e.prototype.on),Ec(this,"unsubscribe",e.prototype.off)}return Tc(e,[{key:"_trigger",value:function(e,t,n){var r,i;if("*"===e)throw new Error("Cannot trigger event *");uh(r=Jf(i=[]).call(i,Hf(this._subscribers[e]),Hf(this._subscribers["*"]))).call(r,(function(r){r(e,t,null!=n?n:null)}))}},{key:"on",value:function(e,t){"function"===typeof t&&this._subscribers[e].push(t)}},{key:"off",value:function(e,t){var n;this._subscribers[e]=Yp(n=this._subscribers[e]).call(n,(function(e){return e!==t}))}}]),e}();lC=DT;var NC=function(){function e(t){xc(this,e),Ec(this,"_pairs",void 0),this._pairs=t}return Tc(e,[{key:lC,value:WS.mark((function e(){var t,n,r,i,o;return WS.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=kC(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=Ff(n.value,2),i=r[0],o=r[1],e.next=7,[i,o];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"entries",value:WS.mark((function e(){var t,n,r,i,o;return WS.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=kC(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=Ff(n.value,2),i=r[0],o=r[1],e.next=7,[i,o];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"keys",value:WS.mark((function e(){var t,n,r,i;return WS.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=kC(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=Ff(n.value,1),i=r[0],e.next=7,i;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"values",value:WS.mark((function e(){var t,n,r,i;return WS.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=kC(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=Ff(n.value,2),i=r[1],e.next=7,i;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var e;return md(e=Hf(this._pairs)).call(e,(function(e){return e[0]}))}},{key:"toItemArray",value:function(){var e;return md(e=Hf(this._pairs)).call(e,(function(e){return e[1]}))}},{key:"toEntryArray",value:function(){return Hf(this._pairs)}},{key:"toObjectMap",value:function(){var e,t=tv(null),n=kC(this._pairs);try{for(n.s();!(e=n.n()).done;){var r=Ff(e.value,2),i=r[0],o=r[1];t[i]=o}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"toMap",value:function(){return new MT(this._pairs)}},{key:"toIdSet",value:function(){return new CT(this.toIdArray())}},{key:"toItemSet",value:function(){return new CT(this.toItemArray())}},{key:"cache",value:function(){return new e(Hf(this._pairs))}},{key:"distinct",value:function(e){var t,n=new CT,r=kC(this._pairs);try{for(r.s();!(t=r.n()).done;){var i=Ff(t.value,2),o=i[0],a=i[1];n.add(e(a,o))}}catch(s){r.e(s)}finally{r.f()}return n}},{key:"filter",value:function(t){var n=this._pairs;return new e(Ec({},DT,WS.mark((function e(){var r,i,o,a,s;return WS.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=kC(n),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=10;break}if(o=Ff(i.value,2),a=o[0],s=o[1],!t(s,a)){e.next=8;break}return e.next=8,[a,s];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(e){var t,n=kC(this._pairs);try{for(n.s();!(t=n.n()).done;){var r=Ff(t.value,2),i=r[0];e(r[1],i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e(Ec({},DT,WS.mark((function e(){var r,i,o,a,s;return WS.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=kC(n),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=9;break}return o=Ff(i.value,2),a=o[0],s=o[1],e.next=7,[a,t(s,a)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),r.e(e.t0);case 14:return e.prev=14,r.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))))}},{key:"max",value:function(e){var t=AT(this._pairs),n=t.next();if(n.done)return null;for(var r=n.value[1],i=e(n.value[1],n.value[0]);!(n=t.next()).done;){var o=Ff(n.value,2),a=o[0],s=o[1],u=e(s,a);u>i&&(i=u,r=s)}return r}},{key:"min",value:function(e){var t=AT(this._pairs),n=t.next();if(n.done)return null;for(var r=n.value[1],i=e(n.value[1],n.value[0]);!(n=t.next()).done;){var o=Ff(n.value,2),a=o[0],s=o[1],u=e(s,a);u<i&&(i=u,r=s)}return r}},{key:"reduce",value:function(e,t){var n,r=kC(this._pairs);try{for(r.s();!(n=r.n()).done;){var i=Ff(n.value,2),o=i[0];t=e(t,i[1],o)}}catch(a){r.e(a)}finally{r.f()}return t}},{key:"sort",value:function(t){var n=this;return new e(Ec({},DT,(function(){var e;return AT(gE(e=Hf(n._pairs)).call(e,(function(e,n){var r=Ff(e,2),i=r[0],o=r[1],a=Ff(n,2),s=a[0],u=a[1];return t(o,u,i,s)})))})))}}]),e}();var jC=function(e){Aw(n,e);var t=_C(n);function n(e,r){var i;return xc(this,n),Ec(_w(i=t.call(this)),"flush",void 0),Ec(_w(i),"length",void 0),Ec(_w(i),"_options",void 0),Ec(_w(i),"_data",void 0),Ec(_w(i),"_idProp",void 0),Ec(_w(i),"_queue",null),e&&!ad(e)&&(r=e,e=[]),i._options=r||{},i._data=new MT,i.length=0,i._idProp=i._options.fieldId||"id",e&&e.length&&i.add(e),i.setOptions(r),i}return Tc(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(e){e&&void 0!==e.queue&&(!1===e.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=OC.extend(this,{replace:["add","update","remove"]})),e.queue&&"object"===Wf(e.queue)&&this._queue.setOptions(e.queue)))}},{key:"add",value:function(e,t){var n,r=this,i=[];if(ad(e)){var o=md(e).call(e,(function(e){return e[r._idProp]}));if(TE(o).call(o,(function(e){return r._data.has(e)})))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,s=e.length;a<s;a++)n=this._addItem(e[a]),i.push(n)}else{if(!e||"object"!==Wf(e))throw new Error("Unknown dataType");n=this._addItem(e),i.push(n)}return i.length&&this._trigger("add",{items:i},t),i}},{key:"update",value:function(e,t){var n=this,r=[],i=[],o=[],a=[],s=this._idProp,u=function(e){var t=e[s];if(null!=t&&n._data.has(t)){var u=e,l=op({},n._data.get(t)),c=n._updateItem(u);i.push(c),a.push(u),o.push(l)}else{var f=n._addItem(e);r.push(f)}};if(ad(e))for(var l=0,c=e.length;l<c;l++)e[l]&&"object"===Wf(e[l])?u(e[l]):console.warn("Ignoring input item, which is not an object at index "+l);else{if(!e||"object"!==Wf(e))throw new Error("Unknown dataType");u(e)}if(r.length&&this._trigger("add",{items:r},t),i.length){var f={items:i,oldData:o,data:a};this._trigger("update",f,t)}return Jf(r).call(r,i)}},{key:"updateOnly",value:function(e,t){var n,r=this;ad(e)||(e=[e]);var i=md(n=md(e).call(e,(function(e){var t=r._data.get(e[r._idProp]);if(null==t)throw new Error("Updating non-existent items is not allowed.");return{oldData:t,update:e}}))).call(n,(function(e){var t=e.oldData,n=e.update,i=t[r._idProp],o=qy(t,n);return r._data.set(i,o),{id:i,oldData:t,updatedData:o}}));if(i.length){var o={items:md(i).call(i,(function(e){return e.id})),oldData:md(i).call(i,(function(e){return e.oldData})),data:md(i).call(i,(function(e){return e.updatedData}))};return this._trigger("update",o,t),o.items}return[]}},{key:"get",value:function(e,t){var n=void 0,r=void 0,i=void 0;CC(e)?(n=e,i=t):ad(e)?(r=e,i=t):i=e;var o,a=i&&"Object"===i.returnType?"Object":"Array",s=i&&Yp(i),u=[],l=void 0,c=void 0,f=void 0;if(null!=n)(l=this._data.get(n))&&s&&!s(l)&&(l=void 0);else if(null!=r)for(var d=0,h=r.length;d<h;d++)null==(l=this._data.get(r[d]))||s&&!s(l)||u.push(l);else for(var p,m=0,v=(c=Hf(IE(p=this._data).call(p))).length;m<v;m++)f=c[m],null==(l=this._data.get(f))||s&&!s(l)||u.push(l);if(i&&i.order&&void 0==n&&this._sort(u,i.order),i&&i.fields){var g=i.fields;if(void 0!=n&&null!=l)l=this._filterFields(l,g);else for(var y=0,b=u.length;y<b;y++)u[y]=this._filterFields(u[y],g)}if("Object"==a){for(var w={},x=0,_=u.length;x<_;x++){var k=u[x];w[k[this._idProp]]=k}return w}return null!=n?null!==(o=l)&&void 0!==o?o:null:u}},{key:"getIds",value:function(e){var t=this._data,n=e&&Yp(e),r=e&&e.order,i=Hf(IE(t).call(t)),o=[];if(n)if(r){for(var a=[],s=0,u=i.length;s<u;s++){var l=i[s],c=this._data.get(l);null!=c&&n(c)&&a.push(c)}this._sort(a,r);for(var f=0,d=a.length;f<d;f++)o.push(a[f][this._idProp])}else for(var h=0,p=i.length;h<p;h++){var m=i[h],v=this._data.get(m);null!=v&&n(v)&&o.push(v[this._idProp])}else if(r){for(var g=[],y=0,b=i.length;y<b;y++){var w=i[y];g.push(t.get(w))}this._sort(g,r);for(var x=0,_=g.length;x<_;x++)o.push(g[x][this._idProp])}else for(var k=0,S=i.length;k<S;k++){var M=i[k],T=t.get(M);null!=T&&o.push(T[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(e,t){var n=t&&Yp(t),r=this._data,i=Hf(IE(r).call(r));if(t&&t.order)for(var o=this.get(t),a=0,s=o.length;a<s;a++){var u=o[a];e(u,u[this._idProp])}else for(var l=0,c=i.length;l<c;l++){var f=i[l],d=this._data.get(f);null==d||n&&!n(d)||e(d,f)}}},{key:"map",value:function(e,t){for(var n=t&&Yp(t),r=[],i=this._data,o=Hf(IE(i).call(i)),a=0,s=o.length;a<s;a++){var u=o[a],l=this._data.get(u);null==l||n&&!n(l)||r.push(e(l,u))}return t&&t.order&&this._sort(r,t.order),r}},{key:"_filterFields",value:function(e,t){var n;return e?oM(n=ad(t)?t:wd(t)).call(n,(function(t,n){return t[n]=e[n],t}),{}):e}},{key:"_sort",value:function(e,t){if("string"===typeof t){var n=t;gE(e).call(e,(function(e,t){var r=e[n],i=t[n];return r>i?1:r<i?-1:0}))}else{if("function"!==typeof t)throw new TypeError("Order must be a function or a string");gE(e).call(e,t)}}},{key:"remove",value:function(e,t){for(var n=[],r=[],i=ad(e)?e:[e],o=0,a=i.length;o<a;o++){var s=this._remove(i[o]);if(s){var u=s[this._idProp];null!=u&&(n.push(u),r.push(s))}}return n.length&&this._trigger("remove",{items:n,oldData:r},t),n}},{key:"_remove",value:function(e){var t;if(CC(e)?t=e:e&&"object"===Wf(e)&&(t=e[this._idProp]),null!=t&&this._data.has(t)){var n=this._data.get(t)||null;return this._data.delete(t),--this.length,n}return null}},{key:"clear",value:function(e){for(var t,n=Hf(IE(t=this._data).call(t)),r=[],i=0,o=n.length;i<o;i++)r.push(this._data.get(n[i]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:r},e),n}},{key:"max",value:function(e){var t,n,r=null,i=null,o=kC(VE(t=this._data).call(t));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a[e];"number"===typeof s&&(null==i||s>i)&&(r=a,i=s)}}catch(u){o.e(u)}finally{o.f()}return r||null}},{key:"min",value:function(e){var t,n,r=null,i=null,o=kC(VE(t=this._data).call(t));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a[e];"number"===typeof s&&(null==i||s<i)&&(r=a,i=s)}}catch(u){o.e(u)}finally{o.f()}return r||null}},{key:"distinct",value:function(e){for(var t=this._data,n=Hf(IE(t).call(t)),r=[],i=0,o=0,a=n.length;o<a;o++){for(var s=n[o],u=t.get(s)[e],l=!1,c=0;c<i;c++)if(r[c]==u){l=!0;break}l||void 0===u||(r[i]=u,i++)}return r}},{key:"_addItem",value:function(e){var t=function(e,t){return null==e[t]&&(e[t]=gC()),e}(e,this._idProp),n=t[this._idProp];if(this._data.has(n))throw new Error("Cannot add item: item with id "+n+" already exists");return this._data.set(n,t),++this.length,n}},{key:"_updateItem",value:function(e){var t=e[this._idProp];if(null==t)throw new Error("Cannot update item: item has no id (item: "+Sv(e)+")");var n=this._data.get(t);if(!n)throw new Error("Cannot update item: no item with id "+t+" found");return this._data.set(t,xC(xC({},n),e)),t}},{key:"stream",value:function(e){if(e){var t=this._data;return new NC(Ec({},DT,WS.mark((function n(){var r,i,o,a;return WS.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=kC(e),n.prev=1,r.s();case 3:if((i=r.n()).done){n.next=11;break}if(o=i.value,null==(a=t.get(o))){n.next=9;break}return n.next=9,[o,a];case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),r.e(n.t0);case 16:return n.prev=16,r.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))))}var n;return new NC(Ec({},DT,Gd(n=nC(this._data)).call(n,this._data)))}}]),n}(DC),AC=function(e){Aw(n,e);var t=_C(n);function n(e,r){var i,o;return xc(this,n),Ec(_w(o=t.call(this)),"length",0),Ec(_w(o),"_listener",void 0),Ec(_w(o),"_data",void 0),Ec(_w(o),"_ids",new CT),Ec(_w(o),"_options",void 0),o._options=r||{},o._listener=Gd(i=o._onEvent).call(i,_w(o)),o.setData(e),o}return Tc(n,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(e){if(this._data){this._data.off&&this._data.off("*",this._listener);var t=this._data.getIds({filter:Yp(this._options)}),n=this._data.get(t);this._ids.clear(),this.length=0,this._trigger("remove",{items:t,oldData:n})}if(null!=e){this._data=e;for(var r=this._data.getIds({filter:Yp(this._options)}),i=0,o=r.length;i<o;i++){var a=r[i];this._ids.add(a)}this.length=r.length,this._trigger("add",{items:r})}else this._data=new jC;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var e=this._data.getIds({filter:Yp(this._options)}),t=Hf(this._ids),n={},r=[],i=[],o=[],a=0,s=e.length;a<s;a++){var u=e[a];n[u]=!0,this._ids.has(u)||(r.push(u),this._ids.add(u))}for(var l=0,c=t.length;l<c;l++){var f=t[l],d=this._data.get(f);null==d?console.error("If you see this, report it please."):n[f]||(i.push(f),o.push(d),this._ids.delete(f))}this.length+=r.length-i.length,r.length&&this._trigger("add",{items:r}),i.length&&this._trigger("remove",{items:i,oldData:o})}},{key:"get",value:function(e,t){if(null==this._data)return null;var n,r=null;CC(e)||ad(e)?(r=e,n=t):n=e;var i=op({},this._options,n),o=Yp(this._options),a=n&&Yp(n);return o&&a&&(i.filter=function(e){return o(e)&&a(e)}),null==r?this._data.get(i):this._data.get(r,i)}},{key:"getIds",value:function(e){if(this._data.length){var t,n=Yp(this._options),r=null!=e?Yp(e):null;return t=r?n?function(e){return n(e)&&r(e)}:r:n,this._data.getIds({filter:t,order:e&&e.order})}return[]}},{key:"forEach",value:function(e,t){if(this._data){var n,r,i=Yp(this._options),o=t&&Yp(t);r=o?i?function(e){return i(e)&&o(e)}:o:i,uh(n=this._data).call(n,e,{filter:r,order:t&&t.order})}}},{key:"map",value:function(e,t){if(this._data){var n,r,i=Yp(this._options),o=t&&Yp(t);return r=o?i?function(e){return i(e)&&o(e)}:o:i,md(n=this._data).call(n,e,{filter:r,order:t&&t.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(e){var t;return this._data.stream(e||Ec({},DT,Gd(t=IE(this._ids)).call(t,this._ids)))}},{key:"dispose",value:function(){var e;null!==(e=this._data)&&void 0!==e&&e.off&&this._data.off("*",this._listener);var t,r="This data view has already been disposed of.",i={get:function(){throw new Error(r)},set:function(){throw new Error(r)},configurable:!1},o=kC(id(n.prototype));try{for(o.s();!(t=o.n()).done;){var a=t.value;wc(this,a,i)}}catch(s){o.e(s)}finally{o.f()}}},{key:"_onEvent",value:function(e,t,n){if(t&&t.items&&this._data){var r=t.items,i=[],o=[],a=[],s=[],u=[],l=[];switch(e){case"add":for(var c=0,f=r.length;c<f;c++){var d=r[c];this.get(d)&&(this._ids.add(d),i.push(d))}break;case"update":for(var h=0,p=r.length;h<p;h++){var m=r[h];this.get(m)?this._ids.has(m)?(o.push(m),u.push(t.data[h]),s.push(t.oldData[h])):(this._ids.add(m),i.push(m)):this._ids.has(m)&&(this._ids.delete(m),a.push(m),l.push(t.oldData[h]))}break;case"remove":for(var v=0,g=r.length;v<g;v++){var y=r[v];this._ids.has(y)&&(this._ids.delete(y),a.push(y),l.push(t.oldData[v]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},n),o.length&&this._trigger("update",{items:o,oldData:s,data:u},n),a.length&&this._trigger("remove",{items:a,oldData:l},n)}}}]),n}(DC);function PC(e,t){return"object"===Wf(t)&&null!==t&&e===t.idProp&&"function"===typeof uh(t)&&"function"===typeof t.get&&"function"===typeof t.getDataSet&&"function"===typeof t.getIds&&"number"===typeof t.length&&"function"===typeof md(t)&&"function"===typeof t.off&&"function"===typeof t.on&&"function"===typeof t.stream&&function(e,t){return"object"===Wf(t)&&null!==t&&e===t.idProp&&"function"===typeof t.add&&"function"===typeof t.clear&&"function"===typeof t.distinct&&"function"===typeof uh(t)&&"function"===typeof t.get&&"function"===typeof t.getDataSet&&"function"===typeof t.getIds&&"number"===typeof t.length&&"function"===typeof md(t)&&"function"===typeof t.max&&"function"===typeof t.min&&"function"===typeof t.off&&"function"===typeof t.on&&"function"===typeof t.remove&&"function"===typeof t.setOptions&&"function"===typeof t.stream&&"function"===typeof t.update&&"function"===typeof t.updateOnly}(e,t.getDataSet())}var RC="undefined"!==typeof window&&window.moment||l(),IC=l(),FC={exports:{}},LC={},zC={exports:{}},BC={};function ZC(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var WC=/javascript\s*\:/gim;BC.whiteList=ZC(),BC.getDefaultWhiteList=ZC,BC.onAttr=function(e,t,n){},BC.onIgnoreAttr=function(e,t,n){},BC.safeAttrValue=function(e,t){return WC.test(t)?"":t};var HC={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}};var YC=function(e,t){";"!==(e=HC.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,i=0,o=0,a="";function s(){if(!r){var n=HC.trim(e.slice(i,o)),s=n.indexOf(":");if(-1!==s){var u=HC.trim(n.slice(0,s)),l=HC.trim(n.slice(s+1));if(u){var c=t(i,a.length,u,l,n);c&&(a+=c+"; ")}}}i=o+1}for(;o<n;o++){var u=e[o];if("/"===u&&"*"===e[o+1]){var l=e.indexOf("*/",o+2);if(-1===l)break;i=(o=l+1)+1,r=!1}else"("===u?r=!0:")"===u?r=!1:";"===u?r||s():"\n"===u&&s()}return HC.trim(a)},UC=BC,VC=YC;function qC(e){return void 0===e||null===e}function GC(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||UC.whiteList,e.onAttr=e.onAttr||UC.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||UC.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||UC.safeAttrValue,this.options=e}GC.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,i=t.onIgnoreAttr,o=t.safeAttrValue,a=VC(e,(function(e,t,a,s,u){var l=n[a],c=!1;if(!0===l?c=l:"function"===typeof l?c=l(s):l instanceof RegExp&&(c=l.test(s)),!0!==c&&(c=!1),s=o(a,s)){var f,d={position:t,sourcePosition:e,source:u,isWhite:c};return c?qC(f=r(a,s,d))?a+":"+s:f:qC(f=i(a,s,d))?void 0:f}}));return a};var XC=GC;!function(e,t){var n=BC,r=XC;for(var i in t=e.exports=function(e,t){return new r(t).process(e)},t.FilterCSS=r,n)t[i]=n[i];"undefined"!==typeof window&&(window.filterCSS=e.exports)}(zC,zC.exports);var $C={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},QC=zC.exports.FilterCSS,KC=zC.exports.getDefaultWhiteList,JC=$C;function eO(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var tO=new QC;function nO(e){return e.replace(rO,"&lt;").replace(iO,"&gt;")}var rO=/</g,iO=/>/g,oO=/"/g,aO=/&quot;/g,sO=/&#([a-zA-Z0-9]*);?/gim,uO=/&colon;?/gim,lO=/&newline;?/gim,cO=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,fO=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,dO=/u\s*r\s*l\s*\(.*/gi;function hO(e){return e.replace(oO,"&quot;")}function pO(e){return e.replace(aO,'"')}function mO(e){return e.replace(sO,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function vO(e){return e.replace(uO,":").replace(lO," ")}function gO(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return JC.trim(t)}function yO(e){return e=gO(e=vO(e=mO(e=pO(e))))}function bO(e){return e=nO(e=hO(e))}LC.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},LC.getDefaultWhiteList=eO,LC.onTag=function(e,t,n){},LC.onIgnoreTag=function(e,t,n){},LC.onTagAttr=function(e,t,n){},LC.onIgnoreTagAttr=function(e,t,n){},LC.safeAttrValue=function(e,t,n,r){if(n=yO(n),"href"===t||"src"===t){if("#"===(n=JC.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(cO.lastIndex=0,cO.test(n))return""}else if("style"===t){if(fO.lastIndex=0,fO.test(n))return"";if(dO.lastIndex=0,dO.test(n)&&(cO.lastIndex=0,cO.test(n)))return"";!1!==r&&(n=(r=r||tO).process(n))}return n=bO(n)},LC.escapeHtml=nO,LC.escapeQuote=hO,LC.unescapeQuote=pO,LC.escapeHtmlEntities=mO,LC.escapeDangerHtml5Entities=vO,LC.clearNonPrintableCharacter=gO,LC.friendlyAttrValue=yO,LC.escapeAttrValue=bO,LC.onIgnoreTagStripAll=function(){return""},LC.StripTagBody=function(e,t){"function"!==typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],i=!1;return{onIgnoreTag:function(o,a,s){if(function(t){return!!n||-1!==JC.indexOf(e,t)}(o)){if(s.isClosing){var u="[/removed]",l=s.position+u.length;return r.push([!1!==i?i:s.position,l]),i=!1,u}return i||(i=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",n=0;return JC.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},LC.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return t},LC.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},LC.cssFilter=tO,LC.getDefaultCSSWhiteList=KC;var wO={},xO=$C;function _O(e){var t,n=xO.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=xO.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function kO(e){return"</"===e.slice(0,2)}var SO=/[^a-zA-Z0-9\\_:.-]/gim;function MO(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function TO(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function EO(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function CO(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}wO.parseTag=function(e,t,n){var r="",i=0,o=!1,a=!1,s=0,u=e.length,l="",c="";e:for(s=0;s<u;s++){var f=e.charAt(s);if(!1===o){if("<"===f){o=s;continue}}else if(!1===a){if("<"===f){r+=n(e.slice(i,s)),o=s,i=s;continue}if(">"===f){r+=n(e.slice(i,o)),l=_O(c=e.slice(o,s+1)),r+=t(o,r.length,l,c,kO(c)),i=s+1,o=!1;continue}if('"'===f||"'"===f)for(var d=1,h=e.charAt(s-d);""===h.trim()||"="===h;){if("="===h){a=f;continue e}h=e.charAt(s-++d)}}else if(f===a){a=!1;continue}}return i<e.length&&(r+=n(e.substr(i))),r},wO.parseAttr=function(e,t){var n=0,r=0,i=[],o=!1,a=e.length;function s(e,n){if(!((e=(e=xO.trim(e)).replace(SO,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&i.push(r)}}for(var u=0;u<a;u++){var l,c=e.charAt(u);if(!1!==o||"="!==c)if(!1===o||u!==r)if(/\s|\n|\t/.test(c)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(l=MO(e,u))){s(xO.trim(e.slice(n,u))),o=!1,n=u+1;continue}u=l-1;continue}if(-1===(l=EO(e,u-1))){s(o,CO(xO.trim(e.slice(n,u)))),o=!1,n=u+1;continue}}else;else{if(-1===(l=e.indexOf(c,u+1)))break;s(o,xO.trim(e.slice(r+1,l))),o=!1,n=(u=l)+1}else o=e.slice(n,u),n=u+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:TO(e,u+1)}return n<e.length&&(!1===o?s(e.slice(n)):s(o,CO(xO.trim(e.slice(n))))),xO.trim(i.join(" "))};var OO=zC.exports.FilterCSS,DO=LC,NO=wO,jO=NO.parseTag,AO=NO.parseAttr,PO=$C;function RO(e){return void 0===e||null===e}function IO(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=DO.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=DO.whiteList,e.onTag=e.onTag||DO.onTag,e.onTagAttr=e.onTagAttr||DO.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||DO.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||DO.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||DO.safeAttrValue,e.escapeHtml=e.escapeHtml||DO.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new OO(e.css))}IO.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,o=t.onTagAttr,a=t.onIgnoreTagAttr,s=t.safeAttrValue,u=t.escapeHtml,l=this.cssFilter;t.stripBlankChar&&(e=DO.stripBlankChar(e)),t.allowCommentTag||(e=DO.stripCommentTag(e));var c=!1;t.stripIgnoreTagBody&&(c=DO.StripTagBody(t.stripIgnoreTagBody,i),i=c.onIgnoreTag);var f=jO(e,(function(e,t,c,f,d){var h={sourcePosition:e,position:t,isClosing:d,isWhite:Object.prototype.hasOwnProperty.call(n,c)},p=r(c,f,h);if(!RO(p))return p;if(h.isWhite){if(h.isClosing)return"</"+c+">";var m=function(e){var t=PO.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=PO.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=PO.trim(e.slice(0,-1))),{html:e,closing:n}}(f),v=n[c],g=AO(m.html,(function(e,t){var n=-1!==PO.indexOf(v,e),r=o(c,e,t,n);return RO(r)?n?(t=s(c,e,t,l))?e+'="'+t+'"':e:RO(r=a(c,e,t,n))?void 0:r:r}));return f="<"+c,g&&(f+=" "+g),m.closing&&(f+=" /"),f+=">"}return RO(p=i(c,f,h))?u(f):p}),u);return c&&(f=c.remove(f)),f};var FO=IO;!function(e,t){var n=LC,r=wO,i=FO;function o(e,t){return new i(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=i,function(){for(var e in n)t[e]=n[e];for(var i in r)t[i]=r[i]}(),"undefined"!==typeof window&&(window.filterXSS=e.exports),"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(FC,FC.exports);var LO=FC.exports;function zO(e,t){var n=wd(e);if(Nl){var r=Nl(e);t&&(r=Yp(r).call(r,(function(t){return Hl(e,t).enumerable}))),n.push.apply(n,r)}return n}function BO(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?uh(n=zO(Object(i),!0)).call(n,(function(t){Ec(e,t,i[t])})):nc?fc(e,nc(i)):uh(r=zO(Object(i))).call(r,(function(t){wc(e,t,Hl(i,t))}))}return e}function ZO(e){var t;if(!e)return!1;var n=null!==(t=e.idProp)&&void 0!==t?t:e._idProp;return!!n&&PC(n,e)}var WO=/^\/?Date\((-?\d+)/i,HO=/^\d+$/;function YO(e,t){var n;if(void 0!==e){if(null===e)return null;if(!t)return e;if("string"!==typeof t&&!(t instanceof String))throw new Error("Type must be a string");switch(t){case"boolean":case"Boolean":return Boolean(e);case"number":case"Number":return ub(e)&&!isNaN(Date.parse(e))?IC(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return YO(e,"Moment").toDate()}catch(r){throw r instanceof TypeError?new TypeError("Cannot convert object of type "+hb(e)+" to type "+t):r}case"Moment":if(sb(e))return IC(e);if(e instanceof Date)return IC(e.valueOf());if(IC.isMoment(e))return IC(e);if(ub(e))return(n=WO.exec(e))?IC(Number(n[1])):(n=HO.exec(e),IC(n?Number(e):e));throw new TypeError("Cannot convert object of type "+hb(e)+" to type "+t);case"ISODate":if(sb(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(IC.isMoment(e))return e.toDate().toISOString();if(ub(e))return(n=WO.exec(e))?new Date(Number(n[1])).toISOString():IC(e).format();throw new Error("Cannot convert object of type "+hb(e)+" to type ISODate");case"ASPDate":if(sb(e))return"/Date("+e+")/";if(e instanceof Date||IC.isMoment(e))return"/Date("+e.valueOf()+")/";if(ub(e))return"/Date("+((n=WO.exec(e))?new Date(Number(n[1])).valueOf():new Date(e).valueOf())+")/";throw new Error("Cannot convert object of type "+hb(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t))}}}function UO(e){var t,n,r,i,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},u=e._idProp,l=new jC({fieldId:u}),c=md(t=MC(e)).call(t,(function(e){var t;return oM(t=wd(e)).call(t,(function(t,n){return t[n]=YO(e[n],s[n]),t}),{})})).to(l);return c.all().start(),{add:function(){var t;return(t=e.getDataSet()).add.apply(t,arguments)},remove:function(){var t;return(t=e.getDataSet()).remove.apply(t,arguments)},update:function(){var t;return(t=e.getDataSet()).update.apply(t,arguments)},updateOnly:function(){var t;return(t=e.getDataSet()).updateOnly.apply(t,arguments)},clear:function(){var t;return(t=e.getDataSet()).clear.apply(t,arguments)},forEach:Gd(n=uh(l)).call(n,l),get:Gd(r=l.get).call(r,l),getIds:Gd(i=l.getIds).call(i,l),off:Gd(o=l.off).call(o,l),on:Gd(a=l.on).call(a,l),get length(){return l.length},idProp:u,type:s,rawDS:e,coercedDS:l,dispose:function(){return c.stop()}}}var VO=function(e){var t=new LO.FilterXSS(e);return function(e){return t.process(e)}},qO=function(e){return e},GO=VO(),XO=BO(BO({},Ub),{},{convert:YO,setupXSSProtection:function(e){e&&(!0===e.disabled?(GO=qO,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):e.filterOptions&&(GO=VO(e.filterOptions)))}});wc(XO,"xss",{get:function(){return GO}});var $O={exports:{}},QO=k,KO=f,JO=Le,eD=fm.trim,tD=y("".charAt),nD=QO.parseFloat,rD=QO.Symbol,iD=rD&&rD.iterator,oD=1/nD("\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff-0")!==-1/0||iD&&!KO((function(){nD(Object(iD))}))?function(e){var t=eD(JO(e)),n=nD(t);return 0===n&&"-"==tD(t,0)?-0:n}:nD;Fr({global:!0,forced:parseFloat!=oD},{parseFloat:oD});var aD=V.parseFloat;!function(e){e.exports=aD}($O);var sD=o($O.exports),uD=function(){function e(t,n){xc(this,e),this.options=null,this.props=null}return Tc(e,[{key:"setOptions",value:function(e){e&&XO.extend(this.options,e)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var e=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,e}}]),e}(),lD={exports:{}},cD=x,fD=Le,dD=P,hD=k.RangeError;Fr({target:"String",proto:!0},{repeat:function(e){var t=fD(dD(this)),n="",r=cD(e);if(r<0||r==1/0)throw hD("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var pD=kf("String").repeat,mD=xt,vD=pD,gD=String.prototype,yD=function(e){var t=e.repeat;return"string"==typeof e||e===gD||mD(gD,e)&&t===gD.repeat?vD:t},bD=yD;!function(e){e.exports=bD}(lD);var wD=o(lD.exports);function xD(e,t,n){if(n&&!ad(n))return xD(e,t,[n]);if(t.hiddenDates=[],n&&1==ad(n)){for(var r,i=0;i<n.length;i++)if(void 0===wD(n[i])){var o={};o.start=e(n[i].start).toDate().valueOf(),o.end=e(n[i].end).toDate().valueOf(),t.hiddenDates.push(o)}gE(r=t.hiddenDates).call(r,(function(e,t){return e.start-t.start}))}}function _D(e,t,n){if(n&&!ad(n))return _D(e,t,[n]);if(n&&void 0!==t.domProps.centerContainer.width){xD(e,t,n);for(var r=e(t.range.start),i=e(t.range.end),o=(t.range.end-t.range.start)/t.domProps.centerContainer.width,a=0;a<n.length;a++)if(void 0!==wD(n[a])){var s=e(n[a].start),u=e(n[a].end);if("Invalid Date"==s._d)throw new Error("Supplied start date is not valid: ".concat(n[a].start));if("Invalid Date"==u._d)throw new Error("Supplied end date is not valid: ".concat(n[a].end));if(u-s>=4*o){var l=0,c=i.clone();switch(wD(n[a])){case"daily":s.day()!=u.day()&&(l=1),s.dayOfYear(r.dayOfYear()),s.year(r.year()),s.subtract(7,"days"),u.dayOfYear(r.dayOfYear()),u.year(r.year()),u.subtract(7-l,"days"),c.add(1,"weeks");break;case"weekly":var f=u.diff(s,"days"),d=s.day();s.date(r.date()),s.month(r.month()),s.year(r.year()),u=s.clone(),s.day(d),u.day(d),u.add(f,"days"),s.subtract(1,"weeks"),u.subtract(1,"weeks"),c.add(1,"weeks");break;case"monthly":s.month()!=u.month()&&(l=1),s.month(r.month()),s.year(r.year()),s.subtract(1,"months"),u.month(r.month()),u.year(r.year()),u.subtract(1,"months"),u.add(l,"months"),c.add(1,"months");break;case"yearly":s.year()!=u.year()&&(l=1),s.year(r.year()),s.subtract(1,"years"),u.year(r.year()),u.subtract(1,"years"),u.add(l,"years"),c.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",wD(n[a]))}for(;s<c;)switch(t.hiddenDates.push({start:s.valueOf(),end:u.valueOf()}),wD(n[a])){case"daily":s.add(1,"days"),u.add(1,"days");break;case"weekly":s.add(1,"weeks"),u.add(1,"weeks");break;case"monthly":s.add(1,"months"),u.add(1,"months");break;case"yearly":s.add(1,"y"),u.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",wD(n[a]))}t.hiddenDates.push({start:s.valueOf(),end:u.valueOf()})}}kD(t);var h=AD(t.range.start,t.hiddenDates),p=AD(t.range.end,t.hiddenDates),m=t.range.start,v=t.range.end;1==h.hidden&&(m=1==t.range.startToFront?h.startDate-1:h.endDate+1),1==p.hidden&&(v=1==t.range.endToFront?p.startDate-1:p.endDate+1),1!=h.hidden&&1!=p.hidden||t.range._applyRange(m,v)}}function kD(e){for(var t,n=e.hiddenDates,r=[],i=0;i<n.length;i++)for(var o=0;o<n.length;o++)i!=o&&1!=n[o].remove&&1!=n[i].remove&&(n[o].start>=n[i].start&&n[o].end<=n[i].end?n[o].remove=!0:n[o].start>=n[i].start&&n[o].start<=n[i].end?(n[i].end=n[o].end,n[o].remove=!0):n[o].end>=n[i].start&&n[o].end<=n[i].end&&(n[i].start=n[o].start,n[o].remove=!0));for(i=0;i<n.length;i++)!0!==n[i].remove&&r.push(n[i]);e.hiddenDates=r,gE(t=e.hiddenDates).call(t,(function(e,t){return e.start-t.start}))}function SD(e,t,n){for(var r=!1,i=t.current.valueOf(),o=0;o<t.hiddenDates.length;o++){var a=t.hiddenDates[o].start,s=t.hiddenDates[o].end;if(i>=a&&i<s){r=!0;break}}if(1==r&&i<t._end.valueOf()&&i!=n){var u=e(n),l=e(s);u.year()!=l.year()?t.switchedYear=!0:u.month()!=l.month()?t.switchedMonth=!0:u.dayOfYear()!=l.dayOfYear()&&(t.switchedDay=!0),t.current=l}}function MD(e,t,n){var r;if(0==e.body.hiddenDates.length)return r=e.range.conversion(n),(t.valueOf()-r.offset)*r.scale;var i=AD(t,e.body.hiddenDates);1==i.hidden&&(t=i.startDate);var o=ED(e.body.hiddenDates,e.range.start,e.range.end);if(t<e.range.start){r=e.range.conversion(n,o);var a=CD(e.body.hiddenDates,t,r.offset);return t=e.options.moment(t).toDate().valueOf(),t+=a,-(r.offset-t.valueOf())*r.scale}if(t>e.range.end){var s={start:e.range.start,end:t};return t=OD(e.options.moment,e.body.hiddenDates,s,t),r=e.range.conversion(n,o),(t.valueOf()-r.offset)*r.scale}return t=OD(e.options.moment,e.body.hiddenDates,e.range,t),r=e.range.conversion(n,o),(t.valueOf()-r.offset)*r.scale}function TD(e,t,n){if(0==e.body.hiddenDates.length){var r=e.range.conversion(n);return new Date(t/r.scale+r.offset)}var i=ED(e.body.hiddenDates,e.range.start,e.range.end),o=(e.range.end-e.range.start-i)*t/n,a=ND(e.body.hiddenDates,e.range,o);return new Date(a+o+e.range.start)}function ED(e,t,n){for(var r=0,i=0;i<e.length;i++){var o=e[i].start,a=e[i].end;o>=t&&a<n&&(r+=a-o)}return r}function CD(e,t,n){for(var r=0,i=0;i<e.length;i++){var o=e[i].start,a=e[i].end;o>=t&&a<=n&&(r+=a-o)}return r}function OD(e,t,n,r){return r=e(r).toDate().valueOf(),r-=DD(e,t,n,r)}function DD(e,t,n,r){var i=0;r=e(r).toDate().valueOf();for(var o=0;o<t.length;o++){var a=t[o].start,s=t[o].end;a>=n.start&&s<n.end&&r>=s&&(i+=s-a)}return i}function ND(e,t,n){for(var r=0,i=0,o=t.start,a=0;a<e.length;a++){var s=e[a].start,u=e[a].end;if(s>=t.start&&u<t.end){if(i+=s-o,o=u,i>=n)break;r+=u-s}}return r}function jD(e,t,n,r){var i=AD(t,e);return 1==i.hidden?n<0?1==r?i.startDate-(i.endDate-t)-1:i.startDate-1:1==r?i.endDate+(t-i.startDate)+1:i.endDate+1:t}function AD(e,t){for(var n=0;n<t.length;n++){var r=t[n].start,i=t[n].end;if(e>=r&&e<i)return{hidden:!0,startDate:r,endDate:i}}return{hidden:!1,startDate:r,endDate:i}}var PD=Object.freeze({__proto__:null,convertHiddenOptions:xD,updateHiddenDates:_D,removeDuplicates:kD,printDates:function(e){for(var t=0;t<e.length;t++)console.log(t,new Date(e[t].start),new Date(e[t].end),e[t].start,e[t].end,e[t].remove)},stepOverHiddenDates:SD,toScreen:MD,toTime:TD,getHiddenDurationBetween:ED,getHiddenDurationBeforeStart:CD,correctTimeForHidden:OD,getHiddenDurationBefore:DD,getAccumulatedHiddenDuration:ND,snapAwayFromHidden:jD,getIsHidden:AD});function RD(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}var ID=function(e){Aw(n,e);var t=RD(n);function n(e,r){var i,o,a,s,u,l,c,f;xc(this,n),f=t.call(this);var d=RC().hours(0).minutes(0).seconds(0).milliseconds(0),h=d.clone().add(-3,"days").valueOf(),p=d.clone().add(3,"days").valueOf();return f.millisecondsPerPixelCache=void 0,void 0===r?(f.start=h,f.end=p):(f.start=r.start||h,f.end=r.end||p),f.rolling=!1,f.body=e,f.deltaDifference=0,f.scaleOffset=0,f.startToFront=!1,f.endToFront=!0,f.defaultOptions={rtl:!1,start:null,end:null,moment:RC,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},f.options=XO.extend({},f.defaultOptions),f.props={touch:{}},f.animationTimer=null,f.body.emitter.on("panstart",Gd(i=f._onDragStart).call(i,_w(f))),f.body.emitter.on("panmove",Gd(o=f._onDrag).call(o,_w(f))),f.body.emitter.on("panend",Gd(a=f._onDragEnd).call(a,_w(f))),f.body.emitter.on("mousewheel",Gd(s=f._onMouseWheel).call(s,_w(f))),f.body.emitter.on("touch",Gd(u=f._onTouch).call(u,_w(f))),f.body.emitter.on("pinch",Gd(l=f._onPinch).call(l,_w(f))),f.body.dom.rollingModeBtn.addEventListener("click",Gd(c=f.startRolling).call(c,_w(f))),f.setOptions(r),f}return Tc(n,[{key:"setOptions",value:function(e){if(e){XO.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,e),e.rollingMode&&e.rollingMode.follow&&this.startRolling(),("start"in e||"end"in e)&&this.setRange(e.start,e.end)}}},{key:"startRolling",value:function(){var e=this;!function t(){e.stopRolling(),e.rolling=!0;var n=e.end-e.start,r=XO.convert(new Date,"Date").valueOf(),i=e.options.rollingMode&&e.options.rollingMode.offset||.5,o=r-n*i,a=r+n*(1-i);e.setRange(o,a,{animation:!1}),(n=1/e.conversion(e.body.domProps.center.width).scale/10)<30&&(n=30),n>1e3&&(n=1e3),e.body.dom.rollingModeBtn.style.visibility="hidden",e.currentTimeTimer=Lv(t,n)}()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(e,t,n,r,i){n||(n={}),!0!==n.byUser&&(n.byUser=!1);var o=this,a=void 0!=e?XO.convert(e,"Date").valueOf():null,s=void 0!=t?XO.convert(t,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,n.animation){var u,l=this.start,c=this.end,f="object"===Wf(n.animation)&&"duration"in n.animation?n.animation.duration:500,d="object"===Wf(n.animation)&&"easingFunction"in n.animation?n.animation.easingFunction:"easeInOutQuad",h=XO.easingFunctions[d];if(!h)throw new Error(Jf(u="Unknown easing function ".concat(Sv(d),". Choose from: ")).call(u,wd(XO.easingFunctions).join(", ")));var p=Ed(),m=!1;return function e(){if(!o.props.touch.dragging){var t=Ed()-p,u=h(t/f),d=t>f,g=d||null===a?a:l+(a-l)*u,y=d||null===s?s:c+(s-c)*u;v=o._applyRange(g,y),_D(o.options.moment,o.body,o.options.hiddenDates),m=m||v;var b={start:new Date(o.start),end:new Date(o.end),byUser:n.byUser,event:n.event};if(i&&i(u,v,d),v&&o.body.emitter.emit("rangechange",b),d){if(m&&(o.body.emitter.emit("rangechanged",b),r))return r()}else o.animationTimer=Lv(e,20)}}()}var v=this._applyRange(a,s);if(_D(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:n.byUser,event:n.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(o.timeoutID),o.timeoutID=Lv((function(){o.body.emitter.emit("rangechanged",g)}),200),r)return r()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(e,t){var n,r=null!=e?XO.convert(e,"Date").valueOf():this.start,i=null!=t?XO.convert(t,"Date").valueOf():this.end,o=null!=this.options.max?XO.convert(this.options.max,"Date").valueOf():null,a=null!=this.options.min?XO.convert(this.options.min,"Date").valueOf():null;if(isNaN(r)||null===r)throw new Error('Invalid start "'.concat(e,'"'));if(isNaN(i)||null===i)throw new Error('Invalid end "'.concat(t,'"'));if(i<r&&(i=r),null!==a&&r<a&&(r+=n=a-r,i+=n,null!=o&&i>o&&(i=o)),null!==o&&i>o&&(r-=n=i-o,i-=n,null!=a&&r<a&&(r=a)),null!==this.options.zoomMin){var s=sD(this.options.zoomMin);if(s<0&&(s=0),i-r<s){this.end-this.start===s&&r>=this.start-.5&&i<=this.end?(r=this.start,i=this.end):(r-=(n=s-(i-r))/2,i+=n/2)}}if(null!==this.options.zoomMax){var u=sD(this.options.zoomMax);u<0&&(u=0),i-r>u&&(this.end-this.start===u&&r<this.start&&i>this.end?(r=this.start,i=this.end):(r+=(n=i-r-u)/2,i-=n/2))}var l=this.start!=r||this.end!=i;return r>=this.start&&r<=this.end||i>=this.start&&i<=this.end||this.start>=r&&this.start<=i||this.end>=r&&this.end<=i||this.body.emitter.emit("checkRangedItems"),this.start=r,this.end=i,l}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(e,t){return n.conversion(this.start,this.end,e,t)}},{key:"_onDragStart",value:function(e){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(e)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(e){if(e&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var t=this.options.direction;FD(t);var n="horizontal"==t?e.deltaX:e.deltaY;n-=this.deltaDifference;var r=this.props.touch.end-this.props.touch.start;r-=ED(this.body.hiddenDates,this.start,this.end);var i,o="horizontal"==t?this.body.domProps.center.width:this.body.domProps.center.height;i=this.options.rtl?n/o*r:-n/o*r;var a=this.props.touch.start+i,s=this.props.touch.end+i,u=jD(this.body.hiddenDates,a,this.previousDelta-n,!0),l=jD(this.body.hiddenDates,s,this.previousDelta-n,!0);if(u!=a||l!=s)return this.deltaDifference+=n,this.props.touch.start=u,this.props.touch.end=l,void this._onDrag(e);this.previousDelta=n,this._applyRange(a,s);var c=new Date(this.start),f=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:f,byUser:!0,event:e}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(e){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:e}))}},{key:"_onMouseWheel",value:function(e){var t=0;if(e.wheelDelta?t=e.wheelDelta/120:e.detail?t=-e.detail/3:e.deltaY&&(t=-e.deltaY/3),!(this.options.zoomKey&&!e[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(e)&&t){var n,r,i=this.options.zoomFriction||5;if(n=t<0?1-t/i:1/(1+t/i),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;r=this.start+(this.end-this.start)*o}else{var a=this.getPointer({x:e.clientX,y:e.clientY},this.body.dom.center);r=this._pointerToDate(a)}this.zoom(n,r,t,e),e.preventDefault()}}},{key:"_onTouch",value:function(e){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,XO.preventDefault(e)}},{key:"_onPinch",value:function(e){if(this.options.zoomable&&this.options.moveable){XO.preventDefault(e),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(e.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var t=1/(e.scale+this.scaleOffset),n=this.props.touch.centerDate,r=ED(this.body.hiddenDates,this.start,this.end),i=DD(this.options.moment,this.body.hiddenDates,this,n),o=r-i,a=n-i+(this.props.touch.start-(n-i))*t,s=n+o+(this.props.touch.end-(n+o))*t;this.startToFront=1-t<=0,this.endToFront=t-1<=0;var u=jD(this.body.hiddenDates,a,1-t,!0),l=jD(this.body.hiddenDates,s,t-1,!0);u==a&&l==s||(this.props.touch.start=u,this.props.touch.end=l,this.scaleOffset=1-e.scale,a=u,s=l);var c={animation:!1,byUser:!0,event:e};this.setRange(a,s,c),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(e){var t=e.center?e.center.x:e.clientX,n=this.body.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?t-n.left:n.right-t,i=this.body.util.toTime(r);return i>=this.start&&i<=this.end}},{key:"_pointerToDate",value:function(e){var t,n=this.options.direction;if(FD(n),"horizontal"==n)return this.body.util.toTime(e.x).valueOf();var r=this.body.domProps.center.height;return t=this.conversion(r),e.y/t.scale+t.offset}},{key:"getPointer",value:function(e,t){var n=t.getBoundingClientRect();return this.options.rtl?{x:n.right-e.x,y:e.y-n.top}:{x:e.x-n.left,y:e.y-n.top}}},{key:"zoom",value:function(e,t,n,r){null==t&&(t=(this.start+this.end)/2);var i=ED(this.body.hiddenDates,this.start,this.end),o=DD(this.options.moment,this.body.hiddenDates,this,t),a=i-o,s=t-o+(this.start-(t-o))*e,u=t+a+(this.end-(t+a))*e;this.startToFront=!(n>0),this.endToFront=!(-n>0);var l=jD(this.body.hiddenDates,s,n,!0),c=jD(this.body.hiddenDates,u,-n,!0);l==s&&c==u||(s=l,u=c);var f={animation:!1,byUser:!0,event:r};this.setRange(s,u,f),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(e){var t=this.end-this.start,n=this.start+t*e,r=this.end+t*e;this.start=n,this.end=r}},{key:"moveTo",value:function(e){var t=(this.start+this.end)/2-e,n=this.start-t,r=this.end-t;this.setRange(n,r,{animation:!1,byUser:!0,event:null})}}],[{key:"conversion",value:function(e,t,n,r){return void 0===r&&(r=0),0!=n&&t-e!=0?{offset:e,scale:n/(t-e-r)}:{offset:0,scale:1}}}]),n}(uD);function FD(e){if("horizontal"!=e&&"vertical"!=e)throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var LD={exports:{}},zD=V.setInterval;!function(e){e.exports=zD}(LD);var BD,ZD=o(LD.exports),WD=null;"undefined"!==typeof window?BD=function e(t,n){var r=n||{preventDefault:!1};if(t.Manager){var i=t,o=function(t,n){var o=Object.create(r);return n&&i.assign(o,n),e(new i(t,o),o)};return i.assign(o,i),o.Manager=function(t,n){var o=Object.create(r);return n&&i.assign(o,n),e(new i.Manager(t,o),o)},o}var a=Object.create(t),s=t.element;function u(e){return e.match(/[^ ]+/g)}function l(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=WD;for(var r=WD;r&&!t;){var i=r.hammer;if(i)for(var o,a=0;a<i.length;a++)if(o=i[a]._handlers[e.type])for(var s=0;s<o.length&&!t;s++)o[s](e);r=r.parentNode}}return s.hammer||(s.hammer=[]),s.hammer.push(a),t.on("hammer.input",(function(e){!0!==r.preventDefault&&r.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(WD=e.target)})),a._handlers={},a.on=function(e,n){return u(e).forEach((function(e){var r=a._handlers[e];r||(a._handlers[e]=r=[],t.on(e,l)),r.push(n)})),a},a.off=function(e,n){return u(e).forEach((function(e){var r=a._handlers[e];r&&((r=n?r.filter((function(e){return e!==n})):[]).length>0?a._handlers[e]=r:(t.off(e,l),delete a._handlers[e]))})),a},a.emit=function(e,n){WD=n.target,t.emit(e,n)},a.destroy=function(){var e=t.element.hammer,n=e.indexOf(a);-1!==n&&e.splice(n,1),e.length||delete t.element.hammer,a._handlers={},t.destroy()},a}(window.Hammer||Zy,{preventDefault:"mouse"}):BD=function(){return function(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}()};var HD=BD;function YD(e,t){t.inputHandler=function(e){e.isFirst&&t(e)},e.on("hammer.input",t.inputHandler)}var UD=function(){function e(t,n,r,i,o){xc(this,e),this.moment=o&&o.moment||RC,this.options=o||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(t,n,r),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,ad(i)?this.hiddenDates=i:this.hiddenDates=void 0!=i?[i]:[],this.format=e.FORMAT}return Tc(e,[{key:"setMoment",value:function(e){this.moment=e,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(t){var n=XO.deepExtend({},e.FORMAT);this.format=XO.deepExtend(n,t)}},{key:"setRange",value:function(e,t,n){if(!(e instanceof Date)||!(t instanceof Date))throw"No legal start or end date in method setRange";this._start=void 0!=e?this.moment(e.valueOf()):Ed(),this._end=void 0!=t?this.moment(t.valueOf()):Ed(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step){var e=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}e.isSame(this.current)||(this.current=this.moment(jD(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var e=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var t=this.current.clone();t.add(1,"week"),t.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==e&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,SD(this.moment,this,e)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(e){e&&"string"==typeof e.scale&&(this.scale=e.scale,this.step=e.step>0?e.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(e){this.autoScale=e}},{key:"setMinimumStep",value:function(e){if(void 0!=e){var t=31104e6,n=2592e6,r=864e5,i=36e5,o=6e4,a=1e3;1e3*t>e&&(this.scale="year",this.step=1e3),500*t>e&&(this.scale="year",this.step=500),100*t>e&&(this.scale="year",this.step=100),50*t>e&&(this.scale="year",this.step=50),10*t>e&&(this.scale="year",this.step=10),5*t>e&&(this.scale="year",this.step=5),t>e&&(this.scale="year",this.step=1),7776e6>e&&(this.scale="month",this.step=3),n>e&&(this.scale="month",this.step=1),6048e5>e&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>e&&(this.scale="day",this.step=2),r>e&&(this.scale="day",this.step=1),432e5>e&&(this.scale="weekday",this.step=1),144e5>e&&(this.scale="hour",this.step=4),i>e&&(this.scale="hour",this.step=1),9e5>e&&(this.scale="minute",this.step=15),6e5>e&&(this.scale="minute",this.step=10),3e5>e&&(this.scale="minute",this.step=5),o>e&&(this.scale="minute",this.step=1),15e3>e&&(this.scale="second",this.step=15),1e4>e&&(this.scale="second",this.step=10),5e3>e&&(this.scale="second",this.step=5),a>e&&(this.scale="second",this.step=1),200>e&&(this.scale="millisecond",this.step=200),100>e&&(this.scale="millisecond",this.step=100),50>e&&(this.scale="millisecond",this.step=50),10>e&&(this.scale="millisecond",this.step=10),5>e&&(this.scale="millisecond",this.step=5),1>e&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var e=this.moment(this.current);switch(this.scale){case"millisecond":return 0==e.milliseconds();case"second":return 0==e.seconds();case"minute":return 0==e.hours()&&0==e.minutes();case"hour":return 0==e.hours();case"weekday":case"day":return this.options.showWeekScale?1==e.isoWeekday():1==e.date();case"week":return 1==e.date();case"month":return 0==e.month();default:return!1}}},{key:"getLabelMinor",value:function(e){if(void 0==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"===typeof this.format.minorLabels)return this.format.minorLabels(e,this.scale,this.step);var t=this.format.minorLabels[this.scale];return"week"===this.scale&&1===e.date()&&0!==e.weekday()?"":t&&t.length>0?this.moment(e).format(t):""}},{key:"getLabelMajor",value:function(e){if(void 0==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"===typeof this.format.majorLabels)return this.format.majorLabels(e,this.scale,this.step);var t=this.format.majorLabels[this.scale];return t&&t.length>0?this.moment(e).format(t):""}},{key:"getClassName",value:function(){var e,t=this.moment,n=this.moment(this.current),r=n.locale?n.locale("en"):n.lang("en"),i=this.step,o=[];function a(e){return e/i%2==0?" vis-even":" vis-odd"}function s(e){return e.isSame(Ed(),"day")?" vis-today":e.isSame(t().add(1,"day"),"day")?" vis-tomorrow":e.isSame(t().add(-1,"day"),"day")?" vis-yesterday":""}function u(e){return e.isSame(Ed(),"week")?" vis-current-week":""}function l(e){return e.isSame(Ed(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":o.push(s(r)),o.push(a(r.milliseconds()));break;case"second":o.push(s(r)),o.push(a(r.seconds()));break;case"minute":o.push(s(r)),o.push(a(r.minutes()));break;case"hour":o.push(Jf(e="vis-h".concat(r.hours())).call(e,4==this.step?"-h"+(r.hours()+4):"")),o.push(s(r)),o.push(a(r.hours()));break;case"weekday":o.push("vis-".concat(r.format("dddd").toLowerCase())),o.push(s(r)),o.push(u(r)),o.push(a(r.date()));break;case"day":o.push("vis-day".concat(r.date())),o.push("vis-".concat(r.format("MMMM").toLowerCase())),o.push(s(r)),o.push(l(r)),o.push(this.step<=2?s(r):""),o.push(this.step<=2?"vis-".concat(r.format("dddd").toLowerCase()):""),o.push(a(r.date()-1));break;case"week":o.push("vis-week".concat(r.format("w"))),o.push(u(r)),o.push(a(r.week()));break;case"month":o.push("vis-".concat(r.format("MMMM").toLowerCase())),o.push(l(r)),o.push(a(r.month()));break;case"year":o.push("vis-year".concat(r.year())),o.push(function(e){return e.isSame(Ed(),"year")?" vis-current-year":""}(r)),o.push(a(r.year()))}return Yp(o).call(o,String).join(" ")}}],[{key:"snap",value:function(e,t,n){var r=RC(e);if("year"==t){var i=r.year()+Math.round(r.month()/12);r.year(Math.round(i/n)*n),r.month(0),r.date(0),r.hours(0),r.minutes(0),r.seconds(0),r.milliseconds(0)}else if("month"==t)r.date()>15?(r.date(1),r.add(1,"month")):r.date(1),r.hours(0),r.minutes(0),r.seconds(0),r.milliseconds(0);else if("week"==t)r.weekday()>2?(r.weekday(0),r.add(1,"week")):r.weekday(0),r.hours(0),r.minutes(0),r.seconds(0),r.milliseconds(0);else if("day"==t){switch(n){case 5:case 2:r.hours(24*Math.round(r.hours()/24));break;default:r.hours(12*Math.round(r.hours()/12))}r.minutes(0),r.seconds(0),r.milliseconds(0)}else if("weekday"==t){switch(n){case 5:case 2:r.hours(12*Math.round(r.hours()/12));break;default:r.hours(6*Math.round(r.hours()/6))}r.minutes(0),r.seconds(0),r.milliseconds(0)}else if("hour"==t){if(4===n)r.minutes(60*Math.round(r.minutes()/60));else r.minutes(30*Math.round(r.minutes()/30));r.seconds(0),r.milliseconds(0)}else if("minute"==t){switch(n){case 15:case 10:r.minutes(5*Math.round(r.minutes()/5)),r.seconds(0);break;case 5:r.seconds(60*Math.round(r.seconds()/60));break;default:r.seconds(30*Math.round(r.seconds()/30))}r.milliseconds(0)}else if("second"==t)switch(n){case 15:case 10:r.seconds(5*Math.round(r.seconds()/5)),r.milliseconds(0);break;case 5:r.milliseconds(1e3*Math.round(r.milliseconds()/1e3));break;default:r.milliseconds(500*Math.round(r.milliseconds()/500))}else if("millisecond"==t){var o=n>5?n/2:1;r.milliseconds(Math.round(r.milliseconds()/o)*o)}return r}}]),e}();function VD(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}UD.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};function qD(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}VD(".vis-time-axis {\n position: relative;\n overflow: hidden;\n}\n\n.vis-time-axis.vis-foreground {\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.vis-time-axis.vis-background {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vis-time-axis .vis-text {\n position: absolute;\n color: #4d4d4d;\n padding: 3px;\n overflow: hidden;\n box-sizing: border-box;\n\n white-space: nowrap;\n}\n\n.vis-time-axis .vis-text.vis-measure {\n position: absolute;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n visibility: hidden;\n}\n\n.vis-time-axis .vis-grid.vis-vertical {\n position: absolute;\n border-left: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-vertical-rtl {\n position: absolute;\n border-right: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n");var GD=function(e){Aw(n,e);var t=qD(n);function n(e,r){var i;return xc(this,n),(i=t.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},i.props={range:{start:0,end:0,minimumStep:0},lineTop:0},i.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:XO.extend({},UD.FORMAT),moment:RC,timeAxis:null},i.options=XO.extend({},i.defaultOptions),i.body=e,i._create(),i.setOptions(r),i}return Tc(n,[{key:"setOptions",value:function(e){e&&(XO.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,e),XO.selectiveDeepExtend(["format"],this.options,e),"orientation"in e&&("string"===typeof e.orientation?this.options.orientation.axis=e.orientation:"object"===Wf(e.orientation)&&"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis)),"locale"in e&&("function"===typeof RC.locale?RC.locale(e.locale):RC.lang(e.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var e=this.props,t=this.dom.foreground,n=this.dom.background,r="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,i=t.parentNode!==r;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,a=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;e.minorLabelHeight=o?e.minorCharHeight:0,e.majorLabelHeight=a?e.majorCharHeight:0,e.height=e.minorLabelHeight+e.majorLabelHeight,e.width=t.offsetWidth,e.minorLineHeight=this.body.domProps.root.height-e.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),e.minorLineWidth=1,e.majorLineHeight=e.minorLineHeight+e.majorLabelHeight,e.majorLineWidth=1;var s=t.nextSibling,u=n.nextSibling;return t.parentNode&&t.parentNode.removeChild(t),n.parentNode&&n.parentNode.removeChild(n),t.style.height="".concat(this.props.height,"px"),this._repaintLabels(),s?r.insertBefore(t,s):r.appendChild(t),u?this.body.dom.backgroundVertical.insertBefore(n,u):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||i}},{key:"_repaintLabels",value:function(){var e=this.options.orientation.axis,t=XO.convert(this.body.range.start,"Number"),n=XO.convert(this.body.range.end,"Number"),r=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),i=r-DD(this.options.moment,this.body.hiddenDates,this.body.range,r);i-=this.body.util.toTime(0).valueOf();var o=new UD(new Date(t),new Date(n),i,this.body.hiddenDates,this.options);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var a,s,u,l,c,f,d=this.dom;d.redundant.lines=d.lines,d.redundant.majorTexts=d.majorTexts,d.redundant.minorTexts=d.minorTexts,d.lines=[],d.majorTexts=[],d.minorTexts=[];var h,p,m,v=0,g=void 0,y=0,b=1e3;for(o.start(),s=o.getCurrent(),l=this.body.util.toScreen(s);o.hasNext()&&y<b;){if(y++,c=o.isMajor(),m=o.getClassName(),a=s,u=l,o.next(),s=o.getCurrent(),h=v,v=(l=this.body.util.toScreen(s))-u,"week"===o.scale)f=!0;else f=v>=.4*h;if(this.options.showMinorLabels&&f){var w=this._repaintMinorText(u,o.getLabelMinor(a),e,m);w.style.width="".concat(v,"px")}c&&this.options.showMajorLabels?(u>0&&(void 0==g&&(g=u),w=this._repaintMajorText(u,o.getLabelMajor(a),e,m)),p=this._repaintMajorLine(u,v,e,m)):f?p=this._repaintMinorLine(u,v,e,m):p&&(p.style.width="".concat(Mm(p.style.width)+v,"px"))}if(y!==b||XD||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(b," lines.")),XD=!0),this.options.showMajorLabels){var x=this.body.util.toTime(0),_=o.getLabelMajor(x),k=_.length*(this.props.majorCharWidth||10)+10;(void 0==g||k<g)&&this._repaintMajorText(0,_,e,m)}uh(XO).call(XO,this.dom.redundant,(function(e){for(;e.length;){var t=e.pop();t&&t.parentNode&&t.parentNode.removeChild(t)}}))}},{key:"_repaintMinorText",value:function(e,t,n,r){var i=this.dom.redundant.minorTexts.shift();if(!i){var o=document.createTextNode("");(i=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(i)}this.dom.minorTexts.push(i),i.innerHTML=XO.xss(t);var a="top"==n?this.props.majorLabelHeight:0;return this._setXY(i,e,a),i.className="vis-text vis-minor ".concat(r),i}},{key:"_repaintMajorText",value:function(e,t,n,r){var i=this.dom.redundant.majorTexts.shift();if(!i){var o=document.createElement("div");(i=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(i)}i.childNodes[0].innerHTML=XO.xss(t),i.className="vis-text vis-major ".concat(r);var a="top"==n?0:this.props.minorLabelHeight;return this._setXY(i,e,a),this.dom.majorTexts.push(i),i}},{key:"_setXY",value:function(e,t,n){var r,i=this.options.rtl?-1*t:t;e.style.transform=Jf(r="translate(".concat(i,"px, ")).call(r,n,"px)")}},{key:"_repaintMinorLine",value:function(e,t,n,r){var i,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var a=this.props;o.style.width="".concat(t,"px"),o.style.height="".concat(a.minorLineHeight,"px");var s="top"==n?a.majorLabelHeight:this.body.domProps.top.height,u=e-a.minorLineWidth/2;return this._setXY(o,u,s),o.className=Jf(i="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(i,r),o}},{key:"_repaintMajorLine",value:function(e,t,n,r){var i,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var a=this.props;o.style.width="".concat(t,"px"),o.style.height="".concat(a.majorLineHeight,"px");var s="top"==n?0:this.body.domProps.top.height,u=e-a.majorLineWidth/2;return this._setXY(o,u,s),o.className=Jf(i="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(i,r),o}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),n}(uD),XD=!1;function $D(e){var t,n=e&&e.preventDefault||!1,r=e&&e.container||window,i={},o={keydown:{},keyup:{}},a={};for(t=97;t<=122;t++)a[String.fromCharCode(t)]={code:t-97+65,shift:!1};for(t=65;t<=90;t++)a[String.fromCharCode(t)]={code:t,shift:!0};for(t=0;t<=9;t++)a[""+t]={code:48+t,shift:!1};for(t=1;t<=12;t++)a["F"+t]={code:111+t,shift:!1};for(t=0;t<=9;t++)a["num"+t]={code:96+t,shift:!1};a["num*"]={code:106,shift:!1},a["num+"]={code:107,shift:!1},a["num-"]={code:109,shift:!1},a["num/"]={code:111,shift:!1},a["num."]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a["="]={code:187,shift:!1},a["-"]={code:189,shift:!1},a["]"]={code:221,shift:!1},a["["]={code:219,shift:!1};var s=function(e){l(e,"keydown")},u=function(e){l(e,"keyup")},l=function(e,t){if(void 0!==o[t][e.keyCode]){for(var r=o[t][e.keyCode],i=0;i<r.length;i++)(void 0===r[i].shift||1==r[i].shift&&1==e.shiftKey||0==r[i].shift&&0==e.shiftKey)&&r[i].fn(e);1==n&&e.preventDefault()}};return i.bind=function(e,t,n){if(void 0===n&&(n="keydown"),void 0===a[e])throw new Error("unsupported key: "+e);void 0===o[n][a[e].code]&&(o[n][a[e].code]=[]),o[n][a[e].code].push({fn:t,shift:a[e].shift})},i.bindAll=function(e,t){for(var n in void 0===t&&(t="keydown"),a)a.hasOwnProperty(n)&&i.bind(n,e,t)},i.getKey=function(e){for(var t in a)if(a.hasOwnProperty(t)){if(1==e.shiftKey&&1==a[t].shift&&e.keyCode==a[t].code)return t;if(0==e.shiftKey&&0==a[t].shift&&e.keyCode==a[t].code)return t;if(e.keyCode==a[t].code&&"shift"==t)return t}return"unknown key, currently not supported"},i.unbind=function(e,t,n){if(void 0===n&&(n="keydown"),void 0===a[e])throw new Error("unsupported key: "+e);if(void 0!==t){var r=[],i=o[n][a[e].code];if(void 0!==i)for(var s=0;s<i.length;s++)i[s].fn==t&&i[s].shift==a[e].shift||r.push(o[n][a[e].code][s]);o[n][a[e].code]=r}else o[n][a[e].code]=[]},i.reset=function(){o={keydown:{},keyup:{}}},i.destroy=function(){o={keydown:{},keyup:{}},r.removeEventListener("keydown",s,!0),r.removeEventListener("keyup",u,!0)},r.addEventListener("keydown",s,!0),r.addEventListener("keyup",u,!0),i}function QD(e){var t,n;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=HD(this.dom.overlay),this.hammer.on("tap",Gd(t=this._onTapOverlay).call(t,this));var r=this,i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];uh(i).call(i,(function(e){r.hammer.on(e,(function(e){e.stopPropagation()}))})),document&&document.body&&(this.onClick=function(t){(function(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1})(t.target,e)||r.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=$D(),this.escListener=Gd(n=this.deactivate).call(n,this)}VD(".vis .overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n"),Jv(QD.prototype),QD.current=null,QD.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},QD.prototype.activate=function(){var e;QD.current&&QD.current.deactivate(),QD.current=this,this.active=!0,this.dom.overlay.style.display="none",XO.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),Gd(e=this.keycharm).call(e,"esc",this.escListener)},QD.prototype.deactivate=function(){QD.current===this&&(QD.current=null),this.active=!1,this.dom.overlay.style.display="",XO.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},QD.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};var KD={current:"current",time:"time",deleteSelected:"Delete selected"},JD={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},eN={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},tN={current:"Aktuelle",time:"Zeit",deleteSelected:"L\xf6sche Auswahl"},nN={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},rN={current:"corriente",time:"hora",deleteSelected:"Eliminar selecci\xf3n"},iN={current:"\u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439",time:"\u0447\u0430\u0441",deleteSelected:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043e\u0431\u0440\u0430\u043d\u0435"},oN={current:"\u0442\u0435\u043a\u0443\u0449\u0435\u0435",time:"\u0432\u0440\u0435\u043c\u044f",deleteSelected:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435"},aN={current:"aktualny",time:"czas",deleteSelected:"Usu\u0144 wybrane"},sN={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},uN={current:"\u73fe\u5728",time:"\u6642\u523b",deleteSelected:"\u9078\u629e\u3055\u308c\u305f\u3082\u306e\u3092\u524a\u9664"},lN={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},cN={current:"n\xe5v\xe6rende",time:"tid",deleteSelected:"Slett valgte"},fN={current:"einamas",time:"laikas",deleteSelected:"Pa\u0161alinti pasirinkt\u0105"},dN={en:KD,en_EN:KD,en_US:KD,it:JD,it_IT:JD,it_CH:JD,nl:eN,nl_NL:eN,nl_BE:eN,de:tN,de_DE:tN,fr:nN,fr_FR:nN,fr_CA:nN,fr_BE:nN,es:rN,es_ES:rN,uk:iN,uk_UA:iN,ru:oN,ru_RU:oN,pl:aN,pl_PL:aN,pt:sN,pt_BR:sN,pt_PT:sN,ja:uN,ja_JP:uN,lt:fN,lt_LT:fN,sv:lN,sv_SE:lN,nb:cN,nn:cN,nb_NO:cN,nn_NO:cN};function hN(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}VD(".vis-custom-time {\n background-color: #6E94FF;\n width: 2px;\n cursor: move;\n z-index: 1;\n}\n\n.vis-custom-time > .vis-custom-time-marker {\n background-color: inherit;\n color: white;\n font-size: 12px;\n white-space: nowrap;\n padding: 3px 5px;\n top: 0px;\n cursor: initial;\n z-index: inherit;\n}");var pN=function(e){Aw(n,e);var t=hN(n);function n(e,r){var i,o;xc(this,n),(o=t.call(this)).body=e,o.defaultOptions={moment:RC,locales:dN,locale:"en",id:void 0,title:void 0},o.options=XO.extend({},o.defaultOptions),o.setOptions(r),o.options.locales=XO.extend({},dN,o.options.locales);var a=o.defaultOptions.locales[o.defaultOptions.locale];return uh(i=wd(o.options.locales)).call(i,(function(e){o.options.locales[e]=XO.extend({},a,o.options.locales[e])})),r&&null!=r.time?o.customTime=r.time:o.customTime=new Date,o.eventParams={},o._create(),o}return Tc(n,[{key:"setOptions",value:function(e){e&&XO.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,e)}},{key:"_create",value:function(){var e,t,n,r=document.createElement("div");r["custom-time"]=this,r.className="vis-custom-time ".concat(this.options.id||""),r.style.position="absolute",r.style.top="0px",r.style.height="100%",this.bar=r;var i=document.createElement("div");function o(e){this.body.range._onMouseWheel(e)}i.style.position="relative",i.style.top="0px",this.options.rtl?i.style.right="-10px":i.style.left="-10px",i.style.height="100%",i.style.width="20px",i.addEventListener?(i.addEventListener("mousewheel",Gd(o).call(o,this),!1),i.addEventListener("DOMMouseScroll",Gd(o).call(o,this),!1)):i.attachEvent("onmousewheel",Gd(o).call(o,this)),r.appendChild(i),this.hammer=new HD(i),this.hammer.on("panstart",Gd(e=this._onDragStart).call(e,this)),this.hammer.on("panmove",Gd(t=this._onDrag).call(t,this)),this.hammer.on("panend",Gd(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:HD.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var e=this.body.dom.backgroundVertical;this.bar.parentNode!=e&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),e.appendChild(this.bar));var t=this.body.util.toScreen(this.customTime),n=this.options.locales[this.options.locale];n||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),n=this.options.locales.en);var r,i=this.options.title;void 0===i?i=(i=Jf(r="".concat(n.time,": ")).call(r,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+i.substring(1):"function"===typeof i&&(i=i.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(t,"px"):this.bar.style.left="".concat(t,"px"),this.bar.title=i,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(e){this.customTime=XO.convert(e,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(e,t){var n,r,i=document.createElement("div");(i.className="vis-custom-time-marker",i.innerHTML=XO.xss(e),i.style.position="absolute",t)&&(i.setAttribute("contenteditable","true"),i.addEventListener("pointerdown",(function(){i.focus()})),i.addEventListener("input",Gd(n=this._onMarkerChange).call(n,this)),i.title=e,i.addEventListener("blur",Gd(r=function(e){this.title!=e.target.innerHTML&&(this._onMarkerChanged(e),this.title=e.target.innerHTML)}).call(r,this)));this.bar.appendChild(i)}},{key:"setCustomTitle",value:function(e){this.options.title=e}},{key:"_onDragStart",value:function(e){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,e.stopPropagation()}},{key:"_onDrag",value:function(e){if(this.eventParams.dragging){var t=this.options.rtl?-1*e.deltaX:e.deltaX,n=this.body.util.toScreen(this.eventParams.customTime)+t,r=this.body.util.toTime(n),i=this.body.util.getScale(),o=this.body.util.getStep(),a=this.options.snap,s=a?a(r,i,o):r;this.setCustomTime(s),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:e}),e.stopPropagation()}}},{key:"_onDragEnd",value:function(e){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:e}),e.stopPropagation())}},{key:"_onMarkerChange",value:function(e){this.body.emitter.emit("markerchange",{id:this.options.id,title:e.target.innerHTML,event:e}),e.stopPropagation()}},{key:"_onMarkerChanged",value:function(e){this.body.emitter.emit("markerchanged",{id:this.options.id,title:e.target.innerHTML,event:e}),e.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(e){for(var t=e.target;t;){if(t.hasOwnProperty("custom-time"))return t["custom-time"];t=t.parentNode}return null}}]),n}(uD);VD(".vis-timeline {\n /*\n -webkit-transition: height .4s ease-in-out;\n transition: height .4s ease-in-out;\n */\n}\n\n.vis-panel {\n /*\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n */\n}\n\n.vis-axis {\n /*\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n */\n}\n\n/* TODO: get animation working nicely\n\n.vis-item {\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n}\n\n.vis-item.line {\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n}\n/**/");VD('.vis-current-time {\n background-color: #FF7F6E;\n width: 2px;\n z-index: 1;\n pointer-events: none;\n}\n\n.vis-rolling-mode-btn {\n height: 40px;\n width: 40px;\n position: absolute;\n top: 7px;\n right: 20px;\n border-radius: 50%;\n font-size: 28px;\n cursor: pointer;\n opacity: 0.8;\n color: white;\n font-weight: bold;\n text-align: center;\n background: #3876c2;\n}\n.vis-rolling-mode-btn:before {\n content: "\\26F6";\n}\n\n.vis-rolling-mode-btn:hover {\n opacity: 1;\n}');VD(".vis-panel {\n position: absolute;\n\n padding: 0;\n margin: 0;\n\n box-sizing: border-box;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border: 1px #bfbfbf;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right {\n border-top-style: solid;\n border-bottom-style: solid;\n overflow: hidden;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {\n height: 100%;\n overflow-x: hidden;\n overflow-y: scroll;\n} \n\n.vis-left.vis-panel.vis-vertical-scroll {\n direction: rtl;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll .vis-content {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll .vis-content {\n direction: rtl;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border-left-style: solid;\n border-right-style: solid;\n}\n\n.vis-background {\n overflow: hidden;\n}\n\n.vis-panel > .vis-content {\n position: relative;\n}\n\n.vis-panel .vis-shadow {\n position: absolute;\n width: 100%;\n height: 1px;\n box-shadow: 0 0 10px rgba(0,0,0,0.8);\n /* TODO: find a nice way to ensure vis-shadows are drawn on top of items\n z-index: 1;\n */\n}\n\n.vis-panel .vis-shadow.vis-top {\n top: -1px;\n left: 0;\n}\n\n.vis-panel .vis-shadow.vis-bottom {\n bottom: -1px;\n left: 0;\n}");VD(".vis-graph-group0 {\n fill:#4f81bd;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #4f81bd;\n}\n\n.vis-graph-group1 {\n fill:#f79646;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #f79646;\n}\n\n.vis-graph-group2 {\n fill: #8c51cf;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #8c51cf;\n}\n\n.vis-graph-group3 {\n fill: #75c841;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #75c841;\n}\n\n.vis-graph-group4 {\n fill: #ff0100;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #ff0100;\n}\n\n.vis-graph-group5 {\n fill: #37d8e6;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #37d8e6;\n}\n\n.vis-graph-group6 {\n fill: #042662;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #042662;\n}\n\n.vis-graph-group7 {\n fill:#00ff26;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #00ff26;\n}\n\n.vis-graph-group8 {\n fill:#ff00ff;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #ff00ff;\n}\n\n.vis-graph-group9 {\n fill: #8f3938;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #8f3938;\n}\n\n.vis-timeline .vis-fill {\n fill-opacity:0.1;\n stroke: none;\n}\n\n\n.vis-timeline .vis-bar {\n fill-opacity:0.5;\n stroke-width:1px;\n}\n\n.vis-timeline .vis-point {\n stroke-width:2px;\n fill-opacity:1.0;\n}\n\n\n.vis-timeline .vis-legend-background {\n stroke-width:1px;\n fill-opacity:0.9;\n fill: #ffffff;\n stroke: #c2c2c2;\n}\n\n\n.vis-timeline .vis-outline {\n stroke-width:1px;\n fill-opacity:1;\n fill: #ffffff;\n stroke: #e5e5e5;\n}\n\n.vis-timeline .vis-icon-fill {\n fill-opacity:0.3;\n stroke: none;\n}\n");VD("\n.vis-timeline {\n position: relative;\n border: 1px solid #bfbfbf;\n overflow: hidden;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-loading-screen {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}");VD('/* override some bootstrap styles screwing up the timelines css */\n\n.vis [class*="span"] {\n min-height: 0;\n width: auto;\n}\n');var mN=function(){function e(){xc(this,e)}return Tc(e,[{key:"_create",value:function(e){var t,n,r,i=this;this.dom={},this.dom.container=e,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",(function(){!0===i.initialDrawDone&&i._redraw()})),this.on("rangechanged",(function(){i.initialRangeChangeDone||(i.initialRangeChangeDone=!0)})),this.on("touch",Gd(t=this._onTouch).call(t,this)),this.on("panmove",Gd(n=this._onDrag).call(n,this));var o=this;this._origRedraw=Gd(r=this._redraw).call(r,this),this._redraw=XO.throttle(this._origRedraw),this.on("_change",(function(e){o.itemSet&&o.itemSet.initialItemSetDrawn&&e&&1==e.queue?o._redraw():o._origRedraw()})),this.hammer=new HD(this.dom.root);var a=this.hammer.get("pinch").set({enable:!0});a&&function(e){e.getTouchAction=function(){return["pan-y"]}}(a),this.hammer.get("pan").set({threshold:5,direction:HD.DIRECTION_ALL}),this.timelineListeners={};var s,u,l=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function c(e){this.isActive()&&this.emit("mousewheel",e);var t=0,n=0;if("detail"in e&&(n=-1*e.detail),"wheelDelta"in e&&(n=e.wheelDelta),"wheelDeltaY"in e&&(n=e.wheelDeltaY),"wheelDeltaX"in e&&(t=-1*e.wheelDeltaX),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=-1*n,n=0),"deltaY"in e&&(n=-1*e.deltaY),"deltaX"in e&&(t=e.deltaX),e.deltaMode&&(1===e.deltaMode?(t*=40,n*=40):(t*=40,n*=800)),this.options.preferZoom){if(!this.options.zoomKey||e[this.options.zoomKey])return}else if(this.options.zoomKey&&e[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll)if(this.options.verticalScroll&&Math.abs(n)>=Math.abs(t)){var r=this.props.scrollTop,i=r+n;if(this.isActive())this._setScrollTop(i)!==r&&(this._redraw(),this.emit("scroll",e),e.preventDefault())}else if(this.options.horizontalScroll){var o=(Math.abs(t)>=Math.abs(n)?t:n)/120*(this.range.end-this.range.start)/20,a=this.range.start+o,s=this.range.end+o,u={animation:!1,byUser:!0,event:e};this.range.setRange(a,s,u),e.preventDefault()}}uh(l).call(l,(function(e){var t=function(t){o.isActive()&&o.emit(e,t)};o.hammer.on(e,t),o.timelineListeners[e]=t})),YD(this.hammer,(function(e){o.emit("touch",e)})),s=this.hammer,(u=function(e){o.emit("release",e)}).inputHandler=function(e){e.isFinal&&u(e)},s.on("hammer.input",u.inputHandler);var f="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function d(e){if(o.options.verticalScroll&&(e.preventDefault(),o.isActive())){var t=-e.target.scrollTop;o._setScrollTop(t),o._redraw(),o.emit("scrollSide",e)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(f,Gd(c).call(c,this),!1),this.dom.top.addEventListener(f,Gd(c).call(c,this),!1),this.dom.bottom.addEventListener(f,Gd(c).call(c,this),!1),this.dom.left.parentNode.addEventListener("scroll",Gd(d).call(d,this)),this.dom.right.parentNode.addEventListener("scroll",Gd(d).call(d,this));var h=!1;function p(e){var t;if(e.preventDefault&&(o.emit("dragover",o.getEventProperties(e)),e.preventDefault()),zm(t=e.target.className).call(t,"timeline")>-1&&!h)return e.dataTransfer.dropEffect="move",h=!0,!1}function m(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation();try{var t=JSON.parse(e.dataTransfer.getData("text"));if(!t||!t.content)return}catch(n){return!1}return h=!1,e.center={x:e.clientX,y:e.clientY},"item"!==t.target?o.itemSet._onAddItem(e):o.itemSet._onDropObjectOnItem(e),o.emit("drop",o.getEventProperties(e)),!1}if(this.dom.center.addEventListener("dragover",Gd(p).call(p,this),!1),this.dom.center.addEventListener("drop",Gd(m).call(m,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!e)throw new Error("No container provided");e.appendChild(this.dom.root),e.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(e){var t;if(e){if(XO.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,e),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==Wf(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in e&&("string"===typeof e.orientation?this.options.orientation={item:e.orientation,axis:e.orientation}:"object"===Wf(e.orientation)&&("item"in e.orientation&&(this.options.orientation.item=e.orientation.item),"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new GD(this.body);n.setOptions=function(e){var t=e?XO.extend({},e):{};t.orientation="top",GD.prototype.setOptions.call(n,t)},this.components.push(n)}}else if(this.timeAxis2){var r,i,o=zm(r=this.components).call(r,this.timeAxis2);if(-1!==o)Wh(i=this.components).call(i,o,1);this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&xD(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new QD(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(uh(t=this.components).call(t,(function(t){return t.setOptions(e)})),"configure"in e){var a;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);var s=XO.deepExtend({},this.options);uh(a=this.components).call(a,(function(e){XO.deepExtend(s,e.options)})),this.configurator.setModuleOptions({global:s})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var e;for(var t in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(t)&&delete this.timelineListeners[t];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,uh(e=this.components).call(e,(function(e){return e.destroy()})),this.body=null}},{key:"setCustomTime",value:function(e,t){var n,r=Yp(n=this.customTimes).call(n,(function(e){return t===e.options.id}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(Sv(t)));r.length>0&&r[0].setCustomTime(e)}},{key:"getCustomTime",value:function(e){var t,n=Yp(t=this.customTimes).call(t,(function(t){return t.options.id===e}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(Sv(e)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(e,t,n){var r,i=Yp(r=this.customTimes).call(r,(function(e){return e.options.id===t}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(Sv(t)));i.length>0&&i[0].setCustomMarker(e,n)}},{key:"setCustomTimeTitle",value:function(e,t){var n,r=Yp(n=this.customTimes).call(n,(function(e){return e.options.id===t}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(Sv(t)));if(r.length>0)return r[0].setCustomTitle(e)}},{key:"getEventProperties",value:function(e){return{event:e}}},{key:"addCustomTime",value:function(e,t){var n,r=void 0!==e?XO.convert(e,"Date"):new Date,i=TE(n=this.customTimes).call(n,(function(e){return e.options.id===t}));if(i)throw new Error("A custom time with id ".concat(Sv(t)," already exists"));var o=new pN(this.body,XO.extend({},this.options,{time:r,id:t,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(o),this.components.push(o),this._redraw(),t}},{key:"removeCustomTime",value:function(e){var t,n=this,r=Yp(t=this.customTimes).call(t,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(Sv(e)));uh(r).call(r,(function(e){var t,r,i,o;Wh(t=n.customTimes).call(t,zm(r=n.customTimes).call(r,e),1),Wh(i=n.components).call(i,zm(o=n.components).call(o,e),1),e.destroy()}))}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(e){return this.time=e,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(e,t){var n=this.getDataRange();if(null!==n.min||null!==n.max){var r=n.max-n.min,i=new Date(n.min.valueOf()-.01*r),o=new Date(n.max.valueOf()+.01*r),a=!e||void 0===e.animation||e.animation;this.range.setRange(i,o,{animation:a},t)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(e,t,n,r){var i,o;"function"==typeof arguments[2]&&(r=arguments[2],n={}),1==arguments.length?(i=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:i})):2==arguments.length&&"function"==typeof arguments[1]?(r=arguments[1],i=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:i},r)):(i=!n||void 0===n.animation||n.animation,this.range.setRange(e,t,{animation:i},r))}},{key:"moveTo",value:function(e,t,n){"function"==typeof arguments[1]&&(n=arguments[1],t={});var r=this.range.end-this.range.start,i=XO.convert(e,"Date").valueOf(),o=i-r/2,a=i+r/2,s=!t||void 0===t.animation||t.animation;this.range.setRange(o,a,{animation:s},n)}},{key:"getWindow",value:function(){var e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}}},{key:"zoomIn",value:function(e,t,n){if(!(!e||e<0||e>1)){"function"==typeof arguments[1]&&(n=arguments[1],t={});var r=this.getWindow(),i=r.start.valueOf(),o=r.end.valueOf(),a=o-i,s=a/(1+e),u=(a-s)/2,l=i+u,c=o-u;this.setWindow(l,c,t,n)}}},{key:"zoomOut",value:function(e,t,n){if(!(!e||e<0||e>1)){"function"==typeof arguments[1]&&(n=arguments[1],t={});var r=this.getWindow(),i=r.start.valueOf(),o=r.end.valueOf(),a=o-i,s=i-a*e/2,u=o+a*e/2;this.setWindow(s,u,t,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var e;this.redrawCount++;var t=this.dom;if(t&&t.container&&0!=t.root.offsetWidth){var n=!1,r=this.options,i=this.props;_D(this.options.moment,this.body,this.options.hiddenDates),"top"==r.orientation?(XO.addClassName(t.root,"vis-top"),XO.removeClassName(t.root,"vis-bottom")):(XO.removeClassName(t.root,"vis-top"),XO.addClassName(t.root,"vis-bottom")),r.rtl?(XO.addClassName(t.root,"vis-rtl"),XO.removeClassName(t.root,"vis-ltr")):(XO.addClassName(t.root,"vis-ltr"),XO.removeClassName(t.root,"vis-rtl")),t.root.style.maxHeight=XO.option.asSize(r.maxHeight,""),t.root.style.minHeight=XO.option.asSize(r.minHeight,""),t.root.style.width=XO.option.asSize(r.width,"");var o=t.root.offsetWidth;i.border.left=1,i.border.right=1,i.border.top=1,i.border.bottom=1,i.center.height=t.center.offsetHeight,i.left.height=t.left.offsetHeight,i.right.height=t.right.offsetHeight,i.top.height=t.top.clientHeight||-i.border.top,i.bottom.height=Math.round(t.bottom.getBoundingClientRect().height)||t.bottom.clientHeight||-i.border.bottom;var a=Math.max(i.left.height,i.center.height,i.right.height),s=i.top.height+a+i.bottom.height+i.border.top+i.border.bottom;t.root.style.height=XO.option.asSize(r.height,"".concat(s,"px")),i.root.height=t.root.offsetHeight,i.background.height=i.root.height;var u=i.root.height-i.top.height-i.bottom.height;i.centerContainer.height=u,i.leftContainer.height=u,i.rightContainer.height=i.leftContainer.height,i.root.width=o,i.background.width=i.root.width,this.initialDrawDone||(i.scrollbarWidth=XO.getScrollBarWidth());var l=t.leftContainer.clientWidth,c=t.rightContainer.clientWidth;r.verticalScroll?r.rtl?(i.left.width=l||-i.border.left,i.right.width=c+i.scrollbarWidth||-i.border.right):(i.left.width=l+i.scrollbarWidth||-i.border.left,i.right.width=c||-i.border.right):(i.left.width=l||-i.border.left,i.right.width=c||-i.border.right),this._setDOM();var f=this._updateScrollTop();"top"!=r.orientation.item&&(f+=Math.max(i.centerContainer.height-i.center.height-i.border.top-i.border.bottom,0)),t.center.style.transform="translateY(".concat(f,"px)");var d=0==i.scrollTop?"hidden":"",h=i.scrollTop==i.scrollTopMin?"hidden":"";t.shadowTop.style.visibility=d,t.shadowBottom.style.visibility=h,t.shadowTopLeft.style.visibility=d,t.shadowBottomLeft.style.visibility=h,t.shadowTopRight.style.visibility=d,t.shadowBottomRight.style.visibility=h,r.verticalScroll&&(t.rightContainer.className="vis-panel vis-right vis-vertical-scroll",t.leftContainer.className="vis-panel vis-left vis-vertical-scroll",t.shadowTopRight.style.visibility="hidden",t.shadowBottomRight.style.visibility="hidden",t.shadowTopLeft.style.visibility="hidden",t.shadowBottomLeft.style.visibility="hidden",t.left.style.top="0px",t.right.style.top="0px"),(!r.verticalScroll||i.center.height<i.centerContainer.height)&&(t.left.style.top="".concat(f,"px"),t.right.style.top="".concat(f,"px"),t.rightContainer.className=t.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),t.leftContainer.className=t.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),i.left.width=l||-i.border.left,i.right.width=c||-i.border.right,this._setDOM());var p=i.center.height>i.centerContainer.height;this.hammer.get("pan").set({direction:p?HD.DIRECTION_ALL:HD.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),uh(e=this.components).call(e,(function(e){n=e.redraw()||n}));if(n){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var e=this.props,t=this.dom;e.leftContainer.width=e.left.width,e.rightContainer.width=e.right.width;var n=e.root.width-e.left.width-e.right.width;e.center.width=n,e.centerContainer.width=n,e.top.width=n,e.bottom.width=n,t.background.style.height="".concat(e.background.height,"px"),t.backgroundVertical.style.height="".concat(e.background.height,"px"),t.backgroundHorizontal.style.height="".concat(e.centerContainer.height,"px"),t.centerContainer.style.height="".concat(e.centerContainer.height,"px"),t.leftContainer.style.height="".concat(e.leftContainer.height,"px"),t.rightContainer.style.height="".concat(e.rightContainer.height,"px"),t.background.style.width="".concat(e.background.width,"px"),t.backgroundVertical.style.width="".concat(e.centerContainer.width,"px"),t.backgroundHorizontal.style.width="".concat(e.background.width,"px"),t.centerContainer.style.width="".concat(e.center.width,"px"),t.top.style.width="".concat(e.top.width,"px"),t.bottom.style.width="".concat(e.bottom.width,"px"),t.background.style.left="0",t.background.style.top="0",t.backgroundVertical.style.left="".concat(e.left.width+e.border.left,"px"),t.backgroundVertical.style.top="0",t.backgroundHorizontal.style.left="0",t.backgroundHorizontal.style.top="".concat(e.top.height,"px"),t.centerContainer.style.left="".concat(e.left.width,"px"),t.centerContainer.style.top="".concat(e.top.height,"px"),t.leftContainer.style.left="0",t.leftContainer.style.top="".concat(e.top.height,"px"),t.rightContainer.style.left="".concat(e.left.width+e.center.width,"px"),t.rightContainer.style.top="".concat(e.top.height,"px"),t.top.style.left="".concat(e.left.width,"px"),t.top.style.top="0",t.bottom.style.left="".concat(e.left.width,"px"),t.bottom.style.top="".concat(e.top.height+e.centerContainer.height,"px"),t.center.style.left="0",t.left.style.left="0",t.right.style.left="0"}},{key:"setCurrentTime",value:function(e){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(e){return TD(this,e,this.props.center.width)}},{key:"_toGlobalTime",value:function(e){return TD(this,e,this.props.root.width)}},{key:"_toScreen",value:function(e){return MD(this,e,this.props.center.width)}},{key:"_toGlobalScreen",value:function(e){return MD(this,e,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var e=this;this._stopAutoResize(),this._onResize=function(){if(1==e.options.autoResize){if(e.dom.root){var t=e.dom.root.offsetHeight,n=e.dom.root.offsetWidth;n==e.props.lastWidth&&t==e.props.lastHeight||(e.props.lastWidth=n,e.props.lastHeight=t,e.props.scrollbarWidth=XO.getScrollBarWidth(),e.body.emitter.emit("_change"))}}else e._stopAutoResize()},XO.addEventListener(window,"resize",this._onResize),e.dom.root&&(e.props.lastWidth=e.dom.root.offsetWidth,e.props.lastHeight=e.dom.root.offsetHeight),this.watchTimer=ZD(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(XO.removeEventListener(window,"resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(e){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(e){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(e){if(e&&this.touch.allowDragging){var t=e.deltaY,n=this._getScrollTop(),r=this._setScrollTop(this.touch.initialScrollTop+t);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),r!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(e){return this.props.scrollTop=e,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var e=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return e!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=e-this.props.scrollTopMin),this.props.scrollTopMin=e),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<e&&(this.props.scrollTop=e),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),e}();function vN(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}Jv(mN.prototype);var gN=function(e){Aw(n,e);var t=vN(n);function n(e,r){var i,o;xc(this,n),(o=t.call(this)).body=e,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:RC,locales:dN,locale:"en"},o.options=XO.extend({},o.defaultOptions),o.setOptions(r),o.options.locales=XO.extend({},dN,o.options.locales);var a=o.defaultOptions.locales[o.defaultOptions.locale];return uh(i=wd(o.options.locales)).call(i,(function(e){o.options.locales[e]=XO.extend({},a,o.options.locales[e])})),o.offset=0,o._create(),o}return Tc(n,[{key:"_create",value:function(){var e=document.createElement("div");e.className="vis-current-time",e.style.position="absolute",e.style.top="0px",e.style.height="100%",this.bar=e}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(e){e&&XO.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,e)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var e,t,n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar),this.start());var r=this.options.moment(Ed()+this.offset);this.options.alignCurrentTime&&(r=r.startOf(this.options.alignCurrentTime));var i=this.body.util.toScreen(r),o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en);var a=Jf(e=Jf(t="".concat(o.current," ")).call(t,o.time,": ")).call(e,r.format("dddd, MMMM Do YYYY, H:mm:ss"));a=a.charAt(0).toUpperCase()+a.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*i,"px)"):this.bar.style.transform="translateX(".concat(i,"px)"),this.bar.title=a}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var e=this;!function t(){e.stop();var n=1/e.body.range.conversion(e.body.domProps.center.width).scale/10;n<30&&(n=30),n>1e3&&(n=1e3),e.redraw(),e.body.emitter.emit("currentTimeTick"),e.currentTimeTimer=Lv(t,n)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(e){var t=XO.convert(e,"Date").valueOf(),n=Ed();this.offset=t-n,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(Ed()+this.offset)}}]),n}(uD),yN={exports:{}},bN=Fr,wN=cu.find,xN="find",_N=!0;xN in[]&&Array(1).find((function(){_N=!1})),bN({target:"Array",proto:!0,forced:_N},{find:function(e){return wN(this,e,arguments.length>1?arguments[1]:void 0)}});var kN=kf("Array").find,SN=xt,MN=kN,TN=Array.prototype,EN=function(e){var t=e.find;return e===TN||SN(TN,e)&&t===TN.find?MN:t},CN=EN;!function(e){e.exports=CN}(yN);var ON=o(yN.exports),DN={exports:{}},NN=Fr,jN=cu.findIndex,AN="findIndex",PN=!0;AN in[]&&Array(1).findIndex((function(){PN=!1})),NN({target:"Array",proto:!0,forced:PN},{findIndex:function(e){return jN(this,e,arguments.length>1?arguments[1]:void 0)}});var RN=kf("Array").findIndex,IN=xt,FN=RN,LN=Array.prototype,zN=function(e){var t=e.findIndex;return e===LN||IN(LN,e)&&t===LN.findIndex?FN:t},BN=zN;!function(e){e.exports=BN}(DN);var ZN=o(DN.exports);function WN(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return HN(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HN(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function HN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var YN=.001;function UN(e){gE(e).call(e,(function(e,t){return e.data.start-t.data.start}))}function VN(e){gE(e).call(e,(function(e,t){return("end"in e.data?e.data.end:e.data.start)-("end"in t.data?t.data.end:t.data.start)}))}function qN(e,t,n,r){return null===KN(e,t.item,!1,(function(e){return e.stack&&(n||null===e.top)}),(function(e){return e.stack}),(function(e){return t.axis}),r)}function GN(e,t,n){var r=KN(e,t.item,!1,(function(e){return e.stack}),(function(e){return!0}),(function(e){return e.baseTop}));n.height=r-n.top+.5*t.item.vertical}function XN(e,t,n,r){for(var i=0;i<e.length;i++)if(void 0==e[i].data.subgroup)e[i].top=t.item.vertical;else if(void 0!==e[i].data.subgroup&&r){var o=0;for(var a in n)n.hasOwnProperty(a)&&1==n[a].visible&&n[a].index<n[e[i].data.subgroup].index&&(o+=n[a].height,n[e[i].data.subgroup].top=o);e[i].top=o+.5*t.item.vertical}r||$N(e,t,n)}function $N(e,t,n){var r;KN(gE(r=tm(n)).call(r,(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0})),{vertical:0},!0,(function(e){return!0}),(function(e){return!0}),(function(e){return 0}));for(var i=0;i<e.length;i++)void 0!==e[i].data.subgroup&&(e[i].top=n[e[i].data.subgroup].top+.5*t.item.vertical)}function QN(e,t,n){var r=!1,i=[];for(var o in n)n[o].hasOwnProperty("index")?i[n[o].index]=o:i.push(o);for(var a=0;a<i.length;a++)if(o=i[a],n.hasOwnProperty(o)){for(var s in r=r||n[o].stack,n[o].top=0,n)n[s].visible&&n[o].index>n[s].index&&(n[o].top+=n[s].height);for(var u=e[o],l=0;l<u.length;l++)void 0!==u[l].data.subgroup&&(u[l].top=n[u[l].data.subgroup].top+.5*t.item.vertical,n[o].stack&&(u[l].baseTop=u[l].top));r&&n[o].stack&&GN(e[o],t,n[o])}}function KN(e,t,n,r,o,a,s){var u=function(e){return e.start},l=function(e){return e.end};if(!n){var c=!(!e[0]||!e[0].options.rtl);u=c?function(e){return e.right}:function(e){return e.left},l=function(e){return u(e)+e.width+t.horizontal}}var f,d=[],h=[],p=null,m=0,v=WN(e);try{for(v.s();!(f=v.n()).done;){var g=f.value;r(g)?d.push(g):o(g)&&function(){var e=u(g);null!==p&&e<p-YN&&(m=0),p=e,m=JN(h,(function(t){return u(t)-YN>e}),m),Wh(h).call(h,m,0,g),m++}()}}catch(S){v.e(S)}finally{v.f()}p=null;var y=null;m=0;for(var b=0,w=0,x=0,_=function(){var e,n,r=d.shift();r.top=a(r);var c=u(r),f=l(r);null!==p&&c<p-YN&&(b=0,w=0,m=0,y=null),p=c,b=JN(h,(function(e){return c<l(e)-YN}),b),(null===y||y<f-YN)&&(w=JN(h,(function(e){return f<u(e)-YN}),Math.max(b,w))),null!==y&&y-YN>f&&(w=function(e,t,n,r){n||(n=0);r||(r=e.length);for(i=r-1;i>=n;i--)if(t(e[i]))return i;return n-1}(h,(function(e){return f+YN>=u(e)}),b,horizontalOVerlapEndIndex)+1);for(var v,g,_,k=gE(e=Yp(n=td(h).call(h,b,w)).call(n,(function(e){return c<l(e)-YN&&f-YN>u(e)}))).call(e,(function(e,t){return e.top-t.top})),S=0;S<k.length;S++){var M=k[S];g=M,_=t,(v=r).top-_.vertical+YN<g.top+g.height&&v.top+v.height+_.vertical-YN>g.top&&(r.top=M.top+M.height+t.vertical)}o(r)&&(m=JN(h,(function(e){return u(e)-YN>c}),m),Wh(h).call(h,m,0,r),m++);var T=r.top+r.height;if(T>x&&(x=T),s&&s())return{v:null}};d.length>0;){var k=_();if("object"===Wf(k))return k.v}return x}function JN(e,t,n){var r;n||(n=0);var i=ZN(r=td(e).call(e,n)).call(r,t);return-1===i?e.length:i+n}var ej=Object.freeze({__proto__:null,orderByStart:UN,orderByEnd:VN,stack:qN,substack:GN,nostack:XN,stackSubgroups:$N,stackSubgroupsWithInnerStack:QN}),tj="__background__",nj=function(){function e(t,n,r){var i=this;if(xc(this,e),this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=n&&n.subgroupOrder,this.itemSet=r,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,0==n.showNested?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack)if("boolean"===typeof n.subgroupStack)this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var o in n.subgroupStack)this.subgroupStack[o]=n.subgroupStack[o],this.doInnerStack=this.doInnerStack||n.subgroupStack[o];n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=r.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var a=function(){i.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",a),this._disposeCallbacks.push((function(){i.itemSet.body.emitter.off("checkRangedItems",a)})),this._create(),this.setData(n)}return Tc(e,[{key:"_create",value:function(){var e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;var t=document.createElement("div");t.className="vis-inner",e.appendChild(t),this.dom.inner=t;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(e){if(!this.itemSet.groupTouchParams.isDragging){var t,n,r;if(e&&e.subgroupVisibility)for(var i in e.subgroupVisibility)this.subgroupVisibility[i]=e.subgroupVisibility[i];if(this.itemSet.options&&this.itemSet.options.groupTemplate)t=(n=Gd(r=this.itemSet.options.groupTemplate).call(r,this))(e,this.dom.inner);else t=e&&e.content;if(t instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(t)}else t instanceof Object&&t.isReactComponent||(t instanceof Object?n(e,this.dom.inner):this.dom.inner.innerHTML=void 0!==t&&null!==t?XO.xss(t):XO.xss(this.groupId||""));this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?XO.removeClassName(this.dom.inner,"vis-hidden"):XO.addClassName(this.dom.inner,"vis-hidden"),e&&e.nestedGroups?(this.nestedGroups&&this.nestedGroups==e.nestedGroups||(this.nestedGroups=e.nestedGroups),void 0===e.showNested&&void 0!==this.showNested||(0==e.showNested?this.showNested=!1:this.showNested=!0),XO.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(XO.removeClassName(this.dom.label,"collapsed"),XO.addClassName(this.dom.label,"expanded")):(XO.removeClassName(this.dom.label,"expanded"),XO.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,XO.removeClassName(this.dom.label,"collapsed"),XO.removeClassName(this.dom.label,"expanded"),XO.removeClassName(this.dom.label,"vis-nesting-group")),e&&(e.treeLevel||e.nestedInGroup)?(XO.addClassName(this.dom.label,"vis-nested-group"),e.treeLevel?XO.addClassName(this.dom.label,"vis-group-level-"+e.treeLevel):XO.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):XO.addClassName(this.dom.label,"vis-group-level-0");var o=e&&e.className||null;o!=this.className&&(this.className&&(XO.removeClassName(this.dom.label,this.className),XO.removeClassName(this.dom.foreground,this.className),XO.removeClassName(this.dom.background,this.className),XO.removeClassName(this.dom.axis,this.className)),XO.addClassName(this.dom.label,o),XO.addClassName(this.dom.foreground,o),XO.addClassName(this.dom.background,o),XO.addClassName(this.dom.axis,o),this.className=o),this.style&&(XO.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(XO.addCssText(this.dom.label,e.style),this.style=e.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var e=this.dom.marker.clientHeight;if(e!=this.lastMarkerHeight){this.lastMarkerHeight=e;var t={},n=0;if(uh(XO).call(XO,this.items,(function(e,r){if(e.dirty=!0,e.displayed){t[r]=e.redraw(!0),n=t[r].length}})),n>0)for(var r=function(e){uh(XO).call(XO,t,(function(t){t[e]()}))},i=0;i<n;i++)r(i);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var e=this.dom.foreground,t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth;this.top=t,this.right=n,this.width=r}},{key:"_shouldBailItemsRedraw",value:function(){var e=this,t=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:t&&t.timeoutMs,userBailFunction:t&&t.callback,shouldBailStackItems:this.shouldBailStackItems},r=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(Ed()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&null==this.itemSet.userContinueNotBail?n.userBailFunction((function(t){e.itemSet.userContinueNotBail=t,r=!t})):r=0==e.itemSet.userContinueNotBail)}return r}},{key:"_redrawItems",value:function(e,t,n,r){var i=this;if(e||this.stackDirty||this.isVisible&&!t){var o,a,s,u,l,c,f={byEnd:Yp(o=this.orderedItems.byEnd).call(o,(function(e){return!e.isCluster})),byStart:Yp(a=this.orderedItems.byStart).call(a,(function(e){return!e.isCluster}))},d={byEnd:Hf(new CT(Yp(s=md(u=this.orderedItems.byEnd).call(u,(function(e){return e.cluster}))).call(s,(function(e){return!!e})))),byStart:Hf(new CT(Yp(l=md(c=this.orderedItems.byStart).call(c,(function(e){return e.cluster}))).call(l,(function(e){return!!e}))))},h=function(){var e,t,n,o=i._updateItemsInRange(f,Yp(e=i.visibleItems).call(e,(function(e){return!e.isCluster})),r),a=i._updateClustersInRange(d,Yp(t=i.visibleItems).call(t,(function(e){return e.isCluster})),r);return Jf(n=[]).call(n,Hf(o),Hf(a))},p=function(e){var t={},n=function(n){var r,o=Yp(r=i.visibleItems).call(r,(function(e){return e.data.subgroup===n}));t[n]=e?gE(o).call(o,(function(t,n){return e(t.data,n.data)})):o};for(var r in i.subgroups)n(r);return t};if("function"===typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){QN(p(this.itemSet.options.order),n,this.subgroups),this.visibleItems=h(),this._updateSubGroupHeights(n)}else{var v,g,y,b;this.visibleItems=h(),this._updateSubGroupHeights(n);var w=gE(v=Yp(g=td(y=this.visibleItems).call(y)).call(g,(function(e){return e.isCluster||!e.isCluster&&!e.cluster}))).call(v,(function(e,t){return m.itemSet.options.order(e.data,t.data)}));this.shouldBailStackItems=qN(w,n,!0,Gd(b=this._shouldBailItemsRedraw).call(b,this))}}else{var x;if(this.visibleItems=h(),this._updateSubGroupHeights(n),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups)QN(p(),n,this.subgroups);else this.shouldBailStackItems=qN(this.visibleItems,n,!0,Gd(x=this._shouldBailItemsRedraw).call(x,this));else XN(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups)}for(var _=0;_<this.visibleItems.length;_++)this.visibleItems[_].repositionX(),void 0!==this.subgroupVisibility[this.visibleItems[_].data.subgroup]&&(this.subgroupVisibility[this.visibleItems[_].data.subgroup]||this.visibleItems[_].hide());this.itemSet.options.cluster&&uh(XO).call(XO,this.items,(function(e){e.cluster&&e.displayed&&e.hide()})),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(e,t){e=XO.updateProperty(this,"height",t)||e;var n=this.dom.inner.clientWidth,r=this.dom.inner.clientHeight;return e=XO.updateProperty(this.props.label,"width",n)||e,e=XO.updateProperty(this.props.label,"height",r)||e}},{key:"_applyGroupHeight",value:function(e){this.dom.background.style.height="".concat(e,"px"),this.dom.foreground.style.height="".concat(e,"px"),this.dom.label.style.height="".concat(e,"px")}},{key:"_updateItemsVerticalPosition",value:function(e){for(var t=0,n=this.visibleItems.length;t<n;t++){var r=this.visibleItems[t];r.repositionY(e),this.isVisible||this.groupId==tj||r.displayed&&r.hide()}}},{key:"redraw",value:function(e,t,n,r){var i,o,a,s,u,l,c,f=this,d=!1,h=this.isVisible,p=[function(){n=f._didMarkerHeightChange.call(f)||n},Gd(i=this._updateSubGroupHeights).call(i,this,t),Gd(o=this._calculateGroupSizeAndPosition).call(o,this),function(){var n;f.isVisible=Gd(n=f._isGroupVisible).call(n,f)(e,t)},function(){var r;Gd(r=f._redrawItems).call(r,f)(n,h,t,e)},Gd(a=this._updateSubgroupsSizes).call(a,this),function(){var e;l=Gd(e=f._calculateHeight).call(e,f)(t)},Gd(s=this._calculateGroupSizeAndPosition).call(s,this),function(){var e;d=Gd(e=f._didResize).call(e,f)(d,l)},function(){var e;Gd(e=f._applyGroupHeight).call(e,f)(l)},function(){var e;Gd(e=f._updateItemsVerticalPosition).call(e,f)(t)},Gd(u=function(){return!f.isVisible&&f.height&&(d=!1),d}).call(u,this)];return r?p:(uh(p).call(p,(function(e){c=e()})),c)}},{key:"_updateSubGroupHeights",value:function(e){var t=this;if(wd(this.subgroups).length>0){var n=this;this._resetSubgroups(),uh(XO).call(XO,this.visibleItems,(function(r){void 0!==r.data.subgroup&&(n.subgroups[r.data.subgroup].height=Math.max(n.subgroups[r.data.subgroup].height,r.height+e.item.vertical),n.subgroups[r.data.subgroup].visible="undefined"===typeof t.subgroupVisibility[r.data.subgroup]||Boolean(t.subgroupVisibility[r.data.subgroup]))}))}}},{key:"_isGroupVisible",value:function(e,t){return this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+t.axis&&this.top+this.height+t.axis>=-e.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(e){var t,n;if((n="fixed"===this.heightMode?XO.toArray(this.items):this.visibleItems).length>0){var r=n[0].top,i=n[0].top+n[0].height;if(uh(XO).call(XO,n,(function(e){r=Math.min(r,e.top),i=Math.max(i,e.top+e.height)})),r>e.axis){var o=r-e.axis;i-=o,uh(XO).call(XO,n,(function(e){e.top-=o}))}t=Math.ceil(i+e.item.vertical/2),"fitItems"!==this.heightMode&&(t=Math.max(t,this.props.label.height))}else t=this.props.label.height;return t}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);var t=this.dom.foreground;t.parentNode&&t.parentNode.removeChild(t);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var r=this.dom.axis;r.parentNode&&r.parentNode.removeChild(r)}},{key:"add",value:function(e){var t;if(this.items[e.id]=e,e.setParent(this),this.stackDirty=!0,void 0!==e.data.subgroup&&(this._addToSubgroup(e),this.orderSubgroups()),!Op(t=this.visibleItems).call(t,e)){var n=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.data.subgroup;void 0!=t&&void 0===this.subgroups[t]&&(this.subgroups[t]={height:0,top:0,start:e.data.start,end:e.data.end||e.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[t]||!1},this.subgroupIndex++),new Date(e.data.start)<new Date(this.subgroups[t].start)&&(this.subgroups[t].start=e.data.start);var n=e.data.end||e.data.start;new Date(n)>new Date(this.subgroups[t].end)&&(this.subgroups[t].end=n),this.subgroups[t].items.push(e)}},{key:"_updateSubgroupsSizes",value:function(){var e=this;if(e.subgroups){var t=function(t){var n,r=e.subgroups[t].items[0].data.end||e.subgroups[t].items[0].data.start,i=e.subgroups[t].items[0].data.start,o=r-1;uh(n=e.subgroups[t].items).call(n,(function(e){new Date(e.data.start)<new Date(i)&&(i=e.data.start);var t=e.data.end||e.data.start;new Date(t)>new Date(o)&&(o=t)})),e.subgroups[t].start=i,e.subgroups[t].end=new Date(o-1)};for(var n in e.subgroups)t(n)}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var e=[];if("string"==typeof this.subgroupOrderer){for(var t in this.subgroups)e.push({subgroup:t,sortField:this.subgroups[t].items[0].data[this.subgroupOrderer]});gE(e).call(e,(function(e,t){return e.sortField-t.sortField}))}else if("function"==typeof this.subgroupOrderer){for(var n in this.subgroups)e.push(this.subgroups[n].items[0].data);gE(e).call(e,this.subgroupOrderer)}if(e.length>0)for(var r=0;r<e.length;r++)this.subgroups[e[r].subgroup].index=r}}},{key:"_resetSubgroups",value:function(){for(var e in this.subgroups)this.subgroups.hasOwnProperty(e)&&(this.subgroups[e].visible=!1,this.subgroups[e].height=0)}},{key:"remove",value:function(e){var t,n;delete this.items[e.id],e.setParent(null),this.stackDirty=!0;var r=zm(t=this.visibleItems).call(t,e);-1!=r&&Wh(n=this.visibleItems).call(n,r,1),void 0!==e.data.subgroup&&(this._removeFromSubgroup(e),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.data.subgroup;if(void 0!=t){var n=this.subgroups[t];if(n){var r,i,o=zm(r=n.items).call(r,e);if(o>=0)Wh(i=n.items).call(i,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[t]}}}},{key:"removeFromDataSet",value:function(e){this.itemSet.removeItem(e.id)}},{key:"order",value:function(){for(var e=XO.toArray(this.items),t=[],n=[],r=0;r<e.length;r++)void 0!==e[r].data.end&&n.push(e[r]),t.push(e[r]);this.orderedItems={byStart:t,byEnd:n},UN(this.orderedItems.byStart),VN(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(e,t,n){var r=[],i={};if(!this.isVisible&&this.groupId!=tj){for(var o=0;o<t.length;o++){var a=t[o];a.displayed&&a.hide()}return r}var s=(n.end-n.start)/4,u=n.start-s,l=n.end+s;if(t.length>0)for(var c=0;c<t.length;c++)this._checkIfVisibleWithReference(t[c],r,i,n);var f=XO.binarySearchCustom(e.byStart,(function(e){return e<u?-1:e<=l?0:1}),"data","start");if(this._traceVisible(f,e.byStart,r,i,(function(e){return e.data.start<u||e.data.start>l})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var d=0;d<e.byEnd.length;d++)this._checkIfVisibleWithReference(e.byEnd[d],r,i,n)}else{var h=XO.binarySearchCustom(e.byEnd,(function(e){var t=e.start;return e.end<u?-1:t<=l?0:1}),"data");this._traceVisible(h,e.byEnd,r,i,(function(e){return e.data.end<u||e.data.start>l}))}for(var p={},m=0,v=0;v<r.length;v++){var g=r[v];if(!g.displayed){p[v]=g.redraw(!0),m=p[v].length}}if(m>0)for(var y=function(e){uh(XO).call(XO,p,(function(t){t[e]()}))},b=0;b<m;b++)y(b);for(var w=0;w<r.length;w++)r[w].repositionX();return r}},{key:"_traceVisible",value:function(e,t,n,r,i){if(-1!=e){for(var o=e;o>=0;o--){var a=t[o];if(i(a))break;a.isCluster&&!a.hasItems()||a.cluster||void 0===r[a.id]&&(r[a.id]=!0,n.push(a))}for(var s=e+1;s<t.length;s++){var u=t[s];if(i(u))break;u.isCluster&&!u.hasItems()||u.cluster||void 0===r[u.id]&&(r[u.id]=!0,n.push(u))}}}},{key:"_checkIfVisible",value:function(e,t,n){e.isVisible(n)?(e.displayed||e.show(),e.repositionX(),t.push(e)):e.displayed&&e.hide()}},{key:"_checkIfVisibleWithReference",value:function(e,t,n,r){e.isVisible(r)?void 0===n[e.id]&&(n[e.id]=!0,t.push(e)):e.displayed&&e.hide()}},{key:"_updateClustersInRange",value:function(e,t,n){var r=[],i={};if(t.length>0)for(var o=0;o<t.length;o++)this._checkIfVisibleWithReference(t[o],r,i,n);for(var a=0;a<e.byStart.length;a++)this._checkIfVisibleWithReference(e.byStart[a],r,i,n);for(var s=0;s<e.byEnd.length;s++)this._checkIfVisibleWithReference(e.byEnd[s],r,i,n);for(var u={},l=0,c=0;c<r.length;c++){var f=r[c];if(!f.displayed){u[c]=f.redraw(!0),l=u[c].length}}if(l>0)for(var d=0;d<l;d++)uh(XO).call(XO,u,(function(e){e[d]()}));for(var h=0;h<r.length;h++)r[h].repositionX();return r}},{key:"changeSubgroup",value:function(e,t,n){this._removeFromSubgroup(e,t),this._addToSubgroup(e,n),this.orderSubgroups()}},{key:"dispose",value:function(){var e;for(this.hide();e=this._disposeCallbacks.pop();)e()}}]),e}();function rj(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}var ij=function(e){Aw(n,e);var t=rj(n);function n(e,r,i){var o;return xc(this,n),(o=t.call(this,e,r,i)).width=0,o.height=0,o.top=0,o.left=0,o}return Tc(n,[{key:"redraw",value:function(e,t,n){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var r=0,i=this.visibleItems.length;r<i;r++){this.visibleItems[r].repositionY(t)}return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),n}(nj);function oj(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return aj(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aj(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function aj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}VD('\n.vis-item {\n position: absolute;\n color: #1A1A1A;\n border-color: #97B0F8;\n border-width: 1px;\n background-color: #D5DDF6;\n display: inline-block;\n z-index: 1;\n /*overflow: hidden;*/\n}\n\n.vis-item.vis-selected {\n border-color: #FFC200;\n background-color: #FFF785;\n\n /* z-index must be higher than the z-index of custom time bar and current time bar */\n z-index: 2;\n}\n\n.vis-editable.vis-selected {\n cursor: move;\n}\n\n.vis-item.vis-point.vis-selected {\n background-color: #FFF785;\n}\n\n.vis-item.vis-box {\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-point {\n background: none;\n}\n\n.vis-item.vis-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis-item.vis-range {\n border-style: solid;\n border-radius: 2px;\n box-sizing: border-box;\n}\n\n.vis-item.vis-background {\n border: none;\n background-color: rgba(213, 221, 246, 0.4);\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n}\n\n.vis-item .vis-item-overflow {\n position: relative;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n overflow: hidden;\n}\n\n.vis-item-visible-frame {\n white-space: nowrap;\n}\n\n.vis-item.vis-range .vis-item-content {\n position: relative;\n display: inline-block;\n}\n\n.vis-item.vis-background .vis-item-content {\n position: absolute;\n display: inline-block;\n}\n\n.vis-item.vis-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item .vis-item-content {\n white-space: nowrap;\n box-sizing: border-box;\n padding: 5px;\n}\n\n.vis-item .vis-onUpdateTime-tooltip {\n position: absolute;\n background: #4f81bd;\n color: white;\n width: 200px;\n text-align: center;\n white-space: nowrap;\n padding: 5px;\n border-radius: 1px;\n transition: 0.4s;\n -o-transition: 0.4s;\n -moz-transition: 0.4s;\n -webkit-transition: 0.4s;\n}\n\n.vis-item .vis-delete, .vis-item .vis-delete-rtl {\n position: absolute;\n top: 0px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n padding: 0px 5px;\n cursor: pointer;\n\n -webkit-transition: background 0.2s linear;\n -moz-transition: background 0.2s linear;\n -ms-transition: background 0.2s linear;\n -o-transition: background 0.2s linear;\n transition: background 0.2s linear;\n}\n\n.vis-item .vis-delete {\n right: -24px;\n}\n\n.vis-item .vis-delete-rtl {\n left: -24px;\n}\n\n.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {\n content: "\\00D7"; /* MULTIPLICATION SIGN */\n color: red;\n font-family: arial, sans-serif;\n font-size: 22px;\n font-weight: bold;\n\n -webkit-transition: color 0.2s linear;\n -moz-transition: color 0.2s linear;\n -ms-transition: color 0.2s linear;\n -o-transition: color 0.2s linear;\n transition: color 0.2s linear;\n}\n\n.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {\n background: red;\n}\n\n.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {\n color: white;\n}\n\n.vis-item .vis-drag-center {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0px;\n cursor: move;\n}\n\n.vis-item.vis-range .vis-drag-left {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n left: -4px;\n\n cursor: w-resize;\n}\n\n.vis-item.vis-range .vis-drag-right {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n right: -4px;\n\n cursor: e-resize;\n}\n\n.vis-range.vis-item.vis-readonly .vis-drag-left,\n.vis-range.vis-item.vis-readonly .vis-drag-right {\n cursor: auto;\n}\n\n.vis-item.vis-cluster {\n vertical-align: center;\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-cluster-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item.vis-cluster-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}');var sj=function(){function e(t,n,r){var i,o=this;xc(this,e),this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=n||{},this.defaultOptions={locales:dN,locale:"en"},this.options=XO.extend({},this.defaultOptions,r),this.options.locales=XO.extend({},dN,this.options.locales);var a=this.defaultOptions.locales[this.defaultOptions.locale];uh(i=wd(this.options.locales)).call(i,(function(e){o.options.locales[e]=XO.extend({},a,o.options.locales[e])})),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=r&&r.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(t),this.editable=null,this._updateEditStatus()}return Tc(e,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(e){void 0!=e.group&&this.data.group!=e.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,e.group),this.setSelectability(e),this.parent&&(this.parent.stackDirty=!0),void 0!=e.subgroup&&this.data.subgroup!=e.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,e.subgroup),this.data=e,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(e){e&&(this.selectable="undefined"===typeof e.selectable||Boolean(e.selectable))}},{key:"setParent",value:function(e){this.displayed?(this.hide(),this.parent=e,this.parent&&this.show()):this.parent=e}},{key:"isVisible",value:function(e){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var e,t,n=this,r=document.createElement("div");r.className="vis-drag-center",r.dragCenterItem=this,this.hammerDragCenter=new HD(r),this.hammerDragCenter.on("tap",(function(e){n.parent.itemSet.body.emitter.emit("click",{event:e,item:n.id})})),this.hammerDragCenter.on("doubletap",(function(e){e.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:e,item:n.id})})),this.hammerDragCenter.on("panstart",(function(e){e.stopPropagation(),n.parent.itemSet._onDragStart(e)})),this.hammerDragCenter.on("panmove",Gd(e=n.parent.itemSet._onDrag).call(e,n.parent.itemSet)),this.hammerDragCenter.on("panend",Gd(t=n.parent.itemSet._onDragEnd).call(t,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(r,this.dom.dragLeft):this.dom.box.appendChild(r):this.dom.point&&this.dom.point.appendChild(r),this.dom.dragCenter=r}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(e){var t=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&t&&!this.dom.deleteButton){var n=this,r=document.createElement("div");this.options.rtl?r.className="vis-delete-rtl":r.className="vis-delete";var i=this.options.locales[this.options.locale];i||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en),r.title=i.deleteSelected,this.hammerDeleteButton=new HD(r).on("tap",(function(e){e.stopPropagation(),n.parent.removeFromDataSet(n)})),e.appendChild(r),this.dom.deleteButton=r}else this.selected&&t||!this.dom.deleteButton||(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(e){if(this.options.tooltipOnItemUpdateTime){var t=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&t&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",e.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var r,i,o=this.parent.itemSet.body.domProps.scrollTop;if(("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-o?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template)r=Gd(i=this.options.tooltipOnItemUpdateTime.template).call(i,this)(this.data);else r="start: ".concat(RC(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(r+="<br> end: ".concat(RC(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=XO.xss(r)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(e){var t,n,r,i,o,a,s=this._getItemData(),u=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];this.options.visibleFrameTemplate?(i=Gd(o=this.options.visibleFrameTemplate).call(o,this),r=XO.xss(i(s,u))):r="";if(u)if(r instanceof Object&&!(r instanceof Element))i(s,u);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(r)){if(r instanceof Element)u.innerHTML="",u.appendChild(r);else if(void 0!=r)u.innerHTML=XO.xss(r);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=r}this.options.template?t=(n=Gd(a=this.options.template).call(a,this))(s,e,this.data):t=this.data.content;if(t instanceof Object&&!(t instanceof Element))n(s,e);else if(this._contentToString(this.content)!==this._contentToString(t)){if(t instanceof Element)e.innerHTML="",e.appendChild(t);else if(void 0!=t)e.innerHTML=XO.xss(t);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.content=t}}},{key:"_updateDataAttributes",value:function(e){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var t=[];if(ad(this.options.dataAttributes))t=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;t=wd(this.data)}var n,r=oj(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.data[i];null!=o?e.setAttribute("data-".concat(i),o):e.removeAttribute("data-".concat(i))}}catch(a){r.e(a)}finally{r.f()}}}},{key:"_updateStyle",value:function(e){this.style&&(XO.removeCssText(e,this.style),this.style=null),this.data.style&&(XO.addCssText(e,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(e){return"string"===typeof e?e:e&&"outerHTML"in e?e.outerHTML:e}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"===typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===Wf(this.options.editable)&&(this.editable={},XO.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"===typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===Wf(this.data.editable)&&(this.editable={},XO.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){var e;return this.options.tooltip&&this.options.tooltip.template?Gd(e=this.options.tooltip.template).call(e,this)(this._getItemData(),this.data):this.data.title}}]),e}();function uj(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}sj.prototype.stack=!0;var lj=function(e){Aw(n,e);var t=uj(n);function n(e,r,i){var o;if(xc(this,n),(o=t.call(this,e,r,i)).props={dot:{width:0,height:0},line:{width:0,height:0}},e&&void 0==e.start)throw new Error('Property "start" missing in item '.concat(e));return o}return Tc(n,[{key:"isVisible",value:function(e){if(this.cluster)return!1;var t,n=this.data.align||this.options.align,r=this.width*e.getMillisecondsPerPixel();return t="right"==n?this.data.start.getTime()>e.start&&this.data.start.getTime()-r<e.end:"left"==n?this.data.start.getTime()+r>e.start&&this.data.start.getTime()<e.end:this.data.start.getTime()+r/2>e.start&&this.data.start.getTime()-r/2<e.end,t}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!t)throw new Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var e=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(t),this.dom.line.className="vis-item vis-line".concat(t),this.dom.dot.className="vis-item vis-dot".concat(t)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(e){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=e.dot.height,this.props.dot.width=e.dot.width,this.props.line.width=e.line.width,this.width=e.box.width,this.height=e.box.height,this.options.rtl?this.dom.box.style.right=e.previous.right:this.dom.box.style.left=e.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,u=[Gd(t=this._createDomElement).call(t,this),Gd(n=this._appendDomElement).call(n,this),Gd(r=this._updateDirtyDomComponents).call(r,this),function(){s.dirty&&(o=s._getDomComponentsSizes())},function(){var e;s.dirty&&Gd(e=s._updateDomComponentsSizes).call(e,s)(o)},Gd(i=this._repaintDomAdditionals).call(i,this)];return e?u:(uh(u).call(u,(function(e){a=e()})),a)}},{key:"show",value:function(e){if(!this.displayed)return this.redraw(e)}},{key:"hide",value:function(){if(this.displayed){var e=this.dom;e.box.remove?e.box.remove():e.box.parentNode&&e.box.parentNode.removeChild(e.box),e.line.remove?e.line.remove():e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.remove?e.dot.remove():e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var e=this.options.rtl,t=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t||void 0!==n){var o=i?-1*t:t;e.style.transform=void 0!==n?void 0!==t?Jf(r="translate(".concat(o,"px, ")).call(r,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(o,"px)")}};t(this.dom.box,this.boxX,this.boxY,e),t(this.dom.dot,this.dotX,this.dotY,e),t(this.dom.line,this.lineX,this.lineY,e)}},{key:"repositionX",value:function(){var e=this.conversion.toScreen(this.data.start),t=void 0===this.data.align?this.options.align:this.data.align,n=this.props.line.width,r=this.props.dot.width;"right"==t?(this.boxX=e-this.width,this.lineX=e-n,this.dotX=e-n/2-r/2):"left"==t?(this.boxX=e,this.lineX=e,this.dotX=e+n/2-r/2):(this.boxX=e-this.width/2,this.lineX=this.options.rtl?e-n:e-n/2,this.dotX=e-r/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var e=this.options.orientation.item,t=this.dom.line.style;if("top"==e){var n=this.parent.top+this.top+1;this.boxY=this.top||0,t.height="".concat(n,"px"),t.bottom="",t.top="0"}else{var r=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),t.height="".concat(r,"px"),t.top="",t.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),n}(sj);function cj(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}var fj=function(e){Aw(n,e);var t=cj(n);function n(e,r,i){var o;if(xc(this,n),(o=t.call(this,e,r,i)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},e&&void 0==e.start)throw new Error('Property "start" missing in item '.concat(e));return o}return Tc(n,[{key:"isVisible",value:function(e){if(this.cluster)return!1;var t=this.width*e.getMillisecondsPerPixel();return this.data.start.getTime()+t>e.start&&this.data.start<e.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var e=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(t),this.dom.dot.className="vis-item vis-dot".concat(t)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(e){this.props.dot.width=e.dot.width,this.props.dot.height=e.dot.height,this.props.content.height=e.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=e.point.width,this.height=e.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var t=this.props.dot.width,n=this.options.rtl?t/2:t/2*-1;this.dom.dot.style.transform="translateX(".concat(n,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,u=[Gd(t=this._createDomElement).call(t,this),Gd(n=this._appendDomElement).call(n,this),Gd(r=this._updateDirtyDomComponents).call(r,this),function(){s.dirty&&(o=s._getDomComponentsSizes())},function(){var e;s.dirty&&Gd(e=s._updateDomComponentsSizes).call(e,s)(o)},Gd(i=this._repaintDomAdditionals).call(i,this)];return e?u:(uh(u).call(u,(function(e){a=e()})),a)}},{key:"repositionXY",value:function(){var e=this.options.rtl,t=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t||void 0!==n){var o=i?-1*t:t;e.style.transform=void 0!==n?void 0!==t?Jf(r="translate(".concat(o,"px, ")).call(r,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(o,"px)")}};t(this.dom.point,this.pointX,this.pointY,e)}},{key:"show",value:function(e){if(!this.displayed)return this.redraw(e)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var e=this.conversion.toScreen(this.data.start);this.pointX=e,this.options.rtl?this.right=e-this.props.dot.width:this.left=e-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var e=this.options.orientation.item;this.pointY="top"==e?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),n}(sj);function dj(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}var hj=function(e){Aw(n,e);var t=dj(n);function n(e,r,i){var o;if(xc(this,n),(o=t.call(this,e,r,i)).props={content:{width:0}},o.overflow=!1,e){if(void 0==e.start)throw new Error('Property "start" missing in item '.concat(e.id));if(void 0==e.end)throw new Error('Property "end" missing in item '.concat(e.id))}return o}return Tc(n,[{key:"isVisible",value:function(e){return!this.cluster&&(this.data.start<e.end&&this.data.end>e.start)}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var e=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+t,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(e){this.props.content.width=e.content.width,this.height=e.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,u=[Gd(t=this._createDomElement).call(t,this),Gd(n=this._appendDomElement).call(n,this),Gd(r=this._updateDirtyDomComponents).call(r,this),function(){var e;s.dirty&&(o=Gd(e=s._getDomComponentsSizes).call(e,s)())},function(){var e;s.dirty&&Gd(e=s._updateDomComponentsSizes).call(e,s)(o)},Gd(i=this._repaintDomAdditionals).call(i,this)];return e?u:(uh(u).call(u,(function(e){a=e()})),a)}},{key:"show",value:function(e){if(!this.displayed)return this.redraw(e)}},{key:"hide",value:function(){if(this.displayed){var e=this.dom.box;e.parentNode&&e.parentNode.removeChild(e),this.displayed=!1}}},{key:"repositionX",value:function(e){var t,n,r=this.parent.width,i=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end),a=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==e&&!0!==e||(i<-r&&(i=-r),o>2*r&&(o=2*r));var s=Math.max(Math.round(1e3*(o-i))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=i:this.left=i,this.width=s+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=i:this.left=i,this.width=s,n=Math.min(o-i,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(s,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),a){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var u=-1*Math.max(s-n,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(s-n,0),"px)");break;case"center":if(this.options.rtl){var l=-1*Math.max((s-n)/2,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((s-n)/2,0),"px)");break;default:if(t=this.overflow?o>0?Math.max(-i,0):-n:i<0?-i:0,this.options.rtl){var c=-1*t;this.dom.content.style.transform="translateX(".concat(c,"px)")}else this.dom.content.style.transform="translateX(".concat(t,"px)")}}},{key:"repositionY",value:function(){var e=this.options.orientation.item,t=this.dom.box;t.style.top="".concat("top"==e?this.top:this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var e=document.createElement("div");e.className="vis-drag-left",e.dragLeftItem=this,this.dom.box.appendChild(e),this.dom.dragLeft=e}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var e=document.createElement("div");e.className="vis-drag-right",e.dragRightItem=this,this.dom.box.appendChild(e),this.dom.dragRight=e}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),n}(sj);function pj(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}hj.prototype.baseClassName="vis-item vis-range";var mj=function(e){Aw(n,e);var t=pj(n);function n(e,r,i){var o;if(xc(this,n),(o=t.call(this,e,r,i)).props={content:{width:0}},o.overflow=!1,e){if(void 0==e.start)throw new Error('Property "start" missing in item '.concat(e.id));if(void 0==e.end)throw new Error('Property "end" missing in item '.concat(e.id))}return o}return Tc(n,[{key:"isVisible",value:function(e){return this.data.start<e.end&&this.data.end>e.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+e}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(e){this.props.content.width=e.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,u=[Gd(t=this._createDomElement).call(t,this),Gd(n=this._appendDomElement).call(n,this),Gd(r=this._updateDirtyDomComponents).call(r,this),function(){var e;s.dirty&&(o=Gd(e=s._getDomComponentsSizes).call(e,s)())},function(){var e;s.dirty&&Gd(e=s._updateDomComponentsSizes).call(e,s)(o)},Gd(i=this._repaintDomAdditionals).call(i,this)];return e?u:(uh(u).call(u,(function(e){a=e()})),a)}},{key:"repositionY",value:function(e){var t,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var r=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[r].height,"px"),this.dom.box.style.top="".concat("top"==n?this.parent.top+this.parent.subgroups[r].top:this.parent.top+this.parent.height-this.parent.subgroups[r].top-this.parent.subgroups[r].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof ij?(t=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(t=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(t,"px")}}]),n}(sj);mj.prototype.baseClassName="vis-item vis-background",mj.prototype.stack=!1,mj.prototype.show=hj.prototype.show,mj.prototype.hide=hj.prototype.hide,mj.prototype.repositionX=hj.prototype.repositionX;VD("div.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n\n font-family: verdana;\n font-size:14px;\n color:#000000;\n background-color: #f5f4ed;\n\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n\n z-index: 5;\n}\n");var vj=function(){function e(t,n){xc(this,e),this.container=t,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Tc(e,[{key:"setPosition",value:function(e,t){this.x=Mm(e),this.y=Mm(t)}},{key:"setText",value:function(e){e instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(e)):this.frame.innerHTML=XO.xss(e)}},{key:"show",value:function(e){if(void 0===e&&(e=!0),!0===e){var t=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var s=!1,u=!0;"flip"==this.overflowMethod&&(this.y-t<this.padding&&(u=!1),this.x+n>i-this.padding&&(s=!0)),o=s?this.x-n:this.x,a=u?this.y-t:this.y}else(a=this.y-t)+t+this.padding>r&&(a=r-t-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),gj={exports:{}},yj=cu.every;Fr({target:"Array",proto:!0,forced:!Qd("every")},{every:function(e){return yj(this,e,arguments.length>1?arguments[1]:void 0)}});var bj=kf("Array").every,wj=xt,xj=bj,_j=Array.prototype,kj=function(e){var t=e.every;return e===_j||wj(_j,e)&&t===_j.every?xj:t},Sj=kj;!function(e){e.exports=Sj}(gj);var Mj=o(gj.exports);function Tj(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return Ej(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ej(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ej(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cj(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}var Oj=function(e){Aw(n,e);var t=Cj(n);function n(e,r,i){var o;xc(this,n);var a=op({},{fitOnDoubleClick:!0},i,{editable:!1});if((o=t.call(this,e,r,a)).props={content:{width:0,height:0}},!e||void 0==e.uiItems)throw new Error('Property "uiItems" missing in item '+e.id);return o.id=gC(),o.group=e.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return Tc(n,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(e){this.detach(),this.data.uiItems=e,this._setupRange(),this.attach()}},{key:"isVisible",value:function(e){var t=this.data.end?this.data.end-this.data.start:0,n=this.width*e.getMillisecondsPerPixel(),r=Math.max(this.data.start.getTime()+t,this.data.start.getTime()+n);return this.data.start<e.end&&r>e.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s,u,l=[Gd(t=this._createDomElement).call(t,this),Gd(n=this._appendDomElement).call(n,this),Gd(r=this._updateDirtyDomComponents).call(r,this),Gd(i=function(){this.dirty&&(s=this._getDomComponentsSizes())}).call(i,this),Gd(o=function(){var e;this.dirty&&Gd(e=this._updateDomComponentsSizes).call(e,this)(s)}).call(o,this),Gd(a=this._repaintDomAdditionals).call(a,this)];return e?l:(uh(l).call(l,(function(e){u=e()})),u)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var e=this.dom;e.box.parentNode&&e.box.parentNode.removeChild(e.box),this.options.showStipes&&(e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var e=this.conversion.toScreen(this.data.start),t=this.data.end?this.conversion.toScreen(this.data.end):0;if(t)this.repositionXWithRanges(e,t);else{var n=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(e,n)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(e,t))}},{key:"repositionStype",value:function(e,t){this.dom.line.style.display="block",this.dom.dot.style.display="block";var n=this.dom.line.offsetWidth,r=this.dom.dot.offsetWidth;if(t){var i=n+e+(t-e)/2,o=i-r/2,a=this.options.rtl?-1*i:i,s=this.options.rtl?-1*o:o;this.dom.line.style.transform="translateX(".concat(a,"px)"),this.dom.dot.style.transform="translateX(".concat(s,"px)")}else{var u=this.options.rtl?-1*e:e,l=this.options.rtl?-1*(e-r/2):e-r/2;this.dom.line.style.transform="translateX(".concat(u,"px)"),this.dom.dot.style.transform="translateX(".concat(l,"px)")}}},{key:"repositionXWithoutRanges",value:function(e,t){"right"==t?this.options.rtl?(this.right=e-this.width,this.dom.box.style.right=this.right+"px"):(this.left=e-this.width,this.dom.box.style.left=this.left+"px"):"left"==t?this.options.rtl?(this.right=e,this.dom.box.style.right=this.right+"px"):(this.left=e,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=e-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=e-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(e,t){var n=Math.round(Math.max(t-e+.5,1));this.options.rtl?this.right=e:this.left=e,this.width=Math.max(n,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=n+"px"}},{key:"repositionY",value:function(){var e=this.options.orientation.item,t=this.dom.box;if(t.style.top="top"==e?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==e)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var n=this.parent.itemSet.props.height,r=n-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=n-r+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var e,t,n=Tj(this.data.uiItems);try{for(n.s();!(t=n.n()).done;){t.value.cluster=this}}catch(r){n.e(r)}finally{n.f()}this.data.items=md(e=this.data.uiItems).call(e,(function(e){return e.data})),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var t,n=Tj(this.data.uiItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;delete r.cluster}}catch(i){n.e(i)}finally{n.f()}this.attached=!1,e&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var e,t,n,r=md(e=this.data.uiItems).call(e,(function(e){return{start:e.data.start.valueOf(),end:e.data.end?e.data.end.valueOf():e.data.start.valueOf()}}));this.data.min=Math.min.apply(Math,Hf(md(r).call(r,(function(e){return Math.min(e.start,e.end||e.start)})))),this.data.max=Math.max.apply(Math,Hf(md(r).call(r,(function(e){return Math.max(e.start,e.end||e.start)}))));var i=md(t=this.data.uiItems).call(t,(function(e){return e.center})),o=oM(i).call(i,(function(e,t){return e+t}),0)/this.data.uiItems.length;TE(n=this.data.uiItems).call(n,(function(e){return e.data.end}))?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(o),this.data.end=null)}},{key:"_getUiItems",value:function(){var e,t=this;return this.data.uiItems&&this.data.uiItems.length?Yp(e=this.data.uiItems).call(e,(function(e){return e.cluster===t})):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var e;if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick)this.dom.box.ondblclick=Gd(e=n.prototype._onDoubleClick).call(e,this);this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}var t=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!t)throw new Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var e=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+e,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var e={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(e.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},e.line={width:this.dom.line.offsetWidth}),e}},{key:"_updateDomComponentsSizes",value:function(e){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=e.box.width:this.width=e.box.width,this.height=e.box.height,this.options.rtl?this.dom.box.style.right=e.previous.right:this.dom.box.style.left=e.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var e=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-e,fitEnd:this.data.max+e}}},{key:"_fit",value:function(){if(this.emitter){var e=this._getFitRange(),t=e.fitStart,n=e.fitEnd,r={start:new Date(t),end:new Date(n),animation:!0};this.emitter.emit("fit",r)}}},{key:"_getItemData",value:function(){return this.data}}]),n}(sj);function Dj(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return Nj(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nj(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Nj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Oj.prototype.baseClassName="vis-item vis-range vis-cluster";var jj="__ungrouped__",Aj=function(){function e(t){xc(this,e),this.itemSet=t,this.groups={},this.cache={},this.cache[-1]=[]}return Tc(e,[{key:"createClusterItem",value:function(e,t,n){return new Oj(e,t,n)}},{key:"setItems",value:function(e,t){this.items=e||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,t&&t.applyOnChangedLevel&&(this.applyOnChangedLevel=t.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(e,t,n){var r="boolean"===typeof n?{}:n,i=r.maxItems,o=r.clusterCriteria;o||(o=function(){return!0}),i=i||1;var a=-1,s=0;if(t>0){if(t>=1)return[];a=Math.abs(Math.round(Math.log(100/t)/Math.log(2))),s=Math.abs(Math.pow(2,a))}if(this.dataChanged){var u=a!=this.cacheLevel;(!this.applyOnChangedLevel||u)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=a;var l=this.cache[a];if(!l){for(var c in l=[],this.groups)if(this.groups.hasOwnProperty(c))for(var f=this.groups[c],d=f.length,h=0;h<d;){for(var p=f[h],m=1,v=h-1;v>=0&&p.center-f[v].center<s/2;)!f[v].cluster&&o(p.data,f[v].data)&&m++,v--;for(var g=h+1;g<f.length&&f[g].center-p.center<s/2;)o(p.data,f[g].data)&&m++,g++;for(var y=l.length-1;y>=0&&p.center-l[y].center<s;)p.group==l[y].group&&o(p.data,l[y].data)&&m++,y--;if(m>i){for(var b=m-i+1,w=[],x=h;w.length<b&&x<f.length;)o(f[h].data,f[x].data)&&w.push(f[x]),x++;var _=this.itemSet.getGroupId(p.data),k=this.itemSet.groups[_]||this.itemSet.groups[jj],S=this._getClusterForItems(w,k,e,n);l.push(S),h+=b}else delete p.cluster,h+=1}this.cache[a]=l}return l}},{key:"_filterData",value:function(){var e={};this.groups=e;for(var t=0,n=tm(this.items);t<n.length;t++){var r=n[t],i=r.parent?r.parent.groupId:"",o=e[i];o||(o=[],e[i]=o),o.push(r),r.data.start&&(r.data.end?r.center=(r.data.start.valueOf()+r.data.end.valueOf())/2:r.center=r.data.start.valueOf())}for(var a in e){var s;if(e.hasOwnProperty(a))gE(s=e[a]).call(s,(function(e,t){return e.center-t.center}))}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(e,t,n,r){var i,o,a=md(i=n||[]).call(i,(function(e){var t;return{cluster:e,itemsIds:new CT(md(t=e.data.uiItems).call(t,(function(e){return e.id})))}}));if(a.length){var s,u=Dj(a);try{var l=function(){var t=s.value;if(t.itemsIds.size===e.length&&Mj(e).call(e,(function(e){return t.itemsIds.has(e.id)})))return o=t.cluster,"break"};for(u.s();!(s=u.n()).done;){if("break"===l())break}}catch(v){u.e(v)}finally{u.f()}}if(o)return o.setUiItems(e),o.group!==t&&(o.group&&o.group.remove(o),t&&(t.add(o),o.group=t)),o;var c=r.titleTemplate||"",f={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},d=c.replace(/{count}/,e.length),h='<div title="'+d+'">'+e.length+"</div>",p=op({},r,this.itemSet.options),m={content:h,title:d,group:t,uiItems:e,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(m,f,p),t&&(t.add(o),o.group=t),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),e}();VD('\n.vis-itemset {\n position: relative;\n padding: 0;\n margin: 0;\n\n box-sizing: border-box;\n}\n\n.vis-itemset .vis-background,\n.vis-itemset .vis-foreground {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n.vis-axis {\n position: absolute;\n width: 100%;\n height: 0;\n left: 0;\n z-index: 1;\n}\n\n.vis-foreground .vis-group {\n position: relative;\n box-sizing: border-box;\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-foreground .vis-group:last-child {\n border-bottom: none;\n}\n\n.vis-nesting-group {\n cursor: pointer;\n}\n\n.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {\n background: #f5f5f5;\n}\n.vis-label.vis-nested-group.vis-group-level-0 {\n background-color: #ffffff;\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-left: 0;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-right: 0;\n}\n.vis-label.vis-nested-group.vis-group-level-1 {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-left: 15px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-right: 15px;\n}\n.vis-label.vis-nested-group.vis-group-level-2 {\n background-color: rgba(0, 0, 0, 0.1);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-left: 30px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-right: 30px;\n}\n.vis-label.vis-nested-group.vis-group-level-3 {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-left: 45px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-right: 45px;\n}\n.vis-label.vis-nested-group.vis-group-level-4 {\n background-color: rgba(0, 0, 0, 0.2);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-left: 60px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-right: 60px;\n}\n.vis-label.vis-nested-group.vis-group-level-5 {\n background-color: rgba(0, 0, 0, 0.25);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-left: 75px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-right: 75px;\n}\n.vis-label.vis-nested-group.vis-group-level-6 {\n background-color: rgba(0, 0, 0, 0.3);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-left: 90px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-right: 90px;\n}\n.vis-label.vis-nested-group.vis-group-level-7 {\n background-color: rgba(0, 0, 0, 0.35);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-left: 105px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-right: 105px;\n}\n.vis-label.vis-nested-group.vis-group-level-8 {\n background-color: rgba(0, 0, 0, 0.4);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-left: 120px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-right: 120px;\n}\n.vis-label.vis-nested-group.vis-group-level-9 {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-left: 135px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-right: 135px;\n}\n/* default takes over beginning with level-10 (thats why we add .vis-nested-group\n to the selectors above, to have higher specifity than these rules for the defaults) */\n.vis-label.vis-nested-group {\n background-color: rgba(0, 0, 0, 0.5);\n}\n.vis-ltr .vis-label.vis-nested-group .vis-inner {\n padding-left: 150px;\n}\n.vis-rtl .vis-label.vis-nested-group .vis-inner {\n padding-right: 150px;\n}\n\n.vis-group-level-unknown-but-gte1 {\n border: 1px solid red;\n}\n\n/* expanded/collapsed indicators */\n.vis-label.vis-nesting-group:before,\n.vis-label.vis-nesting-group:before {\n display: inline-block;\n width: 15px;\n}\n.vis-label.vis-nesting-group.expanded:before {\n content: "\\25BC";\n}\n.vis-label.vis-nesting-group.collapsed:before {\n content: "\\25B6";\n}\n.vis-rtl .vis-label.vis-nesting-group.collapsed:before {\n content: "\\25C0";\n}\n/* compensate missing expanded/collapsed indicator, but only at levels > 0 */\n.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-left: 15px;\n}\n.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-right: 15px;\n}\n\n.vis-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 10;\n}');function Pj(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return Rj(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rj(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Rj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ij(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}VD("\n.vis-labelset {\n position: relative;\n\n overflow: hidden;\n\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n color: #4d4d4d;\n\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-labelset .vis-label.draggable {\n cursor: pointer;\n}\n\n.vis-group-is-dragging {\n background: rgba(0, 0, 0, .1);\n}\n\n.vis-labelset .vis-label:last-child {\n border-bottom: none;\n}\n\n.vis-labelset .vis-label .vis-inner {\n display: inline-block;\n padding: 5px;\n}\n\n.vis-labelset .vis-label .vis-inner.vis-hidden {\n padding: 0;\n}\n");var Fj="__ungrouped__",Lj="__background__",zj=function(e){Aw(n,e);var t=Ij(n);function n(e,r){var i;xc(this,n),(i=t.call(this)).body=e,i.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(e,t,n){var r=t.order;t.order=e.order,e.order=r},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:UD.snap,onDropObjectOnItem:function(e,t,n){n(t)},onAdd:function(e,t){t(e)},onUpdate:function(e,t){t(e)},onMove:function(e,t){t(e)},onRemove:function(e,t){t(e)},onMoving:function(e,t){t(e)},onAddGroup:function(e,t){t(e)},onMoveGroup:function(e,t){t(e)},onRemoveGroup:function(e,t){t(e)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},i.options=XO.extend({},i.defaultOptions),i.options.rtl=r.rtl,i.options.onTimeout=r.onTimeout,i.conversion={toScreen:e.util.toScreen,toTime:e.util.toTime},i.dom={},i.props={},i.hammer=null;var o=_w(i);return i.itemsData=null,i.groupsData=null,i.itemsSettingTime=null,i.initialItemSetDrawn=!1,i.userContinueNotBail=null,i.sequentialSelection=!1,i.itemListeners={add:function(e,t,n){o._onAdd(t.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(e,t,n){o._onUpdate(t.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(e,t,n){o._onRemove(t.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},i.groupListeners={add:function(e,t,n){if(o._onAddGroups(t.items),o.groupsData&&o.groupsData.length>0){var r,i=o.groupsData.getDataSet();uh(r=i.get()).call(r,(function(e){if(e.nestedGroups){var t;0!=e.showNested&&(e.showNested=!0);var r=[];uh(t=e.nestedGroups).call(t,(function(t){var n=i.get(t);n&&(n.nestedInGroup=e.id,0==e.showNested&&(n.visible=!1),r=Jf(r).call(r,n))})),i.update(r,n)}}))}},update:function(e,t,n){o._onUpdateGroups(t.items)},remove:function(e,t,n){o._onRemoveGroups(t.items)}},i.items={},i.groups={},i.groupIds=[],i.selection=[],i.popup=null,i.popupTimer=null,i.touchParams={},i.groupTouchParams={group:null,isDragging:!1},i._create(),i.setOptions(r),i.clusters=[],i}return Tc(n,[{key:"_create",value:function(){var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p,m=this,v=document.createElement("div");v.className="vis-itemset",v["vis-itemset"]=this,this.dom.frame=v;var g=document.createElement("div");g.className="vis-background",v.appendChild(g),this.dom.background=g;var y=document.createElement("div");y.className="vis-foreground",v.appendChild(y),this.dom.foreground=y;var b=document.createElement("div");b.className="vis-axis",this.dom.axis=b;var w=document.createElement("div");w.className="vis-labelset",this.dom.labelSet=w,this._updateUngrouped();var x=new ij(Lj,null,this);x.show(),this.groups[Lj]=x,this.hammer=new HD(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(e){e.isFirst&&m._onTouch(e)})),this.hammer.on("panstart",Gd(e=this._onDragStart).call(e,this)),this.hammer.on("panmove",Gd(t=this._onDrag).call(t,this)),this.hammer.on("panend",Gd(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:HD.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",Gd(r=this._onSelectItem).call(r,this)),this.hammer.on("press",Gd(i=this._onMultiSelectItem).call(i,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",Gd(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new HD(this.body.dom.rightContainer):this.groupHammer=new HD(this.body.dom.leftContainer),this.groupHammer.on("tap",Gd(a=this._onGroupClick).call(a,this)),this.groupHammer.on("panstart",Gd(s=this._onGroupDragStart).call(s,this)),this.groupHammer.on("panmove",Gd(u=this._onGroupDrag).call(u,this)),this.groupHammer.on("panend",Gd(l=this._onGroupDragEnd).call(l,this)),this.groupHammer.get("pan").set({threshold:5,direction:HD.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",Gd(c=this._onMouseOver).call(c,this)),this.body.dom.centerContainer.addEventListener("mouseout",Gd(f=this._onMouseOut).call(f,this)),this.body.dom.centerContainer.addEventListener("mousemove",Gd(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",Gd(h=this._onDragEnd).call(h,this)),this.body.dom.centerContainer.addEventListener("mousewheel",Gd(p=this._onMouseWheel).call(p,this)),this.show()}},{key:"setOptions",value:function(e){var t=this;if(e){var n,r;XO.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,e),"itemsAlwaysDraggable"in e&&("boolean"===typeof e.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=e.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===Wf(e.itemsAlwaysDraggable)&&(XO.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,e.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in e&&"boolean"===typeof e.sequentialSelection&&(this.options.sequentialSelection=e.sequentialSelection),"orientation"in e&&("string"===typeof e.orientation?this.options.orientation.item="top"===e.orientation?"top":"bottom":"object"===Wf(e.orientation)&&"item"in e.orientation&&(this.options.orientation.item=e.orientation.item)),"margin"in e&&("number"===typeof e.margin?(this.options.margin.axis=e.margin,this.options.margin.item.horizontal=e.margin,this.options.margin.item.vertical=e.margin):"object"===Wf(e.margin)&&(XO.selectiveExtend(["axis"],this.options.margin,e.margin),"item"in e.margin&&("number"===typeof e.margin.item?(this.options.margin.item.horizontal=e.margin.item,this.options.margin.item.vertical=e.margin.item):"object"===Wf(e.margin.item)&&XO.selectiveExtend(["horizontal","vertical"],this.options.margin.item,e.margin.item)))),uh(n=["locale","locales"]).call(n,(function(n){n in e&&(t.options[n]=e[n])})),"editable"in e&&("boolean"===typeof e.editable?(this.options.editable.updateTime=e.editable,this.options.editable.updateGroup=e.editable,this.options.editable.add=e.editable,this.options.editable.remove=e.editable,this.options.editable.overrideItems=!1):"object"===Wf(e.editable)&&XO.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,e.editable)),"groupEditable"in e&&("boolean"===typeof e.groupEditable?(this.options.groupEditable.order=e.groupEditable,this.options.groupEditable.add=e.groupEditable,this.options.groupEditable.remove=e.groupEditable):"object"===Wf(e.groupEditable)&&XO.selectiveExtend(["order","add","remove"],this.options.groupEditable,e.groupEditable));uh(r=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(r,(function(n){var r=e[n];if(r){var i;if("function"!==typeof r)throw new Error(Jf(i="option ".concat(n," must be a function ")).call(i,n,"(item, callback)"));t.options[n]=r}})),e.cluster?(op(this.options,{cluster:e.cluster}),this.clusterGenerator||(this.clusterGenerator=new Aj(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(e){this.groupIds=[],e&&(e.refreshItems&&uh(XO).call(XO,this.items,(function(e){e.dirty=!0,e.displayed&&e.redraw()})),e.restackGroups&&uh(XO).call(XO,this.groups,(function(e,t){t!==Lj&&(e.stackDirty=!0)})))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(e){if(this.clearPopupTimer(),e){var t=this.options.tooltip.delay||"number"===typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=Lv((function(){e.show()}),t)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(e){var t;void 0==e&&(e=[]),ad(e)||(e=[e]);var n,r=Yp(t=this.selection).call(t,(function(t){return-1===zm(e).call(e,t)})),i=Pj(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=this.getItemById(o);a&&a.unselect()}}catch(f){i.e(f)}finally{i.f()}this.selection=Hf(e);var s,u=Pj(e);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=this.getItemById(l);c&&c.select()}}catch(f){u.e(f)}finally{u.f()}}},{key:"getSelection",value:function(){var e;return Jf(e=this.selection).call(e,[])}},{key:"getVisibleItems",value:function(){var e,t,n=this.body.range.getRange();this.options.rtl?(e=this.body.util.toScreen(n.start),t=this.body.util.toScreen(n.end)):(t=this.body.util.toScreen(n.start),e=this.body.util.toScreen(n.end));var r=[];for(var i in this.groups)if(this.groups.hasOwnProperty(i)){var o,a=this.groups[i],s=Pj(a.isVisible?a.visibleItems:[]);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.options.rtl?u.right<t&&u.right+u.width>e&&r.push(u.id):u.left<e&&u.left+u.width>t&&r.push(u.id)}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"getItemsAtCurrentTime",value:function(e){var t,n;this.options.rtl?(t=this.body.util.toScreen(e),n=this.body.util.toScreen(e)):(n=this.body.util.toScreen(e),t=this.body.util.toScreen(e));var r=[];for(var i in this.groups)if(this.groups.hasOwnProperty(i)){var o,a=this.groups[i],s=Pj(a.isVisible?a.visibleItems:[]);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.options.rtl?u.right<n&&u.right+u.width>t&&r.push(u.id):u.left<t&&u.left+u.width>n&&r.push(u.id)}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"getVisibleGroups",value:function(){var e=[];for(var t in this.groups){if(this.groups.hasOwnProperty(t))this.groups[t].isVisible&&e.push(t)}return e}},{key:"getItemById",value:function(e){var t;return this.items[e]||ON(t=this.clusters).call(t,(function(t){return t.id===e}))}},{key:"_deselect",value:function(e){for(var t=this.selection,n=0,r=t.length;n<r;n++)if(t[n]==e){Wh(t).call(t,n,1);break}}},{key:"redraw",value:function(){var e=this,t=this.options.margin,n=this.body.range,r=XO.option.asSize,i=this.options,o=i.orientation.item,a=!1,s=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,s.className="vis-itemset",this.options.cluster&&this._clusterItems(),a=this._orderGroups()||a;var u=n.end-n.start,l=u!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,c=n.start!=this.lastRangeStart,f=i.stack!=this.lastStack,d=i.stackSubgroups!=this.lastStackSubgroups,h=l||c||f||d;this.lastVisibleInterval=u,this.lastRangeStart=n.start,this.lastStack=i.stack,this.lastStackSubgroups=i.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),m={item:t.item,axis:t.axis},v={item:t.item,axis:t.item.vertical/2},g=0,y=t.axis+t.item.vertical;this.groups[Lj].redraw(n,v,h);var b={},w=0;return uh(XO).call(XO,this.groups,(function(e,t){if(t!==Lj){var r=e==p?m:v;b[t]=e.redraw(n,r,h,!0),w=b[t].length}})),w>0&&function(){for(var t={},n=function(e){uh(XO).call(XO,b,(function(n,r){t[r]=n[e]()}))},r=0;r<w;r++)n(r);uh(XO).call(XO,e.groups,(function(e,n){if(n!==Lj){var r=t[n];a=r||a,g+=e.height}})),g=Math.max(g,y)}(),g=Math.max(g,y),s.style.height=r(g),this.props.width=s.offsetWidth,this.props.height=g,this.dom.axis.style.top=r("top"==o?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,a=this._isResized()||a}},{key:"_firstGroup",value:function(){var e="top"==this.options.orientation.item?0:this.groupIds.length-1,t=this.groupIds[e];return this.groups[t]||this.groups[Fj]||null}},{key:"_updateUngrouped",value:function(){var e,t,n=this.groups[Fj];if(this.groupsData){if(n)for(t in n.dispose(),delete this.groups[Fj],this.items)if(this.items.hasOwnProperty(t)){(e=this.items[t]).parent&&e.parent.remove(e);var r=this.getGroupId(e.data),i=this.groups[r];i&&i.add(e)||e.hide()}}else if(!n){for(t in n=new nj(null,null,this),this.groups[Fj]=n,this.items)this.items.hasOwnProperty(t)&&(e=this.items[t],n.add(e));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(e){this.itemsSettingTime=new Date;var t,n=this,r=this.itemsData;if(e){if(!ZO(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=UO(e)}else this.itemsData=null;if(r&&(uh(XO).call(XO,this.itemListeners,(function(e,t){r.off(t,e)})),r.dispose(),t=r.getIds(),this._onRemove(t)),this.itemsData){var i=this.id;uh(XO).call(XO,this.itemListeners,(function(e,t){n.itemsData.on(t,e,i)})),t=this.itemsData.getIds(),this._onAdd(t),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:"setGroups",value:function(e){var t,n=this;if(this.groupsData&&(uh(XO).call(XO,this.groupListeners,(function(e,t){n.groupsData.off(t,e)})),t=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(t)),e){if(!ZO(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=e}else this.groupsData=null;if(this.groupsData){var r,i=this.groupsData.getDataSet();uh(r=i.get()).call(r,(function(e){var t;e.nestedGroups&&uh(t=e.nestedGroups).call(t,(function(t){var n=i.get(t);n.nestedInGroup=e.id,0==e.showNested&&(n.visible=!1),i.update(n)}))}));var o=this.id;uh(XO).call(XO,this.groupListeners,(function(e,t){n.groupsData.on(t,e,o)})),t=this.groupsData.getIds(),this._onAddGroups(t)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(e){var t=this,n=this.itemsData.get(e);n&&this.options.onRemove(n,(function(n){n&&t.itemsData.remove(e)}))}},{key:"_getType",value:function(e){return e.type||this.options.type||(e.end?"range":"box")}},{key:"getGroupId",value:function(e){return"background"==this._getType(e)&&void 0==e.group?Lj:this.groupsData?e.group:Fj}},{key:"_onUpdate",value:function(e){var t=this,r=this;uh(e).call(e,(function(e){var i,o=r.itemsData.get(e),a=r.items[e],s=o?r._getType(o):null,u=n.types[s];if(a&&(u&&a instanceof u?r._updateItem(a,o):(i=a.selected,r._removeItem(a),a=null)),!a&&o){if(!u)throw new TypeError('Unknown item type "'.concat(s,'"'));(a=new u(o,r.conversion,r.options)).id=e,r._addItem(a),i&&(t.selection.push(e),a.select())}})),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(e){var t=0,n=this;uh(e).call(e,(function(e){var r=n.items[e];r&&(t++,n._removeItem(r))})),t&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){uh(XO).call(XO,this.groups,(function(e){e.order()}))}},{key:"_onUpdateGroups",value:function(e){this._onAddGroups(e)}},{key:"_onAddGroups",value:function(e){var t=this;uh(e).call(e,(function(e){var n=t.groupsData.get(e),r=t.groups[e];if(r)r.setData(n);else{if(e==Fj||e==Lj)throw new Error("Illegal group id. ".concat(e," is a reserved id."));var i=tv(t.options);for(var o in XO.extend(i,{height:null}),r=new nj(e,n,t),t.groups[e]=r,t.items)if(t.items.hasOwnProperty(o)){var a=t.items[o];a.data.group==e&&r.add(a)}r.order(),r.show()}})),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(e){var t=this;uh(e).call(e,(function(e){var n=t.groups[e];n&&(n.dispose(),delete t.groups[e])})),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var e=this.groupsData.getIds({order:this.options.groupOrder});e=this._orderNestedGroups(e);var t=!XO.equalArray(e,this.groupIds);if(t){var n=this.groups;uh(e).call(e,(function(e){n[e].hide()})),uh(e).call(e,(function(e){n[e].show()})),this.groupIds=e}return t}return!1}},{key:"_orderNestedGroups",value:function(e){var t=this;return function e(t,n){var r=[];return uh(n).call(n,(function(n){if(r.push(n),t.groupsData.get(n).nestedGroups){var i,o=md(i=t.groupsData.get({filter:function(e){return e.nestedInGroup==n},order:t.options.groupOrder})).call(i,(function(e){return e.id}));r=Jf(r).call(r,e(t,o))}})),r}(this,Yp(e).call(e,(function(e){return!t.groupsData.get(e).nestedInGroup})))}},{key:"_addItem",value:function(e){this.items[e.id]=e;var t=this.getGroupId(e.data),n=this.groups[t];n?n&&n.data&&n.data.showNested&&(e.groupShowing=!0):e.groupShowing=!1,n&&n.add(e)}},{key:"_updateItem",value:function(e,t){e.setData(t);var n=this.getGroupId(e.data),r=this.groups[n];r?r&&r.data&&r.data.showNested&&(e.groupShowing=!0):e.groupShowing=!1}},{key:"_removeItem",value:function(e){var t,n;e.hide(),delete this.items[e.id];var r=zm(t=this.selection).call(t,e.id);-1!=r&&Wh(n=this.selection).call(n,r,1),e.parent&&e.parent.remove(e),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(e){for(var t=[],n=0;n<e.length;n++)e[n]instanceof hj&&t.push(e[n]);return t}},{key:"_onTouch",value:function(e){this.touchParams.item=this.itemFromTarget(e),this.touchParams.dragLeftItem=e.target.dragLeftItem||!1,this.touchParams.dragRightItem=e.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(e){for(var t=0;t<this.groupIds.length;t++)if(e==this.groupIds[t])return t}},{key:"_onDragStart",value:function(e){var t=this;if(!this.touchParams.itemIsDragging){var n,r=this.touchParams.item||null,i=this;if(r&&(r.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=r.editable&&!r.editable.updateTime&&!r.editable.updateGroup&&!this.options.editable.overrideItems)return;var o=this.touchParams.dragLeftItem,a=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=r,o)n={item:o,initialX:e.center.x,dragLeft:!0,data:this._cloneItemData(r.data)},this.touchParams.itemProps=[n];else if(a)n={item:a,initialX:e.center.x,dragRight:!0,data:this._cloneItemData(r.data)},this.touchParams.itemProps=[n];else if(this.options.editable.add&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey))this._onDragStartAddItem(e);else{this.groupIds.length<1&&this.redraw();var s=this._getGroupIndex(r.data.group),u=this.options.itemsAlwaysDraggable.item&&!r.selected?[r.id]:this.getSelection();this.touchParams.itemProps=md(u).call(u,(function(n){var r=i.items[n],o=i._getGroupIndex(r.data.group);return{item:r,initialX:e.center.x,groupOffset:s-o,data:t._cloneItemData(r.data)}}))}e.stopPropagation()}else this.options.editable.add&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey)&&this._onDragStartAddItem(e)}}},{key:"_onDragStartAddItem",value:function(e){var t=this.options.snap||null,n=this.dom.frame.getBoundingClientRect(),r=this.options.rtl?n.right-e.center.x+10:e.center.x-n.left-10,i=this.body.util.toTime(r),o=this.body.util.getScale(),a=this.body.util.getStep(),s=t?t(i,o,a):i,u={type:"range",start:s,end:s,content:"new item"},l=gC();u[this.itemsData.idProp]=l;var c=this.groupFromTarget(e);c&&(u.group=c.groupId);var f=new hj(u,this.conversion,this.options);f.id=l,f.data=this._cloneItemData(u),this._addItem(f),this.touchParams.selectedItem=f;var d={item:f,initialX:e.center.x,data:f.data};this.options.rtl?d.dragLeft=!0:d.dragRight=!0,this.touchParams.itemProps=[d],e.stopPropagation()}},{key:"_onDrag",value:function(e){var t=this;if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){var n=this.body.dom.centerContainer,r=n.getBoundingClientRect();this.popup.setPosition(e.center.x-r.left+n.offsetLeft,e.center.y-r.top+n.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var i;e.stopPropagation();var o=this,a=this.options.snap||null,s=this.body.dom.root.offsetLeft,u=this.options.rtl?s+this.body.domProps.right.width:s+this.body.domProps.left.width,l=this.body.util.getScale(),c=this.body.util.getStep(),f=this.touchParams.selectedItem,d=(this.options.editable.overrideItems||null==f.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=f.editable&&f.editable.updateGroup,h=null;if(d&&f&&void 0!=f.data.group){var p=o.groupFromTarget(e);p&&(h=this._getGroupIndex(p.groupId))}uh(i=this.touchParams.itemProps).call(i,(function(n){var r,i,s,p,m,v=o.body.util.toTime(e.center.x-u),g=o.body.util.toTime(n.initialX-u);r=t.options.rtl?-(v-g):v-g;var y=t._cloneItemData(n.item.data);if(null==n.item.editable||n.item.editable.updateTime||n.item.editable.updateGroup||o.options.editable.overrideItems){if((t.options.editable.overrideItems||null==f.editable)&&t.options.editable.updateTime||!t.options.editable.overrideItems&&null!=f.editable&&f.editable.updateTime)if(n.dragLeft)t.options.rtl?void 0!=y.end&&(s=XO.convert(n.data.end,"Date"),m=new Date(s.valueOf()+r),y.end=a?a(m,l,c):m):void 0!=y.start&&(i=XO.convert(n.data.start,"Date"),p=new Date(i.valueOf()+r),y.start=a?a(p,l,c):p);else if(n.dragRight)t.options.rtl?void 0!=y.start&&(i=XO.convert(n.data.start,"Date"),p=new Date(i.valueOf()+r),y.start=a?a(p,l,c):p):void 0!=y.end&&(s=XO.convert(n.data.end,"Date"),m=new Date(s.valueOf()+r),y.end=a?a(m,l,c):m);else if(void 0!=y.start)if(i=XO.convert(n.data.start,"Date").valueOf(),p=new Date(i+r),void 0!=y.end){var b=(s=XO.convert(n.data.end,"Date")).valueOf()-i.valueOf();y.start=a?a(p,l,c):p,y.end=new Date(y.start.valueOf()+b)}else y.start=a?a(p,l,c):p;if(d&&!n.dragLeft&&!n.dragRight&&null!=h&&void 0!=y.group){var w=h-n.groupOffset;w=Math.max(0,w),w=Math.min(o.groupIds.length-1,w),y.group=o.groupIds[w]}y=t._cloneItemData(y),o.options.onMoving(y,(function(e){e&&n.item.setData(t._cloneItemData(e,"Date"))}))}})),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(e,t){var n=this.groups[t];if(n&&n.groupId!=e.data.group){var r=e.parent;r.remove(e),r.order(),e.data.group=n.groupId,n.add(e),n.order()}}},{key:"_onDragEnd",value:function(e){var t=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){e.stopPropagation();var n=this,r=this.touchParams.itemProps;this.touchParams.itemProps=null,uh(r).call(r,(function(e){var r=e.item.id;if(null!=n.itemsData.get(r)){var i=t._cloneItemData(e.item.data);n.options.onMove(i,(function(i){i?(i[t.itemsData.idProp]=r,t.itemsData.update(i)):(e.item.setData(e.data),n.body.emitter.emit("_change"))}))}else n.options.onAdd(e.item.data,(function(t){n._removeItem(e.item),t&&n.itemsData.add(t),n.body.emitter.emit("_change")}))}))}}},{key:"_onGroupClick",value:function(e){var t=this,n=this.groupFromTarget(e);Lv((function(){t.toggleGroupShowNested(n)}),1)}},{key:"toggleGroupShowNested",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&e.nestedGroups){var r=this.groupsData.getDataSet();e.showNested=void 0!=n?!!n:!e.showNested;var i=r.get(e.groupId);i.showNested=e.showNested;for(var o=e.nestedGroups,a=o;a.length>0;){var s=a;a=[];for(var u=0;u<s.length;u++){var l=r.get(s[u]);l.nestedGroups&&(a=Jf(a).call(a,l.nestedGroups))}a.length>0&&(o=Jf(o).call(o,a))}var c=md(t=r.get(o)).call(t,(function(e){return void 0==e.visible&&(e.visible=!0),e.visible=!!i.showNested,e}));r.update(Jf(c).call(c,i)),i.showNested?(XO.removeClassName(e.dom.label,"collapsed"),XO.addClassName(e.dom.label,"expanded")):(XO.removeClassName(e.dom.label,"expanded"),XO.addClassName(e.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(e){e.dom.label.classList.toggle("vis-group-is-dragging"),e.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(e){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(e),this.groupTouchParams.group&&(e.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(e){if(this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();var t=this.groupsData.getDataSet(),n=this.groupFromTarget(e);if(n&&n.height!=this.groupTouchParams.group.height){var r=n.top<this.groupTouchParams.group.top,i=e.center?e.center.y:e.clientY,o=n.dom.foreground.getBoundingClientRect(),a=this.groupTouchParams.group.height;if(r){if(o.top+a<i)return}else{var s=n.height;if(o.top+s-a>i)return}}if(n&&n!=this.groupTouchParams.group){var u=t.get(n.groupId),l=t.get(this.groupTouchParams.group.groupId);l&&u&&(this.options.groupOrderSwap(l,u,t),t.update(l),t.update(u));var c=t.getIds({order:this.options.groupOrder});if(!XO.equalArray(c,this.groupTouchParams.originalOrder))for(var f=this.groupTouchParams.originalOrder,d=this.groupTouchParams.group.groupId,h=Math.min(f.length,c.length),p=0,m=0,v=0;p<h;){for(;p+m<h&&p+v<h&&c[p+m]==f[p+v];)p++;if(p+m>=h)break;if(c[p+m]==d)m=1;else if(f[p+v]==d)v=1;else{var g=zm(c).call(c,f[p+v]),y=t.get(c[p+m]),b=t.get(f[p+v]);this.options.groupOrderSwap(y,b,t),t.update(y),t.update(b);var w=c[p+m];c[p+m]=f[p+v],c[g]=w,p++}}}}}},{key:"_onGroupDragEnd",value:function(e){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();var t=this,n=t.groupTouchParams.group.groupId,r=t.groupsData.getDataSet(),i=XO.extend({},r.get(n));t.options.onMoveGroup(i,(function(e){if(e)e[r._idProp]=n,r.update(e);else{var i=r.getIds({order:t.options.groupOrder});if(!XO.equalArray(i,t.groupTouchParams.originalOrder))for(var o=t.groupTouchParams.originalOrder,a=Math.min(o.length,i.length),s=0;s<a;){for(;s<a&&i[s]==o[s];)s++;if(s>=a)break;var u=zm(i).call(i,o[s]),l=r.get(i[s]),c=r.get(o[s]);t.options.groupOrderSwap(l,c,r),r.update(l),r.update(c);var f=i[s];i[s]=o[s],i[u]=f,s++}}})),t.body.emitter.emit("groupDragged",{groupId:n}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(e){if(this.options.selectable){var t=e.srcEvent&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey),n=e.srcEvent&&e.srcEvent.shiftKey;if(t||n)this._onMultiSelectItem(e);else{var r=this.getSelection(),i=this.itemFromTarget(e),o=i&&i.selectable?[i.id]:[];this.setSelection(o);var a=this.getSelection();(a.length>0||r.length>0)&&this.body.emitter.emit("select",{items:a,event:e})}}}},{key:"_onMouseOver",value:function(e){var t=this.itemFromTarget(e);if(t&&t!==this.itemFromRelatedTarget(e)){var n=t.getTitle();if(this.options.showTooltips&&n){null==this.popup&&(this.popup=new vj(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);var r=this.body.dom.centerContainer,i=r.getBoundingClientRect();this.popup.setPosition(e.clientX-i.left+r.offsetLeft,e.clientY-i.top+r.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:t.id,event:e})}}},{key:"_onMouseOut",value:function(e){var t=this.itemFromTarget(e);t&&(t!==this.itemFromRelatedTarget(e)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:t.id,event:e})))}},{key:"_onMouseMove",value:function(e){if(this.itemFromTarget(e)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var t=this.body.dom.centerContainer,n=t.getBoundingClientRect();this.popup.setPosition(e.clientX-n.left+t.offsetLeft,e.clientY-n.top+t.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(e){this.touchParams.itemIsDragging&&this._onDragEnd(e)}},{key:"_onUpdateItem",value:function(e){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var t=this;if(e){var n=t.itemsData.get(e.id);this.options.onUpdate(n,(function(e){e&&t.itemsData.update(e)}))}}}},{key:"_onDropObjectOnItem",value:function(e){var t=this.itemFromTarget(e),n=JSON.parse(e.dataTransfer.getData("text"));this.options.onDropObjectOnItem(n,t)}},{key:"_onAddItem",value:function(e){if(this.options.selectable&&this.options.editable.add){var t,n,r=this,i=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),a=this.options.rtl?o.right-e.center.x:e.center.x-o.left,s=this.body.util.toTime(a),u=this.body.util.getScale(),l=this.body.util.getStep();"drop"==e.type?((n=JSON.parse(e.dataTransfer.getData("text"))).content=n.content?n.content:"new item",n.start=n.start?n.start:i?i(s,u,l):s,n.type=n.type||"box",n[this.itemsData.idProp]=n.id||gC(),"range"!=n.type||n.end||(t=this.body.util.toTime(a+this.props.width/5),n.end=i?i(t,u,l):t)):((n={start:i?i(s,u,l):s,content:"new item"})[this.itemsData.idProp]=gC(),"range"===this.options.type&&(t=this.body.util.toTime(a+this.props.width/5),n.end=i?i(t,u,l):t));var c=this.groupFromTarget(e);c&&(n.group=c.groupId),n=this._cloneItemData(n),this.options.onAdd(n,(function(t){t&&(r.itemsData.add(t),"drop"==e.type&&r.setSelection([t.id]))}))}}},{key:"_onMultiSelectItem",value:function(e){var t=this;if(this.options.selectable){var r=this.itemFromTarget(e);if(r){var i=this.options.multiselect?this.getSelection():[];if((e.srcEvent&&e.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){var o=this.itemsData.get(r.id).group,a=void 0;this.options.multiselectPerGroup&&i.length>0&&(a=this.itemsData.get(i[0]).group),this.options.multiselectPerGroup&&void 0!=a&&a!=o||i.push(r.id);var s=n._getItemRange(this.itemsData.get(i));if(!this.options.multiselectPerGroup||a==o)for(var u in i=[],this.items)if(this.items.hasOwnProperty(u)){var l=this.items[u],c=l.data.start,f=void 0!==l.data.end?l.data.end:c;!(c>=s.min&&f<=s.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(l.id).group||l instanceof mj||i.push(l.id)}}else{var d=zm(i).call(i,r.id);-1==d?i.push(r.id):Wh(i).call(i,d,1)}var h=Yp(i).call(i,(function(e){return t.getItemById(e).selectable}));this.setSelection(h),this.body.emitter.emit("select",{items:this.getSelection(),event:e})}}}},{key:"itemFromElement",value:function(e){for(var t=e;t;){if(t.hasOwnProperty("vis-item"))return t["vis-item"];t=t.parentNode}return null}},{key:"itemFromTarget",value:function(e){return this.itemFromElement(e.target)}},{key:"itemFromRelatedTarget",value:function(e){return this.itemFromElement(e.relatedTarget)}},{key:"groupFromTarget",value:function(e){var t=e.center?e.center.y:e.clientY,n=this.groupIds;n.length<=0&&this.groupsData&&(n=this.groupsData.getIds({order:this.options.groupOrder}));for(var r=0;r<n.length;r++){var i=n[r],o=this.groups[i],a=o.dom.foreground,s=a.getBoundingClientRect();if(t>=s.top&&t<s.top+a.offsetHeight)return o;if("top"===this.options.orientation.item){if(r===this.groupIds.length-1&&t>s.top)return o}else if(0===r&&t<s.top+a.offset)return o}return null}},{key:"_cloneItemData",value:function(e,t){var n=XO.extend({},e);return t||(t=this.itemsData.type),void 0!=n.start&&(n.start=XO.convert(n.start,t&&t.start||"Date")),void 0!=n.end&&(n.end=XO.convert(n.end,t&&t.end||"Date")),n}},{key:"_clusterItems",value:function(){if(this.options.cluster){var e=this.body.range.conversion(this.body.domProps.center.width).scale,t=this.clusterGenerator.getClusters(this.clusters,e,this.options.cluster);if(this.clusters!=t){if(this._detachAllClusters(),t){var n,r=Pj(t);try{for(r.s();!(n=r.n()).done;){n.value.attach()}}catch(i){r.e(i)}finally{r.f()}this.clusters=t}this._updateClusters(t)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var e,t=Pj(this.clusters);try{for(t.s();!(e=t.n()).done;){e.value.detach()}}catch(n){t.e(n)}finally{t.f()}}}},{key:"_updateClusters",value:function(e){if(this.clusters&&this.clusters.length){var t,n,r=new CT(md(e).call(e,(function(e){return e.id}))),i=Yp(t=this.clusters).call(t,(function(e){return!r.has(e.id)})),o=!1,a=Pj(i);try{for(a.s();!(n=a.n()).done;){var s,u,l=n.value,c=zm(s=this.selection).call(s,l.id);if(-1!==c)l.unselect(),Wh(u=this.selection).call(u,c,1),o=!0}}catch(d){a.e(d)}finally{a.f()}if(o){var f=this.getSelection();this.body.emitter.emit("select",{items:f,event:event})}}this.clusters=e||[]}}],[{key:"_getItemRange",value:function(e){var t=null,n=null;return uh(e).call(e,(function(e){(null==n||e.start<n)&&(n=e.start),void 0!=e.end?(null==t||e.end>t)&&(t=e.end):(null==t||e.start>t)&&(t=e.start)})),{min:n,max:t}}},{key:"itemSetFromTarget",value:function(e){for(var t=e.target;t;){if(t.hasOwnProperty("vis-itemset"))return t["vis-itemset"];t=t.parentNode}return null}}]),n}(uD);zj.types={background:mj,box:lj,range:hj,point:fj},zj.prototype._onAdd=zj.prototype._onUpdate;var Bj,Zj=!1,Wj="background: #FFeeee; color: #dd0000",Hj=function(){function e(){xc(this,e)}return Tc(e,null,[{key:"validate",value:function(t,n,r){Zj=!1,Bj=n;var i=n;return void 0!==r&&(i=n[r]),e.parse(t,i,[]),Zj}},{key:"parse",value:function(t,n,r){for(var i in t)t.hasOwnProperty(i)&&e.check(i,t,n,r)}},{key:"check",value:function(t,n,r,i){if(void 0!==r[t]||void 0!==r.__any__){var o=t,a=!0;void 0===r[t]&&void 0!==r.__any__&&(o="__any__",a="object"===e.getType(n[t]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),e.checkFields(t,n,r,o,s,i)}else e.getSuggestion(t,r,i)}},{key:"checkFields",value:function(t,n,r,i,o,a){var s=function(n){console.log("%c"+n+e.printLocation(a,t),Wj)},u=e.getType(n[t]),l=o[u];void 0!==l?"array"===e.getType(l)&&-1===zm(l).call(l,n[t])?(s('Invalid option detected in "'+t+'". Allowed values are:'+e.print(l)+' not "'+n[t]+'". '),Zj=!0):"object"===u&&"__any__"!==i&&(a=XO.copyAndExtendArray(a,t),e.parse(n[t],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+t+'". Expected: '+e.print(wd(o))+". Received ["+u+'] "'+n[t]+'"'),Zj=!0)}},{key:"getType",value:function(e){var t=Wf(e);return"object"===t?null===e?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":ad(e)?"array":e instanceof Date?"date":void 0!==e.nodeType?"dom":!0===e._isAMomentObject?"moment":"object":"number"===t?"number":"boolean"===t?"boolean":"string"===t?"string":void 0===t?"undefined":t}},{key:"getSuggestion",value:function(t,n,r){var i,o=e.findInOptions(t,n,r,!1),a=e.findInOptions(t,Bj,[],!0);i=void 0!==o.indexMatch?" in "+e.printLocation(o.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+e.printLocation(o.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+e.printLocation(o.path,t):". Did you mean one of these: "+e.print(wd(n))+e.printLocation(r,t),console.log('%cUnknown option detected: "'+t+'"'+i,Wj),Zj=!0}},{key:"findInOptions",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],u=t.toLowerCase(),l=void 0;for(var c in n){var f=void 0;if(void 0!==n[c].__type__&&!0===i){var d=e.findInOptions(t,n[c],XO.copyAndExtendArray(r,c));o>d.distance&&(a=d.closestMatch,s=d.path,o=d.distance,l=d.indexMatch)}else{var h;-1!==zm(h=c.toLowerCase()).call(h,u)&&(l=c),o>(f=e.levenshteinDistance(t,c))&&(a=c,s=XO.copyArray(r),o=f)}}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",r="\n\n"+n+"options = {\n",i=0;i<e.length;i++){for(var o=0;o<i+1;o++)r+=" ";r+=e[i]+": {\n"}for(var a=0;a<e.length+1;a++)r+=" ";r+=t+"\n";for(var s=0;s<e.length+1;s++){for(var u=0;u<e.length-s;u++)r+=" ";r+="}\n"}return r+"\n\n"}},{key:"print",value:function(e){return Sv(e).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)==e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}}]),e}(),Yj="string",Uj="boolean",Vj="number",qj="array",Gj="date",Xj="object",$j="moment",Qj={configure:{enabled:{boolean:Uj},filter:{boolean:Uj,function:"function"},container:{dom:"dom"},__type__:{object:Xj,boolean:Uj,function:"function"}},align:{string:Yj},alignCurrentTime:{string:Yj,undefined:"undefined"},rtl:{boolean:Uj,undefined:"undefined"},rollingMode:{follow:{boolean:Uj},offset:{number:Vj,undefined:"undefined"},__type__:{object:Xj}},onTimeout:{timeoutMs:{number:Vj},callback:{function:"function"},__type__:{object:Xj}},verticalScroll:{boolean:Uj,undefined:"undefined"},horizontalScroll:{boolean:Uj,undefined:"undefined"},autoResize:{boolean:Uj},throttleRedraw:{number:Vj},clickToUse:{boolean:Uj},dataAttributes:{string:Yj,array:qj},editable:{add:{boolean:Uj,undefined:"undefined"},remove:{boolean:Uj,undefined:"undefined"},updateGroup:{boolean:Uj,undefined:"undefined"},updateTime:{boolean:Uj,undefined:"undefined"},overrideItems:{boolean:Uj,undefined:"undefined"},__type__:{boolean:Uj,object:Xj}},end:{number:Vj,date:Gj,string:Yj,moment:$j},format:{minorLabels:{millisecond:{string:Yj,undefined:"undefined"},second:{string:Yj,undefined:"undefined"},minute:{string:Yj,undefined:"undefined"},hour:{string:Yj,undefined:"undefined"},weekday:{string:Yj,undefined:"undefined"},day:{string:Yj,undefined:"undefined"},week:{string:Yj,undefined:"undefined"},month:{string:Yj,undefined:"undefined"},year:{string:Yj,undefined:"undefined"},__type__:{object:Xj,function:"function"}},majorLabels:{millisecond:{string:Yj,undefined:"undefined"},second:{string:Yj,undefined:"undefined"},minute:{string:Yj,undefined:"undefined"},hour:{string:Yj,undefined:"undefined"},weekday:{string:Yj,undefined:"undefined"},day:{string:Yj,undefined:"undefined"},week:{string:Yj,undefined:"undefined"},month:{string:Yj,undefined:"undefined"},year:{string:Yj,undefined:"undefined"},__type__:{object:Xj,function:"function"}},__type__:{object:Xj}},moment:{function:"function"},groupHeightMode:{string:Yj},groupOrder:{string:Yj,function:"function"},groupEditable:{add:{boolean:Uj,undefined:"undefined"},remove:{boolean:Uj,undefined:"undefined"},order:{boolean:Uj,undefined:"undefined"},__type__:{boolean:Uj,object:Xj}},groupOrderSwap:{function:"function"},height:{string:Yj,number:Vj},hiddenDates:{start:{date:Gj,number:Vj,string:Yj,moment:$j},end:{date:Gj,number:Vj,string:Yj,moment:$j},repeat:{string:Yj},__type__:{object:Xj,array:qj}},itemsAlwaysDraggable:{item:{boolean:Uj,undefined:"undefined"},range:{boolean:Uj,undefined:"undefined"},__type__:{boolean:Uj,object:Xj}},limitSize:{boolean:Uj},locale:{string:Yj},locales:{__any__:{any:"any"},__type__:{object:Xj}},longSelectPressTime:{number:Vj},margin:{axis:{number:Vj},item:{horizontal:{number:Vj,undefined:"undefined"},vertical:{number:Vj,undefined:"undefined"},__type__:{object:Xj,number:Vj}},__type__:{object:Xj,number:Vj}},max:{date:Gj,number:Vj,string:Yj,moment:$j},maxHeight:{number:Vj,string:Yj},maxMinorChars:{number:Vj},min:{date:Gj,number:Vj,string:Yj,moment:$j},minHeight:{number:Vj,string:Yj},moveable:{boolean:Uj},multiselect:{boolean:Uj},multiselectPerGroup:{boolean:Uj},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:Yj,undefined:"undefined"},item:{string:Yj,undefined:"undefined"},__type__:{string:Yj,object:Xj}},selectable:{boolean:Uj},sequentialSelection:{boolean:Uj},showCurrentTime:{boolean:Uj},showMajorLabels:{boolean:Uj},showMinorLabels:{boolean:Uj},showWeekScale:{boolean:Uj},stack:{boolean:Uj},stackSubgroups:{boolean:Uj},cluster:{maxItems:{number:Vj,undefined:"undefined"},titleTemplate:{string:Yj,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:Uj,undefined:"undefined"},fitOnDoubleClick:{boolean:Uj,undefined:"undefined"},__type__:{boolean:Uj,object:Xj}},snap:{function:"function",null:"null"},start:{date:Gj,number:Vj,string:Yj,moment:$j},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:Yj,function:"function"},showTooltips:{boolean:Uj},tooltip:{followMouse:{boolean:Uj},overflowMethod:{string:["cap","flip","none"]},delay:{number:Vj},template:{function:"function"},__type__:{object:Xj}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:Uj,object:Xj}},timeAxis:{scale:{string:Yj,undefined:"undefined"},step:{number:Vj,undefined:"undefined"},__type__:{object:Xj}},type:{string:Yj},width:{string:Yj,number:Vj},preferZoom:{boolean:Uj},zoomable:{boolean:Uj},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Vj},zoomMax:{number:Vj},zoomMin:{number:Vj},xss:{disabled:{boolean:Uj},filterOptions:{__any__:{any:"any"},__type__:{object:Xj}},__type__:{object:Xj}},__type__:{object:Xj}},Kj={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},Jj={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},eA=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;xc(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Tc(e,[{key:"insertTo",value:function(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if("function"!==typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if("function"!==typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if("string"===typeof e)return Jj[e]}},{key:"setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==e){var n,r=this._isColorString(e);if(void 0!==r&&(e=r),!0===XO.isString(e)){if(!0===XO.isValidRGB(e)){var i=e.substr(4).substr(0,e.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===XO.isValidRGBA(e)){var o=e.substr(5).substr(0,e.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===XO.isValidHex(e)){var a=XO.hexToRGB(e);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){var s=void 0!==e.a?e.a:"1.0";n={r:e.r,g:e.g,b:e.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Sv(e));this._setColor(n,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===t&&(this.previousColor=XO.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Lv((function(){void 0!==e.closeCallback&&(e.closeCallback(),e.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===t&&(this.initialColor=XO.extend({},e)),this.color=e;var n=XO.RGBToHSV(e.r,e.g,e.b),r=2*Math.PI,i=this.r*n.s,o=this.centerCoordinates.x+i*Math.sin(r*n.h),a=this.centerCoordinates.y+i*Math.cos(r*n.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=XO.RGBToHSV(this.color.r,this.color.g,this.color.b);t.v=e/100;var n=XO.HSVToRGB(t.h,t.s,t.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=XO.RGBToHSV(e.r,e.g,e.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-t.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),$v(n).call(n),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(s){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(s){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=Gd(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=Gd(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=Gd(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=Gd(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new HD(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),YD(this.hammer,(function(t){e._moveSelector(t)})),this.hammer.on("tap",(function(t){e._moveSelector(t)})),this.hammer.on("panstart",(function(t){e._moveSelector(t)})),this.hammer.on("panmove",(function(t){e._moveSelector(t)})),this.hammer.on("panend",(function(t){e._moveSelector(t)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,u=2*Math.PI/360,l=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)t=this.centerCoordinates.x+i*Math.sin(u*r),n=this.centerCoordinates.y+i*Math.cos(u*r),s=XO.HSVToRGB(.002777777777777778*r,i*l,1),e.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",e.fillRect(t-.5,n-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(e){var t=this.colorPickerDiv.getBoundingClientRect(),n=e.center.x-t.left,r=e.center.y-t.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,u=Math.atan2(a,s),l=.98*Math.min(Math.sqrt(a*a+s*s),o),c=Math.cos(u)*l+i,f=Math.sin(u)*l+o;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px";var d=u/(2*Math.PI);d=d<0?d+1:d;var h=l/this.r,p=XO.RGBToHSV(this.color.r,this.color.g,this.color.b);p.h=d,p.s=h;var m=XO.HSVToRGB(p.h,p.s,p.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();VD("div.vis-configuration {\n position:relative;\n display:block;\n float:left;\n font-size:12px;\n}\n\ndiv.vis-configuration-wrapper {\n display:block;\n width:700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: \"\";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container{\n display:block;\n width:495px;\n background-color: #ffffff;\n border:2px solid #f7f8fa;\n border-radius:4px;\n margin-top:20px;\n left:10px;\n padding-left:5px;\n}\n\ndiv.vis-configuration.vis-config-button{\n display:block;\n width:495px;\n height:25px;\n vertical-align: middle;\n line-height:25px;\n background-color: #f7f8fa;\n border:2px solid #ceced0;\n border-radius:4px;\n margin-top:20px;\n left:10px;\n padding-left:5px;\n cursor: pointer;\n margin-bottom:30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover{\n background-color: #4588e6;\n border:2px solid #214373;\n color:#ffffff;\n}\n\ndiv.vis-configuration.vis-config-item{\n display:block;\n float:left;\n width:495px;\n height:25px;\n vertical-align: middle;\n line-height:25px;\n}\n\n\ndiv.vis-configuration.vis-config-item.vis-config-s2{\n left:10px;\n background-color: #f7f8fa;\n padding-left:5px;\n border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3{\n left:20px;\n background-color: #e4e9f0;\n padding-left:5px;\n border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4{\n left:30px;\n background-color: #cfd8e6;\n padding-left:5px;\n border-radius:3px;\n}\n\ndiv.vis-configuration.vis-config-header{\n font-size:18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label{\n width:120px;\n height:25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3{\n width:110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4{\n width:100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock{\n top:1px;\n width:30px;\n height:19px;\n border:1px solid #444444;\n border-radius:2px;\n padding:0px;\n margin:0px;\n cursor:pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left:-5px;\n}\n\n\ninput.vis-configuration.vis-config-rangeinput{\n position:relative;\n top:-5px;\n width:60px;\n /*height:13px;*/\n padding:1px;\n margin:0;\n pointer-events:none;\n}\n\ninput.vis-configuration.vis-config-range{\n /*removes default webkit styles*/\n -webkit-appearance: none;\n\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color:rgba(0,0,0,0);\n\n /*required for proper track sizing in FF*/\n width: 300px;\n height:20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring{\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n\n /*remove default tick marks*/\n color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height:30px;\n height:30px;\n width:150px;\n text-align:center;\n color: #ffffff;\n font-size:14px;\n border-radius:4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}");var tA=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;xc(this,e),this.parent=t,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},XO.extend(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new eA(i),this.wrapper=void 0}return Tc(e,[{key:"setOptions",value:function(e){if(void 0!==e){this.popupHistory={},this._removePopup();var t=!0;if("string"===typeof e)this.options.filter=e;else if(ad(e))this.options.filter=e.join();else if("object"===Wf(e)){if(null==e)throw new TypeError("options cannot be null");void 0!==e.container&&(this.options.container=e.container),void 0!==Yp(e)&&(this.options.filter=Yp(e)),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)}else"boolean"===typeof e?(this.options.filter=!0,t=e):"function"===typeof e&&(this.options.filter=e,t=!0);!1===Yp(this.options)&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=Yp(this.options),t=0,n=!1;for(var r in this.configureOptions)this.configureOptions.hasOwnProperty(r)&&(this.allowCreation=!1,n=!1,"function"===typeof e?n=(n=e(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==e&&-1===zm(e).call(e,r)||(n=!0),!1!==n&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(e){for(var t=this.moduleOptions,n=0;n<e.length;n++){if(void 0===t[e[n]]){t=void 0;break}t=t[e[n]]}return t}},{key:"_makeItem",value:function(e){if(!0===this.allowCreation){var t=document.createElement("div");t.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return uh(r).call(r,(function(e){t.appendChild(e)})),this.domElements.push(t),this.domElements.length}return 0}},{key:"_makeHeader",value:function(e){var t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerHTML=XO.xss(e),this._makeItem([],t)}},{key:"_makeLabel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");return r.className="vis-configuration vis-config-label vis-config-s"+t.length,r.innerHTML=!0===n?XO.xss("<i><b>"+e+":</b></i>"):XO.xss(e+":"),r}},{key:"_makeDropdown",value:function(e,t,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==t&&-1!==zm(e).call(e,t)&&(i=zm(e).call(e,t));for(var o=0;o<e.length;o++){var a=document.createElement("option");a.value=e[o],o===i&&(a.selected="selected"),a.innerHTML=e[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var u=this._makeLabel(n[n.length-1],n);this._makeItem(n,u,r)}},{key:"_makeRange",value:function(e,t,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(m){}s.step=a;var u="",l=0;if(void 0!==t){var c=1.2;t<0&&t*c<i?(s.min=Math.ceil(t*c),l=s.min,u="range increased"):t/c<i&&(s.min=Math.ceil(t/c),l=s.min,u="range increased"),t*c>o&&1!==o&&(s.max=Math.ceil(t*c),l=s.max,u="range increased"),s.value=t}else s.value=r;var f=document.createElement("input");f.className="vis-configuration vis-config-rangeinput",f.value=Number(s.value);var d=this;s.onchange=function(){f.value=this.value,d._update(Number(this.value),n)},s.oninput=function(){f.value=this.value};var h=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,h,s,f);""!==u&&this.popupHistory[p]!==l&&(this.popupHistory[p]=l,this._setupPopup(u,p))}},{key:"_makeButton",value:function(){var e=this;if(!0===this.options.showButton){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerHTML="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerHTML=XO.xss(e),r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:t}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var e=this;if(void 0!==this.popupDiv.html){var t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Lv((function(){e.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=Lv((function(){e._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(e,t,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=e,void 0!==t&&(r.checked=t,t!==e&&("object"===Wf(e)?t!==e.enabled&&this.changedOptions.push({path:n,value:t}):this.changedOptions.push({path:n,value:t})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(e,t,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=t,t!==e&&this.changedOptions.push({path:n,value:t});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(e,t,n){var r=this,i=e[1],o=document.createElement("div");"none"!==(t=void 0===t?i:t)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=t):o.className="vis-configuration vis-config-colorBlock none",t=void 0===t?i:t,o.onclick=function(){r._showColorPicker(t,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(e,t,n){var r=this;t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback((function(e){var i="rgba("+e.r+","+e.g+","+e.b+","+e.a+")";t.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){t.onclick=function(){r._showColorPicker(e,t,n)}}))}},{key:"_handleObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=Yp(this.options),o=!1;for(var a in e)if(e.hasOwnProperty(a)){r=!0;var s=e[a],u=XO.copyAndExtendArray(t,a);if("function"===typeof i&&!1===(r=i(a,t))&&!ad(s)&&"string"!==typeof s&&"boolean"!==typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,u,!0),this.allowCreation=!1===n),!1!==r){o=!0;var l=this._getValue(u);if(ad(s))this._handleArray(s,l,u);else if("string"===typeof s)this._makeTextInput(s,l,u);else if("boolean"===typeof s)this._makeCheckbox(s,l,u);else if(s instanceof Object){var c=!0;if(-1!==zm(t).call(t,"physics")&&this.moduleOptions.physics.solver!==a&&(c=!1),!0===c)if(void 0!==s.enabled){var f=XO.copyAndExtendArray(u,"enabled"),d=this._getValue(f);if(!0===d){var h=this._makeLabel(a,u,!0);this._makeItem(u,h),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,d,u)}else{var p=this._makeLabel(a,u,!0);this._makeItem(u,p),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,a,u)}}return o}},{key:"_handleArray",value:function(e,t,n){"string"===typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,n),e[1]!==t&&this.changedOptions.push({path:n,value:t})):"string"===typeof e[0]?(this._makeDropdown(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:t})):"number"===typeof e[0]&&(this._makeRange(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:Number(t)}))}},{key:"_update",value:function(e,t){var n=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;e="false"!==(e="true"===e||e)&&e;for(var i=0;i<t.length;i++)"global"!==t[i]&&(void 0===r[t[i]]&&(r[t[i]]={}),i!==t.length-1?r=r[t[i]]:r[t[i]]=e);return n}},{key:"_printOptions",value:function(){var e=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Sv(e,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var e={},t=0;t<this.changedOptions.length;t++)this._constructOptions(this.changedOptions[t].value,this.changedOptions[t].path,e);return e}}]),e}();function nA(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}var rA=function(e){Aw(n,e);var t=nA(n);function n(e,r,i,o){var a,s,u,l,c,f,d,h;if(xc(this,n),(h=t.call(this)).initTime=new Date,h.itemsDone=!1,!(_w(h)instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!ad(i)&&!ZO(i)&&i instanceof Object){var p=o;o=i,i=p}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=_w(h);if(h.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:RC},h.options=XO.deepExtend({},h.defaultOptions),o&&XO.setupXSSProtection(o.xss),h._create(e),!o||o&&"undefined"==typeof o.rtl){var v;h.dom.root.style.visibility="hidden";for(var g=h.dom.root;!v&&g;)v=window.getComputedStyle(g,null).direction,g=g.parentElement;h.options.rtl=v&&"rtl"==v.toLowerCase()}else h.options.rtl=o.rtl;o&&(o.rollingMode&&(h.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(h.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(h.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(h.options.loadingScreenTemplate=o.loadingScreenTemplate));var y=document.createElement("div");if(h.options.loadingScreenTemplate){var b,w=Gd(b=h.options.loadingScreenTemplate).call(b,_w(h)),x=w(h.dom.loadingScreen);x instanceof Object&&!(x instanceof Element)?w(y):x instanceof Element?(y.innerHTML="",y.appendChild(x)):void 0!=x&&(y.innerHTML=XO.xss(x))}function _(e,t){m.hasListeners(e)&&m.emit(e,m.getEventProperties(t))}return h.dom.loadingScreen.appendChild(y),h.components=[],h.body={dom:h.dom,domProps:h.props,emitter:{on:Gd(a=h.on).call(a,_w(h)),off:Gd(s=h.off).call(s,_w(h)),emit:Gd(u=h.emit).call(u,_w(h))},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:Gd(l=m._toScreen).call(l,m),toGlobalScreen:Gd(c=m._toGlobalScreen).call(c,m),toTime:Gd(f=m._toTime).call(f,m),toGlobalTime:Gd(d=m._toGlobalTime).call(d,m)}},h.range=new ID(h.body,h.options),h.components.push(h.range),h.body.range=h.range,h.timeAxis=new GD(h.body,h.options),h.timeAxis2=null,h.components.push(h.timeAxis),h.currentTime=new gN(h.body,h.options),h.components.push(h.currentTime),h.itemSet=new zj(h.body,h.options),h.components.push(h.itemSet),h.itemsData=null,h.groupsData=null,h.dom.root.onclick=function(e){_("click",e)},h.dom.root.ondblclick=function(e){_("doubleClick",e)},h.dom.root.oncontextmenu=function(e){_("contextmenu",e)},h.dom.root.onmouseover=function(e){_("mouseOver",e)},window.PointerEvent?(h.dom.root.onpointerdown=function(e){_("mouseDown",e)},h.dom.root.onpointermove=function(e){_("mouseMove",e)},h.dom.root.onpointerup=function(e){_("mouseUp",e)}):(h.dom.root.onmousemove=function(e){_("mouseMove",e)},h.dom.root.onmousedown=function(e){_("mouseDown",e)},h.dom.root.onmouseup=function(e){_("mouseUp",e)}),h.initialFitDone=!1,h.on("changed",(function(){if(null!=m.itemsData){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,void 0!=m.options.start||void 0!=m.options.end){if(void 0==m.options.start||void 0==m.options.end)var e=m.getItemRange();var t=void 0!=m.options.start?m.options.start:e.min,n=void 0!=m.options.end?m.options.end:e.max;m.setWindow(t,n,{animation:!1})}else m.fit({animation:!1});m.initialDrawDone||!m.initialRangeChangeDone&&(m.options.start||m.options.end)&&!m.options.rollingMode||(m.initialDrawDone=!0,m.itemSet.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&Lv((function(){return m.options.onInitialDrawComplete()}),0))}})),h.on("destroyTimeline",(function(){m.destroy()})),o&&h.setOptions(o),h.body.emitter.on("fit",(function(e){h._onFit(e),h.redraw()})),i&&h.setGroups(i),r&&h.setItems(r),h._redraw(),h}return Tc(n,[{key:"_createConfigurator",value:function(){return new tA(this,this.dom.container,Kj)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(e){if(!0===Hj.validate(e,Qj)&&console.log("%cErrors have been found in the supplied options object.",Wj),mN.prototype.setOptions.call(this,e),"type"in e&&e.type!==this.options.type){this.options.type=e.type;var t=this.itemsData;if(t){var n=this.getSelection();this.setItems(null),this.setItems(t.rawDS),this.setSelection(n)}}}},{key:"setItems",value:function(e){var t;this.itemsDone=!1,t=e?ZO(e)?UO(e):UO(new jC(e)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.itemSet&&this.itemSet.setItems(null!=t?t.rawDS:null)}},{key:"setGroups",value:function(e){var t;e?(ad(e)&&(e=new jC(e)),t=new AC(e,{filter:function(e){return!1!==e.visible}})):t=null,null!=this.groupsData&&"function"===typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=t,this.itemSet.setGroups(t)}},{key:"setData",value:function(e){e&&e.groups&&this.setGroups(e.groups),e&&e.items&&this.setItems(e.items)}},{key:"setSelection",value:function(e,t){this.itemSet&&this.itemSet.setSelection(e),t&&t.focus&&this.focus(e,t)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(e,t){if(this.itemsData&&void 0!=e){var n=ad(e)?e:[e],r=this.itemsData.get(n),i=null,o=null;if(uh(r).call(r,(function(e){var t=e.start.valueOf(),n="end"in e?e.end.valueOf():e.start.valueOf();(null===i||t<i)&&(i=t),(null===o||n>o)&&(o=n)})),null!==i&&null!==o){var a=this,s=this.itemSet.items[n[0]],u=-1*this._getScrollTop(),l=null,c=function(){var e=aA(a,s);e.shouldScroll&&e.itemTop!=l.itemTop&&(a._setScrollTop(-e.scrollOffset),a._redraw())},f=!t||void 0===t.zoom||t.zoom,d=(i+o)/2,h=f?1.1*(o-i):Math.max(this.range.end-this.range.start,1.1*(o-i)),p=!t||void 0===t.animation||t.animation;p||(l={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(d-h/2,d+h/2,{animation:p},(function(){c(),Lv(c,100)}),(function(e,t,n){var r=aA(a,s);if(!1!==r&&(l||(l=r),l.itemTop!=r.itemTop||l.shouldScroll)){l.itemTop!=r.itemTop&&r.shouldScroll&&(l=r,u=-1*a._getScrollTop());var i=u,o=l.scrollOffset,c=n?o:i+(o-i)*e;a._setScrollTop(-c),t||a._redraw()}}))}}}},{key:"fit",value:function(e,t){var n,r=!e||void 0===e.animation||e.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:r},t)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:r},t))}},{key:"getItemRange",value:function(){var e=this,t=this.getDataRange(),n=null!==t.min?t.min.valueOf():null,r=null!==t.max?t.max.valueOf():null,i=null,o=null;if(null!=n&&null!=r){var a=r-n;a<=0&&(a=10);var s=a/this.props.center.width,u={},l=0;if(uh(XO).call(XO,this.itemSet.items,(function(e,t){if(e.groupShowing){u[t]=e.redraw(!0),l=u[t].length}})),l>0)for(var c=function(e){uh(XO).call(XO,u,(function(t){t[e]()}))},f=0;f<l;f++)c(f);if(uh(XO).call(XO,this.itemSet.items,(function(t){var a,u,l=iA(t),c=oA(t);e.options.rtl?(a=l-(t.getWidthRight()+10)*s,u=c+(t.getWidthLeft()+10)*s):(a=l-(t.getWidthLeft()+10)*s,u=c+(t.getWidthRight()+10)*s),a<n&&(n=a,i=t),u>r&&(r=u,o=t)})),i&&o){var d=i.getWidthLeft()+10,h=o.getWidthRight()+10,p=this.props.center.width-d-h;p>0&&(this.options.rtl?(n=iA(i)-h*a/p,r=oA(o)+d*a/p):(n=iA(i)-d*a/p,r=oA(o)+h*a/p))}}return{min:null!=n?new Date(n):null,max:null!=r?new Date(r):null}}},{key:"getDataRange",value:function(){var e,t=null,n=null;this.itemsData&&uh(e=this.itemsData).call(e,(function(e){var r=XO.convert(e.start,"Date").valueOf(),i=XO.convert(void 0!=e.end?e.end:e.start,"Date").valueOf();(null===t||r<t)&&(t=r),(null===n||i>n)&&(n=i)}));return{min:null!=t?new Date(t):null,max:null!=n?new Date(n):null}}},{key:"getEventProperties",value:function(e){var t=e.center?e.center.x:e.clientX,n=e.center?e.center.y:e.clientY,r=this.dom.centerContainer.getBoundingClientRect(),i=this.options.rtl?r.right-t:t-r.left,o=n-r.top,a=this.itemSet.itemFromTarget(e),s=this.itemSet.groupFromTarget(e),u=pN.customTimeFromTarget(e),l=this.itemSet.options.snap||null,c=this.body.util.getScale(),f=this.body.util.getStep(),d=this._toTime(i),h=l?l(d,c,f):d,p=XO.getTarget(e),m=null;return null!=a?m="item":null!=u?m="custom-time":XO.hasParent(p,this.timeAxis.dom.foreground)||this.timeAxis2&&XO.hasParent(p,this.timeAxis2.dom.foreground)?m="axis":XO.hasParent(p,this.itemSet.dom.labelSet)?m="group-label":XO.hasParent(p,this.currentTime.bar)?m="current-time":XO.hasParent(p,this.dom.center)&&(m="background"),{event:e,item:a?a.id:null,isCluster:!!a&&!!a.isCluster,items:a?a.items||[]:null,group:s?s.groupId:null,customTime:u?u.options.id:null,what:m,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:i,y:o,time:d,snappedTime:h}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){mN.prototype._redraw.call(this)}},{key:"_onFit",value:function(e){var t=e.start,n=e.end,r=e.animation;n?this.range.setRange(t,n,{animation:r}):this.moveTo(t.valueOf(),{animation:r})}}]),n}(mN);function iA(e){return XO.convert(e.data.start,"Date").valueOf()}function oA(e){var t=void 0!=e.data.end?e.data.end:e.data.start;return XO.convert(t,"Date").valueOf()}function aA(e,t){if(!t.parent)return!1;var n=e.options.rtl?e.props.rightContainer.height:e.props.leftContainer.height,r=e.props.center.height,i=t.parent,o=i.top,a=!0,s=e.timeAxis.options.orientation.axis,u=function(){return"bottom"==s?i.height-t.top-t.height:t.top},l=-1*e._getScrollTop(),c=o+u(),f=t.height;return c<l?o+n<=o+u()+f&&(o+=u()-e.itemSet.options.margin.item.vertical):c+f>l+n?o+=u()+f-n+e.itemSet.options.margin.item.vertical:a=!1,{shouldScroll:a,scrollOffset:o=Math.min(o,r-n),itemTop:c}}var sA=function(){function e(t,n,r,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(xc(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=a,this._start=t,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=s,this.autoScaleStart=r,this.autoScaleEnd=i,this.formattingFunction=u,r||i){var l=this,c=function(e){var t=e-e%(l.magnitudefactor*l.minorSteps[l.minorStepIdx]);return e%(l.magnitudefactor*l.minorSteps[l.minorStepIdx])>l.magnitudefactor*l.minorSteps[l.minorStepIdx]*.5?t+l.magnitudefactor*l.minorSteps[l.minorStepIdx]:t};r&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),i&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}return Tc(e,[{key:"setCharHeight",value:function(e){this.majorCharHeight=e}},{key:"setHeight",value:function(e){this.containerHeight=e}},{key:"determineScale",value:function(){var e=this._end-this._start;this.scale=this.containerHeight/e;var t=this.majorCharHeight/this.scale,n=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var r=0;n<0&&(r=n);for(var i=!1,o=r;Math.abs(o)<=Math.abs(n);o++){this.magnitudefactor=Math.pow(10,o);for(var a=0;a<this.minorSteps.length;a++){if(this.magnitudefactor*this.minorSteps[a]>=t){i=!0,this.minorStepIdx=a;break}}if(!0===i)break}}},{key:"is_major",value:function(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)}},{key:"formatValue",value:function(e){var t=e.toPrecision(5);return"function"===typeof this.formattingFunction&&(t=this.formattingFunction(e)),"number"===typeof t?"".concat(t):"string"===typeof t?t:e.toPrecision(5)}},{key:"getLines",value:function(){for(var e=[],t=this.getStep(),n=(t-this._start%t)%t,r=this._start+n;this._end-r>1e-5;r+=t)r!=this._start&&e.push({major:this.is_major(r),y:this.convertValue(r),val:this.formatValue(r)});return e}},{key:"followScale",value:function(e){var t=this.minorStepIdx,n=this._start,r=this._end,i=this,o=function(){i.magnitudefactor*=2},a=function(){i.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==t||o(),o()):(this.minorStepIdx=2,1==t||a(),a()));for(var s=e.convertValue(0),u=e.getStep()*e.scale,l=!1,c=0;!l&&c++<5;){this.scale=u/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var f=this.containerHeight/this.scale;this._start=n,this._end=this._start+f;var d=this._end*this.scale,h=this.magnitudefactor*this.majorSteps[this.minorStepIdx],p=this.getFirstMajor()-e.getFirstMajor();if(this.zeroAlign){var m=s-d;this._end+=m/this.scale,this._start=this._end-f}else this.autoScaleStart?(this._start-=p/this.scale,this._end=this._start+f):(this._start+=h-p/this.scale,this._end=this._start+f);if(!this.autoScaleEnd&&this._end>r+1e-5)a(),l=!1;else{if(!this.autoScaleStart&&this._start<n-1e-5){if(!(this.zeroAlign&&n>=0)){a(),l=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&f<r-n?(o(),l=!1):l=!0}}}},{key:"convertValue",value:function(e){return this.containerHeight-(e-this._start)*this.scale}},{key:"screenToValue",value:function(e){return(this.containerHeight-e)/this.scale+this._start}}]),e}();function uA(e,t){var n="undefined"!==typeof Uf&&xs(e)||e["@@iterator"];if(!n){if(ad(e)||(n=function(e,t){var n;if(!e)return;if("string"===typeof e)return lA(e,t);var r=td(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return ts(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lA(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function lA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cA(e){var t=function(){if("undefined"===typeof Reflect||!xw)return!1;if(xw.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(xw(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lw(e);if(t){var i=Lw(this).constructor;n=xw(r,arguments,i)}else n=r.apply(this,arguments);return Pw(this,n)}}VD("\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {\n position: absolute;\n width: 100%;\n height: 0;\n border-bottom: 1px solid;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n\n.vis-data-axis .vis-y-axis.vis-major {\n width: 100%;\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-major.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n\n.vis-data-axis .vis-y-axis.vis-minor {\n position: absolute;\n width: 100%;\n color: #bebebe;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title {\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n bottom: 20px;\n text-align: center;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-measure {\n padding: 0;\n margin: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-left {\n bottom: 0;\n -webkit-transform-origin: left top;\n -moz-transform-origin: left top;\n -ms-transform-origin: left top;\n -o-transform-origin: left top;\n transform-origin: left bottom;\n -webkit-transform: rotate(-90deg);\n -moz-transform: rotate(-90deg);\n -ms-transform: rotate(-90deg);\n -o-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-right {\n bottom: 0;\n -webkit-transform-origin: right bottom;\n -moz-transform-origin: right bottom;\n -ms-transform-origin: right bottom;\n -o-transform-origin: right bottom;\n transform-origin: right bottom;\n -webkit-transform: rotate(90deg);\n -moz-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n -o-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.vis-legend {\n background-color: rgba(247, 252, 255, 0.65);\n padding: 5px;\n border: 1px solid #b3b3b3;\n box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);\n}\n\n.vis-legend-text {\n /*font-size: 10px;*/\n white-space: nowrap;\n display: inline-block\n}");var fA=function(e){Aw(n,e);var t=cA(n);function n(e,r,i,o){var a;xc(this,n),(a=t.call(this)).id=gC(),a.body=e,a.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(e){return"".concat(sD(e.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(e){return"".concat(sD(e.toPrecision(3)))},title:{text:void 0,style:void 0}}},a.linegraphOptions=o,a.linegraphSVG=i,a.props={},a.DOMelements={lines:{},labels:{},title:{}},a.dom={},a.scale=void 0,a.range={start:0,end:0},a.options=XO.extend({},a.defaultOptions),a.conversionFactor=1,a.setOptions(r),a.width=Number("".concat(a.options.width).replace("px","")),a.minWidth=a.width,a.height=a.linegraphSVG.getBoundingClientRect().height,a.hidden=!1,a.stepPixels=25,a.zeroCrossing=-1,a.amountOfSteps=-1,a.lineOffset=0,a.master=!0,a.masterAxis=null,a.svgElements={},a.iconsRemoved=!1,a.groups={},a.amountOfGroups=0,a._create(),void 0==a.scale&&a._redrawLabels(),a.framework={svg:a.svg,svgElements:a.svgElements,options:a.options,groups:a.groups};var s=_w(a);return a.body.emitter.on("verticalDrag",(function(){s.dom.lineContainer.style.top="".concat(s.body.domProps.scrollTop,"px")})),a}return Tc(n,[{key:"addGroup",value:function(e,t){this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1}},{key:"updateGroup",value:function(e,t){this.groups.hasOwnProperty(e)||(this.amountOfGroups+=1),this.groups[e]=t}},{key:"removeGroup",value:function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)}},{key:"setOptions",value:function(e){if(e){var t=!1;this.options.orientation!=e.orientation&&void 0!==e.orientation&&(t=!0);XO.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,e),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===t&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){var e;Vb(this.svgElements);var t=this.options.iconWidth,n=11.5;e="left"===this.options.orientation?4:this.width-t-4;var r=wd(this.groups);gE(r).call(r,(function(e,t){return e<t?-1:1}));var i,o=uA(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;!0!==this.groups[a].visible||void 0!==this.linegraphOptions.visibility[a]&&!0!==this.linegraphOptions.visibility[a]||(this.groups[a].getLegend(t,15,this.framework,e,n),n+=19)}}catch(s){o.e(s)}finally{o.f()}qb(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(Vb(this.svgElements),qb(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(e,t){this.range.start=e,this.range.end=t}},{key:"redraw",value:function(){var e=!1,t=0;for(var n in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(n)&&(!0!==this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&!0!==this.linegraphOptions.visibility[n]||t++);if(0===this.amountOfGroups||0===t)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var r=this.props,i=this.dom.frame;i.className="vis-data-axis",this._calculateCharSize();var o=this.options.orientation,a=this.options.showMinorLabels,s=this.options.showMajorLabels,u=this.body.dom.backgroundHorizontal.offsetWidth;r.minorLabelHeight=a?r.minorCharHeight:0,r.majorLabelHeight=s?r.majorCharHeight:0,r.minorLineWidth=u-this.lineOffset-this.width+2*this.options.minorLinesOffset,r.minorLineHeight=1,r.majorLineWidth=u-this.lineOffset-this.width+2*this.options.majorLinesOffset,r.majorLineHeight=1,"left"===o?(i.style.top="0",i.style.left="0",i.style.bottom="",i.style.width="".concat(this.width,"px"),i.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(i.style.top="",i.style.bottom="0",i.style.left="0",i.style.width="".concat(this.width,"px"),i.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),e=this._redrawLabels(),e=this._isResized()||e,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(o)}return e}},{key:"_redrawLabels",value:function(){var e=this,t=!1;Vb(this.DOMelements.lines),Vb(this.DOMelements.labels);var n=this.options.orientation,r=void 0!=this.options[n].range?this.options[n].range:{},i=!0;void 0!=r.max&&(this.range.end=r.max,i=!1);var o=!0;void 0!=r.min&&(this.range.start=r.min,o=!1),this.scale=new sA(this.range.start,this.range.end,o,i,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[n].format),!1===this.master&&void 0!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var a=this.scale.getLines();uh(a).call(a,(function(t){var r=t.y,i=t.major;e.options.showMinorLabels&&!1===i&&e._redrawLabel(r-2,t.val,n,"vis-y-axis vis-minor",e.props.minorCharHeight),i&&r>=0&&e._redrawLabel(r-2,t.val,n,"vis-y-axis vis-major",e.props.majorCharHeight),!0===e.master&&(i?e._redrawLine(r,n,"vis-grid vis-horizontal vis-major",e.options.majorLinesOffset,e.props.majorLineWidth):e._redrawLine(r,n,"vis-grid vis-horizontal vis-minor",e.options.minorLinesOffset,e.props.minorLineWidth))}));var s=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(s=this.props.titleCharHeight);var u=!0===this.options.icons?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-u&&!0===this.options.visible?(this.width=this.maxLabelSize+u,this.options.width="".concat(this.width,"px"),qb(this.DOMelements.lines),qb(this.DOMelements.labels),this.redraw(),t=!0):this.maxLabelSize<this.width-u&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+u),this.options.width="".concat(this.width,"px"),qb(this.DOMelements.lines),qb(this.DOMelements.labels),this.redraw(),t=!0):(qb(this.DOMelements.lines),qb(this.DOMelements.labels),t=!1),t}},{key:"convertValue",value:function(e){return this.scale.convertValue(e)}},{key:"screenToValue",value:function(e){return this.scale.screenToValue(e)}},{key:"_redrawLabel",value:function(e,t,n,r,i){var o=$b("div",this.DOMelements.labels,this.dom.frame);o.className=r,o.innerHTML=XO.xss(t),"left"===n?(o.style.left="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="right"):(o.style.right="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="left"),o.style.top="".concat(e-.5*i+this.options.labelOffsetY,"px"),t+="";var a=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<t.length*a&&(this.maxLabelSize=t.length*a)}},{key:"_redrawLine",value:function(e,t,n,r,i){if(!0===this.master){var o=$b("div",this.DOMelements.lines,this.dom.lineContainer);o.className=n,o.innerHTML="","left"===t?o.style.left="".concat(this.width-r,"px"):o.style.right="".concat(this.width-r,"px"),o.style.width="".concat(i,"px"),o.style.top="".concat(e,"px")}}},{key:"_redrawTitle",value:function(e){if(Vb(this.DOMelements.title),void 0!==this.options[e].title&&void 0!==this.options[e].title.text){var t=$b("div",this.DOMelements.title,this.dom.frame);t.className="vis-y-axis vis-title vis-".concat(e),t.innerHTML=XO.xss(this.options[e].title.text),void 0!==this.options[e].title.style&&XO.addCssText(t,this.options[e].title.style),"left"===e?t.style.left="".concat(this.props.titleCharHeight,"px"):t.style.right="".concat(this.props.titleCharHeight,"px"),t.style.width="".concat(this.height,"px")}qb(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var e=document.createTextNode("0"),t=document.createElement("div");t.className="vis-y-axis vis-minor vis-measure",t.appendChild(e),this.dom.frame.appendChild(t),this.props.minorCharHeight=t.clientHeight,this.props.minorCharWidth=t.clientWidth,this.dom.frame.removeChild(t)}if(!("majorCharHeight"in this.props)){var n=document.createTextNode("0"),r=document.createElement("div");r.className="vis-y-axis vis-major vis-measure",r.appendChild(n),this.dom.frame.appendChild(r),this.props.majorCharHeight=r.clientHeight,this.props.majorCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}if(!("titleCharHeight"in this.props)){var i=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-title vis-measure",o.appendChild(i),this.dom.frame.appendChild(o),this.props.titleCharHeight=o.clientHeight,this.props.titleCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}}}]),n}(uD);function dA(e,t){}function hA(e,t){return{style:(t="undefined"===typeof t?{}:t).style||e.options.drawPoints.style,styles:t.styles||e.options.drawPoints.styles,size:t.size||e.options.drawPoints.size,className:t.className||e.className}}function pA(e,t){}function mA(e,t){}function vA(e,t,n,r){this.id=t;this.options=XO.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],n),this.usingDefaultStyle=void 0===e.className,this.groupsUsingDefaultStyles=r,this.zeroPosition=0,this.update(e),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===e.visible||e.visible}function gA(e,t,n,r){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=n,this.options=XO.extend({},this.defaultOptions),this.linegraphOptions=r,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(t)}dA.draw=function(e,t,n,r){r=r||0;for(var i=function(e,t){var n=void 0;e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&"function"==typeof e.options.drawPoints.onRender&&(n=e.options.drawPoints.onRender);t.group.options&&t.group.options.drawPoints&&t.group.options.drawPoints.onRender&&"function"==typeof t.group.options.drawPoints.onRender&&(n=t.group.options.drawPoints.onRender);return n}(n,t),o=0;o<e.length;o++)if(i){var a=i(e[o],t);!0!==a&&"object"!==Wf(a)||Qb(e[o].screen_x+r,e[o].screen_y,hA(t,a),n.svgElements,n.svg,e[o].label)}else Qb(e[o].screen_x+r,e[o].screen_y,hA(t),n.svgElements,n.svg,e[o].label)},dA.drawIcon=function(e,t,n,r,i,o){var a=.5*i,s=Xb("rect",o.svgElements,o.svg);s.setAttributeNS(null,"x",t),s.setAttributeNS(null,"y",n-a),s.setAttributeNS(null,"width",r),s.setAttributeNS(null,"height",2*a),s.setAttributeNS(null,"class","vis-outline"),Qb(t+.5*r,n,hA(e),o.svgElements,o.svg)},pA.drawIcon=function(e,t,n,r,i,o){var a=.5*i,s=Xb("rect",o.svgElements,o.svg);s.setAttributeNS(null,"x",t),s.setAttributeNS(null,"y",n-a),s.setAttributeNS(null,"width",r),s.setAttributeNS(null,"height",2*a),s.setAttributeNS(null,"class","vis-outline");var u=Math.round(.3*r),l=e.options.barChart.width/u,c=Math.round(.4*i),f=Math.round(.75*i),d=Math.round((r-2*u)/3);if(Kb(t+.5*u+d,n+a-c-1,u,c,e.className+" vis-bar",o.svgElements,o.svg,e.style),Kb(t+1.5*u+d+2,n+a-f-1,u,f,e.className+" vis-bar",o.svgElements,o.svg,e.style),1==e.options.drawPoints.enabled){var h={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/l,className:e.className};Qb(t+.5*u+d,n+a-c-1,h,o.svgElements,o.svg),Qb(t+1.5*u+d+2,n+a-f-1,h,o.svgElements,o.svg)}},pA.draw=function(e,t,n){var r,i,o,a,s,u,l=[],c={},f=0;for(s=0;s<e.length;s++)if("bar"===(a=n.groups[e[s]]).options.style&&!0===a.visible&&(void 0===n.options.groups.visibility[e[s]]||!0===n.options.groups.visibility[e[s]]))for(u=0;u<t[e[s]].length;u++)l.push({screen_x:t[e[s]][u].screen_x,screen_end:t[e[s]][u].screen_end,screen_y:t[e[s]][u].screen_y,x:t[e[s]][u].x,end:t[e[s]][u].end,y:t[e[s]][u].y,groupId:e[s],label:t[e[s]][u].label}),f+=1;if(0!==f)for(gE(l).call(l,(function(e,t){return e.screen_x===t.screen_x?e.groupId<t.groupId?-1:1:e.screen_x-t.screen_x})),pA._getDataIntersections(c,l),s=0;s<l.length;s++){var d=void 0!=(a=n.groups[l[s].groupId]).options.barChart.minWidth?a.options.barChart.minWidth:.1*a.options.barChart.width,h=0;if(void 0===c[i=l[s].screen_x])s+1<l.length&&(r=Math.abs(l[s+1].screen_x-i)),o=pA._getSafeDrawData(r,a,d);else{var p=s+(c[i].amount-c[i].resolved);p<l.length&&(r=Math.abs(l[p].screen_x-i)),o=pA._getSafeDrawData(r,a,d),c[i].resolved+=1,!0===a.options.stack&&!0!==a.options.excludeFromStacking?l[s].screen_y<a.zeroPosition?(h=c[i].accumulatedNegative,c[i].accumulatedNegative+=a.zeroPosition-l[s].screen_y):(h=c[i].accumulatedPositive,c[i].accumulatedPositive+=a.zeroPosition-l[s].screen_y):!0===a.options.barChart.sideBySide&&(o.width=o.width/c[i].amount,o.offset+=c[i].resolved*o.width-.5*o.width*(c[i].amount+1))}var m=o.width,v=l[s].screen_x;if(void 0!=l[s].screen_end?v+=.5*(m=l[s].screen_end-l[s].screen_x):v+=o.offset,Kb(v,l[s].screen_y-h,m,a.zeroPosition-l[s].screen_y,a.className+" vis-bar",n.svgElements,n.svg,a.style),!0===a.options.drawPoints.enabled){var g={screen_x:l[s].screen_x,screen_y:l[s].screen_y-h,x:l[s].x,y:l[s].y,groupId:l[s].groupId,label:l[s].label};dA.draw([g],a,n,o.offset)}}},pA._getDataIntersections=function(e,t){for(var n,r=0;r<t.length;r++)r+1<t.length&&(n=Math.abs(t[r+1].screen_x-t[r].screen_x)),r>0&&(n=Math.min(n,Math.abs(t[r-1].screen_x-t[r].screen_x))),0===n&&(void 0===e[t[r].screen_x]&&(e[t[r].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[t[r].screen_x].amount+=1)},pA._getSafeDrawData=function(e,t,n){var r,i;return e<t.options.barChart.width&&e>0?(r=e<n?n:e,i=0,"left"===t.options.barChart.align?i-=.5*e:"right"===t.options.barChart.align&&(i+=.5*e)):(r=t.options.barChart.width,i=0,"left"===t.options.barChart.align?i-=.5*t.options.barChart.width:"right"===t.options.barChart.align&&(i+=.5*t.options.barChart.width)),{width:r,offset:i}},pA.getStackedYRange=function(e,t,n,r,i){if(e.length>0){gE(e).call(e,(function(e,t){return e.screen_x===t.screen_x?e.groupId<t.groupId?-1:1:e.screen_x-t.screen_x}));var o={};pA._getDataIntersections(o,e),t[r]=pA._getStackedYRange(o,e),t[r].yAxisOrientation=i,n.push(r)}},pA._getStackedYRange=function(e,t){for(var n,r=t[0].screen_y,i=t[0].screen_y,o=0;o<t.length;o++)void 0===e[n=t[o].screen_x]?(r=r>t[o].screen_y?t[o].screen_y:r,i=i<t[o].screen_y?t[o].screen_y:i):t[o].screen_y<0?e[n].accumulatedNegative+=t[o].screen_y:e[n].accumulatedPositive+=t[o].screen_y;for(var a in e)e.hasOwnProperty(a)&&(r=(r=r>e[a].accumulatedNegative?e[a].accumulatedNegative:r)>e[a].accumulatedPositive?e[a].accumulatedPositive:r,i=(i=i<e[a].accumulatedNegative?e[a].accumulatedNegative:i)<e[a].accumulatedPositive?e[a].accumulatedPositive:i);return{min:r,max:i}},mA.calcPath=function(e,t){if(null!=e&&e.length>0){return 1==t.options.interpolation.enabled?mA._catmullRom(e,t):mA._linear(e)}},mA.drawIcon=function(e,t,n,r,i,o){var a,s,u=.5*i,l=Xb("rect",o.svgElements,o.svg);(l.setAttributeNS(null,"x",t),l.setAttributeNS(null,"y",n-u),l.setAttributeNS(null,"width",r),l.setAttributeNS(null,"height",2*u),l.setAttributeNS(null,"class","vis-outline"),(a=Xb("path",o.svgElements,o.svg)).setAttributeNS(null,"class",e.className),void 0!==e.style&&a.setAttributeNS(null,"style",e.style),a.setAttributeNS(null,"d","M"+t+","+n+" L"+(t+r)+","+n),1==e.options.shaded.enabled&&(s=Xb("path",o.svgElements,o.svg),"top"==e.options.shaded.orientation?s.setAttributeNS(null,"d","M"+t+", "+(n-u)+"L"+t+","+n+" L"+(t+r)+","+n+" L"+(t+r)+","+(n-u)):s.setAttributeNS(null,"d","M"+t+","+n+" L"+t+","+(n+u)+" L"+(t+r)+","+(n+u)+"L"+(t+r)+","+n),s.setAttributeNS(null,"class",e.className+" vis-icon-fill"),void 0!==e.options.shaded.style&&""!==e.options.shaded.style&&s.setAttributeNS(null,"style",e.options.shaded.style)),1==e.options.drawPoints.enabled)&&Qb(t+.5*r,n,{style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className},o.svgElements,o.svg)},mA.drawShading=function(e,t,n,r){if(1==t.options.shaded.enabled){var i,o=Number(r.svg.style.height.replace("px","")),a=Xb("path",r.svgElements,r.svg),s="L";1==t.options.interpolation.enabled&&(s="C");var u=0;u="top"==t.options.shaded.orientation?0:"bottom"==t.options.shaded.orientation?o:Math.min(Math.max(0,t.zeroPosition),o),i="group"==t.options.shaded.orientation&&null!=n&&void 0!=n?"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,s,!0)+n[0][0]+","+n[0][1]+" Z":"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" V"+u+" H"+e[0][0]+" Z",a.setAttributeNS(null,"class",t.className+" vis-fill"),void 0!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style),a.setAttributeNS(null,"d",i)}},mA.draw=function(e,t,n){if(null!=e&&void 0!=e){var r=Xb("path",n.svgElements,n.svg);r.setAttributeNS(null,"class",t.className),void 0!==t.style&&r.setAttributeNS(null,"style",t.style);var i="L";1==t.options.interpolation.enabled&&(i="C"),r.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,i,!1))}},mA.serializePath=function(e,t,n){if(e.length<2)return"";var r,i=t;if(n)for(r=e.length-2;r>0;r--)i+=e[r][0]+","+e[r][1]+" ";else for(r=1;r<e.length;r++)i+=e[r][0]+","+e[r][1]+" ";return i},mA._catmullRomUniform=function(e){var t,n,r,i,o,a,s=[];s.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var u=1/6,l=e.length,c=0;c<l-1;c++)t=0==c?e[0]:e[c-1],n=e[c],r=e[c+1],i=c+2<l?e[c+2]:r,o={screen_x:(-t.screen_x+6*n.screen_x+r.screen_x)*u,screen_y:(-t.screen_y+6*n.screen_y+r.screen_y)*u},a={screen_x:(n.screen_x+6*r.screen_x-i.screen_x)*u,screen_y:(n.screen_y+6*r.screen_y-i.screen_y)*u},s.push([o.screen_x,o.screen_y]),s.push([a.screen_x,a.screen_y]),s.push([r.screen_x,r.screen_y]);return s},mA._catmullRom=function(e,t){var n=t.options.interpolation.alpha;if(0==n||void 0===n)return this._catmullRomUniform(e);var r,i,o,a,s,u,l,c,f,d,h,p,m,v,g,y,b,w,x,_=[];_.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var k=e.length,S=0;S<k-1;S++)r=0==S?e[0]:e[S-1],i=e[S],o=e[S+1],a=S+2<k?e[S+2]:o,l=Math.sqrt(Math.pow(r.screen_x-i.screen_x,2)+Math.pow(r.screen_y-i.screen_y,2)),c=Math.sqrt(Math.pow(i.screen_x-o.screen_x,2)+Math.pow(i.screen_y-o.screen_y,2)),f=Math.sqrt(Math.pow(o.screen_x-a.screen_x,2)+Math.pow(o.screen_y-a.screen_y,2)),v=Math.pow(f,n),y=Math.pow(f,2*n),g=Math.pow(c,n),b=Math.pow(c,2*n),x=Math.pow(l,n),d=2*(w=Math.pow(l,2*n))+3*x*g+b,h=2*y+3*v*g+b,(p=3*x*(x+g))>0&&(p=1/p),(m=3*v*(v+g))>0&&(m=1/m),s={screen_x:(-b*r.screen_x+d*i.screen_x+w*o.screen_x)*p,screen_y:(-b*r.screen_y+d*i.screen_y+w*o.screen_y)*p},u={screen_x:(y*i.screen_x+h*o.screen_x-b*a.screen_x)*m,screen_y:(y*i.screen_y+h*o.screen_y-b*a.screen_y)*m},0==s.screen_x&&0==s.screen_y&&(s=i),0==u.screen_x&&0==u.screen_y&&(u=o),_.push([s.screen_x,s.screen_y]),_.push([u.screen_x,u.screen_y]),_.push([o.screen_x,o.screen_y]);return _},mA._linear=function(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n].screen_x,e[n].screen_y]);return t},vA.prototype.setItems=function(e){null!=e?(this.itemsData=e,1==gE(this.options)&&XO.insertSort(this.itemsData,(function(e,t){return e.x>t.x?1:-1}))):this.itemsData=[]},vA.prototype.getItems=function(){return this.itemsData},vA.prototype.setZeroPosition=function(e){this.zeroPosition=e},vA.prototype.setOptions=function(e){if(void 0!==e){XO.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,e),"function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),XO.mergeOptions(this.options,e,"interpolation"),XO.mergeOptions(this.options,e,"drawPoints"),XO.mergeOptions(this.options,e,"shaded"),e.interpolation&&"object"==Wf(e.interpolation)&&e.interpolation.parametrization&&("uniform"==e.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==e.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},vA.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===e.visible||e.visible,this.style=e.style,this.setOptions(e.options)},vA.prototype.getLegend=function(e,t,n,r,i){void 0!=n&&null!=n||(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]});switch(void 0!=r&&null!=r||(r=0),void 0!=i&&null!=i||(i=.5*t),this.options.style){case"line":mA.drawIcon(this,r,i,e,t,n);break;case"points":case"point":dA.drawIcon(this,r,i,e,t,n);break;case"bar":pA.drawIcon(this,r,i,e,t,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},vA.prototype.getYRange=function(e){for(var t=e[0].y,n=e[0].y,r=0;r<e.length;r++)t=t>e[r].y?e[r].y:t,n=n<e[r].y?e[r].y:n;return{min:t,max:n,yAxisOrientation:this.options.yAxisOrientation}},gA.prototype=new uD,gA.prototype.clear=function(){this.groups={},this.amountOfGroups=0},gA.prototype.addGroup=function(e,t){1!=t.options.excludeFromLegend&&(this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1)},gA.prototype.updateGroup=function(e,t){this.groups[e]=t},gA.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)},gA.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)},gA.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},gA.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},gA.prototype.setOptions=function(e){XO.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,e)},gA.prototype.redraw=function(){var e=0,t=wd(this.groups);gE(t).call(t,(function(e,t){return e<t?-1:1}));for(var n=0;n<t.length;n++){var r=t[n];1!=this.groups[r].visible||void 0!==this.linegraphOptions.visibility[r]&&1!=this.linegraphOptions.visibility[r]||e++}if(0==this.options[this.side].visible||0==this.amountOfGroups||0==this.options.enabled||0==e)this.hide();else{if(this.show(),"top-left"==this.options[this.side].position||"bottom-left"==this.options[this.side].position?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),"top-left"==this.options[this.side].position||"top-right"==this.options[this.side].position)this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var i=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+i+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}0==this.options.icons?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var o="";for(n=0;n<t.length;n++)r=t[n],1!=this.groups[r].visible||void 0!==this.linegraphOptions.visibility[r]&&1!=this.linegraphOptions.visibility[r]||(o+=this.groups[r].content+"<br />");this.dom.textArea.innerHTML=XO.xss(o),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},gA.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=wd(this.groups);gE(e).call(e,(function(e,t){return e<t?-1:1})),Gb(this.svgElements);var t=window.getComputedStyle(this.dom.frame).paddingTop,n=Number(t.replace("px","")),r=n,i=this.options.iconSize,o=.75*this.options.iconSize,a=n+.5*o+3;this.svg.style.width=i+5+n+"px";for(var s=0;s<e.length;s++){var u=e[s];1!=this.groups[u].visible||void 0!==this.linegraphOptions.visibility[u]&&1!=this.linegraphOptions.visibility[u]||(this.groups[u].getLegend(i,o,this.framework,r,a),a+=o+this.options.iconSpacing)}}};var yA="__ungrouped__";function bA(e,t){this.id=gC(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=XO.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(e,t,r){n._onAdd(t.items)},update:function(e,t,r){n._onUpdate(t.items)},remove:function(e,t,r){n._onRemove(t.items)}},this.groupListeners={add:function(e,t,r){n._onAddGroups(t.items)},update:function(e,t,r){n._onUpdateGroups(t.items)},remove:function(e,t,r){n._onRemoveGroups(t.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(t),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",(function(){n.svg.style.left=XO.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)})),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}bA.prototype=new uD,bA.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new fA(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new fA(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new gA(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new gA(this.body,this.options.legend,"right",this.options.groups),this.show()},bA.prototype.setOptions=function(e){if(e){void 0===e.graphHeight&&void 0!==e.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==e.graphHeight&&Mm((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),XO.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,e),XO.mergeOptions(this.options,e,"interpolation"),XO.mergeOptions(this.options,e,"drawPoints"),XO.mergeOptions(this.options,e,"shaded"),XO.mergeOptions(this.options,e,"legend"),e.interpolation&&"object"==Wf(e.interpolation)&&e.interpolation.parametrization&&("uniform"==e.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==e.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==e.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==e.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(yA)&&this.groups[yA].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},bA.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},bA.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},bA.prototype.setItems=function(e){var t,n=this,r=this.itemsData;if(e){if(!ZO(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=UO(e)}else this.itemsData=null;if(r&&(uh(XO).call(XO,this.itemListeners,(function(e,t){r.off(t,e)})),r.dispose(),t=r.getIds(),this._onRemove(t)),this.itemsData){var i=this.id;uh(XO).call(XO,this.itemListeners,(function(e,t){n.itemsData.on(t,e,i)})),t=this.itemsData.getIds(),this._onAdd(t)}},bA.prototype.setGroups=function(e){var t,n=this;if(this.groupsData){uh(XO).call(XO,this.groupListeners,(function(e,t){n.groupsData.off(t,e)})),t=this.groupsData.getIds(),this.groupsData=null;for(var r=0;r<t.length;r++)this._removeGroup(t[r])}if(e){if(!ZO(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=e}else this.groupsData=null;if(this.groupsData){var i=this.id;uh(XO).call(XO,this.groupListeners,(function(e,t){n.groupsData.on(t,e,i)})),t=this.groupsData.getIds(),this._onAddGroups(t)}},bA.prototype._onUpdate=function(e){this._updateAllGroupData(e)},bA.prototype._onAdd=function(e){this._onUpdate(e)},bA.prototype._onRemove=function(e){this._onUpdate(e)},bA.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)},bA.prototype._onAddGroups=function(e){this._onUpdateGroups(e)},bA.prototype._onRemoveGroups=function(e){for(var t=0;t<e.length;t++)this._removeGroup(e[t]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})},bA.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&("right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])},bA.prototype._updateGroup=function(e,t){this.groups.hasOwnProperty(t)?(this.groups[t].update(e),"right"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.updateGroup(t,this.groups[t]),this.legendRight.updateGroup(t,this.groups[t]),this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t)):(this.yAxisLeft.updateGroup(t,this.groups[t]),this.legendLeft.updateGroup(t,this.groups[t]),this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t))):(this.groups[t]=new vA(e,t,this.options,this.groupsUsingDefaultStyles),"right"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.addGroup(t,this.groups[t]),this.legendRight.addGroup(t,this.groups[t])):(this.yAxisLeft.addGroup(t,this.groups[t]),this.legendLeft.addGroup(t,this.groups[t]))),this.legendLeft.redraw(),this.legendRight.redraw()},bA.prototype._updateAllGroupData=function(e,t){if(null!=this.itemsData){var n={},r=this.itemsData.get(),i=this.itemsData.idProp,o={};e&&md(e).call(e,(function(e){o[e]=e}));for(var a={},s=0;s<r.length;s++){var u=r[s],l=u.group;null!==l&&void 0!==l||(l=yA),a.hasOwnProperty(l)?a[l]++:a[l]=1}var c={};if(!t&&e)for(l in this.groups)if(this.groups.hasOwnProperty(l)){var f=(m=this.groups[l]).getItems();n[l]=Yp(f).call(f,(function(e){return c[e[i]]=e[i],e[i]!==o[e[i]]}));var d=a[l];a[l]-=n[l].length,n[l].length<d&&(n[l][d-1]={})}for(s=0;s<r.length;s++)if(null!==(l=(u=r[s]).group)&&void 0!==l||(l=yA),t||!e||u[i]===o[u[i]]||!c.hasOwnProperty(u[i])){n.hasOwnProperty(l)||(n[l]=new Array(a[l]));var h=XO.bridgeObject(u);h.x=XO.convert(u.x,"Date"),h.end=XO.convert(u.end,"Date"),h.orginalY=u.y,h.y=Number(u.y),h[i]=u[i];var p=n[l].length-a[l]--;n[l][p]=h}for(l in this.groups)this.groups.hasOwnProperty(l)&&(n.hasOwnProperty(l)||(n[l]=new Array(0)));for(l in n)if(n.hasOwnProperty(l))if(0==n[l].length)this.groups.hasOwnProperty(l)&&this._removeGroup(l);else{var m=void 0;void 0!=this.groupsData&&(m=this.groupsData.get(l)),void 0==m&&(m={id:l,content:this.options.defaultGroup+l}),this._updateGroup(m,l),this.groups[l].setItems(n[l])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},bA.prototype.redraw=function(){var e=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,e=this._isResized()||e;var t,n=this.body.range.end-this.body.range.start,r=n!=this.lastVisibleInterval;(this.lastVisibleInterval=n,1==e)&&(this.svg.style.width=XO.option.asSize(3*this.props.width),this.svg.style.left=XO.option.asSize(-this.props.width),-1==zm(t=this.options.height+"").call(t,"%")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0));if(1==this.updateSVGheight?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",1==e||1==r||1==this.abortedGraphUpdate||1==this.forceGraphUpdate)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(0!=this.lastStart){var i=this.body.range.start-this.lastStart,o=this.body.range.end-this.body.range.start;if(0!=this.props.width){var a=i*(this.props.width/o);this.svg.style.left=-this.props.width-a+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e},bA.prototype._getSortedGroupIds=function(){var e=[];for(var t in this.groups)if(this.groups.hasOwnProperty(t)){var n=this.groups[t];1!=n.visible||void 0!==this.options.groups.visibility[t]&&1!=this.options.groups.visibility[t]||e.push({id:t,zIndex:n.options.zIndex})}XO.insertSort(e,(function(e,t){var n=e.zIndex,r=t.zIndex;return void 0===n&&(n=0),void 0===r&&(r=0),n==r?0:n<r?-1:1}));for(var r=new Array(e.length),i=0;i<e.length;i++)r[i]=e[i].id;return r},bA.prototype._updateGraph=function(){if(Vb(this.svgElements),0!=this.props.width&&null!=this.itemsData){var e,t,n={},r=this.body.util.toGlobalTime(-this.body.domProps.root.width),i=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var a={};for(this._getRelevantData(o,a,r,i),this._applySampling(o,a),t=0;t<o.length;t++)this._convertXcoordinates(a[o[t]]);if(this._getYRanges(o,a,n),1==this._updateYAxis(o,n))return qb(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var s=void 0;for(t=0;t<o.length;t++)e=this.groups[o[t]],!0===this.options.stack&&"line"===this.options.style&&(void 0!=e.options.excludeFromStacking&&e.options.excludeFromStacking||(void 0!=s&&(this._stack(a[e.id],a[s.id]),1==e.options.shaded.enabled&&"group"!==e.options.shaded.orientation&&("top"==e.options.shaded.orientation&&"group"!==s.options.shaded.orientation?(s.options.shaded.orientation="group",s.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=s.id))),s=e)),this._convertYcoordinates(a[o[t]],e);var u={};for(t=0;t<o.length;t++)if("line"===(e=this.groups[o[t]]).options.style&&1==e.options.shaded.enabled){var l=a[o[t]];if(null==l||0==l.length)continue;if(u.hasOwnProperty(o[t])||(u[o[t]]=mA.calcPath(l,e)),"group"===e.options.shaded.orientation){var c=e.options.shaded.groupId;if(-1===zm(o).call(o,c)){console.log(e.id+": Unknown shading group target given:"+c);continue}u.hasOwnProperty(c)||(u[c]=mA.calcPath(a[c],this.groups[c])),mA.drawShading(u[o[t]],e,u[c],this.framework)}else mA.drawShading(u[o[t]],e,void 0,this.framework)}for(pA.draw(o,a,this.framework),t=0;t<o.length;t++)if(e=this.groups[o[t]],a[o[t]].length>0)switch(e.options.style){case"line":u.hasOwnProperty(o[t])||(u[o[t]]=mA.calcPath(a[o[t]],e)),mA.draw(u[o[t]],e,this.framework);case"point":case"points":"point"!=e.options.style&&"points"!=e.options.style&&1!=e.options.drawPoints.enabled||dA.draw(a[o[t]],e,this.framework)}}}return qb(this.svgElements),!1},bA.prototype._stack=function(e,t){var n,r,i,o,a;n=0;for(var s=0;s<e.length;s++){o=void 0,a=void 0;for(var u=n;u<t.length;u++){if(t[u].x===e[s].x){o=t[u],a=t[u],n=u;break}if(t[u].x>e[s].x){a=t[u],o=0==u?a:t[u-1],n=u;break}}void 0===a&&(o=t[t.length-1],a=t[t.length-1]),r=a.x-o.x,i=a.y-o.y,e[s].y=0==r?e[s].orginalY+a.y:e[s].orginalY+i/r*(e[s].x-o.x)+o.y}},bA.prototype._getRelevantData=function(e,t,n,r){var i,o,a,s;if(e.length>0)for(o=0;o<e.length;o++){var u=(i=this.groups[e[o]]).getItems();if(1==gE(i.options)){var l=function(e,t){return e.getTime()==t.getTime()?0:e<t?-1:1},c=Math.max(0,XO.binarySearchValue(u,n,"x","before",l)),f=Math.min(u.length,XO.binarySearchValue(u,r,"x","after",l)+1);f<=0&&(f=u.length);var d=new Array(f-c);for(a=c;a<f;a++)s=i.itemsData[a],d[a-c]=s;t[e[o]]=d}else t[e[o]]=i.itemsData}},bA.prototype._applySampling=function(e,t){if(e.length>0)for(var n=0;n<e.length;n++)if(1==this.groups[e[n]].options.sampling){var r=t[e[n]];if(r.length>0){var i,o=r.length,a=o/(this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x));i=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(a)));for(var s=new Array(o),u=0;u<o;u+=i){s[Math.round(u/i)]=r[u]}t[e[n]]=Wh(s).call(s,0,Math.round(o/i))}}},bA.prototype._getYRanges=function(e,t,n){var r,i,o,a,s=[],u=[];if(e.length>0){for(o=0;o<e.length;o++)r=t[e[o]],a=this.groups[e[o]].options,r.length>0&&(i=this.groups[e[o]],!0===a.stack&&"bar"===a.style?"left"===a.yAxisOrientation?s=Jf(s).call(s,r):u=Jf(u).call(u,r):n[e[o]]=i.getYRange(r,e[o]));pA.getStackedYRange(s,n,e,"__barStackLeft","left"),pA.getStackedYRange(u,n,e,"__barStackRight","right")}},bA.prototype._updateYAxis=function(e,t){var n,r,i=!1,o=!1,a=!1,s=1e9,u=1e9,l=-1e9,c=-1e9;if(e.length>0){for(var f=0;f<e.length;f++){var d=this.groups[e[f]];d&&"right"!=d.options.yAxisOrientation?(o=!0,s=1e9,l=-1e9):d&&d.options.yAxisOrientation&&(a=!0,u=1e9,c=-1e9)}for(f=0;f<e.length;f++)t.hasOwnProperty(e[f])&&!0!==t[e[f]].ignore&&(n=t[e[f]].min,r=t[e[f]].max,"right"!=t[e[f]].yAxisOrientation?(o=!0,s=s>n?n:s,l=l<r?r:l):(a=!0,u=u>n?n:u,c=c<r?r:c));1==o&&this.yAxisLeft.setRange(s,l),1==a&&this.yAxisRight.setRange(u,c)}i=this._toggleAxisVisiblity(o,this.yAxisLeft)||i,i=this._toggleAxisVisiblity(a,this.yAxisRight)||i,1==a&&1==o?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!o,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==a?this.yAxisRight.width:0,i=this.yAxisLeft.redraw()||i,i=this.yAxisRight.redraw()||i):i=this.yAxisRight.redraw()||i;var h=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(f=0;f<h.length;f++)-1!=zm(e).call(e,h[f])&&Wh(e).call(e,zm(e).call(e,h[f]),1);return i},bA.prototype._toggleAxisVisiblity=function(e,t){var n=!1;return 0==e?t.dom.frame.parentNode&&0==t.hidden&&(t.hide(),n=!0):t.dom.frame.parentNode||1!=t.hidden||(t.show(),n=!0),n},bA.prototype._convertXcoordinates=function(e){for(var t=this.body.util.toScreen,n=0;n<e.length;n++)e[n].screen_x=t(e[n].x)+this.props.width,e[n].screen_y=e[n].y,void 0!=e[n].end?e[n].screen_end=t(e[n].end)+this.props.width:e[n].screen_end=void 0},bA.prototype._convertYcoordinates=function(e,t){var n=this.yAxisLeft,r=Number(this.svg.style.height.replace("px",""));"right"==t.options.yAxisOrientation&&(n=this.yAxisRight);for(var i=0;i<e.length;i++)e[i].screen_y=Math.round(n.convertValue(e[i].y));t.setZeroPosition(Math.min(r,n.convertValue(0)))};var wA="string",xA="boolean",_A="number",kA="date",SA="object",MA="moment",TA={configure:{enabled:{boolean:xA},filter:{boolean:xA,function:"function"},container:{dom:"dom"},__type__:{object:SA,boolean:xA,function:"function"}},alignCurrentTime:{string:wA,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:wA},sort:{boolean:xA},sampling:{boolean:xA},stack:{boolean:xA},graphHeight:{string:wA,number:_A},shaded:{enabled:{boolean:xA},orientation:{string:["bottom","top","zero","group"]},groupId:{object:SA},__type__:{boolean:xA,object:SA}},style:{string:["line","bar","points"]},barChart:{width:{number:_A},minWidth:{number:_A},sideBySide:{boolean:xA},align:{string:["left","center","right"]},__type__:{object:SA}},interpolation:{enabled:{boolean:xA},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:_A},__type__:{object:SA,boolean:xA}},drawPoints:{enabled:{boolean:xA},onRender:{function:"function"},size:{number:_A},style:{string:["square","circle"]},__type__:{object:SA,boolean:xA,function:"function"}},dataAxis:{showMinorLabels:{boolean:xA},showMajorLabels:{boolean:xA},showWeekScale:{boolean:xA},icons:{boolean:xA},width:{string:wA,number:_A},visible:{boolean:xA},alignZeros:{boolean:xA},left:{range:{min:{number:_A,undefined:"undefined"},max:{number:_A,undefined:"undefined"},__type__:{object:SA}},format:{function:"function"},title:{text:{string:wA,number:_A,undefined:"undefined"},style:{string:wA,undefined:"undefined"},__type__:{object:SA}},__type__:{object:SA}},right:{range:{min:{number:_A,undefined:"undefined"},max:{number:_A,undefined:"undefined"},__type__:{object:SA}},format:{function:"function"},title:{text:{string:wA,number:_A,undefined:"undefined"},style:{string:wA,undefined:"undefined"},__type__:{object:SA}},__type__:{object:SA}},__type__:{object:SA}},legend:{enabled:{boolean:xA},icons:{boolean:xA},left:{visible:{boolean:xA},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:SA}},right:{visible:{boolean:xA},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:SA}},__type__:{object:SA,boolean:xA}},groups:{visibility:{any:"any"},__type__:{object:SA}},autoResize:{boolean:xA},throttleRedraw:{number:_A},clickToUse:{boolean:xA},end:{number:_A,date:kA,string:wA,moment:MA},format:{minorLabels:{millisecond:{string:wA,undefined:"undefined"},second:{string:wA,undefined:"undefined"},minute:{string:wA,undefined:"undefined"},hour:{string:wA,undefined:"undefined"},weekday:{string:wA,undefined:"undefined"},day:{string:wA,undefined:"undefined"},week:{string:wA,undefined:"undefined"},month:{string:wA,undefined:"undefined"},quarter:{string:wA,undefined:"undefined"},year:{string:wA,undefined:"undefined"},__type__:{object:SA}},majorLabels:{millisecond:{string:wA,undefined:"undefined"},second:{string:wA,undefined:"undefined"},minute:{string:wA,undefined:"undefined"},hour:{string:wA,undefined:"undefined"},weekday:{string:wA,undefined:"undefined"},day:{string:wA,undefined:"undefined"},week:{string:wA,undefined:"undefined"},month:{string:wA,undefined:"undefined"},quarter:{string:wA,undefined:"undefined"},year:{string:wA,undefined:"undefined"},__type__:{object:SA}},__type__:{object:SA}},moment:{function:"function"},height:{string:wA,number:_A},hiddenDates:{start:{date:kA,number:_A,string:wA,moment:MA},end:{date:kA,number:_A,string:wA,moment:MA},repeat:{string:wA},__type__:{object:SA,array:"array"}},locale:{string:wA},locales:{__any__:{any:"any"},__type__:{object:SA}},max:{date:kA,number:_A,string:wA,moment:MA},maxHeight:{number:_A,string:wA},maxMinorChars:{number:_A},min:{date:kA,number:_A,string:wA,moment:MA},minHeight:{number:_A,string:wA},moveable:{boolean:xA},multiselect:{boolean:xA},orientation:{string:wA},showCurrentTime:{boolean:xA},showMajorLabels:{boolean:xA},showMinorLabels:{boolean:xA},showWeekScale:{boolean:xA},snap:{function:"function",null:"null"},start:{date:kA,number:_A,string:wA,moment:MA},timeAxis:{scale:{string:wA,undefined:"undefined"},step:{number:_A,undefined:"undefined"},__type__:{object:SA}},width:{string:wA,number:_A},zoomable:{boolean:xA},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:_A},zoomMin:{number:_A},zIndex:{number:_A},__type__:{object:SA}},EA={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function CA(e,t,n,r){var i,o,a,s,u,l,c;if(!ad(n)&&!ZO(n)&&n instanceof Object){var f=r;r=n,n=f}r&&r.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var d=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:RC,width:null,height:null,maxHeight:null,minHeight:null},this.options=XO.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:Gd(i=this.on).call(i,this),off:Gd(o=this.off).call(o,this),emit:Gd(a=this.emit).call(a,this)},hiddenDates:[],util:{getScale:function(){return d.timeAxis.step.scale},getStep:function(){return d.timeAxis.step.step},toScreen:Gd(s=d._toScreen).call(s,d),toGlobalScreen:Gd(u=d._toGlobalScreen).call(u,d),toTime:Gd(l=d._toTime).call(l,d),toGlobalTime:Gd(c=d._toGlobalTime).call(c,d)}},this.range=new ID(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new GD(this.body),this.components.push(this.timeAxis),this.currentTime=new gN(this.body),this.components.push(this.currentTime),this.linegraph=new bA(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",(function(e){d.emit("click",d.getEventProperties(e))})),this.on("doubletap",(function(e){d.emit("doubleClick",d.getEventProperties(e))})),this.dom.root.oncontextmenu=function(e){d.emit("contextmenu",d.getEventProperties(e))},this.initialFitDone=!1,this.on("changed",(function(){if(null!=d.itemsData){if(!d.initialFitDone&&!d.options.rollingMode)if(d.initialFitDone=!0,void 0!=d.options.start||void 0!=d.options.end){if(void 0==d.options.start||void 0==d.options.end)var e=d.getItemRange();var t=void 0!=d.options.start?d.options.start:e.min,n=void 0!=d.options.end?d.options.end:e.max;d.setWindow(t,n,{animation:!1})}else d.fit({animation:!1});d.initialDrawDone||!d.initialRangeChangeDone&&(d.options.start||d.options.end)&&!d.options.rollingMode||(d.initialDrawDone=!0,d.dom.root.style.visibility="visible",d.dom.loadingScreen.parentNode.removeChild(d.dom.loadingScreen),d.options.onInitialDrawComplete&&Lv((function(){return d.options.onInitialDrawComplete()}),0))}})),r&&this.setOptions(r),n&&this.setGroups(n),t&&this.setItems(t),this._redraw()}CA.prototype=new mN,CA.prototype.setOptions=function(e){!0===Hj.validate(e,TA)&&console.log("%cErrors have been found in the supplied options object.",Wj),mN.prototype.setOptions.call(this,e)},CA.prototype.setItems=function(e){var t,n=null==this.itemsData;if(t=e?ZO(e)?UO(e):UO(new jC(e)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.linegraph&&this.linegraph.setItems(null!=t?t.rawDS:null),n)if(void 0!=this.options.start||void 0!=this.options.end){var r=void 0!=this.options.start?this.options.start:null,i=void 0!=this.options.end?this.options.end:null;this.setWindow(r,i,{animation:!1})}else this.fit({animation:!1})},CA.prototype.setGroups=function(e){var t;t=e?ZO(e)?e:new jC(e):null,this.groupsData=t,this.linegraph.setGroups(t)},CA.prototype.getLegend=function(e,t,n){return void 0===t&&(t=15),void 0===n&&(n=15),void 0!==this.linegraph.groups[e]?this.linegraph.groups[e].getLegend(t,n):"cannot find group:'"+e+"'"},CA.prototype.isGroupVisible=function(e){return void 0!==this.linegraph.groups[e]&&(this.linegraph.groups[e].visible&&(void 0===this.linegraph.options.groups.visibility[e]||1==this.linegraph.options.groups.visibility[e]))},CA.prototype.getDataRange=function(){var e=null,t=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&1==this.linegraph.groups[n].visible)for(var r=0;r<this.linegraph.groups[n].itemsData.length;r++){var i=this.linegraph.groups[n].itemsData[r],o=XO.convert(i.x,"Date").valueOf();e=null==e||e>o?o:e,t=null==t||t<o?o:t}return{min:null!=e?new Date(e):null,max:null!=t?new Date(t):null}},CA.prototype.getEventProperties=function(e){var t=e.center?e.center.x:e.clientX,n=e.center?e.center.y:e.clientY,r=t-XO.getAbsoluteLeft(this.dom.centerContainer),i=n-XO.getAbsoluteTop(this.dom.centerContainer),o=this._toTime(r),a=pN.customTimeFromTarget(e),s=XO.getTarget(e),u=null;XO.hasParent(s,this.timeAxis.dom.foreground)||this.timeAxis2&&XO.hasParent(s,this.timeAxis2.dom.foreground)?u="axis":XO.hasParent(s,this.linegraph.yAxisLeft.dom.frame)||XO.hasParent(s,this.linegraph.yAxisRight.dom.frame)?u="data-axis":XO.hasParent(s,this.linegraph.legendLeft.dom.frame)||XO.hasParent(s,this.linegraph.legendRight.dom.frame)?u="legend":null!=a?u="custom-time":XO.hasParent(s,this.currentTime.bar)?u="current-time":XO.hasParent(s,this.dom.center)&&(u="background");var l=[],c=this.linegraph.yAxisLeft,f=this.linegraph.yAxisRight;return!c.hidden&&this.itemsData.length>0&&l.push(c.screenToValue(i)),!f.hidden&&this.itemsData.length>0&&l.push(f.screenToValue(i)),{event:e,customTime:a?a.options.id:null,what:u,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:r,y:i,time:o,value:l}},CA.prototype._createConfigurator=function(){return new tA(this,this.dom.container,EA)};var OA=Jb();RC.locale(OA);var DA={Core:mN,DateUtil:PD,Range:ID,stack:ej,TimeStep:UD,components:{items:{Item:sj,BackgroundItem:mj,BoxItem:lj,ClusterItem:Oj,PointItem:fj,RangeItem:hj},BackgroundGroup:ij,Component:uD,CurrentTime:gN,CustomTime:pN,DataAxis:fA,DataScale:sA,GraphGroup:vA,Group:nj,ItemSet:zj,Legend:gA,LineGraph:bA,TimeAxis:GD}}},15677:function(e,t,n){"use strict";n.r(t),t.default={}},24654:function(){},66115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},48912:function(e){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},56690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},54069:function(e){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},50468:function(e,t,n){var r=n(48912),i=n(54069);e.exports=function(e,t){var n=i(e,t,"get");return r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},89728:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},38416:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},73808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},75263:function(e,t,n){var r=n(18698).default;function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,n){var r=n(18698).default,i=n(66115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},30907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},70885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40181);function i(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},42982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);var i=n(40181);function o(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,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},71002: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},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(o,a),o}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=n(72791),t=n(54164);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(43144),o=n(89611);function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(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}}var l=n(71002),c=n(97326);function f(e,t){if(t&&("object"===(0,l.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,c.Z)(e)}function d(e){var t=u();return function(){var n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}var h=n(94578),p=n(87462);function m(e){return"/"===e.charAt(0)}function v(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var g=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&m(e),a=t&&m(t),s=o||a;if(e&&m(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,c=i.length;c>=0;c--){var f=i[c];"."===f?v(i,c):".."===f?(v(i,c),l++):l&&(v(i,c),l--)}if(!s)for(;l--;l)i.unshift("..");!s||""===i[0]||i[0]&&m(i[0])||i.unshift("");var d=i.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d},y="Invariant failed";function b(e,t){if(!e)throw new Error(y)}function w(e){return"/"===e.charAt(0)?e:"/"+e}function x(e){return"/"===e.charAt(0)?e.substr(1):e}function _(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function k(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function S(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function M(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,p.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=g(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function T(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var E=!("undefined"===typeof window||!window.document||!window.document.createElement);function C(e,t){t(window.confirm(e))}var O="popstate",D="hashchange";function N(){try{return window.history.state||{}}catch(e){return{}}}function j(e){void 0===e&&(e={}),E||b(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,o=i.forceRefresh,a=void 0!==o&&o,s=i.getUserConfirmation,u=void 0===s?C:s,l=i.keyLength,c=void 0===l?6:l,f=e.basename?k(w(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return f&&(o=_(o,f)),M(o,r,n)}function h(){return Math.random().toString(36).substr(2,c)}var m=T();function v(e){(0,p.Z)(B,e),B.length=t.length,m.notifyListeners(B.location,B.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||j(d(e.state))}function y(){j(d(N()))}var x=!1;function j(e){if(x)x=!1,v();else{m.confirmTransitionTo(e,"POP",u,(function(t){t?v({action:"POP",location:e}):function(e){var t=B.location,n=P.indexOf(t.key);-1===n&&(n=0);var r=P.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(x=!0,I(i))}(e)}))}}var A=d(N()),P=[A.key];function R(e){return f+S(e)}function I(e){t.go(e)}var F=0;function L(e){1===(F+=e)&&1===e?(window.addEventListener(O,g),r&&window.addEventListener(D,y)):0===F&&(window.removeEventListener(O,g),r&&window.removeEventListener(D,y))}var z=!1;var B={length:t.length,action:"POP",location:A,createHref:R,push:function(e,r){var i="PUSH",o=M(e,r,h(),B.location);m.confirmTransitionTo(o,i,u,(function(e){if(e){var r=R(o),s=o.key,u=o.state;if(n)if(t.pushState({key:s,state:u},null,r),a)window.location.href=r;else{var l=P.indexOf(B.location.key),c=P.slice(0,l+1);c.push(o.key),P=c,v({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=M(e,r,h(),B.location);m.confirmTransitionTo(o,i,u,(function(e){if(e){var r=R(o),s=o.key,u=o.state;if(n)if(t.replaceState({key:s,state:u},null,r),a)window.location.replace(r);else{var l=P.indexOf(B.location.key);-1!==l&&(P[l]=o.key),v({action:i,location:o})}else window.location.replace(r)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=m.setPrompt(e);return z||(L(1),z=!0),function(){return z&&(z=!1,L(-1)),t()}},listen:function(e){var t=m.appendListener(e);return L(1),function(){L(-1),t()}}};return B}var A="hashchange",P={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+x(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:x,decodePath:w},slash:{encodePath:w,decodePath:w}};function R(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function I(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function F(e){window.location.replace(R(window.location.href)+"#"+e)}function L(e){void 0===e&&{},E||b(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?C:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?k(w(e.basename)):"",u=P[a],l=u.encodePath,c=u.decodePath;function f(){var e=c(I());return s&&_(e,s),M(e)}var d=T();function h(e){(0,p.Z)(B,e),B.length=t.length,d.notifyListeners(B.location,B.action)}var m=!1,v=null;function g(){var e,t,n=I(),r=l(n);if(n!==r)F(r);else{var o=f(),a=B.location;if(!m&&(o,a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(v===S(o))return;null,function(e){if(m)!1,h();else{var t="POP";d.confirmTransitionTo(e,t,i,(function(n){n?h({action:t,location:e}):function(e){var t=B.location,n=D.lastIndexOf(S(t));-1===n&&0;var r=D.lastIndexOf(S(e));-1===r&&0;var i=n-r;i&&(!0,N(i))}(e)}))}}(o)}}var y=I(),x=l(y);y!==x&&F(x);var O=f(),D=[S(O)];function N(e){t.go(e)}var j=0;function L(e){1===(j+=e)&&1===e?window.addEventListener(A,g):0===j&&window.removeEventListener(A,g)}var z=!1;var B={length:t.length,action:"POP",location:O,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&R(window.location.href),n+"#"+l(s+S(e))},push:function(e,t){var n="PUSH",r=M(e,void 0,void 0,B.location);d.confirmTransitionTo(r,n,i,(function(e){if(e){var t=S(r),i=l(s+t);if(I()!==i){t,function(e){window.location.hash=e}(i);var o=D.lastIndexOf(S(B.location)),a=D.slice(0,o+1);a.push(t),a,h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=M(e,void 0,void 0,B.location);d.confirmTransitionTo(r,n,i,(function(e){if(e){var t=S(r),i=l(s+t);I()!==i&&(t,F(i));var o=D.indexOf(S(B.location));-1!==o&&(D[o]=t),h({action:n,location:r})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&!1;var t=d.setPrompt(e);return z||(L(1),!0),function(){return z&&(!1,L(-1)),t()}},listen:function(e){var t=d.appendListener(e);return L(1),function(){L(-1),t()}}};return B}function z(e,t,n){return Math.min(Math.max(e,t),n)}function B(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,s=t.keyLength,u=void 0===s?6:s,l=T();function c(e){(0,p.Z)(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function f(){return Math.random().toString(36).substr(2,u)}var d=z(a,0,i.length-1),h=i.map((function(e){return M(e,void 0,"string"===typeof e?f():e.key||f())})),m=S;function v(e){var t=z(g.index+e,0,g.entries.length-1),r=g.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?c({action:"POP",location:r,index:t}):c()}))}var g={length:h.length,action:"POP",location:h[d],index:d,entries:h,createHref:m,push:function(e,t){var r="PUSH",i=M(e,t,f(),g.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),c({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=M(e,t,f(),g.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(g.entries[g.index]=i,c({action:r,location:i}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&!1,l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var Z=n(52007),W=n.n(Z),H=1073741823,Y="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};function U(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var V=e.createContext||function(t,n){var r,i,o="__create-react-context-"+function(){var e="__global_unique_id__";return Y[e]=(Y[e]||0)+1}()+"__",a=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=U(t.props.value),t}(0,h.Z)(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?t=0:(t="function"===typeof n?n(r,i):H,0!==(t|=0)&&this.emitter.set(e.value,t))}var o,a},r.render=function(){return this.props.children},t}(e.Component);a.childContextTypes=((r={})[o]=W().object.isRequired,r);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}(0,h.Z)(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?H:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?H:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():t},r.render=function(){return function(e){return Array.isArray(e)?e[0]:e}(this.props.children)(this.state.value)},n}(e.Component);return s.contextTypes=((i={})[o]=W().object,i),{Provider:a,Consumer:s}},q=V,G=n(66151),X=n.n(G),$=(n(28228),n(63366)),Q=n(62110),K=n.n(Q),J=function(e){var t=q();return t.displayName=e,t},ee=J("Router-History"),te=J("Router"),ne=function(t){function n(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(e){n._pendingLocation=e}))),n}(0,h.Z)(n,t),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return e.createElement(te.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},e.createElement(ee.Provider,{children:this.props.children||null,value:this.props.history}))},n}(e.Component);e.Component;e.Component;var re={},ie=0;function oe(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=re[n]||(re[n]={});if(r[e])return r[e];var i=[],o={regexp:X()(e,i,t),keys:i};return ie<1e4&&(r[e]=o,ie++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],f=u.slice(1),d=e===c;return o&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var ae=function(t){function n(){return t.apply(this,arguments)||this}return(0,h.Z)(n,t),n.prototype.render=function(){var t=this;return e.createElement(te.Consumer,null,(function(n){n||b(!1);var r=t.props.location||n.location,i=t.props.computedMatch?t.props.computedMatch:t.props.path?oe(r.pathname,t.props):n.match,o=(0,p.Z)({},n,{location:r,match:i}),a=t.props,s=a.children,u=a.component,l=a.render;return Array.isArray(s)&&function(t){return 0===e.Children.count(t)}(s)&&(s=null),e.createElement(te.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?e.createElement(u,o):l?l(o):null:"function"===typeof s?s(o):null)}))},n}(e.Component);function se(e){return"/"===e.charAt(0)?e:"/"+e}function ue(e,t){if(!e)return t;var n=se(e);return 0!==t.pathname.indexOf(n)?t:(0,p.Z)({},t,{pathname:t.pathname.substr(n.length)})}function le(e){return"string"===typeof e?e:S(e)}function ce(e){return function(){b(!1)}}function fe(){}e.Component;var de=function(t){function n(){return t.apply(this,arguments)||this}return(0,h.Z)(n,t),n.prototype.render=function(){var t=this;return e.createElement(te.Consumer,null,(function(n){n||b(!1);var r,i,o=t.props.location||n.location;return e.Children.forEach(t.props.children,(function(t){if(null==i&&e.isValidElement(t)){r=t;var a=t.props.path||t.props.from;i=a?oe(o.pathname,(0,p.Z)({},t.props,{path:a})):n.match}})),i?e.cloneElement(r,{location:o,computedMatch:i}):null}))},n}(e.Component);var he=e.useContext;function pe(e){var t=he(te).location,n=he(te).match;return e?oe(t.pathname,e):n}var me=n(63401),ve=n(45987),ge=n(28182),ye=n(38317),be=n(91122),we=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?"div":o,s=t.square,u=void 0!==s&&s,l=t.elevation,c=void 0===l?1:l,f=t.variant,d=void 0===f?"elevation":f,h=(0,ve.Z)(t,["classes","className","component","square","elevation","variant"]);return e.createElement(a,(0,p.Z)({className:(0,ge.Z)(r.root,i,"outlined"===d?r.outlined:r["elevation".concat(c)],!u&&r.rounded),ref:n},h))})),xe=(0,ye.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,p.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(we),_e=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=void 0===o?"primary":o,s=t.position,u=void 0===s?"fixed":s,l=(0,ve.Z)(t,["classes","className","color","position"]);return e.createElement(xe,(0,p.Z)({square:!0,component:"header",elevation:4,className:(0,ge.Z)(r.root,r["position".concat((0,be.Z)(u))],r["color".concat((0,be.Z)(a))],i,"fixed"===u&&"mui-fixed"),ref:n},l))})),ke=(0,ye.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(_e),Se=n(4942),Me=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?"div":o,s=t.disableGutters,u=void 0!==s&&s,l=t.variant,c=void 0===l?"regular":l,f=(0,ve.Z)(t,["classes","className","component","disableGutters","variant"]);return e.createElement(a,(0,p.Z)({className:(0,ge.Z)(r.root,r[c],i,!u&&r.gutters),ref:n},f))})),Te=(0,ye.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,Se.Z)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(Me),Ee=n(13108),Ce=n(69806),Oe=n(72216),De=n(81175),Ne=n(42982),je=e.createContext(null);function Ae(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Pe(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Re(t,n,r){var i=Ae(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r<i[u].length;r++){var l=i[u][r];s[i[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,e.isValidElement)(s)){var u=a in n,l=a in i,c=n[a],f=(0,e.isValidElement)(c)&&!c.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,e.isValidElement)(c)&&(o[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:Pe(s,"exit",t),enter:Pe(s,"enter",t)})):o[a]=(0,e.cloneElement)(s,{in:!1}):o[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Pe(s,"exit",t),enter:Pe(s,"enter",t)})}})),o}var Ie=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fe=function(t){function n(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind((0,c.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,h.Z)(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,i=a,Ae(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:i.bind(null,t),in:!0,appear:Pe(t,"appear",r),enter:Pe(t,"enter",r),exit:Pe(t,"exit",r)})}))):Re(t,o,a),firstRender:!1}},r.handleExited=function(e,t){var n=Ae(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,p.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,i=(0,$.Z)(t,["component","childFactory"]),o=this.state.contextValue,a=Ie(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?e.createElement(je.Provider,{value:o},a):e.createElement(je.Provider,{value:o},e.createElement(n,i,a))},n}(e.Component);Fe.propTypes={},Fe.defaultProps={component:"div",childFactory:function(e){return e}};var Le=Fe,ze="undefined"===typeof window?e.useEffect:e.useLayoutEffect;var Be=function(t){var n=t.classes,r=t.pulsate,i=void 0!==r&&r,o=t.rippleX,a=t.rippleY,s=t.rippleSize,u=t.in,l=t.onExited,c=void 0===l?function(){}:l,f=t.timeout,d=e.useState(!1),h=d[0],p=d[1],m=(0,ge.Z)(n.ripple,n.rippleVisible,i&&n.ripplePulsate),v={width:s,height:s,top:-s/2+a,left:-s/2+o},g=(0,ge.Z)(n.child,h&&n.childLeaving,i&&n.childPulsate),y=(0,Oe.Z)(c);return ze((function(){if(!u){p(!0);var e=setTimeout(y,f);return function(){clearTimeout(e)}}}),[y,u,f]),e.createElement("span",{className:m,style:v},e.createElement("span",{className:g}))},Ze=e.forwardRef((function(t,n){var r=t.center,i=void 0!==r&&r,o=t.classes,a=t.className,s=(0,ve.Z)(t,["center","classes","className"]),u=e.useState([]),l=u[0],c=u[1],f=e.useRef(0),d=e.useRef(null);e.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var h=e.useRef(!1),m=e.useRef(null),v=e.useRef(null),g=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(m.current)}}),[]);var y=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,i=t.rippleY,a=t.rippleSize,s=t.cb;c((function(t){return[].concat((0,Ne.Z)(t),[e.createElement(Be,{key:f.current,classes:o,timeout:550,pulsate:n,rippleX:r,rippleY:i,rippleSize:a})])})),f.current+=1,d.current=s}),[o]),b=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,s=void 0===a?i||t.pulsate:a,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,f,d,p=l?null:g.current,b=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),f=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,_=w.clientY;c=Math.round(x-b.left),f=Math.round(_-b.top)}if(s)(d=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2===0&&(d+=1);else{var k=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(k,2)+Math.pow(S,2))}e.touches?null===v.current&&(v.current=function(){y({pulsate:o,rippleX:c,rippleY:f,rippleSize:d,cb:n})},m.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[i,y]),w=e.useCallback((function(){b({},{pulsate:!0})}),[b]),x=e.useCallback((function(e,t){if(clearTimeout(m.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(m.current=setTimeout((function(){x(e,t)})));v.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:w,start:b,stop:x}}),[w,b,x]),e.createElement("span",(0,p.Z)({className:(0,ge.Z)(o.root,a),ref:g},s),e.createElement(Le,{component:null,exit:!0},l))})),We=(0,ye.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(Ze)),He=e.forwardRef((function(n,r){var i=n.action,o=n.buttonRef,a=n.centerRipple,s=void 0!==a&&a,u=n.children,l=n.classes,c=n.className,f=n.component,d=void 0===f?"button":f,h=n.disabled,m=void 0!==h&&h,v=n.disableRipple,g=void 0!==v&&v,y=n.disableTouchRipple,b=void 0!==y&&y,w=n.focusRipple,x=void 0!==w&&w,_=n.focusVisibleClassName,k=n.onBlur,S=n.onClick,M=n.onFocus,T=n.onFocusVisible,E=n.onKeyDown,C=n.onKeyUp,O=n.onMouseDown,D=n.onMouseLeave,N=n.onMouseUp,j=n.onTouchEnd,A=n.onTouchMove,P=n.onTouchStart,R=n.onDragLeave,I=n.tabIndex,F=void 0===I?0:I,L=n.TouchRippleProps,z=n.type,B=void 0===z?"button":z,Z=(0,ve.Z)(n,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),W=e.useRef(null);var H=e.useRef(null),Y=e.useState(!1),U=Y[0],V=Y[1];m&&U&&V(!1);var q=(0,De.Z)(),G=q.isFocusVisible,X=q.onBlurVisible,$=q.ref;function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,Oe.Z)((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}e.useImperativeHandle(i,(function(){return{focusVisible:function(){V(!0),W.current.focus()}}}),[]),e.useEffect((function(){U&&x&&!g&&H.current.pulsate()}),[g,x,U]);var K=Q("start",O),J=Q("stop",R),ee=Q("stop",N),te=Q("stop",(function(e){U&&e.preventDefault(),D&&D(e)})),ne=Q("start",P),re=Q("stop",j),ie=Q("stop",A),oe=Q("stop",(function(e){U&&(X(e),V(!1)),k&&k(e)}),!1),ae=(0,Oe.Z)((function(e){W.current||(W.current=e.currentTarget),G(e)&&(V(!0),T&&T(e)),M&&M(e)})),se=function(){var e=t.findDOMNode(W.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ue=e.useRef(!1),le=(0,Oe.Z)((function(e){x&&!ue.current&&U&&H.current&&" "===e.key&&(ue.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ce=(0,Oe.Z)((function(e){x&&" "===e.key&&H.current&&U&&!e.defaultPrevented&&(ue.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),C&&C(e),S&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&S(e)})),fe=d;"button"===fe&&Z.href&&(fe="a");var de={};"button"===fe?(de.type=B,de.disabled=m):("a"===fe&&Z.href||(de.role="button"),de["aria-disabled"]=m);var he=(0,Ce.Z)(o,r),pe=(0,Ce.Z)($,W),me=(0,Ce.Z)(he,pe),ye=e.useState(!1),be=ye[0],we=ye[1];e.useEffect((function(){we(!0)}),[]);var xe=be&&!g&&!m;return e.createElement(fe,(0,p.Z)({className:(0,ge.Z)(l.root,c,U&&[l.focusVisible,_],m&&l.disabled),onBlur:oe,onClick:S,onFocus:ae,onKeyDown:le,onKeyUp:ce,onMouseDown:K,onMouseLeave:te,onMouseUp:ee,onDragLeave:J,onTouchEnd:re,onTouchMove:ie,onTouchStart:ne,ref:me,tabIndex:m?-1:F},de,Z),u,xe?e.createElement(We,(0,p.Z)({ref:H,center:s},L)):null)})),Ye=(0,ye.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(He),Ue=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=void 0===a?"default":a,u=t.component,l=void 0===u?"button":u,c=t.disabled,f=void 0!==c&&c,d=t.disableElevation,h=void 0!==d&&d,m=t.disableFocusRipple,v=void 0!==m&&m,g=t.endIcon,y=t.focusVisibleClassName,b=t.fullWidth,w=void 0!==b&&b,x=t.size,_=void 0===x?"medium":x,k=t.startIcon,S=t.type,M=void 0===S?"button":S,T=t.variant,E=void 0===T?"text":T,C=(0,ve.Z)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=k&&e.createElement("span",{className:(0,ge.Z)(i.startIcon,i["iconSize".concat((0,be.Z)(_))])},k),D=g&&e.createElement("span",{className:(0,ge.Z)(i.endIcon,i["iconSize".concat((0,be.Z)(_))])},g);return e.createElement(Ye,(0,p.Z)({className:(0,ge.Z)(i.root,i[E],o,"inherit"===s?i.colorInherit:"default"!==s&&i["".concat(E).concat((0,be.Z)(s))],"medium"!==_&&[i["".concat(E,"Size").concat((0,be.Z)(_))],i["size".concat((0,be.Z)(_))]],h&&i.disableElevation,f&&i.disabled,w&&i.fullWidth),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:(0,ge.Z)(i.focusVisible,y),ref:n,type:M},C),e.createElement("span",{className:i.label},O,r,D))})),Ve=(0,ye.Z)((function(e){return{root:(0,p.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Ee.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Ee.Fq)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Ee.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Ee.Fq)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(Ue),qe=n(40663);var Ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,me.Z)(e,(0,p.Z)({defaultTheme:qe.Z},t))},Xe=n(80184),$e=Ge((function(e){return{logo:{height:37,width:175,marginRight:30}}}));function Qe(){var e=$e();return(0,Xe.jsx)("img",{src:"/logo.svg",alt:"Conductor",className:e.logo})}function Ke(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){(0,Se.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).history=j(e.props),e}return(0,h.Z)(n,t),n.prototype.render=function(){return e.createElement(ne,{history:this.history,children:this.props.children})},n}(e.Component);e.Component;var tt=function(e,t){return"function"===typeof e?e(t):e},nt=function(e,t){return"string"===typeof e?M(e,null,null,t):e},rt=function(e){return e},it=e.forwardRef;"undefined"===typeof it&&(it=rt);var ot=it((function(t,n){var r=t.innerRef,i=t.navigate,o=t.onClick,a=(0,$.Z)(t,["innerRef","navigate","onClick"]),s=a.target,u=(0,p.Z)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return u.ref=rt!==it&&n||r,e.createElement("a",u)}));var at=it((function(t,n){var r=t.component,i=void 0===r?ot:r,o=t.replace,a=t.to,s=t.innerRef,u=(0,$.Z)(t,["component","replace","to","innerRef"]);return e.createElement(te.Consumer,null,(function(t){t||b(!1);var r=t.history,l=nt(tt(a,t.location),t.location),c=l?r.createHref(l):"",f=(0,p.Z)({},u,{href:c,navigate:function(){var e=tt(a,t.location),n=S(t.location)===S(nt(e));(o||n?r.replace:r.push)(e)}});return rt!==it?f.ref=n||s:f.innerRef=s,e.createElement(i,f)}))})),st=function(e){return e},ut=e.forwardRef;"undefined"===typeof ut&&(ut=st);ut((function(t,n){var r=t["aria-current"],i=void 0===r?"page":r,o=t.activeClassName,a=void 0===o?"active":o,s=t.activeStyle,u=t.className,l=t.exact,c=t.isActive,f=t.location,d=t.sensitive,h=t.strict,m=t.style,v=t.to,g=t.innerRef,y=(0,$.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return e.createElement(te.Consumer,null,(function(t){t||b(!1);var r=f||t.location,o=nt(tt(v,r),r),w=o.pathname,x=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=x?oe(r.pathname,{path:x,exact:l,sensitive:d,strict:h}):null,k=!!(c?c(_,r):_),S="function"===typeof u?u(k):u,M="function"===typeof m?m(k):m;k&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(S,a),M=(0,p.Z)({},M,s));var T=(0,p.Z)({"aria-current":k&&i||null,className:S,style:M,to:o},y);return st!==ut?T.ref=n||g:T.innerRef=g,e.createElement(at,T)}))}));var lt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ct=e.forwardRef((function(t,n){var r=t.align,i=void 0===r?"inherit":r,o=t.classes,a=t.className,s=t.color,u=void 0===s?"initial":s,l=t.component,c=t.display,f=void 0===c?"initial":c,d=t.gutterBottom,h=void 0!==d&&d,m=t.noWrap,v=void 0!==m&&m,g=t.paragraph,y=void 0!==g&&g,b=t.variant,w=void 0===b?"body1":b,x=t.variantMapping,_=void 0===x?lt:x,k=(0,ve.Z)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(y?"p":_[w]||lt[w])||"span";return e.createElement(S,(0,p.Z)({className:(0,ge.Z)(o.root,a,"inherit"!==w&&o[w],"initial"!==u&&o["color".concat((0,be.Z)(u))],v&&o.noWrap,h&&o.gutterBottom,y&&o.paragraph,"inherit"!==i&&o["align".concat((0,be.Z)(i))],"initial"!==f&&o["display".concat((0,be.Z)(f))]),ref:n},k))})),ft=(0,ye.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(ct),dt=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=void 0===o?"primary":o,s=t.component,u=void 0===s?"a":s,l=t.onBlur,c=t.onFocus,f=t.TypographyClasses,d=t.underline,h=void 0===d?"hover":d,m=t.variant,v=void 0===m?"inherit":m,g=(0,ve.Z)(t,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),y=(0,De.Z)(),b=y.isFocusVisible,w=y.onBlurVisible,x=y.ref,_=e.useState(!1),k=_[0],S=_[1],M=(0,Ce.Z)(n,x);return e.createElement(ft,(0,p.Z)({className:(0,ge.Z)(r.root,r["underline".concat((0,be.Z)(h))],i,k&&r.focusVisible,"button"===u&&r.button),classes:f,color:a,component:u,onBlur:function(e){k&&(w(),S(!1)),l&&l(e)},onFocus:function(e){b(e)&&S(!0),c&&c(e)},ref:M,variant:v},g))})),ht=(0,ye.Z)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(dt),pt=n(35456),mt=n(65915),vt=n.n(mt);var gt=["navigate","path","newTab"],yt=e.forwardRef((function(e,t){e.navigate;var n=e.path,r=e.newTab,i=(0,ve.Z)(e,gt),o={stack:"default",defaultStack:"default"},a=o.stack,s=o.defaultStack,u=new(vt())(n,{},!0);return a!==s&&(u.query.stack=a),r?(0,Xe.jsxs)(ht,{ref:t,target:"_blank",href:u.toString(),children:[i.children,"\xa0",(0,Xe.jsx)(pt.Z,{fontSize:"small",style:{verticalAlign:"middle"}})]}):(0,Xe.jsx)(ht,Je(Je({ref:t,component:at,to:u.toString()},i),{},{children:i.children}))}));function bt(){var e=he(ee),t={stack:"default",defaultStack:"default"},n=t.stack,r=t.defaultStack;return function(t){var i=new(vt())(t,{},!0);n!==r&&(i.query.stack=n),e.push(i.toString())}}var wt=n(70885),xt=n(763),_t=n.n(xt),kt=[0,1,2,3,4,5,6,7,8,9,10],St=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Tt=e.forwardRef((function(t,n){var r=t.alignContent,i=void 0===r?"stretch":r,o=t.alignItems,a=void 0===o?"stretch":o,s=t.classes,u=t.className,l=t.component,c=void 0===l?"div":l,f=t.container,d=void 0!==f&&f,h=t.direction,m=void 0===h?"row":h,v=t.item,g=void 0!==v&&v,y=t.justify,b=t.justifyContent,w=void 0===b?"flex-start":b,x=t.lg,_=void 0!==x&&x,k=t.md,S=void 0!==k&&k,M=t.sm,T=void 0!==M&&M,E=t.spacing,C=void 0===E?0:E,O=t.wrap,D=void 0===O?"wrap":O,N=t.xl,j=void 0!==N&&N,A=t.xs,P=void 0!==A&&A,R=t.zeroMinWidth,I=void 0!==R&&R,F=(0,ve.Z)(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),L=(0,ge.Z)(s.root,u,d&&[s.container,0!==C&&s["spacing-xs-".concat(String(C))]],g&&s.item,I&&s.zeroMinWidth,"row"!==m&&s["direction-xs-".concat(String(m))],"wrap"!==D&&s["wrap-xs-".concat(String(D))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==i&&s["align-content-xs-".concat(String(i))],"flex-start"!==(y||w)&&s["justify-content-xs-".concat(String(y||w))],!1!==P&&s["grid-xs-".concat(String(P))],!1!==T&&s["grid-sm-".concat(String(T))],!1!==S&&s["grid-md-".concat(String(S))],!1!==_&&s["grid-lg-".concat(String(_))],!1!==j&&s["grid-xl-".concat(String(j))]);return e.createElement(c,(0,p.Z)({className:L,ref:n},F))})),Et=(0,ye.Z)((function(e){return(0,p.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return kt.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Mt(i,2)),width:"calc(100% + ".concat(Mt(i),")"),"& > $item":{padding:Mt(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};St.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,p.Z)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Tt),Ct=Et;function Ot(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Ot(e.value)&&""!==e.value||t&&Ot(e.defaultValue)&&""!==e.defaultValue)}var Nt=n(43375),jt=e.createContext();function At(){return e.useContext(jt)}var Pt=jt,Rt=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=void 0===a?"primary":a,u=t.component,l=void 0===u?"div":u,c=t.disabled,f=void 0!==c&&c,d=t.error,h=void 0!==d&&d,m=t.fullWidth,v=void 0!==m&&m,g=t.focused,y=t.hiddenLabel,b=void 0!==y&&y,w=t.margin,x=void 0===w?"none":w,_=t.required,k=void 0!==_&&_,S=t.size,M=t.variant,T=void 0===M?"standard":M,E=(0,ve.Z)(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),C=e.useState((function(){var t=!1;return r&&e.Children.forEach(r,(function(e){if((0,Nt.Z)(e,["Input","Select"])){var n=(0,Nt.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}})),t})),O=C[0],D=C[1],N=e.useState((function(){var t=!1;return r&&e.Children.forEach(r,(function(e){(0,Nt.Z)(e,["Input","Select"])&&Dt(e.props,!0)&&(t=!0)})),t})),j=N[0],A=N[1],P=e.useState(!1),R=P[0],I=P[1],F=void 0!==g?g:R;f&&F&&I(!1);var L=e.useCallback((function(){A(!0)}),[]),z={adornedStart:O,setAdornedStart:D,color:s,disabled:f,error:h,filled:j,focused:F,fullWidth:v,hiddenLabel:b,margin:("small"===S?"dense":void 0)||x,onBlur:function(){I(!1)},onEmpty:e.useCallback((function(){A(!1)}),[]),onFilled:L,onFocus:function(){I(!0)},registerEffect:undefined,required:k,variant:T};return e.createElement(Pt.Provider,{value:z},e.createElement(l,(0,p.Z)({className:(0,ge.Z)(i.root,o,"none"!==x&&i["margin".concat((0,be.Z)(x))],v&&i.fullWidth),ref:n},E),r))})),It=(0,ye.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Rt);function Ft(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}function Lt(){return e.useContext(Pt)}var zt=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=(t.color,t.component),s=void 0===a?"label":a,u=(t.disabled,t.error,t.filled,t.focused,t.required,(0,ve.Z)(t,["children","classes","className","color","component","disabled","error","filled","focused","required"])),l=Ft({props:t,muiFormControl:Lt(),states:["color","required","focused","disabled","error","filled"]});return e.createElement(s,(0,p.Z)({className:(0,ge.Z)(i.root,i["color".concat((0,be.Z)(l.color||"primary"))],o,l.disabled&&i.disabled,l.error&&i.error,l.filled&&i.filled,l.focused&&i.focused,l.required&&i.required),ref:n},u),r,l.required&&e.createElement("span",{"aria-hidden":!0,className:(0,ge.Z)(i.asterisk,l.error&&i.error)},"\u2009","*"))})),Bt=(0,ye.Z)((function(e){return{root:(0,p.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(zt),Zt=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.disableAnimation,a=void 0!==o&&o,s=(t.margin,t.shrink),u=(t.variant,(0,ve.Z)(t,["classes","className","disableAnimation","margin","shrink","variant"])),l=Lt(),c=s;"undefined"===typeof c&&l&&(c=l.filled||l.focused||l.adornedStart);var f=Ft({props:t,muiFormControl:l,states:["margin","variant"]});return e.createElement(Bt,(0,p.Z)({"data-shrink":c,className:(0,ge.Z)(r.root,i,l&&r.formControl,!a&&r.animated,c&&r.shrink,"dense"===f.margin&&r.marginDense,{filled:r.filled,outlined:r.outlined}[f.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:n},u))})),Wt=(0,ye.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(Zt);function Ht(e){return(0,Xe.jsx)(Ve,Je({variant:"contained",color:"primary"},e))}function Yt(e){return(0,Xe.jsx)(Ve,Je({variant:"outlined",color:"secondary"},e))}function Ut(e){return(0,Xe.jsx)(Ve,Je({},e))}n(57441);Ve.styles;var Vt=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=void 0===a?"default":a,u=t.component,l=void 0===u?"div":u,c=t.disabled,f=void 0!==c&&c,d=t.disableElevation,h=void 0!==d&&d,m=t.disableFocusRipple,v=void 0!==m&&m,g=t.disableRipple,y=void 0!==g&&g,b=t.fullWidth,w=void 0!==b&&b,x=t.orientation,_=void 0===x?"horizontal":x,k=t.size,S=void 0===k?"medium":k,M=t.variant,T=void 0===M?"outlined":M,E=(0,ve.Z)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),C=(0,ge.Z)(i.grouped,i["grouped".concat((0,be.Z)(_))],i["grouped".concat((0,be.Z)(T))],i["grouped".concat((0,be.Z)(T)).concat((0,be.Z)(_))],i["grouped".concat((0,be.Z)(T)).concat("default"!==s?(0,be.Z)(s):"")],f&&i.disabled);return e.createElement(l,(0,p.Z)({role:"group",className:(0,ge.Z)(i.root,o,w&&i.fullWidth,h&&i.disableElevation,"contained"===T&&i.contained,"vertical"===_&&i.vertical),ref:n},E),e.Children.map(r,(function(t){return e.isValidElement(t)?e.cloneElement(t,{className:(0,ge.Z)(C,t.props.className),color:t.props.color||s,disabled:t.props.disabled||f,disableElevation:t.props.disableElevation||h,disableFocusRipple:v,disableRipple:y,fullWidth:w,size:t.props.size||S,variant:t.props.variant||T}):null})))})),qt=(0,ye.Z)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:(0,Ee.Fq)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:(0,Ee.Fq)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(Vt),Gt=["options","label","style","classes"];function Xt(e){var t=e.options,n=e.label,r=e.style,i=e.classes,o=(0,ve.Z)(e,Gt);return(0,Xe.jsxs)(It,{style:r,classes:i,children:[n&&(0,Xe.jsx)(Wt,{children:n}),(0,Xe.jsx)(qt,Je(Je({color:"secondary",variant:"outlined"},o),{},{children:t.map((function(e,t){return(0,Xe.jsx)(Ve,{onClick:e.onClick,children:e.label},t)}))}))]})}var $t=n(28237),Qt="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,Kt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Qt&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Jt=Qt&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Kt))}};function en(e){return e&&"[object Function]"==={}.toString.call(e)}function tn(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function nn(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function rn(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=tn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:rn(nn(e))}function on(e){return e&&e.referenceNode?e.referenceNode:e}var an=Qt&&!(!window.MSInputMethodContext||!document.documentMode),sn=Qt&&/MSIE 10/.test(navigator.userAgent);function un(e){return 11===e?an:10===e?sn:an||sn}function ln(e){if(!e)return document.documentElement;for(var t=un(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===tn(n,"position")?ln(n):n:e?e.ownerDocument.documentElement:document.documentElement}function cn(e){return null!==e.parentNode?cn(e.parentNode):e}function fn(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||ln(e.firstElementChild)===e)}(a)?a:ln(a);var s=cn(e);return s.host?fn(s.host,t):fn(e,cn(t).host)}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=dn(t,"top"),i=dn(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function pn(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function mn(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],un(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function vn(e){var t=e.body,n=e.documentElement,r=un(10)&&getComputedStyle(n);return{height:mn("Height",t,n,r),width:mn("Width",t,n,r)}}var gn=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),bn=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function xn(e){return wn({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _n(e){var t={};try{if(un(10)){t=e.getBoundingClientRect();var n=dn(e,"top"),r=dn(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?vn(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,u=e.offsetWidth-a,l=e.offsetHeight-s;if(u||l){var c=tn(e);u-=pn(c,"x"),l-=pn(c,"y"),i.width-=u,i.height-=l}return xn(i)}function kn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=un(10),i="HTML"===t.nodeName,o=_n(e),a=_n(t),s=rn(e),u=tn(t),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=xn({top:o.top-a.top-l,left:o.left-a.left-c,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var d=parseFloat(u.marginTop),h=parseFloat(u.marginLeft);f.top-=l-d,f.bottom-=l-d,f.left-=c-h,f.right-=c-h,f.marginTop=d,f.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=hn(f,t)),f}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=kn(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:dn(n),s=t?0:dn(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return xn(u)}function Mn(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===tn(e,"position"))return!0;var n=nn(e);return!!n&&Mn(n)}function Tn(e){if(!e||!e.parentElement||un())return document.documentElement;for(var t=e.parentElement;t&&"none"===tn(t,"transform");)t=t.parentElement;return t||document.documentElement}function En(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Tn(e):fn(e,on(t));if("viewport"===r)o=Sn(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=rn(nn(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=kn(s,a,i);if("HTML"!==s.nodeName||Mn(a))o=u;else{var l=vn(e.ownerDocument),c=l.height,f=l.width;o.top+=u.top-u.marginTop,o.bottom=c+u.top,o.left+=u.left-u.marginLeft,o.right=f+u.left}}var d="number"===typeof(n=n||0);return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function Cn(e){return e.width*e.height}function On(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=En(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return wn({key:e},s[e],{area:Cn(s[e])})})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function Dn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?Tn(t):fn(t,on(n));return kn(n,i,r)}function Nn(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function jn(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function An(e,t,n){n=n.split("-")[0];var r=Nn(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[l]:t[jn(s)],i}function Pn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Rn(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Pn(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n));return r.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&en(n)&&(t.offsets.popper=xn(t.offsets.popper),t.offsets.reference=xn(t.offsets.reference),t=n(t,e))})),t}function In(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Dn(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=On(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=An(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Rn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Fn(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Ln(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function zn(){return this.state.isDestroyed=!0,Fn(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Ln("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Bn(e){var t=e.ownerDocument;return t?t.defaultView:window}function Zn(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||Zn(rn(o.parentNode),t,n,r),r.push(o)}function Wn(e,t,n,r){n.updateBound=r,Bn(e).addEventListener("resize",n.updateBound,{passive:!0});var i=rn(e);return Zn(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Hn(){this.state.eventsEnabled||(this.state=Wn(this.reference,this.options,this.state,this.scheduleUpdate))}function Yn(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Bn(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Un(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Vn(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Un(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var qn=Qt&&/Firefox/i.test(navigator.userAgent);function Gn(e,t,n){var r=Pn(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Xn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$n=Xn.slice(3);function Qn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$n.indexOf(e),r=$n.slice(n+1).concat($n.slice(0,n));return t?r.reverse():r}var Kn="flip",Jn="clockwise",er="counterclockwise";function tr(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Pn(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return xn("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){Un(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var nr={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:bn({},u,o[u]),end:bn({},u,o[u]+o[l]-a[l])};e.offsets.popper=wn({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=Un(+n)?[+n,0]:tr(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ln(e.instance.popper);e.instance.reference===n&&(n=ln(n));var r=Ln("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=En(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(c[e],u[e])),bn({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),bn({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=wn({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Gn(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",c=u?"Top":"Left",f=c.toLowerCase(),d=u?"left":"top",h=u?"bottom":"right",p=Nn(r)[l];s[h]-p<a[f]&&(e.offsets.popper[f]-=a[f]-(s[h]-p)),s[f]+p>a[h]&&(e.offsets.popper[f]+=s[f]+p-a[h]),e.offsets.popper=xn(e.offsets.popper);var m=s[f]+s[l]/2-p/2,v=tn(e.instance.popper),g=parseFloat(v["margin"+c]),y=parseFloat(v["border"+c+"Width"]),b=m-e.offsets.popper[f]-g-y;return b=Math.max(Math.min(a[l]-p,b),0),e.arrowElement=r,e.offsets.arrow=(bn(n={},f,Math.round(b)),bn(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Fn(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=En(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=jn(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Kn:a=[r,i];break;case Jn:a=Qn(r);break;case er:a=Qn(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=jn(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),h=f(l.left)<f(n.left),p=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&v),w=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&v||!y&&"end"===o&&m),x=b||w;(d||g||x)&&(e.flipped=!0,(d||g)&&(r=a[u+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=wn({},e.offsets.popper,An(e.instance.popper,e.offsets.reference,e.placement)),e=Rn(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=jn(t),e.offsets.popper=xn(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Gn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Pn(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Pn(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=ln(e.instance.popper),u=_n(s),l={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||u%2===l%2?o:a:s,h=t?o:s;return{left:d(u%2===1&&l%2===1&&!f&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!qn),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=Ln("transform"),p=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,p="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)l[h]="translate3d("+p+"px, "+m+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var v="bottom"===f?-1:1,g="right"===d?-1:1;l[f]=m*v,l[d]=p*g,l.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=wn({},y,e.attributes),e.styles=wn({},l,e.styles),e.arrowStyles=wn({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Vn(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Vn(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=Dn(i,t,e,n.positionFixed),a=On(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Vn(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},rr={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:nr},ir=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};gn(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Jt(this.update.bind(this)),this.options=wn({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(wn({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=wn({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return wn({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&en(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return yn(e,[{key:"update",value:function(){return In.call(this)}},{key:"destroy",value:function(){return zn.call(this)}},{key:"enableEventListeners",value:function(){return Hn.call(this)}},{key:"disableEventListeners",value:function(){return Yn.call(this)}}]),e}();ir.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,ir.placements=Xn,ir.Defaults=rr;var or=ir,ar=n(78444),sr=n(21565);var ur="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,lr=e.forwardRef((function(n,r){var i=n.children,o=n.container,a=n.disablePortal,s=void 0!==a&&a,u=n.onRendered,l=e.useState(null),c=l[0],f=l[1],d=(0,Ce.Z)(e.isValidElement(i)?i.ref:null,r);return ur((function(){s||f(function(e){return e="function"===typeof e?e():e,t.findDOMNode(e)}(o)||document.body)}),[o,s]),ur((function(){if(c&&!s)return(0,sr.Z)(r,c),function(){(0,sr.Z)(r,null)}}),[r,c,s]),ur((function(){u&&(c||s)&&u()}),[u,c,s]),s?e.isValidElement(i)?e.cloneElement(i,{ref:d}):i:c?t.createPortal(i,c):c}));var cr=lr,fr=n(37545);function dr(e){return"function"===typeof e?e():e}var hr="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,pr={},mr=e.forwardRef((function(t,n){var r=t.anchorEl,i=t.children,o=t.container,a=t.disablePortal,s=void 0!==a&&a,u=t.keepMounted,l=void 0!==u&&u,c=t.modifiers,f=t.open,d=t.placement,h=void 0===d?"bottom":d,m=t.popperOptions,v=void 0===m?pr:m,g=t.popperRef,y=t.style,b=t.transition,w=void 0!==b&&b,x=(0,ve.Z)(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),_=e.useRef(null),k=(0,Ce.Z)(_,n),S=e.useRef(null),M=(0,Ce.Z)(S,g),T=e.useRef(M);hr((function(){T.current=M}),[M]),e.useImperativeHandle(g,(function(){return S.current}),[]);var E=e.useState(!0),C=E[0],O=E[1],D=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,(0,ar.Z)()),N=e.useState(D),j=N[0],A=N[1];e.useEffect((function(){S.current&&S.current.update()}));var P=e.useCallback((function(){if(_.current&&r&&f){S.current&&(S.current.destroy(),T.current(null));var e=function(e){A(e.placement)},t=(dr(r),new or(dr(r),_.current,(0,p.Z)({placement:D},v,{modifiers:(0,p.Z)({},s?{}:{preventOverflow:{boundariesElement:"window"}},c,v.modifiers),onCreate:(0,fr.Z)(e,v.onCreate),onUpdate:(0,fr.Z)(e,v.onUpdate)})));T.current(t)}}),[r,s,c,f,D,v]),R=e.useCallback((function(e){(0,sr.Z)(k,e),P()}),[k,P]),I=function(){S.current&&(S.current.destroy(),T.current(null))};if(e.useEffect((function(){return function(){I()}}),[]),e.useEffect((function(){f||w||I()}),[f,w]),!l&&!f&&(!w||C))return null;var F={placement:j};return w&&(F.TransitionProps={in:f,onEnter:function(){O(!1)},onExited:function(){O(!0),I()}}),e.createElement(cr,{disablePortal:s,container:o},e.createElement("div",(0,p.Z)({ref:R,role:"tooltip"},x,{style:(0,p.Z)({position:"fixed",top:0,left:0,display:f||!l||w?null:"none"},y)}),"function"===typeof i?i(F):i))})),vr=mr,gr=n(54667);function yr(e){return e.substring(2).toLowerCase()}var br=function(n){var r=n.children,i=n.disableReactTree,o=void 0!==i&&i,a=n.mouseEvent,s=void 0===a?"onClick":a,u=n.onClickAway,l=n.touchEvent,c=void 0===l?"onTouchEnd":l,f=e.useRef(!1),d=e.useRef(null),h=e.useRef(!1),p=e.useRef(!1);e.useEffect((function(){return setTimeout((function(){h.current=!0}),0),function(){h.current=!1}}),[]);var m=e.useCallback((function(e){d.current=t.findDOMNode(e)}),[]),v=(0,Ce.Z)(r.ref,m),g=(0,Oe.Z)((function(e){var t=p.current;if(p.current=!1,h.current&&d.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(f.current)f.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(d.current)>-1;else n=!(0,gr.Z)(d.current).documentElement.contains(e.target)||d.current.contains(e.target);n||!o&&t||u(e)}})),y=function(e){return function(t){p.current=!0;var n=r.props[e];n&&n(t)}},b={ref:v};return!1!==c&&(b[c]=y(c)),e.useEffect((function(){if(!1!==c){var e=yr(c),t=(0,gr.Z)(d.current),n=function(){f.current=!0};return t.addEventListener(e,g),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,g),t.removeEventListener("touchmove",n)}}}),[g,c]),!1!==s&&(b[s]=y(s)),e.useEffect((function(){if(!1!==s){var e=yr(s),t=(0,gr.Z)(d.current);return t.addEventListener(e,g),function(){t.removeEventListener(e,g)}}}),[g,s]),e.createElement(e.Fragment,null,e.cloneElement(r,b))};var wr=e.createContext({}),xr=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=void 0===a?"ul":a,u=t.dense,l=void 0!==u&&u,c=t.disablePadding,f=void 0!==c&&c,d=t.subheader,h=(0,ve.Z)(t,["children","classes","className","component","dense","disablePadding","subheader"]),m=e.useMemo((function(){return{dense:l}}),[l]);return e.createElement(wr.Provider,{value:m},e.createElement(s,(0,p.Z)({className:(0,ge.Z)(i.root,o,l&&i.dense,!f&&i.padding,d&&i.subheader),ref:n},h),d,r))})),_r=(0,ye.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(xr);function kr(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Sr(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Mr(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tr(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Er(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Tr(s,o)&&!u)return void s.focus();s=i(e,s,n)}}var Cr="undefined"===typeof window?e.useEffect:e.useLayoutEffect,Or=e.forwardRef((function(n,r){var i=n.actions,o=n.autoFocus,a=void 0!==o&&o,s=n.autoFocusItem,u=void 0!==s&&s,l=n.children,c=n.className,f=n.disabledItemsFocusable,d=void 0!==f&&f,h=n.disableListWrap,m=void 0!==h&&h,v=n.onKeyDown,g=n.variant,y=void 0===g?"selectedMenu":g,b=(0,ve.Z)(n,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=e.useRef(null),x=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cr((function(){a&&w.current.focus()}),[a]),e.useImperativeHandle(i,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var r="".concat(kr(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,w.current.style.width="calc(100% + ".concat(r,")")}return w.current}}}),[]);var _=e.useCallback((function(e){w.current=t.findDOMNode(e)}),[]),k=(0,Ce.Z)(_,r),S=-1;e.Children.forEach(l,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===S)&&(S=n))}));var M=e.Children.map(l,(function(t,n){if(n===S){var r={};return u&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===y&&(r.tabIndex=0),e.cloneElement(t,r)}return t}));return e.createElement(_r,(0,p.Z)({role:"menu",ref:k,className:c,onKeyDown:function(e){var t=w.current,n=e.key,r=(0,gr.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Er(t,r,m,d,Sr);else if("ArrowUp"===n)e.preventDefault(),Er(t,r,m,d,Mr);else if("Home"===n)e.preventDefault(),Er(t,null,m,d,Sr);else if("End"===n)e.preventDefault(),Er(t,null,m,d,Mr);else if(1===n.length){var i=x.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&Tr(r,i);i.previousKeyMatched&&(s||Er(t,r,!1,d,Sr,i))?e.preventDefault():i.previousKeyMatched=!1}v&&v(e)},tabIndex:a?0:-1},b),M)})),Dr=Or,Nr="undefined"===typeof window?e.useEffect:e.useLayoutEffect,jr=e.forwardRef((function(n,r){var i=n.alignItems,o=void 0===i?"center":i,a=n.autoFocus,s=void 0!==a&&a,u=n.button,l=void 0!==u&&u,c=n.children,f=n.classes,d=n.className,h=n.component,m=n.ContainerComponent,v=void 0===m?"li":m,g=n.ContainerProps,y=(g=void 0===g?{}:g).className,b=(0,ve.Z)(g,["className"]),w=n.dense,x=void 0!==w&&w,_=n.disabled,k=void 0!==_&&_,S=n.disableGutters,M=void 0!==S&&S,T=n.divider,E=void 0!==T&&T,C=n.focusVisibleClassName,O=n.selected,D=void 0!==O&&O,N=(0,ve.Z)(n,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),j=e.useContext(wr),A={dense:x||j.dense||!1,alignItems:o},P=e.useRef(null);Nr((function(){s&&P.current&&P.current.focus()}),[s]);var R=e.Children.toArray(c),I=R.length&&(0,Nt.Z)(R[R.length-1],["ListItemSecondaryAction"]),F=e.useCallback((function(e){P.current=t.findDOMNode(e)}),[]),L=(0,Ce.Z)(F,r),z=(0,p.Z)({className:(0,ge.Z)(f.root,d,A.dense&&f.dense,!M&&f.gutters,E&&f.divider,k&&f.disabled,l&&f.button,"center"!==o&&f.alignItemsFlexStart,I&&f.secondaryAction,D&&f.selected),disabled:k},N),B=h||"li";return l&&(z.component=h||"div",z.focusVisibleClassName=(0,ge.Z)(f.focusVisible,C),B=Ye),I?(B=z.component||h?B:"div","li"===v&&("li"===B?B="div":"li"===z.component&&(z.component="div")),e.createElement(wr.Provider,{value:A},e.createElement(v,(0,p.Z)({className:(0,ge.Z)(f.container,y),ref:L},b),e.createElement(B,z,R),R.pop()))):e.createElement(wr.Provider,{value:A},e.createElement(B,(0,p.Z)({ref:L},z),R))})),Ar=(0,ye.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(jr),Pr=e.forwardRef((function(t,n){var r,i=t.classes,o=t.className,a=t.component,s=void 0===a?"li":a,u=t.disableGutters,l=void 0!==u&&u,c=t.ListItemClasses,f=t.role,d=void 0===f?"menuitem":f,h=t.selected,m=t.tabIndex,v=(0,ve.Z)(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(r=void 0!==m?m:-1),e.createElement(Ar,(0,p.Z)({button:!0,role:d,tabIndex:r,component:s,selected:h,disableGutters:l,classes:(0,p.Z)({dense:i.dense},c),className:(0,ge.Z)(i.root,o,h&&i.selected,!l&&i.gutters),ref:n},v))})),Rr=(0,ye.Z)((function(e){return{root:(0,p.Z)({},e.typography.body1,(0,Se.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,p.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Pr);function Ir(t){var n=t.children,r=t.options,i=e.useState(!1),o=(0,wt.Z)(i,2),a=o[0],s=o[1],u=e.useRef(null);return(0,Xe.jsxs)(e.Fragment,{children:[(0,Xe.jsxs)(Ve,{color:"primary",variant:"contained",ref:u,onClick:function(){s((function(e){return!e}))},children:[n," ",(0,Xe.jsx)($t.Z,{})]}),(0,Xe.jsx)(vr,{open:a,anchorEl:u.current,disablePortal:!0,placement:"bottom-end",children:(0,Xe.jsx)(ui,{elevation:1,children:(0,Xe.jsx)(br,{onClickAway:function(e){u.current&&u.current.contains(e.target)||s(!1)},children:(0,Xe.jsx)(Dr,{children:r.map((function(e,t){var n=e.label,r=e.handler;return(0,Xe.jsx)(Rr,{onClick:function(e){r(e,t),s(!1)},children:n},t)}))})})})})]})}var Fr=!1,Lr="unmounted",zr="exited",Br="entering",Zr="entered",Wr="exiting",Hr=function(n){function r(e,t){var r;r=n.call(this,e,t)||this;var i,o=t&&!t.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i=zr,r.appearStatus=Br):i=Zr:i=e.unmountOnExit||e.mountOnEnter?Lr:zr,r.state={status:i},r.nextCallback=null,r}(0,h.Z)(r,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Lr?{status:zr}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Br&&n!==Zr&&(t=Br):n!==Br&&n!==Zr||(t=Wr)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.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}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Br?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:Lr})},i.performEnter=function(e){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[t.findDOMNode(this),i],a=o[0],s=o[1],u=this.getTimeouts(),l=i?u.appear:u.enter;!e&&!r||Fr?this.safeSetState({status:Zr},(function(){n.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:Br},(function(){n.props.onEntering(a,s),n.onTransitionEnd(l,(function(){n.safeSetState({status:Zr},(function(){n.props.onEntered(a,s)}))}))})))},i.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),i=this.props.nodeRef?void 0:t.findDOMNode(this);n&&!Fr?(this.props.onExit(i),this.safeSetState({status:Wr},(function(){e.props.onExiting(i),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:zr},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:zr},(function(){e.props.onExited(i)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.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},i.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(r&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Lr)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,$.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(je.Provider,{value:null},"function"===typeof r?r(t,i):e.cloneElement(e.Children.only(r),i))},r}(e.Component);function Yr(){}Hr.contextType=je,Hr.propTypes={},Hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yr,onEntering:Yr,onEntered:Yr,onExit:Yr,onExiting:Yr,onExited:Yr},Hr.UNMOUNTED=Lr,Hr.EXITED=zr,Hr.ENTERING=Br,Hr.ENTERED=Zr,Hr.EXITING=Wr;var Ur=Hr;function Vr(){return(0,ar.Z)()||qe.Z}var qr=function(e){return e.scrollTop};function Gr(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function Xr(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var $r={entering:{opacity:1,transform:Xr(1)},entered:{opacity:1,transform:"none"}},Qr=e.forwardRef((function(t,n){var r=t.children,i=t.disableStrictModeCompat,o=void 0!==i&&i,a=t.in,s=t.onEnter,u=t.onEntered,l=t.onEntering,c=t.onExit,f=t.onExited,d=t.onExiting,h=t.style,m=t.timeout,v=void 0===m?"auto":m,g=t.TransitionComponent,y=void 0===g?Ur:g,b=(0,ve.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=e.useRef(),x=e.useRef(),_=Vr(),k=_.unstable_strictMode&&!o,S=e.useRef(null),M=(0,Ce.Z)(r.ref,n),T=(0,Ce.Z)(k?S:void 0,M),E=function(e){return function(t,n){if(e){var r=k?[S.current,t]:[t,n],i=(0,wt.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},C=E(l),O=E((function(e,t){qr(e);var n,r=Gr({style:h,timeout:v},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===v?(n=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[_.transitions.create("opacity",{duration:n,delay:o}),_.transitions.create("transform",{duration:.666*n,delay:o})].join(","),s&&s(e,t)})),D=E(u),N=E(d),j=E((function(e){var t,n=Gr({style:h,timeout:v},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===v?(t=_.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[_.transitions.create("opacity",{duration:t,delay:i}),_.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=Xr(.75),c&&c(e)})),A=E(f);return e.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),e.createElement(y,(0,p.Z)({appear:!0,in:a,nodeRef:k?S:void 0,onEnter:O,onEntered:D,onEntering:C,onExit:j,onExited:A,onExiting:N,addEndListener:function(e,t){var n=k?e:t;"auto"===v&&(w.current=setTimeout(n,x.current||0))},timeout:"auto"===v?null:v},b),(function(t,n){return e.cloneElement(r,(0,p.Z)({style:(0,p.Z)({opacity:0,transform:Xr(.75),visibility:"exited"!==t||a?void 0:"hidden"},$r[t],h,r.props.style),ref:T},n))}))}));Qr.muiSupportAuto=!0;var Kr=Qr;function Jr(t){var n=t.children,r=t.options,i=t.onPrimaryClick,o=e.useState(!1),a=(0,wt.Z)(o,2),s=a[0],u=a[1],l=e.useRef(null),c=function(e){l.current&&l.current.contains(e.target)||u(!1)};return(0,Xe.jsx)(Ct,{container:!0,direction:"column",alignItems:"center",children:(0,Xe.jsxs)(Ct,{item:!0,xs:12,children:[(0,Xe.jsxs)(qt,{ref:l,children:[(0,Xe.jsx)(Ve,{onClick:i,color:"primary",variant:"contained",children:n}),(0,Xe.jsx)(Ve,{color:"primary",variant:"contained",onClick:function(){u((function(e){return!e}))},children:(0,Xe.jsx)($t.Z,{})})]}),(0,Xe.jsx)(vr,{open:s,anchorEl:l.current,role:void 0,transition:!0,disablePortal:!0,children:function(e){var t=e.TransitionProps,n=e.placement;return(0,Xe.jsx)(Kr,Je(Je({},t),{},{style:{transformOrigin:"bottom"===n?"center top":"center bottom"},children:(0,Xe.jsx)(xe,{children:(0,Xe.jsx)(br,{onClickAway:c,children:(0,Xe.jsx)(Dr,{id:"split-button-menu",children:r.map((function(e,t){var n=e.label,r=e.handler;return(0,Xe.jsx)(Rr,{onClick:function(e){r(e,t),u(!1)},children:n},t)}))})})})}))}})]})})}var ei=["variant"];function ti(e){var t=e.variant,n=void 0===t?"primary":t,r=(0,ve.Z)(e,ei);return"secondary"===n?(0,Xe.jsx)(Ve,Je({color:"secondary",variant:"outlined"},r)):(0,Xe.jsx)(Ve,Je({color:"primary",variant:"contained"},r))}var ni=["children"],ri=(0,me.Z)({root:{padding:15,backgroundColor:"rgba(73, 105, 228, 0.1)",color:"rgba(0, 0, 0, 0.9)",borderLeft:"solid rgba(73, 105, 228, 0.1) 4px"}});function ii(e){var t=e.children,n=(0,ve.Z)(e,ni),r=ri();return(0,Xe.jsx)(xe,Je(Je({elevation:0,classes:{root:r.root}},n),{},{children:t}))}var oi,ai=["elevation","className","padded"],si=(0,me.Z)({padded:{padding:15}}),ui=e.forwardRef((function(e,t){var n=e.elevation,r=e.className,i=e.padded,o=(0,ve.Z)(e,ai),a=si(),s=[];return i&&s.push(a.padded),(0,Xe.jsx)(xe,Je({ref:t,elevation:n||0,className:(0,ge.Z)([s,r])},o))})),li=n(50503),ci=n(37636);function fi(){if(oi)return oi;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),oi="reverse",e.scrollLeft>0?oi="default":(e.scrollLeft=1,0===e.scrollLeft&&(oi="negative")),document.body.removeChild(e),oi}function di(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(fi()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function hi(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var pi={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mi(t){var n=t.onChange,r=(0,ve.Z)(t,["onChange"]),i=e.useRef(),o=e.useRef(null),a=function(){i.current=o.current.offsetHeight-o.current.clientHeight};return e.useEffect((function(){var e=(0,li.Z)((function(){var e=i.current;a(),e!==i.current&&n(i.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[n]),e.useEffect((function(){a(),n(i.current)}),[n]),e.createElement("div",(0,p.Z)({style:pi,ref:o},r))}var vi=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=t.orientation,s=(0,ve.Z)(t,["classes","className","color","orientation"]);return e.createElement("span",(0,p.Z)({className:(0,ge.Z)(r.root,r["color".concat((0,be.Z)(o))],i,"vertical"===a&&r.vertical),ref:n},s))})),gi=(0,ye.Z)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(vi),yi=n(28499),bi=(0,yi.Z)(e.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wi=(0,yi.Z)(e.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),xi=e.createElement(bi,{fontSize:"small"}),_i=e.createElement(wi,{fontSize:"small"}),ki=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.direction,a=t.orientation,s=t.disabled,u=(0,ve.Z)(t,["classes","className","direction","orientation","disabled"]);return e.createElement(Ye,(0,p.Z)({component:"div",className:(0,ge.Z)(r.root,i,s&&r.disabled,"vertical"===a&&r.vertical),ref:n,role:null,tabIndex:null},u),"left"===o?xi:_i)})),Si=(0,ye.Z)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(ki),Mi=e.forwardRef((function(t,n){var r=t["aria-label"],i=t["aria-labelledby"],o=t.action,a=t.centered,s=void 0!==a&&a,u=t.children,l=t.classes,c=t.className,f=t.component,d=void 0===f?"div":f,h=t.indicatorColor,m=void 0===h?"secondary":h,v=t.onChange,g=t.orientation,y=void 0===g?"horizontal":g,b=t.ScrollButtonComponent,w=void 0===b?Si:b,x=t.scrollButtons,_=void 0===x?"auto":x,k=t.selectionFollowsFocus,S=t.TabIndicatorProps,M=void 0===S?{}:S,T=t.TabScrollButtonProps,E=t.textColor,C=void 0===E?"inherit":E,O=t.value,D=t.variant,N=void 0===D?"standard":D,j=(0,ve.Z)(t,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),A=Vr(),P="scrollable"===N,R="rtl"===A.direction,I="vertical"===y,F=I?"scrollTop":"scrollLeft",L=I?"top":"left",z=I?"bottom":"right",B=I?"clientHeight":"clientWidth",Z=I?"height":"width";var W=e.useState(!1),H=W[0],Y=W[1],U=e.useState({}),V=U[0],q=U[1],G=e.useState({start:!1,end:!1}),X=G[0],$=G[1],Q=e.useState({overflow:"hidden",marginBottom:null}),K=Q[0],J=Q[1],ee=new Map,te=e.useRef(null),ne=e.useRef(null),re=function(){var e,t,n=te.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:di(n,A.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==O){var i=ne.current.children;if(i.length>0){var o=i[ee.get(O)];0,t=o?o.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ie=(0,Oe.Z)((function(){var e,t=re(),n=t.tabsMeta,r=t.tabMeta,i=0;if(r&&n)if(I)i=r.top-n.top+n.scrollTop;else{var o=R?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;i=r.left-n.left+o}var a=(e={},(0,Se.Z)(e,L,i),(0,Se.Z)(e,Z,r?r[Z]:0),e);if(isNaN(V[L])||isNaN(V[Z]))q(a);else{var s=Math.abs(V[L]-a[L]),u=Math.abs(V[Z]-a[Z]);(s>=1||u>=1)&&q(a)}})),oe=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=r.ease,a=void 0===o?hi:o,s=r.duration,u=void 0===s?300:s,l=null,c=t[e],f=!1,d=function(){f=!0},h=function r(o){if(f)i(new Error("Animation cancelled"));else{null===l&&(l=o);var s=Math.min(1,(o-l)/u);t[e]=a(s)*(n-c)+c,s>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(r)}};c===n?i(new Error("Element already at target position")):requestAnimationFrame(h)}(F,te.current,e)},ae=function(e){var t=te.current[F];I?t+=e:(t+=e*(R?-1:1),t*=R&&"reverse"===fi()?-1:1),oe(t)},se=function(){ae(-te.current[B])},ue=function(){ae(te.current[B])},le=e.useCallback((function(e){J({overflow:null,marginBottom:-e})}),[]),ce=(0,Oe.Z)((function(){var e=re(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[L]<t[L]){var r=t[F]+(n[L]-t[L]);oe(r)}else if(n[z]>t[z]){var i=t[F]+(n[z]-t[z]);oe(i)}})),fe=(0,Oe.Z)((function(){if(P&&"off"!==_){var e,t,n=te.current,r=n.scrollTop,i=n.scrollHeight,o=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(I)e=r>1,t=r<i-o-1;else{var u=di(te.current,A.direction);e=R?u<a-s-1:u>1,t=R?u>1:u<a-s-1}e===X.start&&t===X.end||$({start:e,end:t})}}));e.useEffect((function(){var e=(0,li.Z)((function(){ie(),fe()})),t=(0,ci.Z)(te.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[ie,fe]);var de=e.useCallback((0,li.Z)((function(){fe()})));e.useEffect((function(){return function(){de.clear()}}),[de]),e.useEffect((function(){Y(!0)}),[]),e.useEffect((function(){ie(),fe()})),e.useEffect((function(){ce()}),[ce,V]),e.useImperativeHandle(o,(function(){return{updateIndicator:ie,updateScrollButtons:fe}}),[ie,fe]);var he=e.createElement(gi,(0,p.Z)({className:l.indicator,orientation:y,color:m},M,{style:(0,p.Z)({},V,M.style)})),pe=0,me=e.Children.map(u,(function(t){if(!e.isValidElement(t))return null;var n=void 0===t.props.value?pe:t.props.value;ee.set(n,pe);var r=n===O;return pe+=1,e.cloneElement(t,{fullWidth:"fullWidth"===N,indicator:r&&!H&&he,selected:r,selectionFollowsFocus:k,onChange:v,textColor:C,value:n})})),ye=function(){var t={};t.scrollbarSizeListener=P?e.createElement(mi,{className:l.scrollable,onChange:le}):null;var n=X.start||X.end,r=P&&("auto"===_&&n||"desktop"===_||"on"===_);return t.scrollButtonStart=r?e.createElement(w,(0,p.Z)({orientation:y,direction:R?"right":"left",onClick:se,disabled:!X.start,className:(0,ge.Z)(l.scrollButtons,"on"!==_&&l.scrollButtonsDesktop)},T)):null,t.scrollButtonEnd=r?e.createElement(w,(0,p.Z)({orientation:y,direction:R?"left":"right",onClick:ue,disabled:!X.end,className:(0,ge.Z)(l.scrollButtons,"on"!==_&&l.scrollButtonsDesktop)},T)):null,t}();return e.createElement(d,(0,p.Z)({className:(0,ge.Z)(l.root,c,I&&l.vertical),ref:n},j),ye.scrollButtonStart,ye.scrollbarSizeListener,e.createElement("div",{className:(0,ge.Z)(l.scroller,P?l.scrollable:l.fixed),style:K,ref:te,onScroll:de},e.createElement("div",{"aria-label":r,"aria-labelledby":i,className:(0,ge.Z)(l.flexContainer,I&&l.flexContainerVertical,s&&!P&&l.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==y?"ArrowLeft":"ArrowUp",i="vertical"!==y?"ArrowRight":"ArrowDown";switch("vertical"!==y&&"rtl"===A.direction&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:n=t.previousElementSibling||ne.current.lastChild;break;case i:n=t.nextElementSibling||ne.current.firstChild;break;case"Home":n=ne.current.firstChild;break;case"End":n=ne.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:ne,role:"tablist"},me),H&&he),ye.scrollButtonEnd)})),Ti=(0,ye.Z)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:(0,Se.Z)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Mi),Ei=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.disabled,a=void 0!==o&&o,s=t.disableFocusRipple,u=void 0!==s&&s,l=t.fullWidth,c=t.icon,f=t.indicator,d=t.label,h=t.onChange,m=t.onClick,v=t.onFocus,g=t.selected,y=t.selectionFollowsFocus,b=t.textColor,w=void 0===b?"inherit":b,x=t.value,_=t.wrapped,k=void 0!==_&&_,S=(0,ve.Z)(t,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return e.createElement(Ye,(0,p.Z)({focusRipple:!u,className:(0,ge.Z)(r.root,r["textColor".concat((0,be.Z)(w))],i,a&&r.disabled,g&&r.selected,d&&c&&r.labelIcon,l&&r.fullWidth,k&&r.wrapped),ref:n,role:"tab","aria-selected":g,disabled:a,onClick:function(e){h&&h(e,x),m&&m(e)},onFocus:function(e){y&&!g&&h&&h(e,x),v&&v(e)},tabIndex:g?0:-1},S),e.createElement("span",{className:r.wrapper},c,d),f)})),Ci=(0,ye.Z)((function(e){var t;return{root:(0,p.Z)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},(0,Se.Z)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),(0,Se.Z)(t,"overflow","hidden"),(0,Se.Z)(t,"whiteSpace","normal"),(0,Se.Z)(t,"textAlign","center"),(0,Se.Z)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(Ei),Oi=n(61553),Di=n.t(Oi,2),Ni={brand00:Oi.indigo00,brand01:Oi.indigo01,brand02:Oi.indigo02,brand03:Oi.indigo03,brand04:Oi.indigo04,brand05:Oi.indigo05,brand06:Oi.indigo06,brand07:Oi.indigo07,brand08:Oi.indigo08,brand09:Oi.indigo09,brand10:Oi.indigo10,brand11:Oi.indigo11,brand12:Oi.indigo12,brand13:Oi.indigo13,brand14:Oi.indigo14},ji={brand:Ni.brand07,bgBrand:Ni.brand07,bgBrandLight:Ni.brand09,bgBrandDark:Ni.brand05,brandXLight:Oi.indigoXLight,brandXXLight:Oi.indigoXXLight},Ai={failure:Oi.red07,failureLight:Oi.red09,failureDark:Oi.red05},Pi=Je(Je(Je(Je({},Di),Ni),ji),Ai),Ri="10px",Ii="12px",Fi="13px",Li="14px",zi="16px",Bi="18px",Zi="20px",Wi="24px",Hi="28px",Yi="32px",Ui="40px",Vi=1.25,qi=1.5,Gi=400,Xi=600,$i=700,Qi={space0:"4px",space1:"8px",space2:"12px",space3:"16px",space4:"20px",space5:"24px",space6:"32px",space7:"48px",space8:"80px",space9:"144px"},Ki="599px",Ji="1023px",eo="1439px",to="1919px",no="4px",ro="2px solid rgba(31,131,219,1)",io="1px solid rgba(5,5,5,1)",oo="1px solid rgba(5,5,5,0.7)",ao=n(40423),so=n(79316);var uo=function(t){var n=t.children,r=t.theme,i=(0,ar.Z)(),o=e.useMemo((function(){var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,p.Z)({},e,t)}(i,r);return null!=e&&(e[so.Z]=null!==i),e}),[r,i]);return e.createElement(ao.Z.Provider,{value:o},n)},lo=["children"],co=function(e){var t=e.children,n=(0,ve.Z)(e,lo);return(0,Xe.jsx)(uo,Je(Je({theme:wo},n),{},{children:t}))},fo=n(81534),ho=n(89688);function po(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ho.Z.apply(void 0,[(0,fo.Z)({unstable_strictMode:!0},e)].concat(n))}function mo(e){return parseFloat(e)}var vo,go={palette:{type:"light",primary:{main:Pi.brand,light:Pi.bgBrandLight,dark:Pi.bgBrandDark,contrastText:Pi.white},secondary:{main:Pi.white,light:Pi.bgBrandLight,dark:Pi.bgBrandDark,contrastText:Pi.black},text:{primary:Pi.black,secondary:Pi.blackXLight,disabled:Pi.blackXXLight,hint:Pi.blackXXLight},grey:{50:Pi.gray14,100:Pi.gray13,200:Pi.gray12,300:Pi.gray11,400:Pi.gray10,500:Pi.gray09,600:Pi.gray07,700:Pi.gray06,800:Pi.gray04,900:Pi.gray02,A100:Pi.gray12,A200:Pi.gray08,A400:Pi.gray03,A700:Pi.gray06},error:{main:Pi.failure,light:Pi.failureLight,dark:Pi.failureDark,contrastText:Pi.white},background:{paper:Pi.white,default:Pi.gray14},divider:Pi.blackXXLight},typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:mo(Fi),htmlFontSize:mo(Fi),fontWeightLight:Gi,fontWeightRegular:Gi,fontWeightMedium:Xi,fontWeightBold:$i,h1:{fontSize:Ui,lineHeight:Vi,fontWeight:$i},h2:{fontSize:Yi,lineHeight:Vi,fontWeight:$i},h3:{fontSize:Hi,lineHeight:Vi,fontWeight:$i},h4:{fontSize:Wi,lineHeight:Vi,fontWeight:$i},h5:{fontSize:Zi,lineHeight:Vi,fontWeight:$i},h6:{fontSize:Bi,lineHeight:Vi,fontWeight:$i},body1:{fontSize:zi,lineHeight:qi},body2:{fontSize:Li,lineHeight:qi},caption:{fontSize:Fi,lineHeight:qi,fontWeight:Xi},button:{fontSize:Fi,fontWeight:Xi}},breakpoints:{values:{xs:0,sm:mo(Ki),md:mo(Ji),lg:mo(eo),xl:mo(to)}},shape:{borderRadius:mo(no)},color:function(e){return Pi[e]},spacing:function(e){var t=mo(Qi.space0);return"string"===typeof e?mo(Qi[e]):"number"===typeof e?t*e:t},props:{MuiButtonBase:{disableRipple:!0},MuiFormControl:{variant:"outlined"},MuiMenu:{transitionDuration:0,elevation:3},MuiTextField:{variant:"outlined",InputProps:{labelWidth:0}},MuiInputLabel:{shrink:!0,disableAnimation:!0},MuiOutlinedInput:{notched:!1},MuiPaper:{elevation:3},MuiPopover:{elevation:3}}},yo=po(go),bo={overrides:{MuiSvgIcon:{root:{fontSize:Zi},fontSizeSmall:{fontSize:Ii}},MuiAvatar:{root:{fontSize:"2.4rem"}},MuiButton:{root:{textDecoration:"none !important",textTransform:"none",paddingTop:yo.spacing("space1"),paddingBottom:yo.spacing("space1"),paddingLeft:yo.spacing("space2"),paddingRight:yo.spacing("space2"),border:"1px solid transparent",transition:"none","&$focusVisible":{boxShadow:"none",position:"relative","&:after":{content:'""',display:"block",position:"absolute",width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:no,border:ro,top:-5,left:-5}}},text:{paddingTop:yo.spacing("space1"),paddingBottom:yo.spacing("space1"),paddingLeft:yo.spacing("space2"),paddingRight:yo.spacing("space2"),"&:hover":{backgroundColor:yo.palette.grey.A100}},textSizeSmall:{fontSize:"0.8125rem"},outlined:{paddingTop:yo.spacing("space1"),paddingBottom:yo.spacing("space1"),paddingLeft:yo.spacing("space2"),paddingRight:yo.spacing("space2")},outlinedPrimary:{border:io},outlinedSecondary:{border:oo,color:yo.palette.secondary.contrastText,"&:hover":{border:oo+" !important",backgroundColor:yo.palette.grey.A100}},contained:{"&:disabled":{backgroundColor:Pi.bgBrandLight,color:yo.palette.common.white},boxShadow:"none !important","&:active":{boxShadow:"none !important"}},containedPrimary:{color:"".concat(Pi.white," !important")}},MuiCheckbox:{root:{fontSize:zi,padding:yo.spacing("space1")},colorSecondary:{color:Pi.blackLight,"&$checked":{color:yo.palette.primary.main},"&$disabled":{color:Pi.blackXLight}}},MuiChip:{root:{borderRadius:no,height:24,fontSize:Fi,fontWeight:Xi},label:{paddingLeft:yo.spacing("space1"),paddingRight:yo.spacing("space1")},sizeSmall:{fontSize:Ri,height:20},deleteIcon:{height:"100%",padding:3,margin:0,backgroundColor:"rgba(5, 5, 5, 0.1)",borderRadius:"0 ".concat(no," ").concat(no," 0"),width:24,boxSizing:"border-box",textAlign:"center",fill:yo.palette.common.white,borderLeftWidth:1,borderLeftStyle:"solid",borderLeftColor:"rgba(5, 5, 5, 0.1)"},deleteIconColorPrimary:{color:Pi.white},colorSecondary:{color:Pi.white,backgroundColor:Pi.lime07}},MuiRadio:{root:{padding:yo.spacing("space1")}},MuiInputBase:{root:{fontSize:Fi},input:{"&[type=number]::-webkit-inner-spin-button ":{appearance:"none",margin:0}}},MuiOutlinedInput:{notchedOutline:{borderColor:Pi.blackXXLight,top:0,"& legend":{display:"none"}},root:{"&:hover $notchedOutline":{borderColor:Pi.blackXXLight},"&.$Mui-disabled":{backgroundColor:Pi.grayXXLight,borderColor:Pi.blackXXLight,color:Pi.blackLight},"&.$Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"inherit"},backgroundColor:yo.palette.background.paper},input:{padding:"".concat(yo.spacing("space2"),"px ").concat(yo.spacing("space2"),"px")}},MuiFormControl:{root:{display:"block"}},MuiFormControlLabel:{label:{fontSize:Li,lineHeight:qi}},MuiInputLabel:{root:{display:"none",pointerEvents:"none",color:yo.palette.text.primary,"&.$Mui-disabled":{color:Pi.blackXLight}},outlined:{"&$shrink":{display:"block",transform:"none",position:"relative",fontWeight:Xi,fontSize:Fi,paddingLeft:0,paddingBottom:8},"&$focused":{color:yo.palette.text.primary}}},MuiFormHelperText:{contained:{margin:0,marginTop:yo.spacing("space1")}},MuiSelect:{icon:{fontSize:Bi,marginTop:3,color:yo.palette.text.primary},selectMenu:{}},MuiPickersClockNumber:{clockNumber:{top:6}},MuiMenuItem:{root:{color:yo.palette.text.primary,fontSize:Ii,"&:hover":{backgroundColor:yo.palette.grey[100]},"&:focus":{backgroundColor:yo.palette.grey[100]},"&$selected":{backgroundColor:yo.palette.grey[200],"&:hover":{backgroundColor:yo.palette.grey[200]},"&:focus":{backgroundColor:yo.palette.grey[200]}}},dense:{paddingTop:0,paddingBottom:0}},MuiSnackbarContent:{root:{backgroundColor:yo.palette.primary.main,paddingTop:0,paddingBottom:0,marginRight:yo.spacing("space3"),marginLeft:yo.spacing("space3"),borderRadius:yo.shape.borderRadius,boxShadow:"none"},action:{"& button":{color:yo.palette.common.white}}},MuiSwitch:{root:{padding:0,height:20,width:40,"&:hover":{"& > $track":{backgroundColor:Pi.gray05},"& > $checked + $track":{backgroundColor:Pi.brand05}}},thumb:{borderRadius:8,width:16,height:16,boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.4), 0px 0px 1px 0px rgba(0, 0, 0, 0.4)"},track:{backgroundColor:Pi.gray07,borderRadius:10,opacity:1},switchBase:{padding:2,"&$checked":{transform:"translateX(100%)","& + $track":{opacity:1}}},colorPrimary:{"&$checked":{color:yo.palette.common.white},"&$checked + $track":{backgroundColor:yo.palette.primary.main}}},MuiTab:{root:{textTransform:"none","&$selected":{color:"black"}}},MuiTabs:{indicator:{height:4},root:{minHeight:0}},MuiListItemText:{secondary:{fontSize:Fi},primary:{fontSize:Fi}},MuiListSubheader:{root:{fontSize:Fi,lineHeight:qi,paddingTop:yo.spacing("space0"),paddingBottom:yo.spacing("space0")}},MuiTableCell:{root:{fontSize:Fi},head:{fontWeight:Xi,color:Pi.gray05}},MuiTableRow:{root:{"&.Mui-selected:hover":{backgroundColor:Pi.gray12},"&.Mui-selected":{backgroundColor:"".concat(Pi.gray12," !important")}}},MuiDialogTitle:{root:{backgroundColor:yo.palette.grey[50],padding:"".concat(yo.spacing("space5"),"px ").concat(yo.spacing("space4"),"px"),borderBottom:"1px solid ".concat(Pi.blackXXLight)}},MuiDialogContent:{root:{padding:yo.spacing("space5")}},MuiDialogActions:{root:{backgroundColor:yo.palette.grey[50],padding:"".concat(yo.spacing("space3"),"px ").concat(yo.spacing("space5"),"px"),borderTop:"1px solid ".concat(Pi.blackXXLight),margin:0,"button + button":{marginLeft:yo.spacing("space1")}}},MuiToolbar:{root:{gap:8}},MuiAppBar:{colorPrimary:{backgroundColor:Pi.white,color:Pi.gray00},root:{zIndex:999,paddingLeft:20,paddingRight:20,boxShadow:"0 4px 8px 0 rgb(0 0 0 / 10%), 0 0 2px 0 rgb(0 0 0 / 10%)",height:80,"& .MuiButton-label":{color:Pi.black},"& .MuiLink-underlineHover:hover":{textDecoration:"none !important"}}},MuiAutocomplete:{input:{padding:"12px 16px !important"},paper:{fontSize:Fi},popupIndicator:{fontSize:Bi,color:yo.palette.text.primary},clearIndicator:{fontSize:Bi},inputRoot:{padding:"0px !important"},listbox:{backgroundColor:yo.palette.common.white},tag:{"&:first-child":{marginLeft:8}}},MuiTablePagination:{select:{paddingRight:"32px !important"},selectRoot:{top:1}}}},wo=po(Je(Je({},yo),bo)),xo=["contextual","children"],_o=["contextual"],ko=(0,me.Z)({root:(vo={color:Pi.gray02,textTransform:"none",height:38,minHeight:38,padding:"12px 16px",backgroundColor:Pi.gray13},(0,Se.Z)(vo,wo.breakpoints.up("md"),{minWidth:0}),(0,Se.Z)(vo,"width","auto"),(0,Se.Z)(vo,"&:hover",{backgroundColor:Pi.grayXLight,color:Pi.gray02}),vo),selected:{backgroundColor:"white",color:Pi.black,"&:hover":{backgroundColor:"white",color:Pi.black}},wrapper:{width:"auto"}}),So=(0,me.Z)({indicator:{height:0},flexContainer:{backgroundColor:Pi.gray13}});function Mo(t){var n=t.contextual,r=t.children,i=(0,ve.Z)(t,xo),o=So();return(0,Xe.jsx)(Ti,Je(Je({classes:n?o:null,indicatorColor:"primary"},i),{},{children:n?r.map((function(t,n){return e.cloneElement(t,{contextual:!0,key:n})})):r}))}function To(e){var t=e.contextual,n=(0,ve.Z)(e,_o),r=ko();return(0,Xe.jsx)(Ci,Je({classes:t?r:null},n))}var Eo=["level"],Co=["h6","h5","h4","h3","h2","h1"];function Oo(e){var t=e.level,n=void 0===t?3:t,r=(0,ve.Z)(e,Eo);return(0,Xe.jsx)(ft,Je({variant:Co[n]},r))}var Do=["level"],No=["caption","body2","body1"];function jo(e){var t=e.level,n=void 0===t?1:t,r=(0,ve.Z)(e,Do);return(0,Xe.jsx)(ft,Je({variant:No[n]},r))}var Ao=n(37483);function Po(e,t){return parseInt(e[t],10)||0}var Ro="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,Io={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Fo=e.forwardRef((function(t,n){var r=t.onChange,i=t.rows,o=t.rowsMax,a=t.rowsMin,s=t.maxRows,u=t.minRows,l=void 0===u?1:u,c=t.style,f=t.value,d=(0,ve.Z)(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,m=i||a||l,v=e.useRef(null!=f).current,g=e.useRef(null),y=(0,Ce.Z)(n,g),b=e.useRef(null),w=e.useRef(0),x=e.useState({}),_=x[0],k=x[1],S=e.useCallback((function(){var e=g.current,n=window.getComputedStyle(e),r=b.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=Po(n,"padding-bottom")+Po(n,"padding-top"),a=Po(n,"border-bottom-width")+Po(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var u=r.scrollHeight-o,l=s;m&&(l=Math.max(Number(m)*u,l)),h&&(l=Math.min(Number(h)*u,l));var c=(l=Math.max(l,u))+("border-box"===i?o+a:0),f=Math.abs(l-s)<=1;k((function(e){return w.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==f)?(w.current+=1,{overflow:f,outerHeightStyle:c}):e}))}),[h,m,t.placeholder]);e.useEffect((function(){var e=(0,li.Z)((function(){w.current=0,S()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[S]),Ro((function(){S()})),e.useEffect((function(){w.current=0}),[f]);return e.createElement(e.Fragment,null,e.createElement("textarea",(0,p.Z)({value:f,onChange:function(e){w.current=0,v||S(),r&&r(e)},ref:y,rows:m,style:(0,p.Z)({height:_.outerHeightStyle,overflow:_.overflow?"hidden":null},c)},d)),e.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:(0,p.Z)({},Io,c)}))})),Lo=Fo,zo="undefined"===typeof window?e.useEffect:e.useLayoutEffect,Bo=e.forwardRef((function(t,n){var r=t["aria-describedby"],i=t.autoComplete,o=t.autoFocus,a=t.classes,s=t.className,u=(t.color,t.defaultValue),l=t.disabled,c=t.endAdornment,f=(t.error,t.fullWidth),d=void 0!==f&&f,h=t.id,m=t.inputComponent,v=void 0===m?"input":m,g=t.inputProps,y=void 0===g?{}:g,b=t.inputRef,w=(t.margin,t.multiline),x=void 0!==w&&w,_=t.name,k=t.onBlur,S=t.onChange,M=t.onClick,T=t.onFocus,E=t.onKeyDown,C=t.onKeyUp,O=t.placeholder,D=t.readOnly,N=t.renderSuffix,j=t.rows,A=t.rowsMax,P=t.rowsMin,R=t.maxRows,I=t.minRows,F=t.startAdornment,L=t.type,z=void 0===L?"text":L,B=t.value,Z=(0,ve.Z)(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),W=null!=y.value?y.value:B,H=e.useRef(null!=W).current,Y=e.useRef(),U=e.useCallback((function(e){0}),[]),V=(0,Ce.Z)(y.ref,U),q=(0,Ce.Z)(b,V),G=(0,Ce.Z)(Y,q),X=e.useState(!1),$=X[0],Q=X[1],K=At();var J=Ft({props:t,muiFormControl:K,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});J.focused=K?K.focused:$,e.useEffect((function(){!K&&l&&$&&(Q(!1),k&&k())}),[K,l,$,k]);var ee=K&&K.onFilled,te=K&&K.onEmpty,ne=e.useCallback((function(e){Dt(e)?ee&&ee():te&&te()}),[ee,te]);zo((function(){H&&ne({value:W})}),[W,ne,H]);e.useEffect((function(){ne(Y.current)}),[]);var re=v,ie=(0,p.Z)({},y,{ref:G});"string"!==typeof re?ie=(0,p.Z)({inputRef:G,type:z},ie,{ref:null}):x?!j||R||I||A||P?(ie=(0,p.Z)({minRows:j||I,rowsMax:A,maxRows:R},ie),re=Lo):re="textarea":ie=(0,p.Z)({type:z},ie);return e.useEffect((function(){K&&K.setAdornedStart(Boolean(F))}),[K,F]),e.createElement("div",(0,p.Z)({className:(0,ge.Z)(a.root,a["color".concat((0,be.Z)(J.color||"primary"))],s,J.disabled&&a.disabled,J.error&&a.error,d&&a.fullWidth,J.focused&&a.focused,K&&a.formControl,x&&a.multiline,F&&a.adornedStart,c&&a.adornedEnd,"dense"===J.margin&&a.marginDense),onClick:function(e){Y.current&&e.currentTarget===e.target&&Y.current.focus(),M&&M(e)},ref:n},Z),F,e.createElement(Pt.Provider,{value:null},e.createElement(re,(0,p.Z)({"aria-invalid":J.error,"aria-describedby":r,autoComplete:i,autoFocus:o,defaultValue:u,disabled:J.disabled,id:h,onAnimationStart:function(e){ne("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:_,placeholder:O,readOnly:D,required:J.required,rows:j,value:W,onKeyDown:E,onKeyUp:C},ie,{className:(0,ge.Z)(a.input,y.className,J.disabled&&a.disabled,x&&a.inputMultiline,J.hiddenLabel&&a.inputHiddenLabel,F&&a.inputAdornedStart,c&&a.inputAdornedEnd,"search"===z&&a.inputTypeSearch,"dense"===J.margin&&a.inputMarginDense),onBlur:function(e){k&&k(e),y.onBlur&&y.onBlur(e),K&&K.onBlur?K.onBlur(e):Q(!1)},onChange:function(e){if(!H){var t=e.target||Y.current;if(null==t)throw new Error((0,Ao.Z)(1));ne({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];y.onChange&&y.onChange.apply(y,[e].concat(r)),S&&S.apply(void 0,[e].concat(r))},onFocus:function(e){J.disabled?e.stopPropagation():(T&&T(e),y.onFocus&&y.onFocus(e),K&&K.onFocus?K.onFocus(e):Q(!0))}}))),c,N?N((0,p.Z)({},J,{startAdornment:F})):null)})),Zo=(0,ye.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,p.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Bo),Wo=e.forwardRef((function(t,n){var r=t.disableUnderline,i=t.classes,o=t.fullWidth,a=void 0!==o&&o,s=t.inputComponent,u=void 0===s?"input":s,l=t.multiline,c=void 0!==l&&l,f=t.type,d=void 0===f?"text":f,h=(0,ve.Z)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Zo,(0,p.Z)({classes:(0,p.Z)({},i,{root:(0,ge.Z)(i.root,!r&&i.underline),underline:null}),fullWidth:a,inputComponent:u,multiline:c,ref:n,type:d},h))}));Wo.muiName="Input";var Ho=(0,ye.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Wo),Yo=e.forwardRef((function(t,n){var r=t.disableUnderline,i=t.classes,o=t.fullWidth,a=void 0!==o&&o,s=t.inputComponent,u=void 0===s?"input":s,l=t.multiline,c=void 0!==l&&l,f=t.type,d=void 0===f?"text":f,h=(0,ve.Z)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(Zo,(0,p.Z)({classes:(0,p.Z)({},i,{root:(0,ge.Z)(i.root,!r&&i.underline),underline:null}),fullWidth:a,inputComponent:u,multiline:c,ref:n,type:d},h))}));Yo.muiName="Input";var Uo=(0,ye.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Yo),Vo=e.forwardRef((function(t,n){t.children;var r=t.classes,i=t.className,o=t.label,a=t.labelWidth,s=t.notched,u=t.style,l=(0,ve.Z)(t,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===Vr().direction?"right":"left";if(void 0!==o)return e.createElement("fieldset",(0,p.Z)({"aria-hidden":!0,className:(0,ge.Z)(r.root,i),ref:n,style:u},l),e.createElement("legend",{className:(0,ge.Z)(r.legendLabelled,s&&r.legendNotched)},o?e.createElement("span",null,o):e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=a>0?.75*a+8:.01;return e.createElement("fieldset",(0,p.Z)({"aria-hidden":!0,style:(0,p.Z)((0,Se.Z)({},"padding".concat((0,be.Z)(c)),8),u),className:(0,ge.Z)(r.root,i),ref:n},l),e.createElement("legend",{className:r.legend,style:{width:s?f:.01}},e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),qo=(0,ye.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(Vo),Go=e.forwardRef((function(t,n){var r=t.classes,i=t.fullWidth,o=void 0!==i&&i,a=t.inputComponent,s=void 0===a?"input":a,u=t.label,l=t.labelWidth,c=void 0===l?0:l,f=t.multiline,d=void 0!==f&&f,h=t.notched,m=t.type,v=void 0===m?"text":m,g=(0,ve.Z)(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return e.createElement(Zo,(0,p.Z)({renderSuffix:function(t){return e.createElement(qo,{className:r.notchedOutline,label:u,labelWidth:c,notched:"undefined"!==typeof h?h:Boolean(t.startAdornment||t.filled||t.focused)})},classes:(0,p.Z)({},r,{root:(0,ge.Z)(r.root,r.underline),notchedOutline:null}),fullWidth:o,inputComponent:s,multiline:d,ref:n,type:v},g))}));Go.muiName="Input";var Xo=(0,ye.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(Go),$o=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=void 0===a?"p":a,u=(t.disabled,t.error,t.filled,t.focused,t.margin,t.required,t.variant,(0,ve.Z)(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),l=Ft({props:t,muiFormControl:Lt(),states:["variant","margin","disabled","error","filled","focused","required"]});return e.createElement(s,(0,p.Z)({className:(0,ge.Z)(i.root,("filled"===l.variant||"outlined"===l.variant)&&i.contained,o,l.disabled&&i.disabled,l.error&&i.error,l.filled&&i.filled,l.focused&&i.focused,l.required&&i.required,"dense"===l.margin&&i.marginDense),ref:n},u)," "===r?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)})),Qo=(0,ye.Z)((function(e){return{root:(0,p.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})($o),Ko=n(25352),Jo=n(70794),ea=n(19535);function ta(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function na(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ra(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,Ne.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&ta(e,i)}))}function ia(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function oa(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,gr.Z)(e);return t.body===e?(0,ci.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=kr();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(na(o)+a,"px"),n=(0,gr.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(na(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var aa=function(){function e(){r(this,e),this.modals=[],this.containers=[]}return(0,i.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ta(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ra(t,e.mountNode,e.modalRef,r,!0);var i=ia(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=ia(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=oa(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ia(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ta(e.modalRef,!0),ra(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&ta(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var sa=function(n){var r=n.children,i=n.disableAutoFocus,o=void 0!==i&&i,a=n.disableEnforceFocus,s=void 0!==a&&a,u=n.disableRestoreFocus,l=void 0!==u&&u,c=n.getDoc,f=n.isEnabled,d=n.open,h=e.useRef(),p=e.useRef(null),m=e.useRef(null),v=e.useRef(),g=e.useRef(null),y=e.useCallback((function(e){g.current=t.findDOMNode(e)}),[]),b=(0,Ce.Z)(r.ref,y),w=e.useRef();return e.useEffect((function(){w.current=d}),[d]),!w.current&&d&&"undefined"!==typeof window&&(v.current=c().activeElement),e.useEffect((function(){if(d){var e=(0,gr.Z)(g.current);o||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!s&&f()&&!h.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():h.current=!1)},n=function(t){!s&&f()&&9===t.keyCode&&e.activeElement===g.current&&(h.current=!0,t.shiftKey?m.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[o,s,l,f,d]),e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),e.cloneElement(r,{ref:b}),e.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},ua={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},la=e.forwardRef((function(t,n){var r=t.invisible,i=void 0!==r&&r,o=t.open,a=(0,ve.Z)(t,["invisible","open"]);return o?e.createElement("div",(0,p.Z)({"aria-hidden":!0,ref:n},a,{style:(0,p.Z)({},ua.root,i?ua.invisible:{},a.style)})):null}));var ca=new aa,fa=e.forwardRef((function(n,r){var i=(0,ar.Z)(),o=(0,Jo.Z)({name:"MuiModal",props:(0,p.Z)({},n),theme:i}),a=o.BackdropComponent,s=void 0===a?la:a,u=o.BackdropProps,l=o.children,c=o.closeAfterTransition,f=void 0!==c&&c,d=o.container,h=o.disableAutoFocus,m=void 0!==h&&h,v=o.disableBackdropClick,g=void 0!==v&&v,y=o.disableEnforceFocus,b=void 0!==y&&y,w=o.disableEscapeKeyDown,x=void 0!==w&&w,_=o.disablePortal,k=void 0!==_&&_,S=o.disableRestoreFocus,M=void 0!==S&&S,T=o.disableScrollLock,E=void 0!==T&&T,C=o.hideBackdrop,O=void 0!==C&&C,D=o.keepMounted,N=void 0!==D&&D,j=o.manager,A=void 0===j?ca:j,P=o.onBackdropClick,R=o.onClose,I=o.onEscapeKeyDown,F=o.onRendered,L=o.open,z=(0,ve.Z)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),B=e.useState(!0),Z=B[0],W=B[1],H=e.useRef({}),Y=e.useRef(null),U=e.useRef(null),V=(0,Ce.Z)(U,r),q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),G=function(){return(0,gr.Z)(Y.current)},X=function(){return H.current.modalRef=U.current,H.current.mountNode=Y.current,H.current},$=function(){A.mount(X(),{disableScrollLock:E}),U.current.scrollTop=0},Q=(0,Oe.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,t.findDOMNode(e)}(d)||G().body;A.add(X(),e),U.current&&$()})),K=e.useCallback((function(){return A.isTopModal(X())}),[A]),J=(0,Oe.Z)((function(e){Y.current=e,e&&(F&&F(),L&&K()?$():ta(U.current,!0))})),ee=e.useCallback((function(){A.remove(X())}),[A]);if(e.useEffect((function(){return function(){ee()}}),[ee]),e.useEffect((function(){L?Q():q&&f||ee()}),[L,ee,q,f,Q]),!N&&!L&&(!q||Z))return null;var te=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(i||{zIndex:ea.Z}),ne={};return void 0===l.props.tabIndex&&(ne.tabIndex=l.props.tabIndex||"-1"),q&&(ne.onEnter=(0,fr.Z)((function(){W(!1)}),l.props.onEnter),ne.onExited=(0,fr.Z)((function(){W(!0),f&&ee()}),l.props.onExited)),e.createElement(cr,{ref:J,container:d,disablePortal:k},e.createElement("div",(0,p.Z)({ref:V,onKeyDown:function(e){"Escape"===e.key&&K()&&(I&&I(e),x||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},z,{style:(0,p.Z)({},te.root,!L&&Z?te.hidden:{},z.style)}),O?null:e.createElement(s,(0,p.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(P&&P(e),!g&&R&&R(e,"backdropClick"))}},u)),e.createElement(sa,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:M,getDoc:G,isEnabled:K,open:L},e.cloneElement(l,ne))))})),da=fa;function ha(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pa(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ma(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function va(e){return"function"===typeof e?e():e}var ga=e.forwardRef((function(n,r){var i=n.action,o=n.anchorEl,a=n.anchorOrigin,s=void 0===a?{vertical:"top",horizontal:"left"}:a,u=n.anchorPosition,l=n.anchorReference,c=void 0===l?"anchorEl":l,f=n.children,d=n.classes,h=n.className,m=n.container,v=n.elevation,g=void 0===v?8:v,y=n.getContentAnchorEl,b=n.marginThreshold,w=void 0===b?16:b,x=n.onEnter,_=n.onEntered,k=n.onEntering,S=n.onExit,M=n.onExited,T=n.onExiting,E=n.open,C=n.PaperProps,O=void 0===C?{}:C,D=n.transformOrigin,N=void 0===D?{vertical:"top",horizontal:"left"}:D,j=n.TransitionComponent,A=void 0===j?Kr:j,P=n.transitionDuration,R=void 0===P?"auto":P,I=n.TransitionProps,F=void 0===I?{}:I,L=(0,ve.Z)(n,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=e.useRef(),B=e.useCallback((function(e){if("anchorPosition"===c)return u;var t=va(o),n=(t&&1===t.nodeType?t:(0,gr.Z)(z.current).body).getBoundingClientRect(),r=0===e?s.vertical:"center";return{top:n.top+ha(n,r),left:n.left+pa(n,s.horizontal)}}),[o,s.horizontal,s.vertical,u,c]),Z=e.useCallback((function(e){var t=0;if(y&&"anchorEl"===c){var n=y(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[s.vertical,c,y]),W=e.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:ha(e,N.vertical)+t,horizontal:pa(e,N.horizontal)}}),[N.horizontal,N.vertical]),H=e.useCallback((function(e){var t=Z(e),n={width:e.offsetWidth,height:e.offsetHeight},r=W(n,t);if("none"===c)return{top:null,left:null,transformOrigin:ma(r)};var i=B(t),a=i.top-r.vertical,s=i.left-r.horizontal,u=a+n.height,l=s+n.width,f=(0,ci.Z)(va(o)),d=f.innerHeight-w,h=f.innerWidth-w;if(a<w){var p=a-w;a-=p,r.vertical+=p}else if(u>d){var m=u-d;a-=m,r.vertical+=m}if(s<w){var v=s-w;s-=v,r.horizontal+=v}else if(l>h){var g=l-h;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:ma(r)}}),[o,c,B,Z,W,w]),Y=e.useCallback((function(){var e=z.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),U=e.useCallback((function(e){z.current=t.findDOMNode(e)}),[]);e.useEffect((function(){E&&Y()})),e.useImperativeHandle(i,(function(){return E?{updatePosition:function(){Y()}}:null}),[E,Y]),e.useEffect((function(){if(E){var e=(0,li.Z)((function(){Y()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[E,Y]);var V=R;"auto"!==R||A.muiSupportAuto||(V=void 0);var q=m||(o?(0,gr.Z)(va(o)).body:void 0);return e.createElement(da,(0,p.Z)({container:q,open:E,ref:r,BackdropProps:{invisible:!0},className:(0,ge.Z)(d.root,h)},L),e.createElement(A,(0,p.Z)({appear:!0,in:E,onEnter:x,onEntered:_,onExit:S,onExited:M,onExiting:T,timeout:V},F,{onEntering:(0,fr.Z)((function(e,t){k&&k(e,t),Y()}),F.onEntering)}),e.createElement(xe,(0,p.Z)({elevation:g,ref:U},O,{className:(0,ge.Z)(d.paper,O.className)}),f)))})),ya=(0,ye.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(ga),ba={vertical:"top",horizontal:"right"},wa={vertical:"top",horizontal:"left"},xa=e.forwardRef((function(n,r){var i=n.autoFocus,o=void 0===i||i,a=n.children,s=n.classes,u=n.disableAutoFocusItem,l=void 0!==u&&u,c=n.MenuListProps,f=void 0===c?{}:c,d=n.onClose,h=n.onEntering,m=n.open,v=n.PaperProps,g=void 0===v?{}:v,y=n.PopoverClasses,b=n.transitionDuration,w=void 0===b?"auto":b,x=n.TransitionProps,_=(x=void 0===x?{}:x).onEntering,k=(0,ve.Z)(x,["onEntering"]),S=n.variant,M=void 0===S?"selectedMenu":S,T=(0,ve.Z)(n,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),E=Vr(),C=o&&!l&&m,O=e.useRef(null),D=e.useRef(null),N=-1;e.Children.map(a,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("menu"!==M&&t.props.selected||-1===N)&&(N=n))}));var j=e.Children.map(a,(function(n,r){return r===N?e.cloneElement(n,{ref:function(e){D.current=t.findDOMNode(e),(0,sr.Z)(n.ref,e)}}):n}));return e.createElement(ya,(0,p.Z)({getContentAnchorEl:function(){return D.current},classes:y,onClose:d,TransitionProps:(0,p.Z)({onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,E),h&&h(e,t),_&&_(e,t)}},k),anchorOrigin:"rtl"===E.direction?ba:wa,transformOrigin:"rtl"===E.direction?ba:wa,PaperProps:(0,p.Z)({},g,{classes:(0,p.Z)({},g.classes,{root:s.paper})}),open:m,ref:r,transitionDuration:w},T),e.createElement(Dr,(0,p.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:O,autoFocus:o&&(-1===N||l),autoFocusItem:C,variant:M},f,{className:(0,ge.Z)(s.list,f.className)}),j))})),_a=(0,ye.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(xa),ka=n(92497);function Sa(e,t){return"object"===(0,l.Z)(t)&&null!==t?e===t:String(e)===String(t)}var Ma=e.forwardRef((function(t,n){var r=t["aria-label"],i=t.autoFocus,o=t.autoWidth,a=t.children,s=t.classes,u=t.className,l=t.defaultValue,c=t.disabled,f=t.displayEmpty,d=t.IconComponent,h=t.inputRef,m=t.labelId,v=t.MenuProps,g=void 0===v?{}:v,y=t.multiple,b=t.name,w=t.onBlur,x=t.onChange,_=t.onClose,k=t.onFocus,S=t.onOpen,M=t.open,T=t.readOnly,E=t.renderValue,C=t.SelectDisplayProps,O=void 0===C?{}:C,D=t.tabIndex,N=(t.type,t.value),j=t.variant,A=void 0===j?"standard":j,P=(0,ve.Z)(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),R=(0,ka.Z)({controlled:N,default:l,name:"Select"}),I=(0,wt.Z)(R,2),F=I[0],L=I[1],z=e.useRef(null),B=e.useState(null),Z=B[0],W=B[1],H=e.useRef(null!=M).current,Y=e.useState(),U=Y[0],V=Y[1],q=e.useState(!1),G=q[0],X=q[1],$=(0,Ce.Z)(n,h);e.useImperativeHandle($,(function(){return{focus:function(){Z.focus()},node:z.current,value:F}}),[Z,F]),e.useEffect((function(){i&&Z&&Z.focus()}),[i,Z]),e.useEffect((function(){if(Z){var e=(0,gr.Z)(Z).getElementById(m);if(e){var t=function(){getSelection().isCollapsed&&Z.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[m,Z]);var Q,K,J=function(e,t){e?S&&S(t):_&&_(t),H||(V(o?null:Z.clientWidth),X(e))},ee=e.Children.toArray(a),te=function(e){return function(t){var n;if(y||J(!1,t),y){n=Array.isArray(F)?F.slice():[];var r=F.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),F!==n&&(L(n),x&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:b}}),x(t,e)))}},ne=null!==Z&&(H?M:G);delete P["aria-invalid"];var re=[],ie=!1;(Dt({value:F})||f)&&(E?Q=E(F):ie=!0);var oe=ee.map((function(t){if(!e.isValidElement(t))return null;var n;if(y){if(!Array.isArray(F))throw new Error((0,Ao.Z)(2));(n=F.some((function(e){return Sa(e,t.props.value)})))&&ie&&re.push(t.props.children)}else(n=Sa(F,t.props.value))&&ie&&(K=t.props.children);return n&&!0,e.cloneElement(t,{"aria-selected":n?"true":void 0,onClick:te(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));ie&&(Q=y?re.join(", "):K);var ae,se=U;!o&&H&&Z&&(se=Z.clientWidth),ae="undefined"!==typeof D?D:c?null:0;var ue=O.id||(b?"mui-component-select-".concat(b):void 0);return e.createElement(e.Fragment,null,e.createElement("div",(0,p.Z)({className:(0,ge.Z)(s.root,s.select,s.selectMenu,s[A],u,c&&s.disabled),ref:W,tabIndex:ae,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":ne?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[m,ue].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!T){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:c||T?null:function(e){0===e.button&&(e.preventDefault(),Z.focus(),J(!0,e))},onBlur:function(e){!ne&&w&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:F,name:b}}),w(e))},onFocus:k},O,{id:ue}),function(e){return null==e||"string"===typeof e&&!e.trim()}(Q)?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Q),e.createElement("input",(0,p.Z)({value:Array.isArray(F)?F.join(","):F,name:b,ref:z,"aria-hidden":!0,onChange:function(e){var t=ee.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ee[t];L(n.props.value),x&&x(e,n)}},tabIndex:-1,className:s.nativeInput,autoFocus:i},P)),e.createElement(d,{className:(0,ge.Z)(s.icon,s["icon".concat((0,be.Z)(A))],ne&&s.iconOpen,c&&s.disabled)}),e.createElement(_a,(0,p.Z)({id:"menu-".concat(b||""),anchorEl:Z,open:ne,onClose:function(e){J(!1,e)}},g,{MenuListProps:(0,p.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,p.Z)({},g.PaperProps,{style:(0,p.Z)({minWidth:se},null!=g.PaperProps?g.PaperProps.style:null)})}),oe))})),Ta=Ma,Ea=(0,yi.Z)(e.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ca=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.disabled,a=t.IconComponent,s=t.inputRef,u=t.variant,l=void 0===u?"standard":u,c=(0,ve.Z)(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return e.createElement(e.Fragment,null,e.createElement("select",(0,p.Z)({className:(0,ge.Z)(r.root,r.select,r[l],i,o&&r.disabled),disabled:o,ref:s||n},c)),t.multiple?null:e.createElement(a,{className:(0,ge.Z)(r.icon,r["icon".concat((0,be.Z)(l))],o&&r.disabled)}))})),Oa=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Da=e.createElement(Ho,null),Na=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.IconComponent,a=void 0===o?Ea:o,s=t.input,u=void 0===s?Da:s,l=t.inputProps,c=(t.variant,(0,ve.Z)(t,["children","classes","IconComponent","input","inputProps","variant"])),f=Ft({props:t,muiFormControl:Lt(),states:["variant"]});return e.cloneElement(u,(0,p.Z)({inputComponent:Ca,inputProps:(0,p.Z)({children:r,classes:i,IconComponent:a,variant:f.variant,type:void 0},l,u?u.props.inputProps:{}),ref:n},c))}));Na.muiName="Select";(0,ye.Z)(Oa,{name:"MuiNativeSelect"})(Na);var ja=Oa,Aa=e.createElement(Ho,null),Pa=e.createElement(Uo,null),Ra=e.forwardRef((function t(n,r){var i=n.autoWidth,o=void 0!==i&&i,a=n.children,s=n.classes,u=n.displayEmpty,l=void 0!==u&&u,c=n.IconComponent,f=void 0===c?Ea:c,d=n.id,h=n.input,m=n.inputProps,v=n.label,g=n.labelId,y=n.labelWidth,b=void 0===y?0:y,w=n.MenuProps,x=n.multiple,_=void 0!==x&&x,k=n.native,S=void 0!==k&&k,M=n.onClose,T=n.onOpen,E=n.open,C=n.renderValue,O=n.SelectDisplayProps,D=n.variant,N=void 0===D?"standard":D,j=(0,ve.Z)(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),A=S?Ca:Ta,P=Ft({props:n,muiFormControl:Lt(),states:["variant"]}).variant||N,R=h||{standard:Aa,outlined:e.createElement(Xo,{label:v,labelWidth:b}),filled:Pa}[P];return e.cloneElement(R,(0,p.Z)({inputComponent:A,inputProps:(0,p.Z)({children:a,IconComponent:f,variant:P,type:void 0,multiple:_},S?{id:d}:{autoWidth:o,displayEmpty:l,labelId:g,MenuProps:w,onClose:M,onOpen:T,open:E,renderValue:C,SelectDisplayProps:(0,p.Z)({id:d},O)},m,{classes:m?(0,Ko.Z)({baseClasses:s,newClasses:m.classes,Component:t}):s},h?h.props.inputProps:{}),ref:r},j))}));Ra.muiName="Select";var Ia=(0,ye.Z)(ja,{name:"MuiSelect"})(Ra),Fa={standard:Ho,filled:Uo,outlined:Xo},La=e.forwardRef((function(t,n){var r=t.autoComplete,i=t.autoFocus,o=void 0!==i&&i,a=t.children,s=t.classes,u=t.className,l=t.color,c=void 0===l?"primary":l,f=t.defaultValue,d=t.disabled,h=void 0!==d&&d,m=t.error,v=void 0!==m&&m,g=t.FormHelperTextProps,y=t.fullWidth,b=void 0!==y&&y,w=t.helperText,x=t.hiddenLabel,_=t.id,k=t.InputLabelProps,S=t.inputProps,M=t.InputProps,T=t.inputRef,E=t.label,C=t.multiline,O=void 0!==C&&C,D=t.name,N=t.onBlur,j=t.onChange,A=t.onFocus,P=t.placeholder,R=t.required,I=void 0!==R&&R,F=t.rows,L=t.rowsMax,z=t.maxRows,B=t.minRows,Z=t.select,W=void 0!==Z&&Z,H=t.SelectProps,Y=t.type,U=t.value,V=t.variant,q=void 0===V?"standard":V,G=(0,ve.Z)(t,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var X={};if("outlined"===q&&(k&&"undefined"!==typeof k.shrink&&(X.notched=k.shrink),E)){var $,Q=null!==($=null===k||void 0===k?void 0:k.required)&&void 0!==$?$:I;X.label=e.createElement(e.Fragment,null,E,Q&&"\xa0*")}W&&(H&&H.native||(X.id=void 0),X["aria-describedby"]=void 0);var K=w&&_?"".concat(_,"-helper-text"):void 0,J=E&&_?"".concat(_,"-label"):void 0,ee=Fa[q],te=e.createElement(ee,(0,p.Z)({"aria-describedby":K,autoComplete:r,autoFocus:o,defaultValue:f,fullWidth:b,multiline:O,name:D,rows:F,rowsMax:L,maxRows:z,minRows:B,type:Y,value:U,id:_,inputRef:T,onBlur:N,onChange:j,onFocus:A,placeholder:P,inputProps:S},X,M));return e.createElement(It,(0,p.Z)({className:(0,ge.Z)(s.root,u),disabled:h,error:v,fullWidth:b,hiddenLabel:x,ref:n,required:I,color:c,variant:q},G),E&&e.createElement(Wt,(0,p.Z)({htmlFor:_,id:J},k),E),W?e.createElement(Ia,(0,p.Z)({"aria-describedby":K,id:_,labelId:J,value:U,input:te},H),a):te,w&&e.createElement(Qo,(0,p.Z)({id:K},g),w))})),za=(0,ye.Z)({root:{}},{name:"MuiTextField"})(La),Ba=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=void 0===a?"div":a,u=t.disablePointerEvents,l=void 0!==u&&u,c=t.disableTypography,f=void 0!==c&&c,d=t.position,h=t.variant,m=(0,ve.Z)(t,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),v=At()||{},g=h;return h&&v.variant,v&&!g&&(g=v.variant),e.createElement(Pt.Provider,{value:null},e.createElement(s,(0,p.Z)({className:(0,ge.Z)(i.root,o,"end"===d?i.positionEnd:i.positionStart,l&&i.disablePointerEvents,v.hiddenLabel&&i.hiddenLabel,"filled"===g&&i.filled,"dense"===v.margin&&i.marginDense),ref:n},m),"string"!==typeof r||f?r:e.createElement(ft,{color:"textSecondary"},r)))})),Za=(0,ye.Z)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Ba),Wa=e.forwardRef((function(t,n){var r=t.edge,i=void 0!==r&&r,o=t.children,a=t.classes,s=t.className,u=t.color,l=void 0===u?"default":u,c=t.disabled,f=void 0!==c&&c,d=t.disableFocusRipple,h=void 0!==d&&d,m=t.size,v=void 0===m?"medium":m,g=(0,ve.Z)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return e.createElement(Ye,(0,p.Z)({className:(0,ge.Z)(a.root,s,"default"!==l&&a["color".concat((0,be.Z)(l))],f&&a.disabled,"small"===v&&a["size".concat((0,be.Z)(v))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:f,ref:n},g),e.createElement("span",{className:a.label},o))})),Ha=(0,ye.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Wa),Ya=n(54241),Ua=["label","clearable","onBlur","onChange","InputProps"];function Va(t){var n=t.label,r=t.clearable,i=t.onBlur,o=t.onChange,a=t.InputProps,s=(0,ve.Z)(t,Ua),u=(0,e.useRef)();return(0,Xe.jsx)(za,Je({label:n,inputRef:u,InputProps:a||{endAdornment:r&&(0,Xe.jsx)(Za,{position:"end",style:{marginRight:-8},children:(0,Xe.jsx)(Ha,{size:"small",onClick:function(){return u.current.value="",i?i(""):o?o(""):void 0},disabled:t.disabled,children:(0,Xe.jsx)(Ya.Z,{})})})},onBlur:function(e){i&&i(e.target.value)},onChange:function(e){o&&o(e.target.value)}},s))}var qa=["label","fullWidth","nullable"];function Ga(e){var t=e.label,n=e.fullWidth,r=e.nullable,i=void 0===r||r,o=(0,ve.Z)(e,qa);return(0,Xe.jsxs)(It,{fullWidth:n,children:[t&&(0,Xe.jsx)(Wt,{children:t}),(0,Xe.jsx)(Ia,Je({variant:"outlined",fullWidth:n,displayEmpty:i,renderValue:function(e){return _t().isNil(e)?"":e}},o))]})}var Xa=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=void 0===o?"default":o,s=t.component,u=void 0===s?"li":s,l=t.disableGutters,c=void 0!==l&&l,f=t.disableSticky,d=void 0!==f&&f,h=t.inset,m=void 0!==h&&h,v=(0,ve.Z)(t,["classes","className","color","component","disableGutters","disableSticky","inset"]);return e.createElement(u,(0,p.Z)({className:(0,ge.Z)(r.root,i,"default"!==a&&r["color".concat((0,be.Z)(a))],m&&r.inset,!d&&r.sticky,!c&&r.gutters),ref:n},v))})),$a=(0,ye.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Xa),Qa=(0,yi.Z)(e.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ka(e){return"Backspace"===e.key||"Delete"===e.key}var Ja=e.forwardRef((function(t,n){var r=t.avatar,i=t.classes,o=t.className,a=t.clickable,s=t.color,u=void 0===s?"default":s,l=t.component,c=t.deleteIcon,f=t.disabled,d=void 0!==f&&f,h=t.icon,m=t.label,v=t.onClick,g=t.onDelete,y=t.onKeyDown,b=t.onKeyUp,w=t.size,x=void 0===w?"medium":w,_=t.variant,k=void 0===_?"default":_,S=(0,ve.Z)(t,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),M=e.useRef(null),T=(0,Ce.Z)(M,n),E=function(e){e.stopPropagation(),g&&g(e)},C=!(!1===a||!v)||a,O="small"===x,D=l||(C?Ye:"div"),N=D===Ye?{component:"div"}:{},j=null;if(g){var A=(0,ge.Z)("default"!==u&&("default"===k?i["deleteIconColor".concat((0,be.Z)(u))]:i["deleteIconOutlinedColor".concat((0,be.Z)(u))]),O&&i.deleteIconSmall);j=c&&e.isValidElement(c)?e.cloneElement(c,{className:(0,ge.Z)(c.props.className,i.deleteIcon,A),onClick:E}):e.createElement(Qa,{className:(0,ge.Z)(i.deleteIcon,A),onClick:E})}var P=null;r&&e.isValidElement(r)&&(P=e.cloneElement(r,{className:(0,ge.Z)(i.avatar,r.props.className,O&&i.avatarSmall,"default"!==u&&i["avatarColor".concat((0,be.Z)(u))])}));var R=null;return h&&e.isValidElement(h)&&(R=e.cloneElement(h,{className:(0,ge.Z)(i.icon,h.props.className,O&&i.iconSmall,"default"!==u&&i["iconColor".concat((0,be.Z)(u))])})),e.createElement(D,(0,p.Z)({role:C||g?"button":void 0,className:(0,ge.Z)(i.root,o,"default"!==u&&[i["color".concat((0,be.Z)(u))],C&&i["clickableColor".concat((0,be.Z)(u))],g&&i["deletableColor".concat((0,be.Z)(u))]],"default"!==k&&[i.outlined,{primary:i.outlinedPrimary,secondary:i.outlinedSecondary}[u]],d&&i.disabled,O&&i.sizeSmall,C&&i.clickable,g&&i.deletable),"aria-disabled":!!d||void 0,tabIndex:C||g?0:void 0,onClick:v,onKeyDown:function(e){e.currentTarget===e.target&&Ka(e)&&e.preventDefault(),y&&y(e)},onKeyUp:function(e){e.currentTarget===e.target&&(g&&Ka(e)?g(e):"Escape"===e.key&&M.current&&M.current.blur()),b&&b(e)},ref:T},N,S),P||R,e.createElement("span",{className:(0,ge.Z)(i.label,O&&i.labelSmall)},m),j)})),es=(0,ye.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Ee.Fq)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Ee._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Ee._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Ee._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Ee._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Ee._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Ee._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Ee.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Ee.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Ee.Fq)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Ee.Fq)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Ee.Fq)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Ee.Fq)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Ee.Fq)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(Ja),ts=(0,yi.Z)(e.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ns=(0,yi.Z)(e.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rs=n(22939);function is(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function os(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var as=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,s=void 0===a?"any":a,u=e.stringify,l=e.trim,c=void 0!==l&&l;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,l=c?r.trim():r;i&&(l=l.toLowerCase()),n&&(l=is(l));var f=e.filter((function(e){var t=(u||a)(e);return i&&(t=t.toLowerCase()),n&&(t=is(t)),"start"===s?0===t.indexOf(l):t.indexOf(l)>-1}));return"number"===typeof o?f.slice(0,o):f}}();function ss(t){var n=t.autoComplete,r=void 0!==n&&n,i=t.autoHighlight,o=void 0!==i&&i,a=t.autoSelect,s=void 0!==a&&a,u=t.blurOnSelect,l=void 0!==u&&u,c=t.clearOnBlur,f=void 0===c?!t.freeSolo:c,d=t.clearOnEscape,h=void 0!==d&&d,m=t.componentName,v=void 0===m?"useAutocomplete":m,g=t.debug,y=void 0!==g&&g,b=t.defaultValue,w=void 0===b?t.multiple?[]:null:b,x=t.disableClearable,_=void 0!==x&&x,k=t.disableCloseOnSelect,S=void 0!==k&&k,M=t.disabledItemsFocusable,T=void 0!==M&&M,E=t.disableListWrap,C=void 0!==E&&E,O=t.filterOptions,D=void 0===O?as:O,N=t.filterSelectedOptions,j=void 0!==N&&N,A=t.freeSolo,P=void 0!==A&&A,R=t.getOptionDisabled,I=t.getOptionLabel,F=void 0===I?function(e){return e}:I,L=t.getOptionSelected,z=void 0===L?function(e,t){return e===t}:L,B=t.groupBy,Z=t.handleHomeEndKeys,W=void 0===Z?!t.freeSolo:Z,H=t.id,Y=t.includeInputInList,U=void 0!==Y&&Y,V=t.inputValue,q=t.multiple,G=void 0!==q&&q,X=t.onChange,$=t.onClose,Q=t.onHighlightChange,K=t.onInputChange,J=t.onOpen,ee=t.open,te=t.openOnFocus,ne=void 0!==te&&te,re=t.options,ie=t.selectOnFocus,oe=void 0===ie?!t.freeSolo:ie,ae=t.value,se=(0,rs.Z)(H),ue=F;var le=e.useRef(!1),ce=e.useRef(!0),fe=e.useRef(null),de=e.useRef(null),he=e.useState(null),pe=he[0],me=he[1],ve=e.useState(-1),ge=ve[0],ye=ve[1],be=o?0:-1,we=e.useRef(be),xe=(0,ka.Z)({controlled:ae,default:w,name:v}),_e=(0,wt.Z)(xe,2),ke=_e[0],Se=_e[1],Me=(0,ka.Z)({controlled:V,default:"",name:v,state:"inputValue"}),Te=(0,wt.Z)(Me,2),Ee=Te[0],Ce=Te[1],De=e.useState(!1),Ne=De[0],je=De[1],Ae=(0,Oe.Z)((function(e,t){var n;if(G)n="";else if(null==t)n="";else{var r=ue(t);n="string"===typeof r?r:""}Ee!==n&&(Ce(n),K&&K(e,n,"reset"))}));e.useEffect((function(){Ae(null,ke)}),[ke,Ae]);var Pe=(0,ka.Z)({controlled:ee,default:!1,name:v,state:"open"}),Re=(0,wt.Z)(Pe,2),Ie=Re[0],Fe=Re[1],Le=!G&&null!=ke&&Ee===ue(ke),ze=Ie,Be=ze?D(re.filter((function(e){return!j||!(G?ke:[ke]).some((function(t){return null!==t&&z(e,t)}))})),{inputValue:Le?"":Ee,getOptionLabel:ue}):[],Ze=(0,Oe.Z)((function(e){-1===e?fe.current.focus():pe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));e.useEffect((function(){G&&ge>ke.length-1&&(ye(-1),Ze(-1))}),[ke,G,ge,Ze]);var We=(0,Oe.Z)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(we.current=n,-1===n?fe.current.removeAttribute("aria-activedescendant"):fe.current.setAttribute("aria-activedescendant","".concat(se,"-option-").concat(n)),Q&&Q(t,-1===n?null:Be[n],i),de.current){var o=de.current.querySelector("[data-focus]");o&&o.removeAttribute("data-focus");var a=de.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=de.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==i)){var u=s,l=a.clientHeight+a.scrollTop,c=u.offsetTop+u.offsetHeight;c>l?a.scrollTop=c-a.clientHeight:u.offsetTop-u.offsetHeight*(B?1.3:0)<a.scrollTop&&(a.scrollTop=u.offsetTop-u.offsetHeight*(B?1.3:0))}}else a.scrollTop=0}})),He=(0,Oe.Z)((function(e){var t=e.event,n=e.diff,i=e.direction,o=void 0===i?"next":i,a=e.reason,s=void 0===a?"auto":a;if(ze){var u=function(e,t){if(!de.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Be.length||"previous"===t&&-1===n)return-1;var r=de.current.querySelector('[data-option-index="'.concat(n,'"]')),i=!T&&r&&(r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||i))return n;n+="next"===t?1:-1}}(function(){var e=Be.length-1;if("reset"===n)return be;if("start"===n)return 0;if("end"===n)return e;var t=we.current+n;return t<0?-1===t&&U?-1:C&&-1!==we.current||Math.abs(n)>1?0:e:t>e?t===e+1&&U?-1:C||Math.abs(n)>1?e:0:t}(),o);if(We({index:u,reason:s,event:t}),r&&"reset"!==n)if(-1===u)fe.current.value=Ee;else{var l=ue(Be[u]);fe.current.value=l,0===l.toLowerCase().indexOf(Ee.toLowerCase())&&Ee.length>0&&fe.current.setSelectionRange(Ee.length,l.length)}}})),Ye=e.useCallback((function(){if(ze){var e=G?ke[0]:ke;if(0!==Be.length&&null!=e){if(de.current)if(j||null==e)we.current>=Be.length-1?We({index:Be.length-1}):We({index:we.current});else{var t=Be[we.current];if(G&&t&&-1!==os(ke,(function(e){return z(t,e)})))return;var n=os(Be,(function(t){return z(t,e)}));-1===n?He({diff:"reset"}):We({index:n})}}else He({diff:"reset"})}}),[0===Be.length,!G&&ke,j,He,We,ze,Ee,G]),Ue=(0,Oe.Z)((function(e){(0,sr.Z)(de,e),e&&Ye()}));e.useEffect((function(){Ye()}),[Ye]);var Ve=function(e){Ie||(Fe(!0),J&&J(e))},qe=function(e,t){Ie&&(Fe(!1),$&&$(e,t))},Ge=function(e,t,n,r){ke!==t&&(X&&X(e,t,n,r),Se(t))},Xe=e.useRef(!1),$e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,o=t;if(G){var a=os(o=Array.isArray(ke)?ke.slice():[],(function(e){return z(t,e)}));-1===a?o.push(t):"freeSolo"!==r&&(o.splice(a,1),i="remove-option")}Ae(e,o),Ge(e,o,i,{option:t}),S||qe(e,i),(!0===l||"touch"===l&&Xe.current||"mouse"===l&&!Xe.current)&&fe.current.blur()};var Qe=function(e,t){if(G){qe(e,"toggleInput");var n=ge;-1===ge?""===Ee&&"previous"===t&&(n=ke.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===ke.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===ke.length||"previous"===t&&-1===n)return-1;var r=pe.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ye(n),Ze(n)}},Ke=function(e){le.current=!0,Ce(""),K&&K(e,"","clear"),Ge(e,G?[]:null,"clear")},Je=function(e){return function(t){switch(-1!==ge&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ye(-1),Ze(-1)),t.key){case"Home":ze&&W&&(t.preventDefault(),He({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ze&&W&&(t.preventDefault(),He({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),He({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ve(t);break;case"PageDown":t.preventDefault(),He({diff:5,direction:"next",reason:"keyboard",event:t}),Ve(t);break;case"ArrowDown":t.preventDefault(),He({diff:1,direction:"next",reason:"keyboard",event:t}),Ve(t);break;case"ArrowUp":t.preventDefault(),He({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ve(t);break;case"ArrowLeft":Qe(t,"previous");break;case"ArrowRight":Qe(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==we.current&&ze){var n=Be[we.current],i=!!R&&R(n);if(t.preventDefault(),i)return;$e(t,n,"select-option"),r&&fe.current.setSelectionRange(fe.current.value.length,fe.current.value.length)}else P&&""!==Ee&&!1===Le&&(G&&t.preventDefault(),$e(t,Ee,"create-option","freeSolo"));break;case"Escape":ze?(t.preventDefault(),t.stopPropagation(),qe(t,"escape")):h&&(""!==Ee||G&&ke.length>0)&&(t.preventDefault(),t.stopPropagation(),Ke(t));break;case"Backspace":if(G&&""===Ee&&ke.length>0){var o=-1===ge?ke.length-1:ge,a=ke.slice();a.splice(o,1),Ge(t,a,"remove-option",{option:ke[o]})}}e.onKeyDown&&e.onKeyDown(t)}},et=function(e){je(!0),ne&&!le.current&&Ve(e)},tt=function(e){null===de.current||document.activeElement!==de.current.parentElement?(je(!1),ce.current=!0,le.current=!1,y&&""!==Ee||(s&&-1!==we.current&&ze?$e(e,Be[we.current],"blur"):s&&P&&""!==Ee?$e(e,Ee,"blur","freeSolo"):f&&Ae(e,ke),qe(e,"blur"))):fe.current.focus()},nt=function(e){var t=e.target.value;Ee!==t&&(Ce(t),K&&K(e,t,"input")),""===t?_||G||Ge(e,null,"clear"):Ve(e)},rt=function(e){We({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},it=function(){Xe.current=!0},ot=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));$e(e,Be[t],"select-option"),Xe.current=!1},at=function(e){return function(t){var n=ke.slice();n.splice(e,1),Ge(t,n,"remove-option",{option:ke[e]})}},st=function(e){Ie?qe(e,"toggleInput"):Ve(e)},ut=function(e){e.target.getAttribute("id")!==se&&e.preventDefault()},lt=function(){fe.current.focus(),oe&&ce.current&&fe.current.selectionEnd-fe.current.selectionStart===0&&fe.current.select(),ce.current=!1},ct=function(e){""!==Ee&&Ie||st(e)},ft=P&&Ee.length>0;ft=ft||(G?ke.length>0:null!==ke);var dt=Be;if(B){new Map;dt=Be.reduce((function(e,t,n){var r=B(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,p.Z)({"aria-owns":ze?"".concat(se,"-popup"):null,role:"combobox","aria-expanded":ze},e,{onKeyDown:Je(e),onMouseDown:ut,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(se,"-label"),htmlFor:se}},getInputProps:function(){return{id:se,value:Ee,onBlur:tt,onFocus:et,onChange:nt,onMouseDown:ct,"aria-activedescendant":ze?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ze?"".concat(se,"-popup"):null,autoComplete:"off",ref:fe,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ke}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:st}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:at(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(se,"-popup"),"aria-labelledby":"".concat(se,"-label"),ref:Ue,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(G?ke:[ke]).some((function(e){return null!=e&&z(n,e)})),i=!!R&&R(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(se,"-option-").concat(t),onMouseOver:rt,onClick:ot,onTouchStart:it,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:se,inputValue:Ee,value:ke,dirty:ft,popupOpen:ze,focused:Ne||-1!==ge,anchorEl:pe,setAnchorEl:me,focusedTag:ge,groupedOptions:dt}}function us(t){t.anchorEl,t.open;var n=(0,ve.Z)(t,["anchorEl","open"]);return e.createElement("div",n)}var ls=e.createElement(ts,{fontSize:"small"}),cs=e.createElement(ns,null),fs=e.forwardRef((function(t,n){t.autoComplete,t.autoHighlight,t.autoSelect,t.blurOnSelect;var r,i=t.ChipProps,o=t.classes,a=t.className,s=t.clearOnBlur,u=(void 0===s&&t.freeSolo,t.clearOnEscape,t.clearText),l=void 0===u?"Clear":u,c=t.closeIcon,f=void 0===c?ls:c,d=t.closeText,h=void 0===d?"Close":d,m=(t.debug,t.defaultValue),v=(void 0===m&&t.multiple,t.disableClearable),g=void 0!==v&&v,y=(t.disableCloseOnSelect,t.disabled),b=void 0!==y&&y,w=(t.disabledItemsFocusable,t.disableListWrap,t.disablePortal),x=void 0!==w&&w,_=(t.filterOptions,t.filterSelectedOptions,t.forcePopupIcon),k=void 0===_?"auto":_,S=t.freeSolo,M=void 0!==S&&S,T=t.fullWidth,E=void 0!==T&&T,C=t.getLimitTagsText,O=void 0===C?function(e){return"+".concat(e)}:C,D=(t.getOptionDisabled,t.getOptionLabel),N=void 0===D?function(e){return e}:D,j=(t.getOptionSelected,t.groupBy),A=t.handleHomeEndKeys,P=(void 0===A&&t.freeSolo,t.id,t.includeInputInList,t.inputValue,t.limitTags),R=void 0===P?-1:P,I=t.ListboxComponent,F=void 0===I?"ul":I,L=t.ListboxProps,z=t.loading,B=void 0!==z&&z,Z=t.loadingText,W=void 0===Z?"Loading\u2026":Z,H=t.multiple,Y=void 0!==H&&H,U=t.noOptionsText,V=void 0===U?"No options":U,q=(t.onChange,t.onClose,t.onHighlightChange,t.onInputChange,t.onOpen,t.open,t.openOnFocus,t.openText),G=void 0===q?"Open":q,X=(t.options,t.PaperComponent),$=void 0===X?xe:X,Q=t.PopperComponent,K=void 0===Q?vr:Q,J=t.popupIcon,ee=void 0===J?cs:J,te=t.renderGroup,ne=t.renderInput,re=t.renderOption,ie=t.renderTags,oe=t.selectOnFocus,ae=(void 0===oe&&t.freeSolo,t.size),se=void 0===ae?"medium":ae,ue=(t.value,(0,ve.Z)(t,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),le=x?us:K,ce=ss((0,p.Z)({},t,{componentName:"Autocomplete"})),fe=ce.getRootProps,de=ce.getInputProps,he=ce.getInputLabelProps,pe=ce.getPopupIndicatorProps,me=ce.getClearProps,ye=ce.getTagProps,be=ce.getListboxProps,we=ce.getOptionProps,_e=ce.value,ke=ce.dirty,Se=ce.id,Me=ce.popupOpen,Te=ce.focused,Ee=ce.focusedTag,Ce=ce.anchorEl,Oe=ce.setAnchorEl,De=ce.inputValue,Ne=ce.groupedOptions;if(Y&&_e.length>0){var je=function(e){return(0,p.Z)({className:(0,ge.Z)(o.tag,"small"===se&&o.tagSizeSmall),disabled:b},ye(e))};r=ie?ie(_e,je):_e.map((function(t,n){return e.createElement(es,(0,p.Z)({label:N(t),size:se},je({index:n}),i))}))}if(R>-1&&Array.isArray(r)){var Ae=r.length-R;!Te&&Ae>0&&(r=r.splice(0,R)).push(e.createElement("span",{className:o.tag,key:r.length},O(Ae)))}var Pe=te||function(t){return e.createElement("li",{key:t.key},e.createElement($a,{className:o.groupLabel,component:"div"},t.group),e.createElement("ul",{className:o.groupUl},t.children))},Re=re||N,Ie=function(t,n){var r=we({option:t,index:n});return e.createElement("li",(0,p.Z)({},r,{className:o.option}),Re(t,{selected:r["aria-selected"],inputValue:De}))},Fe=!g&&!b,Le=(!M||!0===k)&&!1!==k;return e.createElement(e.Fragment,null,e.createElement("div",(0,p.Z)({ref:n,className:(0,ge.Z)(o.root,a,Te&&o.focused,E&&o.fullWidth,Fe&&o.hasClearIcon,Le&&o.hasPopupIcon)},fe(ue)),ne({id:Se,disabled:b,fullWidth:!0,size:"small"===se?"small":void 0,InputLabelProps:he(),InputProps:{ref:Oe,className:o.inputRoot,startAdornment:r,endAdornment:e.createElement("div",{className:o.endAdornment},Fe?e.createElement(Ha,(0,p.Z)({},me(),{"aria-label":l,title:l,className:(0,ge.Z)(o.clearIndicator,ke&&o.clearIndicatorDirty)}),f):null,Le?e.createElement(Ha,(0,p.Z)({},pe(),{disabled:b,"aria-label":Me?h:G,title:Me?h:G,className:(0,ge.Z)(o.popupIndicator,Me&&o.popupIndicatorOpen)}),ee):null)},inputProps:(0,p.Z)({className:(0,ge.Z)(o.input,-1===Ee&&o.inputFocused),disabled:b},de())})),Me&&Ce?e.createElement(le,{className:(0,ge.Z)(o.popper,x&&o.popperDisablePortal),style:{width:Ce?Ce.clientWidth:null},role:"presentation",anchorEl:Ce,open:!0},e.createElement($,{className:o.paper},B&&0===Ne.length?e.createElement("div",{className:o.loading},W):null,0!==Ne.length||M||B?null:e.createElement("div",{className:o.noOptions},V),Ne.length>0?e.createElement(F,(0,p.Z)({className:o.listbox},be(),L),Ne.map((function(e,t){return j?Pe({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ie(t,e.index+n)}))}):Ie(e,t)}))):null)):null)})),ds=(0,ye.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,p.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,Se.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,Se.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,Se.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,Se.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,Se.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(fs),hs=n(30014),ps=44,ms=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=void 0===o?"primary":o,s=t.disableShrink,u=void 0!==s&&s,l=t.size,c=void 0===l?40:l,f=t.style,d=t.thickness,h=void 0===d?3.6:d,m=t.value,v=void 0===m?0:m,g=t.variant,y=void 0===g?"indeterminate":g,b=(0,ve.Z)(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),w={},x={},_={};if("determinate"===y||"static"===y){var k=2*Math.PI*((ps-h)/2);w.strokeDasharray=k.toFixed(3),_["aria-valuenow"]=Math.round(v),w.strokeDashoffset="".concat(((100-v)/100*k).toFixed(3),"px"),x.transform="rotate(-90deg)"}return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(r.root,i,"inherit"!==a&&r["color".concat((0,be.Z)(a))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[y]),style:(0,p.Z)({width:c,height:c},x,f),ref:n,role:"progressbar"},_,b),e.createElement("svg",{className:r.svg,viewBox:"".concat(22," ").concat(22," ").concat(ps," ").concat(ps)},e.createElement("circle",{className:(0,ge.Z)(r.circle,u&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[y]),style:w,cx:ps,cy:ps,r:(ps-h)/2,fill:"none",strokeWidth:h})))})),vs=(0,ye.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(ms),gs=["label","className","style","error","helperText","name","value","placeholder","loading","disabled"],ys=["InputProps"];function bs(e){var t=e.label,n=e.className,r=e.style,i=e.error,o=e.helperText,a=e.name,s=e.value,u=e.placeholder,l=e.loading,c=e.disabled,f=(0,ve.Z)(e,gs);return(0,Xe.jsxs)(It,{style:r,className:n,children:[t&&(0,Xe.jsx)(Wt,{error:!!i,children:t}),(0,Xe.jsx)(ds,Je(Je({},f),{},{disabled:l||c,closeIcon:(0,Xe.jsx)(hs.Z,{}),renderInput:function(e){var t=e.InputProps,n=(0,ve.Z)(e,ys);return(0,Xe.jsx)(Va,Je(Je({},n),{},{InputProps:Je(Je({},t),l&&{startAdornment:(0,Xe.jsx)(Za,{position:"end",children:(0,Xe.jsx)(vs,{size:20,color:"inherit",thickness:6})})}),placeholder:l?"Loading Options":u,name:a,error:!!i,helperText:o}))},value:void 0===s?null:s}))]})}var ws=n(40181);function xs(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,ws.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var _s=n(43513);function ks(e){return Math.round(1e5*e)/1e5}var Ss=!1,Ms=null;var Ts=e.forwardRef((function(n,r){var i=n.arrow,o=void 0!==i&&i,a=n.children,s=n.classes,u=n.disableFocusListener,l=void 0!==u&&u,c=n.disableHoverListener,f=void 0!==c&&c,d=n.disableTouchListener,h=void 0!==d&&d,m=n.enterDelay,v=void 0===m?100:m,g=n.enterNextDelay,y=void 0===g?0:g,b=n.enterTouchDelay,w=void 0===b?700:b,x=n.id,_=n.interactive,k=void 0!==_&&_,S=n.leaveDelay,M=void 0===S?0:S,T=n.leaveTouchDelay,E=void 0===T?1500:T,C=n.onClose,O=n.onOpen,D=n.open,N=n.placement,j=void 0===N?"bottom":N,A=n.PopperComponent,P=void 0===A?vr:A,R=n.PopperProps,I=n.title,F=n.TransitionComponent,L=void 0===F?Kr:F,z=n.TransitionProps,B=(0,ve.Z)(n,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),Z=Vr(),W=e.useState(),H=W[0],Y=W[1],U=e.useState(null),V=U[0],q=U[1],G=e.useRef(!1),X=e.useRef(),$=e.useRef(),Q=e.useRef(),K=e.useRef(),J=(0,ka.Z)({controlled:D,default:!1,name:"Tooltip",state:"open"}),ee=(0,wt.Z)(J,2),te=ee[0],ne=ee[1],re=te,ie=(0,rs.Z)(x);e.useEffect((function(){return function(){clearTimeout(X.current),clearTimeout($.current),clearTimeout(Q.current),clearTimeout(K.current)}}),[]);var oe=function(e){clearTimeout(Ms),Ss=!0,ne(!0),O&&O(e)},ae=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),G.current&&"touchstart"!==t.type||(H&&H.removeAttribute("title"),clearTimeout($.current),clearTimeout(Q.current),v||Ss&&y?(t.persist(),$.current=setTimeout((function(){oe(t)}),Ss?y:v)):oe(t))}},se=(0,De.Z)(),ue=se.isFocusVisible,le=se.onBlurVisible,ce=se.ref,fe=e.useState(!1),de=fe[0],he=fe[1],pe=function(){de&&(he(!1),le())},me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){H||Y(t.currentTarget),ue(t)&&(he(!0),ae()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},ye=function(e){clearTimeout(Ms),Ms=setTimeout((function(){Ss=!1}),800+M),ne(!1),C&&C(e),clearTimeout(X.current),X.current=setTimeout((function(){G.current=!1}),Z.transitions.duration.shortest)},we=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),pe()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===H&&n.onMouseLeave(t),clearTimeout($.current),clearTimeout(Q.current),t.persist(),Q.current=setTimeout((function(){ye(t)}),M)}},xe=function(e){G.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},_e=(0,Ce.Z)(Y,r),ke=(0,Ce.Z)(ce,_e),Se=e.useCallback((function(e){(0,sr.Z)(ke,t.findDOMNode(e))}),[ke]),Me=(0,Ce.Z)(a.ref,Se);""===I&&(re=!1);var Te=!re&&!f,Ee=(0,p.Z)({"aria-describedby":re?ie:null,title:Te&&"string"===typeof I?I:null},B,a.props,{className:(0,ge.Z)(B.className,a.props.className),onTouchStart:xe,ref:Me}),Oe={};h||(Ee.onTouchStart=function(e){xe(e),clearTimeout(Q.current),clearTimeout(X.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){ae()(e)}),w)},Ee.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(K.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout((function(){ye(e)}),E)}),f||(Ee.onMouseOver=ae(),Ee.onMouseLeave=we(),k&&(Oe.onMouseOver=ae(!1),Oe.onMouseLeave=we(!1))),l||(Ee.onFocus=me(),Ee.onBlur=we(),k&&(Oe.onFocus=me(!1),Oe.onBlur=we(!1)));var Ne=e.useMemo((function(){return(0,fo.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(V),element:V}}}},R)}),[V,R]);return e.createElement(e.Fragment,null,e.cloneElement(a,Ee),e.createElement(P,(0,p.Z)({className:(0,ge.Z)(s.popper,k&&s.popperInteractive,o&&s.popperArrow),placement:j,anchorEl:H,open:!!H&&re,id:Ee["aria-describedby"],transition:!0},Oe,Ne),(function(t){var n=t.placement,r=t.TransitionProps;return e.createElement(L,(0,p.Z)({timeout:Z.transitions.duration.shorter},r,z),e.createElement("div",{className:(0,ge.Z)(s.tooltip,s["tooltipPlacement".concat((0,be.Z)(n.split("-")[0]))],G.current&&s.touch,o&&s.tooltipArrow)},I,o?e.createElement("span",{className:s.arrow,ref:q}):null))})))})),Es=(0,ye.Z)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,Ee.Fq)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(ks(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,Ee.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ks(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,Se.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,Se.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,Se.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,Se.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(Ts),Cs=e.forwardRef((function(t,n){var r=t.autoFocus,i=t.checked,o=t.checkedIcon,a=t.classes,s=t.className,u=t.defaultChecked,l=t.disabled,c=t.icon,f=t.id,d=t.inputProps,h=t.inputRef,m=t.name,v=t.onBlur,g=t.onChange,y=t.onFocus,b=t.readOnly,w=t.required,x=t.tabIndex,_=t.type,k=t.value,S=(0,ve.Z)(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),M=(0,ka.Z)({controlled:i,default:Boolean(u),name:"SwitchBase",state:"checked"}),T=(0,wt.Z)(M,2),E=T[0],C=T[1],O=Lt(),D=l;O&&"undefined"===typeof D&&(D=O.disabled);var N="checkbox"===_||"radio"===_;return e.createElement(Ha,(0,p.Z)({component:"span",className:(0,ge.Z)(a.root,s,E&&a.checked,D&&a.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){y&&y(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){v&&v(e),O&&O.onBlur&&O.onBlur(e)},ref:n},S),e.createElement("input",(0,p.Z)({autoFocus:r,checked:i,defaultChecked:u,className:a.input,disabled:D,id:N&&f,name:m,onChange:function(e){var t=e.target.checked;C(t),g&&g(e,t)},readOnly:b,ref:h,required:w,tabIndex:x,type:_,value:k},d)),E?o:c)})),Os=(0,ye.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(Cs),Ds=(0,yi.Z)(e.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Ns=(0,yi.Z)(e.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),js=(0,yi.Z)(e.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),As=e.createElement(Ns,null),Ps=e.createElement(Ds,null),Rs=e.createElement(js,null),Is=e.forwardRef((function(t,n){var r=t.checkedIcon,i=void 0===r?As:r,o=t.classes,a=t.color,s=void 0===a?"secondary":a,u=t.icon,l=void 0===u?Ps:u,c=t.indeterminate,f=void 0!==c&&c,d=t.indeterminateIcon,h=void 0===d?Rs:d,m=t.inputProps,v=t.size,g=void 0===v?"medium":v,y=(0,ve.Z)(t,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),b=f?h:l,w=f?h:i;return e.createElement(Os,(0,p.Z)({type:"checkbox",classes:{root:(0,ge.Z)(o.root,o["color".concat((0,be.Z)(s))],f&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:(0,p.Z)({"data-indeterminate":f},m),icon:e.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===g?g:b.props.fontSize}),checkedIcon:e.cloneElement(w,{fontSize:void 0===w.props.fontSize&&"small"===g?g:w.props.fontSize}),ref:n},y))})),Fs=(0,ye.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(Is),Ls=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=void 0!==a&&a,u=t.inset,l=void 0!==u&&u,c=t.primary,f=t.primaryTypographyProps,d=t.secondary,h=t.secondaryTypographyProps,m=(0,ve.Z)(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=e.useContext(wr).dense,g=null!=c?c:r;null==g||g.type===ft||s||(g=e.createElement(ft,(0,p.Z)({variant:v?"body2":"body1",className:i.primary,component:"span",display:"block"},f),g));var y=d;return null==y||y.type===ft||s||(y=e.createElement(ft,(0,p.Z)({variant:"body2",className:i.secondary,color:"textSecondary",display:"block"},h),y)),e.createElement("div",(0,p.Z)({className:(0,ge.Z)(i.root,o,v&&i.dense,l&&i.inset,g&&y&&i.multiline),ref:n},m),g,y)})),zs=(0,ye.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ls),Bs=n(76441),Zs=n(13880);function Ws(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Hs(e){return Ws(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Ys(e){Ws(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Us(e){if(Ws(1,arguments),!Hs(e)&&"number"!==typeof e)return!1;var t=Ys(e);return!isNaN(Number(t))}var Vs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qs=function(e,t,n){var r,i=Vs[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Gs(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Xs={date:Gs({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Gs({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:Gs({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},$s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Qs=function(e,t,n,r){return $s[e]};function Ks(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=i.width?String(i.width):e.defaultWidth;r=e.values[u]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Js={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:Ks({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ks({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:Ks({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:Ks({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:Ks({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"})},eu=Js;function tu(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?ru(u,(function(e){return e.test(s)})):nu(u,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(l):l,a=n.valueCallback?n.valueCallback(a):a;var c=t.slice(s.length);return{value:a,rest:c}}}function nu(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ru(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var iu,ou={ordinalNumber:(iu={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(iu.matchPattern);if(!n)return null;var r=n[0],i=e.match(iu.parsePattern);if(!i)return null;var o=iu.valueCallback?iu.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:tu({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:tu({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:tu({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:tu({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:tu({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"})},au={code:"en-US",formatDistance:qs,formatLong:Xs,formatRelative:Qs,localize:eu,match:ou,options:{weekStartsOn:0,firstWeekContainsDate:1}};function su(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function uu(e,t){Ws(2,arguments);var n=Ys(e).getTime(),r=su(t);return new Date(n+r)}function lu(e,t){Ws(2,arguments);var n=su(t);return uu(e,-n)}var cu=864e5;function fu(e){Ws(1,arguments);var t=1,n=Ys(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function du(e){Ws(1,arguments);var t=Ys(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=fu(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=fu(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function hu(e){Ws(1,arguments);var t=du(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=fu(n);return r}var pu=6048e5;function mu(e,t){Ws(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:su(i),a=null==n.weekStartsOn?o:su(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ys(e),u=s.getUTCDay(),l=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-l),s.setUTCHours(0,0,0,0),s}function vu(e,t){Ws(1,arguments);var n=Ys(e),r=n.getUTCFullYear(),i=t||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:su(a),u=null==i.firstWeekContainsDate?s:su(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=new Date(0);l.setUTCFullYear(r+1,0,u),l.setUTCHours(0,0,0,0);var c=mu(l,t),f=new Date(0);f.setUTCFullYear(r,0,u),f.setUTCHours(0,0,0,0);var d=mu(f,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function gu(e,t){Ws(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:su(i),a=null==n.firstWeekContainsDate?o:su(n.firstWeekContainsDate),s=vu(e,t),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var l=mu(u,t);return l}var yu=6048e5;function bu(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var wu={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return bu("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):bu(n+1,2)},d:function(e,t){return bu(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 bu(e.getUTCHours()%12||12,t.length)},H:function(e,t){return bu(e.getUTCHours(),t.length)},m:function(e,t){return bu(e.getUTCMinutes(),t.length)},s:function(e,t){return bu(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return bu(Math.floor(r*Math.pow(10,n-3)),t.length)}},xu=wu,_u="midnight",ku="noon",Su="morning",Mu="afternoon",Tu="evening",Eu="night",Cu={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return xu.y(e,t)},Y:function(e,t,n,r){var i=vu(e,r),o=i>0?i:1-i;return"YY"===t?bu(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):bu(o,t.length)},R:function(e,t){return bu(du(e),t.length)},u:function(e,t){return bu(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 bu(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 bu(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 xu.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 bu(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 i=function(e,t){Ws(1,arguments);var n=Ys(e),r=mu(n,t).getTime()-gu(n,t).getTime();return Math.round(r/yu)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):bu(i,t.length)},I:function(e,t,n){var r=function(e){Ws(1,arguments);var t=Ys(e),n=fu(t).getTime()-hu(t).getTime();return Math.round(n/pu)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):bu(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):xu.d(e,t)},D:function(e,t,n){var r=function(e){Ws(1,arguments);var t=Ys(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/cu)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):bu(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 i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return bu(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return bu(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return bu(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});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,i=e.getUTCHours();switch(r=12===i?ku:0===i?_u:i/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,i=e.getUTCHours();switch(r=i>=17?Tu:i>=12?Mu:i>=4?Su:Eu,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 xu.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):xu.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):bu(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):bu(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):xu.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):xu.s(e,t)},S:function(e,t){return xu.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Du(i);case"XXXX":case"XX":return Nu(i);default:return Nu(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Du(i);case"xxxx":case"xx":return Nu(i);default:return Nu(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ou(i,":");default:return"GMT"+Nu(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ou(i,":");default:return"GMT"+Nu(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return bu(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return bu((r._originalDate||e).getTime(),t.length)}};function Ou(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+bu(o,2)}function Du(e,t){return e%60===0?(e>0?"-":"+")+bu(Math.abs(e)/60,2):Nu(e,t)}function Nu(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+bu(Math.floor(i/60),2)+n+bu(i%60,2)}var ju=Cu;function Au(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"})}}function Pu(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"})}}var Ru={p:Pu,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Au(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Au(i,t)).replace("{{time}}",Pu(o,t))}},Iu=Ru;function Fu(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()}var Lu=["D","DD"],zu=["YY","YYYY"];function Bu(e){return-1!==Lu.indexOf(e)}function Zu(e){return-1!==zu.indexOf(e)}function Wu(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var Hu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Uu=/^'([^]*?)'?$/,Vu=/''/g,qu=/[a-zA-Z]/;function Gu(e,t,n){Ws(2,arguments);var r=String(t),i=n||{},o=i.locale||au,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:su(a),u=null==i.firstWeekContainsDate?s:su(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=o.options&&o.options.weekStartsOn,c=null==l?0:su(l),f=null==i.weekStartsOn?c:su(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var d=Ys(e);if(!Us(d))throw new RangeError("Invalid time value");var h=Fu(d),p=lu(d,h),m={firstWeekContainsDate:u,weekStartsOn:f,locale:o,_originalDate:d},v=r.match(Yu).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Iu[t])(e,o.formatLong,m):e})).join("").match(Hu).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Xu(n);var a=ju[r];if(a)return!i.useAdditionalWeekYearTokens&&Zu(n)&&Wu(n,t,e),!i.useAdditionalDayOfYearTokens&&Bu(n)&&Wu(n,t,e),a(p,n,o.localize,m);if(r.match(qu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return v}function Xu(e){return e.match(Uu)[1].replace(Vu,"'")}function $u(e,t){Ws(2,arguments);var n=Ys(e),r=Ys(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Qu(e,t){Ws(2,arguments);var n=Ys(e),r=Ys(t);return n.getFullYear()-r.getFullYear()}function Ku(e,t){Ws(2,arguments);var n=Ys(e),r=Ys(t),i=$u(n,r),o=Math.abs(Qu(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=$u(n,r)===-i,s=i*(o-Number(a));return 0===s?0:s}function Ju(e,t){Ws(2,arguments);var n=Ys(e),r=Ys(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function el(e){Ws(1,arguments);var t=Ys(e);return t.setHours(23,59,59,999),t}function tl(e){Ws(1,arguments);var t=Ys(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function nl(e){Ws(1,arguments);var t=Ys(e);return el(t).getTime()===tl(t).getTime()}function rl(e,t){Ws(2,arguments);var n,r=Ys(e),i=Ys(t),o=$u(r,i),a=Math.abs(Ju(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=$u(r,i)===-o;nl(Ys(e))&&1===a&&1===$u(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}function il(e){Ws(1,arguments);var t=Ys(e);return t.setHours(0,0,0,0),t}var ol=864e5;function al(e,t){Ws(2,arguments);var n=il(e),r=il(t),i=n.getTime()-Fu(n),o=r.getTime()-Fu(r);return Math.round((i-o)/ol)}function sl(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function ul(e,t){Ws(2,arguments);var n=Ys(e),r=Ys(t),i=sl(n,r),o=Math.abs(al(n,r));n.setDate(n.getDate()-i*o);var a=Number(sl(n,r)===-i),s=i*(o-a);return 0===s?0:s}Math.pow(10,8);var ll=36e5;function cl(e,t){return Ws(2,arguments),Ys(e).getTime()-Ys(t).getTime()}var fl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function dl(e){return e?fl[e]:fl.trunc}function hl(e,t,n){Ws(2,arguments);var r=cl(e,t)/ll;return dl(null===n||void 0===n?void 0:n.roundingMethod)(r)}function pl(e,t,n){Ws(2,arguments);var r=cl(e,t)/6e4;return dl(null===n||void 0===n?void 0:n.roundingMethod)(r)}function ml(e,t,n){Ws(2,arguments);var r=cl(e,t)/1e3;return dl(null===n||void 0===n?void 0:n.roundingMethod)(r)}function vl(e,t){Ws(2,arguments);var n=Ys(e),r=su(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function gl(e,t){Ws(2,arguments);var n=su(t);return vl(e,-n)}function yl(e,t){Ws(2,arguments);var n=Ys(e),r=su(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function bl(e,t){Ws(2,arguments);var n=su(t);return yl(e,-n)}function wl(e,t){if(Ws(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var n=t.years?su(t.years):0,r=t.months?su(t.months):0,i=t.weeks?su(t.weeks):0,o=t.days?su(t.days):0,a=t.hours?su(t.hours):0,s=t.minutes?su(t.minutes):0,u=t.seconds?su(t.seconds):0,l=bl(e,r+12*n),c=gl(l,o+7*i),f=s+60*a,d=u+60*f,h=1e3*d,p=new Date(c.getTime()-h);return p}var xl=["years","months","weeks","days","hours","minutes","seconds"];function _l(e){if(_t().isNil(e))return null;var t=new Date(e);return 0===t.getTime()?null:Gu(t,"yyyy-MM-dd HH:mm:ss")}function kl(e){if(_t().isNil(e))return null;var t=new Date(e);return 0===t.getTime()?null:Gu(t,"yyyy-MM-dd HH:mm:ss.SSS")}function Sl(e){var t=function(e){var t=e.start,n=e.end;Ws(1,arguments);var r=Ys(t),i=Ys(n);if(!Us(r))throw new RangeError("Start Date is invalid");if(!Us(i))throw new RangeError("End Date is invalid");var o={years:0,months:0,days:0,hours:0,minutes:0,seconds:0},a=$u(r,i);o.years=Math.abs(Ku(r,i));var s=wl(r,{years:a*o.years});o.months=Math.abs(rl(s,i));var u=wl(s,{months:a*o.months});o.days=Math.abs(ul(u,i));var l=wl(u,{days:a*o.days});o.hours=Math.abs(hl(l,i));var c=wl(l,{hours:a*o.hours});o.minutes=Math.abs(pl(c,i));var f=wl(c,{minutes:a*o.minutes});return o.seconds=Math.abs(ml(f,i)),o}({start:0,end:e});return e>5e3?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=(null===t||void 0===t?void 0:t.format)||xl,r=(null===t||void 0===t?void 0:t.locale)||au,i=(null===t||void 0===t?void 0:t.zero)||!1,o=(null===t||void 0===t?void 0:t.delimiter)||" ";return n.reduce((function(t,n){var o="x".concat(n.replace(/(^.)/,(function(e){return e.toUpperCase()})));return"number"===typeof e[n]&&(i||e[n])&&r.formatDistance?t.concat(r.formatDistance(o,e[n])):t}),[]).join(o)}(t):"".concat(e,"ms")}var Ml=function(t,n){var r=JSON.stringify(n),i=(0,e.useState)((function(){if(t){var e=window.localStorage.getItem(t);return e?JSON.parse(e):n}return n})),o=(0,wt.Z)(i,2),a=o[0],s=o[1];return[a,function(e){var n=e instanceof Function?e(a):e;if(s(n),t){var i=JSON.stringify(n);i===r?window.localStorage.removeItem(t):window.localStorage.setItem(t,i)}}]},Tl=["localStorageKey","columns","data","options","defaultShowColumns","paginationPerPage","showFilter","showColumnSelector","paginationServer","title","onFilterChange","initialFilterObj"],El=["id","name","label","type","renderer","wrap","sortable"];function Cl(t){var n=t.localStorageKey,r=t.columns,i=t.data,o=(t.options,t.defaultShowColumns,t.paginationPerPage),a=void 0===o?15:o,s=t.showFilter,u=void 0===s||s,l=t.showColumnSelector,c=void 0===l||l,f=t.paginationServer,d=void 0!==f&&f,h=t.title,p=t.onFilterChange,m=t.initialFilterObj,v=(0,ve.Z)(t,Tl),g={columnName:r.find((function(e){return!1!==e.searchable})).name,substring:""},y=(0,e.useMemo)((function(){return t.defaultShowColumns||t.columns.map((function(e){return Nl(e)}))}),[t.defaultShowColumns,t.columns]),b=Ml(n,y),w=(0,wt.Z)(b,2),x=w[0],_=w[1],k=(0,e.useState)(m||g),S=(0,wt.Z)(k,2),M=S[0],T=S[1],E=(0,e.useMemo)((function(){var e=[];if(x){var t,n=xs(r);try{for(n.s();!(t=n.n()).done;){var i=t.value;x.includes(Nl(i))&&e.push(i)}}catch(o){n.e(o)}finally{n.f()}}else e=r;return e.map((function(e){e.id;var t=e.name,n=(e.label,e.type),r=e.renderer,i=e.wrap,o=void 0===i||i,a=e.sortable,s=void 0===a||a,u=(0,ve.Z)(e,El),l={};return"date"===n?l.format=function(e){return _l(_t().get(e,t))}:"date-ms"===n?l.format=function(e){return kl(_t().get(e,t))}:"json"===n&&(l.format=function(e){return JSON.stringify(_t().get(e,t))}),r&&(l.format=function(e){return r(_t().get(e,t),e)}),Je(Je({id:Nl(e),selector:t,name:Dl(e),sortable:s,wrap:o,type:n},l),u)}))}),[x,r]),C=(0,e.useMemo)((function(){var e=E.find((function(e){return e.id===M.columnName}));if(!M.substring||!M.columnName)return i;try{var t=new RegExp(M.substring,"i");return i.filter((function(n){var r;return"json"===e.type||"date"===e.type||"date-ms"===e.type||"calculated"===e.searchable?(r=e.format(n),_t().isString(r)||(r=JSON.stringify(r))):r=_t().get(n,e.selector),_t().isString(r)&&t.test(r)}))}catch(n){return console.log(n),[]}}),[i,E,M]);return(0,Xe.jsx)(_s.ZP,Je({title:(0,Xe.jsx)(Oo,{level:0,children:h}),columns:E,data:C,pagination:!0,paginationServer:d,paginationPerPage:a,paginationRowsPerPageOptions:[15,30,100,1e3],actions:(0,Xe.jsxs)(Xe.Fragment,{children:[!d&&u&&(0,Xe.jsx)(Ol,{columns:r,filterObj:M,setFilterObj:function(e){T(e),p&&(_t().isEmpty(e.substring)?p(void 0):p(e))}}),c&&(0,Xe.jsx)(jl,{columns:r,selected:x,setSelected:_,defaultColumns:y})]})},v))}function Ol(t){var n=t.columns,r=t.filterObj,i=t.setFilterObj,o=e.useState(null),a=(0,wt.Z)(o,2),s=a[0],u=a[1];return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Es,{title:"Show Columns",children:(0,Xe.jsx)(Ha,{onClick:function(e){u(e.currentTarget)},label:"Columns",color:""!==_t().get(r,"substring")?"primary":"default",children:(0,Xe.jsx)(Zs.Z,{})})}),(0,Xe.jsxs)(ya,{onClose:function(){u(null)},anchorEl:s,open:Boolean(s),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{padding:10,display:"flex",flexDirection:"row"}},children:[(0,Xe.jsx)(Ga,{label:"Field",style:{marginRight:15,width:200},onChange:function(e){return t=e.target.value,void i({columnName:t,substring:""});var t},value:r.columnName,renderValue:function(e){return function(e,t){var n=t.find((function(t){return t.id===e||t.name===e}));return n.label||n.name}(e,n)},displayEmpty:!0,children:n.filter((function(e){return!1!==e.searchable})).map((function(e){return(0,Xe.jsx)(Rr,{value:Nl(e),children:Dl(e)},Nl(e))}))}),(0,Xe.jsx)(Va,{clearable:!0,label:"Substring",style:{marginRight:15,width:200},value:r.substring,onChange:function(e){i({columnName:r.columnName,substring:e})}})]})]})}function Dl(e){return e.label||e.name}function Nl(e){return e.id||e.name}function jl(t){var n=t.columns,r=t.selected,i=t.setSelected,o=t.defaultColumns,a=e.useState(null),s=(0,wt.Z)(a,2),u=s[0],l=s[1];return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Es,{title:"Show Columns",children:(0,Xe.jsx)(Ha,{onClick:function(e){l(e.currentTarget)},label:"Columns",children:(0,Xe.jsx)(Bs.Z,{})})}),(0,Xe.jsx)(_a,{anchorEl:u,open:Boolean(u),onClose:function(){l(null)},getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[].concat((0,Ne.Z)(n.map((function(e){return(0,Xe.jsxs)(Rr,{value:Nl(e),dense:!0,children:[(0,Xe.jsx)(Fs,{checked:r.includes(Nl(e)),onChange:function(t){return n=Nl(e),void(!t.target.checked&&r.includes(n)?i(r.filter((function(e){return e!==n}))):i([].concat((0,Ne.Z)(r),[n])));var n}}),(0,Xe.jsx)(zs,{primary:Dl(e)})]},Nl(e))}))),[(0,Xe.jsx)(Rr,{value:"_reset",onClick:function(){i(o)},children:(0,Xe.jsx)(zs,{children:"Reset to default"})},"_reset")])})]})}var Al={},Pl=(0,me.Z)((function(e){return{value:{flex:.7},label:{flex:.3,minWidth:"100px"},labelText:{fontWeight:"bold !important"}}}));function Rl(e){var t=e.data,n=Pl(),r={stack:"default",defaultStack:"default"};return(0,Xe.jsx)(_r,{children:t.map((function(e,i){var o,a="",s=e.type?Al[e.type]:null;if(s)o=s(e.value,t,r);else switch(e.type){case"date":o=!isNaN(e.value)&&e.value>0?_l(e.value):"N/A",a=new Date(e.value).toISOString();break;case"date-ms":o=!isNaN(e.value)&&e.value>0?kl(e.value):"N/A",a=new Date(e.value).toISOString();break;case"duration":o=!isNaN(e.value)&&e.value>0?Sl(e.value):"N/A";break;default:o=_t().isNil(e.value)?"N/A":e.value}return(0,Xe.jsxs)(Ar,{divider:!0,alignItems:"flex-start",children:[(0,Xe.jsx)(zs,{className:n.label,classes:{primary:n.labelText},primary:e.label}),(0,Xe.jsx)(zs,{className:n.value,primary:(0,Xe.jsx)(Es,{placement:"right",title:a,open:!!a&&void 0,children:(0,Xe.jsx)("span",{children:o})})})]},i)}))})}function Il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fl(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 Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach((function(t){Il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wl(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 Hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach((function(t){Zl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}function Ul(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function Vl(e){return{}.toString.call(e).includes("Object")}function ql(e){return"function"===typeof e}var Gl=Ul((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Xl={changes:function(e,t){return Vl(t)||Gl("changeType"),Object.keys(t).some((function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)}))&&Gl("changeField"),t},selector:function(e){ql(e)||Gl("selectorType")},handler:function(e){ql(e)||Vl(e)||Gl("handlerType"),Vl(e)&&Object.values(e).some((function(e){return!ql(e)}))&&Gl("handlersType")},initial:function(e){var t;e||Gl("initialIsRequired"),Vl(e)||Gl("initialType"),t=e,Object.keys(t).length||Gl("initialContent")}};function $l(e,t){return ql(t)?t(e.current):t}function Ql(e,t){return e.current=Hl(Hl({},e.current),t),t}function Kl(e,t,n){return ql(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var Jl={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xl.initial(e),Xl.handler(t);var n={current:e},r=Ul(Kl)(n,t),i=Ul(Ql)(n),o=Ul(Xl.changes)(e),a=Ul($l)(n);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return Xl.selector(e),e(n.current)}function u(e){Yl(r,i,o,a)(e)}return[s,u]}},ec=Jl,tc={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}};var nc=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}};var rc=function(e){return{}.toString.call(e).includes("Object")};var ic={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},oc=nc((function(e,t){throw new Error(e[t]||e.default)}))(ic),ac={config:function(e){return e||oc("configIsRequired"),rc(e)||oc("configType"),e.urls?(console.warn(ic.deprecation),{paths:{vs:e.urls.monacoBase}}):e}},sc=ac,uc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};var lc=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),Ll(Ll({},t),n)},cc={type:"cancelation",msg:"operation is manually canceled"};var fc=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(cc):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n},dc=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Bl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ec.create({config:tc,isInitialized:!1,resolve:null,reject:null,monaco:null}),2),hc=dc[0],pc=dc[1];function mc(e){return document.body.appendChild(e)}function vc(e){var t=hc((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function gc(){var e=hc((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){yc(t),e.resolve(t)}),(function(t){e.reject(t)}))}function yc(e){hc().monaco||pc({monaco:e})}var bc=new Promise((function(e,t){return pc({resolve:e,reject:t})})),wc={config:function(e){var t=sc.config(e),n=t.monaco,r=zl(t,["monaco"]);pc((function(e){return{config:lc(e.config,r),monaco:n}}))},init:function(){var e=hc((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(pc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fc(bc);if(window.monaco&&window.monaco.editor)return yc(window.monaco),e.resolve(window.monaco),fc(bc);uc(mc,vc)(gc)}return fc(bc)},__getMonacoInstance:function(){return hc((function(e){return e.monaco}))}},xc=wc;function _c(){return _c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_c.apply(this,arguments)}var kc={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var Sc=function(t){var n=t.content;return e.createElement("div",{style:kc},n)},Mc={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Tc(t){var n=t.width,r=t.height,i=t.isEditorReady,o=t.loading,a=t._ref,s=t.className,u=t.wrapperProps;return e.createElement("section",_c({style:Je(Je({},Mc.wrapper),{},{width:n,height:r})},u),!i&&e.createElement(Sc,{content:o}),e.createElement("div",{ref:a,style:Je(Je({},Mc.fullWidth),!i&&Mc.hide),className:s}))}Tc.propTypes={width:W().oneOfType([W().number,W().string]).isRequired,height:W().oneOfType([W().number,W().string]).isRequired,loading:W().oneOfType([W().element,W().string]).isRequired,isEditorReady:W().bool.isRequired,className:W().string,wrapperProps:W().object};var Ec=Tc,Cc=(0,e.memo)(Ec);var Oc=function(t){(0,e.useEffect)(t,[])};var Dc=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=(0,e.useRef)(!0);(0,e.useEffect)(i.current||!r?function(){i.current=!1}:t,n)};function Nc(){}function jc(e,t,n,r){return function(e,t){return e.editor.getModel(Ac(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r&&Ac(e,r))}(e,t,n,r)}function Ac(e,t){return e.Uri.parse(t)}function Pc(t){var n=t.original,r=t.modified,i=t.language,o=t.originalLanguage,a=t.modifiedLanguage,s=t.originalModelPath,u=t.modifiedModelPath,l=t.keepCurrentOriginalModel,c=t.keepCurrentModifiedModel,f=t.theme,d=t.loading,h=t.options,p=t.height,m=t.width,v=t.className,g=t.wrapperProps,y=t.beforeMount,b=t.onMount,w=(0,e.useState)(!1),x=(0,wt.Z)(w,2),_=x[0],k=x[1],S=(0,e.useState)(!0),M=(0,wt.Z)(S,2),T=M[0],E=M[1],C=(0,e.useRef)(null),O=(0,e.useRef)(null),D=(0,e.useRef)(null),N=(0,e.useRef)(b),j=(0,e.useRef)(y);Oc((function(){var e=xc.init();return e.then((function(e){return(O.current=e)&&E(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return C.current?function(){var e,t,n=C.current.getModel();l||null===(e=n.original)||void 0===e||e.dispose();c||null===(t=n.modified)||void 0===t||t.dispose();C.current.dispose()}():e.cancel()}})),Dc((function(){var e=C.current.getModifiedEditor();e.getOption(O.current.editor.EditorOption.readOnly)?e.setValue(r):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),e.pushUndoStop())}),[r],_),Dc((function(){C.current.getModel().original.setValue(n)}),[n],_),Dc((function(){var e=C.current.getModel(),t=e.original,n=e.modified;O.current.editor.setModelLanguage(t,o||i),O.current.editor.setModelLanguage(n,a||i)}),[i,o,a],_),Dc((function(){O.current.editor.setTheme(f)}),[f],_),Dc((function(){C.current.updateOptions(h)}),[h],_);var A=(0,e.useCallback)((function(){j.current(O.current);var e=jc(O.current,n,o||i,s),t=jc(O.current,r,a||i,u);C.current.setModel({original:e,modified:t})}),[i,r,a,n,o,s,u]),P=(0,e.useCallback)((function(){C.current=O.current.editor.createDiffEditor(D.current,Je({automaticLayout:!0},h)),A(),O.current.editor.setTheme(f),k(!0)}),[h,f,A]);return(0,e.useEffect)((function(){_&&N.current(C.current,O.current)}),[_]),(0,e.useEffect)((function(){!T&&!_&&P()}),[T,_,P]),e.createElement(Cc,{width:m,height:p,isEditorReady:_,loading:d,_ref:D,className:v,wrapperProps:g})}Pc.propTypes={original:W().string,modified:W().string,language:W().string,originalLanguage:W().string,modifiedLanguage:W().string,originalModelPath:W().string,modifiedModelPath:W().string,keepCurrentOriginalModel:W().bool,keepCurrentModifiedModel:W().bool,theme:W().string,loading:W().oneOfType([W().element,W().string]),options:W().object,width:W().oneOfType([W().number,W().string]),height:W().oneOfType([W().number,W().string]),className:W().string,wrapperProps:W().object,beforeMount:W().func,onMount:W().func},Pc.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:Nc,onMount:Nc};var Rc=Pc,Ic=(0,e.memo)(Rc);var Fc=function(t){var n=(0,e.useRef)();return(0,e.useEffect)((function(){n.current=t}),[t]),n.current},Lc=new Map;function zc(t){var n=t.defaultValue,r=t.defaultLanguage,i=t.defaultPath,o=t.value,a=t.language,s=t.path,u=t.theme,l=t.line,c=t.loading,f=t.options,d=t.overrideServices,h=t.saveViewState,p=t.keepCurrentModel,m=t.width,v=t.height,g=t.className,y=t.wrapperProps,b=t.beforeMount,w=t.onMount,x=t.onChange,_=t.onValidate,k=(0,e.useState)(!1),S=(0,wt.Z)(k,2),M=S[0],T=S[1],E=(0,e.useState)(!0),C=(0,wt.Z)(E,2),O=C[0],D=C[1],N=(0,e.useRef)(null),j=(0,e.useRef)(null),A=(0,e.useRef)(null),P=(0,e.useRef)(w),R=(0,e.useRef)(b),I=(0,e.useRef)(null),F=(0,e.useRef)(o),L=Fc(s);Oc((function(){var e=xc.init();return e.then((function(e){return(N.current=e)&&D(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return j.current?function(){var e,t;null===(e=I.current)||void 0===e||e.dispose(),p?h&&Lc.set(s,j.current.saveViewState()):null===(t=j.current.getModel())||void 0===t||t.dispose();j.current.dispose()}():e.cancel()}})),Dc((function(){var e=jc(N.current,n||o,r||a,s);e!==j.current.getModel()&&(h&&Lc.set(L,j.current.saveViewState()),j.current.setModel(e),h&&j.current.restoreViewState(Lc.get(s)))}),[s],M),Dc((function(){j.current.updateOptions(f)}),[f],M),Dc((function(){j.current.getOption(N.current.editor.EditorOption.readOnly)?j.current.setValue(o):o!==j.current.getValue()&&(j.current.executeEdits("",[{range:j.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),j.current.pushUndoStop())}),[o],M),Dc((function(){N.current.editor.setModelLanguage(j.current.getModel(),a)}),[a],M),Dc((function(){void 0!==l&&j.current.revealLine(l)}),[l],M),Dc((function(){N.current.editor.setTheme(u)}),[u],M);var z=(0,e.useCallback)((function(){R.current(N.current);var e=s||i,t=jc(N.current,o||n,r||a,e);j.current=N.current.editor.create(A.current,Je({model:t,automaticLayout:!0},f),d),h&&j.current.restoreViewState(Lc.get(e)),N.current.editor.setTheme(u),T(!0)}),[n,r,i,o,a,s,f,d,h,u]);return(0,e.useEffect)((function(){M&&P.current(j.current,N.current)}),[M]),(0,e.useEffect)((function(){!O&&!M&&z()}),[O,M,z]),F.current=o,(0,e.useEffect)((function(){var e,t;M&&x&&(null===(e=I.current)||void 0===e||e.dispose(),I.current=null===(t=j.current)||void 0===t?void 0:t.onDidChangeModelContent((function(e){var t=j.current.getValue();F.current!==t&&x(t,e)})))}),[M,x]),(0,e.useEffect)((function(){if(M){var e=N.current.editor.onDidChangeMarkers((function(e){var t,n=null===(t=j.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((function(e){return e.path===n.path}))){var r=N.current.editor.getModelMarkers({resource:n});null===_||void 0===_||_(r)}}));return function(){null===e||void 0===e||e.dispose()}}}),[M,_]),e.createElement(Cc,{width:m,height:v,isEditorReady:M,loading:c,_ref:A,className:g,wrapperProps:y})}zc.propTypes={defaultValue:W().string,defaultPath:W().string,defaultLanguage:W().string,value:W().string,language:W().string,path:W().string,theme:W().string,line:W().number,loading:W().oneOfType([W().element,W().string]),options:W().object,overrideServices:W().object,saveViewState:W().bool,keepCurrentModel:W().bool,width:W().oneOfType([W().number,W().string]),height:W().oneOfType([W().number,W().string]),className:W().string,wrapperProps:W().object,beforeMount:W().func,onMount:W().func,onChange:W().func,onValidate:W().func},zc.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:Nc,onMount:Nc,onValidate:Nc};var Bc=zc,Zc=(0,e.memo)(Bc),Wc=n(97595),Hc=n(85429),Yc=n(92809),Uc=(0,me.Z)({monaco:{},outerWrapper:{height:"100%",display:"flex",flexDirection:"column",paddingTop:15},editorWrapper:{flex:1,marginLeft:10,position:"relative",minHeight:0},label:{marginTop:13,marginBottom:10,flex:1},toolbar:{paddingRight:15,paddingLeft:15,display:"flex",alignItems:"flex-start",flexDirection:"row"}});function Vc(t){var n=t.className,r=t.label,i=t.src,o=t.lineNumbers,a=void 0===o||o,s=Uc(),u=(0,e.useRef)(null);return(0,Xe.jsxs)("div",{className:(0,ge.Z)([s.outerWrapper,n]),children:[(0,Xe.jsxs)("div",{className:s.toolbar,children:[(0,Xe.jsx)(Wt,{variant:"outlined",className:s.label,children:r}),(0,Xe.jsx)(Es,{title:"Collapse All",children:(0,Xe.jsx)(Ha,{onClick:function(){u.current.getAction("editor.foldLevel2").run()},children:(0,Xe.jsx)(Hc.Z,{})})}),(0,Xe.jsx)(Es,{title:"Expand All",children:(0,Xe.jsx)(Ha,{onClick:function(){u.current.getAction("editor.unfoldAll").run()},children:(0,Xe.jsx)(Wc.Z,{})})}),(0,Xe.jsx)(Es,{title:"Copy All",children:(0,Xe.jsx)(Ha,{onClick:function(){var e=u.current,t=e.getModel().getFullModelRange();e.setSelection(t),e.getAction("editor.action.clipboardCopyWithSyntaxHighlightingAction").run()},children:(0,Xe.jsx)(Yc.Z,{})})})]}),(0,Xe.jsx)("div",{className:s.editorWrapper,children:(0,Xe.jsx)(Zc,{className:s.monaco,height:"100%",defaultLanguage:"json",onMount:function(e){u.current=e},defaultValue:JSON.stringify(i,null,2),options:{readOnly:!0,tabSize:2,minimap:{enabled:!1},lightbulb:{enabled:!1},scrollbar:{useShadows:!1},quickSuggestions:!1,showFoldingControls:"always",lineNumbers:a?"on":"off",lineDecorationsWidth:0,lineNumbersMinChars:0,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1}})})]})}var qc=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=void 0===o?"primary":o,s=t.value,u=t.valueBuffer,l=t.variant,c=void 0===l?"indeterminate":l,f=(0,ve.Z)(t,["classes","className","color","value","valueBuffer","variant"]),d=Vr(),h={},m={bar1:{},bar2:{}};if("determinate"===c||"buffer"===c)if(void 0!==s){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;var v=s-100;"rtl"===d.direction&&(v=-v),m.bar1.transform="translateX(".concat(v,"%)")}else 0;if("buffer"===c)if(void 0!==u){var g=(u||0)-100;"rtl"===d.direction&&(g=-g),m.bar2.transform="translateX(".concat(g,"%)")}else 0;return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(r.root,r["color".concat((0,be.Z)(a))],i,{determinate:r.determinate,indeterminate:r.indeterminate,buffer:r.buffer,query:r.query}[c]),role:"progressbar"},h,{ref:n},f),"buffer"===c?e.createElement("div",{className:(0,ge.Z)(r.dashed,r["dashedColor".concat((0,be.Z)(a))])}):null,e.createElement("div",{className:(0,ge.Z)(r.bar,r["barColor".concat((0,be.Z)(a))],("indeterminate"===c||"query"===c)&&r.bar1Indeterminate,{determinate:r.bar1Determinate,buffer:r.bar1Buffer}[c]),style:m.bar1}),"determinate"===c?null:e.createElement("div",{className:(0,ge.Z)(r.bar,("indeterminate"===c||"query"===c)&&r.bar2Indeterminate,"buffer"===c?[r["color".concat((0,be.Z)(a))],r.bar2Buffer]:r["barColor".concat((0,be.Z)(a))]),style:m.bar2}))})),Gc=(0,ye.Z)((function(e){var t=function(t){return"light"===e.palette.type?(0,Ee.$n)(t,.62):(0,Ee._j)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(qc),Xc=["className"],$c=(0,me.Z)({progress:{marginBottom:-4,zIndex:999}});function Qc(e){var t=e.className,n=(0,ve.Z)(e,Xc),r=$c();return(0,Xe.jsx)(Gc,Je({className:(0,ge.Z)([r.progress,t])},n))}var Kc=["color"],Jc={red:"rgb(229, 9, 20)",yellow:"rgb(251, 164, 4)",green:"rgb(65, 185, 87)"},ef=(0,me.Z)({pill:{borderColor:function(e){return Jc[e.color]},color:function(e){return Jc[e.color]}}});function tf(e){var t=e.color,n=(0,ve.Z)(e,Kc),r=ef({color:t});return(0,Xe.jsx)(es,Je(Je({color:t&&"primary",variant:"outlined"},n),{},{classes:{colorPrimary:r.pill}}))}var nf=["status"],rf="#41b957",of="#1f83db",af="#e50914",sf="#fba404";function uf(e){var t,n=e.status,r=(0,ve.Z)(e,nf);switch(n){case"RUNNING":t=of;break;case"COMPLETED":t=rf;break;case"PAUSED":t=sf;break;default:t=af}return(0,Xe.jsx)(es,Je(Je({},r),{},{style:t&&{backgroundColor:t,color:"white"},label:n}))}var lf=n(91933);function cf(){return{stack:{stack:"default",defaultStack:"default"}.stack,ready:!0}}function ff(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=Je({},n),o="/api/".concat(e),a=o.replace(/([^:]\/)\/+/g,"$1"),s=document.querySelector("d4s-boot-2");return s.secureFetch(a,i).then((function(e){return Promise.all([e,e.text()])})).then((function(e){var t=(0,wt.Z)(e,2),n=t[0],i=t[1];if(!n.ok){var o=i||n.status;return Promise.reject(o)}if(!i||0===i.length)return null;if(!r)return i;try{return JSON.parse(i)}catch(a){return i}}))}function df(e,t,n,r){var i=cf();return(0,lf.useQuery)([i.stack].concat((0,Ne.Z)(e)),(function(){return t?ff(t,i):Promise.resolve(r)}),Je({enabled:i.ready&&_t().get(n,"enabled",!0),keepPreviousData:!0},n))}function hf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post",n=arguments.length>2?arguments[2]:void 0,r=cf();return(0,lf.useMutation)((function(n){return ff(e,r,{method:t,headers:{"Content-Type":"application/json"},body:_t().get(n,"body")})}),n)}var pf=n(32808),mf=n.n(pf),vf=["data"],gf=["data"];function yf(e,t){return function(e,t){var n=cf();return(0,lf.useQueries)(e.map((function(e){return Je({queryKey:[n.stack].concat((0,Ne.Z)(e)),queryFn:function(){return ff("/".concat(e.join("/")),n)},enabled:n.ready&&_t().get(t,"enabled",!0),keepPreviousData:!0},t)})))}(e.map((function(e){return["workflow",e]})),t)}function bf(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=["workflowDef",e];return e&&(r="/metadata/workflow/".concat(e),t&&(r+="?version=".concat(t),o.push(t))),df(o,r,i,n)}function wf(){return df(["workflowDefs"],"/metadata/workflow",{staleTime:6e5})}function xf(){var t=wf().data;return(0,e.useMemo)((function(){if(t){var e=new Set(t.map((function(e){return e.name})));return Array.from(e)}return[]}),[t])}function _f(){var t=wf(),n=t.data,r=(0,ve.Z)(t,gf),i=(0,e.useMemo)((function(){var e=new Map;if(n){var t,r=xs(n);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=void 0;e.has(i.name)?o=e.get(i.name):(o=[],e.set(i.name,o)),o.push({version:i.version,createTime:i.createTime,updateTime:i.updateTime})}}catch(a){r.e(a)}finally{r.f()}e.forEach((function(e){return e.sort()}))}return e}),[n]);return Je(Je({},r),{},{data:i})}function kf(e){var t=xf();return(0,Xe.jsx)(bs,Je({label:e.label||"Workflow Name",options:t,multiple:!0,freeSolo:!0,loading:(0,xt.isEmpty)(t)},e))}function Sf(){Sf=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(M([])));g&&g!==t&&n.call(g,i)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var f=u.arg,d=f.value;return d&&"object"==(0,l.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){f.value=e,a(f)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function M(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=p,s(y,"constructor",p),s(p,"constructor",h),h.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,o,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=M,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Mf(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}var Tf=function(){function e(t){r(this,e),this.search=new URLSearchParams,this.pathname=t}return(0,i.Z)(e,[{key:"toString",value:function(){return this.pathname+(function(e){var t,n=xs(e);try{for(n.s();!(t=n.n()).done;)return t.value,!1}catch(r){n.e(r)}finally{n.f()}return!0}(this.search)?"":"?".concat(this.search.toString()))}}]),e}(),Ef=["searchReady"];function Cf(e){var t=cf(),n="/tasks/queue/polldata?taskType=".concat(e);return(0,lf.useQuery)([t.stack,n],(function(){return ff(n,t)}),{enabled:t.ready&&!_t().isEmpty(e)})}function Of(e,t){var n=cf();return(0,lf.useQueries)(t?t.map((function(r){var i=new Tf("/tasks/queue/size");return i.search.append("taskType",e),_t().isUndefined(r)||i.search.append("domain",r),{queryKey:[n.stack,"queueSize",e,r],queryFn:function(){var e,t=(e=Sf().mark((function e(){var t;return Sf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ff(i.toString(),n);case 2:return t=e.sent,e.abrupt("return",{domain:r,size:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Mf(o,r,i,a,s,"next",e)}function s(e){Mf(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),enabled:n.ready&&!!t}})):[])}function Df(){var t=Nf().data;return(0,e.useMemo)((function(){return t?Array.from(new Set(t.map((function(e){return e.name})))).sort():[]}),[t])}function Nf(){return df(["taskDefs"],"/metadata/taskdefs")}function jf(e){var t=Df();return(0,Xe.jsx)(bs,Je({label:e.label||"Task Name",options:t,multiple:!0,freeSolo:!0,loading:(0,xt.isEmpty)(t)},e))}var Af=n(22305),Pf=n.n(Af);function Rf(e){var t=e.taskId,n=e.workflowId,r=Pf().encode({id:t});return(0,Xe.jsx)(yt,{path:"/execution/".concat(n,"?task=").concat(r),children:t})}var If=["RUNNING","COMPLETED","FAILED","TIMED_OUT","TERMINATED","PAUSED"],Ff=["IN_PROGRESS","CANCELED","FAILED","FAILED_WITH_TERMINAL_ERROR","COMPLETED","COMPLETED_WITH_ERRORS","SCHEDULED","TIMED_OUT","SKIPPED"],Lf=function(e){var t=e.filter((function(e){return"FORK_JOIN_DYNAMIC"!==e&&"SIMPLE"!==e})),n=t.findIndex((function(e){return"FORK_JOIN"===e}));return t[n]="FORK",new Set(t)}(["ARCHER","DECISION","DO_WHILE","DYNAMIC","DYNIMO","EAAS","EVENT","EXCLUSIVE_JOIN","FORK_JOIN","FORK_JOIN_DYNAMIC","HTTP","INLINE","JOIN","JSON_JQ_TRANSFORM","LAMBDA","SIMPLE","SUB_WORKFLOW","SWITCH","TERMINATE","TITUS","TITUS_TASK","WAIT"]);function zf(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var Bf="[\xa0]";function Zf(e){var t,n={};return new URLSearchParams((void 0===(t=e)&&(t=""),!t||0!==t.indexOf("?")&&0!==t.indexOf("#")?t:t.slice(1))).forEach((function(e,t){if(t in n.constructor.prototype)return console.warn('parseQueryState | invalid key "'+t+'" will be ignored');if(t in n){var r=n[t];Array.isArray(r)?r.push(e):n[t]=[r,e]}else n[t]=e})),Object.keys(n).length?n:null}function Wf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.assign.apply(Object,zf([{}],e)),r=new URLSearchParams;return Object.entries(n).forEach((function(e){var t=e[0],n=e[1];null!==n&&void 0!==n&&(Array.isArray(n)?n.length?n.forEach((function(e){r.append(t,e||"")})):r.append(t,Bf):r.append(t,n))})),r.sort(),r.toString()}function Hf(e){if(Array.isArray(e))return e.map((function(e){return e.toString()}));if(e||""===e||!1===e||0===e){if(e instanceof Date)return e.toJSON();switch(typeof e){case"string":case"number":case"boolean":return e.toString()}}return null}function Yf(e,t){var n,r=typeof t;if(Array.isArray(t))return e===Bf?[]:[].concat(e);if("string"!==typeof e&&!Array.isArray(e))return null;if(t instanceof Date){var i=new Date(e.toString());if(!isNaN(i.valueOf()))return i}switch(r){case"string":return e.toString();case"number":return(n=Number(e))||0===n?n:null;case"boolean":if("true"===e)return!0;if("false"===e)return!1}return null}var Uf=function(){return Uf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Uf.apply(this,arguments)},Vf="undefined"!==typeof window&&"location"in window&&"history"in window;function qf(t){var n=(void 0===t?{}:t).disabled,r=!(void 0!==n&&n)&&Vf,i=(0,e.useMemo)((function(){return{getQueryString:function(){return r?window.location.hash:""},setQueryString:function(e,t){var n=t.method,i=void 0===n?"replace":n;if(r){window.history["replace"===i?"replaceState":"pushState"](window.history.state,"","#"+e);var a=document.createEvent("CustomEvent");a.initEvent("hashchange",!1,!1),window.dispatchEvent(a),o((function(e){return e+1}))}}}}),[r]),o=(0,e.useState)(0)[1];return(0,e.useEffect)((function(){if(r){var e=function(){o((function(e){return e+1}))};return window.addEventListener("hashchange",e,!1),function(){return window.removeEventListener("hashchange",e,!1)}}}),[r]),i}function Gf(t){var n=(0,e.useRef)(t);return(0,e.useLayoutEffect)((function(){n.current=t}),[t]),n}var Xf=Object.freeze({});function $f(t,n,r,i,o){var a,s=Object.assign({},Xf,o,"object"===typeof i?i:null),u=s.queryStringInterface,l=qf(u?{disabled:!0}:void 0),c=u||l,f=(0,e.useState)((function(){return i&&"function"===typeof i?i(r):r}))[0];if(null===(0,e.useMemo)((function(){return Hf(f)}),[f]))throw new Error("unsupported defaultValue");var d=Gf({activeQSI:c,defaultValue:f,mergedQueryStateOpts:s,reducer:n}),h=(0,e.useCallback)((function(e){var n,r=d.current.activeQSI,i=Zf(r.getQueryString())||{},o=Uf(Uf({},i),((n={})[t]=null,n));r.setQueryString(Wf(o),e),p((function(e){return e+1}))}),[t,d]),p=(0,e.useState)(0)[1],m=(0,e.useCallback)((function(e,n){var r;void 0===n&&(n={});var i=d.current,o=i.activeQSI,a=i.defaultValue,s=i.mergedQueryStateOpts,u=i.reducer,l=s.stripDefaults,c=void 0===l||l,f=Zf(o.getQueryString())||{},m=t in f?Yf(f[t],a):a;if(null===e)return h(n);var v,g,y=u(null!==m&&void 0!==m?m:a,e);if(null===Hf(y)&&console.warn("value of "+JSON.stringify(y)+' is not supported. "'+t+'" will reset to default value of:',a),c){if(Array.isArray(a)&&(v=y,g=a,JSON.stringify(v)===JSON.stringify(g)))return h(n);if(y===a)return h(n)}o.setQueryString(Wf(Uf(Uf({},f),((r={})[t]=Hf(y),r))),n),p((function(e){return e+1}))}),[t,d,h]),v=Zf(c.getQueryString())||{};return[null!==(a=t in v?Yf(v[t],f):f)&&void 0!==a?a:f,m]}function Qf(t,n,r){void 0===r&&(r={});var i=(0,e.useCallback)((function(e,t){return t&&"function"===typeof t?t(e):t}),[]);return"function"===typeof n?$f(t,i,void 0,n,r):$f(t,i,n,r)}"undefined"!==typeof window&&window;Object.freeze({});Object.freeze({});var Kf=function(){return Kf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kf.apply(this,arguments)};if(!te)throw new Error("missing context export from react-router");function Jf(){return(0,e.useContext)(te)}function ed(){var e=Jf(),t=e&&e.history;if(t)return{getQueryString:function(){return t.location.search},setQueryString:function(e,n){var r=n.method;t[void 0===r?"replace":r](t.location.pathname+"?"+e+t.location.hash)}};console.warn("useRouter - router was not found")}function td(e,t,n){return Qf(e,t,Kf({queryStringInterface:ed()},n))}function nd(e){var t=e.tabIndex;return(0,Xe.jsxs)(Mo,{value:t,children:[(0,Xe.jsx)(To,{label:"Workflows",component:yt,path:"/"}),(0,Xe.jsx)(To,{label:"Tasks",component:yt,path:"/search/tasks"})]})}var rd=(0,yi.Z)(e.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),id=(0,yi.Z)(e.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),od=(0,yi.Z)(e.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ad=(0,yi.Z)(e.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),sd={success:e.createElement(rd,{fontSize:"inherit"}),warning:e.createElement(id,{fontSize:"inherit"}),error:e.createElement(od,{fontSize:"inherit"}),info:e.createElement(ad,{fontSize:"inherit"})},ud=e.createElement(ts,{fontSize:"small"}),ld=e.forwardRef((function(t,n){var r=t.action,i=t.children,o=t.classes,a=t.className,s=t.closeText,u=void 0===s?"Close":s,l=t.color,c=t.icon,f=t.iconMapping,d=void 0===f?sd:f,h=t.onClose,m=t.role,v=void 0===m?"alert":m,g=t.severity,y=void 0===g?"success":g,b=t.variant,w=void 0===b?"standard":b,x=(0,ve.Z)(t,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return e.createElement(xe,(0,p.Z)({role:v,square:!0,elevation:0,className:(0,ge.Z)(o.root,o["".concat(w).concat((0,be.Z)(l||y))],a),ref:n},x),!1!==c?e.createElement("div",{className:o.icon},c||d[y]||sd[y]):null,e.createElement("div",{className:o.message},i),null!=r?e.createElement("div",{className:o.action},r):null,null==r&&h?e.createElement("div",{className:o.action},e.createElement(Ha,{size:"small","aria-label":u,title:u,color:"inherit",onClick:h},ud)):null)})),cd=(0,ye.Z)((function(e){var t="light"===e.palette.type?Ee._j:Ee.$n,n="light"===e.palette.type?Ee.$n:Ee._j;return{root:(0,p.Z)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(ld),fd=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=(0,ve.Z)(t,["classes","className"]);return e.createElement(ft,(0,p.Z)({gutterBottom:!0,component:"div",ref:n,className:(0,ge.Z)(r.root,i)},o))})),dd=(0,ye.Z)((function(e){return{root:{fontWeight:e.typography.fontWeightMedium,marginTop:-2}}}),{name:"MuiAlertTitle"})(fd),hd=n(10812),pd={entering:{opacity:1},entered:{opacity:1}},md={enter:hd.x9.enteringScreen,exit:hd.x9.leavingScreen},vd=e.forwardRef((function(t,n){var r=t.children,i=t.disableStrictModeCompat,o=void 0!==i&&i,a=t.in,s=t.onEnter,u=t.onEntered,l=t.onEntering,c=t.onExit,f=t.onExited,d=t.onExiting,h=t.style,m=t.TransitionComponent,v=void 0===m?Ur:m,g=t.timeout,y=void 0===g?md:g,b=(0,ve.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),w=Vr(),x=w.unstable_strictMode&&!o,_=e.useRef(null),k=(0,Ce.Z)(r.ref,n),S=(0,Ce.Z)(x?_:void 0,k),M=function(e){return function(t,n){if(e){var r=x?[_.current,t]:[t,n],i=(0,wt.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},T=M(l),E=M((function(e,t){qr(e);var n=Gr({style:h,timeout:y},{mode:"enter"});e.style.webkitTransition=w.transitions.create("opacity",n),e.style.transition=w.transitions.create("opacity",n),s&&s(e,t)})),C=M(u),O=M(d),D=M((function(e){var t=Gr({style:h,timeout:y},{mode:"exit"});e.style.webkitTransition=w.transitions.create("opacity",t),e.style.transition=w.transitions.create("opacity",t),c&&c(e)})),N=M(f);return e.createElement(v,(0,p.Z)({appear:!0,in:a,nodeRef:x?_:void 0,onEnter:E,onEntered:C,onEntering:T,onExit:D,onExited:N,onExiting:O,timeout:y},b),(function(t,n){return e.cloneElement(r,(0,p.Z)({style:(0,p.Z)({opacity:0,visibility:"exited"!==t||a?void 0:"hidden"},pd[t],h,r.props.style),ref:S},n))}))})),gd=vd,yd=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.invisible,s=void 0!==a&&a,u=t.open,l=t.transitionDuration,c=t.TransitionComponent,f=void 0===c?gd:c,d=(0,ve.Z)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return e.createElement(f,(0,p.Z)({in:u,timeout:l},d),e.createElement("div",{className:(0,ge.Z)(i.root,o,s&&i.invisible),"aria-hidden":!0,ref:n},r))})),bd=(0,ye.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(yd),wd={enter:hd.x9.enteringScreen,exit:hd.x9.leavingScreen},xd=e.forwardRef((function(t,n){var r=t.BackdropProps,i=t.children,o=t.classes,a=t.className,s=t.disableBackdropClick,u=void 0!==s&&s,l=t.disableEscapeKeyDown,c=void 0!==l&&l,f=t.fullScreen,d=void 0!==f&&f,h=t.fullWidth,m=void 0!==h&&h,v=t.maxWidth,g=void 0===v?"sm":v,y=t.onBackdropClick,b=t.onClose,w=t.onEnter,x=t.onEntered,_=t.onEntering,k=t.onEscapeKeyDown,S=t.onExit,M=t.onExited,T=t.onExiting,E=t.open,C=t.PaperComponent,O=void 0===C?xe:C,D=t.PaperProps,N=void 0===D?{}:D,j=t.scroll,A=void 0===j?"paper":j,P=t.TransitionComponent,R=void 0===P?gd:P,I=t.transitionDuration,F=void 0===I?wd:I,L=t.TransitionProps,z=t["aria-describedby"],B=t["aria-labelledby"],Z=(0,ve.Z)(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),W=e.useRef();return e.createElement(da,(0,p.Z)({className:(0,ge.Z)(o.root,a),BackdropComponent:bd,BackdropProps:(0,p.Z)({transitionDuration:F},r),closeAfterTransition:!0},u?{disableBackdropClick:u}:{},{disableEscapeKeyDown:c,onEscapeKeyDown:k,onClose:b,open:E,ref:n},Z),e.createElement(R,(0,p.Z)({appear:!0,in:E,timeout:F,onEnter:w,onEntering:_,onEntered:x,onExit:S,onExiting:T,onExited:M,role:"none presentation"},L),e.createElement("div",{className:(0,ge.Z)(o.container,o["scroll".concat((0,be.Z)(A))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===W.current&&(W.current=null,y&&y(e),!u&&b&&b(e,"backdropClick"))},onMouseDown:function(e){W.current=e.target}},e.createElement(O,(0,p.Z)({elevation:24,role:"dialog","aria-describedby":z,"aria-labelledby":B},N,{className:(0,ge.Z)(o.paper,o["paperScroll".concat((0,be.Z)(A))],o["paperWidth".concat((0,be.Z)(String(g)))],N.className,d&&o.paperFullScreen,m&&o.paperFullWidth)}),i))))})),_d=(0,ye.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,Se.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,Se.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,Se.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,Se.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,Se.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(xd),kd=e.forwardRef((function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=void 0!==a&&a,u=(0,ve.Z)(t,["children","classes","className","disableTypography"]);return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(i.root,o),ref:n},u),s?r:e.createElement(ft,{component:"h2",variant:"h6"},r))})),Sd=(0,ye.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(kd),Md=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.dividers,a=void 0!==o&&o,s=(0,ve.Z)(t,["classes","className","dividers"]);return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(r.root,i,a&&r.dividers),ref:n},s))})),Td=(0,ye.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(Md),Ed=e.forwardRef((function(t,n){var r=t.disableSpacing,i=void 0!==r&&r,o=t.classes,a=t.className,s=(0,ve.Z)(t,["disableSpacing","classes","className"]);return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(o.root,a,!i&&o.spacing),ref:n},s))})),Cd=(0,ye.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(Ed),Od=(0,me.Z)({actionBar:{display:"flex",alignItems:"center",paddingRight:10,"&>div, &>p":{marginRight:10},width:"100%",justifyContent:"space-between"}});function Dd(t){var n=t.selectedRows,r=n.map((function(e){return e.workflowId})),i=(0,e.useState)(),o=(0,wt.Z)(i,2),a=o[0],s=o[1],u=Od(),l=function(e){return hf("/workflow/bulk/pause","put",{onSuccess:e.onSuccess})}({onSuccess:N}),c=l.mutate,f=l.isLoading,d=function(e){return hf("/workflow/bulk/resume","put",{onSuccess:e.onSuccess})}({onSuccess:N}),h=d.mutate,p=d.isLoading,m=function(e){return hf("/workflow/bulk/restart","post",{onSuccess:e.onSuccess})}({onSuccess:N}),v=m.mutate,g=m.isLoading,y=function(e){return hf("/workflow/bulk/restart?useLatestDefinitions=true","post",{onSuccess:e.onSuccess})}({onSuccess:N}),b=y.mutate,w=y.isLoading,x=hf("/workflow/bulk/retry","post",{onSuccess:{onSuccess:N}.onSuccess}),_=x.mutate,k=x.isLoading,S=hf("/workflow/bulk/terminate","post",{onSuccess:{onSuccess:N}.onSuccess}),M=S.mutate,T=S.isLoading,E=function(e){var t=cf();return(0,lf.useMutation)((function(e){var n=new Tf("/workflow/bulk/terminate");return e.reason&&n.search.append("reason",e.reason),ff(n,t,{method:"post",headers:{"Content-Type":"application/json"},body:_t().get(e,"body")})}),e)}({onSuccess:N}),C=E.mutate,O=E.isLoading,D=f||p||g||w||k||T||O;function N(e,t,n){var r={bulkErrorResults:Object.entries(e.bulkErrorResults).map((function(e){var t=(0,wt.Z)(e,2);return{workflowId:t[0],message:t[1]}})),bulkSuccessfulResults:e.bulkSuccessfulResults.map((function(e){return{workflowId:e}}))};s(r)}function j(){s(null)}return(0,Xe.jsxs)("div",{className:u.actionBar,children:[(0,Xe.jsxs)(Oo,{level:0,children:[n.length," Workflows Selected."]}),(0,Xe.jsx)(Ir,{className:u.actionButton,options:[{label:"Pause",handler:function(){return c({body:JSON.stringify(r)})}},{label:"Resume",handler:function(){return h({body:JSON.stringify(r)})}},{label:"Restart with current definitions",handler:function(){return v({body:JSON.stringify(r)})}},{label:"Restart with latest definitions",handler:function(){return b({body:JSON.stringify(r)})}},{label:"Retry",handler:function(){return _({body:JSON.stringify(r)})}},{label:"Terminate",handler:function(){return M({body:JSON.stringify(r)})}},{label:"Terminate with Reason",handler:function(){var e=window.prompt("Termination Reason","");e&&C({body:JSON.stringify(r),reason:e})}}],children:"Bulk Action"}),(a||D)&&(0,Xe.jsxs)(_d,{open:!0,fullScreen:!0,onClose:j,style:{padding:30},children:[(0,Xe.jsxs)(Sd,{children:[(0,Xe.jsx)(Oo,{level:3,style:{padding:15},children:"Batch Actions"}),D&&(0,Xe.jsx)(Qc,{})]}),(0,Xe.jsx)(Td,{children:a&&(0,Xe.jsxs)(e.Fragment,{children:[(0,Xe.jsx)(Cl,{title:"Successful Operations",columns:[{name:"workflowId"}],data:a.bulkSuccessfulResults,pagination:!1,showColumnSelector:!1}),(0,Xe.jsx)(Cl,{title:"Failed Operations",columns:[{name:"workflowId"},{name:"message",wrap:!0}],data:a.bulkErrorResults,pagination:!1,showColumnSelector:!1})]})}),(0,Xe.jsx)(Cd,{children:(0,Xe.jsx)(Ht,{onClick:j,children:"Close"})})]})]})}var Nd={clickSearch:{width:"100%",padding:30,display:"block",textAlign:"center"},paper:{marginBottom:30},heading:{marginBottom:30},controls:{padding:15},popupIndicator:{backgroundColor:"red"},banner:{marginBottom:15}},jd={wrapper:{overflowY:"scroll",overflowX:"hidden",height:"100%"},padded:{padding:30},header:{backgroundColor:Pi.gray14,padding:"20px 30px 0 30px",zIndex:1},paddingBottom:{paddingBottom:25},tabContent:{padding:30},buttonRow:{marginBottom:15,display:"flex",justifyContent:"flex-end"},field:{marginBottom:15}},Ad=(0,me.Z)(Je(Je({},Nd),jd)),Pd=[{name:"startTime",type:"date"},{name:"workflowId",grow:2,renderer:function(e){return(0,Xe.jsx)(yt,{path:"/execution/".concat(e),children:e})}},{name:"workflowType",grow:2},{name:"version",grow:.5},{name:"correlationId",grow:2},{name:"updateTime",type:"date"},{name:"endTime",type:"date"},{name:"status"},{name:"input",grow:2,wrap:!0},{name:"output",grow:2},{name:"reasonForIncompletion"},{name:"executionTime"},{name:"event"},{name:"failedReferenceTaskNames",grow:2},{name:"externalInputPayloadStoragePath"},{name:"externalOutputPayloadStoragePath"},{name:"priority"}];function Rd(e){e.rowsPerPage,e.rowCount;var t=e.onChangePage,n=(e.onChangeRowsPerPage,e.currentPage);return(0,Xe.jsx)("div",{style:{textAlign:"center",padding:15},children:(0,Xe.jsx)(Ut,{onClick:function(){return t(n+1)},children:"Show More Results"})})}function Id(t){var n=t.resultObj,r=t.error,i=t.busy,o=t.page,a=t.rowsPerPage,s=t.sort,u=t.setPage,l=t.setSort,c=t.setRowsPerPage,f=t.showMore,d=Ad(),h=0;n&&(n.totalHits?h=n.totalHits:n.results&&(h=n.results.length));var p=(0,e.useState)([]),m=(0,wt.Z)(p,2),v=m[0],g=m[1],y=(0,e.useState)(!1),b=(0,wt.Z)(y,2),w=b[0],x=b[1],_=(0,e.useRef)(null),k=s?s.split(":")[0]:null,S=s?s.split(":")[1]:null;return(0,e.useEffect)((function(){g([]),x((function(e){return!e}))}),[n]),(0,Xe.jsxs)(ui,{className:d.paper,children:[i&&(0,Xe.jsx)(Qc,{}),r&&(0,Xe.jsxs)(cd,{severity:"error",children:[(0,Xe.jsx)(dd,{children:"Query Failed"}),r.message]}),!n&&!r&&(0,Xe.jsx)(jo,{className:d.clickSearch,children:'Click "Search" to submit query.'}),n&&(0,Xe.jsx)(Cl,{title:h>0&&" Page ".concat(o," of ").concat(h),data:n.results,columns:Pd,defaultShowColumns:["startTime","workflowType","workflowId","endTime","status"],localStorageKey:"executionsTable",keyField:"workflowId",paginationServer:!0,paginationTotalRows:h,paginationDefaultPage:o,paginationPerPage:a,onChangeRowsPerPage:function(e){return c(e)},onChangePage:function(e){return u(e)},sortServer:!0,defaultSortField:k,defaultSortAsc:"ASC"===S,onSort:function(e,t){l(e.id,t)},selectableRows:!0,contextComponent:(0,Xe.jsx)(Dd,{selectedRows:v,popperAnchorEl:_.current}),onSelectedRowsChange:function(e){var t=e.selectedRows;return g(t)},clearSelectedRows:w,customStyles:{header:{style:{overflow:"visible"}},contextMenu:{style:{display:"none"},activeStyle:{display:"flex"}}},paginationComponent:f?Rd:null})]})}var Fd=(0,me.Z)({wrapper:{display:"flex"},input:{marginRight:5,flex:"0 1 50%"},quick:{flex:"0 0 auto"}});function Ld(e){var t=e.onFromChange,n=e.from,r=e.onToChange,i=e.to,o=e.label,a=e.disabled,s=Fd();return(0,Xe.jsxs)("div",{className:s.wrapper,children:[(0,Xe.jsx)(Va,{className:s.input,label:o&&"".concat(o," - From"),value:n,onChange:t,type:"datetime-local",fullWidth:!0,clearable:!0,disabled:a}),(0,Xe.jsx)(Va,{className:s.input,label:o&&"".concat(o," - To"),value:i,onChange:r,type:"datetime-local",fullWidth:!0,clearable:!0,disabled:a})]})}var zd=(0,me.Z)(Je(Je({},Nd),jd));function Bd(){var t=zd(),n=td("freeText",""),r=(0,wt.Z)(n,2),i=r[0],o=r[1],a=td("status",[]),s=(0,wt.Z)(a,2),u=s[0],l=s[1],c=td("workflowType",[]),f=(0,wt.Z)(c,2),d=f[0],h=f[1],p=td("workflowId",""),m=(0,wt.Z)(p,2),v=m[0],g=m[1],y=td("startFrom",""),b=(0,wt.Z)(y,2),w=b[0],x=b[1],_=td("startTo",""),k=(0,wt.Z)(_,2),S=k[0],M=k[1],T=td("lookback",""),E=(0,wt.Z)(T,2),C=E[0],O=E[1],D=td("page",1),N=(0,wt.Z)(D,2),j=N[0],A=N[1],P=td("rowsPerPage",15),R=(0,wt.Z)(P,2),I=R[0],F=R[1],L=td("sort","startTime:DESC"),z=(0,wt.Z)(L,2),B=z[0],Z=z[1],W=(0,e.useState)(Q),H=(0,wt.Z)(W,2),Y=H[0],U=H[1],V=function(e){var t=cf(),n="/workflow/search?";return(0,lf.useQuery)([t.stack,n,e],(function(){var r=e.rowsPerPage,i=e.page,o=e.sort,a=e.freeText,s=e.query;return ff(n+mf().stringify({start:(i-1)*r,size:r,sort:o,freeText:a,query:s}),t)}),{enabled:t.ready,keepPreviousData:!0,staleTime:6e4})}({page:j,rowsPerPage:I,sort:B,query:Y.query,freeText:Y.freeText}),q=V.data,G=V.error,X=V.isFetching,$=V.refetch;function Q(){var e=[];return _t().isEmpty(d)||e.push("workflowType IN (".concat(d.join(","),")")),_t().isEmpty(v)||e.push('workflowId="'.concat(v,'"')),_t().isEmpty(u)||e.push("status IN (".concat(u.join(","),")")),_t().isEmpty(C)||e.push("startTime>".concat((new Date).getTime()-864e5*C)),_t().isEmpty(w)||e.push("startTime>".concat(new Date(w).getTime())),_t().isEmpty(S)||e.push("startTime<".concat(new Date(S).getTime())),{query:e.join(" AND "),freeText:_t().isEmpty(i)?"*":i}}return(0,Xe.jsxs)("div",{className:(0,ge.Z)([t.wrapper,t.padded]),children:[(0,Xe.jsx)(Oo,{level:3,className:t.heading,children:"Search Executions"}),(0,Xe.jsxs)(ui,{className:t.paper,children:[(0,Xe.jsx)(nd,{tabIndex:0}),(0,Xe.jsxs)(Ct,{container:!0,spacing:3,className:t.controls,children:[(0,Xe.jsx)(Ct,{item:!0,xs:5,children:(0,Xe.jsx)(kf,{fullWidth:!0,label:"Workflow Name",onChange:function(e,t){return h(t)},value:d})}),(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(Va,{fullWidth:!0,label:"Workflow ID",defaultValue:v,onBlur:g,clearable:!0})}),(0,Xe.jsx)(Ct,{item:!0,xs:4,children:(0,Xe.jsx)(bs,{label:"Status",fullWidth:!0,options:If,multiple:!0,onChange:function(e,t){return l(t)},value:u})}),(0,Xe.jsx)(Ct,{item:!0,xs:4,children:(0,Xe.jsx)(Ld,{disabled:!_t().isEmpty(C),label:"Start Time",from:w,to:S,onFromChange:function(e){O(""),x(e)},onToChange:function(e){O(""),M(e)}})}),(0,Xe.jsx)(Ct,{item:!0,xs:1,children:(0,Xe.jsx)(Va,{fullWidth:!0,label:"Lookback (days)",defaultValue:C,onBlur:function(e){x(""),M(""),O(e)},type:"number",clearable:!0,disabled:!_t().isEmpty(w)||!_t().isEmpty(S)})}),(0,Xe.jsx)(Ct,{item:!0,xs:6,children:(0,Xe.jsx)(Va,{fullWidth:!0,label:"Lucene-syntax Query (Double-quote strings for Free Text Search)",defaultValue:i,onBlur:o,clearable:!0})}),(0,Xe.jsx)(Ct,{item:!0,xs:1,children:(0,Xe.jsxs)(It,{children:[(0,Xe.jsx)(Wt,{children:"\xa0"}),(0,Xe.jsx)(Ht,{onClick:function(){A(1);var e=Y,t=Q();U(t),_t().isEqual(e,t)&&$()},children:"Search"})]})})]})]}),(0,Xe.jsx)(Id,{resultObj:q,error:G,busy:X,page:j,rowsPerPage:I,sort:B,setPage:function(e){A(e)},setRowsPerPage:function(e){A(1),F(e)},setSort:function(e,t){var n="".concat(e,":").concat(t.toUpperCase());A(1),Z(n)}})]})}var Zd=(0,me.Z)(Je(Je({},Nd),jd)),Wd=[{name:"updateTime",label:"Update Time",type:"date"},{name:"scheduledTime",label:"Scheduled Time",type:"date"},{name:"startTime",label:"Start Time",type:"date"},{name:"endTime",label:"End Time",type:"date"},{name:"taskId",label:"Task ID",grow:1.5,renderer:function(e,t){return(0,Xe.jsx)(Rf,{taskId:e,workflowId:t.workflowId})}},{name:"taskDefName",label:"Task Name",grow:1.5,renderer:function(e){return Lf.has(e)?"-":e}},{name:"taskType",label:"Task Type",grow:.6,sortable:!1,renderer:function(e){return Lf.has(e)?e:"SIMPLE"}},{name:"workflowId",label:"Workflow ID",grow:2,renderer:function(e){return(0,Xe.jsx)(yt,{path:"/execution/".concat(e),children:e})}},{name:"workflowType",label:"Workflow Name",grow:1.5},{name:"executionTime",label:"Execution Time",grow:.6,sortable:!1},{name:"queueWaitTime",label:"Queue Wait Time",grow:.6,sortable:!1},{name:"workflowPriority",label:"Workflow Priority",grow:.6,sortable:!1},{name:"status",label:"Status",sortable:!1},{name:"input",label:"Input",grow:3,sortable:!1,wrap:!0},{name:"output",label:"Output",grow:3,sortable:!1,wrap:!0},{name:"reasonForIncompletion",label:"Reason for Incompletion",grow:3,sortable:!1,wrap:!0}];function Hd(e){e.rowsPerPage,e.rowCount;var t=e.onChangePage,n=(e.onChangeRowsPerPage,e.currentPage);return(0,Xe.jsx)("div",{style:{textAlign:"center",padding:15},children:(0,Xe.jsx)(Ut,{onClick:function(){return t(n+1)},children:"Show More Results"})})}function Yd(t){var n=t.resultObj,r=t.error,i=t.busy,o=t.page,a=t.rowsPerPage,s=t.sort,u=t.setPage,l=t.setSort,c=t.setRowsPerPage,f=t.showMore,d=Zd(),h=0;n&&(n.totalHits?h=n.totalHits:n.results&&(h=n.results.length));var p=(0,e.useState)([]),m=(0,wt.Z)(p,2),v=m[0],g=m[1],y=(0,e.useState)(!1),b=(0,wt.Z)(y,2),w=b[0],x=b[1],_=(0,e.useRef)(null),k=s?s.split(":")[0]:null,S=s?s.split(":")[1]:null;return(0,e.useEffect)((function(){g([]),x((function(e){return!e}))}),[n]),(0,Xe.jsxs)(ui,{className:d.paper,children:[i&&(0,Xe.jsx)(Qc,{}),r&&(0,Xe.jsxs)(cd,{severity:"error",children:[(0,Xe.jsx)(dd,{children:"Query Failed"}),r.message]}),!n&&!r&&(0,Xe.jsx)(jo,{className:d.clickSearch,children:'Click "Search" to submit query.'}),n&&(0,Xe.jsx)(Cl,{title:h>0&&" Page ".concat(o," of ").concat(h),data:n.results,columns:Wd,defaultShowColumns:["updateTime","taskId","taskDefName","workflowType","executionType","taskType","status"],localStorageKey:"taskResultsTable",keyField:"taskId",paginationServer:!0,paginationTotalRows:h,paginationDefaultPage:o,paginationPerPage:a,onChangeRowsPerPage:function(e){return c(e)},onChangePage:function(e){return u(e)},sortServer:!0,defaultSortField:k,defaultSortAsc:"ASC"===S,onSort:function(e,t){l(e.id,t)},selectableRows:!0,contextComponent:(0,Xe.jsx)(Dd,{selectedRows:v,popperAnchorEl:_.current}),onSelectedRowsChange:function(e){var t=e.selectedRows;return g(t)},clearSelectedRows:w,customStyles:{header:{style:{overflow:"visible"}},contextMenu:{style:{display:"none"},activeStyle:{display:"flex"}}},paginationComponent:f?Hd:null})]})}var Ud=(0,me.Z)(Je(Je({},Nd),jd)),Vd=Array.from(Lf.values());function qd(){var t=Ud(),n=td("freeText",""),r=(0,wt.Z)(n,2),i=r[0],o=r[1],a=td("status",[]),s=(0,wt.Z)(a,2),u=s[0],l=s[1],c=td("taskName",[]),f=(0,wt.Z)(c,2),d=f[0],h=f[1],p=td("taskId",""),m=(0,wt.Z)(p,2),v=m[0],g=m[1],y=td("taskType",[]),b=(0,wt.Z)(y,2),w=b[0],x=b[1],_=td("startFrom",""),k=(0,wt.Z)(_,2),S=k[0],M=k[1],T=td("startTo",""),E=(0,wt.Z)(T,2),C=E[0],O=E[1],D=td("lookback",""),N=(0,wt.Z)(D,2),j=N[0],A=N[1],P=td("workflowType",[]),R=(0,wt.Z)(P,2),I=R[0],F=R[1],L=td("page",1),z=(0,wt.Z)(L,2),B=z[0],Z=z[1],W=td("rowsPerPage",15),H=(0,wt.Z)(W,2),Y=H[0],U=H[1],V=td("sort","startTime:DESC"),q=(0,wt.Z)(V,2),G=q[0],X=q[1],$=(0,e.useState)(oe),Q=(0,wt.Z)($,2),K=Q[0],J=Q[1],ee=function(e){e.searchReady;var t=(0,ve.Z)(e,Ef),n=cf(),r="/tasks/search?",i=t.rowsPerPage,o=t.page,a=t.sort,s=t.freeText,u=t.query,l=_t().isEmpty(u)&&"*"===s;return(0,lf.useQuery)([n.stack,r,t],(function(){return l?{results:[],totalHits:0}:ff(r+mf().stringify({start:(o-1)*i,size:i,sort:a,freeText:s,query:u}),n)}),{enabled:n.ready,keepPreviousData:!0,staleTime:6e4})}({page:B,rowsPerPage:Y,sort:G,query:K.query,freeText:K.freeText}),te=ee.data,ne=ee.error,re=ee.isFetching,ie=ee.refetch;function oe(){var e=[];return _t().isEmpty(d)||e.push("taskDefName IN (".concat(d.join(","),")")),_t().isEmpty(w)||e.push("taskType IN (".concat(w.join(","),")")),_t().isEmpty(v)||e.push('taskId="'.concat(v,'"')),_t().isEmpty(u)||e.push("status IN (".concat(u.join(","),")")),_t().isEmpty(j)||e.push("updateTime>".concat((new Date).getTime()-864e5*j)),_t().isEmpty(S)||e.push("updateTime>".concat(new Date(S).getTime())),_t().isEmpty(C)||e.push("updateTime<".concat(new Date(C).getTime())),_t().isEmpty(I)||e.push("workflowType IN (".concat(I.join(","),")")),{query:e.join(" AND "),freeText:_t().isEmpty(i)?"*":i}}return(0,Xe.jsxs)("div",{className:(0,ge.Z)([t.wrapper,t.padded]),children:[(0,Xe.jsx)(Oo,{level:3,className:t.heading,children:"Search Executions"}),(0,Xe.jsxs)(ui,{className:t.paper,children:[(0,Xe.jsx)(nd,{tabIndex:1}),(0,Xe.jsxs)(Ct,{container:!0,spacing:3,className:t.controls,children:[(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(jf,{fullWidth:!0,onChange:function(e,t){return h(t)},value:d})}),(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(Va,{fullWidth:!0,label:"Task ID",defaultValue:v,onBlur:g,clearable:!0})}),(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(bs,{label:"Task Status",fullWidth:!0,options:Ff,multiple:!0,onChange:function(e,t){return l(t)},value:u})}),(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(bs,{label:"Task Type (Leave blank to include SIMPLE Tasks)",fullWidth:!0,options:Vd,multiple:!0,onChange:function(e,t){return x(t)},value:w})}),(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(kf,{fullWidth:!0,onChange:function(e,t){return F(t)},value:I})}),(0,Xe.jsx)(Ct,{item:!0,xs:4,children:(0,Xe.jsx)(Ld,{disabled:!_t().isEmpty(j),label:"Update Time",from:S,to:C,onFromChange:function(e){A(""),M(e)},onToChange:function(e){A(""),O(e)}})}),(0,Xe.jsx)(Ct,{item:!0,xs:1,children:(0,Xe.jsx)(Va,{fullWidth:!0,label:"Lookback (days)",defaultValue:j,onBlur:function(e){M(""),O(""),A(e)},type:"number",clearable:!0,disabled:!_t().isEmpty(S)||!_t().isEmpty(C)})}),(0,Xe.jsx)(Ct,{item:!0,xs:3,children:(0,Xe.jsx)(Va,{fullWidth:!0,label:"Lucene-syntax Query (Double-quote strings for Free Text)",defaultValue:i,onBlur:o,clearable:!0})}),(0,Xe.jsx)(Ct,{item:!0,xs:1,children:(0,Xe.jsxs)(It,{children:[(0,Xe.jsx)(Wt,{children:"\xa0"}),(0,Xe.jsx)(Ht,{onClick:function(){Z(1);var e=K,t=oe();J(t),_t().isEqual(e,t)&&ie()},children:"Search"})]})})]})]}),(0,Xe.jsx)(Yd,{resultObj:te,error:ne,busy:re,page:B,rowsPerPage:Y,sort:G,setPage:function(e){Z(e)},setRowsPerPage:function(e){Z(1),U(e)},setSort:function(e,t){var n="".concat(e,":").concat(t.toUpperCase());Z(1),X(n)}})]})}var Gd=n(50264),Xd=n(86183);function $d(t){var n=t.dag,r=t.tasks,i=t.onClick,o=(t.selectedTask,e.useRef()),a=(0,e.useMemo)((function(){var e,t=new Map,i=xs(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.set(o.referenceTaskName,{id:o.referenceTaskName,content:"".concat(o.referenceTaskName," (").concat(o.workflowTask.name,")")})}}catch(s){i.e(s)}finally{i.f()}var a=r.filter((function(e){return e.startTime>0||e.endTime>0})).map((function(e){var r=n.graph.predecessors(e.referenceTaskName).map((function(e){return n.graph.node(e)})).find((function(e){return"FORK_JOIN_DYNAMIC"===e.type})),i=e.startTime>0?new Date(e.startTime):new Date(e.endTime),o=e.endTime>0?new Date(e.endTime):new Date(e.startTime),a=Sl(o.getTime()-i.getTime()),s={id:e.taskId,group:e.referenceTaskName,content:"".concat(a),start:i,end:o,title:"".concat(e.referenceTaskName," (").concat(e.status,")<br/>").concat(_l(i)," - ").concat(_l(o)),className:"status_".concat(e.status)};if(r||"FORK_JOIN_DYNAMIC"===e.type){var u=t.get(r.ref);u.nestedGroups||(u.nestedGroups=[]),t.get(e.referenceTaskName).treeLevel=2,u.nestedGroups.push(e.referenceTaskName)}return s}));return{items:a,groups:Array.from(t.values())}}),[r,n]),s=a.items,u=a.groups;return(0,Xe.jsxs)("div",{children:[(0,Xe.jsxs)("div",{style:{marginLeft:15},children:["Ctrl-scroll to zoom."," ",(0,Xe.jsx)(Es,{title:"Zoom to Fit",children:(0,Xe.jsx)(Ha,{onClick:function(){o.current.timeline.fit()},children:(0,Xe.jsx)(Xd.Z,{})})})]}),(0,Xe.jsx)("div",{className:"timeline-container",children:(0,Xe.jsx)(Gd.Z,{ref:o,initialGroups:u,initialItems:s,selection:null,clickHandler:function(e){var t=e.group,r=e.item,o=e.what;t&&"background"!==o&&(_t().size(n.graph.node(t).taskResults)>1?i({ref:t,taskId:r}):i({ref:t}))},options:{orientation:"top",zoomKey:"ctrlKey",type:"range",stack:!1}})}),(0,Xe.jsx)("br",{})]})}function Qd(e){e.selectedTask;var t=e.tasks,n=e.workflowId,r=[{name:"seq",grow:.2},{name:"taskId",renderer:function(e){return(0,Xe.jsx)(Rf,{workflowId:n,taskId:e})},grow:2},{name:"workflowTask.name",id:"taskName",label:"Task Name"},{name:"referenceTaskName",label:"Ref"},{name:"workflowTask.type",id:"taskType",label:"Type",grow:.5},{name:"scheduledTime",type:"date-ms"},{name:"startTime",type:"date-ms"},{name:"endTime",type:"date-ms"},{name:"status",grow:.8},{name:"updateTime",type:"date-ms"},{name:"callbackAfterSeconds"},{name:"pollCount",grow:.5}];return(0,Xe.jsx)(Cl,{style:{minHeight:400},data:t,columns:r,defaultShowColumns:["seq","taskId","taskName","referenceTaskName","taskType","startTime","endTime","status"],localStorageKey:"taskListTable"})}var Kd=n(24572);function Jd(){}function eh(e){return null==e?Jd:function(){return this.querySelector(e)}}function th(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function nh(){return[]}function rh(e){return null==e?nh:function(){return this.querySelectorAll(e)}}function ih(e){return function(){return this.matches(e)}}function oh(e){return function(t){return t.matches(e)}}var ah=Array.prototype.find;function sh(){return this.firstElementChild}var uh=Array.prototype.filter;function lh(){return this.children}function ch(e){return new Array(e.length)}function fh(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function dh(e){return function(){return e}}function hh(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new fh(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function ph(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(h[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<d;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new fh(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function mh(e){return e.__data__}function vh(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}fh.prototype={constructor:fh,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var gh="http://www.w3.org/1999/xhtml",yh={svg:"http://www.w3.org/2000/svg",xhtml:gh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bh(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),yh.hasOwnProperty(t)?{space:yh[t],local:e}:e}function wh(e){return function(){this.removeAttribute(e)}}function xh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _h(e,t){return function(){this.setAttribute(e,t)}}function kh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Sh(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Mh(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Th(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Eh(e){return function(){this.style.removeProperty(e)}}function Ch(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Oh(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Dh(e,t){return e.style.getPropertyValue(t)||Th(e).getComputedStyle(e,null).getPropertyValue(t)}function Nh(e){return function(){delete this[e]}}function jh(e,t){return function(){this[e]=t}}function Ah(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ph(e){return e.trim().split(/^|\s+/)}function Rh(e){return e.classList||new Ih(e)}function Ih(e){this._node=e,this._names=Ph(e.getAttribute("class")||"")}function Fh(e,t){for(var n=Rh(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Lh(e,t){for(var n=Rh(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function zh(e){return function(){Fh(this,e)}}function Bh(e){return function(){Lh(this,e)}}function Zh(e,t){return function(){(t.apply(this,arguments)?Fh:Lh)(this,e)}}function Wh(){this.textContent=""}function Hh(e){return function(){this.textContent=e}}function Yh(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Uh(){this.innerHTML=""}function Vh(e){return function(){this.innerHTML=e}}function qh(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Gh(){this.nextSibling&&this.parentNode.appendChild(this)}function Xh(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $h(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gh&&t.documentElement.namespaceURI===gh?t.createElement(e):t.createElementNS(n,e)}}function Qh(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Kh(e){var t=bh(e);return(t.local?Qh:$h)(t)}function Jh(){return null}function ep(){var e=this.parentNode;e&&e.removeChild(this)}function tp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function np(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rp(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function ip(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function op(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function ap(e,t,n){var r=Th(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function sp(e,t){return function(){return ap(this,e,t)}}function up(e,t){return function(){return ap(this,e,t.apply(this,arguments))}}Ih.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var lp=Sf().mark(cp);function cp(){var e,t,n,r,i,o,a;return Sf().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),lp,this)}var fp=[null];function dp(e,t){this._groups=e,this._parents=t}function hp(){return new dp([[document.documentElement]],fp)}dp.prototype=hp.prototype=(0,Se.Z)({constructor:dp,select:function(e){"function"!==typeof e&&(e=eh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new dp(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){var t=e.apply(this,arguments);return null==t?[]:th(t)}}(e):rh(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new dp(r,i)},selectChild:function(e){return this.select(null==e?sh:function(e){return function(){return ah.call(this.children,e)}}("function"===typeof e?e:oh(e)))},selectChildren:function(e){return this.selectAll(null==e?lh:function(e){return function(){return uh.call(this.children,e)}}("function"===typeof e?e:oh(e)))},filter:function(e){"function"!==typeof e&&(e=ih(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new dp(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,mh);var n=t?ph:hh,r=this._parents,i=this._groups;"function"!==typeof e&&(e=dh(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],d=f.length,h=th(e.call(c,c&&c.__data__,l,r)),p=h.length,m=s[l]=new Array(p),v=a[l]=new Array(p),g=u[l]=new Array(d);n(c,f,m,v,g,h,t);for(var y,b,w=0,x=0;w<p;++w)if(y=m[w]){for(w>=x&&(x=w+1);!(b=v[x])&&++x<p;);y._next=b||null}}return(a=new dp(a,r))._enter=s,a._exit=u,a},enter:function(){return new dp(this._enter||this._groups.map(ch),this._parents)},exit:function(){return new dp(this._exit||this._groups.map(ch),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){if(!(e instanceof dp))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new dp(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=vh);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new dp(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=xs(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=bh(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?xh:wh:"function"===typeof t?n.local?Mh:Sh:n.local?kh:_h)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Eh:"function"===typeof t?Oh:Ch)(e,t,null==n?"":n)):Dh(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Nh:"function"===typeof t?Ah:jh)(e,t)):this.node()[e]},classed:function(e,t){var n=Ph(e+"");if(arguments.length<2){for(var r=Rh(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?Zh:t?zh:Bh)(n,t))},text:function(e){return arguments.length?this.each(null==e?Wh:("function"===typeof e?Yh:Hh)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Uh:("function"===typeof e?qh:Vh)(e)):this.node().innerHTML},raise:function(){return this.each(Gh)},lower:function(){return this.each(Xh)},append:function(e){var t="function"===typeof e?e:Kh(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Kh(e),r=null==t?Jh:"function"===typeof t?t:eh(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ep)},clone:function(e){return this.select(e?np:tp)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=rp(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?op:ip,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?up:sp)(e,t))}},Symbol.iterator,cp);var pp=hp,mp={value:function(){}};function vp(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new gp(r)}function gp(e){this._=e}function yp(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function bp(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function wp(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=mp,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}gp.prototype=vp.prototype={constructor:gp,on:function(e,t){var n,r=this._,i=yp(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=wp(r[n],e.name,t);else if(null==t)for(n in r)r[n]=wp(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=bp(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new gp(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var xp,_p,kp=vp,Sp=0,Mp=0,Tp=0,Ep=0,Cp=0,Op=0,Dp="object"===typeof performance&&performance.now?performance:Date,Np="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jp(){return Cp||(Np(Ap),Cp=Dp.now()+Op)}function Ap(){Cp=0}function Pp(){this._call=this._time=this._next=null}function Rp(e,t,n){var r=new Pp;return r.restart(e,t,n),r}function Ip(){Cp=(Ep=Dp.now())+Op,Sp=Mp=0;try{!function(){jp(),++Sp;for(var e,t=xp;t;)(e=Cp-t._time)>=0&&t._call.call(null,e),t=t._next;--Sp}()}finally{Sp=0,function(){var e,t,n=xp,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:xp=t);_p=e,Lp(r)}(),Cp=0}}function Fp(){var e=Dp.now(),t=e-Ep;t>1e3&&(Op-=t,Ep=e)}function Lp(e){Sp||(Mp&&(Mp=clearTimeout(Mp)),e-Cp>24?(e<1/0&&(Mp=setTimeout(Ip,e-Dp.now()-Op)),Tp&&(Tp=clearInterval(Tp))):(Tp||(Ep=Dp.now(),Tp=setInterval(Fp,1e3)),Sp=1,Np(Ip)))}function zp(e,t,n){var r=new Pp;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}Pp.prototype=Rp.prototype={constructor:Pp,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?jp():+n)+(null==t?0:+t),this._next||_p===this||(_p?_p._next=this:xp=this,_p=this),this._call=e,this._time=n,Lp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lp())}};var Bp=kp("start","end","cancel","interrupt"),Zp=[];function Wp(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return zp(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(zp((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Rp(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:Bp,tween:Zp,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Hp(e,t){var n=Up(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Yp(e,t){var n=Up(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Up(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Vp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var qp,Gp=180/Math.PI,Xp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $p(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Gp,skewX:Math.atan(u)*Gp,scaleX:a,scaleY:s}}function Qp(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:Vp(e,i)},{i:u-2,x:Vp(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Vp(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Vp(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Vp(e,n)},{i:s-2,x:Vp(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var Kp=Qp((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xp:$p(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Jp=Qp((function(e){return null==e?Xp:(qp||(qp=document.createElementNS("http://www.w3.org/2000/svg","g")),qp.setAttribute("transform",e),(e=qp.transform.baseVal.consolidate())?$p((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Xp)}),", ",")",")");function em(e,t){var n,r;return function(){var i=Yp(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function tm(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Yp(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function nm(e,t,n){var r=e._id;return e.each((function(){var e=Yp(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Up(e,r).value[t]}}function rm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function im(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function om(){}var am=.7,sm=1/am,um="\\s*([+-]?\\d+)\\s*",lm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",cm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fm=/^#([0-9a-f]{3,8})$/,dm=new RegExp("^rgb\\("+[um,um,um]+"\\)$"),hm=new RegExp("^rgb\\("+[cm,cm,cm]+"\\)$"),pm=new RegExp("^rgba\\("+[um,um,um,lm]+"\\)$"),mm=new RegExp("^rgba\\("+[cm,cm,cm,lm]+"\\)$"),vm=new RegExp("^hsl\\("+[lm,cm,cm]+"\\)$"),gm=new RegExp("^hsla\\("+[lm,cm,cm,lm]+"\\)$"),ym={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function bm(){return this.rgb().formatHex()}function wm(){return this.rgb().formatRgb()}function xm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_m(t):3===n?new Tm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?km(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?km(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=dm.exec(e))?new Tm(t[1],t[2],t[3],1):(t=hm.exec(e))?new Tm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pm.exec(e))?km(t[1],t[2],t[3],t[4]):(t=mm.exec(e))?km(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vm.exec(e))?Dm(t[1],t[2]/100,t[3]/100,1):(t=gm.exec(e))?Dm(t[1],t[2]/100,t[3]/100,t[4]):ym.hasOwnProperty(e)?_m(ym[e]):"transparent"===e?new Tm(NaN,NaN,NaN,0):null}function _m(e){return new Tm(e>>16&255,e>>8&255,255&e,1)}function km(e,t,n,r){return r<=0&&(e=t=n=NaN),new Tm(e,t,n,r)}function Sm(e){return e instanceof om||(e=xm(e)),e?new Tm((e=e.rgb()).r,e.g,e.b,e.opacity):new Tm}function Mm(e,t,n,r){return 1===arguments.length?Sm(e):new Tm(e,t,n,null==r?1:r)}function Tm(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Em(){return"#"+Om(this.r)+Om(this.g)+Om(this.b)}function Cm(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Om(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Dm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jm(e,t,n,r)}function Nm(e){if(e instanceof jm)return new jm(e.h,e.s,e.l,e.opacity);if(e instanceof om||(e=xm(e)),!e)return new jm;if(e instanceof jm)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new jm(a,s,u,e.opacity)}function jm(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Am(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Pm(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}rm(om,xm,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:bm,formatHex:bm,formatHsl:function(){return Nm(this).formatHsl()},formatRgb:wm,toString:wm}),rm(Tm,Mm,im(om,{brighter:function(e){return e=null==e?sm:Math.pow(sm,e),new Tm(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?am:Math.pow(am,e),new Tm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Em,formatHex:Em,formatRgb:Cm,toString:Cm})),rm(jm,(function(e,t,n,r){return 1===arguments.length?Nm(e):new jm(e,t,n,null==r?1:r)}),im(om,{brighter:function(e){return e=null==e?sm:Math.pow(sm,e),new jm(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?am:Math.pow(am,e),new jm(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Tm(Am(e>=240?e-240:e+120,i,r),Am(e,i,r),Am(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Rm=function(e){return function(){return e}};function Im(e,t){return function(n){return e+n*t}}function Fm(e){return 1===(e=+e)?Lm:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rm(isNaN(t)?n:t)}}function Lm(e,t){var n=t-e;return n?Im(e,n):Rm(isNaN(e)?t:e)}var zm=function e(t){var n=Fm(t);function r(e,t){var r=n((e=Mm(e)).r,(t=Mm(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Lm(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Bm(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Mm(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}Bm((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Pm((n-r/t)*t,a,i,o,s)}})),Bm((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Pm((n-r/t)*t,i,o,a,s)}}));var Zm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wm=new RegExp(Zm.source,"g");function Hm(e,t){var n,r,i,o=Zm.lastIndex=Wm.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Zm.exec(e))&&(r=Wm.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Vp(n,r)})),o=Wm.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Ym(e,t){var n;return("number"===typeof t?Vp:t instanceof xm?zm:(n=xm(t))?(t=n,zm):Hm)(e,t)}function Um(e){return function(){this.removeAttribute(e)}}function Vm(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qm(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function Gm(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function Xm(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function $m(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Qm(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Km(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Jm(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Km(e,i)),n}return i._value=t,i}function ev(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Qm(e,i)),n}return i._value=t,i}function tv(e,t){return function(){Hp(this,e).delay=+t.apply(this,arguments)}}function nv(e,t){return t=+t,function(){Hp(this,e).delay=t}}function rv(e,t){return function(){Yp(this,e).duration=+t.apply(this,arguments)}}function iv(e,t){return t=+t,function(){Yp(this,e).duration=t}}function ov(e,t){if("function"!==typeof t)throw new Error;return function(){Yp(this,e).ease=t}}function av(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Hp:Yp;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var sv=pp.prototype.constructor;function uv(e){return function(){this.style.removeProperty(e)}}function lv(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function cv(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&lv(e,o,n)),r}return o._value=t,o}function fv(e){return function(t){this.textContent=e.call(this,t)}}function dv(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&fv(r)),t}return r._value=e,r}var hv=0;function pv(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function mv(){return++hv}var vv=pp.prototype;pv.prototype=function(e){return pp().transition(e)}.prototype=(0,Se.Z)({constructor:pv,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=eh(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,Wp(f[d],t,n,d,f,Up(s,n)));return new pv(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=rh(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=Up(u,n),m=0,v=h.length;m<v;++m)(d=h[m])&&Wp(d,t,n,m,h,p);o.push(h),a.push(u)}return new pv(o,a,t,n)},filter:function(e){"function"!==typeof e&&(e=ih(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new pv(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new pv(a,this._parents,this._name,this._id)},selection:function(){return new sv(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=mv(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=Up(a,t);Wp(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new pv(r,this._parents,e,n)},call:vv.call,nodes:vv.nodes,node:vv.node,size:vv.size,empty:vv.empty,each:vv.each,on:function(e,t){var n=this._id;return arguments.length<2?Up(this.node(),n).on.on(e):this.each(av(n,e,t))},attr:function(e,t){var n=bh(e),r="transform"===n?Jp:Ym;return this.attrTween(e,"function"===typeof t?(n.local?$m:Xm)(n,r,nm(this,"attr."+e,t)):null==t?(n.local?Vm:Um)(n):(n.local?Gm:qm)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=bh(e);return this.tween(n,(r.local?Jm:ev)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?Kp:Ym;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Dh(this,e),a=(this.style.removeProperty(e),Dh(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,uv(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Dh(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Dh(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,nm(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=Yp(this,e),l=u.on,c=null==u.value[a]?o||(o=uv(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Dh(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,cv(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(nm(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,dv(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Up(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?em:tm)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?tv:nv)(t,e)):Up(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?rv:iv)(t,e)):Up(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(ov(t,e)):Up(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;Yp(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=Yp(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))}},Symbol.iterator,vv[Symbol.iterator]);var gv={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function yv(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}pp.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)}))},pp.prototype.transition=function(e){var t,n;e instanceof pv?(t=e._id,e=e._name):(t=mv(),(n=gv).time=jp(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&Wp(a,e,t,l,s,n||yv(a,t));return new pv(r,this._parents,e,t)};Math.abs,Math.max,Math.min;function bv(e){return[+e[0],+e[1]]}function wv(e){return[bv(e[0]),bv(e[1])]}["w","e"].map(xv),["n","s"].map(xv),["n","w","e","s","nw","ne","sw","se"].map(xv);function xv(e){return{type:e}}function _v(){}function kv(e){return null==e?_v:function(){return this.querySelector(e)}}function Sv(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Mv(){return[]}function Tv(e){return null==e?Mv:function(){return this.querySelectorAll(e)}}function Ev(e){return function(){return this.matches(e)}}function Cv(e){return function(t){return t.matches(e)}}var Ov=Array.prototype.find;function Dv(){return this.firstElementChild}var Nv=Array.prototype.filter;function jv(){return this.children}function Av(e){return new Array(e.length)}function Pv(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Rv(e){return function(){return e}}function Iv(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Pv(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function Fv(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(h[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<d;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new Pv(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function Lv(e){return e.__data__}function zv(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Pv.prototype={constructor:Pv,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Bv="http://www.w3.org/1999/xhtml",Zv={svg:"http://www.w3.org/2000/svg",xhtml:Bv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wv(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Zv.hasOwnProperty(t)?{space:Zv[t],local:e}:e}function Hv(e){return function(){this.removeAttribute(e)}}function Yv(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uv(e,t){return function(){this.setAttribute(e,t)}}function Vv(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qv(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Gv(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Xv(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function $v(e){return function(){this.style.removeProperty(e)}}function Qv(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Kv(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Jv(e,t){return e.style.getPropertyValue(t)||Xv(e).getComputedStyle(e,null).getPropertyValue(t)}function eg(e){return function(){delete this[e]}}function tg(e,t){return function(){this[e]=t}}function ng(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function rg(e){return e.trim().split(/^|\s+/)}function ig(e){return e.classList||new og(e)}function og(e){this._node=e,this._names=rg(e.getAttribute("class")||"")}function ag(e,t){for(var n=ig(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sg(e,t){for(var n=ig(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function ug(e){return function(){ag(this,e)}}function lg(e){return function(){sg(this,e)}}function cg(e,t){return function(){(t.apply(this,arguments)?ag:sg)(this,e)}}function fg(){this.textContent=""}function dg(e){return function(){this.textContent=e}}function hg(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function pg(){this.innerHTML=""}function mg(e){return function(){this.innerHTML=e}}function vg(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function gg(){this.nextSibling&&this.parentNode.appendChild(this)}function yg(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bg(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Bv&&t.documentElement.namespaceURI===Bv?t.createElement(e):t.createElementNS(n,e)}}function wg(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function xg(e){var t=Wv(e);return(t.local?wg:bg)(t)}function _g(){return null}function kg(){var e=this.parentNode;e&&e.removeChild(this)}function Sg(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mg(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tg(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Eg(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Cg(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Og(e,t,n){var r=Xv(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Dg(e,t){return function(){return Og(this,e,t)}}function Ng(e,t){return function(){return Og(this,e,t.apply(this,arguments))}}og.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var jg=Sf().mark(Ag);function Ag(){var e,t,n,r,i,o,a;return Sf().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),jg,this)}var Pg=[null];function Rg(e,t){this._groups=e,this._parents=t}function Ig(){return new Rg([[document.documentElement]],Pg)}Rg.prototype=Ig.prototype=(0,Se.Z)({constructor:Rg,select:function(e){"function"!==typeof e&&(e=kv(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Rg(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){var t=e.apply(this,arguments);return null==t?[]:Sv(t)}}(e):Tv(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new Rg(r,i)},selectChild:function(e){return this.select(null==e?Dv:function(e){return function(){return Ov.call(this.children,e)}}("function"===typeof e?e:Cv(e)))},selectChildren:function(e){return this.selectAll(null==e?jv:function(e){return function(){return Nv.call(this.children,e)}}("function"===typeof e?e:Cv(e)))},filter:function(e){"function"!==typeof e&&(e=Ev(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new Rg(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Lv);var n=t?Fv:Iv,r=this._parents,i=this._groups;"function"!==typeof e&&(e=Rv(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],d=f.length,h=Sv(e.call(c,c&&c.__data__,l,r)),p=h.length,m=s[l]=new Array(p),v=a[l]=new Array(p),g=u[l]=new Array(d);n(c,f,m,v,g,h,t);for(var y,b,w=0,x=0;w<p;++w)if(y=m[w]){for(w>=x&&(x=w+1);!(b=v[x])&&++x<p;);y._next=b||null}}return(a=new Rg(a,r))._enter=s,a._exit=u,a},enter:function(){return new Rg(this._enter||this._groups.map(Av),this._parents)},exit:function(){return new Rg(this._exit||this._groups.map(Av),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){if(!(e instanceof Rg))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new Rg(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=zv);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new Rg(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=xs(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=Wv(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Yv:Hv:"function"===typeof t?n.local?Gv:qv:n.local?Vv:Uv)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?$v:"function"===typeof t?Kv:Qv)(e,t,null==n?"":n)):Jv(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?eg:"function"===typeof t?ng:tg)(e,t)):this.node()[e]},classed:function(e,t){var n=rg(e+"");if(arguments.length<2){for(var r=ig(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?cg:t?ug:lg)(n,t))},text:function(e){return arguments.length?this.each(null==e?fg:("function"===typeof e?hg:dg)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?pg:("function"===typeof e?vg:mg)(e)):this.node().innerHTML},raise:function(){return this.each(gg)},lower:function(){return this.each(yg)},append:function(e){var t="function"===typeof e?e:xg(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:xg(e),r=null==t?_g:"function"===typeof t?t:kv(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(kg)},clone:function(e){return this.select(e?Mg:Sg)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Tg(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Cg:Eg,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?Ng:Dg)(e,t))}},Symbol.iterator,Ag);var Fg=Ig;var Lg={value:function(){}};function zg(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Bg(r)}function Bg(e){this._=e}function Zg(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Wg(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Hg(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Lg,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Bg.prototype=zg.prototype={constructor:Bg,on:function(e,t){var n,r=this._,i=Zg(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=Hg(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Hg(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=Wg(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Bg(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Yg,Ug,Vg=zg,qg=0,Gg=0,Xg=0,$g=0,Qg=0,Kg=0,Jg="object"===typeof performance&&performance.now?performance:Date,ey="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ty(){return Qg||(ey(ny),Qg=Jg.now()+Kg)}function ny(){Qg=0}function ry(){this._call=this._time=this._next=null}function iy(e,t,n){var r=new ry;return r.restart(e,t,n),r}function oy(){Qg=($g=Jg.now())+Kg,qg=Gg=0;try{!function(){ty(),++qg;for(var e,t=Yg;t;)(e=Qg-t._time)>=0&&t._call.call(null,e),t=t._next;--qg}()}finally{qg=0,function(){var e,t,n=Yg,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Yg=t);Ug=e,sy(r)}(),Qg=0}}function ay(){var e=Jg.now(),t=e-$g;t>1e3&&(Kg-=t,$g=e)}function sy(e){qg||(Gg&&(Gg=clearTimeout(Gg)),e-Qg>24?(e<1/0&&(Gg=setTimeout(oy,e-Jg.now()-Kg)),Xg&&(Xg=clearInterval(Xg))):(Xg||($g=Jg.now(),Xg=setInterval(ay,1e3)),qg=1,ey(oy)))}function uy(e,t,n){var r=new ry;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}ry.prototype=iy.prototype={constructor:ry,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?ty():+n)+(null==t?0:+t),this._next||Ug===this||(Ug?Ug._next=this:Yg=this,Ug=this),this._call=e,this._time=n,sy()},stop:function(){this._call&&(this._call=null,this._time=1/0,sy())}};var ly=Vg("start","end","cancel","interrupt"),cy=[];function fy(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return uy(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(uy((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=iy(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:ly,tween:cy,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function dy(e,t){var n=py(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function hy(e,t){var n=py(e,t);if(n.state>3)throw new Error("too late; already running");return n}function py(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function my(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var vy,gy=180/Math.PI,yy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function by(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*gy,skewX:Math.atan(u)*gy,scaleX:a,scaleY:s}}function wy(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:my(e,i)},{i:u-2,x:my(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:my(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:my(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:my(e,n)},{i:s-2,x:my(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var xy=wy((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?yy:by(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),_y=wy((function(e){return null==e?yy:(vy||(vy=document.createElementNS("http://www.w3.org/2000/svg","g")),vy.setAttribute("transform",e),(e=vy.transform.baseVal.consolidate())?by((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):yy)}),", ",")",")");function ky(e,t){var n,r;return function(){var i=hy(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function Sy(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=hy(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function My(e,t,n){var r=e._id;return e.each((function(){var e=hy(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return py(e,r).value[t]}}function Ty(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ey(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cy(){}var Oy=.7,Dy=1/Oy,Ny="\\s*([+-]?\\d+)\\s*",jy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ay="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Py=/^#([0-9a-f]{3,8})$/,Ry=new RegExp("^rgb\\("+[Ny,Ny,Ny]+"\\)$"),Iy=new RegExp("^rgb\\("+[Ay,Ay,Ay]+"\\)$"),Fy=new RegExp("^rgba\\("+[Ny,Ny,Ny,jy]+"\\)$"),Ly=new RegExp("^rgba\\("+[Ay,Ay,Ay,jy]+"\\)$"),zy=new RegExp("^hsl\\("+[jy,Ay,Ay]+"\\)$"),By=new RegExp("^hsla\\("+[jy,Ay,Ay,jy]+"\\)$"),Zy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wy(){return this.rgb().formatHex()}function Hy(){return this.rgb().formatRgb()}function Yy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Py.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Uy(t):3===n?new Xy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vy(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=Ry.exec(e))?new Xy(t[1],t[2],t[3],1):(t=Iy.exec(e))?new Xy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fy.exec(e))?Vy(t[1],t[2],t[3],t[4]):(t=Ly.exec(e))?Vy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zy.exec(e))?Jy(t[1],t[2]/100,t[3]/100,1):(t=By.exec(e))?Jy(t[1],t[2]/100,t[3]/100,t[4]):Zy.hasOwnProperty(e)?Uy(Zy[e]):"transparent"===e?new Xy(NaN,NaN,NaN,0):null}function Uy(e){return new Xy(e>>16&255,e>>8&255,255&e,1)}function Vy(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xy(e,t,n,r)}function qy(e){return e instanceof Cy||(e=Yy(e)),e?new Xy((e=e.rgb()).r,e.g,e.b,e.opacity):new Xy}function Gy(e,t,n,r){return 1===arguments.length?qy(e):new Xy(e,t,n,null==r?1:r)}function Xy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $y(){return"#"+Ky(this.r)+Ky(this.g)+Ky(this.b)}function Qy(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Ky(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Jy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tb(e,t,n,r)}function eb(e){if(e instanceof tb)return new tb(e.h,e.s,e.l,e.opacity);if(e instanceof Cy||(e=Yy(e)),!e)return new tb;if(e instanceof tb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new tb(a,s,u,e.opacity)}function tb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function rb(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}Ty(Cy,Yy,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Wy,formatHex:Wy,formatHsl:function(){return eb(this).formatHsl()},formatRgb:Hy,toString:Hy}),Ty(Xy,Gy,Ey(Cy,{brighter:function(e){return e=null==e?Dy:Math.pow(Dy,e),new Xy(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Oy:Math.pow(Oy,e),new Xy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:$y,formatHex:$y,formatRgb:Qy,toString:Qy})),Ty(tb,(function(e,t,n,r){return 1===arguments.length?eb(e):new tb(e,t,n,null==r?1:r)}),Ey(Cy,{brighter:function(e){return e=null==e?Dy:Math.pow(Dy,e),new tb(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Oy:Math.pow(Oy,e),new tb(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xy(nb(e>=240?e-240:e+120,i,r),nb(e,i,r),nb(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var ib=function(e){return function(){return e}};function ob(e,t){return function(n){return e+n*t}}function ab(e){return 1===(e=+e)?sb:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ib(isNaN(t)?n:t)}}function sb(e,t){var n=t-e;return n?ob(e,n):ib(isNaN(e)?t:e)}var ub=function e(t){var n=ab(t);function r(e,t){var r=n((e=Gy(e)).r,(t=Gy(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=sb(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function lb(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Gy(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}lb((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return rb((n-r/t)*t,a,i,o,s)}})),lb((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return rb((n-r/t)*t,i,o,a,s)}}));var cb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fb=new RegExp(cb.source,"g");function db(e,t){var n,r,i,o=cb.lastIndex=fb.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=cb.exec(e))&&(r=fb.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:my(n,r)})),o=fb.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function hb(e,t){var n;return("number"===typeof t?my:t instanceof Yy?ub:(n=Yy(t))?(t=n,ub):db)(e,t)}function pb(e){return function(){this.removeAttribute(e)}}function mb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vb(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function gb(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function yb(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function bb(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function wb(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function xb(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function _b(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&xb(e,i)),n}return i._value=t,i}function kb(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&wb(e,i)),n}return i._value=t,i}function Sb(e,t){return function(){dy(this,e).delay=+t.apply(this,arguments)}}function Mb(e,t){return t=+t,function(){dy(this,e).delay=t}}function Tb(e,t){return function(){hy(this,e).duration=+t.apply(this,arguments)}}function Eb(e,t){return t=+t,function(){hy(this,e).duration=t}}function Cb(e,t){if("function"!==typeof t)throw new Error;return function(){hy(this,e).ease=t}}function Ob(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?dy:hy;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var Db=Fg.prototype.constructor;function Nb(e){return function(){this.style.removeProperty(e)}}function jb(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ab(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&jb(e,o,n)),r}return o._value=t,o}function Pb(e){return function(t){this.textContent=e.call(this,t)}}function Rb(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Pb(r)),t}return r._value=e,r}var Ib=0;function Fb(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Lb(){return++Ib}var zb=Fg.prototype;Fb.prototype=function(e){return Fg().transition(e)}.prototype=(0,Se.Z)({constructor:Fb,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=kv(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,fy(f[d],t,n,d,f,py(s,n)));return new Fb(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Tv(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=py(u,n),m=0,v=h.length;m<v;++m)(d=h[m])&&fy(d,t,n,m,h,p);o.push(h),a.push(u)}return new Fb(o,a,t,n)},filter:function(e){"function"!==typeof e&&(e=Ev(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new Fb(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new Fb(a,this._parents,this._name,this._id)},selection:function(){return new Db(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Lb(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=py(a,t);fy(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Fb(r,this._parents,e,n)},call:zb.call,nodes:zb.nodes,node:zb.node,size:zb.size,empty:zb.empty,each:zb.each,on:function(e,t){var n=this._id;return arguments.length<2?py(this.node(),n).on.on(e):this.each(Ob(n,e,t))},attr:function(e,t){var n=Wv(e),r="transform"===n?_y:hb;return this.attrTween(e,"function"===typeof t?(n.local?bb:yb)(n,r,My(this,"attr."+e,t)):null==t?(n.local?mb:pb)(n):(n.local?gb:vb)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Wv(e);return this.tween(n,(r.local?_b:kb)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?xy:hb;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Jv(this,e),a=(this.style.removeProperty(e),Jv(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,Nb(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Jv(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Jv(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,My(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=hy(this,e),l=u.on,c=null==u.value[a]?o||(o=Nb(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Jv(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Ab(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(My(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Rb(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=py(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?ky:Sy)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Sb:Mb)(t,e)):py(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Tb:Eb)(t,e)):py(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Cb(t,e)):py(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;hy(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=hy(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))}},Symbol.iterator,zb[Symbol.iterator]);var Bb={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Zb(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}Fg.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)}))},Fg.prototype.transition=function(e){var t,n;e instanceof Fb?(t=e._id,e=e._name):(t=Lb(),(n=Bb).time=ty(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&fy(a,e,t,l,s,n||Zb(a,t));return new Fb(r,this._parents,e,t)};var Wb={value:function(){}};function Hb(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Yb(r)}function Yb(e){this._=e}function Ub(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Vb(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function qb(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Wb,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Yb.prototype=Hb.prototype={constructor:Yb,on:function(e,t){var n,r=this._,i=Ub(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=qb(r[n],e.name,t);else if(null==t)for(n in r)r[n]=qb(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=Vb(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Yb(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Gb=Hb;function Xb(){}function $b(e){return null==e?Xb:function(){return this.querySelector(e)}}function Qb(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Kb(){return[]}function Jb(e){return null==e?Kb:function(){return this.querySelectorAll(e)}}function ew(e){return function(){return this.matches(e)}}function tw(e){return function(t){return t.matches(e)}}var nw=Array.prototype.find;function rw(){return this.firstElementChild}var iw=Array.prototype.filter;function ow(){return this.children}function aw(e){return new Array(e.length)}function sw(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function uw(e){return function(){return e}}function lw(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new sw(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function cw(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(h[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<d;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new sw(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function fw(e){return e.__data__}function dw(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}sw.prototype={constructor:sw,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var hw="http://www.w3.org/1999/xhtml",pw={svg:"http://www.w3.org/2000/svg",xhtml:hw,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mw(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),pw.hasOwnProperty(t)?{space:pw[t],local:e}:e}function vw(e){return function(){this.removeAttribute(e)}}function gw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function yw(e,t){return function(){this.setAttribute(e,t)}}function bw(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ww(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function xw(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function _w(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function kw(e){return function(){this.style.removeProperty(e)}}function Sw(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Mw(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Tw(e,t){return e.style.getPropertyValue(t)||_w(e).getComputedStyle(e,null).getPropertyValue(t)}function Ew(e){return function(){delete this[e]}}function Cw(e,t){return function(){this[e]=t}}function Ow(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Dw(e){return e.trim().split(/^|\s+/)}function Nw(e){return e.classList||new jw(e)}function jw(e){this._node=e,this._names=Dw(e.getAttribute("class")||"")}function Aw(e,t){for(var n=Nw(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Pw(e,t){for(var n=Nw(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Rw(e){return function(){Aw(this,e)}}function Iw(e){return function(){Pw(this,e)}}function Fw(e,t){return function(){(t.apply(this,arguments)?Aw:Pw)(this,e)}}function Lw(){this.textContent=""}function zw(e){return function(){this.textContent=e}}function Bw(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Zw(){this.innerHTML=""}function Ww(e){return function(){this.innerHTML=e}}function Hw(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Yw(){this.nextSibling&&this.parentNode.appendChild(this)}function Uw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vw(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===hw&&t.documentElement.namespaceURI===hw?t.createElement(e):t.createElementNS(n,e)}}function qw(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Gw(e){var t=mw(e);return(t.local?qw:Vw)(t)}function Xw(){return null}function $w(){var e=this.parentNode;e&&e.removeChild(this)}function Qw(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Kw(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Jw(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function ex(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function tx(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function nx(e,t,n){var r=_w(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function rx(e,t){return function(){return nx(this,e,t)}}function ix(e,t){return function(){return nx(this,e,t.apply(this,arguments))}}jw.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ox=Sf().mark(ax);function ax(){var e,t,n,r,i,o,a;return Sf().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),ox,this)}var sx=[null];function ux(e,t){this._groups=e,this._parents=t}function lx(){return new ux([[document.documentElement]],sx)}ux.prototype=lx.prototype=(0,Se.Z)({constructor:ux,select:function(e){"function"!==typeof e&&(e=$b(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new ux(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){var t=e.apply(this,arguments);return null==t?[]:Qb(t)}}(e):Jb(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new ux(r,i)},selectChild:function(e){return this.select(null==e?rw:function(e){return function(){return nw.call(this.children,e)}}("function"===typeof e?e:tw(e)))},selectChildren:function(e){return this.selectAll(null==e?ow:function(e){return function(){return iw.call(this.children,e)}}("function"===typeof e?e:tw(e)))},filter:function(e){"function"!==typeof e&&(e=ew(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new ux(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,fw);var n=t?cw:lw,r=this._parents,i=this._groups;"function"!==typeof e&&(e=uw(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],d=f.length,h=Qb(e.call(c,c&&c.__data__,l,r)),p=h.length,m=s[l]=new Array(p),v=a[l]=new Array(p),g=u[l]=new Array(d);n(c,f,m,v,g,h,t);for(var y,b,w=0,x=0;w<p;++w)if(y=m[w]){for(w>=x&&(x=w+1);!(b=v[x])&&++x<p;);y._next=b||null}}return(a=new ux(a,r))._enter=s,a._exit=u,a},enter:function(){return new ux(this._enter||this._groups.map(aw),this._parents)},exit:function(){return new ux(this._exit||this._groups.map(aw),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){if(!(e instanceof ux))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new ux(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=dw);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new ux(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=xs(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=mw(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?gw:vw:"function"===typeof t?n.local?xw:ww:n.local?bw:yw)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?kw:"function"===typeof t?Mw:Sw)(e,t,null==n?"":n)):Tw(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ew:"function"===typeof t?Ow:Cw)(e,t)):this.node()[e]},classed:function(e,t){var n=Dw(e+"");if(arguments.length<2){for(var r=Nw(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?Fw:t?Rw:Iw)(n,t))},text:function(e){return arguments.length?this.each(null==e?Lw:("function"===typeof e?Bw:zw)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Zw:("function"===typeof e?Hw:Ww)(e)):this.node().innerHTML},raise:function(){return this.each(Yw)},lower:function(){return this.each(Uw)},append:function(e){var t="function"===typeof e?e:Gw(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Gw(e),r=null==t?Xw:"function"===typeof t?t:$b(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($w)},clone:function(e){return this.select(e?Kw:Qw)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Jw(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?tx:ex,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?ix:rx)(e,t))}},Symbol.iterator,ax);var cx=lx;function fx(e){return"string"===typeof e?new ux([[document.querySelector(e)]],[document.documentElement]):new ux([[e]],sx)}function dx(e){e.preventDefault(),e.stopImmediatePropagation()}function hx(e){var t=e.document.documentElement,n=fx(e).on("dragstart.drag",dx,!0);"onselectstart"in t?n.on("selectstart.drag",dx,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function px(e,t){var n=e.document.documentElement,r=fx(e).on("dragstart.drag",null);t&&(r.on("click.drag",dx,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function mx(e){return((e=Math.exp(e))+1/e)/2}var vx=function e(t,n,r){function i(e,i){var o,a,s=e[0],u=e[1],l=e[2],c=i[0],f=i[1],d=i[2],h=c-s,p=f-u,m=h*h+p*p;if(m<1e-12)a=Math.log(d/l)/t,o=function(e){return[s+e*h,u+e*p,l*Math.exp(t*e*a)]};else{var v=Math.sqrt(m),g=(d*d-l*l+r*m)/(2*l*n*v),y=(d*d-l*l-r*m)/(2*d*n*v),b=Math.log(Math.sqrt(g*g+1)-g),w=Math.log(Math.sqrt(y*y+1)-y);a=(w-b)/t,o=function(e){var r,i=e*a,o=mx(b),c=l/(n*v)*(o*(r=t*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+c*h,u+c*p,l*o/mx(t*i+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);function gx(e,t){if(e=function(e){for(var t;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var yx,bx,wx=0,xx=0,_x=0,kx=0,Sx=0,Mx=0,Tx="object"===typeof performance&&performance.now?performance:Date,Ex="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cx(){return Sx||(Ex(Ox),Sx=Tx.now()+Mx)}function Ox(){Sx=0}function Dx(){this._call=this._time=this._next=null}function Nx(e,t,n){var r=new Dx;return r.restart(e,t,n),r}function jx(){Sx=(kx=Tx.now())+Mx,wx=xx=0;try{!function(){Cx(),++wx;for(var e,t=yx;t;)(e=Sx-t._time)>=0&&t._call.call(null,e),t=t._next;--wx}()}finally{wx=0,function(){var e,t,n=yx,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:yx=t);bx=e,Px(r)}(),Sx=0}}function Ax(){var e=Tx.now(),t=e-kx;t>1e3&&(Mx-=t,kx=e)}function Px(e){wx||(xx&&(xx=clearTimeout(xx)),e-Sx>24?(e<1/0&&(xx=setTimeout(jx,e-Tx.now()-Mx)),_x&&(_x=clearInterval(_x))):(_x||(kx=Tx.now(),_x=setInterval(Ax,1e3)),wx=1,Ex(jx)))}function Rx(e,t,n){var r=new Dx;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}Dx.prototype=Nx.prototype={constructor:Dx,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Cx():+n)+(null==t?0:+t),this._next||bx===this||(bx?bx._next=this:yx=this,bx=this),this._call=e,this._time=n,Px()},stop:function(){this._call&&(this._call=null,this._time=1/0,Px())}};var Ix=Gb("start","end","cancel","interrupt"),Fx=[];function Lx(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return Rx(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(Rx((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Nx(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:Ix,tween:Fx,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function zx(e,t){var n=Zx(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Bx(e,t){var n=Zx(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Zx(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Wx(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function Hx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Yx,Ux=180/Math.PI,Vx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qx(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Ux,skewX:Math.atan(u)*Ux,scaleX:a,scaleY:s}}function Gx(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:Hx(e,i)},{i:u-2,x:Hx(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Hx(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Hx(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Hx(e,n)},{i:s-2,x:Hx(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var Xx=Gx((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Vx:qx(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),$x=Gx((function(e){return null==e?Vx:(Yx||(Yx=document.createElementNS("http://www.w3.org/2000/svg","g")),Yx.setAttribute("transform",e),(e=Yx.transform.baseVal.consolidate())?qx((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Vx)}),", ",")",")");function Qx(e,t){var n,r;return function(){var i=Bx(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function Kx(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Bx(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function Jx(e,t,n){var r=e._id;return e.each((function(){var e=Bx(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Zx(e,r).value[t]}}function e_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function t_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function n_(){}var r_=.7,i_=1.4285714285714286,o_="\\s*([+-]?\\d+)\\s*",a_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u_=/^#([0-9a-f]{3,8})$/,l_=new RegExp("^rgb\\("+[o_,o_,o_]+"\\)$"),c_=new RegExp("^rgb\\("+[s_,s_,s_]+"\\)$"),f_=new RegExp("^rgba\\("+[o_,o_,o_,a_]+"\\)$"),d_=new RegExp("^rgba\\("+[s_,s_,s_,a_]+"\\)$"),h_=new RegExp("^hsl\\("+[a_,s_,s_]+"\\)$"),p_=new RegExp("^hsla\\("+[a_,s_,s_,a_]+"\\)$"),m_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v_(){return this.rgb().formatHex()}function g_(){return this.rgb().formatRgb()}function y_(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?b_(t):3===n?new k_(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w_(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=l_.exec(e))?new k_(t[1],t[2],t[3],1):(t=c_.exec(e))?new k_(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f_.exec(e))?w_(t[1],t[2],t[3],t[4]):(t=d_.exec(e))?w_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h_.exec(e))?E_(t[1],t[2]/100,t[3]/100,1):(t=p_.exec(e))?E_(t[1],t[2]/100,t[3]/100,t[4]):m_.hasOwnProperty(e)?b_(m_[e]):"transparent"===e?new k_(NaN,NaN,NaN,0):null}function b_(e){return new k_(e>>16&255,e>>8&255,255&e,1)}function w_(e,t,n,r){return r<=0&&(e=t=n=NaN),new k_(e,t,n,r)}function x_(e){return e instanceof n_||(e=y_(e)),e?new k_((e=e.rgb()).r,e.g,e.b,e.opacity):new k_}function __(e,t,n,r){return 1===arguments.length?x_(e):new k_(e,t,n,null==r?1:r)}function k_(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S_(){return"#"+T_(this.r)+T_(this.g)+T_(this.b)}function M_(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function T_(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function E_(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new O_(e,t,n,r)}function C_(e){if(e instanceof O_)return new O_(e.h,e.s,e.l,e.opacity);if(e instanceof n_||(e=y_(e)),!e)return new O_;if(e instanceof O_)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new O_(a,s,u,e.opacity)}function O_(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function D_(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function N_(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}e_(n_,y_,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v_,formatHex:v_,formatHsl:function(){return C_(this).formatHsl()},formatRgb:g_,toString:g_}),e_(k_,__,t_(n_,{brighter:function(e){return e=null==e?i_:Math.pow(i_,e),new k_(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?r_:Math.pow(r_,e),new k_(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:S_,formatHex:S_,formatRgb:M_,toString:M_})),e_(O_,(function(e,t,n,r){return 1===arguments.length?C_(e):new O_(e,t,n,null==r?1:r)}),t_(n_,{brighter:function(e){return e=null==e?i_:Math.pow(i_,e),new O_(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?r_:Math.pow(r_,e),new O_(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new k_(D_(e>=240?e-240:e+120,i,r),D_(e,i,r),D_(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var j_=function(e){return function(){return e}};function A_(e,t){return function(n){return e+n*t}}function P_(e){return 1===(e=+e)?R_:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):j_(isNaN(t)?n:t)}}function R_(e,t){var n=t-e;return n?A_(e,n):j_(isNaN(e)?t:e)}var I_=function e(t){var n=P_(t);function r(e,t){var r=n((e=__(e)).r,(t=__(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=R_(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function F_(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=__(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}F_((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return N_((n-r/t)*t,a,i,o,s)}})),F_((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return N_((n-r/t)*t,i,o,a,s)}}));var L_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,z_=new RegExp(L_.source,"g");function B_(e,t){var n,r,i,o=L_.lastIndex=z_.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=L_.exec(e))&&(r=z_.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Hx(n,r)})),o=z_.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Z_(e,t){var n;return("number"===typeof t?Hx:t instanceof y_?I_:(n=y_(t))?(t=n,I_):B_)(e,t)}function W_(e){return function(){this.removeAttribute(e)}}function H_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Y_(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function U_(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function V_(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function q_(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function G_(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function X_(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function $_(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&X_(e,i)),n}return i._value=t,i}function Q_(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&G_(e,i)),n}return i._value=t,i}function K_(e,t){return function(){zx(this,e).delay=+t.apply(this,arguments)}}function J_(e,t){return t=+t,function(){zx(this,e).delay=t}}function ek(e,t){return function(){Bx(this,e).duration=+t.apply(this,arguments)}}function tk(e,t){return t=+t,function(){Bx(this,e).duration=t}}function nk(e,t){if("function"!==typeof t)throw new Error;return function(){Bx(this,e).ease=t}}function rk(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?zx:Bx;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var ik=cx.prototype.constructor;function ok(e){return function(){this.style.removeProperty(e)}}function ak(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sk(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&ak(e,o,n)),r}return o._value=t,o}function uk(e){return function(t){this.textContent=e.call(this,t)}}function lk(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&uk(r)),t}return r._value=e,r}var ck=0;function fk(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function dk(){return++ck}var hk=cx.prototype;fk.prototype=function(e){return cx().transition(e)}.prototype=(0,Se.Z)({constructor:fk,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=$b(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,Lx(f[d],t,n,d,f,Zx(s,n)));return new fk(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Jb(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=Zx(u,n),m=0,v=h.length;m<v;++m)(d=h[m])&&Lx(d,t,n,m,h,p);o.push(h),a.push(u)}return new fk(o,a,t,n)},filter:function(e){"function"!==typeof e&&(e=ew(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new fk(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new fk(a,this._parents,this._name,this._id)},selection:function(){return new ik(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=dk(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=Zx(a,t);Lx(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new fk(r,this._parents,e,n)},call:hk.call,nodes:hk.nodes,node:hk.node,size:hk.size,empty:hk.empty,each:hk.each,on:function(e,t){var n=this._id;return arguments.length<2?Zx(this.node(),n).on.on(e):this.each(rk(n,e,t))},attr:function(e,t){var n=mw(e),r="transform"===n?$x:Z_;return this.attrTween(e,"function"===typeof t?(n.local?q_:V_)(n,r,Jx(this,"attr."+e,t)):null==t?(n.local?H_:W_)(n):(n.local?U_:Y_)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=mw(e);return this.tween(n,(r.local?$_:Q_)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?Xx:Z_;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Tw(this,e),a=(this.style.removeProperty(e),Tw(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,ok(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Tw(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Tw(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,Jx(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=Bx(this,e),l=u.on,c=null==u.value[a]?o||(o=ok(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Tw(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,sk(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Jx(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,lk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Zx(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?Qx:Kx)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?K_:J_)(t,e)):Zx(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?ek:tk)(t,e)):Zx(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(nk(t,e)):Zx(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;Bx(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=Bx(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))}},Symbol.iterator,hk[Symbol.iterator]);var pk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function mk(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}cx.prototype.interrupt=function(e){return this.each((function(){Wx(this,e)}))},cx.prototype.transition=function(e){var t,n;e instanceof fk?(t=e._id,e=e._name):(t=dk(),(n=pk).time=Cx(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&Lx(a,e,t,l,s,n||mk(a,t));return new fk(r,this._parents,e,t)};var vk=function(e){return function(){return e}};function gk(e,t){var n=t.sourceEvent,r=t.target,i=t.transform,o=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function yk(e,t,n){this.k=e,this.x=t,this.y=n}yk.prototype={constructor:yk,scale:function(e){return 1===e?this:new yk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new yk(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var bk=new yk(1,0,0);function wk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return bk;return e.__zoom}function xk(e){e.stopImmediatePropagation()}function _k(e){e.preventDefault(),e.stopImmediatePropagation()}function kk(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function Sk(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Mk(){return this.__zoom||bk}function Tk(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ek(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ck(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}wk.prototype=yk.prototype;var Ok=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Dk="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,Nk="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),jk="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(Nk):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ak=["top","right","bottom","left","width","height","size","weight"],Pk="undefined"!==typeof MutationObserver,Rk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){jk(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Dk&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Pk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Dk&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=Ak.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ik=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Fk=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Nk},Lk=Yk(0,0,0,0);function zk(e){return parseFloat(e)||0}function Bk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+zk(e["border-"+n+"-width"])}),0)}function Zk(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Lk;var r=Fk(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=zk(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=zk(r.width),u=zk(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=Bk(r,"left","right")+o),Math.round(u+a)!==n&&(u-=Bk(r,"top","bottom")+a)),!function(e){return e===Fk(e).document.documentElement}(e)){var l=Math.round(s+o)-t,c=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(c)&&(u-=c)}return Yk(i.left,i.top,s,u)}var Wk="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Fk(e).SVGGraphicsElement}:function(e){return e instanceof Fk(e).SVGElement&&"function"===typeof e.getBBox};function Hk(e){return Dk?Wk(e)?function(e){var t=e.getBBox();return Yk(0,0,t.width,t.height)}(e):Zk(e):Lk}function Yk(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Uk=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yk(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Hk(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Vk=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Ik(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);Ik(this,{target:e,contentRect:n})},qk=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ok,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Fk(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Uk(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Fk(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Vk(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Gk="undefined"!==typeof WeakMap?new WeakMap:new Ok,Xk=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Rk.getInstance(),r=new qk(t,n,this);Gk.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Xk.prototype[e]=function(){var t;return(t=Gk.get(this))[e].apply(t,arguments)}}));var $k="undefined"!==typeof Nk.ResizeObserver?Nk.ResizeObserver:Xk,Qk=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},Kk=n(48573),Jk=n.n(Kk),eS=n(33038),tS=n.n(eS),nS={debounce:Jk(),throttle:tS()},rS=function(e){return"function"===typeof e},iS=function(){return"undefined"===typeof window},oS=function(e){return e instanceof Element||e instanceof HTMLDocument};function aS(e){return aS="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},aS(e)}function sS(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lS(e,t){return lS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lS(e,t)}function cS(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hS(e);if(t){var i=hS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fS(this,n)}}function fS(e,t){return!t||"object"!==aS(t)&&"function"!==typeof t?dS(e):t}function dS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hS(e){return hS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hS(e)}function pS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mS=function(n){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lS(e,t)}(s,n);var r,i,o,a=cS(s);function s(n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),pS(dS(r=a.call(this,n)),"cancelHandler",(function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)})),pS(dS(r),"rafClean",(function(){r.raf&&r.raf.cancel&&(r.raf.cancel(),r.raf=null)})),pS(dS(r),"attachObserver",(function(){var e=r.props.targetRef;e&&e.current&&(r.targetRef.current=e.current);var t=r.getElement();t&&(r.observableElement&&r.observableElement===t||(r.observableElement=t,r.resizeObserver.observe(t)))})),pS(dS(r),"getElement",(function(){var e=r.props,n=e.querySelector,i=e.targetDomEl;if(!iS()){if(n)return document.querySelector(n);if(i&&oS(i))return i;if(r.targetRef&&oS(r.targetRef.current))return r.targetRef.current;var o=(0,t.findDOMNode)(dS(r));if(o)switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}}})),pS(dS(r),"createUpdater",(function(){return r.rafClean(),r.raf=Qk((function(e){var t=e.width,n=e.height,i=r.props.onResize;rS(i)&&i(t,n),r.setState({width:t,height:n})})),r.raf})),pS(dS(r),"createResizeHandler",(function(e){var t=r.state,n=t.width,i=t.height,o=r.props,a=o.handleWidth,s=o.handleHeight;if(a||s){var u=r.createUpdater();e.forEach((function(e){var t=e&&e.contentRect||{},o=t.width,l=t.height,c=a&&n!==o||s&&i!==l;!r.skipOnMount&&c&&!iS()&&u({width:o,height:l}),r.skipOnMount=!1}))}})),pS(dS(r),"getRenderType",(function(){var t=r.props,n=t.render,i=t.children;return rS(n)?"renderProp":rS(i)?"childFunction":(0,e.isValidElement)(i)?"child":Array.isArray(i)?"childArray":"parent"}));var i=n.skipOnMount,o=n.refreshMode,u=n.refreshRate,l=n.refreshOptions;r.state={width:void 0,height:void 0},r.skipOnMount=i,r.raf=null,r.unmounted=!1,r.targetRef=(0,e.createRef)(),r.observableElement=null;var c=function(e){return nS[e]}(o);return r.resizeHandler=c?c(r.createResizeHandler,u,l):r.createResizeHandler,r.resizeObserver=new $k(r.resizeHandler),r}return r=s,i=[{key:"componentDidMount",value:function(){this.attachObserver()}},{key:"componentDidUpdate",value:function(){this.attachObserver()}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(),this.rafClean(),this.cancelHandler(),this.unmounted=!0}},{key:"render",value:function(){var t=this.props,n=t.render,r=t.children,i=t.nodeType,o=this.state,a={width:o.width,height:o.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n(a);case"childFunction":return r(a);case"child":if("string"===typeof r.type){var s=sS(a,["targetRef"]);return(0,e.cloneElement)(r,s)}return(0,e.cloneElement)(r,a);case"childArray":return r.map((function(t){return!!t&&(0,e.cloneElement)(t,a)}));default:return e.createElement(i,null)}}}],i&&uS(r.prototype,i),o&&uS(r,o),s}(e.PureComponent);mS.defaultProps={handleWidth:!0,handleHeight:!0,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,refreshOptions:void 0,querySelector:null,targetDomEl:null,targetRef:null,onResize:null,render:void 0,children:null,nodeType:"div"};var vS=mS;function gS(e){return gS="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},gS(e)}function yS(){return yS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yS.apply(this,arguments)}function bS(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _S(e,t,n){return t&&xS(e.prototype,t),n&&xS(e,n),e}function kS(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&SS(e,t)}function SS(e,t){return SS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},SS(e,t)}function MS(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CS(e);if(t){var i=CS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return TS(this,n)}}function TS(e,t){return!t||"object"!==gS(t)&&"function"!==typeof t?ES(e):t}function ES(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CS(e){return CS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},CS(e)}function OS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DS=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handleWidth:!0,handleHeight:!0},r=function(r){kS(o,r);var i=MS(o);function o(){var t;wS(this,o);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return OS(ES(t=i.call.apply(i,[this].concat(r))),"ref",(0,e.createRef)()),t}return _S(o,[{key:"render",value:function(){var r=this.props,i=r.forwardedRef,o=bS(r,["forwardedRef"]),a=i||this.ref;return e.createElement(vS,yS({},n,{targetRef:a}),e.createElement(t,yS({targetRef:a},o)))}}]),o}(e.Component);function i(t,n){return e.createElement(r,yS({},t,{forwardedRef:n}))}var o=t.displayName||t.name;return i.displayName="withResizeDetector(".concat(o,")"),r.defaultProps={forwardedRef:void 0},(0,e.forwardRef)(i)},NS=n(81205),jS=n.n(NS),AS=n(59707),PS=n(30836),RS=n(79112),IS=function(t){a(o,t);var n=d(o);function o(t){var i;return r(this,o),(i=n.call(this,t)).highlightSelectedNode=function(){var e,t=i.props.dag.graph,n=i.props.dag.resolveTaskResult(i.props.selectedTask),r=n&&(n.referenceTaskName||n.workflowTask.taskReferenceName);if(r)if(i.graph.hasNode(r))e=r;else{if(!t.hasNode(r))throw new Error("Assertion failed. ref not found");var o=_t().first(t.predecessors(r)),a=t.node(o).type;console.assert("FORK_JOIN_DYNAMIC"===a||"DO_WHILE"===a),e=i.graph.successors(o).find((function(e){return e.includes("DF_TASK_PLACEHOLDER")}))}else e=null;var s=(0,c.Z)(i).inner;s.selectAll("g.node").classed("selected",!1),e&&s.select("g[id='".concat(e,"']")).classed("selected",!0)},i.zoomInOut=function(e){var t=(0,c.Z)(i),n=t.svg,r=t.inner,o=wk(r.node()),a="in"===e?1.25*o.k:o.k/1.25;i.zoom.transform(n,bk.scale(a));var s=r.node().getBoundingClientRect().height;n.attr("height",Math.max(s+30,600))},i.zoomHome=function(){var e=(0,c.Z)(i),t=e.svg,n=e.inner,r=t.node().getBoundingClientRect().width,o=i.graph.graph().width;i.zoom.transform(t,bk.translate(r/2-o/2,0));var a=n.node().getBoundingClientRect().height;t.attr("height",Math.max(a+30,600))},i.zoomToFit=function(){var e=(0,c.Z)(i),t=e.svg,n=e.inner,r=t.node().getBoundingClientRect().width,o=Math.min(r/i.graph.graph().width,1);i.zoom.transform(t,bk.scale(o));var a=n.nodes()[0].getBoundingClientRect().height;t.attr("height",Math.max(a+30,600))},i.collapseDfChildren=function(e,t){var n=i.graph,r=i.props.dag.graph,o=t.map((function(e){return r.node(e).status})).reduce((function(e,t){var n={total:e.total+1};return"COMPLETED"===t?n.success=e.success+1:"IN_PROGRESS"===t||"SCHEDULED"===t?n.inProgress=e.inProgress+1:"CANCELED"===t&&(n.canceled=e.canceled+1),Je(Je({},e),n)}),{success:0,inProgress:0,canceled:0,total:0}),a=e+"_DF_TASK_PLACEHOLDER",s={name:a,ref:a,type:"DF_TASK_PLACEHOLDER",status:o.success===o.total?"COMPLETED":o.inProgress?"IN_PROGRESS":"FAILED",firstDfRef:_t().first(t),tally:o};n.setNode(a,s);var u,l=new Set,c=xs(t);try{for(c.s();!(u=c.n()).done;){var f=u.value;n.successors(f).forEach((function(e){return l.add(e)})),n.removeNode(f)}}catch(p){c.e(p)}finally{c.f()}n.setEdge(e,a,{executed:!0}),console.assert(1===l.size);var d=l.values().next().value,h=r.node(d);n.setEdge(a,d,h.status?{executed:!0}:void 0)},i.drawGraph=function(){i.inner&&i.inner.remove(),i.inner=i.svg.append("g");var e=(0,c.Z)(i),t=e.svg,n=e.inner,r=new Kd.graphlib.Graph({compound:!0}).setGraph({nodesep:15,ranksep:30});i.graph=r,i.barNodes=[];var o,a=i.props.dag.graph,s=xs(a.nodes());try{for(s.s();!(o=s.n()).done;){var u=o.value;r.setNode(u)}}catch(Z){s.e(Z)}finally{s.f()}var l,f=xs(a.edges());try{for(f.s();!(l=f.n()).done;){var d=l.value,h=d.v,p=d.w;r.setEdge(h,p)}}catch(Z){f.e(Z)}finally{f.f()}var m,v=a.nodes().filter((function(e){return"FORK_JOIN_DYNAMIC"===a.node(e).type})),g=xs(v);try{for(g.s();!(m=g.n()).done;){var y=m.value,b=a.successors(y);b.length>2&&i.collapseDfChildren(y,b)}}catch(Z){g.e(Z)}finally{g.f()}var w,x=a.nodes().filter((function(e){return"DO_WHILE"===a.node(e).type})),_=xs(x);try{for(_.s();!(w=_.n()).done;){var k=w.value,S=a.node(k);if(_t().get(S,"status")){var M=a.successors(k).map((function(e){return a.node(e)})).filter((function(e){return"DO_WHILE_END"!==e.type})).map((function(e){return e.ref}));M.length>0&&i.collapseDfChildren(k,M)}}}catch(Z){_.e(Z)}finally{_.f()}var T,E=xs(r.nodes());try{for(E.s();!(T=E.n()).done;){var C=T.value;r.setNode(C,i.renderVertex(C))}}catch(Z){E.e(Z)}finally{E.f()}var O,D=xs(r.edges());try{for(D.s();!(O=D.n()).done;){var N=O.value,j=a.edge(N)||r.edge(N),A=_t().get(j,"caseValue"),P=_t().get(j,"type"),R=[],I=void 0,F=void 0;if("loop"===P?(I="LOOP",R.push("reverse")):I=A||(null===A?"default":""),i.props.executionMode)_t().get(j,"executed")?(R.push("executed"),F=""):(R.push("dimmed"),F="fill: #ccc");r.setEdge(N.v,N.w,{label:I,labelStyle:F,class:R.join(" ")})}}catch(Z){D.e(Z)}finally{D.f()}i.renderer(n,r);var L,z=xs(i.barNodes);try{for(z.s();!(L=z.n()).done;){var B=L.value;i.expandBar(B)}}catch(Z){z.e(Z)}finally{z.f()}t.attr("height",r.graph().height+30),function(e){return"string"===typeof e?new Rg([document.querySelectorAll(e)],[document.documentElement]):new Rg([null==e?[]:Sv(e)],Pg)}("path.path").attr("marker-end",""),n.selectAll("g.node").on("click",i.handleClick)},i.getTaskRef=function(e){var t,n,r,i;return navigator.userAgent.toLowerCase().indexOf("firefox")>-1||navigator.userAgent.toLowerCase().indexOf("chrome")>-1?null===(r=e.target)||void 0===r||null===(i=r.parentNode)||void 0===i?void 0:i.id:(null===e||void 0===e||null===(t=e.path[1])||void 0===t?void 0:t.id)||(null===e||void 0===e||null===(n=e.path[2])||void 0===n?void 0:n.id)},i.handleClick=function(e){var t=e.composedPath()[1].id||e.composedPath()[2].id,n=i.graph.node(t);if("DF_TASK_PLACEHOLDER"===n.type)i.props.onClick&&i.props.onClick({ref:n.firstDfRef});else{if("DF_EMPTY_PLACEHOLDER"===n.type||"TERMINAL"===n.type)return null;i.props.onClick&&i.props.onClick({ref:t})}},i.renderVertex=function(e){var t=i.props.dag.graph,n=i.graph,r=t.node(e)||n.node(e),o={id:r.ref,class:"type-".concat(r.type),type:r.type};switch(r.type){case"SUB_WORKFLOW":o.label="".concat(r.ref,"\n(").concat(r.name,")");break;case"TERMINAL":o.label=r.name,o.shape="circle";break;case"TERMINATE":o.label="".concat(r.ref,"\n(terminate)"),o.shape="circle";break;case"FORK_JOIN":case"FORK_JOIN_DYNAMIC":o=LS(r,"down"),i.barNodes.push(r.ref);break;case"JOIN":case"EXCLUSIVE_JOIN":o=LS(r,"up"),i.barNodes.push(r.ref);break;case"DECISION":case"SWITCH":o.label=r.ref,o.shape="diamond",o.height=40;break;case"DF_EMPTY_PLACEHOLDER":o.label=r.status?"No tasks spawned":"Dynamically spawned tasks",o.shape="stack";break;case"DF_TASK_PLACEHOLDER":o.label="".concat(r.tally.success," of ").concat(r.tally.total," tasks succeeded"),r.tally.inProgress&&(o.label+="\n".concat(r.tally.inProgress," pending")),r.tally.canceled&&(o.label+="\n".concat(r.tally.canceled," canceled")),o.firstDfRef=r.firstDfRef,o.shape="stack";break;case"DO_WHILE":case"DO_WHILE_END":(o=LS(r,"down")).label="".concat(o.label," [DO_WHILE]"),i.barNodes.push(r.ref);break;default:o.label="".concat(r.ref,"\n(").concat(r.name,")"),o.shape="rect"}return _t().size(r.taskResults)>1&&(o.label+="\n".concat(r.taskResults.length," Attempts")),i.props.executionMode&&(r.status?"TERMINAL"!==r.type&&(o.class+=" status_".concat(r.status)):o.class+=" dimmed"),o},i.renderer=new Kd.render,i.renderer.shapes().bar=zS,i.renderer.shapes().stack=BS,i.svgRef=e.createRef(),i}return(0,i.Z)(o,[{key:"componentDidUpdate",value:function(e){e.dag!==this.props.dag&&(this.drawGraph(),this.zoomHome()),e.selectedTask!==this.props.selectedTask&&this.highlightSelectedNode()}},{key:"componentDidMount",value:function(){var e=this;this.svg=function(e){return"string"===typeof e?new Rg([[document.querySelector(e)]],[document.documentElement]):new Rg([[e]],Pg)}(this.svgRef.current),this.zoom=function(){var e,t,n,r=kk,i=Sk,o=Ck,a=Tk,s=Ek,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,f=vx,d=Gb("start","zoom","end"),h=500,p=0,m=10;function v(e){e.property("__zoom",Mk).on("wheel.zoom",k).on("mousedown.zoom",S).on("dblclick.zoom",M).filter(s).on("touchstart.zoom",T).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new yk(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new yk(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=x(e,o).event(r),s=i.apply(e,o),u=null==n?b(s):"function"===typeof n?n.apply(e,o):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=e.__zoom,d="function"===typeof t?t.apply(e,o):t,h=f(c.invert(u).concat(l/c.k),d.invert(u).concat(l/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=l/t[2];e=new yk(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=x(this,n).event(e),c=this.__zoom,f=Math.max(u[0],Math.min(u[1],c.k*Math.pow(2,a.apply(this,arguments)))),d=gx(e);if(s.wheel)s.mouse[0][0]===d[0]&&s.mouse[0][1]===d[1]||(s.mouse[1]=c.invert(s.mouse[0]=d)),clearTimeout(s.wheel);else{if(c.k===f)return;s.mouse=[d,c.invert(d)],Wx(this),s.start()}_k(e),s.wheel=setTimeout(h,150),s.zoom("mouse",o(y(g(c,f),s.mouse[0],s.mouse[1]),s.extent,l))}function h(){s.wheel=null,s.end()}}function S(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=x(this,i,!0).event(e),u=fx(e.view).on("mousemove.zoom",m,!0).on("mouseup.zoom",v,!0),c=gx(e,f),f=e.currentTarget,d=e.clientX,h=e.clientY;hx(e.view),xk(e),s.mouse=[c,this.__zoom.invert(c)],Wx(this),s.start()}function m(e){if(_k(e),!s.moved){var t=e.clientX-d,n=e.clientY-h;s.moved=t*t+n*n>p}s.event(e).zoom("mouse",o(y(s.that.__zoom,s.mouse[0]=gx(e,f),s.mouse[1]),s.extent,l))}function v(e){u.on("mousemove.zoom mouseup.zoom",null),px(e.view,s.moved),_k(e),s.event(e).end()}}function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,u=gx(e.changedTouches?e.changedTouches[0]:e,this),f=s.invert(u),d=s.k*(e.shiftKey?.5:2),h=o(y(g(s,d),u,f),i.apply(this,n),l);_k(e),c>0?fx(this).transition().duration(c).call(w,h,u,e):fx(this).call(v.transform,h,u,e)}}function T(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,l,c,f=n.touches,d=f.length,p=x(this,o,n.changedTouches.length===d).event(n);for(xk(n),u=0;u<d;++u)c=[c=gx(l=f[u],this),this.__zoom.invert(c),l.identifier],p.touch0?p.touch1||p.touch0[2]===c[2]||(p.touch1=c,p.taps=0):(p.touch0=c,s=!0,p.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(p.taps<2&&(t=c[0],e=setTimeout((function(){e=null}),h)),Wx(this),p.start())}}function E(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a,s,u,c=x(this,n).event(e),f=e.changedTouches,d=f.length;for(_k(e),i=0;i<d;++i)s=gx(a=f[i],this),c.touch0&&c.touch0[2]===a.identifier?c.touch0[0]=s:c.touch1&&c.touch1[2]===a.identifier&&(c.touch1[0]=s);if(a=c.that.__zoom,c.touch1){var h=c.touch0[0],p=c.touch0[1],m=c.touch1[0],v=c.touch1[1],b=(b=m[0]-h[0])*b+(b=m[1]-h[1])*b,w=(w=v[0]-p[0])*w+(w=v[1]-p[1])*w;a=g(a,Math.sqrt(b/w)),s=[(h[0]+m[0])/2,(h[1]+m[1])/2],u=[(p[0]+v[0])/2,(p[1]+v[1])/2]}else{if(!c.touch0)return;s=c.touch0[0],u=c.touch0[1]}c.zoom("touch",o(y(a,s,u),c.extent,l))}}function C(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,u=x(this,i).event(e),l=e.changedTouches,c=l.length;for(xk(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),h),a=0;a<c;++a)s=l[a],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=gx(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<m)){var f=fx(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",Mk),e!==i?w(e,t,n,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){return this.__zoom.k*("function"===typeof t?t.apply(this,arguments):t)}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,a=null==n?b(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),u="function"===typeof t?t.apply(this,arguments):t;return o(y(g(r,u),a,s),e,l)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return o(bk.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,l)}),r,a)},_.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=fx(this.that).datum();d.call(e,this.that,new gk(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:d}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:vk(+e),v):a},v.filter=function(e){return arguments.length?(r="function"===typeof e?e:vk(!!e),v):r},v.touchable=function(e){return arguments.length?(s="function"===typeof e?e:vk(!!e),v):s},v.extent=function(e){return arguments.length?(i="function"===typeof e?e:vk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):i},v.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],v):[u[0],u[1]]},v.translateExtent=function(e){return arguments.length?(l[0][0]=+e[0][0],l[1][0]=+e[1][0],l[0][1]=+e[0][1],l[1][1]=+e[1][1],v):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},v.constrain=function(e){return arguments.length?(o=e,v):o},v.duration=function(e){return arguments.length?(c=+e,v):c},v.interpolate=function(e){return arguments.length?(f=e,v):f},v.on=function(){var e=d.on.apply(d,arguments);return e===d?v:e},v.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,v):Math.sqrt(p)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}().filter((function(e){return"wheel"===e.type?e.ctrlKey:"dblclick"!==e.type&&(!e.ctrlKey&&!e.button)})).on("zoom",(function(t){e.inner.attr("transform",t.transform)})),this.zoom(this.svg),this.drawGraph(),this.highlightSelectedNode(),this.zoomHome()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=t.className;return(0,Xe.jsxs)("div",{style:n,className:"graphWrapper ".concat(r||""),children:[(0,Xe.jsxs)(Te,{children:[(0,Xe.jsx)(Ha,{onClick:function(){return e.zoomInOut("in")},children:(0,Xe.jsx)(AS.Z,{})}),(0,Xe.jsx)(Ha,{onClick:function(){return e.zoomInOut("out")},children:(0,Xe.jsx)(PS.Z,{})}),(0,Xe.jsx)(Ha,{onClick:this.zoomHome,children:(0,Xe.jsx)(RS.Z,{})}),(0,Xe.jsx)(Ha,{onClick:this.zoomToFit,children:(0,Xe.jsx)(Xd.Z,{})}),(0,Xe.jsx)("span",{children:"Shortcut: Ctrl + scroll to zoom"})]}),(0,Xe.jsx)("svg",{ref:this.svgRef,className:"graphSvg",children:(0,Xe.jsxs)("defs",{children:[(0,Xe.jsx)("filter",{id:"brightness",children:(0,Xe.jsxs)("feComponentTransfer",{children:[(0,Xe.jsx)("feFuncR",{type:"linear",slope:"0.9"}),(0,Xe.jsx)("feFuncG",{type:"linear",slope:"0.9"}),(0,Xe.jsx)("feFuncB",{type:"linear",slope:"0.9"})]})}),(0,Xe.jsxs)("filter",{id:"dropShadow",height:"300%",width:"300%",x:"-75%",y:"-75%",children:[(0,Xe.jsx)("feMorphology",{operator:"dilate",radius:"4",in:"SourceAlpha",result:"thicken"}),(0,Xe.jsx)("feGaussianBlur",{in:"thicken",stdDeviation:"7",result:"blurred"}),(0,Xe.jsx)("feFlood",{floodColor:"rgb(0,122,255)",result:"glowColor"}),(0,Xe.jsx)("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlow_colored"}),(0,Xe.jsxs)("feMerge",{children:[(0,Xe.jsx)("feMergeNode",{in:"softGlow_colored"}),(0,Xe.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,Xe.jsx)("marker",{id:"endarrow",markerWidth:"8",markerHeight:"6",refX:"8",refY:"3",orient:"auto",markerUnits:"strokeWidth",children:(0,Xe.jsx)("polygon",{points:"0 0, 8 3, 0 6"})}),(0,Xe.jsx)("marker",{id:"startarrow",markerWidth:"8",markerHeight:"6",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",children:(0,Xe.jsx)("polygon",{points:"8 0, 8 6, 0 3"})}),(0,Xe.jsx)("marker",{id:"endarrow-dimmed",markerWidth:"8",markerHeight:"6",refX:"8",refY:"3",orient:"auto",markerUnits:"strokeWidth",stroke:"#c8c8c8",fill:"#c8c8c8",children:(0,Xe.jsx)("polygon",{points:"0 0, 8 3, 0 6"})}),(0,Xe.jsx)("marker",{id:"startarrow-dimmed",markerWidth:"8",markerHeight:"6",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",stroke:"#c8c8c8",fill:"#c8c8c8",children:(0,Xe.jsx)("polygon",{points:"8 0, 8 6, 0 3"})})]})})]})}},{key:"expandBar",value:function(e){var t,n=this,r=this.graph.node(e);t="down"===r.fanDir?this.graph.outEdges(e).map((function(e){var t=jS()(n.graph.edge(e).elem.querySelector("path").getAttribute("d"));return _t().first(t)})):"bidir"===r.fanDir?this.graph.inEdges(e).map((function(e){var t=jS()(n.graph.edge(e).elem.querySelector("path").getAttribute("d"));return _t().last(t)})):this.graph.inEdges(e).map((function(e){var t=jS()(n.graph.edge(e).elem.querySelector("path").getAttribute("d"));return _t().last(t)}));var i,o=r.elem.getBBox().width,a=r.elem.transform.baseVal[0].matrix.e,s=function(e){return e.transform.baseVal[0].matrix.f}(r.elem),u=r.x-o/2,l=r.x+o/2,c=xs(t);try{for(c.s();!(i=c.n()).done;){var f=i.value,d=f[1]-50,h=f[1]+50;h>l&&(l=h),d<u&&(u=d)}}catch(w){c.e(w)}finally{c.f()}u<0&&(l=l-u+50,u=-50),a=u,r.elem.setAttribute("transform","translate(".concat(a,", ").concat(s,")"));var p=r.elem.querySelector("rect"),m=p.transform.baseVal[0].matrix.f,v=l-u;p.removeAttribute("transform"),p.setAttribute("y",m),p.setAttribute("width",v);var g=r.elem.querySelector("g.label > g"),y=0+(v-g.getBBox().width)/2,b=g.transform.baseVal[0].matrix.f;g.setAttribute("transform","translate(".concat(y,", ").concat(b,")"))}}]),o}(e.Component),FS=DS(IS);function LS(e,t){return{id:e.ref,type:e.type,fanDir:t,class:"bar type-".concat(e.type),shape:"bar",labelStyle:"font-size:11px",padding:4,label:"".concat(e.name," (").concat(e.aliasForRef||e.ref,")")}}function zS(e,t,n){var r=e.insert("g",":first-child");return r.insert("rect").attr("width",t.width).attr("height",t.height).attr("transform","translate(".concat(-t.width/2,", ").concat(-t.height/2,")")),n.intersect=function(e){return{x:"down"===n.fanDir&&e.y>n.y||"up"===n.fanDir&&e.y<n.y?e.x:Kd.intersect.rect(n,e).x,y:e.y<n.y?n.y-t.height/2:n.y+t.height/2}},r}function BS(e,t,n){var r=e.insert("g",":first-child");return r.insert("rect").attr("width",t.width).attr("height",t.height).attr("transform","translate(".concat(-t.width/2-10,", ").concat(-t.height/2-10,")")),r.insert("rect").attr("width",t.width).attr("height",t.height).attr("transform","translate(".concat(-t.width/2-5,", ").concat(-t.height/2-5,")")),r.insert("rect").attr("width",t.width).attr("height",t.height).attr("transform","translate(".concat(-t.width/2,", ").concat(-t.height/2,")")),n.intersect=function(e){var t=Kd.intersect.rect(n,e);return t.y<n.y&&(t.y-=5),t.y>=n.y&&(t.y-=10),t},r}var ZS=(0,me.Z)({taskWrapper:{overflowY:"auto",padding:30,height:"100%"}});function WS(t){var n=t.execution,r=t.dag,i=t.selectedTask,o=t.setSelectedTask,a=(0,e.useState)(0),s=(0,wt.Z)(a,2),u=s[0],l=s[1],c=ZS();return(0,Xe.jsx)("div",{className:c.taskWrapper,children:(0,Xe.jsxs)(ui,{children:[(0,Xe.jsxs)(Mo,{value:u,contextual:!0,children:[(0,Xe.jsx)(To,{label:"Diagram",onClick:function(){return l(0)}}),(0,Xe.jsx)(To,{label:"Task List",onClick:function(){return l(1)}}),(0,Xe.jsx)(To,{label:"Timeline",onClick:function(){return l(2)}})]}),0===u&&(0,Xe.jsx)(FS,{selectedTask:i,executionMode:!0,dag:r,onClick:o}),1===u&&(0,Xe.jsx)(Qd,{workflowId:n.workflowId,selectedTask:i,tasks:n.tasks,dag:r,onClick:o}),2===u&&(0,Xe.jsx)($d,{selectedTask:i,tasks:n.tasks,dag:r,onClick:o})]})})}var HS=(0,me.Z)({paper:{margin:30},wrapper:{overflowY:"auto"}});function YS(e){var t=e.execution,n=HS(),r=[{label:"Workflow ID",value:t.workflowId},{label:"Status",value:t.status},{label:"Version",value:t.workflowVersion},{label:"Start Time",value:t.startTime,type:"date"},{label:"End Time",value:t.endTime,type:"date"},{label:"Duration",value:t.endTime-t.startTime,type:"duration"}];return t.parentWorkflowId&&r.push({label:"Parent Workflow ID",value:(0,Xe.jsx)(yt,{newTab:!0,path:"/execution/".concat(t.parentWorkflowId),children:t.parentWorkflowId})}),t.parentWorkflowTaskId&&r.push({label:"Parent Task ID",value:t.parentWorkflowTaskId}),t.reasonForIncompletion&&r.push({label:"Reason for Incompletion",value:t.reasonForIncompletion}),(0,Xe.jsx)("div",{className:n.wrapper,children:(0,Xe.jsx)(ui,{className:n.paper,children:(0,Xe.jsx)(Rl,{data:r})})})}var US=(0,me.Z)({paper:{margin:30,flex:1},wrapper:{flex:1,display:"flex",flexDirection:"column"}});function VS(e){var t=e.execution,n=US();return(0,Xe.jsx)("div",{className:n.wrapper,children:(0,Xe.jsx)(ui,{className:n.paper,children:(0,Xe.jsx)(Vc,{label:"Unabridged Workflow JSON",src:t})})})}var qS=(0,me.Z)({wrapper:{margin:30,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},column:{display:"flex",flexDirection:"row",gap:15,flex:2,marginBottom:15,overflow:"hidden"},paper:{flex:1,overflow:"hidden"}});function GS(e){var t=e.execution,n=qS();return(0,Xe.jsxs)("div",{className:n.wrapper,children:[(0,Xe.jsxs)("div",{className:n.column,children:[(0,Xe.jsx)(ui,{className:n.paper,children:(0,Xe.jsx)(Vc,{className:n.json,src:t.input,label:"Input"})}),(0,Xe.jsx)(ui,{className:n.paper,children:(0,Xe.jsx)(Vc,{className:n.json,src:t.output,label:"Output"})})]}),(0,Xe.jsx)(ui,{className:n.paper,children:(0,Xe.jsx)(Vc,{className:n.json,src:t.variables,label:"Variables"})})]})}var XS=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=(0,ve.Z)(t,["classes","className"]),a=e.useContext(wr);return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(r.root,i,"flex-start"===a.alignItems&&r.alignItemsFlexStart),ref:n},o))})),$S=(0,ye.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(XS),QS=n(37714),KS=n(72850),JS=n(40587),eM=n(23824),tM=n(7553),nM=n(9557),rM=(0,me.Z)({terminate:{color:"red"}});function iM(e){var t=e.execution,n=e.triggerReload,r=rM(),i=t.workflowId,o=t.workflowDefinition,a=function(e){var t=e.workflowId,n=e.onSuccess;return hf("/workflow/".concat(t,"/restart"),"post",{onSuccess:n})}({workflowId:i,onSuccess:p}),s=function(e){var t=e.workflowId,n=e.onSuccess;return hf("/workflow/".concat(t,"/restart?useLatestDefinitions=true"),"post",{onSuccess:n})}({workflowId:i,onSuccess:p}),u=function(e){var t=e.workflowId,n=e.onSuccess;return hf("/workflow/".concat(t,"/retry?resumeSubworkflowTasks=false"),"post",{onSuccess:n})}({workflowId:i,onSuccess:p}),l=function(e){var t=e.workflowId,n=e.onSuccess;return hf("/workflow/".concat(t,"/retry?resumeSubworkflowTasks=true"),"post",{onSuccess:n})}({workflowId:i,onSuccess:p}),c=function(e){var t=e.workflowId,n=e.onSuccess,r=cf();return(0,lf.useMutation)((function(e){var n=_t().get(e,"reason"),i=new Tf("/workflow/".concat(t));return n&&i.search.append("reason",n),ff(i.toString(),r,{method:"delete",headers:{"Content-Type":"application/json"}})}),{onSuccess:n})}({workflowId:i,onSuccess:p}),f=function(e){var t=e.workflowId,n=e.onSuccess;return hf("/workflow/".concat(t,"/resume"),"put",{onSuccess:n})}({workflowId:i,onSuccess:p}),d=function(e){var t=e.workflowId,n=e.onSuccess;return hf("/workflow/".concat(t,"/pause"),"put",{onSuccess:n})}({workflowId:i,onSuccess:p}),h=o.restartable;function p(){n()}var m=[];return["COMPLETED","FAILED","TIMED_OUT","TERMINATED"].includes(t.status)&&h&&(m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{children:(0,Xe.jsx)(JS.Z,{})}),(0,Xe.jsx)(zs,{children:"Restart with Current Definitions"})]}),handler:function(){return a.mutate()}}),m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{children:(0,Xe.jsx)(nM.Z,{})}),(0,Xe.jsx)(zs,{children:"Restart with Latest Definitions"})]}),handler:function(){return s.mutate()}})),"RUNNING"===t.status&&m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{children:(0,Xe.jsx)(KS.Z,{})}),(0,Xe.jsx)(zs,{children:"Pause"})]}),handler:function(){return d.mutate()}}),"PAUSED"===t.status&&m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{children:(0,Xe.jsx)(eM.Z,{})}),(0,Xe.jsx)(zs,{children:"Resume"})]}),handler:function(){return f.mutate()}}),["FAILED","TIMED_OUT","TERMINATED"].includes(t.status)&&m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{children:(0,Xe.jsx)(tM.Z,{})}),(0,Xe.jsx)(zs,{children:"Retry - From failed task"})]}),handler:function(){return u.mutate()}}),["FAILED","TIMED_OUT","TERMINATED"].includes(t.status)&&t.tasks.find((function(e){return"SUB_WORKFLOW"===e.workflowTask.type&&("FAILED"===(t=e.status)||"FAILED_WITH_TERMINAL_ERROR"===t||"TIMED_OUT"===t||"CANCELED"===t);var t}))&&m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{children:(0,Xe.jsx)(tM.Z,{})}),(0,Xe.jsx)(zs,{children:"Retry - Resume failed subworkflow"})]}),handler:function(){return l.mutate()}}),["RUNNING","FAILED","TIMED_OUT","PAUSED"].includes(t.status)&&(m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{className:r.terminate,children:(0,Xe.jsx)(QS.Z,{})}),(0,Xe.jsx)(zs,{className:r.terminate,children:"Terminate"})]}),handler:function(){return c.mutate()}}),m.push({label:(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)($S,{className:r.terminate,children:(0,Xe.jsx)(QS.Z,{})}),(0,Xe.jsx)(zs,{className:r.terminate,children:"Terminate with Reason"})]}),handler:function(){var e=window.prompt("Termination Reason","");e&&c.mutate({reason:e})}})),(0,Xe.jsx)(Ir,{options:m,children:"Actions"})}var oM=n(33352),aM=n(14684),sM=e.createContext(null);function uM(t){var n=t.children,r=t.value,i=function(){var t=e.useState(null),n=t[0],r=t[1];return e.useEffect((function(){r("mui-p-".concat(Math.round(1e5*Math.random())))}),[]),n}(),o=e.useMemo((function(){return{idPrefix:i,value:r}}),[i,r]);return e.createElement(sM.Provider,{value:o},n)}var lM=e.forwardRef((function(t,n){var r=t.children,i=t.className,o=t.classes,a=t.value,s=(0,ve.Z)(t,["children","className","classes","value"]),u=e.useContext(sM);if(null===u)throw new TypeError("No TabContext provided");var l=function(e,t){return null===e.idPrefix?null:"".concat(e.idPrefix,"-P-").concat(t)}(u,a),c=function(e,t){return null===e.idPrefix?null:"".concat(e.idPrefix,"-T-").concat(t)}(u,a);return e.createElement("div",(0,p.Z)({"aria-labelledby":c,className:(0,ge.Z)(o.root,i),hidden:a!==u.value,id:l,ref:n,role:"tabpanel"},s),a===u.value&&r)})),cM=(0,ye.Z)((function(e){return{root:{padding:e.spacing(3)}}}),{name:"MuiTabPanel"})(lM);function fM(t){var n=t.taskResult,r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=(0,e.useState)((new Date).getTime()),i=(0,wt.Z)(r,2),o=i[0],a=i[1];return(0,e.useEffect)((function(){var e=t&&setInterval((function(){return a((new Date).getTime())}),n);return function(){return clearInterval(e)}}),[n,a,t]),o}(),i=[{label:"Task Type",value:n.workflowTask.type},{label:"Status",value:n.status||"Not executed"},{label:"Task Name",value:n.workflowTask.name},{label:"Task Reference",value:n.referenceTaskName||n.workflowTask.aliasForRef||n.workflowTask.taskReferenceName}];return n.domain&&i.push({label:"Domain",value:n.domain}),n.taskId&&i.push({label:"Task Execution ID",value:n.taskId}),_t().isFinite(n.retryCount)&&i.push({label:"Retry Count",value:n.retryCount}),n.scheduledTime&&i.push({label:"Scheduled Time",value:n.scheduledTime>0&&n.scheduledTime,type:"date-ms"}),n.startTime&&i.push({label:"Start Time",value:n.startTime>0&&n.startTime,type:"date-ms"}),n.endTime&&i.push({label:"End Time",value:n.endTime,type:"date-ms"}),n.startTime&&n.endTime&&i.push({label:"Duration",value:n.startTime>0&&n.endTime-n.startTime,type:"duration"}),n.startTime&&"IN_PROGRESS"===n.status&&i.push({label:"Current Elapsed Time",value:n.startTime>0&&r-n.startTime,type:"duration"}),_t().isNil(n.retrycount)||i.push({label:"Retry Count",value:n.retryCount}),n.reasonForIncompletion&&i.push({label:"Reason for Incompletion",value:n.reasonForIncompletion}),n.workerId&&i.push({label:"Worker",value:n.workerId,type:"workerId"}),"DECISION"===n.taskType&&i.push({label:"Evaluated Case",value:_t().has(n,"outputData.caseOutput[0]")&&n.outputData.caseOutput[0]}),"SUB_WORKFLOW"===n.workflowTask.type&&(i.push({label:"Subworkflow Definition",value:(0,Xe.jsxs)(yt,{newTab:!0,path:"/workflowDef/".concat(n.workflowTask.subWorkflowParam.name),children:[n.workflowTask.subWorkflowParam.name," "]})}),_t().has(n,"subWorkflowId")&&i.push({label:"Subworkflow ID",value:(0,Xe.jsx)(yt,{newTab:!0,path:"/execution/".concat(n.subWorkflowId),children:n.subWorkflowId})})),n.externalInputPayloadStoragePath&&i.push({label:"Externalized Input",value:n.externalInputPayloadStoragePath}),n.externalOutputPayloadStoragePath&&i.push({label:"Externalized Output",value:n.externalOutputPayloadStoragePath}),(0,Xe.jsx)(Rl,{data:i})}var dM=function(){return df(["event"],"/event")};function hM(e){var t=function(e){var t=e.taskId;return df(["taskLog",t],"/tasks/".concat(t,"/log"))}({taskId:e.task.taskId}),n=t.data;return t.isFetching?(0,Xe.jsx)(Qc,{}):n&&n.length>0?(0,Xe.jsx)(Cl,{data:n,columns:[{name:"createdTime",type:"date",label:"Timestamp"},{name:"log",label:"Entry"}],title:"Task Logs"}):(0,Xe.jsx)(jo,{style:{margin:15},variant:"body1",children:"No logs available"})}function pM(e){var t=e.task,n=Cf(t.workflowTask.name),r=n.data,i=n.isLoading,o=function(e,t){var n=cf(),r=new Tf("/tasks/queue/size");return r.search.append("taskType",e),_t().isUndefined(t)||r.search.append("domain",t),(0,lf.useQuery)([n.stack,"queueSize",e,t],(function(){return ff(r.toString(),n,{enabled:n.ready})}))}(t.workflowTask.name,t.domain),a=o.data,s=o.isLoadingQueueSize;if(i||s)return(0,Xe.jsx)(Qc,{});var u=r.find((function(e){return t.domain?e.domain===t.domain:_t().isUndefined(e.domain)})),l=[{label:"Task Name",value:t.workflowTask.name},{label:"Domain",value:_t().defaultTo(t.domain,"(No Domain Set)")}];return u&&(l.push({label:"Last Polled By Worker",value:u.workerId}),l.push({label:"Last Poll Time",value:_l(u.lastPollTime)})),void 0!==a&&l.push({label:"Current Queue Size",value:a}),(0,Xe.jsx)(Rl,{data:l})}var mM=(0,me.Z)({banner:{margin:15},dfSelect:{padding:15,backgroundColor:"#efefef"},tabPanel:{padding:0,flex:1,overflowY:"auto"}});function vM(t){var n=t.selectedTask,r=t.dag,i=t.onTaskChange,o=(0,e.useState)("summary"),a=(0,wt.Z)(o,2),s=a[0],u=a[1],l=mM();(0,e.useEffect)((function(){u("summary")}),[n]);var c=(0,e.useMemo)((function(){return r&&r.resolveTaskResult(n)}),[r,n]),f=(0,e.useMemo)((function(){return r&&r.getSiblings(n)}),[r,n]),d=(0,e.useMemo)((function(){return r&&r.getRetries(n)}),[r,n]);return c?(0,Xe.jsxs)(uM,{value:s,children:[f&&(0,Xe.jsx)("div",{className:l.dfSelect,children:(0,Xe.jsx)(bs,{onChange:function(e,t){i({ref:t.ref})},options:f,disableClearable:!0,value:f.find((function(e){return e.ref===c.referenceTaskName})),getOptionLabel:function(e){return"".concat(gM(e.status)," ").concat(e.ref)},style:{marginBottom:20,width:500}})}),_t().size(d)>1&&(0,Xe.jsx)("div",{className:l.dfSelect,children:(0,Xe.jsx)(bs,{label:"Retried Task - Select an instance",disableClearable:!0,onChange:function(e,t){i({id:t.taskId})},options:d,value:d.find((function(e){return e.taskId===c.taskId})),getOptionLabel:function(e){return"".concat(gM(e.status)," Attempt ").concat(e.retryCount," - ").concat(e.taskId)},style:{marginBottom:20,width:500}})}),(0,Xe.jsx)(Mo,{value:s,contextual:!0,onChange:function(e,t){return u(t)},children:[(0,Xe.jsx)(To,{label:"Summary",value:"summary"},"summary"),(0,Xe.jsx)(To,{label:"Input",disabled:!c.status,value:"input"},"input"),(0,Xe.jsx)(To,{label:"Output",disabled:!c.status,value:"output"},"output"),(0,Xe.jsx)(To,{label:"Logs",disabled:!c.status,value:"logs"},"logs"),(0,Xe.jsx)(To,{label:"JSON",disabled:!c.status,value:"json"},"json"),(0,Xe.jsx)(To,{label:"Definition",value:"definition"},"definition")].concat((0,Ne.Z)("SIMPLE"===_t().get(c,"workflowTask.type")?[(0,Xe.jsx)(To,{label:"Poll Data",disabled:!c.status,value:"pollData"},"pollData")]:[]))}),(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(cM,{className:l.tabPanel,value:"summary",children:(0,Xe.jsx)(fM,{taskResult:c})}),(0,Xe.jsx)(cM,{className:l.tabPanel,value:"input",children:c.externalInputPayloadStoragePath?(0,Xe.jsxs)(ii,{className:l.banner,children:["This task has externalized input. Please reference"," ",(0,Xe.jsx)("code",{children:"externalInputPayloadStoragePath"})," for the storage location."]}):(0,Xe.jsx)(Vc,{src:c.inputData,label:"Task Input"})}),(0,Xe.jsx)(cM,{className:l.tabPanel,value:"output",children:c.externalOutputPayloadStoragePath?(0,Xe.jsxs)(ii,{className:l.banner,children:["This task has externalized output. Please reference"," ",(0,Xe.jsx)("code",{children:"externalOutputPayloadStoragePath"})," for the storage location."]}):(0,Xe.jsx)(Vc,{src:c.outputData,label:"Task Output"})}),(0,Xe.jsx)(cM,{className:l.tabPanel,value:"pollData",children:(0,Xe.jsx)(pM,{task:c})}),(0,Xe.jsx)(cM,{className:l.tabPanel,value:"logs",children:(0,Xe.jsx)(hM,{task:c})}),(0,Xe.jsx)(cM,{className:l.tabPanel,value:"json",children:(0,Xe.jsx)(Vc,{src:c,label:"Unabridged Task Execution Result"})}),(0,Xe.jsx)(cM,{className:l.tabPanel,value:"definition",children:(0,Xe.jsx)(Vc,{src:c.workflowTask,label:"Task Definition at Runtime"})})]})]}):null}function gM(e){var t;switch(e){case"COMPLETED":t="\u2705";break;case"COMPLETED_WITH_ERRORS":t="\u2757";break;case"CANCELED":t="\ud83d\uded1";break;case"IN_PROGRESS":case"SCHEDULED":t="\u231b";break;default:t="\u274c"}return t+"\u2003"}var yM=function(){function e(t,n){r(this,e),this.execution=t,this.workflowDef=n,this.graph=new Kd.graphlib.Graph({directed:!0,compound:!1}),this.taskResultsByRef=new Map,this.taskResultsById=new Map,this.constructGraph()}return(0,i.Z)(e,[{key:"addTaskResult",value:function(e,t){this.taskResultsByRef.has(e)||this.taskResultsByRef.set(e,[]),this.taskResultsByRef.get(e).push(t),this.taskResultsById.set(t.taskId,t)}},{key:"getLastTaskResult",value:function(e){return this.taskResultsByRef.has(e)?_t().last(this.taskResultsByRef.get(e)):null}},{key:"constructGraph",value:function(){var e=this.workflowDef,t=this.execution;if(e)this.defToGraph(e);else{if(!t)throw new Error("Must pass either workflowDef or execution in constructor");var n,r=!1,i=xs(t.tasks);try{for(i.s();!(n=i.n()).done;){var o=n.value;"TERMINATE"===o.taskType&&(r=!0),this.addTaskResult(o.referenceTaskName,o)}}catch(a){i.e(a)}finally{i.f()}t.status&&(this.addTaskResult("__start",{status:"COMPLETED"}),"COMPLETED"!==t.status||r||this.addTaskResult("__final",{status:"COMPLETED"})),this.defToGraph(t.workflowDefinition)}}},{key:"defToGraph",value:function(e){var t=(0,Ne.Z)(e.tasks);t.unshift({type:"TERMINAL",name:"start",taskReferenceName:"__start"}),t.push({type:"TERMINAL",name:"final",taskReferenceName:"__final"}),this.processTaskList(t,[]),_t().isEmpty(this.graph.inEdges("__final"))&&this.graph.removeNode("__final")}},{key:"getExecutionStatus",value:function(e){var t=this.getLastTaskResult(e);return t?t.status:null}},{key:"switchBranchTaken",value:function(e,t,n){if(!this.taskResultsByRef.has(t))return!1;var r=this.getLastTaskResult(t),i=Object.keys(r.workflowTask.decisionCases),o="SWITCH"===n?"evaluationResult":"caseOutput",a=_t().get(r,"outputData.".concat(o,"[0]"));return void 0!==a&&(e?e===a:!i.includes(a))}},{key:"addVertex",value:function(e,t){var n=e.aliasForRef?this.taskResultsByRef.get(e.aliasForRef):this.taskResultsByRef.get(e.taskReferenceName),r=_t().last(n),i={taskResults:n||[{workflowTask:e}],name:e.name,ref:e.taskReferenceName,type:e.type,aliasForRef:e.aliasForRef};r&&(i.status=r.status),this.graph.setNode(e.taskReferenceName,i);var o,a=xs(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=!!this.getExecutionStatus(s.aliasForRef||s.taskReferenceName),l={};if("DO_WHILE_END"===e.type||"SWITCH"!==s.type&&"DECISION"!==s.type)r&&r.status&&u&&(l.executed=!0);else l.caseValue=bM(e.taskReferenceName,s),this.switchBranchTaken(l.caseValue,s.taskReferenceName,s.type)&&(l.executed=!0);this.graph.setEdge(s.taskReferenceName,e.taskReferenceName,l)}}catch(c){a.e(c)}finally{a.f()}}},{key:"processTaskList",value:function(e,t){console.assert(Array.isArray(t));var n,r=t,i=xs(e.values());try{for(i.s();!(n=i.n()).done;){var o=n.value;r=this.processTask(o,r)}}catch(a){i.e(a)}finally{i.f()}return r}},{key:"processSwitchTask",value:function(e,t){var n=this;console.assert(Array.isArray(t));var r=[];return this.addVertex(e,t),_t().isEmpty(e.defaultCase)?r.push(e):r.push.apply(r,(0,Ne.Z)(this.processTaskList(e.defaultCase,[e]))),r.push.apply(r,(0,Ne.Z)(_t().flatten(Object.entries(e.decisionCases).map((function(t){var r=(0,wt.Z)(t,2),i=(r[0],r[1]);return n.processTaskList(i,[e])}))))),r}},{key:"processForkJoinDynamic",value:function(e,t){var n=this;console.assert(Array.isArray(t)),this.addVertex(e,t);var r=this.getLastTaskResult(e.taskReferenceName),i=_t().get(r,"inputData.forkedTaskDefs");if(_t().get(i,"length"))return r.inputData.forkedTaskDefs.map((function(t){return n.addVertex(t,[e]),t}));var o=e.taskReferenceName+"_DF_EMPTY_PLACEHOLDER",a={name:o,taskReferenceName:o,type:"DF_EMPTY_PLACEHOLDER"};return _t().get(r,"status")&&this.addTaskResult(o,{status:r.status}),this.addVertex(a,[e]),[a]}},{key:"processDoWhileTask",value:function(e,t){var n=this;console.assert(Array.isArray(t));var r=!!this.getExecutionStatus(e.taskReferenceName);this.addVertex(e,t);var i={type:"DO_WHILE_END",name:e.name,taskReferenceName:e.taskReferenceName+"-END",aliasForRef:e.taskReferenceName},o=e.loopOver.map((function(e){return e.taskReferenceName}));if(r){this.graph.setEdge(e.taskReferenceName,e.taskReferenceName+"-END",{type:"loop",executed:r});var a,s=Array.from(this.taskResultsByRef.keys()).filter((function(e){var t,n=xs(o);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.startsWith(r+"__"))return!0}}catch(i){n.e(i)}finally{n.f()}return!1})),u=[],l=xs(s);try{for(l.s();!(a=l.n()).done;){var c=a.value,f=this.taskResultsByRef.get(c);u.push.apply(u,(0,Ne.Z)(f))}}catch(g){l.e(g)}finally{l.f()}var d,h=u.map((function(e){return{name:e.taskDefName,taskReferenceName:e.referenceTaskName,type:e.taskType}})),p=xs(h);try{for(p.s();!(d=p.n()).done;){var m=d.value;this.addVertex(m,[e])}}catch(g){p.e(g)}finally{p.f()}this.addVertex(i,(0,Ne.Z)(h))}else{this.processTaskList(e.loopOver,[e]);var v=_t().last(e.loopOver);"SWITCH"!==(null===v||void 0===v?void 0:v.type)&&"DECISION"!==(null===v||void 0===v?void 0:v.type)||Object.entries(v.decisionCases).forEach((function(e){var t=(0,wt.Z)(e,2),r=(t[0],t[1]),o=_t().last(r);n.addVertex(i,[o])})),this.addVertex(i,[v])}return this.graph.setEdge(e.taskReferenceName,e.taskReferenceName+"-END",{type:"loop",executed:r}),[i]}},{key:"processForkJoin",value:function(e,t){var n=this,r=e.forkTasks||[];return this.addVertex(e,t),_t().flatten(r.map((function(t){return n.processTaskList(t,[e])})))}},{key:"processJoin",value:function(e,t){var n=_t().last(this.taskResultsByRef.get(e.taskReferenceName)),r=[],i=_t().first(t);if(_t().has(n,"inputData.joinOn")){var o=n.inputData.joinOn;if("DF_EMPTY_PLACEHOLDER"===_t().get(i,"type")){var a=_t().first(this.graph.predecessors(i.taskReferenceName)),s=this.graph.node(a);if("FORK_JOIN_DYNAMIC"===_t().get(s,"type")){console.log("Special case - backfill for externalized DYNAMIC_FORK");var u,l=_t().first(s.taskResults).workflowTask,c=xs(o);try{for(c.s();!(u=c.n()).done;){var f,d=u.value,h=xs(this.taskResultsByRef.get(d));try{for(h.s();!(f=h.n()).done;){var p=f.value;this.addVertex(p.workflowTask,[l]),r.push(p.workflowTask)}}catch(m){h.e(m)}finally{h.f()}}}catch(m){c.e(m)}finally{c.f()}}}}return r.length>0?(this.graph.removeNode(i.taskReferenceName),this.addVertex(e,r)):this.addVertex(e,t),[e]}},{key:"processTask",value:function(e,t){switch(e.type){case"FORK_JOIN":return this.processForkJoin(e,t);case"FORK_JOIN_DYNAMIC":return this.processForkJoinDynamic(e,t);case"DECISION":case"SWITCH":return this.processSwitchTask(e,t);case"TERMINATE":return this.addVertex(e,t),[];case"DO_WHILE":return this.processDoWhileTask(e,t);case"JOIN":return this.processJoin(e,t);default:return this.addVertex(e,t),[e]}}},{key:"getSiblings",value:function(e){var t,n=this;if(e.id){var r=this.taskResultsById.get(e.id);r&&(t=r.referenceTaskName)}else t=e.ref;if(t){var i=this.graph.predecessors(t);if(1===_t().size(i)){var o=this.graph.node(_t().first(i));if(o&&o.status){if("FORK_JOIN_DYNAMIC"===o.type)return this.graph.successors(o.ref).map((function(e){return n.graph.node(e)}));if("DO_WHILE"===o.type)return this.graph.successors(o.ref).map((function(e){return n.graph.node(e)})).filter((function(e){return"DO_WHILE_END"!==e.type}))}}}}},{key:"findTaskResultById",value:function(e){return this.taskResultsById.get(e)}},{key:"getRetries",value:function(e){if(!e.id)return this.taskResultsByRef.get(e.ref);var t=this.taskResultsById.get(e.id);if(t){var n=t.referenceTaskName;return this.taskResultsByRef.get(n)}}},{key:"resolveTaskResult",value:function(e){if(e){if(e.id)return this.taskResultsById.get(e.id);var t=this.graph.node(e.ref);return _t().last(t.taskResults)}return null}}]),e}();function bM(e,t){for(var n=0,r=Object.entries(t.decisionCases);n<r.length;n++){var i=(0,wt.Z)(r[n],2),o=i[0],a=i[1];if(!_t().isEmpty(a)&&e===a[0].taskReferenceName)return o}return null}var wM=n(39475),xM=n.n(wM),_M=n(73967),kM=n.n(_M),SM=n(31725),MM=n.n(SM),TM="bodyAttributes",EM="htmlAttributes",CM="titleAttributes",OM={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},DM=(Object.keys(OM).map((function(e){return OM[e]})),"charset"),NM="cssText",jM="href",AM="http-equiv",PM="innerHTML",RM="itemprop",IM="name",FM="property",LM="rel",zM="src",BM="target",ZM={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},WM="defaultTitle",HM="defer",YM="encodeSpecialCharacters",UM="onChangeClientState",VM="titleTemplate",qM=Object.keys(ZM).reduce((function(e,t){return e[ZM[t]]=t,e}),{}),GM=[OM.NOSCRIPT,OM.SCRIPT,OM.STYLE],XM="data-react-helmet",$M="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},QM=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},KM=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),JM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eT=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},tT=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},nT=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},rT=function(e){var t=uT(e,OM.TITLE),n=uT(e,VM);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=uT(e,WM);return t||r||void 0},iT=function(e){return uT(e,UM)||function(){}},oT=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return JM({},e,t)}),{})},aT=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[OM.BASE]})).map((function(e){return e[OM.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},sT=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&hT("Helmet: "+e+' should be of type "Array". Instead found type "'+$M(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||n===LM&&"canonical"===e[n].toLowerCase()||u===LM&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||s!==PM&&s!==NM&&s!==RM||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][l]&&(i[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=MM()({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},uT=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},lT=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){lT(t)}),0)}}(),cT=function(e){return clearTimeout(e)},fT="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||lT:n.g.requestAnimationFrame||lT,dT="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cT:n.g.cancelAnimationFrame||cT,hT=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},pT=null,mT=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,f=e.title,d=e.titleAttributes;yT(OM.BODY,r),yT(OM.HTML,i),gT(f,d);var h={baseTag:bT(OM.BASE,n),linkTags:bT(OM.LINK,o),metaTags:bT(OM.META,a),noscriptTags:bT(OM.NOSCRIPT,s),scriptTags:bT(OM.SCRIPT,l),styleTags:bT(OM.STYLE,c)},p={},m={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(m[e]=h[e].oldTags)})),t&&t(),u(e,p,m)},vT=function(e){return Array.isArray(e)?e.join(""):e},gT=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=vT(e)),yT(OM.TITLE,t)},yT=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(XM),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var u=a[s],l=t[u]||"";n.getAttribute(u)!==l&&n.setAttribute(u,l),-1===i.indexOf(u)&&i.push(u);var c=o.indexOf(u);-1!==c&&o.splice(c,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute(XM):n.getAttribute(XM)!==a.join(",")&&n.setAttribute(XM,a.join(","))}},bT=function(e,t){var n=document.head||document.querySelector(OM.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===PM)n.innerHTML=t.innerHTML;else if(r===NM)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(XM,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},wT=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},xT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ZM[n]||n]=e[n],t}),t)},_T=function(t,n,r){switch(t){case OM.TITLE:return{toComponent:function(){return function(t,n,r){var i,o=((i={key:n})[XM]=!0,i),a=xT(r,o);return[e.createElement(OM.TITLE,a,n)]}(0,n.title,n.titleAttributes)},toString:function(){return function(e,t,n,r){var i=wT(n),o=vT(t);return i?"<"+e+' data-react-helmet="true" '+i+">"+nT(o,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+nT(o,r)+"</"+e+">"}(t,n.title,n.titleAttributes,r)}};case TM:case EM:return{toComponent:function(){return xT(n)},toString:function(){return wT(n)}};default:return{toComponent:function(){return function(t,n){return n.map((function(n,r){var i,o=((i={key:r})[XM]=!0,i);return Object.keys(n).forEach((function(e){var t=ZM[e]||e;if(t===PM||t===NM){var r=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[t]=n[e]})),e.createElement(t,o)}))}(t,n)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===PM||e===NM)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+nT(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===GM.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(t,n,r)}}}},kT=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.scriptTags,l=e.styleTags,c=e.title,f=void 0===c?"":c,d=e.titleAttributes;return{base:_T(OM.BASE,t,r),bodyAttributes:_T(TM,n,r),htmlAttributes:_T(EM,i,r),link:_T(OM.LINK,o,r),meta:_T(OM.META,a,r),noscript:_T(OM.NOSCRIPT,s,r),script:_T(OM.SCRIPT,u,r),style:_T(OM.STYLE,l,r),title:_T(OM.TITLE,{title:f,titleAttributes:d},r)}},ST=function(t){var n,r;return r=n=function(n){function r(){return QM(this,r),tT(this,n.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r.prototype.shouldComponentUpdate=function(e){return!kM()(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case OM.SCRIPT:case OM.NOSCRIPT:return{innerHTML:t};case OM.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return JM({},r,((t={})[n.type]=[].concat(r[n.type]||[],[JM({},i,this.mapNestedChildrenToProps(n,o))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case OM.TITLE:return JM({},i,((t={})[r.type]=a,t.titleAttributes=JM({},o),t));case OM.BODY:return JM({},i,{bodyAttributes:JM({},o)});case OM.HTML:return JM({},i,{htmlAttributes:JM({},o)})}return JM({},i,((n={})[r.type]=JM({},o),n))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=JM({},t);return Object.keys(e).forEach((function(t){var r;n=JM({},n,((r={})[t]=e[t],r))})),n},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(t,n){var r=this,i={};return e.Children.forEach(t,(function(e){if(e&&e.props){var t=e.props,o=t.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[qM[n]||n]=e[n],t}),t)}(eT(t,["children"]));switch(r.warnOnInvalidChildren(e,o),e.type){case OM.LINK:case OM.META:case OM.NOSCRIPT:case OM.SCRIPT:case OM.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:a,nestedChildren:o});break;default:n=r.mapObjectTypeChildren({child:e,newProps:n,newChildProps:a,nestedChildren:o})}}})),n=this.mapArrayTypeChildrenToProps(i,n)},r.prototype.render=function(){var n=this.props,r=n.children,i=eT(n,["children"]),o=JM({},i);return r&&(o=this.mapChildrenToProps(r,o)),e.createElement(t,o)},KM(r,null,[{key:"canUseDOM",set:function(e){t.canUseDOM=e}}]),r}(e.Component),n.propTypes={base:W().object,bodyAttributes:W().object,children:W().oneOfType([W().arrayOf(W().node),W().node]),defaultTitle:W().string,defer:W().bool,encodeSpecialCharacters:W().bool,htmlAttributes:W().object,link:W().arrayOf(W().object),meta:W().arrayOf(W().object),noscript:W().arrayOf(W().object),onChangeClientState:W().func,script:W().arrayOf(W().object),style:W().arrayOf(W().object),title:W().string,titleAttributes:W().object,titleTemplate:W().string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var e=t.rewind();return e||(e=kT({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},r}(xM()((function(e){return{baseTag:aT([jM,BM],e),bodyAttributes:oT(TM,e),defer:uT(e,HM),encode:uT(e,YM),htmlAttributes:oT(EM,e),linkTags:sT(OM.LINK,[LM,jM],e),metaTags:sT(OM.META,[IM,DM,AM,FM,RM],e),noscriptTags:sT(OM.NOSCRIPT,[PM],e),onChangeClientState:iT(e),scriptTags:sT(OM.SCRIPT,[zM,PM],e),styleTags:sT(OM.STYLE,[NM],e),title:rT(e),titleAttributes:oT(CM,e)}}),(function(e){pT&&dT(pT),e.defer?pT=fT((function(){mT(e,(function(){pT=null}))})):(mT(e),pT=null)}),kT)((function(){return null})));ST.renderStatic=ST.rewind;var MT=window.innerWidth,TT=(0,me.Z)({header:jd.header,drawer:{zIndex:999,position:"absolute",top:0,right:0,bottom:0,width:function(e){return e.isFullWidth?"100%":e.drawerWidth}},drawerHeader:{display:"flex",alignItems:"center",padding:10,justifyContent:"flex-end",height:80,flexShrink:0,boxShadow:"0 4px 8px 0 rgb(0 0 0 / 10%), 0 0 2px 0 rgb(0 0 0 / 10%)",zIndex:1,backgroundColor:"#fff"},dragger:{display:function(e){return e.isFullWidth?"none":"block"},width:"5px",cursor:"ew-resize",padding:"4px 0 0",position:"absolute",height:"100%",zIndex:"100",backgroundColor:"#f4f7f9"},drawerMain:{paddingLeft:function(e){return e.isFullWidth?0:4},height:"100%",display:"flex",flexDirection:"column"},drawerContent:{flex:1,backgroundColor:"#fff",display:"flex",flexDirection:"column",overflow:"hidden"},content:{height:"100%",display:"flex",flexDirection:"column"},contentShift:{marginRight:function(e){return e.drawerWidth}},tabContent:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},headerSubtitle:{marginBottom:20},fr:{display:"flex",position:"relative",float:"right",marginRight:50,marginTop:10,zIndex:1},frItem:{display:"flex",alignItems:"center",marginRight:15},rightPanel:{height:"100%",display:"flex",flexDirection:"column"}});function ET(){var t,n=pe(),r=df(["workflow",t=n.params.id],"/workflow/".concat(t),{enabled:!!t}),i=r.data,o=r.isFetching,a=r.refetch,s=(0,e.useState)(!1),u=(0,wt.Z)(s,2),l=u[0],c=u[1],f=(0,e.useState)(!1),d=(0,wt.Z)(f,2),h=d[0],p=d[1],m=(0,e.useState)(650),v=(0,wt.Z)(m,2),g=v[0],y=v[1],b=td("tabIndex",0),w=(0,wt.Z)(b,2),x=w[0],_=w[1],k=td("task",""),S=(0,wt.Z)(k,2),M=S[0],T=S[1],E=(0,e.useMemo)((function(){return i?new yM(i):null}),[i]),C=(0,e.useMemo)((function(){return M&&Pf().decode(M)}),[M]),O=function(e){T(Pf().encode(e))},D=TT({isFullWidth:l,drawerWidth:g}),N=(0,e.useCallback)((function(e){if(h){e.preventDefault();var t=document.body.offsetWidth-(e.clientX-document.body.offsetLeft);t>0&&t<MT-100&&y(t)}}),[h]);return(0,e.useEffect)((function(){var e=function(e){return p(!1)};return document.addEventListener("mousemove",N),document.addEventListener("mouseup",e),function(){document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",e)}}),[N]),(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsxs)("title",{children:["Conductor UI - Execution - ",n.params.id]})}),(0,Xe.jsxs)("div",{className:(0,ge.Z)(D.content,(0,Se.Z)({},D.contentShift,!!C)),children:[o&&(0,Xe.jsx)(Qc,{}),i&&(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsxs)("div",{className:D.header,children:[(0,Xe.jsxs)("div",{className:D.fr,children:[i.parentWorkflowId&&(0,Xe.jsx)("div",{className:D.frItem,children:(0,Xe.jsx)(yt,{newTab:!0,path:"/execution/".concat(i.parentWorkflowId),children:"Parent Workflow"})}),(0,Xe.jsx)("div",{className:D.frItem,children:(0,Xe.jsx)(yt,{newTab:!0,path:"/workflowDef/".concat(i.workflowName),children:"Definition"})}),(0,Xe.jsx)(Yt,{onClick:a,style:{marginRight:10},children:"Refresh"}),(0,Xe.jsx)(iM,{execution:i,triggerReload:a})]}),(0,Xe.jsxs)(Oo,{level:3,gutterBottom:!0,children:[i.workflowType||i.workflowName," ",(0,Xe.jsx)(uf,{status:i.status})]}),(0,Xe.jsx)(Oo,{level:0,className:D.headerSubtitle,children:i.workflowId}),i.reasonForIncompletion&&(0,Xe.jsx)(cd,{severity:"error",children:i.reasonForIncompletion}),(0,Xe.jsxs)(Mo,{value:x,style:{marginBottom:0},children:[(0,Xe.jsx)(To,{label:"Tasks",onClick:function(){return _(0)}}),(0,Xe.jsx)(To,{label:"Summary",onClick:function(){return _(1)}}),(0,Xe.jsx)(To,{label:"Workflow Input/Output",onClick:function(){return _(2)}}),(0,Xe.jsx)(To,{label:"JSON",onClick:function(){return _(3)}})]})]}),(0,Xe.jsxs)("div",{className:D.tabContent,children:[0===x&&(0,Xe.jsx)(WS,{dag:E,execution:i,setSelectedTask:O,selectedTask:C}),1===x&&(0,Xe.jsx)(YS,{execution:i}),2===x&&(0,Xe.jsx)(GS,{execution:i}),3===x&&(0,Xe.jsx)(VS,{execution:i})]})]})]}),C&&(0,Xe.jsxs)("div",{className:D.drawer,children:[(0,Xe.jsx)("div",{id:"dragger",onMouseDown:function(e){return p(!0)},className:D.dragger}),(0,Xe.jsxs)("div",{className:D.drawerMain,children:[(0,Xe.jsxs)("div",{className:D.drawerHeader,children:[l?(0,Xe.jsx)(Es,{title:"Restore sidebar",children:(0,Xe.jsx)(Ha,{onClick:function(){c(!1)},children:(0,Xe.jsx)(aM.Z,{})})}):(0,Xe.jsx)(Es,{title:"Maximize sidebar",children:(0,Xe.jsx)(Ha,{onClick:function(){c(!0)},children:(0,Xe.jsx)(oM.Z,{})})}),(0,Xe.jsx)(Es,{title:"Close sidebar",children:(0,Xe.jsx)(Ha,{onClick:function(){T(null)},children:(0,Xe.jsx)(hs.Z,{})})})]}),(0,Xe.jsx)("div",{className:D.drawerContent,children:(0,Xe.jsx)(vM,{className:D.rightPanel,selectedTask:C,dag:E,onTaskChange:O})})]})]})]})}var CT=(0,me.Z)(jd);function OT(e){var t=e.tabIndex,n=e.loading,r=CT();return(0,Xe.jsxs)("div",{children:[n&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsxs)("div",{className:r.header,children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Definitions"}),(0,Xe.jsxs)(Mo,{value:t,children:[(0,Xe.jsx)(To,{label:"Workflows",component:yt,path:"/workflowDefs"}),(0,Xe.jsx)(To,{label:"Tasks",component:yt,path:"/taskDefs"}),(0,Xe.jsx)(To,{label:"Event Handlers",component:yt,path:"/eventHandlerDef"})]})]})]})}var DT=n(63459),NT=(0,me.Z)(jd),jT=[{name:"name",renderer:function(e){return(0,Xe.jsx)(yt,{path:"/workflowDef/".concat(e.trim()),children:e.trim()})}},{name:"description",grow:2},{name:"createTime",type:"date"},{name:"version",label:"Latest Version",grow:.5},{name:"schemaVersion",grow:.5},{name:"restartable",grow:.5},{name:"workflowStatusListenerEnabled",grow:.5},{name:"ownerEmail"},{name:"inputParameters",type:"json",sortable:!1},{name:"outputParameters",type:"json",sortable:!1},{name:"timeoutPolicy",grow:.5},{name:"timeoutSeconds",grow:.5},{id:"task_types",name:"tasks",label:"Task Types",searchable:"calculated",sortable:!1,renderer:function(e){var t,n=new Set,r=xs(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.add(i.type)}}catch(o){r.e(o)}finally{r.f()}return Array.from(n).join(", ")}},{id:"task_count",name:"tasks",label:"Tasks",searchable:"calculated",sortable:!1,grow:.5,renderer:function(e){return _t().isArray(e)?e.length:0}},{id:"executions_link",name:"name",label:"Executions",sortable:!1,searchable:!1,grow:.5,renderer:function(e){return(0,Xe.jsx)(yt,{path:"/?workflowType=".concat(e.trim()),newTab:!0,children:"Query"})}}];function AT(){var t=NT(),n=function(){var t=wf(),n=t.data,r=(0,ve.Z)(t,vf),i=(0,e.useMemo)((function(){if(n){var e,t=new Map,r=xs(n);try{for(r.s();!(e=r.n()).done;){var i=e.value;t.has(i.name)?t.get(i.name).version<i.version&&t.set(i.name,i):t.set(i.name,i)}}catch(o){r.e(o)}finally{r.f()}return Array.from(t.values())}}),[n]);return Je({data:i},r)}(),r=n.data,i=n.isFetching,o=td("filter",""),a=(0,wt.Z)(o,2),s=a[0],u=a[1],l=""===s?void 0:JSON.parse(s),c=(0,e.useMemo)((function(){if(r){var e,t=new Map,n=new Set,i=xs(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.has(o.name)?t.get(o.name).version<o.version&&t.set(o.name,o):t.set(o.name,o);var a,s=xs(o.tasks);try{for(s.s();!(a=s.n()).done;){var u=a.value;n.add(u.type)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){i.e(l)}finally{i.f()}return Array.from(t.values())}}),[r]);return(0,Xe.jsxs)("div",{className:t.wrapper,children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsx)("title",{children:"Conductor UI - Workflow Definitions"})}),(0,Xe.jsx)(OT,{tabIndex:0,loading:i}),(0,Xe.jsxs)("div",{className:t.tabContent,children:[(0,Xe.jsx)("div",{className:t.buttonRow,children:(0,Xe.jsx)(ti,{component:yt,path:"/workflowDef",startIcon:(0,Xe.jsx)(DT.Z,{}),children:"New Workflow Definition"})}),c&&(0,Xe.jsx)(Cl,{title:"".concat(c.length," results"),localStorageKey:"definitionsTable",defaultShowColumns:["name","description","version","createTime","ownerEmail","task_count","executions_link"],keyField:"name",onFilterChange:function(e){u(e?JSON.stringify(e):"")},initialFilterObj:l,data:c,columns:jT})]})]})}function PT(e){var t=e.onClose,n=e.onConfirm,r=e.version;return(0,Xe.jsxs)(_d,{fullWidth:!0,maxWidth:"sm",open:!1!==r,onClose:t,children:[(0,Xe.jsx)(Sd,{children:"Confirmation"}),(0,Xe.jsx)(Td,{children:(0,Xe.jsx)(jo,{children:"You will lose all changes made in the editor. Are you sure to proceed?"})}),(0,Xe.jsxs)(Cd,{children:[(0,Xe.jsx)(ti,{onClick:function(){return n(r)},children:"Confirm"}),(0,Xe.jsx)(ti,{variant:"secondary",onClick:t,children:"Cancel"})]})]})}var RT={name:"",description:"Edit or extend this sample workflow. Set the workflow name to get started",version:1,tasks:[{name:"get_population_data",taskReferenceName:"get_population_data",inputParameters:{http_request:{uri:"https://datausa.io/api/data?drilldowns=Nation&measures=Population",method:"GET"}},type:"HTTP"}],inputParameters:[],outputParameters:{data:"${get_population_data.output.response.body.data}",source:"${get_population_data.output.response.body.source}"},schemaVersion:2,restartable:!0,workflowStatusListenerEnabled:!1,ownerEmail:"example@email.com",timeoutPolicy:"ALERT_ONLY",timeoutSeconds:0},IT={$schema:"http://json-schema.org/draft-07/schema",$id:"http://example.com/example.json",type:"object",title:"The root schema",description:"The root schema comprises the entire JSON document.",default:{},examples:[{name:"first_sample_workflow",description:"First Sample Workflow",version:1,tasks:[{name:"get_population_data",taskReferenceName:"get_population_data",inputParameters:{http_request:{uri:"https://datausa.io/api/data?drilldowns=Nation&measures=Population",method:"GET"}},type:"HTTP"}],inputParameters:[],outputParameters:{data:"${get_population_data.output.response.body.data}",source:"${get_population_data.output.response.body.source}"},schemaVersion:2,restartable:!0,workflowStatusListenerEnabled:!1,ownerEmail:"example@email.com",timeoutPolicy:"ALERT_ONLY",timeoutSeconds:0}],required:["name","version","tasks","schemaVersion"],properties:{name:{$id:"#/properties/name",default:"",description:"Workflow Name - should be without spaces or special characters. Underscores and periods are allowed.",examples:["first_sample_workflow"],maxLength:100,pattern:"^[\\w\\.]+$",title:"Workflow Name",type:"string"},description:{$id:"#/properties/description",type:"string",title:"Workflow Description",description:"An brief description of your workflow for reference.",default:"",examples:["First Sample Workflow"]},version:{$id:"#/properties/version",default:0,description:"An explanation about the purpose of this instance.",examples:[1],title:"The version schema",minimum:1,type:"integer"},tasks:{$id:"#/properties/tasks",type:"array",title:"Workflow Tasks",description:"This list holds the tasks for your workflow.",default:[],examples:[[{name:"get_population_data",taskReferenceName:"get_population_data",inputParameters:{http_request:{uri:"https://datausa.io/api/data?drilldowns=Nation&measures=Population",method:"GET"}},type:"HTTP"}]],additionalItems:!0,items:{$id:"#/properties/tasks/items",anyOf:[{$id:"#/properties/tasks/items/anyOf/0",type:"object",title:"The first anyOf schema",description:"Workflow task details",default:{name:"",taskReferenceName:"",inputParameters:{},type:"SIMPLE"},examples:[{name:"get_population_data",taskReferenceName:"get_population_data",inputParameters:{http_request:{uri:"https://datausa.io/api/data?drilldowns=Nation&measures=Population",method:"GET"}},type:"HTTP"}],required:["name","taskReferenceName","inputParameters","type"],properties:{name:{$id:"#/properties/tasks/items/anyOf/0/properties/name",type:"string",title:"Task name",description:"Task name",default:"",examples:["get_population_data"]},taskReferenceName:{$id:"#/properties/tasks/items/anyOf/0/properties/taskReferenceName",type:"string",title:"Task Reference Name",description:"A unique task reference name for this task in the entire workflow",default:"",examples:["get_population_data"]},inputParameters:{$id:"#/properties/tasks/items/anyOf/0/properties/inputParameters",type:"object",title:"Input Parameters",description:"Task input parameters",default:{},examples:[{http_request:{uri:"https://datausa.io/api/data?drilldowns=Nation&measures=Population",method:"GET"}}],required:[],properties:{},additionalProperties:!0},type:{$id:"#/properties/tasks/items/anyOf/0/properties/type",type:"string",title:"Task Type",description:"Task type",default:"",examples:["HTTP"]}},additionalProperties:!0}]}},inputParameters:{$id:"#/properties/inputParameters",type:"array",title:"Workflow Input Parameters",description:"An explanation about the purpose of this instance.",default:[],examples:[[]],additionalItems:!0,items:{$id:"#/properties/inputParameters/items"}},outputParameters:{$id:"#/properties/outputParameters",type:"object",title:"The outputParameters schema",description:"An explanation about the purpose of this instance.",default:{},examples:[{data:"${get_population_data.output.response.body.data}",source:"${get_population_data.output.response.body.source}"}],required:[],properties:{},additionalProperties:!0},schemaVersion:{$id:"#/properties/schemaVersion",type:"integer",title:"Schema Version",description:"Fixed schema version",default:2,examples:[2]},restartable:{$id:"#/properties/restartable",type:"boolean",title:"Workflow restartable",description:"Specify if the workflow is restartable.",default:!0,examples:[!0,!1]},workflowStatusListenerEnabled:{$id:"#/properties/workflowStatusListenerEnabled",type:"boolean",title:"The workflowStatusListenerEnabled schema",description:"An explanation about the purpose of this instance.",default:!1,examples:[!0,!1]},ownerEmail:{$id:"#/properties/ownerEmail",type:"string",title:"The ownerEmail schema",description:"An explanation about the purpose of this instance.",default:"",examples:["example@email.com"]},timeoutPolicy:{$id:"#/properties/timeoutPolicy",type:"string",title:"The timeoutPolicy schema",description:"An explanation about the purpose of this instance.",default:"",examples:["ALERT_ONLY","TIME_OUT_WF"]},timeoutSeconds:{$id:"#/properties/timeoutSeconds",type:"integer",title:"The timeoutSeconds schema",description:"An explanation about the purpose of this instance.",default:0,examples:[0]}},additionalProperties:!0},FT="file:///workflow.json";var LT=e.forwardRef((function(t,n){var r=t.action,i=t.classes,o=t.className,a=t.message,s=t.role,u=void 0===s?"alert":s,l=(0,ve.Z)(t,["action","classes","className","message","role"]);return e.createElement(xe,(0,p.Z)({role:u,square:!0,elevation:6,className:(0,ge.Z)(i.root,o),ref:n},l),e.createElement("div",{className:i.message},a),r?e.createElement("div",{className:i.action},r):null)})),zT=(0,ye.Z)((function(e){var t="light"===e.palette.type?.8:.98,n=(0,Ee._4)(e.palette.background.default,t);return{root:(0,p.Z)({},e.typography.body2,(0,Se.Z)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(LT),BT=e.forwardRef((function(t,n){var r=t.action,i=t.anchorOrigin,o=(i=void 0===i?{vertical:"bottom",horizontal:"center"}:i).vertical,a=i.horizontal,s=t.autoHideDuration,u=void 0===s?null:s,l=t.children,c=t.classes,f=t.className,d=t.ClickAwayListenerProps,h=t.ContentProps,m=t.disableWindowBlurListener,v=void 0!==m&&m,g=t.message,y=t.onClose,b=t.onEnter,w=t.onEntered,x=t.onEntering,_=t.onExit,k=t.onExited,S=t.onExiting,M=t.onMouseEnter,T=t.onMouseLeave,E=t.open,C=t.resumeHideDuration,O=t.TransitionComponent,D=void 0===O?Kr:O,N=t.transitionDuration,j=void 0===N?{enter:hd.x9.enteringScreen,exit:hd.x9.leavingScreen}:N,A=t.TransitionProps,P=(0,ve.Z)(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),R=e.useRef(),I=e.useState(!0),F=I[0],L=I[1],z=(0,Oe.Z)((function(){y&&y.apply(void 0,arguments)})),B=(0,Oe.Z)((function(e){y&&null!=e&&(clearTimeout(R.current),R.current=setTimeout((function(){z(null,"timeout")}),e))}));e.useEffect((function(){return E&&B(u),function(){clearTimeout(R.current)}}),[E,u,B]);var Z=function(){clearTimeout(R.current)},W=e.useCallback((function(){null!=u&&B(null!=C?C:.5*u)}),[u,C,B]);return e.useEffect((function(){if(!v&&E)return window.addEventListener("focus",W),window.addEventListener("blur",Z),function(){window.removeEventListener("focus",W),window.removeEventListener("blur",Z)}}),[v,W,E]),!E&&F?null:e.createElement(br,(0,p.Z)({onClickAway:function(e){y&&y(e,"clickaway")}},d),e.createElement("div",(0,p.Z)({className:(0,ge.Z)(c.root,c["anchorOrigin".concat((0,be.Z)(o)).concat((0,be.Z)(a))],f),onMouseEnter:function(e){M&&M(e),Z()},onMouseLeave:function(e){T&&T(e),W()},ref:n},P),e.createElement(D,(0,p.Z)({appear:!0,in:E,onEnter:(0,fr.Z)((function(){L(!1)}),b),onEntered:w,onEntering:x,onExit:_,onExited:(0,fr.Z)((function(){L(!0)}),k),onExiting:S,timeout:j,direction:"top"===o?"down":"up"},A),l||e.createElement(zT,(0,p.Z)({message:g,action:r},h)))))})),ZT=(0,ye.Z)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},i={justifyContent:"flex-start"},o={top:24},a={bottom:24},s={right:24},u={left:24},l={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,p.Z)({},t,(0,Se.Z)({},e.breakpoints.up("sm"),(0,p.Z)({},o,l))),anchorOriginBottomCenter:(0,p.Z)({},n,(0,Se.Z)({},e.breakpoints.up("sm"),(0,p.Z)({},a,l))),anchorOriginTopRight:(0,p.Z)({},t,r,(0,Se.Z)({},e.breakpoints.up("sm"),(0,p.Z)({left:"auto"},o,s))),anchorOriginBottomRight:(0,p.Z)({},n,r,(0,Se.Z)({},e.breakpoints.up("sm"),(0,p.Z)({left:"auto"},a,s))),anchorOriginTopLeft:(0,p.Z)({},t,i,(0,Se.Z)({},e.breakpoints.up("sm"),(0,p.Z)({right:"auto"},o,u))),anchorOriginBottomLeft:(0,p.Z)({},n,i,(0,Se.Z)({},e.breakpoints.up("sm"),(0,p.Z)({right:"auto"},a,u)))}}),{flip:!1,name:"MuiSnackbar"})(BT),WT=e.forwardRef((function(t,n){t.checked;var r=t.classes,i=t.className,o=t.control,a=t.disabled,s=(t.inputRef,t.label),u=t.labelPlacement,l=void 0===u?"end":u,c=(t.name,t.onChange,t.value,(0,ve.Z)(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),f=Lt(),d=a;"undefined"===typeof d&&"undefined"!==typeof o.props.disabled&&(d=o.props.disabled),"undefined"===typeof d&&f&&(d=f.disabled);var h={disabled:d};return["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof o.props[e]&&"undefined"!==typeof t[e]&&(h[e]=t[e])})),e.createElement("label",(0,p.Z)({className:(0,ge.Z)(r.root,i,"end"!==l&&r["labelPlacement".concat((0,be.Z)(l))],d&&r.disabled),ref:n},c),e.cloneElement(o,h),e.createElement(ft,{component:"span",className:(0,ge.Z)(r.label,d&&r.disabled)},s))})),HT=(0,ye.Z)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(WT),YT=(0,me.Z)({rightButtons:{display:"flex",flexGrow:1,justifyContent:"flex-end",gap:8},toolbar:{paddingLeft:20}});function UT(t){var n=t.onSuccess,r=t.onCancel,i=t.document,o=YT(),a=(0,e.useRef)(null),s=(0,e.useState)(),u=(0,wt.Z)(s,2),l=u[0],c=u[1],f=(0,e.useState)(!0),d=(0,wt.Z)(f,2),h=d[0],p=d[1],m=_f().data,v=(0,e.useMemo)((function(){if(!i||!m)return{text:"",obj:null};var e=JSON.parse(i.modified),t=_t().get(_t().last(m.get(e.name)),"version",0);h&&(e.version=_t().isNumber(t)?t+1:1);var n=_t().get(i,"originalObj.name")!==e.name,r=n&&m.has(e.name);return{text:JSON.stringify(e,null,2),obj:e,isClash:r,isNew:n}}),[i,h,m]);(0,e.useEffect)((function(){v.isClash?c("Cannot save workflow definition. Workflow name already in use."):c(void 0)}),[v]);var g=function(e){var t=cf();return(0,lf.useMutation)((function(e){var n=e.body,r=e.isNew;return ff("/metadata/workflow",t,{method:r?"post":"put",headers:{"Content-Type":"application/json"},body:JSON.stringify(r?n:[n])})}),e)}({onSuccess:function(e){console.log("onsuccess",e),n(v.obj.name,v.obj.version)},onError:function(e){console.log("onerror",e);var t=_t().isString(e.body)?e.body:JSON.stringify(e.body,null,2);c("".concat("Failed to save the workflow definition.",": ").concat(t))}}),y=g.isLoading,b=g.mutate;return(0,Xe.jsxs)(_d,{fullScreen:!0,open:!!i,onClose:function(){return r()},TransitionProps:{onEnter:function(){return p(!0)}},children:[(0,Xe.jsx)(ZT,{open:!!l,onClose:function(){return c(null)},anchorOrigin:{vertical:"top",horizontal:"center"},transitionDuration:{exit:0},children:(0,Xe.jsx)(cd,{onClose:function(){return c(null)},severity:"error",children:l})}),y&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsxs)(Te,{className:o.toolbar,children:[(0,Xe.jsxs)(jo,{children:["Saving"," ",(0,Xe.jsx)("span",{style:{fontWeight:"bold"},children:_t().get(v,"obj.name")})]}),v.isNew&&(0,Xe.jsx)(tf,{label:"New",color:"yellow"}),(0,Xe.jsxs)("div",{className:o.rightButtons,children:[(0,Xe.jsx)(HT,{control:(0,Xe.jsx)(Fs,{checked:h,onChange:function(e){return p(e.target.checked)},disabled:v.isClash}),label:"Automatically set version"}),(0,Xe.jsx)(ti,{onClick:function(){b({body:v.obj,isNew:v.isNew})},disabled:v.isClash,children:"Save"}),(0,Xe.jsx)(ti,{onClick:function(){return r()},variant:"secondary",children:"Cancel"})]})]}),i&&(0,Xe.jsx)(Ic,{height:"100%",width:"100%",theme:"vs-light",language:"json",original:i.original,modified:v.text,autoIndent:!0,onMount:function(e){a.current=e},options:{selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1}}})]})}var VT=n(11172),qT=n.n(VT),GT=(0,yi.Z)(e.createElement("path",{d:"M9.29 15.88L13.17 12 9.29 8.12a.9959.9959 0 010-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z"}),"KeyboardArrowRightRounded"),XT=(0,yi.Z)(e.createElement("path",{d:"M14.71 15.88L10.83 12l3.88-3.88c.39-.39.39-1.02 0-1.41a.9959.9959 0 00-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z"}),"KeyboardArrowLeftRounded"),$T=(0,me.Z)({wrapper:{display:"flex",height:"100%",alignItems:"stretch"},workflowCodePanel:function(e){return{width:e.toggleGraphPanel?e.workflowCodePanelWidth:"100%",display:"flex",flexFlow:"column"}},workflowGraph:function(e){return{display:e.toggleGraphPanel?"block":"none",flexGrow:1}},resizer:function(e){return{display:e.toggleGraphPanel?"block":"none",width:8,cursor:"col-resize",backgroundColor:"rgb(45, 45, 45, 0.05)",resize:"horizontal","&:hover":{backgroundColor:"rgb(45, 45, 45, 0.3)"}}},workflowName:{fontWeight:"bold"},rightButtons:{display:"flex",flexGrow:1,justifyContent:"flex-end",gap:8},editorLineDecorator:{backgroundColor:"rgb(45, 45, 45, 0.1)"}}),QT=5,KT=7;function JT(e,t){switch(t.type){case KT:return qT()(e,{toggleGraphPanel:{$set:!e.toggleGraphPanel}});case QT:return qT()(e,{workflowCodePanelWidth:{$set:"".concat(t.newWidth,"px")}});default:return e}}function eE(){var n=pe(),r=bt(),i=(0,e.useState)(null),o=(0,wt.Z)(i,2),a=o[0],s=o[1],u=(0,e.useState)(!1),l=(0,wt.Z)(u,2),c=l[0],f=l[1],d=(0,e.useState)(!1),h=(0,wt.Z)(d,2),p=h[0],m=h[1],v=(0,e.useState)(null),g=(0,wt.Z)(v,2),y=g[0],b=g[1],w=(0,e.useState)([]),x=(0,wt.Z)(w,2),_=x[0],k=x[1],S=(0,e.useState)([]),M=(0,wt.Z)(S,2),T=M[0],E=M[1],C=_t().get(n,"params.name"),O=_t().get(n,"params.version"),D=(0,e.useReducer)(JT,{workflowCodePanelWidth:"50%",toggleGraphPanel:!0}),N=(0,wt.Z)(D,2),j=N[0],A=N[1],P=$T(j),R=bf(C,O,RT),I=R.data,F=R.isFetching,L=R.refetch,z=(0,e.useMemo)((function(){return I?JSON.stringify(I,null,2):""}),[I]);(0,e.useEffect)((function(){I&&b(new yM(null,I))}),[I]);var B=_f(),Z=B.data,W=B.refetch,H=(0,e.useMemo)((function(){return Z.get(C)||[]}),[Z,C]),Y=(0,e.useRef)(),U=(0,e.useRef)(),V=function e(){document.removeEventListener("mouseup",e,!0),document.removeEventListener("mousemove",q,!0)},q=function(e){var n=t.findDOMNode(U.current).getBoundingClientRect(),r=Math.max(500,e.clientX-n.x);A({type:QT,newWidth:r})},G=function(e){p?f(e):X(e)},X=function(e){e===O?Y.current.getModel().setValue(z):_t().isUndefined(e)?r("/workflowDef/".concat(C)):r("/workflowDef/".concat(C,"/").concat(e)),f(!1),m(!1)};return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsxs)("title",{children:["Conductor UI - Workflow Definition - ",C||"New Workflow"]})}),(0,Xe.jsx)(PT,{version:c,onConfirm:X,onClose:function(){return f(!1)}}),(0,Xe.jsx)(UT,{document:a,onCancel:function(){s(null)},onSuccess:function(e,t){s(null),m(!1),W(),e===C&&t===O?L():r("/workflowDef/".concat(e,"/").concat(t))}}),F&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsxs)("div",{className:P.wrapper,children:[(0,Xe.jsxs)("div",{className:P.workflowCodePanel,ref:U,children:[(0,Xe.jsxs)(Te,{children:[(0,Xe.jsx)(jo,{className:P.workflowName,children:C||"NEW"}),(0,Xe.jsxs)(Ga,{disabled:!I,value:_t().isUndefined(O)?"":O,displayEmpty:!0,renderValue:function(e){return""===e?"Latest Version":"Version ".concat(e)},onChange:function(e){return G(e.target.value)},children:[(0,Xe.jsx)(Rr,{value:"",children:"Latest Version"}),H.map((function(e){return(0,Xe.jsxs)(Rr,{value:e.version,children:["Version ",e.version," (",(t=e,t&&_l(t.updateTime||t.createTime)),")"]},e.version);var t}))]}),p?(0,Xe.jsx)(tf,{color:"yellow",label:"Modified"}):(0,Xe.jsx)(tf,{label:"Unmodified"}),!_t().isEmpty(_)&&(0,Xe.jsx)(Es,{disableFocusListener:!0,title:"There are validation or syntax errors. Validation errors at the root level may be seen by hovering over the opening brace.",children:(0,Xe.jsx)("div",{children:(0,Xe.jsx)(tf,{color:"red",label:"Validation"})})}),(0,Xe.jsxs)("div",{className:P.rightButtons,children:[(0,Xe.jsx)(ti,{disabled:!_t().isEmpty(_)||!p,onClick:function(){var e=Y.current.getValue();s({original:C?z:"",originalObj:C?I:null,modified:e})},children:"Save"}),(0,Xe.jsx)(ti,{disabled:!p,onClick:function(){return G(O)},variant:"secondary",children:"Reset"}),(0,Xe.jsxs)(Ha,{onClick:function(){return A({type:KT})},children:[j.toggleGraphPanel&&(0,Xe.jsx)(GT,{}),!j.toggleGraphPanel&&(0,Xe.jsx)(XT,{})]})]})]}),(0,Xe.jsx)(Zc,{height:"100%",width:"100%",theme:"vs-light",language:"json",value:z,autoIndent:!0,beforeMount:function(e){!function(e){e.languages.typescript.javascriptDefaults.setEagerModelSync(!0),e.languages.typescript.javascriptDefaults.setCompilerOptions({target:e.languages.typescript.ScriptTarget.ES6,allowNonTsExtensions:!0});var t=e.Uri.parse(FT);e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"http://conductor.tmp/schemas/workflow.json",fileMatch:[t.toString()],schema:IT}]})}(e)},onMount:function(e){Y.current=e},onValidate:function(e){k(e)},onChange:function(e){m(e!==z)},options:{smoothScrolling:!0,selectOnLineNumbers:!0,minimap:{enabled:!1}},path:FT})]}),(0,Xe.jsx)("span",{className:P.resizer,onMouseDown:function(e){return document.addEventListener("mouseup",V,!0),void document.addEventListener("mousemove",q,!0)}}),(0,Xe.jsx)("div",{className:P.workflowGraph,children:y&&(0,Xe.jsx)(FS,{dag:y,onClick:function(e){var t,n,r,i=Y.current.getModel().findMatches('"taskReferenceName": "'.concat(e.ref,'"'));i.length&&(Y.current.revealLineInCenter(null===(t=i[0])||void 0===t||null===(n=t.range)||void 0===n?void 0:n.startLineNumber,0),E(Y.current.deltaDecorations(T,[{range:null===(r=i[0])||void 0===r?void 0:r.range,options:{isWholeLine:!0,inlineClassName:P.editorLineDecorator}}])))}})})]})]})}var tE=(0,me.Z)(jd),nE=[{name:"name",renderer:function(e){return(0,Xe.jsx)(yt,{path:"/taskDef/".concat(e),children:e})}},{name:"description",grow:2},{name:"createTime",type:"date"},{name:"ownerEmail"},{name:"inputKeys",type:"json",sortable:!1},{name:"outputKeys",type:"json",sortable:!1},{name:"timeoutPolicy",grow:.5},{name:"timeoutSeconds",grow:.5},{name:"retryCount",grow:.5},{name:"retryLogic"},{name:"retryDelaySeconds",grow:.5},{name:"responseTimeoutSeconds",grow:.5},{name:"inputTemplate",type:"json",sortable:!1},{name:"rateLimitPerFrequency",grow:.5},{name:"rateLimitFrequencyInSeconds",grow:.5},{name:"name",label:"Executions",id:"executions_link",grow:.5,renderer:function(e){return(0,Xe.jsx)(yt,{path:"/search/by-tasks?tasks=".concat(e),newTab:!0,children:"Query"})},sortable:!1,searchable:!1},{name:"concurrentExecLimit"},{name:"pollTimeoutSeconds"}];function rE(){var e=tE(),t=Nf(),n=t.data,r=t.isFetching;return(0,Xe.jsxs)("div",{className:e.wrapper,children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsx)("title",{children:"Conductor UI - Task Definitions"})}),(0,Xe.jsx)(OT,{tabIndex:1,loading:r}),(0,Xe.jsxs)("div",{className:e.tabContent,children:[(0,Xe.jsx)("div",{className:e.buttonRow,children:(0,Xe.jsx)(ti,{component:yt,path:"/taskDef",startIcon:(0,Xe.jsx)(DT.Z,{}),children:"New Task Definition"})}),n&&(0,Xe.jsx)(Cl,{title:"".concat(n.length," results"),localStorageKey:"tasksTable",defaultShowColumns:["name","description","ownerEmail","timeoutPolicy","retryCount","executions_link"],keyField:"name",default:!0,data:n,columns:nE})]})]})}var iE={name:"",description:"Edit or extend this sample task. Set the task name to get started",retryCount:3,timeoutSeconds:3600,inputKeys:[],outputKeys:[],timeoutPolicy:"TIME_OUT_WF",retryLogic:"FIXED",retryDelaySeconds:60,responseTimeoutSeconds:600,rateLimitPerFrequency:0,rateLimitFrequencyInSeconds:1,ownerEmail:""};var oE=(0,me.Z)({rightButtons:{display:"flex",flexGrow:1,justifyContent:"flex-end",gap:8},toolbar:{paddingLeft:20}});function aE(t){var n=t.onSuccess,r=t.onCancel,i=t.document,o=oE(),a=(0,e.useRef)(null),s=(0,e.useState)(),u=(0,wt.Z)(s,2),l=u[0],c=u[1],f=Df(),d=(0,e.useMemo)((function(){if(!f||!i)return{text:""};var e=JSON.parse(i.modified),t=e.name,n=_t().get(i,"originalObj.name")!==t;return{text:i.modified,obj:e,isNew:n,isClash:n&&f.includes(t)}}),[i,f]),h=function(e){var t=cf();return(0,lf.useMutation)((function(e){var n=e.body,r=e.isNew;return ff("/metadata/taskdefs",t,{method:r?"post":"put",headers:{"Content-Type":"application/json"},body:JSON.stringify(r?[n]:n)})}),e)}({onSuccess:function(e){console.log("onsuccess",e),n(d.obj.name)},onError:function(e){console.log("onerror",e);var t=_t().isString(e.body)?e.body:JSON.stringify(e.body,null,2);c({message:"".concat("Failed to save the task definition.",": ").concat(t),dismissible:!0})}}),p=h.isLoading,m=h.mutate;(0,e.useEffect)((function(){d.isClash?c({message:"Cannot save task definition. Task name already in use.",dismissible:!1}):c(void 0)}),[d]);return(0,Xe.jsxs)(_d,{fullScreen:!0,open:!!i,onClose:function(){return r()},children:[(0,Xe.jsx)(ZT,{open:!!l,anchorOrigin:{vertical:"top",horizontal:"center"},transitionDuration:{exit:0},children:(0,Xe.jsx)(cd,{severity:"error",onClose:_t().get(l,"dismissible")?function(){return c()}:null,children:_t().get(l,"message")})}),p&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsxs)(Te,{className:o.toolbar,children:[(0,Xe.jsxs)(jo,{children:["Saving"," ",(0,Xe.jsx)("span",{style:{fontWeight:"bold"},children:_t().get(d,"obj.name")})]}),d.isNew&&(0,Xe.jsx)(tf,{label:"New",color:"yellow"}),(0,Xe.jsxs)("div",{className:o.rightButtons,children:[(0,Xe.jsx)(ti,{onClick:function(){m({body:d.obj,isNew:d.isNew})},disabled:d.isClash,children:"Save"}),(0,Xe.jsx)(ti,{onClick:function(){return r()},variant:"secondary",children:"Cancel"})]})]}),i&&(0,Xe.jsx)(Ic,{height:"100%",width:"100%",theme:"vs-light",language:"json",original:i.original,modified:i.modified,autoIndent:!0,onMount:function(e){a.current=e},options:{selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1}}})]})}var sE=(0,me.Z)({wrapper:{display:"flex",height:"100%",alignItems:"stretch",flexDirection:"column"},name:{fontWeight:"bold"},rightButtons:{display:"flex",flexGrow:1,justifyContent:"flex-end",gap:8}});function uE(){var t=sE(),n=pe(),r=bt(),i=(0,e.useState)(!1),o=(0,wt.Z)(i,2),a=o[0],s=o[1],u=(0,e.useState)([]),l=(0,wt.Z)(u,2),c=l[0],f=l[1],d=(0,e.useState)(!1),h=(0,wt.Z)(d,2),p=h[0],m=h[1],v=(0,e.useState)(null),g=(0,wt.Z)(v,2),y=g[0],b=g[1],w=(0,e.useRef)(),x=_t().get(n,"params.name"),_=function(e,t){var n;return e&&(n="/metadata/taskdefs/".concat(e)),df(["taskDef",e],n,{},t)}(x,iE),k=_.data,S=_.isFetching,M=_.refetch,T=(0,e.useMemo)((function(){return k?JSON.stringify(k,null,2):""}),[k]);return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsxs)("title",{children:["Conductor UI - Task Definition - ",x||"New Task"]})}),(0,Xe.jsx)(aE,{document:y,onCancel:function(){return b(null)},onSuccess:function(e){b(null),s(!1),e===x?M():r("/taskDef/".concat(e))}}),(0,Xe.jsx)(PT,{version:p,onConfirm:function(){w.current.getModel().setValue(T),m(!1),s(!1)},onClose:function(){return m(!1)}}),S&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsxs)("div",{className:t.wrapper,children:[(0,Xe.jsxs)(Te,{children:[(0,Xe.jsx)(jo,{className:t.name,children:x||"NEW"}),a?(0,Xe.jsx)(tf,{color:"yellow",label:"Modified"}):(0,Xe.jsx)(tf,{label:"Unmodified"}),!_t().isEmpty(c)&&(0,Xe.jsx)(tf,{color:"red",label:"Validation"}),(0,Xe.jsxs)("div",{className:t.rightButtons,children:[(0,Xe.jsx)(ti,{disabled:!_t().isEmpty(c)||!a,onClick:function(){b({original:x?T:"",originalObj:x?k:null,modified:w.current.getModel().getValue()})},children:"Save"}),(0,Xe.jsx)(ti,{disabled:!a,onClick:function(){return m(!0)},variant:"secondary",children:"Reset"})]})]}),(0,Xe.jsx)(Zc,{height:"100%",width:"100%",theme:"vs-light",language:"json",value:T,autoIndent:!0,beforeMount:function(e){},onMount:function(e){w.current=e},onValidate:function(e){f(e)},onChange:function(e){s(e!==T)},options:{selectOnLineNumbers:!0,minimap:{enabled:!1}}})]})]})}var lE=(0,me.Z)(jd),cE=[{name:"name",renderer:function(e){return(0,Xe.jsx)(yt,{path:"/eventHandlerDef/".concat(e),children:e})}},{name:"event"},{name:"createTime",type:"date"},{name:"actions",renderer:function(e){return JSON.stringify(e.map((function(e){return e.action})))}}];function fE(){var e=lE(),t=dM(),n=t.data,r=t.isFetching;return(0,Xe.jsxs)("div",{className:e.wrapper,children:[(0,Xe.jsx)(OT,{tabIndex:2,loading:r}),(0,Xe.jsx)(ST,{children:(0,Xe.jsx)("title",{children:"Conductor UI - Event Handler Definitions"})}),(0,Xe.jsx)("div",{className:e.tabContent,children:n&&(0,Xe.jsx)(Cl,{title:"".concat(n.length," results"),localStorageKey:"eventHandlersTable",defaultShowColumns:["name","event","actions"],keyField:"name",data:n,columns:cE})})]})}var dE=(0,me.Z)({wrapper:{display:"flex",height:"100%",alignItems:"stretch",flexDirection:"column"},header:jd.header,paper:{flex:1,margin:30,paddingTop:10}});function hE(){var t=dE(),n=pe(),r=dM(),i=r.data,o=r.isFetching,a=(0,e.useMemo)((function(){return i&&i.find((function(e){return e.name===n.params.name}))}),[i,n.params.name]);return(0,Xe.jsxs)("div",{className:t.wrapper,children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsxs)("title",{children:["Conductor UI - Event Handler Definition - $",n.params.name]})}),(0,Xe.jsxs)("div",{className:t.header,style:{paddingBottom:20},children:[(0,Xe.jsx)(Oo,{level:1,children:"Event Handler Definition"}),(0,Xe.jsx)(Oo,{level:4,children:n.params.name})]}),o&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsx)(ui,{className:t.paper,children:a&&(0,Xe.jsx)(Vc,{src:a})})]})}function pE(e,t,n){Ws(2,arguments);var r=Ys(e),i=Ys(t),o=n||{},a=o.locale,s=void 0===a?au:a,u=o.weekStartsOn,l=void 0===u?0:u;if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");if(!s.formatRelative)throw new RangeError("locale must contain formatRelative property");var c,f=al(r,i);if(isNaN(f))throw new RangeError("Invalid time value");c=f<-6?"other":f<-1?"lastWeek":f<0?"yesterday":f<1?"today":f<2?"tomorrow":f<7?"nextWeek":"other";var d=lu(r,Fu(r)),h=lu(i,Fu(i)),p=s.formatRelative(c,d,h,{locale:s,weekStartsOn:l});return Gu(r,p,{locale:s,weekStartsOn:l})}var mE=(0,me.Z)(jd);function vE(){var e=Df(),t=bt(),n=mE(),r=pe().params.name||"",i=Cf(r),o=i.data,a=i.isFetching,s=function(e){var t,n=new Map,r=xs(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.isSuccess&&n.set(i.data.domain,i.data.size)}}catch(o){r.e(o)}finally{r.f()}return n}(Of(r,o?o.map((function(e){return e.domain})):null)),u=new Date;return(0,Xe.jsxs)("div",{className:n.wrapper,children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsx)("title",{children:"Conductor UI - Task Queue"})}),(0,Xe.jsxs)("div",{className:n.header,style:{paddingBottom:20},children:[(0,Xe.jsx)(Oo,{level:3,style:{marginBottom:30},children:"Task Queues"}),(0,Xe.jsx)(bs,{label:"Select a Task Name",style:{width:500},options:e,onChange:function(e,n){return null===(r=n)&&(r=""),void t("/taskQueue/".concat(r));var r},disableClearable:!0,getOptionSelected:function(e,t){return""!==t&&t===e},value:r})]}),a&&(0,Xe.jsx)(Qc,{}),(0,Xe.jsx)("div",{className:n.tabContent,children:!_t().isUndefined(o)&&(0,Xe.jsx)(ui,{children:(0,Xe.jsx)(Cl,{title:"Poll Status by Domain",defaultShowColumns:["workerId","domain","lastPollTime","queueSize"],default:!0,data:o,columns:[{name:"domain",label:"Domain",renderer:function(e){return _t().isEmpty(e)?"(Domain not set)":e}},{name:"workerId",label:"Last Polled Worker"},{name:"lastPollTime",label:"Last Poll Time",renderer:function(e){return"".concat(_l(e)," (").concat(pE(e,u),")")}},{name:"domain",id:"queueSize",label:"Queue Size",renderer:function(e){return s.get(e)}}]})})})]})}var gE=n(50077),yE=n.n(gE),bE=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===wE}(e)}(e)};var wE="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function xE(e,t){return!1!==t.clone&&t.isMergeableObject(e)?kE((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function _E(e,t,n){return e.concat(t).map((function(e){return xE(e,n)}))}function kE(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||_E,n.isMergeableObject=n.isMergeableObject||bE;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=xE(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=kE(e[i],t[i],n):r[i]=xE(t[i],n)})),r}(e,t,n):xE(t,n)}kE.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return kE(e,n,t)}),{})};var SE=kE,ME="object"==typeof global&&global&&global.Object===Object&&global,TE="object"==typeof self&&self&&self.Object===Object&&self,EE=ME||TE||Function("return this")(),CE=EE.Symbol,OE=Object.prototype,DE=OE.hasOwnProperty,NE=OE.toString,jE=CE?CE.toStringTag:void 0;var AE=function(e){var t=DE.call(e,jE),n=e[jE];try{e[jE]=void 0;var r=!0}catch(o){}var i=NE.call(e);return r&&(t?e[jE]=n:delete e[jE]),i},PE=Object.prototype.toString;var RE=function(e){return PE.call(e)},IE=CE?CE.toStringTag:void 0;var FE=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":IE&&IE in Object(e)?AE(e):RE(e)};var LE=function(e,t){return function(n){return e(t(n))}},zE=LE(Object.getPrototypeOf,Object);var BE=function(e){return null!=e&&"object"==typeof e},ZE=Function.prototype,WE=Object.prototype,HE=ZE.toString,YE=WE.hasOwnProperty,UE=HE.call(Object);var VE=function(e){if(!BE(e)||"[object Object]"!=FE(e))return!1;var t=zE(e);if(null===t)return!0;var n=YE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&HE.call(n)==UE};var qE=function(){this.__data__=[],this.size=0};var GE=function(e,t){return e===t||e!==e&&t!==t};var XE=function(e,t){for(var n=e.length;n--;)if(GE(e[n][0],t))return n;return-1},$E=Array.prototype.splice;var QE=function(e){var t=this.__data__,n=XE(t,e);return!(n<0)&&(n==t.length-1?t.pop():$E.call(t,n,1),--this.size,!0)};var KE=function(e){var t=this.__data__,n=XE(t,e);return n<0?void 0:t[n][1]};var JE=function(e){return XE(this.__data__,e)>-1};var eC=function(e,t){var n=this.__data__,r=XE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tC(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tC.prototype.clear=qE,tC.prototype.delete=QE,tC.prototype.get=KE,tC.prototype.has=JE,tC.prototype.set=eC;var nC=tC;var rC=function(){this.__data__=new nC,this.size=0};var iC=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var oC=function(e){return this.__data__.get(e)};var aC=function(e){return this.__data__.has(e)};var sC=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var uC=function(e){if(!sC(e))return!1;var t=FE(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lC=EE["__core-js_shared__"],cC=function(){var e=/[^.]+$/.exec(lC&&lC.keys&&lC.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var fC=function(e){return!!cC&&cC in e},dC=Function.prototype.toString;var hC=function(e){if(null!=e){try{return dC.call(e)}catch(t){}try{return e+""}catch(t){}}return""},pC=/^\[object .+?Constructor\]$/,mC=Function.prototype,vC=Object.prototype,gC=mC.toString,yC=vC.hasOwnProperty,bC=RegExp("^"+gC.call(yC).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var wC=function(e){return!(!sC(e)||fC(e))&&(uC(e)?bC:pC).test(hC(e))};var xC=function(e,t){return null==e?void 0:e[t]};var _C=function(e,t){var n=xC(e,t);return wC(n)?n:void 0},kC=_C(EE,"Map"),SC=_C(Object,"create");var MC=function(){this.__data__=SC?SC(null):{},this.size=0};var TC=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},EC=Object.prototype.hasOwnProperty;var CC=function(e){var t=this.__data__;if(SC){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return EC.call(t,e)?t[e]:void 0},OC=Object.prototype.hasOwnProperty;var DC=function(e){var t=this.__data__;return SC?void 0!==t[e]:OC.call(t,e)};var NC=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=SC&&void 0===t?"__lodash_hash_undefined__":t,this};function jC(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jC.prototype.clear=MC,jC.prototype.delete=TC,jC.prototype.get=CC,jC.prototype.has=DC,jC.prototype.set=NC;var AC=jC;var PC=function(){this.size=0,this.__data__={hash:new AC,map:new(kC||nC),string:new AC}};var RC=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var IC=function(e,t){var n=e.__data__;return RC(t)?n["string"==typeof t?"string":"hash"]:n.map};var FC=function(e){var t=IC(this,e).delete(e);return this.size-=t?1:0,t};var LC=function(e){return IC(this,e).get(e)};var zC=function(e){return IC(this,e).has(e)};var BC=function(e,t){var n=IC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ZC(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ZC.prototype.clear=PC,ZC.prototype.delete=FC,ZC.prototype.get=LC,ZC.prototype.has=zC,ZC.prototype.set=BC;var WC=ZC;var HC=function(e,t){var n=this.__data__;if(n instanceof nC){var r=n.__data__;if(!kC||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new WC(r)}return n.set(e,t),this.size=n.size,this};function YC(e){var t=this.__data__=new nC(e);this.size=t.size}YC.prototype.clear=rC,YC.prototype.delete=iC,YC.prototype.get=oC,YC.prototype.has=aC,YC.prototype.set=HC;var UC=YC;var VC=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},qC=function(){try{var e=_C(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var GC=function(e,t,n){"__proto__"==t&&qC?qC(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},XC=Object.prototype.hasOwnProperty;var $C=function(e,t,n){var r=e[t];XC.call(e,t)&&GE(r,n)&&(void 0!==n||t in e)||GC(e,t,n)};var QC=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?GC(n,s,u):$C(n,s,u)}return n};var KC=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var JC=function(e){return BE(e)&&"[object Arguments]"==FE(e)},eO=Object.prototype,tO=eO.hasOwnProperty,nO=eO.propertyIsEnumerable,rO=JC(function(){return arguments}())?JC:function(e){return BE(e)&&tO.call(e,"callee")&&!nO.call(e,"callee")},iO=rO,oO=Array.isArray;var aO=function(){return!1},sO="object"==typeof exports&&exports&&!exports.nodeType&&exports,uO=sO&&"object"==typeof module&&module&&!module.nodeType&&module,lO=uO&&uO.exports===sO?EE.Buffer:void 0,cO=(lO?lO.isBuffer:void 0)||aO,fO=/^(?:0|[1-9]\d*)$/;var dO=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&fO.test(e))&&e>-1&&e%1==0&&e<t};var hO=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},pO={};pO["[object Float32Array]"]=pO["[object Float64Array]"]=pO["[object Int8Array]"]=pO["[object Int16Array]"]=pO["[object Int32Array]"]=pO["[object Uint8Array]"]=pO["[object Uint8ClampedArray]"]=pO["[object Uint16Array]"]=pO["[object Uint32Array]"]=!0,pO["[object Arguments]"]=pO["[object Array]"]=pO["[object ArrayBuffer]"]=pO["[object Boolean]"]=pO["[object DataView]"]=pO["[object Date]"]=pO["[object Error]"]=pO["[object Function]"]=pO["[object Map]"]=pO["[object Number]"]=pO["[object Object]"]=pO["[object RegExp]"]=pO["[object Set]"]=pO["[object String]"]=pO["[object WeakMap]"]=!1;var mO=function(e){return BE(e)&&hO(e.length)&&!!pO[FE(e)]};var vO=function(e){return function(t){return e(t)}},gO="object"==typeof exports&&exports&&!exports.nodeType&&exports,yO=gO&&"object"==typeof module&&module&&!module.nodeType&&module,bO=yO&&yO.exports===gO&&ME.process,wO=function(){try{var e=yO&&yO.require&&yO.require("util").types;return e||bO&&bO.binding&&bO.binding("util")}catch(t){}}(),xO=wO&&wO.isTypedArray,_O=xO?vO(xO):mO,kO=Object.prototype.hasOwnProperty;var SO=function(e,t){var n=oO(e),r=!n&&iO(e),i=!n&&!r&&cO(e),o=!n&&!r&&!i&&_O(e),a=n||r||i||o,s=a?KC(e.length,String):[],u=s.length;for(var l in e)!t&&!kO.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||dO(l,u))||s.push(l);return s},MO=Object.prototype;var TO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||MO)},EO=LE(Object.keys,Object),CO=Object.prototype.hasOwnProperty;var OO=function(e){if(!TO(e))return EO(e);var t=[];for(var n in Object(e))CO.call(e,n)&&"constructor"!=n&&t.push(n);return t};var DO=function(e){return null!=e&&hO(e.length)&&!uC(e)};var NO=function(e){return DO(e)?SO(e):OO(e)};var jO=function(e,t){return e&&QC(t,NO(t),e)};var AO=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},PO=Object.prototype.hasOwnProperty;var RO=function(e){if(!sC(e))return AO(e);var t=TO(e),n=[];for(var r in e)("constructor"!=r||!t&&PO.call(e,r))&&n.push(r);return n};var IO=function(e){return DO(e)?SO(e,!0):RO(e)};var FO=function(e,t){return e&&QC(t,IO(t),e)},LO="object"==typeof exports&&exports&&!exports.nodeType&&exports,zO=LO&&"object"==typeof module&&module&&!module.nodeType&&module,BO=zO&&zO.exports===LO?EE.Buffer:void 0,ZO=BO?BO.allocUnsafe:void 0;var WO=function(e,t){if(t)return e.slice();var n=e.length,r=ZO?ZO(n):new e.constructor(n);return e.copy(r),r};var HO=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var YO=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var UO=function(){return[]},VO=Object.prototype.propertyIsEnumerable,qO=Object.getOwnPropertySymbols,GO=qO?function(e){return null==e?[]:(e=Object(e),YO(qO(e),(function(t){return VO.call(e,t)})))}:UO,XO=GO;var $O=function(e,t){return QC(e,XO(e),t)};var QO=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},KO=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)QO(t,XO(e)),e=zE(e);return t}:UO,JO=KO;var eD=function(e,t){return QC(e,JO(e),t)};var tD=function(e,t,n){var r=t(e);return oO(e)?r:QO(r,n(e))};var nD=function(e){return tD(e,NO,XO)};var rD=function(e){return tD(e,IO,JO)},iD=_C(EE,"DataView"),oD=_C(EE,"Promise"),aD=_C(EE,"Set"),sD=_C(EE,"WeakMap"),uD="[object Map]",lD="[object Promise]",cD="[object Set]",fD="[object WeakMap]",dD="[object DataView]",hD=hC(iD),pD=hC(kC),mD=hC(oD),vD=hC(aD),gD=hC(sD),yD=FE;(iD&&yD(new iD(new ArrayBuffer(1)))!=dD||kC&&yD(new kC)!=uD||oD&&yD(oD.resolve())!=lD||aD&&yD(new aD)!=cD||sD&&yD(new sD)!=fD)&&(yD=function(e){var t=FE(e),n="[object Object]"==t?e.constructor:void 0,r=n?hC(n):"";if(r)switch(r){case hD:return dD;case pD:return uD;case mD:return lD;case vD:return cD;case gD:return fD}return t});var bD=yD,wD=Object.prototype.hasOwnProperty;var xD=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&wD.call(e,"index")&&(n.index=e.index,n.input=e.input),n},_D=EE.Uint8Array;var kD=function(e){var t=new e.constructor(e.byteLength);return new _D(t).set(new _D(e)),t};var SD=function(e,t){var n=t?kD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},MD=/\w*$/;var TD=function(e){var t=new e.constructor(e.source,MD.exec(e));return t.lastIndex=e.lastIndex,t},ED=CE?CE.prototype:void 0,CD=ED?ED.valueOf:void 0;var OD=function(e){return CD?Object(CD.call(e)):{}};var DD=function(e,t){var n=t?kD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ND=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return kD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return SD(e,n);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 DD(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return TD(e);case"[object Symbol]":return OD(e)}},jD=Object.create,AD=function(){function e(){}return function(t){if(!sC(t))return{};if(jD)return jD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),PD=AD;var RD=function(e){return"function"!=typeof e.constructor||TO(e)?{}:PD(zE(e))};var ID=function(e){return BE(e)&&"[object Map]"==bD(e)},FD=wO&&wO.isMap,LD=FD?vO(FD):ID;var zD=function(e){return BE(e)&&"[object Set]"==bD(e)},BD=wO&&wO.isSet,ZD=BD?vO(BD):zD,WD="[object Arguments]",HD="[object Function]",YD="[object Object]",UD={};UD[WD]=UD["[object Array]"]=UD["[object ArrayBuffer]"]=UD["[object DataView]"]=UD["[object Boolean]"]=UD["[object Date]"]=UD["[object Float32Array]"]=UD["[object Float64Array]"]=UD["[object Int8Array]"]=UD["[object Int16Array]"]=UD["[object Int32Array]"]=UD["[object Map]"]=UD["[object Number]"]=UD["[object Object]"]=UD["[object RegExp]"]=UD["[object Set]"]=UD["[object String]"]=UD["[object Symbol]"]=UD["[object Uint8Array]"]=UD["[object Uint8ClampedArray]"]=UD["[object Uint16Array]"]=UD["[object Uint32Array]"]=!0,UD["[object Error]"]=UD[HD]=UD["[object WeakMap]"]=!1;var VD=function e(t,n,r,i,o,a){var s,u=1&n,l=2&n,c=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!sC(t))return t;var f=oO(t);if(f){if(s=xD(t),!u)return HO(t,s)}else{var d=bD(t),h=d==HD||"[object GeneratorFunction]"==d;if(cO(t))return WO(t,u);if(d==YD||d==WD||h&&!o){if(s=l||h?{}:RD(t),!u)return l?eD(t,FO(s,t)):$O(t,jO(s,t))}else{if(!UD[d])return o?t:{};s=ND(t,d,u)}}a||(a=new UC);var p=a.get(t);if(p)return p;a.set(t,s),ZD(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):LD(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(c?l?rD:nD:l?IO:NO)(t);return VC(m||t,(function(i,o){m&&(i=t[o=i]),$C(s,o,e(i,n,r,o,t,a))})),s};var qD=function(e){return VD(e,4)};var GD=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var XD=function(e){return"symbol"==typeof e||BE(e)&&"[object Symbol]"==FE(e)};function $D(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new($D.Cache||WC),n}$D.Cache=WC;var QD=$D;var KD=function(e){var t=QD(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},JD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eN=/\\(\\)?/g,tN=KD((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(JD,(function(e,n,r,i){t.push(r?i.replace(eN,"$1"):n||e)})),t})),nN=tN;var rN=function(e){if("string"==typeof e||XD(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},iN=CE?CE.prototype:void 0,oN=iN?iN.toString:void 0;var aN=function e(t){if("string"==typeof t)return t;if(oO(t))return GD(t,e)+"";if(XD(t))return oN?oN.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var sN=function(e){return null==e?"":aN(e)};var uN=function(e){return oO(e)?GD(e,rN):XD(e)?[e]:HO(nN(sN(e)))};var lN=function(e,t){};var cN=function(e){return VD(e,5)};function fN(){return fN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fN.apply(this,arguments)}function dN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function hN(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function pN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mN=function(e){return Array.isArray(e)&&0===e.length},vN=function(e){return"function"===typeof e},gN=function(e){return null!==e&&"object"===typeof e},yN=function(e){return String(Math.floor(Number(e)))===e},bN=function(e){return"[object String]"===Object.prototype.toString.call(e)},wN=function(t){return 0===e.Children.count(t)},xN=function(e){return gN(e)&&vN(e.then)};function _N(e,t,n,r){void 0===r&&(r=0);for(var i=uN(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function kN(e,t,n){for(var r=qD(e),i=r,o=0,a=uN(t);o<a.length-1;o++){var s=a[o],u=_N(e,a.slice(0,o+1));if(u&&(gN(u)||Array.isArray(u)))i=i[s]=qD(u);else{var l=a[o+1];i=i[s]=yN(l)&&Number(l)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function SN(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];gN(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},SN(s,t,n,r[a])):r[a]=t}return r}var MN=(0,e.createContext)(void 0);MN.displayName="FormikContext";var TN=MN.Provider;MN.Consumer;function EN(){var t=(0,e.useContext)(MN);return t||lN(!1),t}function CN(e,t){switch(t.type){case"SET_VALUES":return fN({},e,{values:t.payload});case"SET_TOUCHED":return fN({},e,{touched:t.payload});case"SET_ERRORS":return yE()(e.errors,t.payload)?e:fN({},e,{errors:t.payload});case"SET_STATUS":return fN({},e,{status:t.payload});case"SET_ISSUBMITTING":return fN({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return fN({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return fN({},e,{values:kN(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return fN({},e,{touched:kN(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return fN({},e,{errors:kN(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return fN({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return fN({},e,{touched:SN(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return fN({},e,{isSubmitting:!1});default:return e}}var ON={},DN={};function NN(t){var n=t.validateOnChange,r=void 0===n||n,i=t.validateOnBlur,o=void 0===i||i,a=t.validateOnMount,s=void 0!==a&&a,u=t.isInitialValid,l=t.enableReinitialize,c=void 0!==l&&l,f=t.onSubmit,d=hN(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=fN({validateOnChange:r,validateOnBlur:o,validateOnMount:s,onSubmit:f},d),p=(0,e.useRef)(h.initialValues),m=(0,e.useRef)(h.initialErrors||ON),v=(0,e.useRef)(h.initialTouched||DN),g=(0,e.useRef)(h.initialStatus),y=(0,e.useRef)(!1),b=(0,e.useRef)({});(0,e.useEffect)((function(){return y.current=!0,function(){y.current=!1}}),[]);var w=(0,e.useReducer)(CN,{values:h.initialValues,errors:h.initialErrors||ON,touched:h.initialTouched||DN,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),x=w[0],_=w[1],k=(0,e.useCallback)((function(e,t){return new Promise((function(n,r){var i=h.validate(e,t);null==i?n(ON):xN(i)?i.then((function(e){n(e||ON)}),(function(e){r(e)})):n(i)}))}),[h.validate]),S=(0,e.useCallback)((function(e,t){var n=h.validationSchema,r=vN(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var i=AN(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){i.then((function(){e(ON)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return kN(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;_N(t,a.path)||(t=kN(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[h.validationSchema]),M=(0,e.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),T=(0,e.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return vN(b.current[e].validate)})),n=t.length>0?t.map((function(t){return M(t,_N(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=kN(e,t[r],n)),e}),{})}))}),[M]),E=(0,e.useCallback)((function(e){return Promise.all([T(e),h.validationSchema?S(e):{},h.validate?k(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return SE.all([t,n,r],{arrayMerge:PN})}))}),[h.validate,h.validationSchema,T,k,S]),C=IN((function(e){return void 0===e&&(e=x.values),_({type:"SET_ISVALIDATING",payload:!0}),E(e).then((function(e){return y.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e}))}));(0,e.useEffect)((function(){s&&!0===y.current&&yE()(p.current,h.initialValues)&&C(p.current)}),[s,C]);var O=(0,e.useCallback)((function(e){var t=e&&e.values?e.values:p.current,n=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},r=e&&e.touched?e.touched:v.current?v.current:h.initialTouched||{},i=e&&e.status?e.status:g.current?g.current:h.initialStatus;p.current=t,m.current=n,v.current=r,g.current=i;var o=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(x.values,G);xN(a)?a.then(o):o()}else o()}),[h.initialErrors,h.initialStatus,h.initialTouched]);(0,e.useEffect)((function(){!0!==y.current||yE()(p.current,h.initialValues)||(c&&(p.current=h.initialValues,O()),s&&C(p.current))}),[c,h.initialValues,O,s,C]),(0,e.useEffect)((function(){c&&!0===y.current&&!yE()(m.current,h.initialErrors)&&(m.current=h.initialErrors||ON,_({type:"SET_ERRORS",payload:h.initialErrors||ON}))}),[c,h.initialErrors]),(0,e.useEffect)((function(){c&&!0===y.current&&!yE()(v.current,h.initialTouched)&&(v.current=h.initialTouched||DN,_({type:"SET_TOUCHED",payload:h.initialTouched||DN}))}),[c,h.initialTouched]),(0,e.useEffect)((function(){c&&!0===y.current&&!yE()(g.current,h.initialStatus)&&(g.current=h.initialStatus,_({type:"SET_STATUS",payload:h.initialStatus}))}),[c,h.initialStatus,h.initialTouched]);var D=IN((function(e){if(b.current[e]&&vN(b.current[e].validate)){var t=_N(x.values,e),n=b.current[e].validate(t);return xN(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})}))):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return h.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),S(x.values,e).then((function(e){return e})).then((function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),_({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),N=(0,e.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),j=(0,e.useCallback)((function(e){delete b.current[e]}),[]),A=IN((function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?C(x.values):Promise.resolve()})),P=(0,e.useCallback)((function(e){_({type:"SET_ERRORS",payload:e})}),[]),R=IN((function(e,t){var n=vN(e)?e(x.values):e;return _({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?C(n):Promise.resolve()})),I=(0,e.useCallback)((function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),F=IN((function(e,t,n){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?C(kN(x.values,e,t)):Promise.resolve()})),L=(0,e.useCallback)((function(e,t){var n,r=t,i=e;if(!bN(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,u=o.id,l=o.value,c=o.checked,f=(o.outerHTML,o.options),d=o.multiple;r=t||(s||u),i=/number|range/.test(a)?(n=parseFloat(l),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(_N(x.values,r),c,l):f&&d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):l}r&&F(r,i)}),[F,x.values]),z=IN((function(e){if(bN(e))return function(t){return L(t,e)};L(e)})),B=IN((function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?C(x.values):Promise.resolve()})),Z=(0,e.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));B(o,!0)}),[B]),W=IN((function(e){if(bN(e))return function(t){return Z(t,e)};Z(e)})),H=(0,e.useCallback)((function(e){vN(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),Y=(0,e.useCallback)((function(e){_({type:"SET_STATUS",payload:e})}),[]),U=(0,e.useCallback)((function(e){_({type:"SET_ISSUBMITTING",payload:e})}),[]),V=IN((function(){return _({type:"SUBMIT_ATTEMPT"}),C().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=X()))return}catch(r){throw r}return Promise.resolve(n).then((function(e){return y.current&&_({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(y.current)throw _({type:"SUBMIT_FAILURE"}),e}))}if(y.current&&(_({type:"SUBMIT_FAILURE"}),t))throw e}))})),q=IN((function(e){e&&e.preventDefault&&vN(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&vN(e.stopPropagation)&&e.stopPropagation(),V().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),G={resetForm:O,validateForm:C,validateField:D,setErrors:P,setFieldError:I,setFieldTouched:B,setFieldValue:F,setStatus:Y,setSubmitting:U,setTouched:A,setValues:R,setFormikState:H,submitForm:V},X=IN((function(){return f(x.values,G)})),$=IN((function(e){e&&e.preventDefault&&vN(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&vN(e.stopPropagation)&&e.stopPropagation(),O()})),Q=(0,e.useCallback)((function(e){return{value:_N(x.values,e),error:_N(x.errors,e),touched:!!_N(x.touched,e),initialValue:_N(p.current,e),initialTouched:!!_N(v.current,e),initialError:_N(m.current,e)}}),[x.errors,x.touched,x.values]),K=(0,e.useCallback)((function(e){return{setValue:function(t,n){return F(e,t,n)},setTouched:function(t,n){return B(e,t,n)},setError:function(t){return I(e,t)}}}),[F,B,I]),J=(0,e.useCallback)((function(e){var t=gN(e),n=t?e.name:e,r=_N(x.values,n),i={name:n,value:r,onChange:z,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,u=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&u&&(i.value=i.value||[],i.multiple=!0)}return i}),[W,z,x.values]),ee=(0,e.useMemo)((function(){return!yE()(p.current,x.values)}),[p.current,x.values]),te=(0,e.useMemo)((function(){return"undefined"!==typeof u?ee?x.errors&&0===Object.keys(x.errors).length:!1!==u&&vN(u)?u(h):u:x.errors&&0===Object.keys(x.errors).length}),[u,ee,x.errors,h]);return fN({},x,{initialValues:p.current,initialErrors:m.current,initialTouched:v.current,initialStatus:g.current,handleBlur:W,handleChange:z,handleReset:$,handleSubmit:q,resetForm:O,setErrors:P,setFormikState:H,setFieldTouched:B,setFieldValue:F,setFieldError:I,setStatus:Y,setSubmitting:U,setTouched:A,setValues:R,submitForm:V,validateForm:C,validateField:D,isValid:te,dirty:ee,unregisterField:j,registerField:N,getFieldProps:J,getFieldMeta:Q,getFieldHelpers:K,validateOnBlur:o,validateOnChange:r,validateOnMount:s})}function jN(t){var n=NN(t),r=t.component,i=t.children,o=t.render,a=t.innerRef;return(0,e.useImperativeHandle)(a,(function(){return n})),(0,e.createElement)(TN,{value:n},r?(0,e.createElement)(r,n):o?o(n):i?vN(i)?i(n):wN(i)?null:e.Children.only(i):null)}function AN(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||VE(e)?AN(e):""!==e?e:void 0})):VE(e[r])?t[r]=AN(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function PN(e,t,n){var r=e.slice();return t.forEach((function(t,i){if("undefined"===typeof r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?SE(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=SE(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var RN="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?e.useLayoutEffect:e.useEffect;function IN(t){var n=(0,e.useRef)(t);return RN((function(){n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current.apply(void 0,t)}),[])}function FN(t){var n=EN(),r=n.getFieldProps,i=n.getFieldMeta,o=n.getFieldHelpers,a=n.registerField,s=n.unregisterField,u=gN(t)?t:{name:t},l=u.name,c=u.validate;return(0,e.useEffect)((function(){return l&&a(l,{validate:c}),function(){l&&s(l)}}),[a,s,l,c]),l||lN(!1),[r(u),i(l),o(l)]}var LN=(0,e.forwardRef)((function(t,n){var r=t.action,i=hN(t,["action"]),o=null!=r?r:"#",a=EN(),s=a.handleReset,u=a.handleSubmit;return(0,e.createElement)("form",Object.assign({onSubmit:u,ref:n,onReset:s,action:o},i))}));LN.displayName="Form";var zN=function(e,t,n){var r=BN(e);return r.splice(t,0,n),r},BN=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(fN({},e,{length:t+1}))}return[]},ZN=function(t){function n(e){var n;return(n=t.call(this,e)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i="function"===typeof r?r:e,a="function"===typeof t?t:e,s=kN(n.values,o,e(_N(n.values,o))),u=r?i(_N(n.errors,o)):void 0,l=t?a(_N(n.touched,o)):void 0;return mN(u)&&(u=void 0),mN(l)&&(l=void 0),fN({},n,{values:s,errors:r?kN(n.errors,o,u):n.errors,touched:t?kN(n.touched,o,l):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(BN(t),[cN(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=BN(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=BN(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return zN(n,e,t)}),(function(t){return zN(t,e,null)}),(function(t){return zN(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=BN(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(pN(n)),n.pop=n.pop.bind(pN(n)),n}dN(n,t);var r=n.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!yE()(_N(e.formik.values,e.name),_N(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?BN(n):[];return t||(t=r[e]),vN(r.splice)&&r.splice(e,1),r}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},r.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},n=this.props,r=n.component,i=n.render,o=n.children,a=n.name,s=fN({},t,{form:hN(n.formik,["validate","validationSchema"]),name:a});return r?(0,e.createElement)(r,s):i?i(s):o?"function"===typeof o?o(s):wN(o)?null:e.Children.only(o):null},n}(e.Component);ZN.defaultProps={validateOnChange:!0};e.Component,e.Component;var WN,HN,YN=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.color,a=void 0===o?"secondary":o,s=t.edge,u=void 0!==s&&s,l=t.size,c=void 0===l?"medium":l,f=(0,ve.Z)(t,["classes","className","color","edge","size"]),d=e.createElement("span",{className:r.thumb});return e.createElement("span",{className:(0,ge.Z)(r.root,i,{start:r.edgeStart,end:r.edgeEnd}[u],"small"===c&&r["size".concat((0,be.Z)(c))])},e.createElement(Os,(0,p.Z)({type:"checkbox",icon:d,checkedIcon:d,classes:{root:(0,ge.Z)(r.switchBase,r["color".concat((0,be.Z)(a))]),input:r.input,checked:r.checked,disabled:r.disabled},ref:n},f)),e.createElement("span",{className:r.track}))})),UN=(0,ye.Z)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(YN),VN=n(57407);try{WN=Map}catch(xR){}try{HN=Set}catch(xR){}function qN(e,t,n){if(!e||"object"!==typeof e||"function"===typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(GN);if(WN&&e instanceof WN)return new Map(Array.from(e.entries()));if(HN&&e instanceof HN)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var i in n.push(r),e){var o=t.findIndex((function(t){return t===e[i]}));r[i]=o>-1?n[o]:qN(e[i],t,n)}return r}return e}function GN(e){return qN(e,[],[])}var XN=Object.prototype.toString,$N=Error.prototype.toString,QN=RegExp.prototype.toString,KN="undefined"!==typeof Symbol?Symbol.prototype.toString:function(){return""},JN=/^Symbol\((.*)\)(.*)$/;function ej(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}function tj(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;var n=typeof e;if("number"===n)return ej(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return KN.call(e).replace(JN,"Symbol($1)");var r=XN.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+$N.call(e)+"]":"RegExp"===r?QN.call(e):null}function nj(e,t){var n=tj(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){var r=tj(this[e],t);return null!==r?r:n}),2)}var rj={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(e){var t=e.path,n=e.type,r=e.value,i=e.originalValue,o=null!=i&&i!==r,a="".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(nj(r,!0),"`")+(o?" (cast from the value `".concat(nj(i,!0),"`)."):".");return null===r&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},ij={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},oj={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},aj={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},sj={isValue:"${path} field must be ${value}"},uj={noUnknown:"${path} field has unspecified keys: ${unknown}"},lj={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},cj=(Object.assign(Object.create(null),{mixed:rj,string:ij,number:oj,date:aj,object:uj,array:lj,boolean:sj}),n(17805)),fj=n.n(cj),dj=function(e){return e&&e.__isYupSchema__},hj=function(){function e(t,n){if(r(this,e),this.fn=void 0,this.refs=t,this.refs=t,"function"!==typeof n){if(!fj()(n,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var i=n.is,o=n.then,a=n.otherwise,s="function"===typeof i?i:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return e===i}))};this.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.pop(),i=t.pop(),u=s.apply(void 0,t)?o:a;if(u)return"function"===typeof u?u(i):i.concat(u.resolve(r))}}else this.fn=n}return(0,i.Z)(e,[{key:"resolve",value:function(e,t){var n=this.refs.map((function(e){return e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)})),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!dj(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}]),e}(),pj=hj;function mj(e,t,n){return mj=u()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,o.Z)(i,n.prototype),i},mj.apply(null,arguments)}function vj(e){var t="function"===typeof Map?new Map:void 0;return vj=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return mj(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,o.Z)(r,e)},vj(e)}function gj(e){return null==e?[]:[].concat(e)}function yj(){return yj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yj.apply(this,arguments)}var bj=/\$\{\s*(\w+)\s*\}/g,wj=function(e){a(n,e);var t=d(n);function n(e,i,o,a){var s;return r(this,n),(s=t.call(this)).value=void 0,s.path=void 0,s.type=void 0,s.errors=void 0,s.params=void 0,s.inner=void 0,s.name="ValidationError",s.value=i,s.path=o,s.type=a,s.errors=[],s.inner=[],gj(e).forEach((function(e){var t;n.isError(e)?((t=s.errors).push.apply(t,(0,Ne.Z)(e.errors)),s.inner=s.inner.concat(e.inner.length?e.inner:e)):s.errors.push(e)})),s.message=s.errors.length>1?"".concat(s.errors.length," errors occurred"):s.errors[0],Error.captureStackTrace&&Error.captureStackTrace((0,c.Z)(s),n),s}return(0,i.Z)(n,null,[{key:"formatError",value:function(e,t){var n=t.label||t.path||"this";return n!==t.path&&(t=yj({},t,{path:n})),"string"===typeof e?e.replace(bj,(function(e,n){return nj(t[n])})):"function"===typeof e?e(t):e}},{key:"isError",value:function(e){return e&&"ValidationError"===e.name}}]),n}(vj(Error));function xj(e,t){var n=e.endEarly,r=e.tests,i=e.args,o=e.value,a=e.errors,s=e.sort,u=e.path,l=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(t),c=r.length,f=[];if(a=a||[],!c)return a.length?l(new wj(a,o,u)):l(null,o);for(var d=0;d<r.length;d++){(0,r[d])(i,(function(e){if(e){if(!wj.isError(e))return l(e,o);if(n)return e.value=o,l(e,o);f.push(e)}if(--c<=0){if(f.length&&(s&&f.sort(s),a.length&&f.push.apply(f,(0,Ne.Z)(a)),a=f),a.length)return void l(new wj(a,o,u),o);l(null,o)}}))}}var _j=n(37702),kj=n.n(_j),Sj=n(52758),Mj="$",Tj=".";var Ej=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,e),this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Mj,this.isValue=this.key[0]===Tj,this.isSibling=!this.isContext&&!this.isValue;var i=this.isContext?Mj:this.isValue?Tj:"";this.path=this.key.slice(i.length),this.getter=this.path&&(0,Sj.getter)(this.path,!0),this.map=n.map}return(0,i.Z)(e,[{key:"getValue",value:function(e,t,n){var r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}},{key:"cast",value:function(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}},{key:"resolve",value:function(){return this}},{key:"describe",value:function(){return{type:"ref",key:this.key}}},{key:"toString",value:function(){return"Ref(".concat(this.key,")")}}],[{key:"isRef",value:function(e){return e&&e.__isYupRef}}]),e}();function Cj(){return Cj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cj.apply(this,arguments)}function Oj(e){function t(t,n){var r=t.value,i=t.path,o=void 0===i?"":i,a=t.label,s=t.options,u=t.originalValue,l=t.sync,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),f=e.name,d=e.test,h=e.params,p=e.message,m=s.parent,v=s.context;function g(e){return Ej.isRef(e)?e.getValue(r,m,v):e}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=kj()(Cj({value:r,originalValue:u,label:a,path:e.path||o},h,e.params),g),n=new wj(wj.formatError(e.message||p,t),r,t.path,e.type||f);return n.params=t,n}var b=Cj({path:o,parent:m,type:f,createError:y,resolve:g,options:s,originalValue:u},c);if(l){var w;try{var x;if("function"===typeof(null==(x=w=d.call(b,r,b))?void 0:x.then))throw new Error('Validation test of type: "'.concat(b.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned")}catch(_){return void n(_)}wj.isError(w)?n(w):w?n(null,w):n(y())}else try{Promise.resolve(d.call(b,r,b)).then((function(e){wj.isError(e)?n(e):e?n(null,e):n(y())})).catch(n)}catch(_){n(_)}}return t.OPTIONS=e,t}Ej.prototype.__isYupRef=!0;var Dj=function(e){return e.substr(0,e.length-1).substr(1)};function Nj(e,t,n){var r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,Sj.forEach)(t,(function(s,u,l){var c=u?Dj(s):s;if((e=e.resolve({context:a,parent:r,value:n})).innerType){var f=l?parseInt(c,10):0;if(n&&f>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(t,". ")+"because there is no value at that index. ");r=n,n=n&&n[f],e=e.innerType}if(!l){if(!e.fields||!e.fields[c])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(o,' which is a type: "').concat(e._type,'")'));r=n,n=n&&n[c],e=e.fields[c]}i=c,o=u?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}var jj=function(){function e(){r(this,e),this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}return(0,i.Z)(e,[{key:"size",get:function(){return this.list.size+this.refs.size}},{key:"describe",value:function(){var e,t=[],n=xs(this.list);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(s){n.e(s)}finally{n.f()}var i,o=xs(this.refs);try{for(o.s();!(i=o.n()).done;){var a=(0,wt.Z)(i.value,2)[1];t.push(a.describe())}}catch(s){o.e(s)}finally{o.f()}return t}},{key:"toArray",value:function(){return Array.from(this.list).concat(Array.from(this.refs.values()))}},{key:"resolveAll",value:function(e){return this.toArray().reduce((function(t,n){return t.concat(Ej.isRef(n)?e(n):n)}),[])}},{key:"add",value:function(e){Ej.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}},{key:"delete",value:function(e){Ej.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}},{key:"clone",value:function(){var t=new e;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}},{key:"merge",value:function(e,t){var n=this.clone();return e.list.forEach((function(e){return n.add(e)})),e.refs.forEach((function(e){return n.add(e)})),t.list.forEach((function(e){return n.delete(e)})),t.refs.forEach((function(e){return n.delete(e)})),n}}]),e}();function Aj(){return Aj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aj.apply(this,arguments)}var Pj=function(){function e(t){var n=this;r(this,e),this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new jj,this._blacklist=new jj,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((function(){n.typeError(rj.notType)})),this.type=(null==t?void 0:t.type)||"mixed",this.spec=Aj({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==t?void 0:t.spec)}return(0,i.Z)(e,[{key:"_type",get:function(){return this.type}},{key:"_typeCheck",value:function(e){return!0}},{key:"clone",value:function(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;var t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=Aj({},this.exclusiveTests),t.deps=(0,Ne.Z)(this.deps),t.conditions=(0,Ne.Z)(this.conditions),t.tests=(0,Ne.Z)(this.tests),t.transforms=(0,Ne.Z)(this.transforms),t.spec=GN(Aj({},this.spec,e)),t}},{key:"label",value:function(e){var t=this.clone();return t.spec.label=e,t}},{key:"meta",value:function(){if(0===arguments.length)return this.spec.meta;var e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}},{key:"withMutation",value:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n}},{key:"concat",value:function(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));var t=this,n=e.clone(),r=Aj({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),n.transforms=[].concat((0,Ne.Z)(t.transforms),(0,Ne.Z)(n.transforms)),n}},{key:"isType",value:function(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}},{key:"resolve",value:function(e){var t=this;if(t.conditions.length){var n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t}},{key:"cast",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Aj({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){var i=nj(e),o=nj(r);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n._type,'". \n\n')+"attempted value: ".concat(i," \n")+(o!==i?"result of cast: ".concat(o):""))}return r}},{key:"_cast",value:function(e,t){var n=this,r=void 0===e?e:this.transforms.reduce((function(t,r){return r.call(n,t,e,n)}),e);return void 0===r&&(r=this.getDefault()),r}},{key:"_validate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=n.sync,o=n.path,a=n.from,s=void 0===a?[]:a,u=n.originalValue,l=void 0===u?e:u,c=n.strict,f=void 0===c?this.spec.strict:c,d=n.abortEarly,h=void 0===d?this.spec.abortEarly:d,p=e;f||(p=this._cast(p,Aj({assert:!1},n)));var m={value:p,path:o,options:n,originalValue:l,schema:this,label:this.spec.label,sync:i,from:s},v=[];this._typeError&&v.push(this._typeError);var g=[];this._whitelistError&&g.push(this._whitelistError),this._blacklistError&&g.push(this._blacklistError),xj({args:m,value:p,path:o,sync:i,tests:v,endEarly:h},(function(e){e?r(e,p):xj({tests:t.tests.concat(g),args:m,path:o,sync:i,value:p,endEarly:h},r)}))}},{key:"validate",value:function(e,t,n){var r=this.resolve(Aj({},t,{value:e}));return"function"===typeof n?r._validate(e,t,n):new Promise((function(n,i){return r._validate(e,t,(function(e,t){e?i(e):n(t)}))}))}},{key:"validateSync",value:function(e,t){var n;return this.resolve(Aj({},t,{value:e}))._validate(e,Aj({},t,{sync:!0}),(function(e,t){if(e)throw e;n=t})),n}},{key:"isValid",value:function(e,t){return this.validate(e,t).then((function(){return!0}),(function(e){if(wj.isError(e))return!1;throw e}))}},{key:"isValidSync",value:function(e,t){try{return this.validateSync(e,t),!0}catch(n){if(wj.isError(n))return!1;throw n}}},{key:"_getDefault",value:function(){var e=this.spec.default;return null==e?e:"function"===typeof e?e.call(this):GN(e)}},{key:"getDefault",value:function(e){return this.resolve(e||{})._getDefault()}},{key:"default",value:function(e){if(0===arguments.length)return this._getDefault();var t=this.clone({default:e});return t}},{key:"strict",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strict=e,t}},{key:"_isPresent",value:function(e){return null!=e}},{key:"defined",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rj.defined;return this.test({message:e,name:"defined",exclusive:!0,test:function(e){return void 0!==e}})}},{key:"required",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rj.required;return this.clone({presence:"required"}).withMutation((function(t){return t.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})}))}},{key:"notRequired",value:function(){var e=this.clone({presence:"optional"});return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e}},{key:"nullable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone({nullable:!1!==e});return t}},{key:"transform",value:function(e){var t=this.clone();return t.transforms.push(e),t}},{key:"test",value:function(){var e;if(void 0===(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=rj.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=Oj(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}},{key:"when",value:function(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");var n=this.clone(),r=gj(e).map((function(e){return new Ej(e)}));return r.forEach((function(e){e.isSibling&&n.deps.push(e.key)})),n.conditions.push(new pj(r,t)),n}},{key:"typeError",value:function(e){var t=this.clone();return t._typeError=Oj({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}},{key:"oneOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rj.oneOf,n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=Oj({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}},{key:"notOneOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rj.notOneOf,n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=Oj({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}},{key:"strip",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}},{key:"describe",value:function(){var e=this.clone(),t=e.spec,n=t.label;return{meta:t.meta,label:n,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))}}}]),e}();Pj.prototype.__isYupSchema__=!0;for(var Rj=function(){var e=Fj[Ij];Pj.prototype["".concat(e,"At")]=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Nj(this,t,n,r.context),o=i.parent,a=i.parentPath,s=i.schema;return s[e](o&&o[a],Aj({},r,{parent:o,path:t}))}},Ij=0,Fj=["validate","validateSync"];Ij<Fj.length;Ij++)Rj();for(var Lj=0,zj=["equals","is"];Lj<zj.length;Lj++){var Bj=zj[Lj];Pj.prototype[Bj]=Pj.prototype.oneOf}for(var Zj=0,Wj=["not","nope"];Zj<Wj.length;Zj++){var Hj=Wj[Zj];Pj.prototype[Hj]=Pj.prototype.notOneOf}Pj.prototype.optional=Pj.prototype.notRequired;var Yj=Pj;Yj.prototype;var Uj=function(e){return null==e};var Vj=function(e){a(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.call(this,{type:"boolean"})).withMutation((function(){e.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))})),e}return(0,i.Z)(n,[{key:"_typeCheck",value:function(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e}},{key:"isTrue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sj.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:function(e){return Uj(e)||!0===e}})}},{key:"isFalse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sj.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:function(e){return Uj(e)||!1===e}})}}]),n}(Pj);function qj(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}function Gj(){return Gj="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=qj(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Gj.apply(this,arguments)}Vj.prototype;var Xj=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,$j=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Qj=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Kj=function(e){return Uj(e)||e===e.trim()},Jj={}.toString();function eA(){return new tA}var tA=function(e){a(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.call(this,{type:"string"})).withMutation((function(){e.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;var t=null!=e&&e.toString?e.toString():e;return t===Jj?e:t}))})),e}return(0,i.Z)(n,[{key:"_typeCheck",value:function(e){return e instanceof String&&(e=e.valueOf()),"string"===typeof e}},{key:"_isPresent",value:function(e){return Gj(s(n.prototype),"_isPresent",this).call(this,e)&&!!e.length}},{key:"length",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ij.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return Uj(t)||t.length===this.resolve(e)}})}},{key:"min",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ij.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Uj(t)||t.length>=this.resolve(e)}})}},{key:"max",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ij.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return Uj(t)||t.length<=this.resolve(e)}})}},{key:"matches",value:function(e,t){var n,r,i=!1;if(t)if("object"===typeof t){var o=t.excludeEmptyString;i=void 0!==o&&o,n=t.message,r=t.name}else n=t;return this.test({name:r||"matches",message:n||ij.matches,params:{regex:e},test:function(t){return Uj(t)||""===t&&i||-1!==t.search(e)}})}},{key:"email",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ij.email;return this.matches(Xj,{name:"email",message:e,excludeEmptyString:!0})}},{key:"url",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ij.url;return this.matches($j,{name:"url",message:e,excludeEmptyString:!0})}},{key:"uuid",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ij.uuid;return this.matches(Qj,{name:"uuid",message:e,excludeEmptyString:!1})}},{key:"ensure",value:function(){return this.default("").transform((function(e){return null===e?"":e}))}},{key:"trim",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ij.trim;return this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:Kj})}},{key:"lowercase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ij.lowercase;return this.transform((function(e){return Uj(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return Uj(e)||e===e.toLowerCase()}})}},{key:"uppercase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ij.uppercase;return this.transform((function(e){return Uj(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return Uj(e)||e===e.toUpperCase()}})}}]),n}(Pj);eA.prototype=tA.prototype;var nA=function(e){a(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.call(this,{type:"number"})).withMutation((function(){e.transform((function(e){var t=e;if("string"===typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))})),e}return(0,i.Z)(n,[{key:"_typeCheck",value:function(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!function(e){return e!=+e}(e)}},{key:"min",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oj.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Uj(t)||t>=this.resolve(e)}})}},{key:"max",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oj.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return Uj(t)||t<=this.resolve(e)}})}},{key:"lessThan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oj.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return Uj(t)||t<this.resolve(e)}})}},{key:"moreThan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oj.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test:function(t){return Uj(t)||t>this.resolve(e)}})}},{key:"positive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oj.positive;return this.moreThan(0,e)}},{key:"negative",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oj.negative;return this.lessThan(0,e)}},{key:"integer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oj.integer;return this.test({name:"integer",message:e,test:function(e){return Uj(e)||Number.isInteger(e)}})}},{key:"truncate",value:function(){return this.transform((function(e){return Uj(e)?e:0|e}))}},{key:"round",value:function(e){var t,n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((function(t){return Uj(t)?t:Math[e](t)}))}}]),n}(Pj);nA.prototype;var rA=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;var iA=new Date("");function oA(){return new aA}var aA=function(e){a(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.call(this,{type:"date"})).withMutation((function(){e.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=rA.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?iA:new Date(e))}))})),e}return(0,i.Z)(n,[{key:"_typeCheck",value:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}},{key:"prepareParam",value:function(e,t){var n;if(Ej.isRef(e))n=e;else{var r=this.cast(e);if(!this._typeCheck(r))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}},{key:"min",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aj.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return Uj(e)||e>=this.resolve(n)}})}},{key:"max",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aj.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return Uj(e)||e<=this.resolve(n)}})}}]),n}(Pj);aA.INVALID_DATE=iA,oA.prototype=aA.prototype,oA.INVALID_DATE=iA;var sA=n(37499),uA=n.n(sA),lA=n(80567),cA=n.n(lA),fA=n(19029),dA=n.n(fA),hA=n(86514),pA=n.n(hA);function mA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(t.map((function(e){var t=(0,wt.Z)(e,2),n=t[0],r=t[1];return"".concat(n,"-").concat(r)})));function o(e,t){var o=(0,Sj.split)(e)[0];r.add(o),i.has("".concat(t,"-").concat(o))||n.push([t,o])}var a=function(t){if(fj()(e,t)){var n=e[t];r.add(t),Ej.isRef(n)&&n.isSibling?o(n.path,t):dj(n)&&"deps"in n&&n.deps.forEach((function(e){return o(e,t)}))}};for(var s in e)a(s);return pA().array(Array.from(r),n).reverse()}function vA(e,t){var n=1/0;return e.some((function(e,r){var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0})),n}function gA(e){return function(t,n){return vA(e,t)-vA(e,n)}}function yA(){return yA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yA.apply(this,arguments)}var bA=function(e){return"[object Object]"===Object.prototype.toString.call(e)};function wA(e,t){var n=Object.keys(e.fields);return Object.keys(t).filter((function(e){return-1===n.indexOf(e)}))}var xA=gA([]),_A=function(e){a(n,e);var t=d(n);function n(e){var i;return r(this,n),(i=t.call(this,{type:"object"})).fields=Object.create(null),i._sortErrors=xA,i._nodes=[],i._excludedEdges=[],i.withMutation((function(){i.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&i.shape(e)})),i}return(0,i.Z)(n,[{key:"_typeCheck",value:function(e){return bA(e)||"function"===typeof e}},{key:"_cast",value:function(e){var t,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Gj(s(n.prototype),"_cast",this).call(this,e,i);if(void 0===o)return this.getDefault();if(!this._typeCheck(o))return o;var a,u=this.fields,l=null!=(t=i.stripUnknown)?t:this.spec.noUnknown,c=this._nodes.concat(Object.keys(o).filter((function(e){return-1===r._nodes.indexOf(e)}))),f={},d=yA({},i,{parent:f,__validating:i.__validating||!1}),h=!1,p=xs(c);try{for(p.s();!(a=p.n()).done;){var m=a.value,v=u[m],g=fj()(o,m);if(v){var y=void 0,b=o[m];d.path=(i.path?"".concat(i.path,"."):"")+m;var w="spec"in(v=v.resolve({value:b,context:i.context,parent:f}))?v.spec:void 0,x=null==w?void 0:w.strict;if(null==w?void 0:w.strip){h=h||m in o;continue}void 0!==(y=i.__validating&&x?o[m]:v.cast(o[m],d))&&(f[m]=y)}else g&&!l&&(f[m]=o[m]);f[m]!==o[m]&&(h=!0)}}catch(_){p.e(_)}finally{p.f()}return h?f:o}},{key:"_validate",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,o=[],a=r.sync,u=r.from,l=void 0===u?[]:u,c=r.originalValue,f=void 0===c?e:c,d=r.abortEarly,h=void 0===d?this.spec.abortEarly:d,p=r.recursive,m=void 0===p?this.spec.recursive:p;l=[{schema:this,value:f}].concat((0,Ne.Z)(l)),r.__validating=!0,r.originalValue=f,r.from=l,Gj(s(n.prototype),"_validate",this).call(this,e,r,(function(e,n){if(e){if(!wj.isError(e)||h)return void i(e,n);o.push(e)}if(m&&bA(n)){f=f||n;var s=t._nodes.map((function(e){return function(i,o){var a=-1===e.indexOf(".")?(r.path?"".concat(r.path,"."):"")+e:"".concat(r.path||"",'["').concat(e,'"]'),s=t.fields[e];s&&"validate"in s?s.validate(n[e],yA({},r,{path:a,from:l,strict:!0,parent:n,originalValue:f[e]}),o):o(null)}}));xj({sync:a,tests:s,value:n,errors:o,endEarly:h,sort:t._sortErrors,path:r.path},i)}else i(o[0]||null,n)}))}},{key:"clone",value:function(e){var t=Gj(s(n.prototype),"clone",this).call(this,e);return t.fields=yA({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}},{key:"concat",value:function(e){for(var t=this,r=Gj(s(n.prototype),"concat",this).call(this,e),i=r.fields,o=0,a=Object.entries(this.fields);o<a.length;o++){var u=(0,wt.Z)(a[o],2),l=u[0],c=u[1],f=i[l];void 0===f?i[l]=c:f instanceof Pj&&c instanceof Pj&&(i[l]=c.concat(f))}return r.withMutation((function(){return r.shape(i,t._excludedEdges)}))}},{key:"getDefaultFromShape",value:function(){var e=this,t={};return this._nodes.forEach((function(n){var r=e.fields[n];t[n]="default"in r?r.getDefault():void 0})),t}},{key:"_getDefault",value:function(){return"default"in this.spec?Gj(s(n.prototype),"_getDefault",this).call(this):this._nodes.length?this.getDefaultFromShape():void 0}},{key:"shape",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=gA(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[].concat((0,Ne.Z)(n._excludedEdges),(0,Ne.Z)(t))),n._nodes=mA(r,n._excludedEdges),n}},{key:"pick",value:function(e){var t,n={},r=xs(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.fields[i]&&(n[i]=this.fields[i])}}catch(o){r.e(o)}finally{r.f()}return this.clone().withMutation((function(e){return e.fields={},e.shape(n)}))}},{key:"omit",value:function(e){var t=this.clone(),n=t.fields;t.fields={};var r,i=xs(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;delete n[o]}}catch(a){i.e(a)}finally{i.f()}return t.withMutation((function(){return t.shape(n)}))}},{key:"from",value:function(e,t,n){var r=(0,Sj.getter)(e,!0);return this.transform((function(i){if(null==i)return i;var o=i;return fj()(i,e)&&(o=yA({},i),n||delete o[e],o[t]=r(i)),o}))}},{key:"noUnknown",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uj.noUnknown;"string"===typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){if(null==t)return!0;var n=wA(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}},{key:"unknown",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uj.noUnknown;return this.noUnknown(!e,t)}},{key:"transformKeys",value:function(e){return this.transform((function(t){return t&&dA()(t,(function(t,n){return e(n)}))}))}},{key:"camelCase",value:function(){return this.transformKeys(cA())}},{key:"snakeCase",value:function(){return this.transformKeys(uA())}},{key:"constantCase",value:function(){return this.transformKeys((function(e){return uA()(e).toUpperCase()}))}},{key:"describe",value:function(){var e=Gj(s(n.prototype),"describe",this).call(this);return e.fields=kj()(this.fields,(function(e){return e.describe()})),e}}]),n}(Pj);function kA(e){return new _A(e)}function SA(){return SA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SA.apply(this,arguments)}kA.prototype=_A.prototype;var MA=function(e){a(n,e);var t=d(n);function n(e){var i;return r(this,n),(i=t.call(this,{type:"array"})).innerType=void 0,i.innerType=e,i.withMutation((function(){i.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))})),i}return(0,i.Z)(n,[{key:"_typeCheck",value:function(e){return Array.isArray(e)}},{key:"_subType",get:function(){return this.innerType}},{key:"_cast",value:function(e,t){var r=this,i=Gj(s(n.prototype),"_cast",this).call(this,e,t);if(!this._typeCheck(i)||!this.innerType)return i;var o=!1,a=i.map((function(e,n){var i=r.innerType.cast(e,SA({},t,{path:"".concat(t.path||"","[").concat(n,"]")}));return i!==e&&(o=!0),i}));return o?a:i}},{key:"_validate",value:function(e){var t,r,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,u=[],l=o.sync,c=o.path,f=this.innerType,d=null!=(t=o.abortEarly)?t:this.spec.abortEarly,h=null!=(r=o.recursive)?r:this.spec.recursive,p=null!=o.originalValue?o.originalValue:e;Gj(s(n.prototype),"_validate",this).call(this,e,o,(function(e,t){if(e){if(!wj.isError(e)||d)return void a(e,t);u.push(e)}if(h&&f&&i._typeCheck(t)){p=p||t;for(var n=new Array(t.length),r=function(e){var r=t[e],i="".concat(o.path||"","[").concat(e,"]"),a=SA({},o,{path:i,strict:!0,parent:t,index:e,originalValue:p[e]});n[e]=function(e,t){return f.validate(r,a,t)}},s=0;s<t.length;s++)r(s);xj({sync:l,path:c,value:t,errors:u,endEarly:d,tests:n},a)}else a(u[0]||null,t)}))}},{key:"clone",value:function(e){var t=Gj(s(n.prototype),"clone",this).call(this,e);return t.innerType=this.innerType,t}},{key:"concat",value:function(e){var t=Gj(s(n.prototype),"concat",this).call(this,e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}},{key:"of",value:function(e){var t=this.clone();if(!dj(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+nj(e));return t.innerType=e,t}},{key:"length",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lj.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return Uj(t)||t.length===this.resolve(e)}})}},{key:"min",value:function(e,t){return t=t||lj.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Uj(t)||t.length>=this.resolve(e)}})}},{key:"max",value:function(e,t){return t=t||lj.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return Uj(t)||t.length<=this.resolve(e)}})}},{key:"ensure",value:function(){var e=this;return this.default((function(){return[]})).transform((function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)}))}},{key:"compact",value:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))}},{key:"describe",value:function(){var e=Gj(s(n.prototype),"describe",this).call(this);return this.innerType&&(e.innerType=this.innerType.describe()),e}},{key:"nullable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Gj(s(n.prototype),"nullable",this).call(this,e)}},{key:"defined",value:function(){return Gj(s(n.prototype),"defined",this).call(this)}},{key:"required",value:function(e){return Gj(s(n.prototype),"required",this).call(this,e)}}]),n}(Pj);MA.prototype;var TA=e.createContext(),EA={variant:"head"},CA="thead",OA=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?CA:o,s=(0,ve.Z)(t,["classes","className","component"]);return e.createElement(TA.Provider,{value:EA},e.createElement(a,(0,p.Z)({className:(0,ge.Z)(r.root,i),ref:n,role:a===CA?null:"rowgroup"},s)))})),DA=(0,ye.Z)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(OA),NA=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?"tr":o,s=t.hover,u=void 0!==s&&s,l=t.selected,c=void 0!==l&&l,f=(0,ve.Z)(t,["classes","className","component","hover","selected"]),d=e.useContext(TA);return e.createElement(a,(0,p.Z)({ref:n,className:(0,ge.Z)(r.root,i,d&&{head:r.head,footer:r.footer}[d.variant],u&&r.hover,c&&r.selected),role:"tr"===a?null:"row"},f))})),jA=(0,ye.Z)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,Ee.Fq)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(NA);var AA=e.createContext(),PA=e.forwardRef((function(t,n){var r,i,o=t.align,a=void 0===o?"inherit":o,s=t.classes,u=t.className,l=t.component,c=t.padding,f=t.scope,d=t.size,h=t.sortDirection,m=t.variant,v=(0,ve.Z)(t,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),g=e.useContext(AA),y=e.useContext(TA),b=y&&"head"===y.variant;l?(i=l,r=b?"columnheader":"cell"):i=b?"th":"td";var w=f;!w&&b&&(w="col");var x=c||(g&&g.padding?g.padding:"normal"),_=d||(g&&g.size?g.size:"medium"),k=m||y&&y.variant,S=null;return h&&(S="asc"===h?"ascending":"descending"),e.createElement(i,(0,p.Z)({ref:n,className:(0,ge.Z)(s.root,s[k],u,"inherit"!==a&&s["align".concat((0,be.Z)(a))],"normal"!==x&&s["padding".concat((0,be.Z)(x))],"medium"!==_&&s["size".concat((0,be.Z)(_))],"head"===k&&g&&g.stickyHeader&&s.stickyHeader),"aria-sort":S,role:r,scope:w},v))})),RA=(0,ye.Z)((function(e){return{root:(0,p.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,Ee.$n)((0,Ee.Fq)(e.palette.divider,1),.88):(0,Ee._j)((0,Ee.Fq)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(PA),IA=(0,yi.Z)(e.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),FA=e.forwardRef((function(t,n){var r=t.active,i=void 0!==r&&r,o=t.children,a=t.classes,s=t.className,u=t.direction,l=void 0===u?"asc":u,c=t.hideSortIcon,f=void 0!==c&&c,d=t.IconComponent,h=void 0===d?IA:d,m=(0,ve.Z)(t,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return e.createElement(Ye,(0,p.Z)({className:(0,ge.Z)(a.root,s,i&&a.active),component:"span",disableRipple:!0,ref:n},m),o,f&&!i?null:e.createElement(h,{className:(0,ge.Z)(a.icon,a["iconDirection".concat((0,be.Z)(l))])}))})),LA=(0,ye.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(FA),zA=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?"div":o,s=(0,ve.Z)(t,["classes","className","component"]);return e.createElement(a,(0,p.Z)({ref:n,className:(0,ge.Z)(r.root,i)},s))})),BA=(0,ye.Z)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(zA),ZA="table",WA=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?ZA:o,s=t.padding,u=void 0===s?"normal":s,l=t.size,c=void 0===l?"medium":l,f=t.stickyHeader,d=void 0!==f&&f,h=(0,ve.Z)(t,["classes","className","component","padding","size","stickyHeader"]),m=e.useMemo((function(){return{padding:u,size:c,stickyHeader:d}}),[u,c,d]);return e.createElement(AA.Provider,{value:m},e.createElement(a,(0,p.Z)({role:a===ZA?null:"table",ref:n,className:(0,ge.Z)(r.root,i,d&&r.stickyHeader)},h)))})),HA=(0,ye.Z)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,p.Z)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(WA),YA={variant:"body"},UA="tbody",VA=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=t.component,a=void 0===o?UA:o,s=(0,ve.Z)(t,["classes","className","component"]);return e.createElement(TA.Provider,{value:YA},e.createElement(a,(0,p.Z)({className:(0,ge.Z)(r.root,i),ref:n,role:a===UA?null:"rowgroup"},s)))})),qA=(0,ye.Z)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(VA),GA=e.createElement(wi,null),XA=e.createElement(bi,null),$A=e.createElement(bi,null),QA=e.createElement(wi,null),KA=e.forwardRef((function(t,n){var r=t.backIconButtonProps,i=t.count,o=t.nextIconButtonProps,a=t.onChangePage,s=void 0===a?function(){}:a,u=t.onPageChange,l=void 0===u?function(){}:u,c=t.page,f=t.rowsPerPage,d=(0,ve.Z)(t,["backIconButtonProps","count","nextIconButtonProps","onChangePage","onPageChange","page","rowsPerPage"]),h=Vr();return e.createElement("div",(0,p.Z)({ref:n},d),e.createElement(Ha,(0,p.Z)({onClick:function(e){s(e,c-1),l(e,c-1)},disabled:0===c,color:"inherit"},r),"rtl"===h.direction?GA:XA),e.createElement(Ha,(0,p.Z)({onClick:function(e){s(e,c+1),l(e,c+1)},disabled:-1!==i&&c>=Math.ceil(i/f)-1,color:"inherit"},o),"rtl"===h.direction?$A:QA))})),JA=KA,eP=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},tP=[10,25,50,100],nP=e.forwardRef((function(t,n){var r,i=t.ActionsComponent,o=void 0===i?JA:i,a=t.backIconButtonProps,s=t.backIconButtonText,u=void 0===s?"Previous page":s,l=t.classes,c=t.className,f=t.colSpan,d=t.component,h=void 0===d?RA:d,m=t.count,v=t.labelDisplayedRows,g=void 0===v?eP:v,y=t.labelRowsPerPage,b=void 0===y?"Rows per page:":y,w=t.nextIconButtonProps,x=t.nextIconButtonText,_=void 0===x?"Next page":x,k=t.onChangePage,S=t.onPageChange,M=t.onChangeRowsPerPage,T=t.onRowsPerPageChange,E=t.page,C=t.rowsPerPage,O=t.rowsPerPageOptions,D=void 0===O?tP:O,N=t.SelectProps,j=void 0===N?{}:N,A=(0,ve.Z)(t,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onPageChange","onChangeRowsPerPage","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps"]),P=M||T;h!==RA&&"td"!==h||(r=f||1e3);var R=(0,rs.Z)(),I=(0,rs.Z)(),F=j.native?"option":Rr;return e.createElement(h,(0,p.Z)({className:(0,ge.Z)(l.root,c),colSpan:r,ref:n},A),e.createElement(Te,{className:l.toolbar},e.createElement("div",{className:l.spacer}),D.length>1&&e.createElement(ft,{color:"inherit",variant:"body2",className:l.caption,id:I},b),D.length>1&&e.createElement(Ia,(0,p.Z)({classes:{select:l.select,icon:l.selectIcon},input:e.createElement(Zo,{className:(0,ge.Z)(l.input,l.selectRoot)}),value:C,onChange:P,id:R,labelId:I},j),D.map((function(t){return e.createElement(F,{className:l.menuItem,key:t.value?t.value:t,value:t.value?t.value:t},t.label?t.label:t)}))),e.createElement(ft,{color:"inherit",variant:"body2",className:l.caption},g({from:0===m?0:E*C+1,to:-1!==m?Math.min(m,(E+1)*C):(E+1)*C,count:-1===m?-1:m,page:E})),e.createElement(o,{className:l.actions,backIconButtonProps:(0,p.Z)({title:u,"aria-label":u},a),count:m,nextIconButtonProps:(0,p.Z)({title:_,"aria-label":_},w),onChangePage:k,onPageChange:S,page:E,rowsPerPage:C})))})),rP=(0,ye.Z)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(nP);function iP(e,t,n,r,i){return{name:e,calories:t,fat:n,carbs:r,protein:i}}var oP=[iP("Cupcake",305,3.7,67,4.3),iP("Donut",452,25,51,4.9),iP("Eclair",262,16,24,6),iP("Frozen yoghurt",159,6,24,4),iP("Gingerbread",356,16,49,3.9),iP("Honeycomb",408,3.2,87,6.5),iP("Ice cream sandwich",237,9,37,4.3),iP("Jelly Bean",375,0,94,0),iP("KitKat",518,26,65,7),iP("Lollipop",392,.2,98,0),iP("Marshmallow",318,0,81,2),iP("Nougat",360,19,9,37),iP("Oreo",437,18,63,4)];function aP(e,t,n){return t[n]<e[n]?-1:t[n]>e[n]?1:0}function sP(e,t){return"desc"===e?function(e,n){return aP(e,n,t)}:function(e,n){return-aP(e,n,t)}}function uP(e,t){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),n.map((function(e){return e[0]}))}var lP=[{id:"name",numeric:!1,disablePadding:!0,label:"Dessert (100g serving)"},{id:"calories",numeric:!0,disablePadding:!1,label:"Calories"},{id:"fat",numeric:!0,disablePadding:!1,label:"Fat (g)"},{id:"carbs",numeric:!0,disablePadding:!1,label:"Carbs (g)"},{id:"protein",numeric:!0,disablePadding:!1,label:"Protein (g)"}];function cP(e){var t=e.classes,n=e.onSelectAllClick,r=e.order,i=e.orderBy,o=e.numSelected,a=e.rowCount,s=e.onRequestSort,u=function(e){return function(t){s(t,e)}};return(0,Xe.jsx)(DA,{children:(0,Xe.jsxs)(jA,{children:[(0,Xe.jsx)(RA,{padding:"checkbox",children:(0,Xe.jsx)(Fs,{indeterminate:o>0&&o<a,checked:a>0&&o===a,onChange:n,inputProps:{"aria-label":"select all desserts"}})}),lP.map((function(e){return(0,Xe.jsx)(RA,{align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal",sortDirection:i===e.id&&r,children:(0,Xe.jsxs)(LA,{active:i===e.id,direction:i===e.id?r:"asc",onClick:u(e.id),children:[e.label,i===e.id?(0,Xe.jsx)("span",{className:t.visuallyHidden,children:"desc"===r?"sorted descending":"sorted ascending"}):null]})},e.id)}))]})})}var fP=Ge((function(e){return{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1)},highlight:"light"===e.palette.type?{color:e.palette.secondary.main,backgroundColor:(0,Ee.$n)(e.palette.secondary.light,.85)}:{color:e.palette.text.primary,backgroundColor:e.palette.secondary.dark},title:{flex:"1 1 100%"}}})),dP=function(e){var t=fP(),n=e.numSelected;return(0,Xe.jsx)(Te,{className:(0,ge.Z)(t.root,(0,Se.Z)({},t.highlight,n>0)),children:n>0?(0,Xe.jsxs)(jo,{children:[n," selected"]}):null})},hP=Ge((function(e){return{root:{width:"100%"},paper:{width:"100%",marginBottom:e.spacing(2)},table:{minWidth:750},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}}}));function pP(){var t=hP(),n=e.useState("asc"),r=(0,wt.Z)(n,2),i=r[0],o=r[1],a=e.useState("calories"),s=(0,wt.Z)(a,2),u=s[0],l=s[1],c=e.useState([]),f=(0,wt.Z)(c,2),d=f[0],h=f[1],p=e.useState(0),m=(0,wt.Z)(p,2),v=m[0],g=m[1],y=e.useState(!1),b=(0,wt.Z)(y,2),w=b[0],x=b[1],_=e.useState(5),k=(0,wt.Z)(_,2),S=k[0],M=k[1],T=S-Math.min(S,oP.length-v*S);return(0,Xe.jsx)("div",{className:t.root,children:(0,Xe.jsxs)(ui,{className:t.paper,children:[(0,Xe.jsx)(Oo,{level:3,style:{padding:15},children:"Native MUI Table"}),(0,Xe.jsx)(dP,{numSelected:d.length}),(0,Xe.jsx)(BA,{children:(0,Xe.jsxs)(HA,{className:t.table,size:w?"small":"medium",children:[(0,Xe.jsx)(cP,{classes:t,numSelected:d.length,order:i,orderBy:u,onSelectAllClick:function(e){if(e.target.checked){var t=oP.map((function(e){return e.name}));h(t)}else h([])},onRequestSort:function(e,t){o(u===t&&"asc"===i?"desc":"asc"),l(t)},rowCount:oP.length}),(0,Xe.jsxs)(qA,{children:[uP(oP,sP(i,u)).slice(v*S,v*S+S).map((function(e,t){var n,r=(n=e.name,-1!==d.indexOf(n)),i="enhanced-table-checkbox-".concat(t);return(0,Xe.jsxs)(jA,{hover:!0,onClick:function(t){return function(e,t){var n=d.indexOf(t),r=[];-1===n?r=r.concat(d,t):0===n?r=r.concat(d.slice(1)):n===d.length-1?r=r.concat(d.slice(0,-1)):n>0&&(r=r.concat(d.slice(0,n),d.slice(n+1))),h(r)}(0,e.name)},role:"checkbox","aria-checked":r,tabIndex:-1,selected:r,children:[(0,Xe.jsx)(RA,{padding:"checkbox",children:(0,Xe.jsx)(Fs,{checked:r,inputProps:{"aria-labelledby":i}})}),(0,Xe.jsx)(RA,{component:"th",id:i,scope:"row",padding:"none",children:e.name}),(0,Xe.jsx)(RA,{align:"right",children:e.calories}),(0,Xe.jsx)(RA,{align:"right",children:e.fat}),(0,Xe.jsx)(RA,{align:"right",children:e.carbs}),(0,Xe.jsx)(RA,{align:"right",children:e.protein})]},e.name)})),T>0&&(0,Xe.jsx)(jA,{style:{height:(w?33:53)*T},children:(0,Xe.jsx)(RA,{colSpan:6})})]})]})}),(0,Xe.jsx)(rP,{rowsPerPageOptions:[5,10,25,100],component:"div",count:oP.length,rowsPerPage:S,page:v,onPageChange:function(e,t){g(t)},onRowsPerPageChange:function(e){M(parseInt(e.target.value,10)),g(0)},SelectProps:{native:!1}}),(0,Xe.jsx)(HT,{style:{margin:20},control:(0,Xe.jsx)(UN,{checked:w,onChange:function(e){x(e.target.checked)}}),label:"Dense padding"})]})})}var mP=[{id:1,title:"Beetlejuice",year:"1988",runtime:"92",genres:["Comedy","Fantasy"],director:"Tim Burton",actors:"Alec Baldwin, Geena Davis, Annie McEnroe, Maurice Page",plot:'A couple of recently deceased ghosts contract the services of a "bio-exorcist" in order to remove the obnoxious new owners of their house.',posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTUwODE3MDE0MV5BMl5BanBnXkFtZTgwNTk1MjI4MzE@._V1_SX300.jpg"},{id:2,title:"The Cotton Club",year:"1984",runtime:"127",genres:["Crime","Drama","Music"],director:"Francis Ford Coppola",actors:"Richard Gere, Gregory Hines, Diane Lane, Lonette McKee",plot:"The Cotton Club was a famous night club in Harlem. The story follows the people that visited the club, those that ran it, and is peppered with the Jazz music that made it so famous.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTU5ODAyNzA4OV5BMl5BanBnXkFtZTcwNzYwNTIzNA@@._V1_SX300.jpg"},{id:3,title:"The Shawshank Redemption",year:"1994",runtime:"142",genres:["Crime","Drama"],director:"Frank Darabont",actors:"Tim Robbins, Morgan Freeman, Bob Gunton, William Sadler",plot:"Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BODU4MjU4NjIwNl5BMl5BanBnXkFtZTgwMDU2MjEyMDE@._V1_SX300.jpg"},{id:4,title:"Crocodile Dundee",year:"1986",runtime:"97",genres:["Adventure","Comedy"],director:"Peter Faiman",actors:"Paul Hogan, Linda Kozlowski, John Meillon, David Gulpilil",plot:"An American reporter goes to the Australian outback to meet an eccentric crocodile poacher and invites him to New York City.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTg0MTU1MTg4NF5BMl5BanBnXkFtZTgwMDgzNzYxMTE@._V1_SX300.jpg"},{id:5,title:"Valkyrie",year:"2008",runtime:"121",genres:["Drama","History","Thriller"],director:"Bryan Singer",actors:"Tom Cruise, Kenneth Branagh, Bill Nighy, Tom Wilkinson",plot:"A dramatization of the 20 July assassination and political coup plot by desperate renegade German Army officers against Hitler during World War II.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTg3Njc2ODEyN15BMl5BanBnXkFtZTcwNTAwMzc3NA@@._V1_SX300.jpg"},{id:6,title:"Ratatouille",year:"2007",runtime:"111",genres:["Animation","Comedy","Family"],director:"Brad Bird, Jan Pinkava",actors:"Patton Oswalt, Ian Holm, Lou Romano, Brian Dennehy",plot:"A rat who can cook makes an unusual alliance with a young kitchen worker at a famous restaurant.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTMzODU0NTkxMF5BMl5BanBnXkFtZTcwMjQ4MzMzMw@@._V1_SX300.jpg"},{id:7,title:"City of God",year:"2002",runtime:"130",genres:["Crime","Drama"],director:"Fernando Meirelles, K\xe1tia Lund",actors:"Alexandre Rodrigues, Leandro Firmino, Phellipe Haagensen, Douglas Silva",plot:"Two boys growing up in a violent neighborhood of Rio de Janeiro take different paths: one becomes a photographer, the other a drug dealer.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA4ODQ3ODkzNV5BMl5BanBnXkFtZTYwOTc4NDI3._V1_SX300.jpg"},{id:8,title:"Memento",year:"2000",runtime:"113",genres:["Mystery","Thriller"],director:"Christopher Nolan",actors:"Guy Pearce, Carrie-Anne Moss, Joe Pantoliano, Mark Boone Junior",plot:"A man juggles searching for his wife's murderer and keeping his short-term memory loss from being an obstacle.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNThiYjM3MzktMDg3Yy00ZWQ3LTk3YWEtN2M0YmNmNWEwYTE3XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:9,title:"The Intouchables",year:"2011",runtime:"112",genres:["Biography","Comedy","Drama"],director:"Olivier Nakache, Eric Toledano",actors:"Fran\xe7ois Cluzet, Omar Sy, Anne Le Ny, Audrey Fleurot",plot:"After he becomes a quadriplegic from a paragliding accident, an aristocrat hires a young man from the projects to be his caregiver.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTYxNDA3MDQwNl5BMl5BanBnXkFtZTcwNTU4Mzc1Nw@@._V1_SX300.jpg"},{id:10,title:"Stardust",year:"2007",runtime:"127",genres:["Adventure","Family","Fantasy"],director:"Matthew Vaughn",actors:"Ian McKellen, Bimbo Hart, Alastair MacIntosh, David Kelly",plot:"In a countryside town bordering on a magical land, a young man makes a promise to his beloved that he'll retrieve a fallen star by venturing into the magical realm.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjkyMTE1OTYwNF5BMl5BanBnXkFtZTcwMDIxODYzMw@@._V1_SX300.jpg"},{id:11,title:"Apocalypto",year:"2006",runtime:"139",genres:["Action","Adventure","Drama"],director:"Mel Gibson",actors:"Rudy Youngblood, Dalia Hern\xe1ndez, Jonathan Brewer, Morris Birdyellowhead",plot:"As the Mayan kingdom faces its decline, the rulers insist the key to prosperity is to build more temples and offer human sacrifices. Jaguar Paw, a young man captured for sacrifice, flees to avoid his fate.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNTM1NjYyNTY5OV5BMl5BanBnXkFtZTcwMjgwNTMzMQ@@._V1_SX300.jpg"},{id:12,title:"Taxi Driver",year:"1976",runtime:"113",genres:["Crime","Drama"],director:"Martin Scorsese",actors:"Diahnne Abbott, Frank Adu, Victor Argo, Gino Ardito",plot:"A mentally unstable Vietnam War veteran works as a night-time taxi driver in New York City where the perceived decadence and sleaze feeds his urge for violent action, attempting to save a preadolescent prostitute in the process.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNGQxNDgzZWQtZTNjNi00M2RkLWExZmEtNmE1NjEyZDEwMzA5XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:13,title:"No Country for Old Men",year:"2007",runtime:"122",genres:["Crime","Drama","Thriller"],director:"Ethan Coen, Joel Coen",actors:"Tommy Lee Jones, Javier Bardem, Josh Brolin, Woody Harrelson",plot:"Violence and mayhem ensue after a hunter stumbles upon a drug deal gone wrong and more than two million dollars in cash near the Rio Grande.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA5Njk3MjM4OV5BMl5BanBnXkFtZTcwMTc5MTE1MQ@@._V1_SX300.jpg"},{id:14,title:"Planet 51",year:"2009",runtime:"91",genres:["Animation","Adventure","Comedy"],director:"Jorge Blanco, Javier Abad, Marcos Mart\xednez",actors:"Jessica Biel, John Cleese, Gary Oldman, Dwayne Johnson",plot:"An alien civilization is invaded by Astronaut Chuck Baker, who believes that the planet was uninhabited. Wanted by the military, Baker must get back to his ship before it goes into orbit without him.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTUyOTAyNTA5Ml5BMl5BanBnXkFtZTcwODU2OTM0Mg@@._V1_SX300.jpg"},{id:15,title:"Looper",year:"2012",runtime:"119",genres:["Action","Crime","Drama"],director:"Rian Johnson",actors:"Joseph Gordon-Levitt, Bruce Willis, Emily Blunt, Paul Dano",plot:"In 2074, when the mob wants to get rid of someone, the target is sent into the past, where a hired gun awaits - someone like Joe - who one day learns the mob wants to 'close the loop' by sending back Joe's future self for assassination.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTY3NTY0MjEwNV5BMl5BanBnXkFtZTcwNTE3NDA1OA@@._V1_SX300.jpg"},{id:16,title:"Corpse Bride",year:"2005",runtime:"77",genres:["Animation","Drama","Family"],director:"Tim Burton, Mike Johnson",actors:"Johnny Depp, Helena Bonham Carter, Emily Watson, Tracey Ullman",plot:"When a shy groom practices his wedding vows in the inadvertent presence of a deceased young woman, she rises from the grave assuming he has married her.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTk1MTY1NjU4MF5BMl5BanBnXkFtZTcwNjIzMTEzMw@@._V1_SX300.jpg"},{id:17,title:"The Third Man",year:"1949",runtime:"93",genres:["Film-Noir","Mystery","Thriller"],director:"Carol Reed",actors:"Joseph Cotten, Alida Valli, Orson Welles, Trevor Howard",plot:"Pulp novelist Holly Martins travels to shadowy, postwar Vienna, only to find himself investigating the mysterious death of an old friend, Harry Lime.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjMwNzMzMTQ0Ml5BMl5BanBnXkFtZTgwNjExMzUwNjE@._V1_SX300.jpg"},{id:18,title:"The Beach",year:"2000",runtime:"119",genres:["Adventure","Drama","Romance"],director:"Danny Boyle",actors:"Leonardo DiCaprio, Daniel York, Patcharawan Patarakijjanon, Virginie Ledoyen",plot:"Twenty-something Richard travels to Thailand and finds himself in possession of a strange map. Rumours state that it leads to a solitary beach paradise, a tropical bliss - excited and intrigued, he sets out to find it.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BN2ViYTFiZmUtOTIxZi00YzIxLWEyMzUtYjQwZGNjMjNhY2IwXkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"},{id:19,title:"Scarface",year:"1983",runtime:"170",genres:["Crime","Drama"],director:"Brian De Palma",actors:"Al Pacino, Steven Bauer, Michelle Pfeiffer, Mary Elizabeth Mastrantonio",plot:"In Miami in 1980, a determined Cuban immigrant takes over a drug cartel and succumbs to greed.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjAzOTM4MzEwNl5BMl5BanBnXkFtZTgwMzU1OTc1MDE@._V1_SX300.jpg"},{id:20,title:"Sid and Nancy",year:"1986",runtime:"112",genres:["Biography","Drama","Music"],director:"Alex Cox",actors:"Gary Oldman, Chloe Webb, David Hayman, Debby Bishop",plot:"Morbid biographical story of Sid Vicious, bassist with British punk group the Sex Pistols, and his girlfriend Nancy Spungen. When the Sex Pistols break up after their fateful US tour, ...",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjExNjA5NzY4M15BMl5BanBnXkFtZTcwNjQ2NzI5NA@@._V1_SX300.jpg"},{id:21,title:"Black Swan",year:"2010",runtime:"108",genres:["Drama","Thriller"],director:"Darren Aronofsky",actors:"Natalie Portman, Mila Kunis, Vincent Cassel, Barbara Hershey",plot:'A committed dancer wins the lead role in a production of Tchaikovsky\'s "Swan Lake" only to find herself struggling to maintain her sanity.',posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNzY2NzI4OTE5MF5BMl5BanBnXkFtZTcwMjMyNDY4Mw@@._V1_SX300.jpg"},{id:22,title:"Inception",year:"2010",runtime:"148",genres:["Action","Adventure","Sci-Fi"],director:"Christopher Nolan",actors:"Leonardo DiCaprio, Joseph Gordon-Levitt, Ellen Page, Tom Hardy",plot:"A thief, who steals corporate secrets through use of dream-sharing technology, is given the inverse task of planting an idea into the mind of a CEO.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_SX300.jpg"},{id:23,title:"The Deer Hunter",year:"1978",runtime:"183",genres:["Drama","War"],director:"Michael Cimino",actors:"Robert De Niro, John Cazale, John Savage, Christopher Walken",plot:"An in-depth examination of the ways in which the U.S. Vietnam War impacts and disrupts the lives of people in a small industrial town in Pennsylvania.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTYzYmRmZTQtYjk2NS00MDdlLTkxMDAtMTE2YTM2ZmNlMTBkXkEyXkFqcGdeQXVyNjU0OTQ0OTY@._V1_SX300.jpg"},{id:24,title:"Chasing Amy",year:"1997",runtime:"113",genres:["Comedy","Drama","Romance"],director:"Kevin Smith",actors:"Ethan Suplee, Ben Affleck, Scott Mosier, Jason Lee",plot:"Holden and Banky are comic book artists. Everything's going good for them until they meet Alyssa, also a comic book artist. Holden falls for her, but his hopes are crushed when he finds out she's gay.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BZDM3MTg2MGUtZDM0MC00NzMwLWE5NjItOWFjNjA2M2I4YzgxXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:25,title:"Django Unchained",year:"2012",runtime:"165",genres:["Drama","Western"],director:"Quentin Tarantino",actors:"Jamie Foxx, Christoph Waltz, Leonardo DiCaprio, Kerry Washington",plot:"With the help of a German bounty hunter, a freed slave sets out to rescue his wife from a brutal Mississippi plantation owner.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjIyNTQ5NjQ1OV5BMl5BanBnXkFtZTcwODg1MDU4OA@@._V1_SX300.jpg"},{id:26,title:"The Silence of the Lambs",year:"1991",runtime:"118",genres:["Crime","Drama","Thriller"],director:"Jonathan Demme",actors:"Jodie Foster, Lawrence A. Bonney, Kasi Lemmons, Lawrence T. Wrentz",plot:"A young F.B.I. cadet must confide in an incarcerated and manipulative killer to receive his help on catching another serial killer who skins his victims.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQ2NzkzMDI4OF5BMl5BanBnXkFtZTcwMDA0NzE1NA@@._V1_SX300.jpg"},{id:27,title:"American Beauty",year:"1999",runtime:"122",genres:["Drama","Romance"],director:"Sam Mendes",actors:"Kevin Spacey, Annette Bening, Thora Birch, Wes Bentley",plot:"A sexually frustrated suburban father has a mid-life crisis after becoming infatuated with his daughter's best friend.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjM4NTI5NzYyNV5BMl5BanBnXkFtZTgwNTkxNTYxMTE@._V1_SX300.jpg"},{id:28,title:"Snatch",year:"2000",runtime:"102",genres:["Comedy","Crime"],director:"Guy Ritchie",actors:"Benicio Del Toro, Dennis Farina, Vinnie Jones, Brad Pitt",plot:"Unscrupulous boxing promoters, violent bookmakers, a Russian gangster, incompetent amateur robbers, and supposedly Jewish jewelers fight to track down a priceless stolen diamond.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTA2NDYxOGYtYjU1Mi00Y2QzLTgxMTQtMWI1MGI0ZGQ5MmU4XkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"},{id:29,title:"Midnight Express",year:"1978",runtime:"121",genres:["Crime","Drama","Thriller"],director:"Alan Parker",actors:"Brad Davis, Irene Miracle, Bo Hopkins, Paolo Bonacelli",plot:"Billy Hayes, an American college student, is caught smuggling drugs out of Turkey and thrown into prison.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQyMDA5MzkyOF5BMl5BanBnXkFtZTgwOTYwNTcxMTE@._V1_SX300.jpg"},{id:30,title:"Pulp Fiction",year:"1994",runtime:"154",genres:["Crime","Drama"],director:"Quentin Tarantino",actors:"Tim Roth, Amanda Plummer, Laura Lovelace, John Travolta",plot:"The lives of two mob hit men, a boxer, a gangster's wife, and a pair of diner bandits intertwine in four tales of violence and redemption.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTkxMTA5OTAzMl5BMl5BanBnXkFtZTgwNjA5MDc3NjE@._V1_SX300.jpg"},{id:31,title:"Lock, Stock and Two Smoking Barrels",year:"1998",runtime:"107",genres:["Comedy","Crime"],director:"Guy Ritchie",actors:"Jason Flemyng, Dexter Fletcher, Nick Moran, Jason Statham",plot:"A botched card game in London triggers four friends, thugs, weed-growers, hard gangsters, loan sharks and debt collectors to collide with each other in a series of unexpected events, all for the sake of weed, cash and two antique shotguns.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTAyN2JmZmEtNjAyMy00NzYwLThmY2MtYWQ3OGNhNjExMmM4XkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"},{id:32,title:"Lucky Number Slevin",year:"2006",runtime:"110",genres:["Crime","Drama","Mystery"],director:"Paul McGuigan",actors:"Josh Hartnett, Bruce Willis, Lucy Liu, Morgan Freeman",plot:"A case of mistaken identity lands Slevin into the middle of a war being plotted by two of the city's most rival crime bosses: The Rabbi and The Boss. Slevin is under constant surveillance by relentless Detective Brikowski as well as the infamous assassin Goodkat and finds himself having to hatch his own ingenious plot to get them before they get him.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMzc1OTEwMTk4OF5BMl5BanBnXkFtZTcwMTEzMDQzMQ@@._V1_SX300.jpg"},{id:33,title:"Rear Window",year:"1954",runtime:"112",genres:["Mystery","Thriller"],director:"Alfred Hitchcock",actors:"James Stewart, Grace Kelly, Wendell Corey, Thelma Ritter",plot:"A wheelchair-bound photographer spies on his neighbours from his apartment window and becomes convinced one of them has committed murder.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNGUxYWM3M2MtMGM3Mi00ZmRiLWE0NGQtZjE5ODI2OTJhNTU0XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:34,title:"Pan's Labyrinth",year:"2006",runtime:"118",genres:["Drama","Fantasy","War"],director:"Guillermo del Toro",actors:"Ivana Baquero, Sergi L\xf3pez, Maribel Verd\xfa, Doug Jones",plot:"In the falangist Spain of 1944, the bookish young stepdaughter of a sadistic army officer escapes into an eerie but captivating fantasy world.",posterUrl:""},{id:35,title:"Shutter Island",year:"2010",runtime:"138",genres:["Mystery","Thriller"],director:"Martin Scorsese",actors:"Leonardo DiCaprio, Mark Ruffalo, Ben Kingsley, Max von Sydow",plot:"In 1954, a U.S. marshal investigates the disappearance of a murderess who escaped from a hospital for the criminally insane.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTMxMTIyNzMxMV5BMl5BanBnXkFtZTcwOTc4OTI3Mg@@._V1_SX300.jpg"},{id:36,title:"Reservoir Dogs",year:"1992",runtime:"99",genres:["Crime","Drama","Thriller"],director:"Quentin Tarantino",actors:"Harvey Keitel, Tim Roth, Michael Madsen, Chris Penn",plot:"After a simple jewelry heist goes terribly wrong, the surviving criminals begin to suspect that one of them is a police informant.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNjE5ZDJiZTQtOGE2YS00ZTc5LTk0OGUtOTg2NjdjZmVlYzE2XkEyXkFqcGdeQXVyMzM4MjM0Nzg@._V1_SX300.jpg"},{id:37,title:"The Shining",year:"1980",runtime:"146",genres:["Drama","Horror"],director:"Stanley Kubrick",actors:"Jack Nicholson, Shelley Duvall, Danny Lloyd, Scatman Crothers",plot:"A family heads to an isolated hotel for the winter where an evil and spiritual presence influences the father into violence, while his psychic son sees horrific forebodings from the past and of the future.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BODMxMjE3NTA4Ml5BMl5BanBnXkFtZTgwNDc0NTIxMDE@._V1_SX300.jpg"},{id:38,title:"Midnight in Paris",year:"2011",runtime:"94",genres:["Comedy","Fantasy","Romance"],director:"Woody Allen",actors:"Owen Wilson, Rachel McAdams, Kurt Fuller, Mimi Kennedy",plot:"While on a trip to Paris with his fianc\xe9e's family, a nostalgic screenwriter finds himself mysteriously going back to the 1920s everyday at midnight.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTM4NjY1MDQwMl5BMl5BanBnXkFtZTcwNTI3Njg3NA@@._V1_SX300.jpg"},{id:39,title:"Les Mis\xe9rables",year:"2012",runtime:"158",genres:["Drama","Musical","Romance"],director:"Tom Hooper",actors:"Hugh Jackman, Russell Crowe, Anne Hathaway, Amanda Seyfried",plot:"In 19th-century France, Jean Valjean, who for decades has been hunted by the ruthless policeman Javert after breaking parole, agrees to care for a factory worker's daughter. The decision changes their lives forever.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTQ4NDI3NDg4M15BMl5BanBnXkFtZTcwMjY5OTI1OA@@._V1_SX300.jpg"},{id:40,title:"L.A. Confidential",year:"1997",runtime:"138",genres:["Crime","Drama","Mystery"],director:"Curtis Hanson",actors:"Kevin Spacey, Russell Crowe, Guy Pearce, James Cromwell",plot:"As corruption grows in 1950s LA, three policemen - one strait-laced, one brutal, and one sleazy - investigate a series of murders with their own brand of justice.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNWEwNDhhNWUtYWMzNi00ZTNhLWFiZDAtMjBjZmJhMTU0ZTY2XkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"},{id:41,title:"Moneyball",year:"2011",runtime:"133",genres:["Biography","Drama","Sport"],director:"Bennett Miller",actors:"Brad Pitt, Jonah Hill, Philip Seymour Hoffman, Robin Wright",plot:"Oakland A's general manager Billy Beane's successful attempt to assemble a baseball team on a lean budget by employing computer-generated analysis to acquire new players.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjAxOTU3Mzc1M15BMl5BanBnXkFtZTcwMzk1ODUzNg@@._V1_SX300.jpg"},{id:42,title:"The Hangover",year:"2009",runtime:"100",genres:["Comedy"],director:"Todd Phillips",actors:"Bradley Cooper, Ed Helms, Zach Galifianakis, Justin Bartha",plot:"Three buddies wake up from a bachelor party in Las Vegas, with no memory of the previous night and the bachelor missing. They make their way around the city in order to find their friend before his wedding.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTU1MDA1MTYwMF5BMl5BanBnXkFtZTcwMDcxMzA1Mg@@._V1_SX300.jpg"},{id:43,title:"The Great Beauty",year:"2013",runtime:"141",genres:["Drama"],director:"Paolo Sorrentino",actors:"Toni Servillo, Carlo Verdone, Sabrina Ferilli, Carlo Buccirosso",plot:"Jep Gambardella has seduced his way through the lavish nightlife of Rome for decades, but after his 65th birthday and a shock from the past, Jep looks past the nightclubs and parties to find a timeless landscape of absurd, exquisite beauty.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQ0ODg1OTQ2Nl5BMl5BanBnXkFtZTgwNTc2MDY1MDE@._V1_SX300.jpg"},{id:44,title:"Gran Torino",year:"2008",runtime:"116",genres:["Drama"],director:"Clint Eastwood",actors:"Clint Eastwood, Christopher Carley, Bee Vang, Ahney Her",plot:"Disgruntled Korean War veteran Walt Kowalski sets out to reform his neighbor, a Hmong teenager who tried to steal Kowalski's prized possession: a 1972 Gran Torino.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTQyMTczMTAxMl5BMl5BanBnXkFtZTcwOTc1ODE0Mg@@._V1_SX300.jpg"},{id:45,title:"Mary and Max",year:"2009",runtime:"92",genres:["Animation","Comedy","Drama"],director:"Adam Elliot",actors:"Toni Collette, Philip Seymour Hoffman, Barry Humphries, Eric Bana",plot:"A tale of friendship between two unlikely pen pals: Mary, a lonely, eight-year-old girl living in the suburbs of Melbourne, and Max, a forty-four-year old, severely obese man living in New York.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQ1NDIyNTA1Nl5BMl5BanBnXkFtZTcwMjc2Njk3OA@@._V1_SX300.jpg"},{id:46,title:"Flight",year:"2012",runtime:"138",genres:["Drama","Thriller"],director:"Robert Zemeckis",actors:"Nadine Velazquez, Denzel Washington, Carter Cabassa, Adam C. Edwards",plot:"An airline pilot saves almost all his passengers on his malfunctioning airliner which eventually crashed, but an investigation into the accident reveals something troubling.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTUxMjI1OTMxNl5BMl5BanBnXkFtZTcwNjc3NTY1OA@@._V1_SX300.jpg"},{id:47,title:"One Flew Over the Cuckoo's Nest",year:"1975",runtime:"133",genres:["Drama"],director:"Milos Forman",actors:"Michael Berryman, Peter Brocco, Dean R. Brooks, Alonzo Brown",plot:"A criminal pleads insanity after getting into trouble again and once in the mental institution rebels against the oppressive nurse and rallies up the scared patients.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BYmJkODkwOTItZThjZC00MTE0LWIxNzQtYTM3MmQwMGI1OWFiXkEyXkFqcGdeQXVyNjUwNzk3NDc@._V1_SX300.jpg"},{id:48,title:"Requiem for a Dream",year:"2000",runtime:"102",genres:["Drama"],director:"Darren Aronofsky",actors:"Ellen Burstyn, Jared Leto, Jennifer Connelly, Marlon Wayans",plot:"The drug-induced utopias of four Coney Island people are shattered when their addictions run deep.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTkzODMzODYwOF5BMl5BanBnXkFtZTcwODM2NjA2NQ@@._V1_SX300.jpg"},{id:49,title:"The Truman Show",year:"1998",runtime:"103",genres:["Comedy","Drama","Sci-Fi"],director:"Peter Weir",actors:"Jim Carrey, Laura Linney, Noah Emmerich, Natascha McElhone",plot:"An insurance salesman/adjuster discovers his entire life is actually a television show.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMDIzODcyY2EtMmY2MC00ZWVlLTgwMzAtMjQwOWUyNmJjNTYyXkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"},{id:50,title:"The Artist",year:"2011",runtime:"100",genres:["Comedy","Drama","Romance"],director:"Michel Hazanavicius",actors:"Jean Dujardin, B\xe9r\xe9nice Bejo, John Goodman, James Cromwell",plot:"A silent movie star meets a young dancer, but the arrival of talking pictures sends their careers in opposite directions.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMzk0NzQxMTM0OV5BMl5BanBnXkFtZTcwMzU4MDYyNQ@@._V1_SX300.jpg"},{id:51,title:"Forrest Gump",year:"1994",runtime:"142",genres:["Comedy","Drama"],director:"Robert Zemeckis",actors:"Tom Hanks, Rebecca Williams, Sally Field, Michael Conner Humphreys",plot:"Forrest Gump, while not intelligent, has accidentally been present at many historic moments, but his true love, Jenny Curran, eludes him.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BYThjM2MwZGMtMzg3Ny00NGRkLWE4M2EtYTBiNWMzOTY0YTI4XkEyXkFqcGdeQXVyNDYyMDk5MTU@._V1_SX300.jpg"},{id:52,title:"The Hobbit: The Desolation of Smaug",year:"2013",runtime:"161",genres:["Adventure","Fantasy"],director:"Peter Jackson",actors:"Ian McKellen, Martin Freeman, Richard Armitage, Ken Stott",plot:"The dwarves, along with Bilbo Baggins and Gandalf the Grey, continue their quest to reclaim Erebor, their homeland, from Smaug. Bilbo Baggins is in possession of a mysterious and magical ring.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMzU0NDY0NDEzNV5BMl5BanBnXkFtZTgwOTIxNDU1MDE@._V1_SX300.jpg"},{id:53,title:"Vicky Cristina Barcelona",year:"2008",runtime:"96",genres:["Drama","Romance"],director:"Woody Allen",actors:"Rebecca Hall, Scarlett Johansson, Christopher Evan Welch, Chris Messina",plot:"Two girlfriends on a summer holiday in Spain become enamored with the same painter, unaware that his ex-wife, with whom he has a tempestuous relationship, is about to re-enter the picture.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTU2NDQ4MTg2MV5BMl5BanBnXkFtZTcwNDUzNjU3MQ@@._V1_SX300.jpg"},{id:54,title:"Slumdog Millionaire",year:"2008",runtime:"120",genres:["Drama","Romance"],director:"Danny Boyle, Loveleen Tandan",actors:"Dev Patel, Saurabh Shukla, Anil Kapoor, Rajendranath Zutshi",plot:'A Mumbai teen reflects on his upbringing in the slums when he is accused of cheating on the Indian Version of "Who Wants to be a Millionaire?"',posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTU2NTA5NzI0N15BMl5BanBnXkFtZTcwMjUxMjYxMg@@._V1_SX300.jpg"},{id:55,title:"Lost in Translation",year:"2003",runtime:"101",genres:["Drama"],director:"Sofia Coppola",actors:"Scarlett Johansson, Bill Murray, Akiko Takeshita, Kazuyoshi Minamimagoe",plot:"A faded movie star and a neglected young woman form an unlikely bond after crossing paths in Tokyo.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTI2NDI5ODk4N15BMl5BanBnXkFtZTYwMTI3NTE3._V1_SX300.jpg"},{id:56,title:"Match Point",year:"2005",runtime:"119",genres:["Drama","Romance","Thriller"],director:"Woody Allen",actors:"Jonathan Rhys Meyers, Alexander Armstrong, Paul Kaye, Matthew Goode",plot:"At a turning point in his life, a former tennis pro falls for an actress who happens to be dating his friend and soon-to-be brother-in-law.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTMzNzY4MzE5NF5BMl5BanBnXkFtZTcwMzQ1MDMzMQ@@._V1_SX300.jpg"},{id:57,title:"Psycho",year:"1960",runtime:"109",genres:["Horror","Mystery","Thriller"],director:"Alfred Hitchcock",actors:"Anthony Perkins, Vera Miles, John Gavin, Janet Leigh",plot:"A Phoenix secretary embezzles $40,000 from her employer's client, goes on the run, and checks into a remote motel run by a young man under the domination of his mother.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMDI3OWRmOTEtOWJhYi00N2JkLTgwNGItMjdkN2U0NjFiZTYwXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:58,title:"North by Northwest",year:"1959",runtime:"136",genres:["Action","Adventure","Crime"],director:"Alfred Hitchcock",actors:"Cary Grant, Eva Marie Saint, James Mason, Jessie Royce Landis",plot:"A hapless New York advertising executive is mistaken for a government agent by a group of foreign spies, and is pursued across the country while he looks for a way to survive.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjQwMTQ0MzgwNl5BMl5BanBnXkFtZTgwNjc4ODE4MzE@._V1_SX300.jpg"},{id:59,title:"Madagascar: Escape 2 Africa",year:"2008",runtime:"89",genres:["Animation","Action","Adventure"],director:"Eric Darnell, Tom McGrath",actors:"Ben Stiller, Chris Rock, David Schwimmer, Jada Pinkett Smith",plot:"The animals try to fly back to New York City, but crash-land on an African wildlife refuge, where Alex is reunited with his parents.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjExMDA4NDcwMl5BMl5BanBnXkFtZTcwODAxNTQ3MQ@@._V1_SX300.jpg"},{id:60,title:"Despicable Me 2",year:"2013",runtime:"98",genres:["Animation","Adventure","Comedy"],director:"Pierre Coffin, Chris Renaud",actors:"Steve Carell, Kristen Wiig, Benjamin Bratt, Miranda Cosgrove",plot:"When Gru, the world's most super-bad turned super-dad has been recruited by a team of officials to stop lethal muscle and a host of Gru's own, He has to fight back with new gadgetry, cars, and more minion madness.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjExNjAyNTcyMF5BMl5BanBnXkFtZTgwODQzMjQ3MDE@._V1_SX300.jpg"},{id:61,title:"Downfall",year:"2004",runtime:"156",genres:["Biography","Drama","History"],director:"Oliver Hirschbiegel",actors:"Bruno Ganz, Alexandra Maria Lara, Corinna Harfouch, Ulrich Matthes",plot:"Traudl Junge, the final secretary for Adolf Hitler, tells of the Nazi dictator's final days in his Berlin bunker at the end of WWII.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM1OTI1MjE2Nl5BMl5BanBnXkFtZTcwMTEwMzc4NA@@._V1_SX300.jpg"},{id:62,title:"Madagascar",year:"2005",runtime:"86",genres:["Animation","Adventure","Comedy"],director:"Eric Darnell, Tom McGrath",actors:"Ben Stiller, Chris Rock, David Schwimmer, Jada Pinkett Smith",plot:"Spoiled by their upbringing with no idea what wild life is really like, four animals from New York Central Zoo escape, unwittingly assisted by four absconding penguins, and find themselves in Madagascar, among a bunch of merry lemurs",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTY4NDUwMzQxMF5BMl5BanBnXkFtZTcwMDgwNjgyMQ@@._V1_SX300.jpg"},{id:63,title:"Madagascar 3: Europe's Most Wanted",year:"2012",runtime:"93",genres:["Animation","Adventure","Comedy"],director:"Eric Darnell, Tom McGrath, Conrad Vernon",actors:"Ben Stiller, Chris Rock, David Schwimmer, Jada Pinkett Smith",plot:"Alex, Marty, Gloria and Melman are still fighting to get home to their beloved Big Apple. Their journey takes them through Europe where they find the perfect cover: a traveling circus, which they reinvent - Madagascar style.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM2MTIzNzk2MF5BMl5BanBnXkFtZTcwMDcwMzQxNw@@._V1_SX300.jpg"},{id:64,title:"God Bless America",year:"2011",runtime:"105",genres:["Comedy","Crime"],director:"Bobcat Goldthwait",actors:"Joel Murray, Tara Lynne Barr, Melinda Page Hamilton, Mackenzie Brooke Smith",plot:"On a mission to rid society of its most repellent citizens, terminally ill Frank makes an unlikely accomplice in 16-year-old Roxy.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQwMTc1MzA4NF5BMl5BanBnXkFtZTcwNzQwMTgzNw@@._V1_SX300.jpg"},{id:65,title:"The Social Network",year:"2010",runtime:"120",genres:["Biography","Drama"],director:"David Fincher",actors:"Jesse Eisenberg, Rooney Mara, Bryan Barter, Dustin Fitzsimons",plot:"Harvard student Mark Zuckerberg creates the social networking site that would become known as Facebook, but is later sued by two brothers who claimed he stole their idea, and the co-founder who was later squeezed out of the business.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM2ODk0NDAwMF5BMl5BanBnXkFtZTcwNTM1MDc2Mw@@._V1_SX300.jpg"},{id:66,title:"The Pianist",year:"2002",runtime:"150",genres:["Biography","Drama","War"],director:"Roman Polanski",actors:"Adrien Brody, Emilia Fox, Michal Zebrowski, Ed Stoppard",plot:"A Polish Jewish musician struggles to survive the destruction of the Warsaw ghetto of World War II.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTc4OTkyOTA3OF5BMl5BanBnXkFtZTYwMDIxNjk5._V1_SX300.jpg"},{id:67,title:"Alive",year:"1993",runtime:"120",genres:["Adventure","Biography","Drama"],director:"Frank Marshall",actors:"Ethan Hawke, Vincent Spano, Josh Hamilton, Bruce Ramsay",plot:"Uruguayan rugby team stranded in the snow swept Andes are forced to use desperate measures to survive after a plane crash.",posterUrl:""},{id:68,title:"Casablanca",year:"1942",runtime:"102",genres:["Drama","Romance","War"],director:"Michael Curtiz",actors:"Humphrey Bogart, Ingrid Bergman, Paul Henreid, Claude Rains",plot:"In Casablanca, Morocco in December 1941, a cynical American expatriate meets a former lover, with unforeseen complications.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjQwNDYyNTk2N15BMl5BanBnXkFtZTgwMjQ0OTMyMjE@._V1_SX300.jpg"},{id:69,title:"American Gangster",year:"2007",runtime:"157",genres:["Biography","Crime","Drama"],director:"Ridley Scott",actors:"Denzel Washington, Russell Crowe, Chiwetel Ejiofor, Josh Brolin",plot:"In 1970s America, a detective works to bring down the drug empire of Frank Lucas, a heroin kingpin from Manhattan, who is smuggling the drug into the country from the Far East.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTkyNzY5MDA5MV5BMl5BanBnXkFtZTcwMjg4MzI3MQ@@._V1_SX300.jpg"},{id:70,title:"Catch Me If You Can",year:"2002",runtime:"141",genres:["Biography","Crime","Drama"],director:"Steven Spielberg",actors:"Leonardo DiCaprio, Tom Hanks, Christopher Walken, Martin Sheen",plot:"The true story of Frank Abagnale Jr. who, before his 19th birthday, successfully conned millions of dollars' worth of checks as a Pan Am pilot, doctor, and legal prosecutor.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTY5MzYzNjc5NV5BMl5BanBnXkFtZTYwNTUyNTc2._V1_SX300.jpg"},{id:71,title:"American History X",year:"1998",runtime:"119",genres:["Crime","Drama"],director:"Tony Kaye",actors:"Edward Norton, Edward Furlong, Beverly D'Angelo, Jennifer Lien",plot:"A former neo-nazi skinhead tries to prevent his younger brother from going down the same wrong path that he did.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BZjA0MTM4MTQtNzY5MC00NzY3LWI1ZTgtYzcxMjkyMzU4MDZiXkEyXkFqcGdeQXVyNDYyMDk5MTU@._V1_SX300.jpg"},{id:72,title:"Casino",year:"1995",runtime:"178",genres:["Biography","Crime","Drama"],director:"Martin Scorsese",actors:"Robert De Niro, Sharon Stone, Joe Pesci, James Woods",plot:"Greed, deception, money, power, and murder occur between two best friends, a mafia underboss and a casino owner, for a trophy wife over a gambling empire.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTcxOWYzNDYtYmM4YS00N2NkLTk0NTAtNjg1ODgwZjAxYzI3XkEyXkFqcGdeQXVyNTA4NzY1MzY@._V1_SX300.jpg"},{id:73,title:"Pirates of the Caribbean: At World's End",year:"2007",runtime:"169",genres:["Action","Adventure","Fantasy"],director:"Gore Verbinski",actors:"Johnny Depp, Geoffrey Rush, Orlando Bloom, Keira Knightley",plot:"Captain Barbossa, Will Turner and Elizabeth Swann must sail off the edge of the map, navigate treachery and betrayal, find Jack Sparrow, and make their final alliances for one last decisive battle.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjIyNjkxNzEyMl5BMl5BanBnXkFtZTYwMjc3MDE3._V1_SX300.jpg"},{id:74,title:"Pirates of the Caribbean: On Stranger Tides",year:"2011",runtime:"136",genres:["Action","Adventure","Fantasy"],director:"Rob Marshall",actors:"Johnny Depp, Pen\xe9lope Cruz, Geoffrey Rush, Ian McShane",plot:"Jack Sparrow and Barbossa embark on a quest to find the elusive fountain of youth, only to discover that Blackbeard and his daughter are after it too.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjE5MjkwODI3Nl5BMl5BanBnXkFtZTcwNjcwMDk4NA@@._V1_SX300.jpg"},{id:75,title:"Crash",year:"2004",runtime:"112",genres:["Crime","Drama","Thriller"],director:"Paul Haggis",actors:"Karina Arroyave, Dato Bakhtadze, Sandra Bullock, Don Cheadle",plot:"Los Angeles citizens with vastly separate lives collide in interweaving stories of race, loss and redemption.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BOTk1OTA1MjIyNV5BMl5BanBnXkFtZTcwODQxMTkyMQ@@._V1_SX300.jpg"},{id:76,title:"Pirates of the Caribbean: The Curse of the Black Pearl",year:"2003",runtime:"143",genres:["Action","Adventure","Fantasy"],director:"Gore Verbinski",actors:"Johnny Depp, Geoffrey Rush, Orlando Bloom, Keira Knightley",plot:"Blacksmith Will Turner teams up with eccentric pirate \"Captain\" Jack Sparrow to save his love, the governor's daughter, from Jack's former pirate allies, who are now undead.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjAyNDM4MTc2N15BMl5BanBnXkFtZTYwNDk0Mjc3._V1_SX300.jpg"},{id:77,title:"The Lord of the Rings: The Return of the King",year:"2003",runtime:"201",genres:["Action","Adventure","Drama"],director:"Peter Jackson",actors:"Noel Appleby, Ali Astin, Sean Astin, David Aston",plot:"Gandalf and Aragorn lead the World of Men against Sauron's army to draw his gaze from Frodo and Sam as they approach Mount Doom with the One Ring.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjE4MjA1NTAyMV5BMl5BanBnXkFtZTcwNzM1NDQyMQ@@._V1_SX300.jpg"},{id:78,title:"Oldboy",year:"2003",runtime:"120",genres:["Drama","Mystery","Thriller"],director:"Chan-wook Park",actors:"Min-sik Choi, Ji-tae Yu, Hye-jeong Kang, Dae-han Ji",plot:"After being kidnapped and imprisoned for 15 years, Oh Dae-Su is released, only to find that he must find his captor in 5 days.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTI3NTQyMzU5M15BMl5BanBnXkFtZTcwMTM2MjgyMQ@@._V1_SX300.jpg"},{id:79,title:"Chocolat",year:"2000",runtime:"121",genres:["Drama","Romance"],director:"Lasse Hallstr\xf6m",actors:"Alfred Molina, Carrie-Anne Moss, Aurelien Parent Koenig, Antonio Gil",plot:"A woman and her daughter open a chocolate shop in a small French village that shakes up the rigid morality of the community.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA4MDI3NTQwMV5BMl5BanBnXkFtZTcwNjIzNDcyMQ@@._V1_SX300.jpg"},{id:80,title:"Casino Royale",year:"2006",runtime:"144",genres:["Action","Adventure","Thriller"],director:"Martin Campbell",actors:"Daniel Craig, Eva Green, Mads Mikkelsen, Judi Dench",plot:"Armed with a licence to kill, Secret Agent James Bond sets out on his first mission as 007 and must defeat a weapons dealer in a high stakes game of poker at Casino Royale, but things are not what they seem.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM5MjI4NDExNF5BMl5BanBnXkFtZTcwMDM1MjMzMQ@@._V1_SX300.jpg"},{id:81,title:"WALL\xb7E",year:"2008",runtime:"98",genres:["Animation","Adventure","Family"],director:"Andrew Stanton",actors:"Ben Burtt, Elissa Knight, Jeff Garlin, Fred Willard",plot:"In the distant future, a small waste-collecting robot inadvertently embarks on a space journey that will ultimately decide the fate of mankind.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTczOTA3MzY2N15BMl5BanBnXkFtZTcwOTYwNjE2MQ@@._V1_SX300.jpg"},{id:82,title:"The Wolf of Wall Street",year:"2013",runtime:"180",genres:["Biography","Comedy","Crime"],director:"Martin Scorsese",actors:"Leonardo DiCaprio, Jonah Hill, Margot Robbie, Matthew McConaughey",plot:"Based on the true story of Jordan Belfort, from his rise to a wealthy stock-broker living the high life to his fall involving crime, corruption and the federal government.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjIxMjgxNTk0MF5BMl5BanBnXkFtZTgwNjIyOTg2MDE@._V1_SX300.jpg"},{id:83,title:"Hellboy II: The Golden Army",year:"2008",runtime:"120",genres:["Action","Adventure","Fantasy"],director:"Guillermo del Toro",actors:"Ron Perlman, Selma Blair, Doug Jones, John Alexander",plot:"The mythical world starts a rebellion against humanity in order to rule the Earth, so Hellboy and his team must save the world from the rebellious creatures.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA5NzgyMjc2Nl5BMl5BanBnXkFtZTcwOTU3MDI3MQ@@._V1_SX300.jpg"},{id:84,title:"Sunset Boulevard",year:"1950",runtime:"110",genres:["Drama","Film-Noir","Romance"],director:"Billy Wilder",actors:"William Holden, Gloria Swanson, Erich von Stroheim, Nancy Olson",plot:"A hack screenwriter writes a screenplay for a former silent-film star who has faded into Hollywood obscurity.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTc3NDYzODAwNV5BMl5BanBnXkFtZTgwODg1MTczMTE@._V1_SX300.jpg"},{id:85,title:"I-See-You.Com",year:"2006",runtime:"92",genres:["Comedy"],director:"Eric Steven Stahl",actors:"Beau Bridges, Rosanna Arquette, Mathew Botuchis, Shiri Appleby",plot:"A 17-year-old boy buys mini-cameras and displays the footage online at I-see-you.com. The cash rolls in as the site becomes a major hit. Everyone seems to have fun until it all comes crashing down....",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTYwMDUzNzA5Nl5BMl5BanBnXkFtZTcwMjQ2Njk3MQ@@._V1_SX300.jpg"},{id:86,title:"The Grand Budapest Hotel",year:"2014",runtime:"99",genres:["Adventure","Comedy","Crime"],director:"Wes Anderson",actors:"Ralph Fiennes, F. Murray Abraham, Mathieu Amalric, Adrien Brody",plot:"The adventures of Gustave H, a legendary concierge at a famous hotel from the fictional Republic of Zubrowka between the first and second World Wars, and Zero Moustafa, the lobby boy who becomes his most trusted friend.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMzM5NjUxOTEyMl5BMl5BanBnXkFtZTgwNjEyMDM0MDE@._V1_SX300.jpg"},{id:87,title:"The Hitchhiker's Guide to the Galaxy",year:"2005",runtime:"109",genres:["Adventure","Comedy","Sci-Fi"],director:"Garth Jennings",actors:"Bill Bailey, Anna Chancellor, Warwick Davis, Yasiin Bey",plot:'Mere seconds before the Earth is to be demolished by an alien construction crew, journeyman Arthur Dent is swept off the planet by his friend Ford Prefect, a researcher penning a new edition of "The Hitchhiker\'s Guide to the Galaxy."',posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjEwOTk4NjU2MF5BMl5BanBnXkFtZTYwMDA3NzI3._V1_SX300.jpg"},{id:88,title:"Once Upon a Time in America",year:"1984",runtime:"229",genres:["Crime","Drama"],director:"Sergio Leone",actors:"Robert De Niro, James Woods, Elizabeth McGovern, Joe Pesci",plot:"A former Prohibition-era Jewish gangster returns to the Lower East Side of Manhattan over thirty years later, where he once again must confront the ghosts and regrets of his old life.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMGFkNWI4MTMtNGQ0OC00MWVmLTk3MTktOGYxN2Y2YWVkZWE2XkEyXkFqcGdeQXVyNjU0OTQ0OTY@._V1_SX300.jpg"},{id:89,title:"Oblivion",year:"2013",runtime:"124",genres:["Action","Adventure","Mystery"],director:"Joseph Kosinski",actors:"Tom Cruise, Morgan Freeman, Olga Kurylenko, Andrea Riseborough",plot:"A veteran assigned to extract Earth's remaining resources begins to question what he knows about his mission and himself.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQwMDY0MTA4MF5BMl5BanBnXkFtZTcwNzI3MDgxOQ@@._V1_SX300.jpg"},{id:90,title:"V for Vendetta",year:"2005",runtime:"132",genres:["Action","Drama","Thriller"],director:"James McTeigue",actors:"Natalie Portman, Hugo Weaving, Stephen Rea, Stephen Fry",plot:'In a future British tyranny, a shadowy freedom fighter, known only by the alias of "V", plots to overthrow it with the help of a young woman.',posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BOTI5ODc3NzExNV5BMl5BanBnXkFtZTcwNzYxNzQzMw@@._V1_SX300.jpg"},{id:91,title:"Gattaca",year:"1997",runtime:"106",genres:["Drama","Sci-Fi","Thriller"],director:"Andrew Niccol",actors:"Ethan Hawke, Uma Thurman, Gore Vidal, Xander Berkeley",plot:"A genetically inferior man assumes the identity of a superior one in order to pursue his lifelong dream of space travel.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNDQxOTc0MzMtZmRlOS00OWQ5LWI2ZDctOTAwNmMwOTYxYzlhXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:92,title:"Silver Linings Playbook",year:"2012",runtime:"122",genres:["Comedy","Drama","Romance"],director:"David O. Russell",actors:"Bradley Cooper, Jennifer Lawrence, Robert De Niro, Jacki Weaver",plot:"After a stint in a mental institution, former teacher Pat Solitano moves back in with his parents and tries to reconcile with his ex-wife. Things get more challenging when Pat meets Tiffany, a mysterious girl with problems of her own.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM2MTI5NzA3MF5BMl5BanBnXkFtZTcwODExNTc0OA@@._V1_SX300.jpg"},{id:93,title:"Alice in Wonderland",year:"2010",runtime:"108",genres:["Adventure","Family","Fantasy"],director:"Tim Burton",actors:"Johnny Depp, Mia Wasikowska, Helena Bonham Carter, Anne Hathaway",plot:"Nineteen-year-old Alice returns to the magical world from her childhood adventure, where she reunites with her old friends and learns of her true destiny: to end the Red Queen's reign of terror.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTMwNjAxMTc0Nl5BMl5BanBnXkFtZTcwODc3ODk5Mg@@._V1_SX300.jpg"},{id:94,title:"Gandhi",year:"1982",runtime:"191",genres:["Biography","Drama"],director:"Richard Attenborough",actors:"Ben Kingsley, Candice Bergen, Edward Fox, John Gielgud",plot:"Gandhi's character is fully explained as a man of nonviolence. Through his patience, he is able to drive the British out of the subcontinent. And the stubborn nature of Jinnah and his commitment towards Pakistan is portrayed.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMzJiZDRmOWUtYjE2MS00Mjc1LTg1ZDYtNTQxYWJkZTg1OTM4XkEyXkFqcGdeQXVyNjUwNzk3NDc@._V1_SX300.jpg"},{id:95,title:"Pacific Rim",year:"2013",runtime:"131",genres:["Action","Adventure","Sci-Fi"],director:"Guillermo del Toro",actors:"Charlie Hunnam, Diego Klattenhoff, Idris Elba, Rinko Kikuchi",plot:"As a war between humankind and monstrous sea creatures wages on, a former pilot and a trainee are paired up to drive a seemingly obsolete special weapon in a desperate effort to save the world from the apocalypse.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTY3MTI5NjQ4Nl5BMl5BanBnXkFtZTcwOTU1OTU0OQ@@._V1_SX300.jpg"},{id:96,title:"Kiss Kiss Bang Bang",year:"2005",runtime:"103",genres:["Comedy","Crime","Mystery"],director:"Shane Black",actors:"Robert Downey Jr., Val Kilmer, Michelle Monaghan, Corbin Bernsen",plot:"A murder mystery brings together a private eye, a struggling actress, and a thief masquerading as an actor.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTY5NDExMDA3M15BMl5BanBnXkFtZTYwNTc2MzA3._V1_SX300.jpg"},{id:97,title:"The Quiet American",year:"2002",runtime:"101",genres:["Drama","Mystery","Romance"],director:"Phillip Noyce",actors:"Michael Caine, Brendan Fraser, Do Thi Hai Yen, Rade Serbedzija",plot:"An older British reporter vies with a young U.S. doctor for the affections of a beautiful Vietnamese woman.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjE2NTUxNTE3Nl5BMl5BanBnXkFtZTYwNTczMTg5._V1_SX300.jpg"},{id:98,title:"Cloud Atlas",year:"2012",runtime:"172",genres:["Drama","Sci-Fi"],director:"Tom Tykwer, Lana Wachowski, Lilly Wachowski",actors:"Tom Hanks, Halle Berry, Jim Broadbent, Hugo Weaving",plot:"An exploration of how the actions of individual lives impact one another in the past, present and future, as one soul is shaped from a killer into a hero, and an act of kindness ripples across centuries to inspire a revolution.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTczMTgxMjc4NF5BMl5BanBnXkFtZTcwNjM5MTA2OA@@._V1_SX300.jpg"},{id:99,title:"The Impossible",year:"2012",runtime:"114",genres:["Drama","Thriller"],director:"J.A. Bayona",actors:"Naomi Watts, Ewan McGregor, Tom Holland, Samuel Joslin",plot:"The story of a tourist family in Thailand caught in the destruction and chaotic aftermath of the 2004 Indian Ocean tsunami.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA5NTA3NzQ5Nl5BMl5BanBnXkFtZTcwOTYxNjY0OA@@._V1_SX300.jpg"},{id:100,title:"All Quiet on the Western Front",year:"1930",runtime:"136",genres:["Drama","War"],director:"Lewis Milestone",actors:"Louis Wolheim, Lew Ayres, John Wray, Arnold Lucy",plot:"A young soldier faces profound disillusionment in the soul-destroying horror of World War I.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNTM5OTg2NDY1NF5BMl5BanBnXkFtZTcwNTQ4MTMwNw@@._V1_SX300.jpg"},{id:101,title:"The English Patient",year:"1996",runtime:"162",genres:["Drama","Romance","War"],director:"Anthony Minghella",actors:"Ralph Fiennes, Juliette Binoche, Willem Dafoe, Kristin Scott Thomas",plot:"At the close of WWII, a young nurse tends to a badly-burned plane crash victim. His past is shown in flashbacks, revealing an involvement in a fateful love affair.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNDg2OTcxNDE0OF5BMl5BanBnXkFtZTgwOTg2MDM0MDE@._V1_SX300.jpg"},{id:102,title:"Dallas Buyers Club",year:"2013",runtime:"117",genres:["Biography","Drama"],director:"Jean-Marc Vall\xe9e",actors:"Matthew McConaughey, Jennifer Garner, Jared Leto, Denis O'Hare",plot:"In 1985 Dallas, electrician and hustler Ron Woodroof works around the system to help AIDS patients get the medication they need after he is diagnosed with the disease.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTYwMTA4MzgyNF5BMl5BanBnXkFtZTgwMjEyMjE0MDE@._V1_SX300.jpg"},{id:103,title:"Frida",year:"2002",runtime:"123",genres:["Biography","Drama","Romance"],director:"Julie Taymor",actors:"Salma Hayek, M\xeda Maestro, Alfred Molina, Antonio Banderas",plot:"A biography of artist Frida Kahlo, who channeled the pain of a crippling injury and her tempestuous marriage into her work.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTMyODUyMDY1OV5BMl5BanBnXkFtZTYwMDA2OTU3._V1_SX300.jpg"},{id:104,title:"Before Sunrise",year:"1995",runtime:"105",genres:["Drama","Romance"],director:"Richard Linklater",actors:"Ethan Hawke, Julie Delpy, Andrea Eckert, Hanno P\xf6schl",plot:"A young man and woman meet on a train in Europe, and wind up spending one evening together in Vienna. Unfortunately, both know that this will probably be their only night together.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTQyMTM3MTQxMl5BMl5BanBnXkFtZTcwMDAzNjQ4Mg@@._V1_SX300.jpg"},{id:105,title:"The Rum Diary",year:"2011",runtime:"120",genres:["Comedy","Drama"],director:"Bruce Robinson",actors:"Johnny Depp, Aaron Eckhart, Michael Rispoli, Amber Heard",plot:"American journalist Paul Kemp takes on a freelance job in Puerto Rico for a local newspaper during the 1960s and struggles to find a balance between island culture and the expatriates who live there.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM5ODA4MjYxM15BMl5BanBnXkFtZTcwMTM3NTE5Ng@@._V1_SX300.jpg"},{id:106,title:"The Last Samurai",year:"2003",runtime:"154",genres:["Action","Drama","History"],director:"Edward Zwick",actors:"Ken Watanabe, Tom Cruise, William Atherton, Chad Lindberg",plot:"An American military advisor embraces the Samurai culture he was hired to destroy after he is captured in battle.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMzkyNzQ1Mzc0NV5BMl5BanBnXkFtZTcwODg3MzUzMw@@._V1_SX300.jpg"},{id:107,title:"Chinatown",year:"1974",runtime:"130",genres:["Drama","Mystery","Thriller"],director:"Roman Polanski",actors:"Jack Nicholson, Faye Dunaway, John Huston, Perry Lopez",plot:"A private detective hired to expose an adulterer finds himself caught up in a web of deceit, corruption and murder.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BN2YyNDE5NzItMjAwNC00MGQxLTllNjktZGIzMWFkZjA3OWQ0XkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"},{id:108,title:"Calvary",year:"2014",runtime:"102",genres:["Comedy","Drama"],director:"John Michael McDonagh",actors:"Brendan Gleeson, Chris O'Dowd, Kelly Reilly, Aidan Gillen",plot:"After he is threatened during a confession, a good-natured priest must battle the dark forces closing in around him.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTc3MjQ1MjE2M15BMl5BanBnXkFtZTgwNTMzNjE4MTE@._V1_SX300.jpg"},{id:109,title:"Before Sunset",year:"2004",runtime:"80",genres:["Drama","Romance"],director:"Richard Linklater",actors:"Ethan Hawke, Julie Delpy, Vernon Dobtcheff, Louise Lemoine Torr\xe8s",plot:"Nine years after Jesse and Celine first met, they encounter each other again on the French leg of Jesse's book tour.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTQ1MjAwNTM5Ml5BMl5BanBnXkFtZTYwNDM0MTc3._V1_SX300.jpg"},{id:110,title:"Spirited Away",year:"2001",runtime:"125",genres:["Animation","Adventure","Family"],director:"Hayao Miyazaki",actors:"Rumi Hiiragi, Miyu Irino, Mari Natsuki, Takashi Nait\xf4",plot:"During her family's move to the suburbs, a sullen 10-year-old girl wanders into a world ruled by gods, witches, and spirits, and where humans are changed into beasts.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjYxMDcyMzIzNl5BMl5BanBnXkFtZTYwNDg2MDU3._V1_SX300.jpg"},{id:111,title:"Indochine",year:"1992",runtime:"159",genres:["Drama","Romance"],director:"R\xe9gis Wargnier",actors:"Catherine Deneuve, Vincent Perez, Linh Dan Pham, Jean Yanne",plot:"This story is set in 1930, at the time when French colonial rule in Indochina is ending. A widowed French woman who works in the rubber fields, raises a Vietnamese princess as if she was ...",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTM1MTkzNzA3NF5BMl5BanBnXkFtZTYwNTI2MzU5._V1_SX300.jpg"},{id:112,title:"Birdman or (The Unexpected Virtue of Ignorance)",year:"2014",runtime:"119",genres:["Comedy","Drama","Romance"],director:"Alejandro G. I\xf1\xe1rritu",actors:"Michael Keaton, Emma Stone, Kenny Chin, Jamahl Garrison-Lowe",plot:"Illustrated upon the progress of his latest Broadway play, a former popular actor's struggle to cope with his current life as a wasted actor is shown.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BODAzNDMxMzAxOV5BMl5BanBnXkFtZTgwMDMxMjA4MjE@._V1_SX300.jpg"},{id:113,title:"Boyhood",year:"2014",runtime:"165",genres:["Drama"],director:"Richard Linklater",actors:"Ellar Coltrane, Patricia Arquette, Elijah Smith, Lorelei Linklater",plot:"The life of Mason, from early childhood to his arrival at college.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTYzNDc2MDc0N15BMl5BanBnXkFtZTgwOTcwMDQ5MTE@._V1_SX300.jpg"},{id:114,title:"12 Angry Men",year:"1957",runtime:"96",genres:["Crime","Drama"],director:"Sidney Lumet",actors:"Martin Balsam, John Fiedler, Lee J. Cobb, E.G. Marshall",plot:"A jury holdout attempts to prevent a miscarriage of justice by forcing his colleagues to reconsider the evidence.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BODQwOTc5MDM2N15BMl5BanBnXkFtZTcwODQxNTEzNA@@._V1_SX300.jpg"},{id:115,title:"The Imitation Game",year:"2014",runtime:"114",genres:["Biography","Drama","Thriller"],director:"Morten Tyldum",actors:"Benedict Cumberbatch, Keira Knightley, Matthew Goode, Rory Kinnear",plot:"During World War II, mathematician Alan Turing tries to crack the enigma code with help from fellow mathematicians.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNDkwNTEyMzkzNl5BMl5BanBnXkFtZTgwNTAwNzk3MjE@._V1_SX300.jpg"},{id:116,title:"Interstellar",year:"2014",runtime:"169",genres:["Adventure","Drama","Sci-Fi"],director:"Christopher Nolan",actors:"Ellen Burstyn, Matthew McConaughey, Mackenzie Foy, John Lithgow",plot:"A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjIxNTU4MzY4MF5BMl5BanBnXkFtZTgwMzM4ODI3MjE@._V1_SX300.jpg"},{id:117,title:"Big Nothing",year:"2006",runtime:"86",genres:["Comedy","Crime","Thriller"],director:"Jean-Baptiste Andrea",actors:"David Schwimmer, Simon Pegg, Alice Eve, Natascha McElhone",plot:"A frustrated, unemployed teacher joining forces with a scammer and his girlfriend in a blackmailing scheme.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTY5NTc2NjYwOV5BMl5BanBnXkFtZTcwMzk5OTY0MQ@@._V1_SX300.jpg"},{id:118,title:"Das Boot",year:"1981",runtime:"149",genres:["Adventure","Drama","Thriller"],director:"Wolfgang Petersen",actors:"J\xfcrgen Prochnow, Herbert Gr\xf6nemeyer, Klaus Wennemann, Hubertus Bengsch",plot:"The claustrophobic world of a WWII German U-boat; boredom, filth, and sheer terror.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjE5Mzk5OTQ0Nl5BMl5BanBnXkFtZTYwNzUwMTQ5._V1_SX300.jpg"},{id:119,title:"Shrek 2",year:"2004",runtime:"93",genres:["Animation","Adventure","Comedy"],director:"Andrew Adamson, Kelly Asbury, Conrad Vernon",actors:"Mike Myers, Eddie Murphy, Cameron Diaz, Julie Andrews",plot:"Princess Fiona's parents invite her and Shrek to dinner to celebrate her marriage. If only they knew the newlyweds were both ogres.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTk4MTMwNjI4M15BMl5BanBnXkFtZTcwMjExMzUyMQ@@._V1_SX300.jpg"},{id:120,title:"Sin City",year:"2005",runtime:"124",genres:["Crime","Thriller"],director:"Frank Miller, Robert Rodriguez, Quentin Tarantino",actors:"Jessica Alba, Devon Aoki, Alexis Bledel, Powers Boothe",plot:"A film that explores the dark and miserable town, Basin City, and tells the story of three different people, all caught up in violent corruption.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BODZmYjMwNzEtNzVhNC00ZTRmLTk2M2UtNzE1MTQ2ZDAxNjc2XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg"},{id:121,title:"Nebraska",year:"2013",runtime:"115",genres:["Adventure","Comedy","Drama"],director:"Alexander Payne",actors:"Bruce Dern, Will Forte, June Squibb, Bob Odenkirk",plot:"An aging, booze-addled father makes the trip from Montana to Nebraska with his estranged son in order to claim a million-dollar Mega Sweepstakes Marketing prize.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTU2Mjk2NDkyMl5BMl5BanBnXkFtZTgwNTk0NzcyMDE@._V1_SX300.jpg"},{id:122,title:"Shrek",year:"2001",runtime:"90",genres:["Animation","Adventure","Comedy"],director:"Andrew Adamson, Vicky Jenson",actors:"Mike Myers, Eddie Murphy, Cameron Diaz, John Lithgow",plot:"After his swamp is filled with magical creatures, an ogre agrees to rescue a princess for a villainous lord in order to get his land back.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTk2NTE1NTE0M15BMl5BanBnXkFtZTgwNjY4NTYxMTE@._V1_SX300.jpg"},{id:123,title:"Mr. & Mrs. Smith",year:"2005",runtime:"120",genres:["Action","Comedy","Crime"],director:"Doug Liman",actors:"Brad Pitt, Angelina Jolie, Vince Vaughn, Adam Brody",plot:"A bored married couple is surprised to learn that they are both assassins hired by competing agencies to kill each other.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTUxMzcxNzQzOF5BMl5BanBnXkFtZTcwMzQxNjUyMw@@._V1_SX300.jpg"},{id:124,title:"Original Sin",year:"2001",runtime:"116",genres:["Drama","Mystery","Romance"],director:"Michael Cristofer",actors:"Antonio Banderas, Angelina Jolie, Thomas Jane, Jack Thompson",plot:"A woman along with her lover, plan to con a rich man by marrying him and on earning his trust running away with all his money. Everything goes as planned until she actually begins to fall in love with him.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BODg3Mjg0MDY4M15BMl5BanBnXkFtZTcwNjY5MDQ2NA@@._V1_SX300.jpg"},{id:125,title:"Shrek Forever After",year:"2010",runtime:"93",genres:["Animation","Adventure","Comedy"],director:"Mike Mitchell",actors:"Mike Myers, Eddie Murphy, Cameron Diaz, Antonio Banderas",plot:"Rumpelstiltskin tricks a mid-life crisis burdened Shrek into allowing himself to be erased from existence and cast in a dark alternate timeline where Rumpel rules supreme.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTY0OTU1NzkxMl5BMl5BanBnXkFtZTcwMzI2NDUzMw@@._V1_SX300.jpg"},{id:126,title:"Before Midnight",year:"2013",runtime:"109",genres:["Drama","Romance"],director:"Richard Linklater",actors:"Ethan Hawke, Julie Delpy, Seamus Davey-Fitzpatrick, Jennifer Prior",plot:"We meet Jesse and Celine nine years on in Greece. Almost two decades have passed since their first meeting on that train bound for Vienna.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjA5NzgxODE2NF5BMl5BanBnXkFtZTcwNTI1NTI0OQ@@._V1_SX300.jpg"},{id:127,title:"Despicable Me",year:"2010",runtime:"95",genres:["Animation","Adventure","Comedy"],director:"Pierre Coffin, Chris Renaud",actors:"Steve Carell, Jason Segel, Russell Brand, Julie Andrews",plot:"When a criminal mastermind uses a trio of orphan girls as pawns for a grand scheme, he finds their love is profoundly changing him for the better.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTY3NjY0MTQ0Nl5BMl5BanBnXkFtZTcwMzQ2MTc0Mw@@._V1_SX300.jpg"},{id:128,title:"Troy",year:"2004",runtime:"163",genres:["Adventure"],director:"Wolfgang Petersen",actors:"Julian Glover, Brian Cox, Nathan Jones, Adoni Maropis",plot:"An adaptation of Homer's great epic, the film follows the assault on Troy by the united Greek forces and chronicles the fates of the men involved.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTk5MzU1MDMwMF5BMl5BanBnXkFtZTcwNjczODMzMw@@._V1_SX300.jpg"},{id:129,title:"The Hobbit: An Unexpected Journey",year:"2012",runtime:"169",genres:["Adventure","Fantasy"],director:"Peter Jackson",actors:"Ian McKellen, Martin Freeman, Richard Armitage, Ken Stott",plot:"A reluctant hobbit, Bilbo Baggins, sets out to the Lonely Mountain with a spirited group of dwarves to reclaim their mountain home - and the gold within it - from the dragon Smaug.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTcwNTE4MTUxMl5BMl5BanBnXkFtZTcwMDIyODM4OA@@._V1_SX300.jpg"},{id:130,title:"The Great Gatsby",year:"2013",runtime:"143",genres:["Drama","Romance"],director:"Baz Luhrmann",actors:"Lisa Adam, Frank Aldridge, Amitabh Bachchan, Steve Bisley",plot:"A writer and wall street trader, Nick, finds himself drawn to the past and lifestyle of his millionaire neighbor, Jay Gatsby.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTkxNTk1ODcxNl5BMl5BanBnXkFtZTcwMDI1OTMzOQ@@._V1_SX300.jpg"},{id:131,title:"Ice Age",year:"2002",runtime:"81",genres:["Animation","Adventure","Comedy"],director:"Chris Wedge, Carlos Saldanha",actors:"Ray Romano, John Leguizamo, Denis Leary, Goran Visnjic",plot:"Set during the Ice Age, a sabertooth tiger, a sloth, and a wooly mammoth find a lost human infant, and they try to return him to his tribe.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjEyNzI1ODA0MF5BMl5BanBnXkFtZTYwODIxODY3._V1_SX300.jpg"},{id:132,title:"The Lord of the Rings: The Fellowship of the Ring",year:"2001",runtime:"178",genres:["Action","Adventure","Drama"],director:"Peter Jackson",actors:"Alan Howard, Noel Appleby, Sean Astin, Sala Baker",plot:"A meek Hobbit from the Shire and eight companions set out on a journey to destroy the powerful One Ring and save Middle Earth from the Dark Lord Sauron.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNTEyMjAwMDU1OV5BMl5BanBnXkFtZTcwNDQyNTkxMw@@._V1_SX300.jpg"},{id:133,title:"The Lord of the Rings: The Two Towers",year:"2002",runtime:"179",genres:["Action","Adventure","Drama"],director:"Peter Jackson",actors:"Bruce Allpress, Sean Astin, John Bach, Sala Baker",plot:"While Frodo and Sam edge closer to Mordor with the help of the shifty Gollum, the divided fellowship makes a stand against Sauron's new ally, Saruman, and his hordes of Isengard.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTAyNDU0NjY4NTheQTJeQWpwZ15BbWU2MDk4MTY2Nw@@._V1_SX300.jpg"},{id:134,title:"Ex Machina",year:"2015",runtime:"108",genres:["Drama","Mystery","Sci-Fi"],director:"Alex Garland",actors:"Domhnall Gleeson, Corey Johnson, Oscar Isaac, Alicia Vikander",plot:"A young programmer is selected to participate in a ground-breaking experiment in synthetic intelligence by evaluating the human qualities of a breath-taking humanoid A.I.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTUxNzc0OTIxMV5BMl5BanBnXkFtZTgwNDI3NzU2NDE@._V1_SX300.jpg"},{id:135,title:"The Theory of Everything",year:"2014",runtime:"123",genres:["Biography","Drama","Romance"],director:"James Marsh",actors:"Eddie Redmayne, Felicity Jones, Tom Prior, Sophie Perry",plot:"A look at the relationship between the famous physicist Stephen Hawking and his wife.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTAwMTU4MDA3NDNeQTJeQWpwZ15BbWU4MDk4NTMxNTIx._V1_SX300.jpg"},{id:136,title:"Shogun",year:"1980",runtime:"60",genres:["Adventure","Drama","History"],director:"N/A",actors:"Richard Chamberlain, Toshir\xf4 Mifune, Y\xf4ko Shimada, Furank\xee Sakai",plot:"A English navigator becomes both a player and pawn in the complex political games in feudal Japan.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTY1ODI4NzYxMl5BMl5BanBnXkFtZTcwNDA4MzUxMQ@@._V1_SX300.jpg"},{id:137,title:"Spotlight",year:"2015",runtime:"128",genres:["Biography","Crime","Drama"],director:"Tom McCarthy",actors:"Mark Ruffalo, Michael Keaton, Rachel McAdams, Liev Schreiber",plot:"The true story of how the Boston Globe uncovered the massive scandal of child molestation and cover-up within the local Catholic Archdiocese, shaking the entire Catholic Church to its core.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjIyOTM5OTIzNV5BMl5BanBnXkFtZTgwMDkzODE2NjE@._V1_SX300.jpg"},{id:138,title:"Vertigo",year:"1958",runtime:"128",genres:["Mystery","Romance","Thriller"],director:"Alfred Hitchcock",actors:"James Stewart, Kim Novak, Barbara Bel Geddes, Tom Helmore",plot:"A San Francisco detective suffering from acrophobia investigates the strange activities of an old friend's wife, all the while becoming dangerously obsessed with her.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BNzY0NzQyNzQzOF5BMl5BanBnXkFtZTcwMTgwNTk4OQ@@._V1_SX300.jpg"},{id:139,title:"Whiplash",year:"2014",runtime:"107",genres:["Drama","Music"],director:"Damien Chazelle",actors:"Miles Teller, J.K. Simmons, Paul Reiser, Melissa Benoist",plot:"A promising young drummer enrolls at a cut-throat music conservatory where his dreams of greatness are mentored by an instructor who will stop at nothing to realize a student's potential.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTU4OTQ3MDUyMV5BMl5BanBnXkFtZTgwOTA2MjU0MjE@._V1_SX300.jpg"},{id:140,title:"The Lives of Others",year:"2006",runtime:"137",genres:["Drama","Thriller"],director:"Florian Henckel von Donnersmarck",actors:"Martina Gedeck, Ulrich M\xfche, Sebastian Koch, Ulrich Tukur",plot:"In 1984 East Berlin, an agent of the secret police, conducting surveillance on a writer and his lover, finds himself becoming increasingly absorbed by their lives.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BNDUzNjYwNDYyNl5BMl5BanBnXkFtZTcwNjU3ODQ0MQ@@._V1_SX300.jpg"},{id:141,title:"Hotel Rwanda",year:"2004",runtime:"121",genres:["Drama","History","War"],director:"Terry George",actors:"Xolani Mali, Don Cheadle, Desmond Dube, Hakeem Kae-Kazim",plot:"Paul Rusesabagina was a hotel manager who housed over a thousand Tutsi refugees during their struggle against the Hutu militia in Rwanda.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTI2MzQyNTc1M15BMl5BanBnXkFtZTYwMjExNjc3._V1_SX300.jpg"},{id:142,title:"The Martian",year:"2015",runtime:"144",genres:["Adventure","Drama","Sci-Fi"],director:"Ridley Scott",actors:"Matt Damon, Jessica Chastain, Kristen Wiig, Jeff Daniels",plot:"An astronaut becomes stranded on Mars after his team assume him dead, and must rely on his ingenuity to find a way to signal to Earth that he is alive.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMTc2MTQ3MDA1Nl5BMl5BanBnXkFtZTgwODA3OTI4NjE@._V1_SX300.jpg"},{id:143,title:"To Kill a Mockingbird",year:"1962",runtime:"129",genres:["Crime","Drama"],director:"Robert Mulligan",actors:"Gregory Peck, John Megna, Frank Overton, Rosemary Murphy",plot:"Atticus Finch, a lawyer in the Depression-era South, defends a black man against an undeserved rape charge, and his kids against prejudice.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMjA4MzI1NDY2Nl5BMl5BanBnXkFtZTcwMTcyODc5Mw@@._V1_SX300.jpg"},{id:144,title:"The Hateful Eight",year:"2015",runtime:"187",genres:["Crime","Drama","Mystery"],director:"Quentin Tarantino",actors:"Samuel L. Jackson, Kurt Russell, Jennifer Jason Leigh, Walton Goggins",plot:"In the dead of a Wyoming winter, a bounty hunter and his prisoner find shelter in a cabin currently inhabited by a collection of nefarious characters.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA1MTc1NTg5NV5BMl5BanBnXkFtZTgwOTM2MDEzNzE@._V1_SX300.jpg"},{id:145,title:"A Separation",year:"2011",runtime:"123",genres:["Drama","Mystery"],director:"Asghar Farhadi",actors:"Peyman Moaadi, Leila Hatami, Sareh Bayat, Shahab Hosseini",plot:"A married couple are faced with a difficult decision - to improve the life of their child by moving to another country or to stay in Iran and look after a deteriorating parent who has Alzheimer's disease.",posterUrl:"http://ia.media-imdb.com/images/M/MV5BMTYzMzU4NDUwOF5BMl5BanBnXkFtZTcwMTM5MjA5Ng@@._V1_SX300.jpg"},{id:146,title:"The Big Short",year:"2015",runtime:"130",genres:["Biography","Comedy","Drama"],director:"Adam McKay",actors:"Ryan Gosling, Rudy Eisenzopf, Casey Groves, Charlie Talbert",plot:"Four denizens in the world of high-finance predict the credit and housing bubble collapse of the mid-2000s, and decide to take on the big banks for their greed and lack of foresight.",posterUrl:"https://images-na.ssl-images-amazon.com/images/M/MV5BNDc4MThhN2EtZjMzNC00ZDJmLThiZTgtNThlY2UxZWMzNjdkXkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_SX300.jpg"}],vP=function(){return(0,Xe.jsx)(Xe.Fragment,{children:(0,Xe.jsx)(Cl,{title:"Movie List",columns:[{name:"title"},{name:"director"},{name:"year"},{name:"plot",grow:.5}],data:mP})})};function gP(e){var t=FN(e),n=(0,wt.Z)(t,2),r=n[0],i=n[1];return(0,Xe.jsx)(za,Je(Je({error:!(!i.touched||!i.error),helperText:i.touched&&i.error},r),e))}var yP=["className","label","height","reinitialize"],bP=(0,me.Z)({wrapper:{width:"100%"},monaco:{padding:10,width:"100%",borderColor:"rgba(128, 128, 128, 0.2)",borderStyle:"solid",borderWidth:1,borderRadius:4,backgroundColor:"rgb(255, 255, 255)","&:focus-within":{margin:-2,borderColor:"rgb(73, 105, 228)",borderStyle:"solid",borderWidth:2}},label:{display:"block",marginBottom:8}});function wP(t){var n=t.className,r=t.label,i=t.height,o=t.reinitialize,a=void 0!==o&&o,s=(0,ve.Z)(t,yP),u=bP(),l=FN(s),c=(0,wt.Z)(l,3),f=c[0],d=c[1],h=c[2],p=(0,e.useRef)(null);return(0,e.useEffect)((function(){a&&p.current&&p.current.getModel().setValue(f.value)}),[a,f.value]),(0,Xe.jsxs)("div",{className:(0,ge.Z)([u.wrapper,n]),children:[(0,Xe.jsx)(Wt,{variant:"outlined",error:d.touched&&!!d.error,children:r}),(0,Xe.jsx)(Zc,{className:u.monaco,height:i||90,defaultLanguage:"json",onMount:function(e){p.current=e,e.onDidBlurEditorText((function(){h.setValue(p.current.getValue())}))},defaultValue:f.value,options:{tabSize:2,minimap:{enabled:!1},lightbulb:{enabled:!1},quickSuggestions:!1,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{vertical:"hidden"},overviewRulerBorder:!1}}),d.touched&&d.error?(0,Xe.jsx)(Qo,{variant:"outlined",error:!0,children:d.error}):null]})}function xP(){var t=(0,e.useState)(10),n=(0,wt.Z)(t,2),r=n[0],i=n[1],o=(0,e.useState)(),a=(0,wt.Z)(o,2),s=a[0],u=a[1],l=(0,e.useState)([]),c=(0,wt.Z)(l,2),f=c[0],d=c[1];return(0,Xe.jsxs)(ui,{style:{padding:15},children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Select"}),(0,Xe.jsxs)(Ga,{style:{marginBottom:10},value:r,onChange:function(e){return i(e.target.value)},children:[(0,Xe.jsx)(Rr,{value:10,children:"Ten"}),(0,Xe.jsx)(Rr,{value:20,children:"Twenty"}),(0,Xe.jsx)(Rr,{value:30,children:"Thirty"})]}),(0,Xe.jsxs)(Ga,{style:{marginBottom:20},label:"With Label",value:r,onChange:function(e){return i(e.target.value)},children:[(0,Xe.jsx)(Rr,{value:10,children:"Ten"}),(0,Xe.jsx)(Rr,{value:20,children:"Twenty"}),(0,Xe.jsx)(Rr,{value:30,children:"Thirty"})]}),(0,Xe.jsxs)(Ga,{fullWidth:!0,style:{marginBottom:20},label:"Fullwidth",value:r,onChange:function(e){return i(e.target.value)},children:[(0,Xe.jsx)(Rr,{value:10,children:"Ten"}),(0,Xe.jsx)(Rr,{value:20,children:"Twenty"}),(0,Xe.jsx)(Rr,{value:30,children:"Thirty"})]}),(0,Xe.jsx)(bs,{style:{marginBottom:20,width:300},label:"Autocomplete",disableClearable:!0,options:mP,value:s,getOptionLabel:function(e){return e.title},onChange:function(e,t){return u(t)}}),(0,Xe.jsx)(bs,{style:{marginBottom:20,width:300},label:"Autocomplete Loading",disableClearable:!0,options:mP,value:s,getOptionLabel:function(e){return e.title},loading:!0}),(0,Xe.jsx)(bs,{style:{marginBottom:20,width:300},label:"Autocomplete Disabled",disabled:!0,options:mP,value:s,getOptionLabel:function(e){return e.title},onChange:function(e,t){return u(t)}}),(0,Xe.jsx)(bs,{style:{marginBottom:20,width:300},label:"Autocomplete Clearable",options:mP,value:s,getOptionLabel:function(e){return e.title},onChange:function(e,t){return u(t)}}),(0,Xe.jsx)(bs,{fullWidth:!0,debug:!0,style:{marginBottom:20},label:"Autocomplete Fullwidth",disableClearable:!0,options:mP,value:s,getOptionLabel:function(e){return e.title},onChange:function(e,t){return u(t)}}),(0,Xe.jsx)(bs,{multiple:!0,label:"Multiple Pills",options:mP,getOptionLabel:function(e){return e.title},style:{width:500},value:f,onChange:function(e,t){return d(t)}})]})}var _P=(0,me.Z)(jd);function kP(){var e=_P();return(0,Xe.jsx)("div",{className:(0,ge.Z)([e.wrapper,e.padded]),children:(0,Xe.jsxs)(Ct,{container:!0,spacing:5,children:[(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)("p",{children:"This is a Hawkins-like theme based on vanilla Material-UI."})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(SP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(yt,{path:"/kitchen/gantt",children:"Gantt"})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(TP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(EP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(CP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(OP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(DP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(NP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(xP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(MP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(pP,{})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(vP,{})})]})})}var SP=function(){var t=(0,e.useState)(),n=(0,wt.Z)(t,2),r=n[0],i=n[1];return(0,Xe.jsxs)(ui,{padded:!0,children:[(0,Xe.jsx)(Oo,{level:3,children:"Formik"}),(0,Xe.jsx)(jN,{initialValues:{firstName:"",lastName:"",description:""},validationSchema:kA({firstName:eA().min(15,"Must be 15 characters or more").required("Required")}),onSubmit:function(e){return i(e)},children:(0,Xe.jsxs)(LN,{children:[(0,Xe.jsx)(gP,{label:"First Name",name:"firstName"}),(0,Xe.jsx)(gP,{label:"Last Name",name:"lastName"}),(0,Xe.jsx)(wP,{label:"Description",name:"description"}),(0,Xe.jsx)(ti,{type:"submit",children:"Submit"})]})}),(0,Xe.jsx)("code",{children:(0,Xe.jsx)("pre",{children:JSON.stringify(r)})})]})},MP=function(){return(0,Xe.jsxs)(ui,{padded:!0,children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Toolbar"}),(0,Xe.jsxs)(Te,{children:[(0,Xe.jsx)(jo,{children:"Label"}),(0,Xe.jsxs)(Ga,{value:10,children:[(0,Xe.jsx)(Rr,{value:10,children:"Ten"}),(0,Xe.jsx)(Rr,{value:20,children:"Twenty"}),(0,Xe.jsx)(Rr,{value:30,children:"Thirty"})]})," ",(0,Xe.jsx)(ti,{children:"Primary"}),(0,Xe.jsx)(Ha,{children:(0,Xe.jsx)(AS.Z,{})})]})]})},TP=function(){return(0,Xe.jsxs)(ui,{padded:!0,children:[(0,Xe.jsx)(Oo,{level:0,children:"Heading Level Zero"}),(0,Xe.jsx)(Oo,{level:1,children:"Heading Level One"}),(0,Xe.jsx)(Oo,{level:2,children:"Heading Level Two"}),(0,Xe.jsx)(Oo,{level:3,children:"Heading Level Three"}),(0,Xe.jsx)(Oo,{level:4,children:"Heading Level Four"}),(0,Xe.jsx)(Oo,{level:5,children:"Heading Level Five"}),(0,Xe.jsx)(jo,{level:0,children:"Text Level Zero"}),(0,Xe.jsx)(jo,{level:1,children:"Text Level One"}),(0,Xe.jsx)(jo,{level:2,children:"Text Level Two"}),(0,Xe.jsx)("div",{children:"Default <div>"}),(0,Xe.jsx)("div",{children:"Default <p>"})]})},EP=function(){var t=(0,e.useState)(0),n=(0,wt.Z)(t,2),r=n[0],i=n[1];return(0,Xe.jsxs)(ui,{padded:!0,children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Tabs"}),(0,Xe.jsx)(Oo,{level:2,gutterBottom:!0,children:"Page Level"}),(0,Xe.jsx)(Oo,{level:1,gutterBottom:!0,children:"Full Width"}),(0,Xe.jsxs)(ui,{variant:"outlined",style:{width:800,marginBottom:30},children:[(0,Xe.jsxs)(Mo,{value:r,variant:"fullWidth",children:[(0,Xe.jsx)(To,{label:"Tab A",onClick:function(){return i(0)}}),(0,Xe.jsx)(To,{label:"Tab B",onClick:function(){return i(1)}}),(0,Xe.jsx)(To,{label:"Tab C",onClick:function(){return i(2)}}),(0,Xe.jsx)(To,{label:"Tab D",onClick:function(){return i(3)}})]}),(0,Xe.jsxs)("div",{style:{padding:15},children:["Tab content ",r]})]}),(0,Xe.jsx)(Oo,{level:1,gutterBottom:!0,children:"Fixed Width"}),(0,Xe.jsxs)(ui,{variant:"outlined",style:{width:800,marginBottom:30},children:[(0,Xe.jsxs)(Mo,{value:r,children:[(0,Xe.jsx)(To,{label:"Tab A",onClick:function(){return i(0)}}),(0,Xe.jsx)(To,{label:"Tab B",onClick:function(){return i(1)}}),(0,Xe.jsx)(To,{label:"Tab C",onClick:function(){return i(2)}}),(0,Xe.jsx)(To,{label:"Tab D",onClick:function(){return i(3)}})]}),(0,Xe.jsxs)("div",{style:{padding:15},children:["Tab content ",r]})]}),(0,Xe.jsx)(Oo,{level:2,gutterBottom:!0,children:"Contextual"}),(0,Xe.jsx)(Oo,{level:1,gutterBottom:!0,children:"Full Width"}),(0,Xe.jsxs)(ui,{variant:"outlined",style:{width:500,marginBottom:30},children:[(0,Xe.jsxs)(Mo,{value:r,variant:"fullWidth",contextual:!0,children:[(0,Xe.jsx)(To,{label:"Tab A",onClick:function(){return i(0)}}),(0,Xe.jsx)(To,{label:"Tab B",onClick:function(){return i(1)}}),(0,Xe.jsx)(To,{label:"Tab C",onClick:function(){return i(2)}}),(0,Xe.jsx)(To,{label:"Tab D",onClick:function(){return i(3)}})]}),(0,Xe.jsxs)("div",{style:{padding:15},children:["Tab content ",r]})]}),(0,Xe.jsx)(Oo,{level:1,gutterBottom:!0,children:"Fixed Width"}),(0,Xe.jsxs)(ui,{variant:"outlined",style:{width:800},children:[(0,Xe.jsxs)(Mo,{value:r,contextual:!0,children:[(0,Xe.jsx)(To,{label:"Tab A",onClick:function(){return i(0)}}),(0,Xe.jsx)(To,{label:"Tab B",onClick:function(){return i(1)}}),(0,Xe.jsx)(To,{label:"Tab C",onClick:function(){return i(2)}}),(0,Xe.jsx)(To,{label:"Tab D",onClick:function(){return i(3)}})]}),(0,Xe.jsxs)("div",{style:{padding:15},children:["Tab content ",r]})]})]})},CP=function(){return(0,Xe.jsxs)(ui,{style:{padding:15},children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Button"}),(0,Xe.jsxs)(Ct,{container:!0,spacing:4,children:[(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Ht,{children:"Primary"})}),(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Yt,{children:"Secondary"})}),(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Ut,{children:"Tertiary"})}),(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Xt,{options:[{label:"One"},{label:"Two"},{label:"Three"}]})}),(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Jr,{options:[{label:"Create a merge commit",handler:function(){return alert("you clicked 1")}},{label:"Squash and merge",handler:function(){return alert("you clicked 2")}},{label:"Rebase and merge",handler:function(){return alert("you clicked 3")}}],onPrimaryClick:function(){return alert("main button")},children:"Split Button"})}),(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Ir,{options:[{label:"Create a merge commit",handler:function(){return alert("you clicked 1")}},{label:"Squash and merge",handler:function(){return alert("you clicked 2")}},{label:"Rebase and merge",handler:function(){return alert("you clicked 3")}}],children:"Dropdown Button"})}),(0,Xe.jsx)(Ct,{item:!0,children:(0,Xe.jsx)(Ha,{children:(0,Xe.jsx)(VN.Z,{})})}),(0,Xe.jsx)(Ct,{item:!0,xs:12,children:(0,Xe.jsx)(Xt,{label:"Button Group with Label",options:[{label:"One"},{label:"Two"},{label:"Three"}]})})]})]})},OP=function(){var t=(0,e.useState)(!1),n=(0,wt.Z)(t,2),r=n[0],i=n[1];return(0,Xe.jsxs)(ui,{style:{padding:15},children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Toggle"}),(0,Xe.jsx)(UN,{checked:r,onChange:function(){return i(!r)},color:"primary"})]})},DP=function(){var t=(0,e.useState)(!1),n=(0,wt.Z)(t,2),r=n[0],i=n[1];return(0,Xe.jsxs)(ui,{style:{padding:15},children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Checkbox"}),(0,Xe.jsx)(Fs,{checked:r,onChange:function(){return i(!r)},color:"primary"})]})},NP=function(){return(0,Xe.jsxs)(ui,{style:{padding:15},children:[(0,Xe.jsx)(Oo,{level:3,gutterBottom:!0,children:"Input"}),(0,Xe.jsx)(Va,{label:"Input Label via label attribute",style:{marginBottom:20}}),(0,Xe.jsx)(Va,{label:"Disabled",disabled:!0,style:{marginBottom:20}}),(0,Xe.jsx)(Va,{label:"Fullwidth",fullWidth:!0,style:{marginBottom:20}}),(0,Xe.jsx)(Va,{label:"Clearable",clearable:!0,style:{marginBottom:20}}),(0,Xe.jsxs)(It,{style:{display:"block",marginBottom:20},children:[(0,Xe.jsx)(Wt,{children:"Input Label via FormControl/InputLabel"}),(0,Xe.jsx)(Va,{})]}),(0,Xe.jsx)(Va,{label:"DateTime",type:"datetime-local"})]})},jP={tasks:[{name:"fork_join",taskReferenceName:"fork",type:"FORK_JOIN",forkTasks:[[{name:"forkChild",type:"SIMPLE",taskReferenceName:"forkChild_grp1a"},{name:"forkChild",type:"SIMPLE",taskReferenceName:"forkChild_grp1b"}],[{name:"forkChild",type:"SIMPLE",taskReferenceName:"forkchild_grp2"}],[{name:"forkChild",type:"SIMPLE",taskReferenceName:"forkchild_grp3"}],[{name:"forkChild",type:"SIMPLE",taskReferenceName:"forkchild_grp4"}]]},{name:"join",taskReferenceName:"join",type:"JOIN",joinOn:["forkChild_par1","forkChild_par2","forkChild_ser1"]},{name:"decision",taskReferenceName:"decision",type:"DECISION",decisionCases:[[{name:"simple_task",type:"SIMPLE",taskReferenceName:"completed"}],[{name:"simple_task",type:"SIMPLE",taskReferenceName:"failed"}]]},{name:"exclusive_join",taskReferenceName:"exclusiveJoin",type:"EXCLUSIVE_JOIN",joinOn:["completed","failed"],defaultExclusiveJoinTask:["completed"]},{name:"subworkflow",taskReferenceName:"subworkflow",type:"SUB_WORKFLOW",subworkflowParam:{name:"foo"}},{name:"dynamic_fork",taskReferenceName:"dynamic_fork",type:"FORK_JOIN_DYNAMIC",dynamicForkTasksParam:"dynamicTasks",dynamicForkTasksInputParamName:"dynamicTasksInput"},{name:"join",taskReferenceName:"dynamic_join",type:"JOIN"}]},AP=function(e){a(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.call(this)).state={dag:new yM(null,jP)},e}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.state.dag;return(0,Xe.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:(0,Xe.jsx)(FS,{dag:e})})}}]),n}(e.Component);function PP(){return null}var RP=n(72426);function IP(e,t){return{id:e,group:e,content:"item "+e,start:t,end:t.clone().add(1,"minute")}}for(var FP=[],LP=[],zP=n.n(RP)()().minutes(0).seconds(0).milliseconds(0),BP=0;BP<20;BP++){var ZP=zP.clone().add(200*Math.random(),"minutes");FP.push({id:BP,content:"group "+BP}),LP.push(IP(BP,ZP))}var WP=function(t){a(o,t);var n=d(o);function o(t){var i;return r(this,o),(i=n.call(this,t)).timelineRef=e.createRef(),i.onFit=function(){i.timelineRef.current.timeline.fit()},i.clickHandler=function(){var e=i.props.group,t=i.timelineRef.current.items.get().filter((function(t){return t.group===e})).map((function(e){return e.id}));i.setState({selectedIds:t})},i.state={selectedIds:[]},i}return(0,i.Z)(o,[{key:"render",value:function(){return(0,Xe.jsxs)(ui,{style:{padding:15},children:[(0,Xe.jsx)("p",{className:"header",children:"This example demonstrate using groups."}),(0,Xe.jsx)("button",{onClick:this.onAddItem,children:"Add Item"}),(0,Xe.jsx)("button",{onClick:this.onFit,children:"Fit Screen"}),(0,Xe.jsx)("div",{className:"timeline-container",children:(0,Xe.jsx)(Gd.Z,{ref:this.timelineRef,clickHandler:this.clickHandler,selection:this.state.selectedIds,initialGroups:FP,initialItems:LP,options:{orientation:"top",zoomKey:"ctrlKey",type:"range"}})}),(0,Xe.jsx)("br",{})]})}}]),o}(e.Component);function HP(){return(0,Xe.jsx)(Xe.Fragment,{})}function YP(){return null}function UP(){return(0,Xe.jsx)(Xe.Fragment,{})}var VP=e.forwardRef((function(t,n){var r=t.classes,i=t.className,o=(0,ve.Z)(t,["classes","className"]);return e.createElement("div",(0,p.Z)({className:(0,ge.Z)(r.root,i),ref:n},o))}));VP.muiName="ListItemSecondaryAction";var qP=(0,ye.Z)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(VP),GP=n(23711),XP=(0,me.Z)({sidebar:{width:300,border:"0px solid rgba(0, 0, 0, 0)",zIndex:1,boxShadow:"0 2px 4px 0 rgb(0 0 0 / 10%), 0 0 2px 0 rgb(0 0 0 / 10%)",background:"#fff",display:"flex",flexDirection:"column"},toolbar:{backgroundColor:Pi.gray14},title:{fontWeight:"bold",flex:1},list:{overflowY:"auto",cursor:"pointer",flex:1}}),$P=(0,e.forwardRef)((function(t,n){var r=t.onRunSelected,i={stack:"default",defaultStack:"default"}.stack,o=XP(),a=(0,e.useState)(void 0),s=(0,wt.Z)(a,2),u=s[0],l=s[1],c=Ml("runHistory_".concat(i,"_").concat(1),[]),f=(0,wt.Z)(c,2),d=f[0],h=f[1];return(0,e.useImperativeHandle)(n,(function(){return{pushNewRun:function(e){var t=(new Date).getTime(),n={runPayload:e,workflowRecords:[],createTime:t};return h([n].concat((0,Ne.Z)(d))),l(t),n},updateRun:function(e,t){var n=d.findIndex((function(t){return t.createTime===e})),i=d[n],o=i.workflowRecords,a={runPayload:i.runPayload,workflowRecords:[{workflowId:t}].concat((0,Ne.Z)(o)),createTime:i.createTime};h(function(e,t,n){var r=e.slice(0);return r[t]=n,r}(d,n,a)),r(a)}}})),(0,Xe.jsxs)("div",{className:o.sidebar,children:[(0,Xe.jsxs)(Te,{className:o.toolbar,children:[(0,Xe.jsx)(jo,{level:0,className:o.title,children:"Run History"}),(0,Xe.jsx)(Ha,{onClick:function(){window.confirm("Delete all run history in this browser?")&&h([])},children:(0,Xe.jsx)(GP.Z,{})})]}),(0,Xe.jsxs)(_r,{className:o.list,children:[d.map((function(e){return(0,Xe.jsxs)(Ar,{selected:u===e.createTime,onClick:function(){return function(e){r&&r(e),l(e.createTime)}(e)},children:[(0,Xe.jsx)(zs,{primary:e.runPayload.name,secondary:pE(new Date(e.createTime),new Date)}),(0,Xe.jsx)(qP,{children:(0,Xe.jsx)(Ha,{edge:"end",onClick:function(){return function(e){var t=d.filter((function(t){return t.createTime!==e.createTime}));t.length>0?(l(t[0].createTime),r(t[0])):(console.log("Empty history"),l(void 0),r(void 0)),h(t)}(e)},children:(0,Xe.jsx)(hs.Z,{})})})]},e.createTime)})),_t().isEmpty(d)&&(0,Xe.jsx)(Ar,{children:"No saved runs."})]})]})})),QP=$P;function KP(e){var t=FN(e),n=(0,wt.Z)(t,3),r=n[0],i=n[1],o=n[2],a=i.touched&&i.error;return(0,Xe.jsx)(bs,Je(Je(Je({},e),r),{},{onChange:function(e,t){return o.setValue(t)},error:a,helperText:a}))}function JP(t){var n=t.name,r=_f().data,i=EN(),o=i.setFieldValue,a=i.values,s=a.workflowName,u=a.workflowVersion;(0,e.useEffect)((function(){u&&r.has(s)&&(r.get(s).find((function(e){return e.version.toString()===u}))||(console.log("Version ".concat(u," not found for new workflowName. Clearing dropdown.")),o(n,null,!1)))}),[r,s,u]);var l=s&&r.has(s)?r.get(s).map((function(e){return""+e.version})):[];return(0,Xe.jsx)(KP,Je({options:l},t))}var eR=n(59340),tR=n(58388);function nR(e){var t=FN(e),n=(0,wt.Z)(t,3),r=n[0],i=n[1],o=n[2],a=i.touched&&i.error,s=xf();return(0,Xe.jsx)(bs,Je(Je(Je({disableClearable:!0,label:e.label||"Workflow Name",options:s,placeholder:"Select Workflow Name",loading:(0,xt.isEmpty)(s),error:a,helperText:a},r),e),{},{onChange:function(e,t){return o.setValue(t)}}))}var rR=(0,me.Z)({name:{width:"50%"},submitButton:{float:"right"},toolbar:{backgroundColor:Pi.gray14},workflowName:{fontWeight:"bold"},main:{flex:1,display:"flex",flexDirection:"column",overflow:"auto"},fields:{width:"100%",padding:30,flex:1,display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",gap:15}});!function(e,t,n){if(!e||!dj(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!==typeof t)throw new TypeError("A Method name must be provided");if("function"!==typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n}(eA,"isJson",(function(){return this.test("is-json","is not valid json",(function(e){if(_t().isEmpty(e))return!0;try{JSON.parse(e)}catch(t){return!1}return!0}))}));var iR=function(t){var n=t.mapPropsToValues,r=void 0===n?function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"function"!==typeof e[n]&&(t[n]=e[n]);return t}:n,i=hN(t,["mapPropsToValues"]);return function(t){var n=t.displayName||t.name||t.constructor&&t.constructor.name||"Component",o=function(n){function o(){var r;return(r=n.apply(this,arguments)||this).validate=function(e){return i.validate(e,r.props)},r.validationSchema=function(){return vN(i.validationSchema)?i.validationSchema(r.props):i.validationSchema},r.handleSubmit=function(e,t){return i.handleSubmit(e,fN({},t,{props:r.props}))},r.renderFormComponent=function(n){return(0,e.createElement)(t,Object.assign({},r.props,n))},r}return dN(o,n),o.prototype.render=function(){var t=hN(this.props,["children"]);return(0,e.createElement)(jN,Object.assign({},t,i,{validate:i.validate&&this.validate,validationSchema:i.validationSchema&&this.validationSchema,initialValues:r(this.props),initialStatus:i.mapPropsToStatus&&i.mapPropsToStatus(this.props),initialErrors:i.mapPropsToErrors&&i.mapPropsToErrors(this.props),initialTouched:i.mapPropsToTouched&&i.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},o}(e.Component);return o.displayName="WithFormik("+n+")",K()(o,t)}}({enableReinitialize:!0,mapPropsToValues:function(e){var t,n=e.selectedRun;return t=_t().get(n,"runPayload"),{workflowName:_t().get(t,"name",""),workflowVersion:_t().get(t,"version",""),workflowInput:_t().has(t,"input")?JSON.stringify(t.input,null,2):"",correlationId:_t().get(t,"correlationId",""),taskToDomain:_t().has(t,"taskToDomain")?JSON.stringify(t.taskToDomain,null,2):""}},validationSchema:kA({workflowName:eA().required("Workflow Name is required"),workflowInput:eA().isJson(),taskToDomain:eA().isJson()})})((function(e){var t=e.values,n=e.validateForm,r=e.setTouched,i=e.setFieldValue,o=e.dirty,a=e.selectedRun,s=e.saveRun,u=e.executeRun,l=rR(),c=t.workflowName,f=t.workflowVersion,d=a?a.createTime:void 0,h=bf(c,f,null,{onSuccess:function(e){var n={};if(!_t().isEmpty(t.workflowInput)){var r=JSON.parse(t.workflowInput);n=_t().pickBy(r,(function(e){return""!==e}))}if(e.inputParameters){var o,a=xs(e.inputParameters);try{for(a.s();!(o=a.n()).done;){var s=o.value;_t().has(n,s)||(n[s]="")}}catch(u){a.e(u)}finally{a.f()}i("workflowInput",JSON.stringify(n,null,2))}},enabled:!1}).refetch;return(0,Xe.jsxs)(LN,{className:l.main,children:[(0,Xe.jsxs)(Te,{className:l.toolbar,children:[(0,Xe.jsx)(jo,{className:l.workflowName,children:"Workflow Workbench"}),(0,Xe.jsx)(Es,{title:"Execute Workflow",children:(0,Xe.jsx)(Ha,{onClick:function(){n().then((function(e){if(0===Object.keys(e).length){var n=oR(t);if(!o&&d)console.log("Executing pre-existing run. Append workflowRecord"),u(d,n);else{console.log("Executing new run. Save first then execute");var i=s(n);u(i.createTime,n)}}else r(SN(e,!0))}))},children:(0,Xe.jsx)(eM.Z,{})})}),(0,Xe.jsx)(Es,{title:"Save Workflow Trigger",children:(0,Xe.jsx)("div",{children:(0,Xe.jsx)(Ha,{disabled:!o,onClick:function(){n().then((function(e){if(0===Object.keys(e).length){var n=oR(t);s(n)}else r(SN(e,!0))}))},children:(0,Xe.jsx)(tR.Z,{})})})}),(0,Xe.jsx)(Es,{title:"Populate Input Parameters",children:(0,Xe.jsx)("div",{children:(0,Xe.jsx)(Ha,{disabled:!t.workflowName,onClick:function(){h()},children:(0,Xe.jsx)(eR.Z,{})})})}),o&&(0,Xe.jsx)(tf,{label:"Modified"}),d&&(0,Xe.jsxs)(jo,{children:["Created: ",_l(d)]})]}),(0,Xe.jsxs)("div",{className:l.fields,children:[(0,Xe.jsx)(nR,{fullWidth:!0,label:"Workflow Name",name:"workflowName"}),(0,Xe.jsx)(JP,{fullWidth:!0,label:"Workflow version",name:"workflowVersion"}),(0,Xe.jsx)(wP,{reinitialize:!0,height:200,label:"Input (JSON)",name:"workflowInput"}),(0,Xe.jsx)(gP,{fullWidth:!0,label:"Correlation ID",name:"correlationId"}),(0,Xe.jsx)(wP,{className:l.field,height:200,label:"Task to Domain (JSON)",name:"taskToDomain"})]})]})}));function oR(e){var t={name:e.workflowName};return e.workflowVersion&&(t.version=e.workflowVersion),e.workflowInput&&(t.input=JSON.parse(e.workflowInput)),e.correlationId&&(t.correlationId=e.correlationId),e.taskToDomain&&(t.taskToDomain=JSON.parse(e.taskToDomain)),t}var aR=n(66709),sR=(0,me.Z)({sidebar:{width:360,border:"0px solid rgba(0, 0, 0, 0)",zIndex:1,boxShadow:"0 2px 4px 0 rgb(0 0 0 / 10%), 0 0 2px 0 rgb(0 0 0 / 10%)",background:"#fff",display:"flex",flexDirection:"column"},toolbar:{backgroundColor:Pi.gray14},list:{overflowY:"auto",flex:1}});function uR(e){var t=e.run,n=sR(),r=t?t.workflowRecords:[],i=r.map((function(e){return"".concat(e.workflowId)})),o=yf(i,{staleTime:6e4})||[],a=new Map(o.filter((function(e){return e.isSuccess})).map((function(e){return[e.data.workflowId,e.data]}))),s=function(){var e="default",t=(0,lf.useQueryClient)();return function(n){console.log("invalidating workflow Ids",n),t.invalidateQueries({predicate:function(t){return t.queryKey[0]===e&&"workflow"===t.queryKey[1]&&n.includes(t.queryKey[2])}})}}();return(0,Xe.jsxs)("div",{className:n.sidebar,children:[(0,Xe.jsxs)(Te,{className:n.toolbar,children:[(0,Xe.jsx)(jo,{level:0,className:n.title,children:"Execution History"}),(0,Xe.jsx)(Ha,{onClick:function(){s(i)},children:(0,Xe.jsx)(aR.Z,{})})]}),(0,Xe.jsxs)(_r,{className:n.list,children:[Array.from(a.values()).map((function(e){return(0,Xe.jsx)(Ar,{children:(0,Xe.jsx)(zs,{primary:(0,Xe.jsx)(yt,{path:"/execution/".concat(e.workflowId),newTab:!0,children:e.workflowId}),secondary:(0,Xe.jsxs)("span",{children:[(0,Xe.jsx)(uf,{status:e.status,size:"small"})," ",pE(new Date(e.startTime),new Date)]}),secondaryTypographyProps:{component:"div"}})},e.workflowId)})),_t().isEmpty(r)&&(0,Xe.jsx)(Ar,{children:(0,Xe.jsx)(zs,{children:"No execution history."})})]})]})}var lR=(0,me.Z)({wrapper:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"row",position:"relative"},name:{width:"50%"},submitButton:{float:"right"},toolbar:{backgroundColor:Pi.gray14},workflowName:{fontWeight:"bold"},main:{flex:1,display:"flex",flexDirection:"column"},row:{display:"flex",flexDirection:"row"},fields:{margin:30,flex:1,display:"flex",flexDirection:"column",gap:15},runInfo:{marginLeft:-350}});function cR(){var t=lR(),n=(0,e.useRef)(),r=(0,e.useState)(void 0),i=(0,wt.Z)(r,2),o=i[0],a=i[1],s=function(e){var t=cf();return(0,lf.useMutation)((function(e){var n=e.body;return ff("/workflow",t,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},!1)}),e)}({onSuccess:function(e,t){n.current.updateRun(t.createTime,e)}}),u=s.mutate;return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsx)("title",{children:"Conductor UI - Workbench"})}),(0,Xe.jsxs)("div",{className:t.wrapper,children:[(0,Xe.jsx)(QP,{ref:n,onRunSelected:function(e){a(e)}}),(0,Xe.jsx)(iR,{selectedRun:o,saveRun:function(e){var t=n.current.pushNewRun(e);return a(t),t},executeRun:function(e,t){u({createTime:e,body:t})}}),(0,Xe.jsx)(uR,{run:o})]})]})}var fR=(0,me.Z)((function(e){return{root:{backgroundColor:"#efefef",display:"flex"},body:{width:"100vw",height:"100vh",paddingTop:e.overrides.MuiAppBar.root.height},toolbarRight:{marginLeft:"auto",display:"flex",flexDirection:"row"},toolbarRegular:{minHeight:80}}})),dR=function(e){a(n,e);var t=d(n);function n(){return r(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){return(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)(ST,{children:(0,Xe.jsx)("script",{src:"https://cdn.dev.d4science.org/boot/d4s-boot.js"})}),(0,Xe.jsx)("d4s-boot-2",{url:"https://accounts.dev.d4science.org/auth","redirect-url":"http://localhost/login/callback",gateway:"conductor-ui"})]})}}]),n}(e.Component),hR=function(e){a(n,e);var t=d(n);function n(e){var i;return r(this,n),(i=t.call(this,e)).state={open:!1},i}return(0,i.Z)(n,[{key:"setOpen",value:function(e){this.setState({open:e})}},{key:"componentDidMount",value:function(){var e=this;document.addEventListener("authenticated",(function(t){e.setOpen(!0)}))}},{key:"render",value:function(){var e=this.props.classes;return this.state.open?(0,Xe.jsxs)("div",{className:e.root,children:[(0,Xe.jsx)(ke,{position:"fixed",children:(0,Xe.jsxs)(Te,{classes:{regular:e.toolbarRegular},children:[(0,Xe.jsx)(Qe,{}),(0,Xe.jsx)(Ve,{component:yt,path:"/",children:"Executions"}),(0,Xe.jsx)(Ve,{component:yt,path:"/workflowDefs",children:"Definitions"}),(0,Xe.jsx)(Ve,{component:yt,path:"/taskQueue",children:"Task Queues"}),(0,Xe.jsx)(Ve,{component:yt,path:"/workbench",children:"Workbench"}),(0,Xe.jsx)(UP,{}),(0,Xe.jsx)("div",{className:e.toolbarRight,children:(0,Xe.jsx)(YP,{})})]})}),(0,Xe.jsx)("div",{className:e.body,children:(0,Xe.jsxs)(de,{children:[(0,Xe.jsx)(ae,{exact:!0,path:"/",children:(0,Xe.jsx)(Bd,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/search/by-tasks",children:(0,Xe.jsx)(qd,{})}),(0,Xe.jsx)(ae,{path:"/execution/:id/:taskId?",children:(0,Xe.jsx)(ET,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/workflowDefs",children:(0,Xe.jsx)(AT,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/workflowDef/:name?/:version?",children:(0,Xe.jsx)(eE,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/taskDefs",children:(0,Xe.jsx)(rE,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/taskDef/:name?",children:(0,Xe.jsx)(uE,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/eventHandlerDef",children:(0,Xe.jsx)(fE,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/eventHandlerDef/:name",children:(0,Xe.jsx)(hE,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/taskQueue/:name?",children:(0,Xe.jsx)(vE,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/workbench",children:(0,Xe.jsx)(cR,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/kitchen",children:(0,Xe.jsx)(kP,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/kitchen/diagram",children:(0,Xe.jsx)(AP,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/kitchen/examples",children:(0,Xe.jsx)(PP,{})}),(0,Xe.jsx)(ae,{exact:!0,path:"/kitchen/gantt",children:(0,Xe.jsx)(WP,{})}),(0,Xe.jsx)(HP,{})]})})]}):(0,Xe.jsx)("div",{})}}]),n}(e.Component),pR=function(e){a(n,e);var t=d(n);function n(){return r(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){return(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)(dR,{}),(0,Xe.jsx)(hR,{classes:this.props.classes})]})}}]),n}(e.Component);function mR(){var e=fR();return(0,Xe.jsx)(pR,{classes:e})}Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var vR={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},gR=function(e){return(0,p.Z)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};var yR=(0,ye.Z)((function(e){return{"@global":{html:vR,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,p.Z)({margin:0},gR(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(t){var n=t.children,r=void 0===n?null:n;return t.classes,e.createElement(e.Fragment,null,r)})),bR=n(96179),wR=new lf.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,cacheTime:6e5}}});t.render((0,Xe.jsx)(lf.QueryClientProvider,{client:wR,children:(0,Xe.jsx)(co,{children:(0,Xe.jsxs)(et,{children:[(0,Xe.jsx)(yR,{}),(0,Xe.jsx)(bR.ReactQueryDevtools,{initialIsOpen:!0}),(0,Xe.jsx)(mR,{})]})})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}()}();
//# sourceMappingURL=main.18fa60f5.js.map