/*! For license information please see bundle.74a851587de9a16b4e87.min.js.LICENSE.txt */ (()=>{var __webpack_modules__={29603:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;tr})},16726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(45287);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},50120:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},45287:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:()=>r})},99438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/;const o=(a={},function(e){return void 0===a[e]&&(a[e]=(t=e,r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),a[e];var t});var a},77997:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M320 320L192 192m0 128l128-128"}))}));i.displayName="CloseCircle"},7156:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{d:"M456.7 242.27l-26.08-4.2a8 8 0 01-6.6-6.82c-.5-3.2-1-6.41-1.7-9.51a8.08 8.08 0 013.9-8.62l23.09-12.82a8.05 8.05 0 003.9-9.92l-4-11a7.94 7.94 0 00-9.4-5l-25.89 5a8 8 0 01-8.59-4.11q-2.25-4.2-4.8-8.41a8.16 8.16 0 01.7-9.52l17.29-19.94a8 8 0 00.3-10.62l-7.49-9a7.88 7.88 0 00-10.5-1.51l-22.69 13.63a8 8 0 01-9.39-.9c-2.4-2.11-4.9-4.21-7.4-6.22a8 8 0 01-2.5-9.11l9.4-24.75A8 8 0 00365 78.77l-10.2-5.91a8 8 0 00-10.39 2.21l-16.64 20.84a7.15 7.15 0 01-8.5 2.5s-5.6-2.3-9.8-3.71A8 8 0 01304 87l.4-26.45a8.07 8.07 0 00-6.6-8.42l-11.59-2a8.07 8.07 0 00-9.1 5.61l-8.6 25.05a8 8 0 01-7.79 5.41h-9.8a8.07 8.07 0 01-7.79-5.41l-8.6-25.05a8.07 8.07 0 00-9.1-5.61l-11.59 2a8.07 8.07 0 00-6.6 8.42l.4 26.45a8 8 0 01-5.49 7.71c-2.3.9-7.3 2.81-9.7 3.71-2.8 1-6.1.2-8.8-2.91l-16.51-20.34A8 8 0 00156.75 73l-10.2 5.91a7.94 7.94 0 00-3.3 10.09l9.4 24.75a8.06 8.06 0 01-2.5 9.11c-2.5 2-5 4.11-7.4 6.22a8 8 0 01-9.39.9L111 116.14a8 8 0 00-10.5 1.51l-7.49 9a8 8 0 00.3 10.62l17.29 19.94a8 8 0 01.7 9.52q-2.55 4-4.8 8.41a8.11 8.11 0 01-8.59 4.11l-25.89-5a8 8 0 00-9.4 5l-4 11a8.05 8.05 0 003.9 9.92L85.58 213a7.94 7.94 0 013.9 8.62c-.6 3.2-1.2 6.31-1.7 9.51a8.08 8.08 0 01-6.6 6.82l-26.08 4.2a8.09 8.09 0 00-7.1 7.92v11.72a7.86 7.86 0 007.1 7.92l26.08 4.2a8 8 0 016.6 6.82c.5 3.2 1 6.41 1.7 9.51a8.08 8.08 0 01-3.9 8.62L62.49 311.7a8.05 8.05 0 00-3.9 9.92l4 11a7.94 7.94 0 009.4 5l25.89-5a8 8 0 018.59 4.11q2.25 4.2 4.8 8.41a8.16 8.16 0 01-.7 9.52l-17.29 19.96a8 8 0 00-.3 10.62l7.49 9a7.88 7.88 0 0010.5 1.51l22.69-13.63a8 8 0 019.39.9c2.4 2.11 4.9 4.21 7.4 6.22a8 8 0 012.5 9.11l-9.4 24.75a8 8 0 003.3 10.12l10.2 5.91a8 8 0 0010.39-2.21l16.79-20.64c2.1-2.6 5.5-3.7 8.2-2.6 3.4 1.4 5.7 2.2 9.9 3.61a8 8 0 015.49 7.71l-.4 26.45a8.07 8.07 0 006.6 8.42l11.59 2a8.07 8.07 0 009.1-5.61l8.6-25a8 8 0 017.79-5.41h9.8a8.07 8.07 0 017.79 5.41l8.6 25a8.07 8.07 0 009.1 5.61l11.59-2a8.07 8.07 0 006.6-8.42l-.4-26.45a8 8 0 015.49-7.71c4.2-1.41 7-2.51 9.6-3.51s5.8-1 8.3 2.1l17 20.94A8 8 0 00355 439l10.2-5.91a7.93 7.93 0 003.3-10.12l-9.4-24.75a8.08 8.08 0 012.5-9.12c2.5-2 5-4.1 7.4-6.21a8 8 0 019.39-.9L401 395.66a8 8 0 0010.5-1.51l7.49-9a8 8 0 00-.3-10.62l-17.29-19.94a8 8 0 01-.7-9.52q2.55-4.05 4.8-8.41a8.11 8.11 0 018.59-4.11l25.89 5a8 8 0 009.4-5l4-11a8.05 8.05 0 00-3.9-9.92l-23.09-12.82a7.94 7.94 0 01-3.9-8.62c.6-3.2 1.2-6.31 1.7-9.51a8.08 8.08 0 016.6-6.82l26.08-4.2a8.09 8.09 0 007.1-7.92V250a8.25 8.25 0 00-7.27-7.73zM256 112a143.82 143.82 0 01139.38 108.12A16 16 0 01379.85 240H274.61a16 16 0 01-13.91-8.09l-52.1-91.71a16 16 0 019.85-23.39A146.94 146.94 0 01256 112zM112 256a144 144 0 0143.65-103.41 16 16 0 0125.17 3.47L233.06 248a16 16 0 010 15.87l-52.67 91.7a16 16 0 01-25.18 3.36A143.94 143.94 0 01112 256zm144 144a146.9 146.9 0 01-38.19-4.95 16 16 0 01-9.76-23.44l52.58-91.55a16 16 0 0113.88-8H379.9a16 16 0 0115.52 19.88A143.84 143.84 0 01256 400z"}))}));i.displayName="Cog"},97053:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M332.41 310.59a115 115 0 00-152.8 0m213.85-61.05a201.26 201.26 0 00-274.92 0m329.18-67.43a288 288 0 00-383.44 0"}),o.createElement("path",{d:"M256 416a32 32 0 1132-32 32 32 0 01-32 32z"}))}));i.displayName="Wifi"},85719:(e,t,n)=>{"use strict";n.d(t,{r:()=>f});var r=n(29603);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(50120),i=n(27378),s=n(8441),l=n(99438);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u=i.forwardRef((function(e,t){var n=e.children,s=e.iconAttrs,u=(e.iconVerticalAlign,e.iconViewBox),f=e.size,d=e.title,p=function(e,t){if(null==e)return{};var n,r,o=(0,a.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"]),h=function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>j});var r=n(27378),o=n(93451),a=n(8441),i=n(53902),s=n(45111),l=n(13698),c=n(48633),u=n(25625),f=n(22892),d=n(85340),p=n(4183),h=n(31601),g=n(89589),m=n(29603),v=n(85719),y=r.forwardRef((function(e,t){return r.createElement(v.r,(0,m.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M352 176L217.6 336 160 272"}))}));y.displayName="CheckmarkCircle";var b,x=n(47091);function w(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function k(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){w(a,r,o,i,s,"next",e)}function s(e){w(a,r,o,i,s,"throw",e)}i(void 0)}))}}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>y});var r,o=n(27378),a=n(96602),i=n(69635),s=n(4289),l=n(15203),c=n(57968),u=n(30688),f=n(12504),d=n(76823),p=n(63890),h=n(24259);function g(){return o.createElement(i.rs,null,o.createElement(i.AW,{path:"/activate",component:l.Z}),o.createElement(i.AW,{path:"/connectivity",component:c.Z}),o.createElement(i.AW,{path:"/system",component:d.Z}),o.createElement(i.AW,{path:"/troubleshooting",component:h.Z}),o.createElement(i.AW,null,o.createElement(i.l_,{to:"/connectivity"})))}function m(){return o.createElement(s.VK,null,o.createElement(u.Z,null,o.createElement(p.Xn,null,o.createElement(f.Mm,null,o.createElement(g,null)))))}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var v=(0,a.wU)(e)(m);const y=v;var b,x;(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(b.register(g,"Root","/workspace/dplane/ui/src/components/App.tsx"),b.register(m,"App","/workspace/dplane/ui/src/components/App.tsx"),b.register(v,"default","/workspace/dplane/ui/src/components/App.tsx")),(x="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&x(e)},69617:(e,t,n)=>{"use strict";n.d(t,{s:()=>h,Z:()=>g});var r,o=n(27378),a=n(25625),i=n(57043),s=n(4183),l=n(57418);function c(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>_});var r,o=n(27378),a=n(17226),i=n(32101),s=n(70199),l=n(31601),c=n(85340),u=n(89589),f=n(55176),d=n(57242),p=n(16350),h=n(38987),g=n(63890);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{q:()=>c,D:()=>f});var r,o=n(27378),a=n(8441),i=n(7961);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var s,l,c=a.ZP.div.withConfig({displayName:"InterfaceCardUtils__HeaderElement",componentId:"sc-1mypc7h-0"})(["display:flex;flex-direction:row;align-items:center;white-space:pre;cursor:",";"],(function(e){return e.onClick?"pointer":"initial"})),u=a.ZP.span.withConfig({displayName:"InterfaceCardUtils__IP",componentId:"sc-1mypc7h-1"})(["opacity:0.6;font-size:0.7em;"]);function f(e){var t=e.title,n=e.int;return o.createElement(c,null,o.createElement(i.Z,{title:n.status,status:n.status}),o.createElement("span",{style:{margin:"0 .4em"}},t),n.ip&&o.createElement(u,null,n.ip))}(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(s.register(c,"HeaderElement","/workspace/dplane/ui/src/components/InterfaceCardUtils.tsx"),s.register(u,"IP","/workspace/dplane/ui/src/components/InterfaceCardUtils.tsx"),s.register(f,"Title","/workspace/dplane/ui/src/components/InterfaceCardUtils.tsx")),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&l(e)},8888:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M48 320h64l64-256 64 384 64-224 32 96h64"}),o.createElement("circle",{cx:432,cy:320,r:32,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32}))}));i.displayName="Pulse";var s,l=n(22892),c=n(85340),u=n(25625),f=n(57043),d=n(31601),p=n(70199),h=n(48633),g=n(8441),m=n(26298);function v(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{S:()=>C,Z:()=>A});var r=n(27378),o=n(22892),a=n(16350),i=n(76179),s=n(70199),l=n(99696),c=n(45111),u=n(31775),f=n(7961),d=n(29603),p=n(85719),h=r.forwardRef((function(e,t){return r.createElement(p.r,(0,d.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 48c-58.07 0-112.67 93.13-112.67 208S197.93 464 256 464s112.67-93.13 112.67-208S314.07 48 256 48z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M117.33 117.33c38.24 27.15 86.38 43.34 138.67 43.34s100.43-16.19 138.67-43.34m0 277.34c-38.24-27.15-86.38-43.34-138.67-43.34s-100.43 16.19-138.67 43.34"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 48v416m208-208H48"}))}));h.displayName="Globe";var g,m=n(57242),v=n(16180),y=n(8888),b=n(69617),x=n(57043);function w(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function k(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){w(a,r,o,i,s,"next",e)}function s(e){w(a,r,o,i,s,"throw",e)}i(void 0)}))}}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)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>M});var r,o=n(27378),a=n(25625),i=n(4183),s=n(8441),l=n(30465),c=n(48633),u=n(93451),f=n(31601),d=n(45111),p=n(85340),h=n(39447);function g(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){g(a,r,o,i,s,"next",e)}function s(e){g(a,r,o,i,s,"throw",e)}i(void 0)}))}}function v(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>k});var r,o=n(27378),a=n(93451),i=n(8441),s=n(70199),l=n(25625),c=n(4183),u=n(45111),f=n(85340),d=n(57242),p=n(39447);function h(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){h(a,r,o,i,s,"next",e)}function s(e){h(a,r,o,i,s,"throw",e)}i(void 0)}))}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>u});var r,o=n(27378),a=n(8441);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,s,l=a.ZP.div.withConfig({displayName:"SettingsTitle__Container",componentId:"sc-1eqj6c3-0"})(["margin-bottom:1em;margin-top:0.5em;"]),c=a.ZP.hr.withConfig({displayName:"SettingsTitle__Sep",componentId:"sc-1eqj6c3-1"})(["border:none;border-top:1px solid lightgrey;"]);function u(e){var t=e.title;return o.createElement(l,null,o.createElement("b",null,t),o.createElement(c,null))}(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(l,"Container","/workspace/dplane/ui/src/components/Interfaces/SettingsTitle.tsx"),i.register(c,"Sep","/workspace/dplane/ui/src/components/Interfaces/SettingsTitle.tsx"),i.register(u,"SettingsTitle","/workspace/dplane/ui/src/components/Interfaces/SettingsTitle.tsx")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)},16180:(e,t,n)=>{"use strict";n.d(t,{Z:()=>bi});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("rect",{width:48,height:160,x:64,y:320,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,rx:8,ry:8}),o.createElement("rect",{width:48,height:256,x:288,y:224,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,rx:8,ry:8}),o.createElement("rect",{width:48,height:368,x:400,y:112,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,rx:8,ry:8}),o.createElement("rect",{width:48,height:448,x:176,y:32,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,rx:8,ry:8}))}));i.displayName="StatsChart";const s="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function l(e,t,n){const r=n||(e=>Array.prototype.slice.call(e));let o=!1,a=[];return function(...n){a=r(n),o||(o=!0,s.call(window,(()=>{o=!1,e.apply(t,a)})))}}const c=e=>"start"===e?"left":"end"===e?"right":"center",u=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function f(){}const d=function(){let e=0;return function(){return e++}}();function p(e){return null==e}function h(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function g(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const m=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function v(e,t){return m(e)?e:t}function y(e,t){return void 0===e?t:e}const b=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function x(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function w(e,t,n,r){let o,a,i;if(h(e))if(a=e.length,r)for(o=a-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;on;)e=e[t.substr(n,r-n)],n=r+1,r=O(t,n);return e}function A(e){return e.charAt(0).toUpperCase()+e.slice(1)}const T=e=>void 0!==e,I=e=>"function"==typeof e,j=Math.PI,R=2*j,D=R+j,N=Number.POSITIVE_INFINITY,H=j/180,z=j/2,F=j/4,G=2*j/3,U=Math.log10,B=Math.sign;function W(e){const t=Math.round(e);e=Z(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(U(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function V(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Z(e,t,n){return Math.abs(e-t)l&&c0===e||1===e,re=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*R/n),oe=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*R/n)+1,ae={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*z),easeOutSine:e=>Math.sin(e*z),easeInOutSine:e=>-.5*(Math.cos(j*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>ne(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ne(e)?e:re(e,.075,.3),easeOutElastic:e=>ne(e)?e:oe(e,.075,.3),easeInOutElastic(e){const t=.1125;return ne(e)?e:e<.5?.5*re(2*e,t,.45):.5+.5*oe(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ae.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*ae.easeInBounce(2*e):.5*ae.easeOutBounce(2*e-1)+.5},ie={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},se="0123456789ABCDEF",le=e=>se[15&e],ce=e=>se[(240&e)>>4]+se[15&e],ue=e=>(240&e)>>4==(15&e);function fe(e){return e+.5|0}const de=(e,t,n)=>Math.max(Math.min(e,n),t);function pe(e){return de(fe(2.55*e),0,255)}function he(e){return de(fe(255*e),0,255)}function ge(e){return de(fe(e/2.55)/100,0,1)}function me(e){return de(fe(100*e),0,100)}const ve=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ye=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function be(e,t,n){const r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function xe(e,t,n){const r=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function we(e,t,n){const r=be(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function ke(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),a=Math.min(t,n,r),i=(o+a)/2;let s,l,c;return o!==a&&(c=o-a,l=i>.5?c/(2-o-a):c/(o+a),s=o===t?(n-r)/c+(n=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=he(e[3]))):(t=Pe(e,{r:0,g:0,b:0,a:1})).a=he(t.a),t}function Te(e){return"r"===e.charAt(0)?function(e){const t=ve.exec(e);let n,r,o,a=255;if(t){if(t[7]!==n){const e=+t[7];a=255&(t[8]?pe(e):255*e)}return n=+t[1],r=+t[3],o=+t[5],n=255&(t[2]?pe(n):n),r=255&(t[4]?pe(r):r),o=255&(t[6]?pe(o):o),{r:n,g:r,b:o,a}}}(e):function(e){const t=ye.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?pe(+t[5]):he(+t[5]));const o=Ee(+t[2]),a=+t[3]/100,i=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return _e(we,e,t,n)}(o,a,i):"hsv"===t[1]?function(e,t,n){return _e(xe,e,t,n)}(o,a,i):Se(o,a,i),{r:n[0],g:n[1],b:n[2],a:r}}(e)}class Ie{constructor(e){if(e instanceof Ie)return e;const t=typeof e;let n;var r,o,a;"object"===t?n=Ae(e):"string"===t&&(a=(r=e).length,"#"===r[0]&&(4===a||5===a?o={r:255&17*ie[r[1]],g:255&17*ie[r[2]],b:255&17*ie[r[3]],a:5===a?17*ie[r[4]]:255}:7!==a&&9!==a||(o={r:ie[r[1]]<<4|ie[r[2]],g:ie[r[3]]<<4|ie[r[4]],b:ie[r[5]]<<4|ie[r[6]],a:9===a?ie[r[7]]<<4|ie[r[8]]:255})),n=o||function(e){Le||(Le=function(){const e={},t=Object.keys(Me),n=Object.keys(Ce);let r,o,a,i,s;for(r=0;r>16&255,a>>8&255,255&a]}return e}(),Le.transparent=[0,0,0,0]);const t=Le[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||Te(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Pe(this._rgb);return e&&(e.a=ge(e.a)),e}set rgb(e){this._rgb=Ae(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ge(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):this._rgb;var e}hexString(){return this._valid?(e=this._rgb,t=function(e){return ue(e.r)&&ue(e.g)&&ue(e.b)&&ue(e.a)}(e)?le:ce,e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e):this._rgb;var e,t}hslString(){return this._valid?function(e){if(!e)return;const t=ke(e),n=t[0],r=me(t[1]),o=me(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${ge(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):this._rgb}mix(e,t){const n=this;if(e){const r=n.rgb,o=e.rgb;let a;const i=t===a?.5:t,s=2*i-1,l=r.a-o.a,c=((s*l==-1?s:(s+l)/(1+s*l))+1)/2;a=1-c,r.r=255&c*r.r+a*o.r+.5,r.g=255&c*r.g+a*o.g+.5,r.b=255&c*r.b+a*o.b+.5,r.a=i*r.a+(1-i)*o.a,n.rgb=r}return n}clone(){return new Ie(this.rgb)}alpha(e){return this._rgb.a=he(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=fe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Oe(this._rgb,2,e),this}darken(e){return Oe(this._rgb,2,-e),this}saturate(e){return Oe(this._rgb,1,e),this}desaturate(e){return Oe(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=ke(e);n[0]=Ee(n[0]+t),n=Se(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function je(e){return new Ie(e)}const Re=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function De(e){return Re(e)?e:je(e)}function Ne(e){return Re(e)?e:je(e).saturate(.5).darken(.1).hexString()}const He=Object.create(null),ze=Object.create(null);function Fe(e,t){if(!t)return e;const n=t.split(".");for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Ne(t.backgroundColor),this.hoverBorderColor=(e,t)=>Ne(t.borderColor),this.hoverColor=(e,t)=>Ne(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,t){return Ge(this,e,t)}get(e){return Fe(this,e)}describe(e,t){return Ge(ze,e,t)}override(e,t){return Ge(He,e,t)}route(e,t,n,r){const o=Fe(this,e),a=Fe(this,n),i="_"+t;Object.defineProperties(o,{[i]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[i],t=a[r];return g(e)?Object.assign({},t,e):y(e,t)},set(e){this[i]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Be(e,t,n,r,o){let a=t[o];return a||(a=t[o]=e.measureText(o).width,n.push(o)),a>r&&(r=a),r}function We(e,t,n,r){let o=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let i=0;const s=n.length;let l,c,u,f,d;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function qe(e,t,n){return n=n||.5,e&&t&&e.x>t.left-n&&e.xt.top-n&&e.y0&&""!==a.strokeColor;let l,c;for(e.save(),e.font=o.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),p(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,a),l=0;ly(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of o)n[e]=+a(e)||0;return n}function it(e){return at(e,{top:"y",right:"x",bottom:"y",left:"x"})}function st(e){return at(e,["topLeft","topRight","bottomLeft","bottomRight"])}function lt(e){const t=it(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ct(e,t){e=e||{},t=t||Ue.font;let n=y(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=y(e.style,t.style);r&&!(""+r).match(rt)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:y(e.family,t.family),lineHeight:ot(y(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:y(e.weight,t.weight),string:""};return o.string=function(e){return!e||p(e.size)||p(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function ut(e,t,n,r){let o,a,i,s=!0;for(o=0,a=e.length;oe[n]1;)r=a+o>>1,n(r)?a=r:o=r;return{lo:a,hi:o}}const dt=(e,t,n)=>ft(e,n,(r=>e[r][t]ft(e,n,(r=>e[r][t]>=n)),ht=["push","pop","shift","splice","unshift"];function gt(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(ht.forEach((t=>{delete e[t]})),delete e._chartjs)}function mt(e){const t=new Set;let n,r;for(n=0,r=e.length;ne[0])){T(r)||(r=Lt("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>vt([o,...e],t,n,r)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>kt(n,r,(()=>function(e,t,n,r){let o;for(const a of t)if(o=Lt(xt(a,e),n),T(o))return wt(e,o)?Ct(n,r,e,o):o}(r,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Ot(e).includes(t),ownKeys:e=>Ot(e),set:(e,t,n)=>((e._storage||(e._storage=o()))[t]=n,delete e[t],delete e._keys,!0)})}function yt(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:bt(e,r),setContext:t=>yt(e,t,n,r),override:o=>yt(e.override(o),t,n,r)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>kt(e,t,(()=>function(e,t,n){const{_proxy:r,_context:o,_subProxy:a,_descriptors:i}=e;let s=r[t];return I(s)&&i.isScriptable(t)&&(s=function(e,t,n,r){const{_proxy:o,_context:a,_subProxy:i,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);return s.add(e),t=t(a,i||r),s.delete(e),g(t)&&(t=Ct(o._scopes,o,e,t)),t}(t,s,e,n)),h(s)&&s.length&&(s=function(e,t,n,r){const{_proxy:o,_context:a,_subProxy:i,_descriptors:s}=n;if(T(a.index)&&r(e))t=t[a.index%t.length];else if(g(t[0])){const n=t,r=o._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Ct(r,o,e,l);t.push(yt(n,a,i&&i[e],s))}}return t}(t,s,e,i.isIndexable)),wt(t,s)&&(s=yt(s,o,a&&a[t],i)),s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function bt(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:I(n)?n:()=>n,isIndexable:I(r)?r:()=>r}}const xt=(e,t)=>e?e+A(t):t,wt=(e,t)=>g(t)&&"adapters"!==e;function kt(e,t,n){let r=e[t];return T(r)||(r=n(),T(r)&&(e[t]=r)),r}function _t(e,t,n){return I(e)?e(t,n):e}const St=(e,t)=>!0===e?t:"string"==typeof e?P(t,e):void 0;function Et(e,t,n,r){for(const o of t){const t=St(n,o);if(t){e.add(t);const o=_t(t._fallback,n,t);if(T(o)&&o!==n&&o!==r)return o}else if(!1===t&&T(r)&&n!==r)return null}return!1}function Ct(e,t,n,r){const o=t._rootScopes,a=_t(t._fallback,n,r),i=[...e,...o],s=new Set;s.add(r);let l=Mt(s,i,n,a||n);return null!==l&&(!T(a)||a===n||(l=Mt(s,i,a,l),null!==l))&&vt(Array.from(s),[""],o,a,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return h(o)&&g(n)?n:o}(t,n,r)))}function Mt(e,t,n,r){for(;n;)n=Et(e,t,n,r);return n}function Lt(e,t){for(const n of t){if(!n)continue;const t=n[e];if(T(t))return t}}function Ot(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const Pt=Number.EPSILON||1e-14,At=(e,t)=>t"x"===e?"y":"x";function It(e,t,n,r){const o=e.skip?t:e,a=t,i=n.skip?t:n,s=Q(a,o),l=Q(i,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=r*c,d=r*u;return{previous:{x:a.x-f*(i.x-o.x),y:a.y-f*(i.y-o.y)},next:{x:a.x+d*(i.x-o.x),y:a.y+d*(i.y-o.y)}}}function jt(e,t,n){return Math.max(Math.min(e,n),t)}function Rt(e,t,n,r,o){let a,i,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){const n=Tt(t),r=e.length,o=Array(r).fill(0),a=Array(r);let i,s,l,c=At(e,0);for(i=0;iwindow.getComputedStyle(e,null),Ft=["top","right","bottom","left"];function Gt(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=Ft[o];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function Ut(e,t){const{canvas:n,currentDevicePixelRatio:r}=t,o=zt(n),a="border-box"===o.boxSizing,i=Gt(o,"padding"),s=Gt(o,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.native||e,r=n.touches,o=r&&r.length?r[0]:n,{offsetX:a,offsetY:i}=o;let s,l,c=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(a,i,n.target))s=a,l=i;else{const e=t.getBoundingClientRect();s=o.clientX-e.left,l=o.clientY-e.top,c=!0}return{x:s,y:l,box:c}}(e,n),f=i.left+(u&&s.left),d=i.top+(u&&s.top);let{width:p,height:h}=t;return a&&(p-=i.width+s.width,h-=i.height+s.height),{x:Math.round((l-f)/p*n.width/r),y:Math.round((c-d)/h*n.height/r)}}const Bt=e=>Math.round(10*e)/10;function Wt(e,t,n){const r=t||1,o=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=o/r,e.width=a/r;const i=e.canvas;return i.style&&(n||!i.style.height&&!i.style.width)&&(i.style.height=`${e.height}px`,i.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||i.height!==o||i.width!==a)&&(e.currentDevicePixelRatio=r,i.height=o,i.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}const Vt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Zt(e,t){const n=function(e,t){return zt(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function $t(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function qt(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function Yt(e,t,n,r){const o={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},i=$t(e,o,n),s=$t(o,a,n),l=$t(a,t,n),c=$t(i,s,n),u=$t(s,l,n);return $t(c,u,n)}const Xt=new Map;function Qt(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Xt.get(n);return r||(r=new Intl.NumberFormat(e,t),Xt.set(n,r)),r}(t,n).format(e)}function Kt(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function Jt(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function en(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function tn(e){return"angle"===e?{between:ee,compare:K,normalize:J}:{between:(e,t,n)=>e>=Math.min(t,n)&&e<=Math.max(n,t),compare:(e,t)=>e-t,normalize:e=>e}}function nn({start:e,end:t,count:n,loop:r,style:o}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:o}}function rn(e,t,n){if(!n)return[e];const{property:r,start:o,end:a}=n,i=t.length,{compare:s,between:l,normalize:c}=tn(r),{start:u,end:f,loop:d,style:p}=function(e,t,n){const{property:r,start:o,end:a}=n,{between:i,normalize:s}=tn(r),l=t.length;let c,u,{start:f,end:d,loop:p}=e;if(p){for(f+=l,d+=l,c=0,u=l;cr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)})))}_refresh(){const e=this;e._request||(e._running=!0,e._request=s.call(window,(()=>{e._update(),e._request=null,e._running&&e._refresh()})))}_update(e=Date.now()){const t=this;let n=0;t._charts.forEach(((r,o)=>{if(!r.running||!r.items.length)return;const a=r.items;let i,s=a.length-1,l=!1;for(;s>=0;--s)i=a[s],i._active?(i._total>r.duration&&(r.duration=i._total),i.tick(e),l=!0):(a[s]=a[a.length-1],a.pop());l&&(o.draw(),t._notify(o,r,e,"progress")),a.length||(r.running=!1,t._notify(o,r,e,"complete"),r.initial=!1),n+=a.length})),t._lastDate=e,0===n&&(t._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const cn="transparent",un={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=De(e||cn),o=r.valid&&De(t||cn);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class fn{constructor(e,t,n,r){const o=t[n];r=ut([e.to,r,o,e.from]);const a=ut([e.from,o,r]);this._active=!0,this._fn=e.fn||un[e.type||typeof a],this._easing=ae[e.easing]||ae.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){const r=this;if(r._active){r._notify(!1);const o=r._target[r._prop],a=n-r._start,i=r._duration-a;r._start=n,r._duration=Math.floor(Math.max(i,e.duration)),r._total+=a,r._loop=!!e.loop,r._to=ut([e.to,t,o,e.from]),r._from=ut([e.from,o,t])}}cancel(){const e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}tick(e){const t=this,n=e-t._start,r=t._duration,o=t._prop,a=t._from,i=t._loop,s=t._to;let l;if(t._active=a!==s&&(i||n1?2-l:l,l=t._easing(Math.min(1,Math.max(0,l))),t._target[o]=t._fn(a,s,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),Ue.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Ue.describe("animations",{_fallback:"animation"}),Ue.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class pn{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!g(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((n=>{const r=e[n];if(!g(r))return;const o={};for(const e of dn)o[e]=r[e];(h(r.properties)&&r.properties||[n]).forEach((e=>{e!==n&&t.has(e)||t.set(e,o)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t{e.options=n}),(()=>{})),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),a=Object.keys(t),i=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=o[l];const f=n.get(l);if(u){if(f&&u.active()){u.update(f,c,i);continue}u.cancel()}f&&f.duration?(o[l]=u=new fn(f,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(ln.add(this._chart,n),!0):void 0}}function hn(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:o,end:r?o:a}}function gn(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,a;for(o=0,a=r.length;o0||!n&&t<0)return r.index}return null}function xn(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:a,vScale:i,index:s}=r,l=a.axis,c=i.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(a,i,r),f=t.length;let d;for(let e=0;en[e].axis===t)).shift()}function kn(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n]}}}const _n=e=>"reset"===e||"none"===e,Sn=(e,t)=>t?e:Object.assign({},e);class En{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this,t=e._cachedMeta;e.configure(),e.linkScales(),t._stacked=vn(t.vScale,t),e.addElements()}updateIndex(e){this.index!==e&&kn(this._cachedMeta),this.index=e}linkScales(){const e=this,t=e.chart,n=e._cachedMeta,r=e.getDataset(),o=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,a=n.xAxisID=y(r.xAxisID,wn(t,"x")),i=n.yAxisID=y(r.yAxisID,wn(t,"y")),s=n.rAxisID=y(r.rAxisID,wn(t,"r")),l=n.indexAxis,c=n.iAxisID=o(l,a,i,s),u=n.vAxisID=o(l,i,a,s);n.xScale=e.getScaleForId(a),n.yScale=e.getScaleForId(i),n.rScale=e.getScaleForId(s),n.iScale=e.getScaleForId(c),n.vScale=e.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&>(this._data,this),e._stacked&&kn(e)}_dataCheck(){const e=this,t=e.getDataset(),n=t.data||(t.data=[]),r=e._data;if(g(n))e._data=function(e){const t=Object.keys(e),n=new Array(t.length);let r,o,a;for(r=0,o=t.length;r{const t="_onData"+A(e),n=o[e];Object.defineProperty(o,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return o._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),r}})})))),e._syncList=[],e._data=n}var o,a}addElements(){const e=this,t=e._cachedMeta;e._dataCheck(),e.datasetElementType&&(t.dataset=new e.datasetElementType)}buildOrUpdateElements(e){const t=this,n=t._cachedMeta,r=t.getDataset();let o=!1;t._dataCheck();const a=n._stacked;n._stacked=vn(n.vScale,n),n.stack!==r.stack&&(o=!0,kn(n),n.stack=r.stack),t._resyncElements(e),(o||a!==n._stacked)&&xn(t,n._parsed)}configure(){const e=this,t=e.chart.config,n=t.datasetScopeKeys(e._type),r=t.getOptionScopes(e.getDataset(),n,!0);e.options=t.createResolver(r,e.getContext()),e._parsing=e.options.parsing}parse(e,t){const n=this,{_cachedMeta:r,_data:o}=n,{iScale:a,_stacked:i}=r,s=a.axis;let l,c,u,f=0===e&&t===o.length||r._sorted,d=e>0&&r._parsed[e-1];if(!1===n._parsing)r._parsed=o,r._sorted=!0,u=o;else{u=h(o[e])?n.parseArrayData(r,o,e,t):g(o[e])?n.parseObjectData(r,o,e,t):n.parsePrimitiveData(r,o,e,t);const a=()=>null===c[s]||d&&c[s]g||f=0;--d)if(!v()){n.updateRangeFromParsed(c,e,h,l);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,a;for(r=0,o=t.length;r=0&&er.getContext(n,o)),f);return h.$shared&&(h.$shared=l,a[i]=Object.freeze(Sn(h,l))),h}_resolveAnimations(e,t,n){const r=this,o=r.chart,a=r._cachedDataOpts,i=`animation-${t}`,s=a[i];if(s)return s;let l;if(!1!==o.options.animation){const o=r.chart.config,a=o.datasetAnimationScopeKeys(r._type,t),i=o.getOptionScopes(r.getDataset(),a);l=o.createResolver(i,r.getContext(e,n,t))}const c=new pn(o,l&&l.animations);return l&&l._cacheable&&(a[i]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||_n(e)||this.chart._animationsDisabled}updateElement(e,t,n,r){_n(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!_n(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this,n=t._data,r=t._cachedMeta.data;for(const[e,n,r]of t._syncList)t[e](n,r);t._syncList=[];const o=r.length,a=n.length,i=Math.min(a,o);i&&t.parse(0,i),a>o?t._insertElements(o,a-o,e):a{for(e.length+=t,s=e.length-1;s>=i;s--)e[s]=e[s-t]};for(l(a),s=e;se-t)))}return e._cache.$bar}(e);let n,r,o,a,i=e._length;const s=()=>{32767!==o&&-32768!==o&&(T(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(n=0,r=t.length;nMath.abs(s)&&(l=s,c=i),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:o,end:a,min:i,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Ln(e,t,n,r){const o=e.iScale,a=e.vScale,i=o.getLabels(),s=o===a,l=[];let c,u,f,d;for(c=n,u=n+r;ce.x,n="left",r="right"):(t=e.base=n?1:-1)}(f,n,i)*a,d===i&&(v-=f/2),u=v+f),v===n.getPixelForValue(i)){const e=B(f)*n.getLineWidthForValue(i)/2;v+=e,f-=e}return{size:f,base:v,head:u,center:u+f/2}}_calculateBarIndexPixels(e,t){const n=this,r=t.scale,o=n.options,a=o.skipNull,i=y(o.maxBarThickness,1/0);let s,l;if(t.grouped){const r=a?n._getStackCount(e):t.stackCount,c="flex"===o.barThickness?function(e,t,n,r){const o=t.pixels,a=o[e];let i=e>0?o[e-1]:null,s=e=0;--r)n=Math.max(n,e[r].size()/2,t[r]._custom);return n>0&&n}getLabelAndValue(e){const t=this._cachedMeta,{xScale:n,yScale:r}=t,o=this.getParsed(e),a=n.getLabelForValue(o.x),i=r.getLabelForValue(o.y),s=o._custom;return{label:t.label,value:"("+a+", "+i+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const o=this,a="reset"===r,{iScale:i,vScale:s}=o._cachedMeta,l=o.resolveDataElementOptions(t,r),c=o.getSharedOptions(l),u=o.includeOptions(r,c),f=i.axis,d=s.axis;for(let l=t;l""}}}};class Rn extends En{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;let o,a;for(o=e,a=e+t;oee(e,s,l,!0)?1:Math.max(t,t*n,r,r*n),h=(e,t,r)=>ee(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n),g=p(0,c,f),m=p(z,u,d),v=h(j,c,f),y=h(j+z,u,d);r=(g-v)/2,o=(m-y)/2,a=-(g+v)/2,i=-(m+y)/2}return{ratioX:r,ratioY:o,offsetX:a,offsetY:i}}(p,d,l),y=(r.width-i)/h,x=(r.height-i)/g,w=Math.max(Math.min(y,x)/2,0),k=b(t.options.radius,w),_=(k-Math.max(k*l,0))/t._getVisibleDatasetWeightTotal();t.offsetX=m*k,t.offsetY=v*k,o.total=t.calculateTotal(),t.outerRadius=k-_*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-_*f,0),t.updateElements(a,0,a.length,e)}_circumference(e,t){const n=this,r=n.options,o=n._cachedMeta,a=n._getCircumference();return t&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:n.calculateCircumference(o._parsed[e]*a/R)}updateElements(e,t,n,r){const o=this,a="reset"===r,i=o.chart,s=i.chartArea,l=i.options.animation,c=(s.left+s.right)/2,u=(s.top+s.bottom)/2,f=a&&l.animateScale,d=f?0:o.innerRadius,p=f?0:o.outerRadius,h=o.resolveDataElementOptions(t,r),g=o.getSharedOptions(h),m=o.includeOptions(r,g);let v,y=o._getRotation();for(v=0;v0&&!isNaN(e)?R*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=Qt(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){const t=this;let n=0;const r=t.chart;let o,a,i,s,l;if(!e)for(o=0,a=r.data.datasets.length;o"spacing"!==e,_indexable:e=>"spacing"!==e},Rn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,r)=>{const o=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const n=": "+e.formattedValue;return h(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class Dn extends En{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){const t=this,n=t._cachedMeta,{dataset:r,data:o=[],_dataset:a}=n,i=t.chart._animationsDisabled;let{start:s,count:l}=function(e,t,n){const r=t.length;let o=0,a=r;if(e._sorted){const{iScale:i,_parsed:s}=e,l=i.axis,{min:c,max:u,minDefined:f,maxDefined:d}=i.getUserBounds();f&&(o=te(Math.min(dt(s,i.axis,c).lo,n?r:dt(t,l,i.getPixelForValue(c)).lo),0,r-1)),a=d?te(Math.max(dt(s,i.axis,u).hi+1,n?0:dt(t,l,i.getPixelForValue(u)).hi+1),o,r)-o:r-o}return{start:o,count:a}}(n,o,i);t._drawStart=s,t._drawCount=l,function(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,o={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=o,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),a}(n)&&(s=0,l=o.length),r._datasetIndex=t.index,r._decimated=!!a._decimated,r.points=o;const c=t.resolveDatasetElementOptions(e);t.options.showLine||(c.borderWidth=0),c.segment=t.options.segment,t.updateElement(r,void 0,{animated:!i,options:c},e),t.updateElements(o,s,l,e)}updateElements(e,t,n,r){const o=this,a="reset"===r,{iScale:i,vScale:s,_stacked:l}=o._cachedMeta,c=o.resolveDataElementOptions(t,r),u=o.getSharedOptions(c),f=o.includeOptions(r,u),d=i.axis,h=s.axis,g=o.options.spanGaps,m=V(g)?g:Number.POSITIVE_INFINITY,v=o.chart._animationsDisabled||a||"none"===r;let y=t>0&&o.getParsed(t-1);for(let c=t;c0&&n[d]-y[d]>m,g.parsed=n,f&&(g.options=u||o.resolveDataElementOptions(c,t.active?"active":r)),v||o.updateElement(t,c,g,r),y=n}o.updateSharedOptions(u,r,c)}getMaxOverflow(){const e=this,t=e._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,o=t.data||[];if(!o.length)return r;const a=o[0].size(e.resolveDataElementOptions(0)),i=o[o.length-1].size(e.resolveDataElementOptions(o.length-1));return Math.max(r,a,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Dn.id="line",Dn.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Dn.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Nn extends En{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=Qt(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}_updateRadius(){const e=this,t=e.chart,n=t.chartArea,r=t.options,o=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(o/2,0),i=(a-Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0))/t.getVisibleDatasetCount();e.outerRadius=a-i*e.index,e.innerRadius=e.outerRadius-i}updateElements(e,t,n,r){const o=this,a="reset"===r,i=o.chart,s=o.getDataset(),l=i.options.animation,c=o._cachedMeta.rScale,u=c.xCenter,f=c.yCenter,d=c.getIndexAngle(0)-.5*j;let p,h=d;const g=360/o.countVisibleElements();for(p=0;p{!isNaN(e.data[r])&&this.chart.getDataVisibility(r)&&n++})),n}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?q(this.resolveDataElementOptions(e,t).angle||n):0}}Nn.id="polarArea",Nn.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Nn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,r)=>{const o=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Hn extends Rn{}Hn.id="pie",Hn.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class zn extends En{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}update(e){const t=this,n=t._cachedMeta,r=n.dataset,o=n.data||[],a=n.iScale.getLabels();if(r.points=o,"resize"!==e){const n=t.resolveDatasetElementOptions(e);t.options.showLine||(n.borderWidth=0);const i={_loop:!0,_fullLoop:a.length===o.length,options:n};t.updateElement(r,void 0,i,e)}t.updateElements(o,0,o.length,e)}updateElements(e,t,n,r){const o=this,a=o.getDataset(),i=o._cachedMeta.rScale,s="reset"===r;for(let l=t;l"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Gn=Object.freeze({__proto__:null,BarController:In,BubbleController:jn,DoughnutController:Rn,LineController:Dn,PolarAreaController:Nn,PieController:Hn,RadarController:zn,ScatterController:Fn});function Un(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Bn{constructor(e){this.options=e||{}}formats(){return Un()}parse(e,t){return Un()}format(e,t){return Un()}add(e,t,n){return Un()}diff(e,t,n){return Un()}startOf(e,t,n){return Un()}endOf(e,t){return Un()}}Bn.override=function(e){Object.assign(Bn.prototype,e)};var Wn={_date:Bn};function Vn(e,t){return"native"in e?{x:e.x,y:e.y}:Ut(e,t)}function Zn(e,t,n,r){const{controller:o,data:a,_sorted:i}=e,s=o._cachedMeta.iScale;if(s&&t===s.axis&&i&&a.length){const e=s._reversePixels?pt:dt;if(!r)return e(a,t,n);if(o._sharedOptions){const r=a[0],o="function"==typeof r.getRange&&r.getRange(t);if(o){const r=e(a,t,n-o),i=e(a,t,n+o);return{lo:r.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function $n(e,t,n,r,o){const a=e.getSortedVisibleDatasetMetas(),i=n[t];for(let e=0,n=a.length;e{e[s](o[i],r)&&a.push({element:e,datasetIndex:t,index:n}),e.inRange(o.x,o.y,r)&&(l=!0)})),n.intersect&&!l?[]:a}var Qn={modes:{index(e,t,n,r){const o=Vn(t,e),a=n.axis||"x",i=n.intersect?qn(e,o,a,r):Yn(e,o,a,!1,r),s=[];return i.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=i[0].index,n=e.data[t];n&&!n.skip&&s.push({element:n,datasetIndex:e.index,index:t})})),s):[]},dataset(e,t,n,r){const o=Vn(t,e),a=n.axis||"xy";let i=n.intersect?qn(e,o,a,r):Yn(e,o,a,!1,r);if(i.length>0){const t=i[0].datasetIndex,n=e.getDatasetMeta(t).data;i=[];for(let e=0;eqn(e,Vn(t,e),n.axis||"xy",r),nearest:(e,t,n,r)=>Yn(e,Vn(t,e),n.axis||"xy",n.intersect,r),x:(e,t,n,r)=>(n.axis="x",Xn(e,t,n,r)),y:(e,t,n,r)=>(n.axis="y",Xn(e,t,n,r))}};const Kn=["left","top","right","bottom"];function Jn(e,t){return e.filter((e=>e.pos===t))}function er(e,t){return e.filter((e=>-1===Kn.indexOf(e.pos)&&e.box.axis===t))}function tr(e,t){return e.sort(((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function nr(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function rr(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function or(e,t,n,r){const{pos:o,box:a}=n,i=e.maxPadding;if(!g(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[o]+=n.size}a.getPadding&&rr(i,a.getPadding());const s=Math.max(0,t.outerWidth-nr(i,e,"left","right")),l=Math.max(0,t.outerHeight-nr(i,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function ar(e,t){const n=t.maxPadding;return function(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}(e?["left","right"]:["top","bottom"])}function ir(e,t,n,r){const o=[];let a,i,s,l,c,u;for(a=0,i=e.length,c=0;ae.box.fullSize)),!0),r=tr(Jn(t,"left"),!0),o=tr(Jn(t,"right")),a=tr(Jn(t,"top"),!0),i=tr(Jn(t,"bottom")),s=er(t,"x"),l=er(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:o.concat(l).concat(i).concat(s),chartArea:Jn(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:a.concat(i).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;w(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:a,availableHeight:i,vBoxMaxWidth:a/2/u,hBoxMaxHeight:i/2}),d=Object.assign({},o);rr(d,lt(r));const p=Object.assign({maxPadding:d,w:a,h:i,x:o.left,y:o.top},o),h=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!Kn.includes(r))continue;const a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let a,i,s;for(a=0,i=e.length;a{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h)}))}};class ur{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}}class fr extends ur{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}}const dr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},pr=e=>null===e||""===e,hr=!!Vt&&{passive:!0};function gr(e,t,n){e.canvas.removeEventListener(t,n,hr)}function mr(e,t,n){const r=e.canvas,o=r&&Nt(r)||r,a=new MutationObserver((e=>{const t=Nt(o);e.forEach((e=>{for(let r=0;r{e.forEach((e=>{for(let t=0;t{n.currentDevicePixelRatio!==e&&t()})))}function wr(e,t,n){const r=e.canvas,o=r&&Nt(r);if(!o)return;const a=l(((e,t)=>{const r=o.clientWidth;n(e,t),r{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)}));return i.observe(o),function(e,t){yr.size||window.addEventListener("resize",xr),yr.set(e,t)}(e,a),i}function kr(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){yr.delete(e),yr.size||window.removeEventListener("resize",xr)}(e)}function _r(e,t,n){const r=e.canvas,o=l((t=>{null!==e.ctx&&n(function(e,t){const n=dr[e.type]||e.type,{x:r,y:o}=Ut(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,hr)}(r,t,o),o}class Sr extends ur{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e.$chartjs={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",pr(o)){const t=Zt(e,"width");void 0!==t&&(e.width=t)}if(pr(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Zt(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t.$chartjs)return!1;const n=t.$chartjs.initial;["height","width"].forEach((e=>{const r=n[e];p(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t.$chartjs,!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:mr,detach:vr,resize:wr}[t]||_r;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:kr,detach:kr,resize:kr}[t]||gr)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return function(e,t,n,r){const o=zt(e),a=Gt(o,"margin"),i=Ht(o.maxWidth,e,"clientWidth")||N,s=Ht(o.maxHeight,e,"clientHeight")||N,l=function(e,t,n){let r,o;if(void 0===t||void 0===n){const a=Nt(e);if(a){const e=a.getBoundingClientRect(),i=zt(a),s=Gt(i,"border","width"),l=Gt(i,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=Ht(i.maxWidth,a,"clientWidth"),o=Ht(i.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||N,maxHeight:o||N}}(e,t,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const e=Gt(o,"border","width"),t=Gt(o,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-a.width),u=Math.max(0,r?Math.floor(c/r):u-a.height),c=Bt(Math.min(c,i,l.maxWidth)),u=Bt(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Bt(c/2)),{width:c,height:u}}(e,t,n,r)}isAttached(e){const t=Nt(e);return!(!t||!t.isConnected)}}class Er{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return V(this.x)&&V(this.y)}getProps(e,t){const n=this,r=this.$animations;if(!t||!r)return n;const o={};return e.forEach((e=>{o[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),o}}Er.defaults={},Er.defaultRoutes=void 0;const Cr={values:e=>h(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let o,a=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),a=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const i=U(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(i),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Qt(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=e/Math.pow(10,Math.floor(U(e)));return 1===r||2===r||5===r?Cr.numeric.call(this,e,t,n):""}};var Mr={formatters:Cr};function Lr(e,t,n,r,o){const a=y(r,0),i=Math.min(y(o,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),c=a;c<0;)u++,c=Math.round(a+u*n);for(l=Math.max(a,0);lt.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Mr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Ue.route("scale.ticks","color","","color"),Ue.route("scale.grid","color","","borderColor"),Ue.route("scale.grid","borderColor","","borderColor"),Ue.route("scale.title","color","","color"),Ue.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),Ue.describe("scales",{_fallback:"scale"}),Ue.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const Or=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function Pr(e,t){const n=[],r=e.length/t,o=e.length;let a=0;for(;ai+s)))return c}function Tr(e){return e.drawTicks?e.tickLength:0}function Ir(e,t){if(!e.display)return 0;const n=ct(e.font,t),r=lt(e.padding);return(h(e.text)?e.text.length:1)*n.lineHeight+r.height}function jr(e,t,n){let r=c(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class Rr extends Er{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){const t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=v(e,Number.POSITIVE_INFINITY),t=v(t,Number.NEGATIVE_INFINITY),n=v(n,Number.POSITIVE_INFINITY),r=v(r,Number.NEGATIVE_INFINITY),{min:v(e,n),max:v(t,r),minDefined:m(e),maxDefined:m(t)}}getMinMax(e){const t=this;let n,{min:r,max:o,minDefined:a,maxDefined:i}=t.getUserBounds();if(a&&i)return{min:r,max:o};const s=t.getMatchingVisibleMetas();for(let l=0,c=s.length;lr)return function(e,t,n,r){let o,a=0,i=n[0];for(r=Math.ceil(r),o=0;oe-t)).pop(),t}(r);for(let e=0,t=a.length-1;eo)return t}return Math.max(o,1)}(o,t,r);if(a>0){let e,n;const r=a>1?Math.round((s-i)/(a-1)):null;for(Lr(t,l,c,p(r)?0:i-r,i),e=0,n=a-1;e=a||r<=1||!e.isHorizontal())return void(e.labelRotation=o);const u=e._getLabelSizes(),f=u.widest.width,d=u.highest.height,p=te(e.chart.width-f,0,e.maxWidth);i=t.offset?e.maxWidth/r:p/(r-1),f+6>i&&(i=p/(r-(t.offset?.5:1)),s=e.maxHeight-Tr(t.grid)-n.padding-Ir(t.title,e.chart.options.font),l=Math.sqrt(f*f+d*d),c=Y(Math.min(Math.asin(te((u.highest.height+6)/i,-1,1)),Math.asin(te(s/l,-1,1))-Math.asin(te(d/l,-1,1)))),c=Math.max(o,Math.min(a,c))),e.labelRotation=c}afterCalculateLabelRotation(){x(this.options.afterCalculateLabelRotation,[this])}beforeFit(){x(this.options.beforeFit,[this])}fit(){const e=this,t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:a}}=e,i=e._isVisible(),s=e.isHorizontal();if(i){const i=Ir(o,n.options.font);if(s?(t.width=e.maxWidth,t.height=Tr(a)+i):(t.height=e.maxHeight,t.width=Tr(a)+i),r.display&&e.ticks.length){const{first:n,last:o,widest:a,highest:i}=e._getLabelSizes(),l=2*r.padding,c=q(e.labelRotation),u=Math.cos(c),f=Math.sin(c);if(s){const n=r.mirror?0:f*a.width+u*i.height;t.height=Math.min(e.maxHeight,t.height+n+l)}else{const n=r.mirror?0:u*a.width+f*i.height;t.width=Math.min(e.maxWidth,t.width+n+l)}e._calculatePadding(n,o,f,u)}}e._handleMargins(),s?(e.width=e._length=n.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e._margins.top-e._margins.bottom)}_calculatePadding(e,t,n,r){const o=this,{ticks:{align:a,padding:i},position:s}=o.options,l=0!==o.labelRotation,c="top"!==s&&"x"===o.axis;if(o.isHorizontal()){const s=o.getPixelForTick(0)-o.left,u=o.right-o.getPixelForTick(o.ticks.length-1);let f=0,d=0;l?c?(f=r*e.width,d=n*t.height):(f=n*e.height,d=r*t.width):"start"===a?d=t.width:"end"===a?f=e.width:(f=e.width/2,d=t.width/2),o.paddingLeft=Math.max((f-s+i)*o.width/(o.width-s),0),o.paddingRight=Math.max((d-u+i)*o.width/(o.width-u),0)}else{let n=t.height/2,r=e.height/2;"start"===a?(n=0,r=e.height):"end"===a&&(n=t.height,r=0),o.paddingTop=n+i,o.paddingBottom=r+i}}_handleMargins(){const e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}afterFit(){x(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){const t=this;let n,r;for(t.beforeTickToLabelConversion(),t.generateTickLabels(e),n=0,r=e.length;n{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o({width:o[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(k),highest:S(_),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){const t=this;t._reversePixels&&(e=1-e);const n=t._startPixel+e*t._length;return te(t._alignToPixels?Ve(t.chart,n,0):n,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this,n=t.ticks||[];if(e>=0&&es*o?s/r:l/o:l*o0}_computeGridLineItems(e){const t=this,n=t.axis,r=t.chart,o=t.options,{grid:a,position:i}=o,s=a.offset,l=t.isHorizontal(),c=t.ticks.length+(s?1:0),u=Tr(a),f=[],d=a.setContext(t.getContext()),p=d.drawBorder?d.borderWidth:0,h=p/2,m=function(e){return Ve(r,e,p)};let v,b,x,w,k,_,S,E,C,M,L,O;if("top"===i)v=m(t.bottom),_=t.bottom-u,E=v-h,M=m(e.top)+h,O=e.bottom;else if("bottom"===i)v=m(t.top),M=e.top,O=m(e.bottom)-h,_=v+h,E=t.top+u;else if("left"===i)v=m(t.right),k=t.right-u,S=v-h,C=m(e.left)+h,L=e.right;else if("right"===i)v=m(t.left),C=e.left,L=m(e.right)-h,k=v+h,S=t.left+u;else if("x"===n){if("center"===i)v=m((e.top+e.bottom)/2+.5);else if(g(i)){const e=Object.keys(i)[0],n=i[e];v=m(t.chart.scales[e].getPixelForValue(n))}M=e.top,O=e.bottom,_=v+h,E=_+u}else if("y"===n){if("center"===i)v=m((e.left+e.right)/2);else if(g(i)){const e=Object.keys(i)[0],n=i[e];v=m(t.chart.scales[e].getPixelForValue(n))}k=v-h,S=k-u,C=e.left,L=e.right}const P=y(o.ticks.maxTicksLimit,c),A=Math.max(1,Math.ceil(c/P));for(b=0;bt.value===e));return r>=0?n.setContext(t.getContext(r)).lineWidth:0}drawGrid(e){const t=this,n=t.options.grid,r=t.ctx,o=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));let a,i;const s=(e,t,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),r.stroke(),r.restore())};if(n.display)for(a=0,i=o.length;a{const r=n.split("."),o=r.pop(),a=[e].concat(r).join("."),i=t[n].split("."),s=i.pop(),l=i.join(".");Ue.route(a,o,l,s)}))}(t,e.defaultRoutes),e.descriptors&&Ue.describe(t,e.descriptors)}(e,i,r),t.override&&Ue.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in Ue[r]&&(delete Ue[r][n],this.override&&delete He[n])}}var Nr=new class{constructor(){this.controllers=new Dr(En,"datasets",!0),this.elements=new Dr(Er,"elements"),this.plugins=new Dr(Object,"plugins"),this.scales=new Dr(Rr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){const r=this;[...t].forEach((t=>{const o=n||r._getRegistryForType(t);n||o.isForType(t)||o===r.plugins&&t.id?r._exec(e,o,t):w(t,(t=>{const o=n||r._getRegistryForType(t);r._exec(e,o,t)}))}))}_exec(e,t,n){const r=A(e);x(n["before"+r],[],n),t[e](n),x(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function zr(e,t){return t||!1!==e?!0===e?{}:e:null}function Fr(e,t,n,r){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(n,o);return e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Gr(e,t){const n=Ue.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Ur(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function Br(e){const t=e.options||(e.options={});t.plugins=y(t.plugins,{}),t.scales=function(e,t){const n=He[e.type]||{scales:{}},r=t.scales||{},o=Gr(e.type,t),a=Object.create(null),i=Object.create(null);return Object.keys(r).forEach((e=>{const t=r[e],s=Ur(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,o),c=n.scales||{};a[s]=a[s]||e,i[e]=M(Object.create(null),[{axis:s},t,c[s],c[l]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,s=n.indexAxis||Gr(o,t),l=(He[o]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),o=n[t+"AxisID"]||a[t]||t;i[o]=i[o]||Object.create(null),M(i[o],[{axis:t},r[o],l[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];M(t,[Ue.scales[t.type],Ue.scale])})),i}(e,t)}function Wr(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Vr=new Map,Zr=new Set;function $r(e,t){let n=Vr.get(e);return n||(n=t(),Vr.set(e,n),Zr.add(n)),n}const qr=(e,t,n)=>{const r=P(t,n);void 0!==r&&e.add(r)};class Yr{constructor(e){this._config=function(e){return(e=e||{}).data=Wr(e.data),Br(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Wr(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Br(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return $r(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return $r(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return $r(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return $r(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,a=this._cachedScopes(e,n),i=a.get(t);if(i)return i;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>qr(s,e,t)))),t.forEach((e=>qr(s,r,e))),t.forEach((e=>qr(s,He[o]||{},e))),t.forEach((e=>qr(s,Ue,e))),t.forEach((e=>qr(s,ze,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Zr.has(t)&&a.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,He[t]||{},Ue.datasets[t]||{},{type:t},Ue,ze]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:a,subPrefixes:i}=Xr(this._resolverCache,e,r);let s=a;(function(e,t){const{isScriptable:n,isIndexable:r}=bt(e);for(const o of t)if(n(o)&&I(e[o])||r(o)&&h(e[o]))return!0;return!1})(a,t)&&(o.$shared=!1,s=yt(a,n=I(n)?n():n,this.createResolver(e,n,i)));for(const e of t)o[e]=s[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=Xr(this._resolverCache,e,n);return g(t)?yt(o,t,void 0,r):o}}function Xr(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let a=r.get(o);return a||(a={resolver:vt(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,a)),a}const Qr=["top","bottom","left","right","chartArea"];function Kr(e,t){return"top"===e||"bottom"===e||-1===Qr.indexOf(e)&&"x"===t}function Jr(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function eo(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),x(n&&n.onComplete,[e],t)}function to(e){const t=e.chart,n=t.options.animation;x(n&&n.onProgress,[e],t)}function no(e){return Dt()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ro={},oo=e=>{const t=no(e);return Object.values(ro).filter((e=>e.canvas===t)).pop()};class ao{constructor(e,t){const n=this,r=this.config=new Yr(t),o=no(e),a=oo(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas can be reused.");const i=r.createResolver(r.chartOptionScopes(),n.getContext());this.platform=new(r.platform||function(e){return!Dt()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?fr:Sr}(o));const s=n.platform.acquireContext(o,i.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;this.id=d(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new Hr,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(){return t?(clearTimeout(n),n=setTimeout(e,t)):e(),t}}((()=>this.update("resize")),i.resizeDelay||0),ro[n.id]=n,s&&l?(ln.listen(n,"complete",eo),ln.listen(n,"progress",to),n._initialize(),n.attached&&n.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return p(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){const e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Wt(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}clear(){return Ze(this.canvas,this.ctx),this}stop(){return ln.stop(this),this}resize(e,t){ln.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this,r=n.options,o=n.canvas,a=r.maintainAspectRatio&&n.aspectRatio,i=n.platform.getMaximumSize(o,e,t,a),s=r.devicePixelRatio||n.platform.getDevicePixelRatio();n.width=i.width,n.height=i.height,n._aspectRatio=n.aspectRatio,Wt(n,s,!0)&&(n.notifyPlugins("resize",{size:i}),x(r.onResize,[n,i],n),n.attached&&n._doResize()&&n.render())}ensureScalesHaveIDs(){w(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this,t=e.options,n=t.scales,r=e.scales,o=Object.keys(r).reduce(((e,t)=>(e[t]=!1,e)),{});let a=[];n&&(a=a.concat(Object.keys(n).map((e=>{const t=n[e],r=Ur(e,t),o="r"===r,a="x"===r;return{options:t,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}})))),w(a,(n=>{const a=n.options,i=a.id,s=Ur(i,a),l=y(a.type,n.dtype);void 0!==a.position&&Kr(a.position,s)===Kr(n.dposition)||(a.position=n.dposition),o[i]=!0;let c=null;i in r&&r[i].type===l?c=r[i]:(c=new(Nr.getScale(l))({id:i,type:l,ctx:e.ctx,chart:e}),r[c.id]=c),c.init(a,t)})),w(o,((e,t)=>{e||delete r[t]})),w(r,(t=>{cr.configure(e,t,t.options),cr.addBox(e,t)}))}_updateMetasets(){const e=this,t=e._metasets,n=e.data.datasets.length,r=t.length;if(t.sort(((e,t)=>e.index-t.index)),r>n){for(let t=n;tn.length&&delete e._stacks,t.forEach(((t,r)=>{0===n.filter((e=>e===t._dataset)).length&&e._destroyDatasetMeta(r)}))}buildOrUpdateControllers(){const e=this,t=[],n=e.data.datasets;let r,o;for(e._removeUnreferencedMetasets(),r=0,o=n.length;r{e.getDatasetMeta(n).controller.reset()}),e)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this,n=t.config;n.update(),t._options=n.createResolver(n.chartOptionScopes(),t.getContext()),w(t.scales,(e=>{cr.removeBox(t,e)}));const r=t._animationsDisabled=!t.options.animation;if(t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),((e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0})(new Set(Object.keys(t._listeners)),new Set(t.options.events))&&!!this._responsiveListeners===t.options.responsive||(t.unbindEvents(),t.bindEvents()),t._plugins.invalidate(),!1===t.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=t.buildOrUpdateControllers();t.notifyPlugins("beforeElementsUpdate");let a=0;for(let e=0,n=t.data.datasets.length;e{e.reset()})),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(Jr("z","_idx")),t._lastEvent&&t._eventHandler(t._lastEvent,!0),t.render()}_updateLayout(e){const t=this;if(!1===t.notifyPlugins("beforeLayout",{cancelable:!0}))return;cr.update(t,t.width,t.height,e);const n=t.chartArea,r=n.width<=0||n.height<=0;t._layers=[],w(t.boxes,(e=>{r&&"chartArea"===e.position||(e.configure&&e.configure(),t._layers.push(...e._layers()))}),t),t._layers.forEach(((e,t)=>{e._idx=t})),t.notifyPlugins("afterLayout")}_updateDatasets(e){const t=this,n="function"==typeof e;if(!1!==t.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let r=0,o=t.data.datasets.length;r=0;--n)e._drawDataset(t[n]);e.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this,n=t.ctx,r=e._clip,o=!r.disabled,a=t.chartArea,i={meta:e,index:e.index,cancelable:!0};!1!==t.notifyPlugins("beforeDatasetDraw",i)&&(o&&Ye(n,{left:!1===r.left?0:a.left-r.left,right:!1===r.right?t.width:a.right+r.right,top:!1===r.top?0:a.top-r.top,bottom:!1===r.bottom?t.height:a.bottom+r.bottom}),e.controller.draw(),o&&Xe(n),i.cancelable=!1,t.notifyPlugins("afterDatasetDraw",i))}getElementsAtEventForMode(e,t,n,r){const o=Qn.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=this,o=n?"show":"hide",a=r.getDatasetMeta(e),i=a.controller._resolveAnimations(void 0,o);T(t)?(a.data[t].hidden=!n,r.update()):(r.setDatasetVisibility(e,n),i.update(a,{visible:n}),r.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this,n=t._metasets&&t._metasets[e];n&&n.controller&&(n.controller._destroy(),delete t._metasets[e])}destroy(){const e=this,{canvas:t,ctx:n}=e;let r,o;for(e.stop(),ln.remove(e),r=0,o=e.data.datasets.length;r((r,o)=>{n.addEventListener(e,r,o),t[r]=o})(o,r)))}bindResponsiveEvents(){const e=this;e._responsiveListeners||(e._responsiveListeners={});const t=e._responsiveListeners,n=e.platform,r=(r,o)=>{n.addEventListener(e,r,o),t[r]=o},o=(r,o)=>{t[r]&&(n.removeEventListener(e,r,o),delete t[r])},a=(t,n)=>{e.canvas&&e.resize(t,n)};let i;const s=()=>{o("attach",s),e.attached=!0,e.resize(),r("resize",a),r("detach",i)};i=()=>{e.attached=!1,o("resize",a),r("attach",s)},n.isAttached(e.canvas)?s():i()}unbindEvents(){const e=this;w(e._listeners,((t,n)=>{e.platform.removeEventListener(e,n,t)})),e._listeners={},w(e._responsiveListeners,((t,n)=>{e.platform.removeEventListener(e,n,t)})),e._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,a,i,s;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),i=0,s=e.length;i{const r=t.getDatasetMeta(e);if(!r)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:r.data[n],index:n}}));!k(r,n)&&(t._active=r,t._updateHoverStyles(r,n))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const r=this,o=r.options.hover,a=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=a(t,e),s=n?e:a(e,t);i.length&&r.updateHoverStyle(i,o.mode,!1),s.length&&o.mode&&r.updateHoverStyle(s,o.mode,!0)}_eventHandler(e,t){const n=this,r={event:e,replay:t,cancelable:!0},o=t=>(t.options.events||this.options.events).includes(e.type);if(!1===n.notifyPlugins("beforeEvent",r,o))return;const a=n._handleEvent(e,t);return r.cancelable=!1,n.notifyPlugins("afterEvent",r,o),(a||r.changed)&&n.render(),n}_handleEvent(e,t){const n=this,{_active:r=[],options:o}=n,a=o.hover,i=t;let s=[],l=!1,c=null;return"mouseout"!==e.type&&(s=n.getElementsAtEventForMode(e,a.mode,a,i),c="click"===e.type?n._lastEvent:e),n._lastEvent=null,qe(e,n.chartArea,n._minPadding)&&(x(o.onHover,[e,s,n],n),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||x(o.onClick,[e,s,n],n)),l=!k(s,r),(l||t)&&(n._active=s,n._updateHoverStyles(s,r,t)),n._lastEvent=c,l}}const io=()=>w(ao.instances,(e=>e._plugins.invalidate())),so=!0;function lo(e,t,n){const{startAngle:r,pixelMargin:o,x:a,y:i,outerRadius:s,innerRadius:l}=t;let c=o/s;e.beginPath(),e.arc(a,i,s,r-c,n+c),l>o?(c=o/l,e.arc(a,i,l,n+c,r-c,!0)):e.arc(a,i,o,n+z,r-z),e.closePath(),e.clip()}function co(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function uo(e,t,n,r,o){const{x:a,y:i,startAngle:s,pixelMargin:l,innerRadius:c}=t,u=Math.max(t.outerRadius+r+n-l,0),f=c>0?c+r+n+l:0;let d=0;const p=o-s;if(r){const e=((c>0?c-r:0)+(u>0?u-r:0))/2;d=(p-(0!==e?p*e/(e+r):p))/2}const h=(p-Math.max(.001,p*u-n/j)/u)/2,g=s+h+d,m=o-h-d,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=function(e,t,n,r){const o=at(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(n-t)/2,i=Math.min(a,r*t/2),s=e=>{const t=(n-Math.min(a,e))*r/2;return te(e,0,Math.min(a,t))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:te(o.innerStart,0,i),innerEnd:te(o.innerEnd,0,i)}}(t,f,u,m-g),w=u-v,k=u-y,_=g+v/w,S=m-y/k,E=f+b,C=f+x,M=g+b/E,L=m-x/C;if(e.beginPath(),e.arc(a,i,u,_,S),y>0){const t=co(k,S,a,i);e.arc(t.x,t.y,y,S,m+z)}const O=co(C,m,a,i);if(e.lineTo(O.x,O.y),x>0){const t=co(C,L,a,i);e.arc(t.x,t.y,x,m+z,L+Math.PI)}if(e.arc(a,i,f,m-x/f,g+b/f,!0),b>0){const t=co(E,M,a,i);e.arc(t.x,t.y,b,M+Math.PI,g-z)}const P=co(w,g,a,i);if(e.lineTo(P.x,P.y),v>0){const t=co(w,_,a,i);e.arc(t.x,t.y,v,g-z,_)}e.closePath()}Object.defineProperties(ao,{defaults:{enumerable:so,value:Ue},instances:{enumerable:so,value:ro},overrides:{enumerable:so,value:He},registry:{enumerable:so,value:Nr},version:{enumerable:so,value:"3.5.0"},getChart:{enumerable:so,value:oo},register:{enumerable:so,value:(...e)=>{Nr.add(...e),io()}},unregister:{enumerable:so,value:(...e)=>{Nr.remove(...e),io()}}});class fo extends Er{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:a}=function(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*j&&(a+=R),{angle:a,distance:o}}(r,{x:e,y:t}),{startAngle:i,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),f=this.options.spacing/2;return(u>=R||ee(o,i,s))&&a>=l+f&&a<=c+f}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:a,outerRadius:i}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,c=(r+o)/2,u=(a+i+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const t=this,{options:n,circumference:r}=t,o=(n.offset||0)/2,a=(n.spacing||0)/2;if(t.pixelMargin="inner"===n.borderAlign?.33:0,t.fullCircles=r>R?Math.floor(r/R):0,0===r||t.innerRadius<0||t.outerRadius<0)return;e.save();let i=0;if(o){i=o/2;const n=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(n)*i,Math.sin(n)*i),t.circumference>=j&&(i=o)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;const s=function(e,t,n,r){const{fullCircles:o,startAngle:a,circumference:i}=t;let s=t.endAngle;if(o){uo(e,t,n,r,a+R);for(let t=0;ts&&a>s;return{count:r,start:l,loop:t.loop,ilen:c(i+(c?s-e:e))%a,b=()=>{p!==h&&(e.lineTo(m,h),e.lineTo(m,p),e.lineTo(m,g))};for(l&&(f=o[y(0)],e.moveTo(f.x,f.y)),u=0;u<=s;++u){if(f=o[y(u)],f.skip)continue;const t=f.x,n=f.y,r=0|t;r===d?(nh&&(h=n),m=(v*m+t)/++v):(b(),e.lineTo(t,n),d=r,v=0,p=h=n),g=n}b()}function yo(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?mo:vo}fo.id="arc",fo.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},fo.defaultRoutes={backgroundColor:"backgroundColor"};const bo="function"==typeof Path2D;class xo extends Er{constructor(e){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this,r=n.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!n._pointsUpdated){const o=r.spanGaps?n._loop:n._fullLoop;Rt(n._points,r,e,o,t),n._pointsUpdated=!0}}set points(e){const t=this;t._points=e,delete t._segments,delete t._path,t._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const a=!!e._loop,{start:i,end:s}=function(e,t,n,r){let o=0,a=t-1;if(n&&!r)for(;oo&&e[a%t].skip;)a--;return a%=t,{start:o,end:a}}(n,o,a,r);return function(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const o=an(e.options),a=n.length,i=[];let s=t[0].start,l=s;for(const c of t){let t,u=o,f=n[s%a];for(l=s+1;l<=c.end;l++){const o=n[l%a];t=an(r.setContext({type:"segment",p0:f,p1:o,p0DataIndex:(l-1)%a,p1DataIndex:l%a,datasetIndex:e._datasetIndex})),sn(t,u)&&(i.push({start:s,end:l-1,loop:c.loop,style:u}),u=t,s=l-1),f=o,u=t}s"borderDash"!==e&&"fill"!==e};class ko extends Er{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-a,2)=i.left&&t<=i.right)&&(a||n>=i.top&&n<=i.bottom)}function Co(e,t){e.rect(t.x,t.y,t.w,t.h)}function Mo(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,i=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+a,h:e.h+i,radius:e.radius}}ko.id="point",ko.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},ko.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Lo extends Er{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){const t=this.options,{inner:n,outer:r}=function(e){const t=_o(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,a=it(r);return{t:So(o.top,a.top,0,n),r:So(o.right,a.right,0,t),b:So(o.bottom,a.bottom,0,n),l:So(o.left,a.left,0,t)}}(e,n/2,r/2),a=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,a=st(o),i=Math.min(t,n),s=e.borderSkipped,l=r||g(o);return{topLeft:So(!l||s.top||s.left,a.topLeft,0,i),topRight:So(!l||s.top||s.right,a.topRight,0,i),bottomLeft:So(!l||s.bottom||s.left,a.bottomLeft,0,i),bottomRight:So(!l||s.bottom||s.right,a.bottomRight,0,i)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}(this),o=(a=r.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?tt:Co;var a;e.save(),r.w===n.w&&r.h===n.h||(e.beginPath(),o(e,Mo(r,.33,n)),e.clip(),o(e,Mo(n,-.33,r)),e.fillStyle=t.borderColor,e.fill("evenodd")),e.beginPath(),o(e,Mo(n,.33,r)),e.fillStyle=t.backgroundColor,e.fill(),e.restore()}inRange(e,t,n){return Eo(this,e,t,n)}inXRange(e,t){return Eo(this,e,null,t)}inYRange(e,t){return Eo(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Lo.id="bar",Lo.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Lo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Oo=Object.freeze({__proto__:null,ArcElement:fo,LineElement:xo,PointElement:ko,BarElement:Lo});function Po(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function Ao(e){e.data.datasets.forEach((e=>{Po(e)}))}var To={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Ao(e);const r=e.width;e.data.datasets.forEach(((t,o)=>{const{_data:a,indexAxis:i}=t,s=e.getDatasetMeta(o),l=a||t.data;if("y"===ut([i,e.options.indexAxis]))return;if("line"!==s.type)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let u,{start:f,count:d}=function(e,t){const n=t.length;let r,o=0;const{iScale:a}=e,{min:i,max:s,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(o=te(dt(t,a.axis,i).lo,0,n-1)),r=c?te(dt(t,a.axis,s).hi+1,o,n)-o:n-o,{start:o,count:r}}(s,l);if(d<=(n.threshold||4*r))Po(t);else{switch(p(a)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":u=function(e,t,n,r,o){const a=o.samples||r;if(a>=n)return e.slice(t,t+n);const i=[],s=(n-2)/(a-2);let l=0;const c=t+n-1;let u,f,d,p,h,g=t;for(i[l++]=e[g],u=0;ud&&(d=p,f=e[r],h=r);i[l++]=f,g=h}return i[l++]=e[c],i}(l,f,d,r,n);break;case"min-max":u=function(e,t,n,r){let o,a,i,s,l,c,u,f,d,h,g=0,m=0;const v=[],y=t+n-1,b=e[t].x,x=e[y].x-b;for(o=t;oh&&(h=s,u=o),g=(m*g+a.x)/++m;else{const n=o-1;if(!p(c)&&!p(u)){const t=Math.min(c,u),r=Math.max(c,u);t!==f&&t!==n&&v.push({...e[t],x:g}),r!==f&&r!==n&&v.push({...e[r],x:g})}o>0&&n!==f&&v.push(e[n]),v.push(a),l=t,m=0,d=h=s,c=u=f=o}}return v}(l,f,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=u}}))},destroy(e){Ao(e)}};function Io(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=y(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(e);if(g(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return m(o)&&Math.floor(o)===o?("-"!==r[0]&&"+"!==r[0]||(o=t+o),!(o===t||o<0||o>=n)&&o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}class jo{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:o,radius:a}=this;return t=t||{start:0,end:R},e.arc(r,o,a,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,o=e.angle;return{x:t+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}function Ro(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}const Do=e=>"line"===e.type&&!e.hidden;function No(e,t,n){const r=[];for(let o=0;o=r&&o<=c){s=o===r,l=o===c;break}}return{first:s,last:l,point:r}}function zo(e,t){let n=[],r=!1;return h(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},o=t.points,a=[];return t.segments.forEach((({start:e,end:t})=>{t=Ro(e,t,o);const i=o[e],s=o[t];null!==r?(a.push({x:i.x,y:r}),a.push({x:s.x,y:r})):null!==n&&(a.push({x:n,y:i.y}),a.push({x:n,y:s.y}))})),a}(e,t),n.length?new xo({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Fo(e,t,n){let r=e[t].fill;const o=[t];let a;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!m(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Go(e,t,n){e.beginPath(),t.path(e),e.lineTo(t.last().x,n),e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Uo(e,t,n,r){if(r)return;let o=t[e],a=n[e];return"angle"===e&&(o=J(o),a=J(a)),{property:e,start:o,end:a}}function Bo(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Wo(e,t,n){const{top:r,bottom:o}=t.chart.chartArea,{property:a,start:i,end:s}=n||{};"x"===a&&(e.beginPath(),e.rect(i,r,s-i,o-r),e.clip())}function Vo(e,t,n,r){const o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}function Zo(e,t){const{line:n,target:r,property:o,color:a,scale:i}=t,s=function(e,t,n){const r=e.segments,o=e.points,a=t.points,i=[];for(const e of r){let{start:r,end:s}=e;s=Ro(r,s,o);const l=Uo(n,o[r],o[s],e.loop);if(!t.segments){i.push({source:e,target:l,start:o[r],end:o[s]});continue}const c=on(t,l);for(const t of c){const r=Uo(n,a[t.start],a[t.end],t.loop),s=rn(e,o,r);for(const e of s)i.push({source:e,target:t,start:{[n]:Bo(l,r,"start",Math.max)},end:{[n]:Bo(l,r,"end",Math.min)}})}}return i}(n,r,o);for(const{source:t,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=a}={}}=t,f=!0!==r;e.save(),e.fillStyle=s,Wo(e,i,f&&Uo(o,c,u)),e.beginPath();const d=!!n.pathSegment(e,t);let p;if(f){d?e.closePath():Vo(e,r,u,o);const t=!!r.pathSegment(e,l,{move:d,reverse:!0});p=d&&t,p||Vo(e,r,c,o)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function $o(e,t,n){const r=function(e){const{chart:t,fill:n,line:r}=e;if(m(n))return function(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return function(e){const{chart:t,scale:n,index:r,line:o}=e,a=[],i=o.segments,s=o.points,l=function(e,t){const n=[],r=e.getSortedVisibleDatasetMetas();for(let e=0;e=0;--t){const n=o[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&$o(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;n&&$o(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&$o(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Yo=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Xo extends Er{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){const r=this;r.maxWidth=e,r.maxHeight=t,r._margins=n,r.setDimensions(),r.buildLabels(),r.fit()}setDimensions(){const e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=e._margins.left,e.right=e.width):(e.height=e.maxHeight,e.top=e._margins.top,e.bottom=e.height)}buildLabels(){const e=this,t=e.options.labels||{};let n=x(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((n=>t.filter(n,e.chart.data)))),t.sort&&(n=n.sort(((n,r)=>t.sort(n,r,e.chart.data)))),e.options.reverse&&n.reverse(),e.legendItems=n}fit(){const e=this,{options:t,ctx:n}=e;if(!t.display)return void(e.width=e.height=0);const r=t.labels,o=ct(r.font),a=o.size,i=e._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Yo(r,a);let c,u;n.font=o.string,e.isHorizontal()?(c=e.maxWidth,u=e._fitRows(i,a,s,l)+10):(u=e.maxHeight,c=e._fitCols(i,a,s,l)+10),e.width=Math.min(c,t.maxWidth||e.maxWidth),e.height=Math.min(u,t.maxHeight||e.maxHeight)}_fitRows(e,t,n,r){const o=this,{ctx:a,maxWidth:i,options:{labels:{padding:s}}}=o,l=o.legendHitBoxes=[],c=o.lineWidths=[0],u=r+s;let f=e;a.textAlign="left",a.textBaseline="middle";let d=-1,p=-u;return o.legendItems.forEach(((e,o)=>{const h=n+t/2+a.measureText(e.text).width;(0===o||c[c.length-1]+h+2*s>i)&&(f+=u,c[c.length-(o>0?0:1)]=0,p+=u,d++),l[o]={left:0,top:p,row:d,width:h,height:r},c[c.length-1]+=h+s})),f}_fitCols(e,t,n,r){const o=this,{ctx:a,maxHeight:i,options:{labels:{padding:s}}}=o,l=o.legendHitBoxes=[],c=o.columnSizes=[],u=i-e;let f=s,d=0,p=0,h=0,g=0;return o.legendItems.forEach(((e,o)=>{const i=n+t/2+a.measureText(e.text).width;o>0&&p+r+2*s>u&&(f+=d+s,c.push({width:d,height:p}),h+=d+s,g++,d=p=0),l[o]={left:h,top:p,col:g,width:i,height:r},d=Math.max(d,i),p+=r+s})),f+=d,c.push({width:d,height:p}),f}adjustHitBoxes(){const e=this;if(!e.options.display)return;const t=e._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:a}}=e,i=Kt(a,e.left,e.width);if(this.isHorizontal()){let a=0,s=u(r,e.left+o,e.right-e.lineWidths[a]);for(const l of n)a!==l.row&&(a=l.row,s=u(r,e.left+o,e.right-e.lineWidths[a])),l.top+=e.top+t+o,l.left=i.leftForLtr(i.x(s),l.width),s+=l.width+o}else{let a=0,s=u(r,e.top+t+o,e.bottom-e.columnSizes[a].height);for(const l of n)l.col!==a&&(a=l.col,s=u(r,e.top+t+o,e.bottom-e.columnSizes[a].height)),l.top=s,l.left+=e.left+o,l.left=i.leftForLtr(i.x(l.left),l.width),s+=l.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const e=this;if(e.options.display){const t=e.ctx;Ye(t,e),e._draw(),Xe(t)}}_draw(){const e=this,{options:t,columnSizes:n,lineWidths:r,ctx:o}=e,{align:a,labels:i}=t,s=Ue.color,l=Kt(t.rtl,e.left,e.width),c=ct(i.font),{color:f,padding:d}=i,p=c.size,h=p/2;let g;e.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:m,boxHeight:v,itemHeight:b}=Yo(i,p),x=e.isHorizontal(),w=this._computeTitleHeight();g=x?{x:u(a,e.left+d,e.right-r[0]),y:e.top+d+w,line:0}:{x:e.left+d,y:u(a,e.top+w+d,e.bottom-n[0].height),line:0},Jt(e.ctx,t.textDirection);const k=b+d;e.legendItems.forEach(((_,S)=>{o.strokeStyle=_.fontColor||f,o.fillStyle=_.fontColor||f;const E=o.measureText(_.text).width,C=l.textAlign(_.textAlign||(_.textAlign=i.textAlign)),M=m+h+E;let L=g.x,O=g.y;l.setWidth(e.width),x?S>0&&L+M+d>e.right&&(O=g.y+=k,g.line++,L=g.x=u(a,e.left+d,e.right-r[g.line])):S>0&&O+k>e.bottom&&(L=g.x=L+n[g.line].width+d,g.line++,O=g.y=u(a,e.top+w+d,e.bottom-n[g.line].height)),function(e,t,n){if(isNaN(m)||m<=0||isNaN(v)||v<0)return;o.save();const r=y(n.lineWidth,1);if(o.fillStyle=y(n.fillStyle,s),o.lineCap=y(n.lineCap,"butt"),o.lineDashOffset=y(n.lineDashOffset,0),o.lineJoin=y(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=y(n.strokeStyle,s),o.setLineDash(y(n.lineDash,[])),i.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},i=l.xPlus(e,m/2);$e(o,a,i,t+h)}else{const a=t+Math.max((p-v)/2,0),i=l.leftForLtr(e,m),s=st(n.borderRadius);o.beginPath(),Object.values(s).some((e=>0!==e))?tt(o,{x:i,y:a,w:m,h:v,radius:s}):o.rect(i,a,m,v),o.fill(),0!==r&&o.stroke()}o.restore()}(l.x(L),O,_),L=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(C,L+m+h,x?L+M:e.right,t.rtl),function(e,t,n){Je(o,n.text,e,t+b/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(L),O,_),x?g.x+=M+d:g.y+=k})),en(e.ctx,t.textDirection)}drawTitle(){const e=this,t=e.options,n=t.title,r=ct(n.font),o=lt(n.padding);if(!n.display)return;const a=Kt(t.rtl,e.left,e.width),i=e.ctx,s=n.position,l=r.size/2,f=o.top+l;let d,p=e.left,h=e.width;if(this.isHorizontal())h=Math.max(...e.lineWidths),d=e.top+f,p=u(t.align,p,e.right-h);else{const n=e.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);d=f+u(t.align,e.top,e.bottom-n-t.labels.padding-e._computeTitleHeight())}const g=u(s,p,p+h);i.textAlign=a.textAlign(c(s)),i.textBaseline="middle",i.strokeStyle=n.color,i.fillStyle=n.color,i.font=r.string,Je(i,n.text,g,d,r)}_computeTitleHeight(){const e=this.options.title,t=ct(e.font),n=lt(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){const n=this;let r,o,a;if(e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom)for(a=n.legendHitBoxes,r=0;r=o.left&&e<=o.left+o.width&&t>=o.top&&t<=o.top+o.height)return n.legendItems[r];return null}handleEvent(e){const t=this,n=t.options;if(!function(e,t){return!("mousemove"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}(e.type,n))return;const r=t._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){const i=t._hoveredItem,s=(a=r,null!==(o=i)&&null!==a&&o.datasetIndex===a.datasetIndex&&o.index===a.index);i&&!s&&x(n.onLeave,[e,i,t],t),t._hoveredItem=r,r&&!s&&x(n.onHover,[e,r,t],t)}else r&&x(n.onClick,[e,r,t],t);var o,a}}var Qo={id:"legend",_element:Xo,start(e,t,n){const r=e.legend=new Xo({ctx:e.ctx,options:n,chart:e});cr.configure(e,r,n),cr.addBox(e,r)},stop(e){cr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;cr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:a}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const i=e.controller.getStyle(n?0:void 0),s=lt(i.borderWidth);return{text:t[e.index].label,fillStyle:i.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:i.borderColor,pointStyle:r||i.pointStyle,rotation:i.rotation,textAlign:o||i.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Ko extends Er{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this,r=n.options;if(n.left=0,n.top=0,!r.display)return void(n.width=n.height=n.right=n.bottom=0);n.width=n.right=e,n.height=n.bottom=t;const o=h(r.text)?r.text.length:1;n._padding=lt(r.padding);const a=o*ct(r.font).lineHeight+n._padding.height;n.isHorizontal()?n.height=a:n.width=a}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:a}=this,i=a.align;let s,l,c,f=0;return this.isHorizontal()?(l=u(i,n,o),c=t+e,s=o-n):("left"===a.position?(l=n+e,c=u(i,r,t),f=-.5*j):(l=o-e,c=u(i,t,r),f=.5*j),s=r-t),{titleX:l,titleY:c,maxWidth:s,rotation:f}}draw(){const e=this,t=e.ctx,n=e.options;if(!n.display)return;const r=ct(n.font),o=r.lineHeight/2+e._padding.top,{titleX:a,titleY:i,maxWidth:s,rotation:l}=e._drawArgs(o);Je(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:l,textAlign:c(n.align),textBaseline:"middle",translation:[a,i]})}}var Jo={id:"title",_element:Ko,start(e,t,n){!function(e,t){const n=new Ko({ctx:e.ctx,options:t,chart:e});cr.configure(e,n,t),cr.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;cr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;cr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ea=new WeakMap;var ta={id:"subtitle",start(e,t,n){const r=new Ko({ctx:e.ctx,options:n,chart:e});cr.configure(e,r,n),cr.addBox(e,r),ea.set(e,r)},stop(e){cr.removeBox(e,ea.get(e)),ea.delete(e)},beforeUpdate(e,t,n){const r=ea.get(e);cr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const na={average(e){if(!e.length)return!1;let t,n,r=0,o=0,a=0;for(t=0,n=e.length;t-1?e.split("\n"):e}function aa(e,t){const{element:n,datasetIndex:r,index:o}=t,a=e.getDatasetMeta(r).controller,{label:i,value:s}=a.getLabelAndValue(o);return{chart:e,label:i,parsed:a.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ia(e,t){const n=e._chart.ctx,{body:r,footer:o,title:a}=e,{boxWidth:i,boxHeight:s}=t,l=ct(t.bodyFont),c=ct(t.titleFont),u=ct(t.footerFont),f=a.length,d=o.length,p=r.length,h=lt(t.padding);let g=h.height,m=0,v=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);v+=e.beforeBody.length+e.afterBody.length,f&&(g+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),v&&(g+=p*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*t.bodySpacing),d&&(g+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let y=0;const b=function(e){m=Math.max(m,n.measureText(e).width+y)};return n.save(),n.font=c.string,w(e.title,b),n.font=l.string,w(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?i+2:0,w(r,(e=>{w(e.before,b),w(e.lines,b),w(e.after,b)})),y=0,n.font=u.string,w(e.footer,b),n.restore(),m+=h.width,{width:m,height:g}}function sa(e,t,n,r){const{x:o,width:a}=n,{width:i,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=i-a/2&&(c="right"),function(e,t,n,r){const{x:o,width:a}=r,i=n.caretSize+n.caretPadding;return"left"===e&&o+a+i>t.width||"right"===e&&o-a-i<0||void 0}(c,e,t,n)&&(c="center"),c}function la(e,t,n){const r=t.yAlign||function(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}(e,n);return{xAlign:t.xAlign||sa(e,t,n,r),yAlign:r}}function ca(e,t,n,r){const{caretSize:o,caretPadding:a,cornerRadius:i}=e,{xAlign:s,yAlign:l}=n,c=o+a,u=i+a;let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const d=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=u:"right"===s&&(f+=u),{x:te(f,0,r.width-t.width),y:te(d,0,r.height-t.height)}}function ua(e,t,n){const r=lt(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function fa(e){return ra([],oa(e))}function da(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class pa extends Er{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this,t=e._cachedAnimations;if(t)return t;const n=e._chart,r=e.options.setContext(e.getContext()),o=r.enabled&&n.options.animation&&r.animations,a=new pn(e._chart,o);return o._cacheable&&(e._cachedAnimations=Object.freeze(a)),a}getContext(){const e=this;return e.$context||(e.$context=(t=e._chart.getContext(),n=e,r=e._tooltipItems,Object.assign(Object.create(t),{tooltip:n,tooltipItems:r,type:"tooltip"})));var t,n,r}getTitle(e,t){const n=this,{callbacks:r}=t,o=r.beforeTitle.apply(n,[e]),a=r.title.apply(n,[e]),i=r.afterTitle.apply(n,[e]);let s=[];return s=ra(s,oa(o)),s=ra(s,oa(a)),s=ra(s,oa(i)),s}getBeforeBody(e,t){return fa(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const n=this,{callbacks:r}=t,o=[];return w(e,(e=>{const t={before:[],lines:[],after:[]},a=da(r,e);ra(t.before,oa(a.beforeLabel.call(n,e))),ra(t.lines,a.label.call(n,e)),ra(t.after,oa(a.afterLabel.call(n,e))),o.push(t)})),o}getAfterBody(e,t){return fa(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const n=this,{callbacks:r}=t,o=r.beforeFooter.apply(n,[e]),a=r.footer.apply(n,[e]),i=r.afterFooter.apply(n,[e]);let s=[];return s=ra(s,oa(o)),s=ra(s,oa(a)),s=ra(s,oa(i)),s}_createItems(e){const t=this,n=t._active,r=t._chart.data,o=[],a=[],i=[];let s,l,c=[];for(s=0,l=n.length;se.filter(t,n,o,r)))),e.itemSort&&(c=c.sort(((t,n)=>e.itemSort(t,n,r)))),w(c,(n=>{const r=da(e.callbacks,n);o.push(r.labelColor.call(t,n)),a.push(r.labelPointStyle.call(t,n)),i.push(r.labelTextColor.call(t,n))})),t.labelColors=o,t.labelPointStyles=a,t.labelTextColors=i,t.dataPoints=c,c}update(e,t){const n=this,r=n.options.setContext(n.getContext()),o=n._active;let a,i=[];if(o.length){const e=na[r.position].call(n,o,n._eventPosition);i=n._createItems(r),n.title=n.getTitle(i,r),n.beforeBody=n.getBeforeBody(i,r),n.body=n.getBody(i,r),n.afterBody=n.getAfterBody(i,r),n.footer=n.getFooter(i,r);const t=n._size=ia(n,r),s=Object.assign({},e,t),l=la(n._chart,r,s),c=ca(r,s,l,n._chart);n.xAlign=l.xAlign,n.yAlign=l.yAlign,a={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==n.opacity&&(a={opacity:0});n._tooltipItems=i,n.$context=void 0,a&&n._resolveAnimations().update(n,a),e&&r.external&&r.external.call(n,{chart:n._chart,tooltip:n,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{cornerRadius:a,caretSize:i}=n,{x:s,y:l}=e,{width:c,height:u}=t;let f,d,p,h,g,m;return"center"===o?(g=l+u/2,"left"===r?(f=s,d=f-i,h=g+i,m=g-i):(f=s+c,d=f+i,h=g-i,m=g+i),p=f):(d="left"===r?s+a+i:"right"===r?s+c-a-i:this.caretX,"top"===o?(h=l,g=h-i,f=d-i,p=d+i):(h=l+u,g=h+i,f=d+i,p=d-i),m=h),{x1:f,x2:d,x3:p,y1:h,y2:g,y3:m}}drawTitle(e,t,n){const r=this,o=r.title,a=o.length;let i,s,l;if(a){const c=Kt(n.rtl,r.x,r.width);for(e.x=ua(r,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline="middle",i=ct(n.titleFont),s=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,l=0;l0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,tt(e,{x:t,y:h,w:c,h:l,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),tt(e,{x:n,y:h+1,w:c-2,h:l-2,radius:a}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,h,c,l),e.strokeRect(t,h,c,l),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,c-2,l-2))}e.fillStyle=a.labelTextColors[n]}drawBody(e,t,n){const r=this,{body:o}=r,{bodySpacing:a,bodyAlign:i,displayColors:s,boxHeight:l,boxWidth:c}=n,u=ct(n.bodyFont);let f=u.lineHeight,d=0;const p=Kt(n.rtl,r.x,r.width),h=function(n){t.fillText(n,p.x(e.x+d),e.y+f/2),e.y+=f+a},g=p.textAlign(i);let m,v,y,b,x,k,_;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=ua(r,g,n),t.fillStyle=n.bodyColor,w(r.beforeBody,h),d=s&&"right"!==g?"center"===i?c/2+1:c+2:0,b=0,k=o.length;b0&&t.stroke()}_updateAnimationTarget(e){const t=this,n=t._chart,r=t.$animations,o=r&&r.x,a=r&&r.y;if(o||a){const r=na[e.position].call(t,t._active,t._eventPosition);if(!r)return;const i=t._size=ia(t,e),s=Object.assign({},r,t._size),l=la(n,e,s),c=ca(e,s,l,n);o._to===c.x&&a._to===c.y||(t.xAlign=l.xAlign,t.yAlign=l.yAlign,t.width=i.width,t.height=i.height,t.caretX=r.x,t.caretY=r.y,t._resolveAnimations().update(t,c))}}draw(e){const t=this,n=t.options.setContext(t.getContext());let r=t.opacity;if(!r)return;t._updateAnimationTarget(n);const o={width:t.width,height:t.height},a={x:t.x,y:t.y};r=Math.abs(r)<.001?0:r;const i=lt(n.padding),s=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,t.drawBackground(a,e,o,n),Jt(e,n.textDirection),a.y+=i.top,t.drawTitle(a,e,n),t.drawBody(a,e,n),t.drawFooter(a,e,n),en(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this,r=n._active,o=e.map((({datasetIndex:e,index:t})=>{const r=n._chart.getDatasetMeta(e);if(!r)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:r.data[t],index:t}})),a=!k(r,o),i=n._positionChanged(o,t);(a||i)&&(n._active=o,n._eventPosition=t,n.update(!0))}handleEvent(e,t){const n=this,r=n.options,o=n._active||[];let a=!1,i=[];"mouseout"!==e.type&&(i=n._chart.getElementsAtEventForMode(e,r.mode,r,t),r.reverse&&i.reverse());const s=n._positionChanged(i,e);return a=t||!k(i,o)||s,a&&(n._active=i,(r.enabled||r.external)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0,t))),a}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,a=na[o.position].call(this,e,t);return!1!==a&&(n!==a.x||r!==a.y)}}pa.positioners=na;var ha={id:"tooltip",_element:pa,positioners:na,afterInit(e,t,n){n&&(e.tooltip=new pa({_chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:f,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ga=Object.freeze({__proto__:null,Decimation:To,Filler:qo,Legend:Qo,SubTitle:ta,Title:Jo,Tooltip:ha});class ma extends Rr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,t){if(p(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:te(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n){const r=e.indexOf(t);return-1===r?((e,t,n)=>"string"==typeof t?e.push(t)-1:isNaN(t)?null:n)(e,t,n):r!==e.lastIndexOf(t)?n:r}(n,e,y(t,e)),n.length-1)}determineDataLimits(){const e=this,{minDefined:t,maxDefined:n}=e.getUserBounds();let{min:r,max:o}=e.getMinMax(!0);"ticks"===e.options.bounds&&(t||(r=0),n||(o=e.getLabels().length-1)),e.min=r,e.max=o}buildTicks(){const e=this,t=e.min,n=e.max,r=e.options.offset,o=[];let a=e.getLabels();a=0===t&&n===a.length-1?a:a.slice(t,n+1),e._valueRange=Math.max(a.length-(r?0:1),1),e._startValue=e.min-(r?.5:0);for(let e=t;e<=n;e++)o.push({value:e});return o}getLabelForValue(e){const t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){const t=this;return Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange)}getBasePixel(){return this.bottom}}function va(e,t,{horizontal:n,minRotation:r}){const o=q(r),a=(n?Math.sin(o):Math.cos(o))||.001,i=.75*t*(""+e).length;return Math.min(t/a,i)}ma.id="category",ma.defaults={ticks:{callback:ma.prototype.getLabelForValue}};class ya extends Rr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return p(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const e=this,{beginAtZero:t}=e.options,{minDefined:n,maxDefined:r}=e.getUserBounds();let{min:o,max:a}=e;const i=e=>o=n?o:e,s=e=>a=r?a:e;if(t){const e=B(o),t=B(a);e<0&&t<0?s(0):e>0&&t>0&&i(0)}if(o===a){let e=1;(a>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*a)),s(a+e),t||i(o-e)}e.min=o,e.max=a}getTickLimit(){const e=this,t=e.options.ticks;let n,{maxTicksLimit:r,stepSize:o}=t;return o?n=Math.ceil(e.max/o)-Math.floor(e.min/o)+1:(n=e.computeTickLimit(),r=r||11),r&&(n=Math.min(r,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this,t=e.options,n=t.ticks;let r=e.getTickLimit();r=Math.max(2,r);const o=function(e,t){const n=[],{bounds:r,step:o,min:a,max:i,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:f}=e,d=o||1,h=c-1,{min:g,max:m}=t,v=!p(a),y=!p(i),b=!p(l),x=(m-g)/(u+1);let w,k,_,S,E=W((m-g)/h/d)*d;if(E<1e-14&&!v&&!y)return[{value:g},{value:m}];S=Math.ceil(m/E)-Math.floor(g/E),S>h&&(E=W(S*E/h/d)*d),p(s)||(w=Math.pow(10,s),E=Math.ceil(E*w)/w),"ticks"===r?(k=Math.floor(g/E)*E,_=Math.ceil(m/E)*E):(k=g,_=m),v&&y&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((i-a)/o,E/1e3)?(S=Math.round(Math.min((i-a)/E,c)),E=(i-a)/S,k=a,_=i):b?(k=v?a:k,_=y?i:_,S=l-1,E=(_-k)/S):(S=(_-k)/E,S=Z(S,Math.round(S),E/1e3)?Math.round(S):Math.ceil(S));const C=Math.max(X(E),X(k));w=Math.pow(10,p(s)?C:s),k=Math.round(k*w)/w,_=Math.round(_*w)/w;let M=0;for(v&&(f&&k!==a?(n.push({value:a}),k0?n:null;this._zero=!0}determineDataLimits(){const e=this,{min:t,max:n}=e.getMinMax(!0);e.min=m(t)?Math.max(0,t):null,e.max=m(n)?Math.max(0,n):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}handleTickRangeOptions(){const e=this,{minDefined:t,maxDefined:n}=e.getUserBounds();let r=e.min,o=e.max;const a=e=>r=t?r:e,i=e=>o=n?o:e,s=(e,t)=>Math.pow(10,Math.floor(U(e))+t);r===o&&(r<=0?(a(1),i(10)):(a(s(r,-1)),i(s(o,1)))),r<=0&&a(s(o,-1)),o<=0&&i(s(r,1)),e._zero&&e.min!==e._suggestedMin&&r===s(e.min,0)&&a(s(r,-1)),e.min=r,e.max=o}buildTicks(){const e=this,t=e.options,n=function(e,t){const n=Math.floor(U(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),o=[];let a=v(e.min,Math.pow(10,Math.floor(U(t.min)))),i=Math.floor(U(a)),s=Math.floor(a/Math.pow(10,i)),l=i<0?Math.pow(10,Math.abs(i)):1;do{o.push({value:a,major:xa(a)}),++s,10===s&&(s=1,++i,l=i>=0?1:l),a=Math.round(s*Math.pow(10,i)*l)/l}while(io?{start:t-n,end:t}:{start:t,end:t+n}}function Sa(e){return 0===e||180===e?"center":e<180?"left":"right"}function Ea(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function Ca(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,R);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let a=1;a{const r=x(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""}))}fit(){const e=this,t=e.options;t.display&&t.pointLabels.display?function(e){const t={l:0,r:e.width,t:0,b:e.height-e.paddingTop},n={},r=[],o=[],a=e.getLabels().length;for(let c=0;ct.r&&(t.r=m.end,n.r=p),v.startt.b&&(t.b=v.end,n.b=p)}var i,s,l;e._setReductions(e.drawingArea,t,n),e._pointLabelItems=function(e,t,n){const r=[],o=e.getLabels().length,a=e.options,i=ka(a),s=e.getDistanceFromCenterForValue(a.ticks.reverse?e.min:e.max);for(let a=0;a=0&&e=0;o--){const t=r.setContext(e.getPointLabelContext(o)),a=ct(t.font),{x:i,y:s,textAlign:l,left:c,top:u,right:f,bottom:d}=e._pointLabelItems[o],{backdropColor:h}=t;if(!p(h)){const e=lt(t.backdropPadding);n.fillStyle=h,n.fillRect(c-e.left,u-e.top,f-c+e.width,d-u+e.height)}Je(n,e._pointLabels[o],i,s+a.lineHeight/2,a,{color:t.color,textAlign:l,textBaseline:"middle"})}}(e,a),o.display&&e.ticks.forEach(((t,n)=>{if(0!==n){s=e.getDistanceFromCenterForValue(t.value);const r=o.setContext(e.getContext(n-1));!function(e,t,n,r){const o=e.ctx,a=t.circular,{color:i,lineWidth:s}=t;!a&&!r||!i||!s||n<0||(o.save(),o.strokeStyle=i,o.lineWidth=s,o.setLineDash(t.borderDash),o.lineDashOffset=t.borderDashOffset,o.beginPath(),Ca(e,n,a,r),o.closePath(),o.stroke(),o.restore())}(e,r,s,a)}})),r.display){for(t.save(),i=e.getLabels().length-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),{color:a,lineWidth:c}=o;c&&a&&(t.lineWidth=c,t.strokeStyle=a,t.setLineDash(o.borderDash),t.lineDashOffset=o.borderDashOffset,s=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),l=e.getPointPosition(i,s),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const e=this,t=e.ctx,n=e.options,r=n.ticks;if(!r.display)return;const o=e.getIndexAngle(0);let a,i;t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach(((o,s)=>{if(0===s&&!n.reverse)return;const l=r.setContext(e.getContext(s)),c=ct(l.font);if(a=e.getDistanceFromCenterForValue(e.ticks[s].value),l.showLabelBackdrop){t.font=c.string,i=t.measureText(o.label).width,t.fillStyle=l.backdropColor;const e=lt(l.backdropPadding);t.fillRect(-i/2-e.left,-a-c.size/2-e.top,i+e.width,c.size+e.height)}Je(t,o.label,0,-a,c,{color:l.color})})),t.restore()}drawTitle(){}}La.id="radialLinear",La.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Mr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5}},La.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},La.descriptors={angleLines:{_fallback:"grid"}};const Oa={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Pa=Object.keys(Oa);function Aa(e,t){return e-t}function Ta(e,t){if(p(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:a}=e._parseOpts;let i=t;return"function"==typeof r&&(i=r(i)),m(i)||(i="string"==typeof r?n.parse(i,r):n.parse(i)),null===i?null:(o&&(i="week"!==o||!V(a)&&!0!==a?n.startOf(i,o):n.startOf(i,"isoWeek",a)),+i)}function Ia(e,t,n,r){const o=Pa.length;for(let a=Pa.indexOf(e);a=t?n[r]:n[o]]=!0}}else e[t]=!0}function Ra(e,t,n){const r=[],o={},a=t.length;let i,s;for(i=0;i=0&&(t[l].major=!0);return t}(e,r,o,n):r}class Da extends Rr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),r=this._adapter=new Wn._date(e.adapters.date);M(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Ta(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this,t=e.options,n=e._adapter,r=t.time.unit||"day";let{min:o,max:a,minDefined:i,maxDefined:s}=e.getUserBounds();function l(e){i||isNaN(e.min)||(o=Math.min(o,e.min)),s||isNaN(e.max)||(a=Math.max(a,e.max))}i&&s||(l(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(e.getMinMax(!1))),o=m(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),a=m(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,e.min=Math.min(o,a-1),e.max=Math.max(o+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this,t=e.options,n=t.time,r=t.ticks,o="labels"===r.source?e.getLabelTimestamps():e._generate();"ticks"===t.bounds&&o.length&&(e.min=e._userMin||o[0],e.max=e._userMax||o[o.length-1]);const a=e.min,i=function(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o=Pa.indexOf(n);a--){const n=Pa[a];if(Oa[n].common&&e._adapter.diff(o,r,n)>=t-1)return n}return Pa[n?Pa.indexOf(n):0]}(e,i.length,n.minUnit,e.min,e.max)),e._majorUnit=r.major.enabled&&"year"!==e._unit?function(e){for(let t=Pa.indexOf(e)+1,n=Pa.length;t1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+i);const h="data"===o.ticks.source&&e.getDataTimestamps();for(f=p,d=0;fe-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}_tickFormatFunction(e,t,n,r){const o=this,a=o.options,i=a.time.displayFormats,s=o._unit,l=o._majorUnit,c=s&&i[s],u=l&&i[l],f=n[t],d=l&&u&&f&&f.major,p=o._adapter.format(e,r||(d?u:c)),h=a.ticks.callback;return h?x(h,[p,t,n],o):p}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?s:1}getDataTimestamps(){const e=this;let t,n,r=e._cache.data||[];if(r.length)return r;const o=e.getMatchingVisibleMetas();if(e._normalized&&o.length)return e._cache.data=o[0].controller.getAllParsedValues(e);for(t=0,n=o.length;t=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=dt(e,"pos",t)),({pos:r,time:a}=e[s]),({pos:o,time:i}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=dt(e,"time",t)),({time:r,pos:a}=e[s]),({time:o,pos:i}=e[l]));const c=o-r;return c?a+(i-a)*(t-r)/c:a}Da.id="time",Da.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Ha extends Da{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this,t=e._getTimestampsForTable(),n=e._table=e.buildLookupTable(t);e._minPos=Na(n,e.min),e._tableRange=Na(n,e.max)-e._minPos,super.initOffsets(t)}buildLookupTable(e){const{min:t,max:n}=this,r=[],o=[];let a,i,s,l,c;for(a=0,i=e.length;a=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,i=r.length;a=0||(o[n]=e[n]);return o}var Ya=(0,o.forwardRef)((function(e,t){var n=e.id,r=e.className,a=e.height,i=void 0===a?150:a,s=e.width,l=void 0===s?300:s,c=e.redraw,u=void 0!==c&&c,f=e.type,d=e.data,p=e.options,h=void 0===p?{}:p,g=e.plugins,m=void 0===g?[]:g,v=e.getDatasetAtEvent,y=e.getElementAtEvent,b=e.getElementsAtEvent,x=e.fallbackContent,w=qa(e,["id","className","height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent"]),k=(0,o.useRef)(null),_=(0,o.useMemo)((function(){return"function"==typeof d?k.current?d(k.current):{}:Ua()({},d)}),[d,k.current]),S=(0,o.useState)(),E=S[0],C=S[1];(0,o.useImperativeHandle)(t,(function(){return E}),[E]);var M=function(){k.current&&C(new Fa(k.current,{type:f,data:_,options:h,plugins:m}))},L=function(){E&&E.destroy()};return(0,o.useEffect)((function(){return M(),function(){return L()}}),[]),(0,o.useEffect)((function(){u?(L(),setTimeout((function(){M()}),0)):function(){if(E){if(h&&(E.options=$a({},h)),!E.config.data)return E.config.data=_,void E.update();var e=_.datasets,t=void 0===e?[]:e,n=qa(_,["datasets"]),r=E.config.data.datasets,o=void 0===r?[]:r;Wa()(E.config.data,n),E.config.data.datasets=t.map((function(e){var t=Za()(o,(function(t){return t.label===e.label&&t.type===e.type}));return t&&e.data?(t.data?t.data.length=e.data.length:t.data=[],Wa()(t.data,e.data),$a({},t,e,{data:t.data})):e})),E.update()}}()}),[e,_]),o.createElement("canvas",Object.assign({},w,{height:i,width:l,ref:k,id:n,className:r,onClick:function(e){E&&(v&&v(E.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1),e),y&&y(E.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),e),b&&b(E.getElementsAtEventForMode(e,"index",{intersect:!0},!1),e))},"data-testid":"canvas",role:"img"}),x)})),Xa=(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"line",ref:t,options:e.options||{}}))}));(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"bar",ref:t,options:e.options||{}}))})),(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"radar",ref:t,options:e.options||{}}))})),(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"doughnut",ref:t,options:e.options||{}}))})),(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"polarArea",ref:t,options:e.options||{}}))})),(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"bubble",ref:t,options:e.options||{}}))})),(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"pie",ref:t,options:e.options||{}}))})),(0,o.forwardRef)((function(e,t){return o.createElement(Ya,Object.assign({},e,{type:"scatter",ref:t,options:e.options||{}}))}));var Qa,Ka=n(22892),Ja=n(25625),ei=n(57043),ti=n(26298),ni=n(8441),ri=n(31601),oi=n(12504);function ai(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 ii(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&hi(n[r-1],t),a=hi(e,t);return a&&o?{tx_diff:a.dsrn_txbytes-o.dsrn_txbytes,rx_diff:a.dsrn_rxbytes-o.dsrn_rxbytes,at:e.at}:{tx_diff:0,rx_diff:0,at:e.at}})).slice(1)}),[n]),a=(0,o.useMemo)((function(){return{labels:r.map((function(e){var t=Math.round(((new Date).getTime()-e.at.getTime())/1e3);return 0==t?"Now":"-".concat(t,"s")})),datasets:[{label:"Tx",yAxisID:"TX",data:r.map((function(e){return e.tx_diff})),backgroundColor:ui,borderColor:ui,pointRadius:0},{label:"Rx",yAxisID:"RX",data:r.map((function(e){return e.rx_diff})),backgroundColor:fi,borderColor:fi,pointRadius:0}]}}),[r]);return o.createElement(Ka.ZP,{title:o.createElement(Ka.bK,{icon:o.createElement(i,null),title:t})},r.length>2?o.createElement(Xa,{data:a,options:di,plugins:pi}):o.createElement(ri.Z,{text:"Crunching the latest data, just for you. Hang tight..."}))}ci(gi,"useStatsHistory{stats}\nuseMemo{data}\nuseMemo{lineData}",(function(){return[oi.Dm]}));var mi,vi,yi=(0,ni.ZP)(ei.ZP).withConfig({displayName:"StatsGraph__StatsModal",componentId:"sc-1mtxrkt-0"})(["min-width:60%;"]);function bi(e){var t,n,r=e.intName,a=e.style,s=void 0===a?{}:a,l=e.iconStyle,c=void 0===l?{}:l,u=(t=(0,ei.dd)(),n=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(t,n)||function(e,t){if(e){if("string"==typeof e)return li(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)?li(e,t):void 0}}(t,n)||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.")}()),f=u[0],d=u[1],p=u[2];return o.createElement(o.Fragment,null,o.createElement(Ja.Q,{onClick:function(e){e.stopPropagation(),d()},style:ii(ii({},s),{},{marginRight:".5em"})},o.createElement(i,{style:c})),f&&o.createElement(yi,{close:p},o.createElement(gi,{intName:r})))}ci(bi,"useModal{[modal, open, close]}",(function(){return[ei.dd]})),(mi="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(mi.register(ui,"txRgb","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(fi,"rxRgb","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(di,"options","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(pi,"plugins","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(hi,"getTrafficStat","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(gi,"StatsGraph","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(yi,"StatsModal","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx"),mi.register(bi,"StatsGraphButton","/workspace/dplane/ui/src/components/Interfaces/StatsGraph.tsx")),(vi="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&vi(e)},30688:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r,o=n(27378),a=n(8441),i=n(13698),s=n(70611),l=n(79237),c=n(57043);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var u,f,d=a.ZP.div.withConfig({displayName:"Layout__Root",componentId:"sirtjv-0"})(["width:100%;min-height:100%;display:flex;"]),p=a.ZP.div.withConfig({displayName:"Layout__Container",componentId:"sirtjv-1"})(["display:flex;flex-direction:column;flex:1;width:100%;min-height:100%;background:#eeeef1;@media ","{flex-direction:row;}"],i.U.tablet),h=a.ZP.div.withConfig({displayName:"Layout__Body",componentId:"sirtjv-2"})(["width:100%;min-height:100%;display:flex;flex-direction:row;justify-content:center;overflow:hidden;"]),g=a.ZP.div.withConfig({displayName:"Layout__InnerBody",componentId:"sirtjv-3"})(["max-width:100%;flex:1;margin-top:2em;overflow:hidden;@media ","{max-width:min(100%,",");margin:2em;}"],i.U.tablet,i.d.tablet);function m(e){var t=e.children;return o.createElement(a.f6,{theme:{primary:"#277db0"}},o.createElement(d,null,o.createElement(c.gk,null,o.createElement(s.Z,null),o.createElement(p,null,o.createElement(l.Z,null),o.createElement(h,null,o.createElement(g,null,t))))))}(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(u.register(d,"Root","/workspace/dplane/ui/src/components/Layout.tsx"),u.register(p,"Container","/workspace/dplane/ui/src/components/Layout.tsx"),u.register(h,"Body","/workspace/dplane/ui/src/components/Layout.tsx"),u.register(g,"InnerBody","/workspace/dplane/ui/src/components/Layout.tsx"),u.register(m,"Layout","/workspace/dplane/ui/src/components/Layout.tsx")),(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&f(e)},79237:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(27378),o=n(8441),a=n(13698),i=n(29603),s=n(85719),l=r.forwardRef((function(e,t){return r.createElement(s.r,(0,i.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M80 160h352M80 256h352M80 352h352"}))}));l.displayName="Menu";var c=r.forwardRef((function(e,t){return r.createElement(s.r,(0,i.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M461.81 53.81a4.4 4.4 0 00-3.3-3.39c-54.38-13.3-180 34.09-248.13 102.17a294.9 294.9 0 00-33.09 39.08c-21-1.9-42-.3-59.88 7.5-50.49 22.2-65.18 80.18-69.28 105.07a9 9 0 009.8 10.4l81.07-8.9a180.29 180.29 0 001.1 18.3 18.15 18.15 0 005.3 11.09l31.39 31.39a18.15 18.15 0 0011.1 5.3 179.91 179.91 0 0018.19 1.1l-8.89 81a9 9 0 0010.39 9.79c24.9-4 83-18.69 105.07-69.17 7.8-17.9 9.4-38.79 7.6-59.69a293.91 293.91 0 0039.19-33.09c68.38-68 115.47-190.86 102.37-247.95zM298.66 213.67a42.7 42.7 0 1160.38 0 42.65 42.65 0 01-60.38 0z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M109.64 352a45.06 45.06 0 00-26.35 12.84C65.67 382.52 64 448 64 448s65.52-1.67 83.15-19.31A44.73 44.73 0 00160 402.32"}))}));c.displayName="Rocket";var u=r.forwardRef((function(e,t){return r.createElement(s.r,(0,i.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("circle",{cx:256,cy:256.02,r:32}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M184.25 192.25a96 96 0 000 127.52m143.52 0a96 96 0 000-127.52m-194.49-50.97a168 168 0 000 229.44m245.44 0a168 168 0 000-229.44M435 416a240.34 240.34 0 000-320M77 96a240.34 240.34 0 000 320"}))}));u.displayName="Radio";var f=r.forwardRef((function(e,t){return r.createElement(s.r,(0,i.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M370 378c28.89 23.52 46 46.07 46 86m-274-86c-28.89 23.52-46 46.06-46 86m288-256c28.89-23.52 32-56.07 32-96m-288 94c-28.89-23.52-32-54.06-32-94m368 176.13h-80m-256 0H48M256 192v256"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M256 448h0c-70.4 0-128-57.6-128-128v-96.07c0-65.07 57.6-96 128-96h0c70.4 0 128 25.6 128 96V320c0 70.4-57.6 128-128 128z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M179.43 143.52a49.08 49.08 0 01-3.43-15.73A80 80 0 01255.79 48h.42A80 80 0 01336 127.79a41.91 41.91 0 01-3.12 14.3"}))}));f.displayName="Bug";var d,p=n(7156),h=n(4289),g=n(33756);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Mm:()=>y,Dm:()=>b});var r,o=n(27378),a=n(53902),i=n(89589),s=n(63890);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>p});var r,o=n(23602),a=n(8441);function i(e){if("string"==typeof e){switch(e){case"up":return[!0,!0];case"down":return[!1,!1]}return[null,null]}return Array.isArray(e)?e:[e,e]}function s(e){return e[0]==e[1]&&e[0]}function l(e){if(Array.isArray(e)){var t=c(e[0]),n=c(e[1]);return"linear-gradient(\n -45deg,\n ".concat(n," 0%,\n ").concat(n," 50%,\n ").concat(t," 50%,\n ").concat(t," 100%\n );")}return c(e)}function c(e){switch(e){case!0:return"#53e053";case!1:return"#f95454"}return"#bbbbbb"}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var u=(0,o._j)(.2),f=a.ZP.div.withConfig({displayName:"StatusIcon",componentId:"qj4kf6-0"})(["display:inline-block;width:0.6em;height:0.6em;background:",";box-shadow:0 0 0.3em ",";border-radius:50%;border:1px solid;border-color:",";opacity:0.85;transform:rotate(-45deg);margin:calc(0.2em - 1px) 0;"],(function(e){return l(i(e.status))}),(function(e){return c(s(i(e.status)))}),(function(e){var t=i(e.status),n=u(c(t[0])),r=u(c(t[1]));return"".concat(n," ").concat(r," ").concat(r," ").concat(n)})),d=f;const p=d;var h,g;(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(i,"n","/workspace/dplane/ui/src/components/StatusIcon.tsx"),h.register(s,"ns","/workspace/dplane/ui/src/components/StatusIcon.tsx"),h.register(l,"statusToBackgroundColor","/workspace/dplane/ui/src/components/StatusIcon.tsx"),h.register(c,"statusToColor","/workspace/dplane/ui/src/components/StatusIcon.tsx"),h.register(u,"border","/workspace/dplane/ui/src/components/StatusIcon.tsx"),h.register(f,"StatusIcon","/workspace/dplane/ui/src/components/StatusIcon.tsx"),h.register(d,"default","/workspace/dplane/ui/src/components/StatusIcon.tsx")),(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&g(e)},80091:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(27378),o=n(53902),a=n(85340),i=n(89589),s=n(31601),l=n(22892),c=n(76179),u=n(29603),f=n(85719),d=r.forwardRef((function(e,t){return r.createElement(f.r,(0,u.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("rect",{width:416,height:304,x:48,y:96,fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,rx:32.14,ry:32.14}),r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M16 416h480"}))}));d.displayName="Laptop";var p=r.forwardRef((function(e,t){return r.createElement(f.r,(0,u.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("rect",{width:448,height:320,x:32,y:64,fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,rx:32,ry:32}),r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M304 448l-8-64h-80l-8 64h96z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 448H144"}),r.createElement("path",{d:"M32 304v48a32.09 32.09 0 0032 32h384a32.09 32.09 0 0032-32v-48zm224 64a16 16 0 1116-16 16 16 0 01-16 16z"}))}));p.displayName="Desktop";var h=r.forwardRef((function(e,t){return r.createElement(f.r,(0,u.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("circle",{cx:256,cy:256,r:26}),r.createElement("circle",{cx:346,cy:256,r:26}),r.createElement("circle",{cx:166,cy:256,r:26}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M160 368L32 256l128-112m192 224l128-112-128-112"}))}));h.displayName="CodeWorking";var g=r.forwardRef((function(e,t){return r.createElement(f.r,(0,u.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("circle",{cx:256,cy:256,r:26}),r.createElement("circle",{cx:256,cy:346,r:26}),r.createElement("circle",{cx:256,cy:166,r:26}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"}))}));g.displayName="EllipsisVerticalCircle";var m,v=n(31775),y=n(14645),b=n(26298),x=n(8441);function w(){return(w=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0})),e}),[t]);return o?r.createElement(c.iA,null,r.createElement(c.Et,null,r.createElement(c.TR,null,r.createElement(c.TH,null,"Name"),r.createElement(c.TH,null,"IP"),r.createElement(c.TH,null,"MAC"),r.createElement(c.TH,null,"Tx"),r.createElement(c.TH,null,"Rx"))),r.createElement(c.XP,null,o.map((function(e,t){return r.createElement(c.TR,{key:t,colorRow:t%2==0},r.createElement(c.TD,null,r.createElement("span",{title:e.dsl_device_type},r.createElement(L,{type:e.dsl_device_type,color:e.dsl_state?"#1fae1f":"#464646"}))," ",e.dsl_name),r.createElement(c.TD,null,e.dsl_ipv4),r.createElement(c.TD,{style:{opacity:"00:00:00:00:00:00"==e.dsl_mac_addr?.3:1}},r.createElement("code",null,e.dsl_mac_addr)),r.createElement(c.TD,null,r.createElement(b.Z,{value:e.dsl_txbytes})),r.createElement(c.TD,null,r.createElement(b.Z,{value:e.dsl_rxbytes})))})))):r.createElement("div",{style:{margin:"1em"}},"No devices")}_(O,"useMemo{devices}"),(C="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(C.register(S,"Devices","/workspace/dplane/ui/src/components/System/Devices.tsx"),C.register(E,"DeviceIconInner","/workspace/dplane/ui/src/components/System/Devices.tsx"),C.register(L,"DeviceIcon","/workspace/dplane/ui/src/components/System/Devices.tsx"),C.register(O,"DevicesInner","/workspace/dplane/ui/src/components/System/Devices.tsx")),(M="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&M(e)},7505:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r,o=n(27378),a=n(8441),i=n(7961),s=n(63890);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var l,c,u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},f=a.ZP.table.withConfig({displayName:"Infos__Table",componentId:"sc-1wgp7x4-0"})(["td{padding:0.5em;vertical-align:middle;}td + td{word-break:break-all;}"]);function d(){var e=(0,s.uF)();return o.createElement(o.Fragment,null,o.createElement(f,null,o.createElement("tbody",null,e.edgename.length>0&&o.createElement("tr",null,o.createElement("td",null,o.createElement("b",null,"Edge")),o.createElement("td",null,e.edgename)),o.createElement("tr",null,o.createElement("td",null,o.createElement("b",null,"Status")),o.createElement("td",null,e.status)),o.createElement("tr",null,o.createElement("td",null,o.createElement("b",null,"Software Version")),o.createElement("td",null,e.version)),o.createElement("tr",null,o.createElement("td",null,o.createElement("b",null,"Public Key")),o.createElement("td",null,o.createElement("code",null,e.publicKey))),o.createElement("tr",null,o.createElement("td",null,o.createElement("b",null,"Internet")),o.createElement("td",null,o.createElement(i.Z,{status:e.internetReachable})," ",e.internetReachable?"Reachable":"Not Reachable")))))}u(d,"useSystem{system}",(function(){return[s.uF]})),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(f,"Table","/workspace/dplane/ui/src/components/System/Infos.tsx"),l.register(d,"Infos","/workspace/dplane/ui/src/components/System/Infos.tsx")),(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&c(e)},55176:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(27378),o=n(53902),a=n(85340),i=n(89589),s=n(31601),l=n(22892),c=n(76179),u=n(7961),f=n(29603),d=n(85719),p=r.forwardRef((function(e,t){return r.createElement(d.r,(0,f.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09zM160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"}))}));p.displayName="Layers";var h,g=n(31775),m=n(14645),v=n(26298),y=n(82102);function b(){return(b=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0})),e):[]}),[t]);return o.length?r.createElement(c.iA,null,r.createElement(c.Et,null,r.createElement(c.TR,null,r.createElement(c.TH,null,"Overlay"),r.createElement(c.TH,null,"Remote"),r.createElement(c.TH,null,"Interface"),r.createElement(c.TH,null,"Latency"),r.createElement(c.TH,null,"Txlo"),r.createElement(c.TH,null,"Rxlo"),r.createElement(c.TH,null,"Jitt"),r.createElement(c.TH,null,"Tx"),r.createElement(c.TH,null,"Rx"))),r.createElement(c.XP,null,o.map((function(e,t){return r.createElement(c.TR,{key:t,colorRow:t%2==0},r.createElement(c.TD,{style:{whiteSpace:"nowrap"}},r.createElement(u.Z,{status:[e.dsps_local_up,e.dsps_remote_up]})," ",e.dsps_overlay_ip_name||e.dsps_overlay_ip),r.createElement(c.TD,null,e.dsps_remote_ip),r.createElement(c.TD,null,e.dsps_link),r.createElement(c.TD,{noWrap:!0},e.dsps_latency," ms"),r.createElement(c.TD,null,e.dsps_txloss,"%"),r.createElement(c.TD,null,e.dsps_rxloss,"%"),r.createElement(c.TD,{noWrap:!0},e.dsps_jitter," ms"),r.createElement(c.TD,{noWrap:!0},r.createElement(v.Z,{value:e.dsps_txbytes})),r.createElement(c.TD,{noWrap:!0},r.createElement(v.Z,{value:e.dsps_rxbytes})))})))):r.createElement(y.Z,{text:"No overlays"})}_(S,"usePoll{[stats, { error, loading }]}",(function(){return[i.Z]})),_(E,"useMemo{paths}"),(w="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(w.register(S,"Paths","/workspace/dplane/ui/src/components/System/Paths.tsx"),w.register(E,"PathsInner","/workspace/dplane/ui/src/components/System/Paths.tsx")),(k="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&k(e)},76823:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M220 220h32v116"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M208 340h88"}),o.createElement("path",{d:"M248 130a26 26 0 1026 26 26 26 0 00-26-26z"}))}));i.displayName="InformationCircle";var s=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M277.42 247a24.68 24.68 0 00-4.08-5.47L255 223.44a21.63 21.63 0 00-6.56-4.57 20.93 20.93 0 00-23.28 4.27c-6.36 6.26-18 17.68-39 38.43C146 301.3 71.43 367.89 37.71 396.29a16 16 0 00-1.09 23.54l39 39.43a16.13 16.13 0 0023.67-.89c29.24-34.37 96.3-109 136-148.23 20.39-20.06 31.82-31.58 38.29-37.94a21.76 21.76 0 003.84-25.2zm201.01-46l-34.31-34a5.44 5.44 0 00-4-1.59 5.59 5.59 0 00-4 1.59h0a11.41 11.41 0 01-9.55 3.27c-4.48-.49-9.25-1.88-12.33-4.86-7-6.86 1.09-20.36-5.07-29a242.88 242.88 0 00-23.08-26.72c-7.06-7-34.81-33.47-81.55-52.53a123.79 123.79 0 00-47-9.24c-26.35 0-46.61 11.76-54 18.51-5.88 5.32-12 13.77-12 13.77a91.29 91.29 0 0110.81-3.2 79.53 79.53 0 0123.28-1.49C241.19 76.8 259.94 84.1 270 92c16.21 13 23.18 30.39 24.27 52.83.8 16.69-15.23 37.76-30.44 54.94a7.85 7.85 0 00.4 10.83l21.24 21.23a8 8 0 0011.14.1c13.93-13.51 31.09-28.47 40.82-34.46s17.58-7.68 21.35-8.09a35.71 35.71 0 0121.3 4.62 13.65 13.65 0 013.08 2.38c6.46 6.56 6.07 17.28-.5 23.74l-2 1.89a5.5 5.5 0 000 7.84l34.31 34a5.5 5.5 0 004 1.58 5.65 5.65 0 004-1.58L478.43 209a5.82 5.82 0 000-8z"}))}));s.displayName="Hammer";var l,c=n(8441),u=n(13698),f=n(63890),d=n(22892),p=n(80091),h=n(7505),g=n(31929);e=n.hmd(e),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&l(e);var m,v,y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},b=c.ZP.div.withConfig({displayName:"System__Container",componentId:"z8r28j-0"})(["width:100%;height:100%;display:flex;flex-direction:column;@media ",'{display:grid;height:auto;align-items:stretch;grid-auto-flow:dense;grid-auto-columns:1fr 1fr 1fr auto;grid-template-rows:min-content;grid-column-gap:2em;grid-template-areas:"i i i t" "d d d d";}'],u.U.tablet),x=(0,c.ZP)(d.ZP).withConfig({displayName:"System__InfosCard",componentId:"z8r28j-1"})(["grid-area:i;grid-column:3fr;"]),w=(0,c.ZP)(d.ZP).withConfig({displayName:"System__ToolsCard",componentId:"z8r28j-2"})(["grid-area:t;"]),k=(0,c.ZP)(p.Z).withConfig({displayName:"System__DevicesCard",componentId:"z8r28j-3"})(["grid-area:d;grid-column:4fr;"]);function _(){var e=(0,f.uF)();return o.createElement(b,null,o.createElement(x,{title:o.createElement(d.bK,{icon:o.createElement(i,null),title:"Information"})},o.createElement(h.Z,null)),o.createElement(w,{wrapperMargin:"0 1em",title:o.createElement(d.bK,{icon:o.createElement(s,null),title:"Tools"})},o.createElement(g.Z,null)),e.activated&&o.createElement(k,null))}y(_,"useSystem{system}",(function(){return[f.uF]})),(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(m.register(b,"Container","/workspace/dplane/ui/src/components/System/System.tsx"),m.register(x,"InfosCard","/workspace/dplane/ui/src/components/System/System.tsx"),m.register(w,"ToolsCard","/workspace/dplane/ui/src/components/System/System.tsx"),m.register(k,"DevicesCard","/workspace/dplane/ui/src/components/System/System.tsx"),m.register(_,"System","/workspace/dplane/ui/src/components/System/System.tsx")),(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&v(e)},31929:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M378 108a191.41 191.41 0 0170 148c0 106-86 192-192 192S64 362 64 256a192 192 0 0169-148m123-44v192"}))}));i.displayName="Power";var s=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M320 146s24.36-12-64-12a160 160 0 10160 160"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M256 58l80 80-80 80"}))}));s.displayName="Refresh";var l,c=n(8441),u=n(53902),f=n(69617),d=n(22892),p=n(136),h=n(45111),g=n(13698);function m(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){m(a,r,o,i,s,"next",e)}function s(e){m(a,r,o,i,s,"throw",e)}i(void 0)}))}}e=n.hmd(e),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&l(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var y,b,x=c.ZP.div.withConfig({displayName:"Tools__ToolsContainer",componentId:"sc-7s84ne-0"})(["display:flex;flex-direction:column;justify-content:space-evenly;flex:1;& > *{margin:1em 0;}@media ","{& > *{margin:0;}}"],g.U.tablet);function w(){function e(){return(e=v(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.ur)();case 3:alert("System will reboot in a few seconds..."),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),alert((0,h.T)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function t(){return(t=v(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.mc)();case 3:alert("System will reboot in a few seconds as part of factory reset procedure..."),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),alert((0,h.T)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}return o.createElement(x,null,o.createElement(p.Z,null),o.createElement(f.Z,{buttonContent:o.createElement(o.Fragment,null,o.createElement(i,null)," Restart"),modalTitle:o.createElement(d.bK,{icon:o.createElement(i,null),title:"Restart"}),modalContent:o.createElement("p",null,"The edge will be restarted."),confirmText:"RESTART",onConfirm:function(){return e.apply(this,arguments)}}),o.createElement(f.Z,{buttonContent:o.createElement(o.Fragment,null,o.createElement(s,null)," Reset"),modalTitle:o.createElement(d.bK,{icon:o.createElement(s,null),title:"Reset"}),modalContent:o.createElement("p",null,"The edge will be reset to factory default. You will need to activate this edge again."),confirmText:"RESET",onConfirm:function(){return t.apply(this,arguments)}}))}(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(y.register(x,"ToolsContainer","/workspace/dplane/ui/src/components/System/Tools.tsx"),y.register(w,"Tools","/workspace/dplane/ui/src/components/System/Tools.tsx")),(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&b(e)},136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(27378),o=n(25625),a=n(57043),i=n(29603),s=n(85719),l=r.forwardRef((function(e,t){return r.createElement(s.r,(0,i.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8-69 0-113.44 45.79-128 91.2-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M320 255.79l-64-64-64 64m64 192.42V207.79"}))}));l.displayName="CloudUpload";var c,u=n(4183),f=n(93451),d=n(53902),p=n(45111),h=n(85340),g=n(89589),m=n(31601),v=n(8441),y=n(47091),b=n(48633),x=n(22892),w=n(31775);function k(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){k(a,r,o,i,s,"next",e)}function s(e){k(a,r,o,i,s,"throw",e)}i(void 0)}))}}function S(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Xn:()=>h,uF:()=>g});var r,o=n(27378),a=n(53902),i=n(89589),s=n(31601),l=n(85340);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>Pe});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2-60 5.7-112 35.88-112 98.4S70 336 136 336h56m0 64.1l64 63.9 64-63.9M256 224v224.03"}))}));i.displayName="CloudDownload";var s=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M112 112l20 320c.95 18.49 14.4 32 32 32h184c17.67 0 30.87-13.51 32-32l20-320"}),o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M80 112h352"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M192 112V72h0a23.93 23.93 0 0124-24h80a23.93 23.93 0 0124 24h0v40m-64 64v224m-72-224l8 224m136-224l-8 224"}))}));s.displayName="Trash";var l=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,d:"M48 336v96a48.14 48.14 0 0048 48h320a48.14 48.14 0 0048-48v-96"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M48 336h144m128 0h144m-272 0a64 64 0 00128 0"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,d:"M384 32H128c-26 0-43 14-48 40L48 192v96a48.14 48.14 0 0048 48h320a48.14 48.14 0 0048-48v-96L432 72c-5-27-23-40-48-40z"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M48 192h144m128 0h144m-272 0a64 64 0 00128 0"}))}));l.displayName="FileTrayStacked";var c=n(85902);function u(e){(0,c.Z)(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 f(e){(0,c.Z)(1,arguments);var t=u(e);return!isNaN(t)}var d={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"}};function p(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 h,g={date:p({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:p({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:p({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},m={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function v(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=o.width?String(o.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function y(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?x(l,(function(e){return e.test(s)})):b(l,(function(e){return e.test(s)}));i=e.valueCallback?e.valueCallback(c):c,i=n.valueCallback?n.valueCallback(i):i;var u=t.slice(s.length);return{value:i,rest:u}}}function b(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function x(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:g,formatRelative:function(e,t,n,r){return m[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:v({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:v({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 Number(e)-1}}),month:v({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:v({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:v({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(h={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(h.matchPattern);if(!n)return null;var r=n[0],o=e.match(h.parsePattern);if(!o)return null;var a=h.valueCallback?h.valueCallback(o[0]):o[0];a=t.valueCallback?t.valueCallback(a):a;var i=e.slice(r.length);return{value:a,rest:i}}),era:y({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:y({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:y({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:y({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:y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var k=n(99907);function _(e,t){(0,c.Z)(2,arguments);var n=u(e).getTime(),r=(0,k.Z)(t);return new Date(n+r)}function S(e,t){(0,c.Z)(2,arguments);var n=(0,k.Z)(t);return _(e,-n)}function E(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return E("yy"===t?r%100:r,t.length)},M=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):E(n+1,2)},L=function(e,t){return E(e.getUTCDate(),t.length)},O=function(e,t){return E(e.getUTCHours()%12||12,t.length)},P=function(e,t){return E(e.getUTCHours(),t.length)},A=function(e,t){return E(e.getUTCMinutes(),t.length)},T=function(e,t){return E(e.getUTCSeconds(),t.length)},I=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return E(Math.floor(r*Math.pow(10,n-3)),t.length)};var j=864e5;function R(e){(0,c.Z)(1,arguments);var t=1,n=u(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function N(e){(0,c.Z)(1,arguments);var t=D(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=R(n);return r}var H=6048e5;function z(e,t){(0,c.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:(0,k.Z)(o),i=null==n.weekStartsOn?a:(0,k.Z)(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=u(e),l=s.getUTCDay(),f=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(r+1,0,l),f.setUTCHours(0,0,0,0);var d=z(f,t),p=new Date(0);p.setUTCFullYear(r,0,l),p.setUTCHours(0,0,0,0);var h=z(p,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function G(e,t){(0,c.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:(0,k.Z)(o),i=null==n.firstWeekContainsDate?a:(0,k.Z)(n.firstWeekContainsDate),s=F(e,t),l=new Date(0);l.setUTCFullYear(s,0,i),l.setUTCHours(0,0,0,0);var u=z(l,t);return u}var U=6048e5;function B(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+E(a,2)}function W(e,t){return e%60==0?(e>0?"-":"+")+E(Math.abs(e)/60,2):V(e,t)}function V(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+E(Math.floor(o/60),2)+n+E(o%60,2)}const Z={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"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return C(e,t)},Y:function(e,t,n,r){var o=F(e,r),a=o>0?o:1-o;return"YY"===t?E(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):E(a,t.length)},R:function(e,t){return E(D(e),t.length)},u:function(e,t){return E(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 E(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return E(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return E(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){(0,c.Z)(1,arguments);var n=u(e),r=z(n,t).getTime()-G(n,t).getTime();return Math.round(r/U)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):E(o,t.length)},I:function(e,t,n){var r=function(e){(0,c.Z)(1,arguments);var t=u(e),n=R(t).getTime()-N(t).getTime();return Math.round(n/H)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):E(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):L(e,t)},D:function(e,t,n){var r=function(e){(0,c.Z)(1,arguments);var t=u(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/j)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):E(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"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return E(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return E(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return E(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":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"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":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 O(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):P(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):E(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):E(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):A(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):T(e,t)},S:function(e,t){return I(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return W(o);case"XXXX":case"XX":return V(o);case"XXXXX":case"XXX":default:return V(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return W(o);case"xxxx":case"xx":return V(o);case"xxxxx":case"xxx":default:return V(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+B(o,":");case"OOOO":default:return"GMT"+V(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+B(o,":");case"zzzz":default:return"GMT"+V(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return E(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return E((r._originalDate||e).getTime(),t.length)}};function $(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function q(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}const Y={p:q,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],a=r[2];if(!a)return $(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",$(o,t)).replace("{{time}}",q(a,t))}};function X(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 Q=["D","DD"],K=["YY","YYYY"];function J(e){return-1!==Q.indexOf(e)}function ee(e){return-1!==K.indexOf(e)}function te(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 ne=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,re=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oe=/^'([^]*?)'?$/,ae=/''/g,ie=/[a-zA-Z]/;function se(e){return e.match(oe)[1].replace(ae,"'")}var le,ce=n(8441),ue=n(16294),fe=n(89589),de=n(57418),pe=n(25625),he=n(26298),ge=n(22892),me=n(82102),ve=n(31601),ye=n(85340);function be(){return(be=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=a.options&&a.options.weekStartsOn,p=null==d?0:(0,k.Z)(d),h=null==o.weekStartsOn?p:(0,k.Z)(o.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var g=u(e);if(!f(g))throw new RangeError("Invalid time value");var m=X(g),v=S(g,m),y={firstWeekContainsDate:l,weekStartsOn:h,locale:a,_originalDate:g};return r.match(re).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Y[t])(e,a.formatLong,y):e})).join("").match(ne).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return se(n);var i=Z[r];if(i)return!o.useAdditionalWeekYearTokens&&ee(n)&&te(n,t,e),!o.useAdditionalDayOfYearTokens&&J(n)&&te(n,t,e),i(v,n,a.localize,y);if(r.match(ie))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(n,"Pp")," ",o.createElement("small",null,"(",o.createElement(he.Z,{value:r}),")")),o.createElement("div",null,o.createElement(pe.Q,{onClick:function(){(0,ue.hX)(t)}},o.createElement(i,null)),o.createElement(pe.Q,{busy:p,onClick:h},o.createElement(s,null))))}function Pe(){var e=xe((0,fe.Z)(ue.KA,2e3),2),t=e[0],n=e[1],r=n.loading,a=n.error,i=n.refetch;function s(){return(s=_e(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("A diagnostics logs will be generated, this will take a couple of minutes, continue ?")){e.next=4;break}return e.next=3,(0,ue.Ef)();case 3:alert("The diagnostic report will be available shortly");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return o.createElement(ge.ZP,{title:o.createElement(ge.bK,{icon:o.createElement(l,null),title:"Diagnostics logs",right:o.createElement(pe.Z,{onClick:function(){return s.apply(this,arguments)}},"Request")})},a&&o.createElement(ye.B,null,a),o.createElement(Me,null,r&&!t?o.createElement(ve.Z,null):t&&t.length?t.map((function(e){return o.createElement(Oe,be({key:e.name},e,{refetch:i}))})):o.createElement(me.Z,{text:"No diagnostics logs available"})))}Ce(Oe,"usePromiseState{[deleting, doDelete]}",(function(){return[de.Z]})),Ce(Pe,"usePoll{[diags, { loading, error, refetch }]}",(function(){return[fe.Z]})),(Se="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(Se.register(Me,"DiagsContainer","/workspace/dplane/ui/src/components/Troubleshooting/Diag.tsx"),Se.register(Le,"DiagRowContainer","/workspace/dplane/ui/src/components/Troubleshooting/Diag.tsx"),Se.register(Oe,"DiagRow","/workspace/dplane/ui/src/components/Troubleshooting/Diag.tsx"),Se.register(Pe,"Diags","/workspace/dplane/ui/src/components/Troubleshooting/Diag.tsx")),(Ee="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&Ee(e)},44438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M338.29 338.29L448 448"}))}));i.displayName="Search";var s,l=n(8441),c=n(70199),u=n(45111),f=n(48633),d=n(63890),p=n(25625),h=n(26298),g=n(22892),m=n(4183),v=n(31775),y=n(85340);function b(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){b(a,r,o,i,s,"next",e)}function s(e){b(a,r,o,i,s,"throw",e)}i(void 0)}))}}function w(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n *{margin:0 0.5em;}"]),M=l.ZP.div.withConfig({displayName:"PCAP__Result",componentId:"hvs92x-1"})(["text-align:center;margin-top:2em;margin-bottom:1em;"]);function L(e,t){var n=new Blob(e);if(navigator.msSaveBlob)navigator.msSaveBlob(n,t);else{var r=document.createElement("a");if(void 0!==r.download){var o=URL.createObjectURL(n);r.setAttribute("href",o),r.setAttribute("download",t),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}}function O(){return{controller:new AbortController,blobs:[]}}function P(){var e,t=(0,d.uF)(),n=w((0,f.Z)(c.pt),2),r=n[0],a=n[1],s=a.loading,l=a.error,b=w((0,o.useState)(!1),2),k=b[0],_=b[1],S=w((0,o.useState)(""),2),E=S[0],P=S[1],A=w((0,o.useState)(""),2),T=A[0],I=A[1],j=w((0,o.useState)(""),2),R=j[0],D=j[1],N=w((0,o.useState)(""),2),H=N[0],z=N[1],F=w((0,o.useState)(0),2),G=F[0],U=F[1];(0,o.useEffect)((function(){r&&r.length&&P(r[0].physicalName)}),[r]);var B=(0,o.useRef)(O());function W(){return V.apply(this,arguments)}function V(){return(V=x(regeneratorRuntime.mark((function e(){var t,n,r,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.Z)("/api/pcap",{method:"POST",signal:B.current.controller.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify({ifName:E,protocol:T,src:R,dst:H})});case 2:if(n=e.sent,r=null===(t=n.body)||void 0===t?void 0:t.getReader()){e.next=7;break}return console.log("No reader"),e.abrupt("return");case 7:return e.next=10,r.read();case 10:if(o=e.sent,a=o.value,!o.done){e.next=15;break}return e.abrupt("break",18);case 15:a&&(null===(i=B.current)||void 0===i||i.blobs.push(a),U(B.current.blobs.reduce((function(e,t){return e+t.length}),0)),console.log("Received: ",a.length)),e.next=7;break;case 18:console.log("Done");case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(){return(Z=x(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!k){e.next=5;break}return null===(n=B.current)||void 0===n||n.controller.abort(),_(!1),e.abrupt("return");case 5:return _(!0),B.current=O(),e.prev=7,e.next=10,W();case 10:return e.prev=10,_(!1),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[7,,10,13]])})))).apply(this,arguments)}return o.createElement(g.ZP,{title:o.createElement(g.bK,{icon:o.createElement(i,null),title:"Packet Capture"})},l&&o.createElement(y.B,null,l),o.createElement(C,{onSubmit:function(e){return Z.apply(this,arguments)}},o.createElement("select",{disabled:k,value:E,onChange:function(e){return P(e.target.value)}},o.createElement("option",{disabled:!0,value:""},s?"Loading...":"Interface"),r&&r.map((function(e){return o.createElement("option",{key:e.physicalName,value:e.physicalName},e.physicalName," ",e.logicalName.length?"(".concat(e.logicalName,")"):"")}))),o.createElement("select",{disabled:k,value:T,onChange:function(e){return I(e.target.value)}},o.createElement("option",{value:""},"Any"),o.createElement("option",{value:"tcp"},"TCP"),o.createElement("option",{value:"udp"},"UDP"),o.createElement("option",{value:"icmp"},"ICMP")),o.createElement(m.Y,{disabled:k,value:R,onChange:function(e){return D(e.target.value)},label:"Source IP:PORT"}),o.createElement(m.Y,{disabled:k,value:H,onChange:function(e){return z(e.target.value)},label:"Destination IP:PORT"}),o.createElement(p.Z,{disabled:""==E,type:"submit"},k?o.createElement("div",{style:{whiteSpace:"nowrap"}},o.createElement(v.Z,{color:"white"})," Stop"):"Start")),(null===(e=B.current)||void 0===e?void 0:e.blobs.length)>0&&o.createElement(M,null,o.createElement(p.Z,{disabled:k,onClick:function(){var e;L(null===(e=B.current)||void 0===e?void 0:e.blobs,"".concat(t.edgename,"_").concat(E,".pcap"))}},k?"Capturing...":"Download"," ",o.createElement(h.Z,{value:G}))))}E(P,'useSystem{system}\nuseFetch{[interfaces, { loading, error }]}\nuseState{[running, setRunning](false)}\nuseState{[itf, setItf]("")}\nuseState{[protocol, setProtocol]("")}\nuseState{[src, setSrc]("")}\nuseState{[dst, setDst]("")}\nuseState{[size, setSize](0)}\nuseEffect{}\nuseRef{s}',(function(){return[d.uF,f.Z]})),(_="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(_.register(C,"Form","/workspace/dplane/ui/src/components/Troubleshooting/PCAP.tsx"),_.register(M,"Result","/workspace/dplane/ui/src/components/Troubleshooting/PCAP.tsx"),_.register(L,"createAndDownloadBlobFile","/workspace/dplane/ui/src/components/Troubleshooting/PCAP.tsx"),_.register(O,"createStore","/workspace/dplane/ui/src/components/Troubleshooting/PCAP.tsx"),_.register(P,"PCAP","/workspace/dplane/ui/src/components/Troubleshooting/PCAP.tsx")),(S="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&S(e)},24259:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r,o,a,i=n(27378),s=n(41843),l=n(44438);function c(){return i.createElement(i.Fragment,null,i.createElement(s.Z,null),i.createElement(l.Z,null))}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(c,"Troubleshooting","/workspace/dplane/ui/src/components/Troubleshooting/Troubleshooting.tsx"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},25625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,Q:()=>w});var r,o=n(23602),a=n(27378),i=n(8441),s=n(31775);function l(){return(l=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},d=i.ZP.button.withConfig({displayName:"Button__InnerButton",componentId:"sc-15b8qzb-0"})(["background:",";border:#002152;color:white;border-radius:3px;padding:0.4em 0.5em;transition:0.1s all;text-align:center;width:",";outline:none;cursor:pointer;&:disabled{filter:grayscale(90%);opacity:0.6;}&:hover{background:",";}&:active{background:",";}"],(function(e){return e.theme.primary}),(function(e){return e.width?"".concat(e.width,"px"):"auto"}),(function(e){return(0,o._j)(.05)(e.theme.primary)}),(function(e){return(0,o._j)(.1)(e.theme.primary)})),p=(0,i.ZP)(s.Z).withConfig({displayName:"Button__Busy",componentId:"sc-15b8qzb-1"})(["margin:0 auto;"]),h=(0,i.ZP)(v).withConfig({displayName:"Button",componentId:"sc-15b8qzb-2"})([""]),g=h;const m=g;function v(e){var t,n,r=e.busy,o=e.children,i=u(e,["busy","children"]),s=(0,a.useRef)(null),f=(t=(0,a.useState)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(t,n)||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.")}()),h=f[0],g=f[1];return(0,a.useEffect)((function(){!r&&s.current&&g(s.current.clientWidth)}),[s.current]),r&&(i.disabled=!0,i.width=h),a.createElement(d,l({ref:s},i),r?a.createElement(p,{color:"white"}):o)}f(v,"useRef{ref}\nuseState{[width, setWidth]}\nuseEffect{}");var y,b,x=i.ZP.button.withConfig({displayName:"Button__InnerLinkButton",componentId:"sc-15b8qzb-3"})(["transition:0.1s all;text-align:center;outline:none;cursor:pointer;border:none;background:none;padding:0.3em;&:disabled{filter:grayscale(90%);opacity:0.6;}&:hover{color:",";}&:active{color:",";}"],(function(e){return(0,o._j)(.05)(e.theme.primary)}),(function(e){return(0,o._j)(.1)(e.theme.primary)}));function w(e){e.busy;var t=u(e,["busy"]);return a.createElement(x,t)}(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(y.register(d,"InnerButton","/workspace/dplane/ui/src/components/UI/Button.tsx"),y.register(p,"Busy","/workspace/dplane/ui/src/components/UI/Button.tsx"),y.register(h,"Button","/workspace/dplane/ui/src/components/UI/Button.tsx"),y.register(v,"ButtonComponent","/workspace/dplane/ui/src/components/UI/Button.tsx"),y.register(x,"InnerLinkButton","/workspace/dplane/ui/src/components/UI/Button.tsx"),y.register(w,"LinkButton","/workspace/dplane/ui/src/components/UI/Button.tsx"),y.register(g,"default","/workspace/dplane/ui/src/components/UI/Button.tsx")),(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&b(e)},26298:(e,t,n)=>{"use strict";n.d(t,{v:()=>l,Z:()=>c});var r,o,a,i=n(27378);function s(e){return e?["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"]:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bits,r=void 0!==n&&n,o=t.decimals,a=void 0===o?2:o,i=t.suffix,l=void 0===i?"":i;if(0===e)return"0 "+s(r)[0]+l;var c=r?1e3:1024,u=a<0?0:a,f=Math.floor(Math.log(e)/Math.log(c));return parseFloat((e/Math.pow(c,f)).toFixed(u))+" "+s(r)[f]+l}function c(e){var t=e.value,n=e.bits,r=void 0!==n&&n,o=e.suffix,a=void 0===o?"":o;return i.createElement("span",{title:t+s(r)[0]},l(t,{bits:r,suffix:a}))}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(s,"sizes","/workspace/dplane/ui/src/components/UI/Bytes.tsx"),o.register(l,"fmt","/workspace/dplane/ui/src/components/UI/Bytes.tsx"),o.register(c,"Bytes","/workspace/dplane/ui/src/components/UI/Bytes.tsx")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},22892:(e,t,n)=>{"use strict";n.d(t,{bK:()=>m,ZP:()=>v,P5:()=>x});var r,o=n(27378),a=n(8441),i=n(31601),s=n(99696);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","open","setOpen"]);return o.createElement(v,l({title:o.createElement(x,null,o.createElement("span",null,t),o.createElement(s.Z,{checked:n,onChange:function(e){return r(e.target.checked)}})),open:n},a))}),"ToggleCard","/workspace/dplane/ui/src/components/UI/Card.tsx")),(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&b(e)},82102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M414.11 153.82C429.66 264.4 345.85 357.09 282.54 366s-169.48-57.5-185-167.68a159.82 159.82 0 11316.53-44.49z"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M236.06 308.05c-32.83-13-67.08-43.1-82.27-85.46M367.7 495.78c-32.83-13-63.31-40.06-78.5-82.41"}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M266.71 368.21l-9.17 49.61 63.31-8.9-22.49-45.16-31.65 4.45z"}))}));i.displayName="Balloon";var s,l=n(8441);e=n.hmd(e),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&s(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,u,f=l.ZP.div.withConfig({displayName:"Empty__EmptyContainer",componentId:"sc-173dqa9-0"})(["padding:2em;display:flex;flex-direction:column;align-items:center;"]);function d(e){var t=e.text;return o.createElement(f,null,o.createElement("div",null,o.createElement(i,{style:{fontSize:"2em"}})," ",t))}(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(f,"EmptyContainer","/workspace/dplane/ui/src/components/UI/Empty.tsx"),c.register(d,"Empty","/workspace/dplane/ui/src/components/UI/Empty.tsx")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)},14645:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>ErrorBoundary});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27378),enterModule;function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>p});var r,o,a=n(8441),i=n(13698),s=n(85719),l=n(25625);e=n.hmd(e),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,u,f=(0,a.vJ)(r||(c=["\n /* http://meyerweb.com/eric/tools/css/reset/\n v5.0.1 | 20191019\n License: none (public domain)\n */\n\n html, body, div, span, applet, object, iframe,\n h1, h2, h3, h4, h5, h6, p, blockquote, pre,\n a, abbr, acronym, address, big, cite, code,\n del, dfn, em, img, ins, kbd, q, s, samp,\n small, strike, strong, sub, sup, tt, var,\n b, u, i, center,\n dl, dt, dd, menu, ol, ul, li,\n fieldset, form, label, legend,\n table, caption, tbody, tfoot, thead, tr, th, td,\n article, aside, canvas, details, embed,\n figure, figcaption, footer, header, hgroup,\n main, menu, nav, output, ruby, section, summary,\n time, mark, audio, video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article, aside, details, figcaption, figure,\n footer, header, hgroup, main, menu, nav, section {\n display: block;\n }\n /* HTML5 hidden-attribute fix for newer browsers */\n *[hidden] {\n display: none;\n }\n body {\n line-height: 1;\n }\n menu, ol, ul {\n list-style: none;\n }\n blockquote, q {\n quotes: none;\n }\n blockquote:before, blockquote:after,\n q:before, q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n b {\n font-weight: bold;\n }\n\n // Custom\n html, body, #root {\n width: 100%;\n height: 100%;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n }\n\n html {\n font-size: 90%;\n }\n\n @media "," {\n html {\n font-size: 100%;\n }\n }\n\n * {\n box-sizing: border-box;\n }\n\n small {\n font-size: 0.8em;\n }\n\n code {\n font-family: monospace;\n }\n\n "," {\n height: 1em;\n }\n\n "," "," {\n vertical-align: text-top;\n }\n"],u||(u=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(u)}}))),i.U.tablet,s.r,l.Z,s.r),d=f;const p=d;var h,g;(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(f,"GlobalStyle","/workspace/dplane/ui/src/components/UI/GlobalStyle.tsx"),h.register(d,"default","/workspace/dplane/ui/src/components/UI/GlobalStyle.tsx")),(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&g(e)},4183:(e,t,n)=>{"use strict";n.d(t,{o:()=>s,Y:()=>h});var r,o=n(27378),a=n(8441);function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["label"]);return r.placeholder||(r.placeholder=" "),o.createElement(u,null,o.createElement(c,i({},r,{ref:t})),o.createElement(l,null,n))}var d,p,h=o.forwardRef(f);(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(d.register(s,"TextInput","/workspace/dplane/ui/src/components/UI/Input.tsx"),d.register(l,"Label","/workspace/dplane/ui/src/components/UI/Input.tsx"),d.register(c,"FieldTextInput","/workspace/dplane/ui/src/components/UI/Input.tsx"),d.register(u,"Field","/workspace/dplane/ui/src/components/UI/Input.tsx"),d.register(f,"TextInputFieldInner","/workspace/dplane/ui/src/components/UI/Input.tsx"),d.register(h,"TextInputField","/workspace/dplane/ui/src/components/UI/Input.tsx")),(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&p(e)},65151:(e,t,n)=>{"use strict";n.d(t,{a:()=>s,c:()=>l});var r,o=n(8441);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var a,i,s=o.ZP.div.withConfig({displayName:"List",componentId:"sc-19ks093-0"})(["border:1px solid lightgrey;"]),l=o.ZP.div.withConfig({displayName:"List__Item",componentId:"sc-19ks093-1"})(["padding:0.5em;transition:0.3s all;border-top:1px solid lightgrey;cursor:",";display:flex;flex-direction:row;align-items:center;justify-content:space-between;&:first-of-type{border-top:none;}&:hover{background:#f1f1f1;}"],(function(e){return e.onClick?"pointer":"initial"}));(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(a.register(s,"List","/workspace/dplane/ui/src/components/UI/List.tsx"),a.register(l,"Item","/workspace/dplane/ui/src/components/UI/List.tsx")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)},31775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r,o=n(27378),a=n(8441);function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","animated"]),l=(0,o.useRef)(null);return(0,o.useLayoutEffect)((function(){if(!s&&l.current){var e=l.current.querySelector("path");s=e.getTotalLength()}}),[l.current]),o.createElement(d,i({pathLength:s,ref:l,viewBox:"0 0 408 364",version:"1.1",animated:r,className:t},a),o.createElement("g",{transform:"matrix(1,0,0,1,-550.423,-2.72009)"},r&&o.createElement("path",{className:"l",d:p}),o.createElement("path",{className:"f","data-ignore":!0,d:p})))}u(h,"useRef{ref}\nuseLayoutEffect{}"),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(f,"animate","/workspace/dplane/ui/src/components/UI/Loader.tsx"),l.register(d,"Svg","/workspace/dplane/ui/src/components/UI/Loader.tsx"),l.register(p,"p","/workspace/dplane/ui/src/components/UI/Loader.tsx"),l.register(s,"pathLength","/workspace/dplane/ui/src/components/UI/Loader.tsx"),l.register(h,"Loader","/workspace/dplane/ui/src/components/UI/Loader.tsx")),(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&c(e)},31601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r,o=n(27378),a=n(8441),i=n(31775);function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["height","style","text"]);return o.createElement(p,s({style:c(c({},r),{},{height:t})},l),o.createElement(i.Z,null),a&&o.createElement(h,null,a))}(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(f.register(p,"Container","/workspace/dplane/ui/src/components/UI/Loading.tsx"),f.register(h,"Text","/workspace/dplane/ui/src/components/UI/Loading.tsx"),f.register(g,"Loading","/workspace/dplane/ui/src/components/UI/Loading.tsx")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)},85340:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,k:()=>l});var r,o=n(8441);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var a,i,s=o.ZP.div.withConfig({displayName:"Message__ErrorMessage",componentId:"hs6ult-0"})(["background:#ff9696;padding:0.5em;border-left:3px solid red;margin-top:0.5em;"]),l=o.ZP.div.withConfig({displayName:"Message__SuccessMessage",componentId:"hs6ult-1"})(["background:#99ff96;padding:0.5em;border-left:3px solid #00a716;margin-top:0.5em;"]);(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(a.register(s,"ErrorMessage","/workspace/dplane/ui/src/components/UI/Message.tsx"),a.register(l,"SuccessMessage","/workspace/dplane/ui/src/components/UI/Message.tsx")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)},57043:(e,t,n)=>{"use strict";n.d(t,{gk:()=>h,dd:()=>g,ZP:()=>m,AY:()=>x});var r,o=n(27378),a=n(31542),i=n(8441),s=n(13698),l=n(22892);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&delete n[t]},stack:n}},t)}function g(){var e,t,n=(e=(0,o.useState)(!1),t=2,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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(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.")}()),r=n[0],a=n[1];return[r,(0,o.useCallback)((function(){return a(!0)}),[a]),(0,o.useCallback)((function(){return a(!1)}),[a])]}function m(e){var t=e.close,n=e.children,r=e.style,i=e.className,s=(0,o.useContext)(p);return(0,o.useEffect)((function(){if(t){var e=s.add(t);return function(){s.remove(e)}}}),[]),o.createElement(o.Fragment,null,a.createPortal(o.createElement(f,{onClick:function(e){e.stopPropagation(),t&&t()}},o.createElement(d,{onClick:function(e){return e.stopPropagation()},style:r,className:i},n)),document.body))}u(h,"useMemo{stack}\nuseEffect{}"),u(g,"useState{[opened, setOpened](false)}\nuseCallback{open}\nuseCallback{close}"),u(m,"useContext{}\nuseEffect{}");var v,y,b=(0,i.ZP)(l.ZP).withConfig({displayName:"Modal__ModalCard",componentId:"sc-1r7ysxi-2"})(["margin:0;"]);function x(e){var t=e.title,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","children"]);return o.createElement(m,r,o.createElement(b,{title:t},n))}(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(v.register(f,"Backdrop","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(d,"Container","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(p,"Context","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(h,"ModalManager","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(g,"useModal","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(m,"Modal","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(b,"ModalCard","/workspace/dplane/ui/src/components/UI/Modal.tsx"),v.register(x,"CardModal","/workspace/dplane/ui/src/components/UI/Modal.tsx")),(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&y(e)},99696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r,o=n(8441),a=n(23602),i=n(27378);function s(){return(s=Object.assign||function(e){for(var t=1;t{"use strict";n.d(t,{iA:()=>l,Et:()=>u,TR:()=>f,TH:()=>d,XP:()=>p,TD:()=>h,ju:()=>v});var r,o=n(27378),a=n(8441);e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,s,l=a.ZP.table.withConfig({displayName:"Table",componentId:"ivyx1f-0"})(["width:100%;border-collapse:collapse;"]),c=(0,a.iv)(["padding:0.7rem;text-align:left;vertical-align:middle;"]),u=a.ZP.thead.withConfig({displayName:"Table__THead",componentId:"ivyx1f-1"})([""]),f=a.ZP.tr.withConfig({displayName:"Table__TR",componentId:"ivyx1f-2"})(["border-bottom:1px solid lightgray;cursor:",";background:",";"],(function(e){return e.onClick?"pointer":"initial"}),(function(e){return e.colorRow?"#f3f3f3":"initial"})),d=a.ZP.th.withConfig({displayName:"Table__TH",componentId:"ivyx1f-3"})(["",";font-weight:bolder;"],c),p=a.ZP.tbody.withConfig({displayName:"Table__TBody",componentId:"ivyx1f-4"})(["",":hover{background:#e6e6e6;}"],f),h=a.ZP.td.withConfig({displayName:"Table__TD",componentId:"ivyx1f-5"})(["",";",""],c,(function(e){return e.noWrap&&"white-space: nowrap;"})),g=a.ZP.div.withConfig({displayName:"Table__InnerCollapsible",componentId:"ivyx1f-6"})(["",";transition:padding 0.3s,max-height 0.3s;overflow:hidden;max-height:999px;width:100%;",""],c,(function(e){return e.open?(0,a.iv)(["border-bottom:1px solid lightgray;"]):(0,a.iv)(["max-height:0;padding-top:0;padding-bottom:0;transition:padding 0.3s,max-height 0.15s;"])})),m=a.ZP.td.withConfig({displayName:"Table__InnerCollapsibleTD",componentId:"ivyx1f-7"})(["padding:0;vertical-align:top;"]);function v(e){var t=e.open,n=e.children;return o.createElement("tr",null,o.createElement(m,{colSpan:5},o.createElement(g,{open:t},n)))}(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(l,"Table","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(c,"cell","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(u,"THead","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(f,"TR","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(d,"TH","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(p,"TBody","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(h,"TD","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(g,"InnerCollapsible","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(m,"InnerCollapsibleTD","/workspace/dplane/ui/src/components/UI/Table.tsx"),i.register(v,"CollapsibleTR","/workspace/dplane/ui/src/components/UI/Table.tsx")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)},9825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(29603),o=n(27378),a=n(85719),i=o.forwardRef((function(e,t){return o.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),o.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M336 208v-95a80 80 0 00-160 0v95"}),o.createElement("rect",{width:320,height:272,x:96,y:208,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,rx:48,ry:48}))}));i.displayName="LockClosed";var s,l=n(77997),c=n(97053),u=n(8441),f=n(55380),d=n(25625),p=n(4183),h=n(65151),g=n(57043),m=n(31601),v=n(85340),y=n(57418),b=n(31775),x=n(89589),w=n(22892);function k(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}(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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>F});var r=n(27378),o=n(8441),a=n(22892),i=n(9825),s=n(29603),l=n(85719),c=r.forwardRef((function(e,t){return r.createElement(l.r,(0,s.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 512 512"},e,{ref:t}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"}),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M256 176v160m80-80H176"}))}));c.displayName="AddCircle";var u,f=n(77997),d=n(97053),p=n(7156),h=n(55380),g=n(48633),m=n(65151),v=n(57043),y=n(25625),b=n(31601),x=n(45111),w=n(17226),k=n(57418),_=n(31775),S=n(16350),E=n(48934),C=n(16180),M=n(57242),L=n(8888);function O(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){O(a,r,o,i,s,"next",e)}function s(e){O(a,r,o,i,s,"throw",e)}i(void 0)}))}}function A(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(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)?T(e,t):void 0}}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{iP:()=>I,hX:()=>R,KA:()=>O,Ef:()=>A});var r=n(99907),o=n(85902),a=36e5,i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e,t){(0,o.Z)(1,arguments);var n=t||{},a=null==n.additionalDigits?2:(0,r.Z)(n.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i,s=f(e);if(s.date){var l=d(s.date,a);i=p(l.restDateString,l.year)}if(isNaN(i)||!i)return new Date(NaN);var c,u=i.getTime(),h=0;if(s.time&&(h=g(s.time),isNaN(h)||null===h))return new Date(NaN);if(!s.timezone){var m=new Date(u+h),y=new Date(0);return y.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),y.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),y}return c=v(s.timezone),isNaN(c)?new Date(NaN):new Date(u+h+c)}function f(e){var t,n={},r=e.split(i.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],i.timeZoneDelimiter.test(n.date)&&(n.date=e.split(i.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=i.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function d(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var o=r[1]&&parseInt(r[1]),a=r[2]&&parseInt(r[2]);return{year:null==a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(null===t)return null;var n=e.match(s);if(!n)return null;var r=!!n[4],o=h(n[1]),a=h(n[2])-1,i=h(n[3]),l=h(n[4]),c=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,l,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(b(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}function h(e){return e?parseInt(e):1}function g(e){var t=e.match(l);if(!t)return null;var n=m(t[1]),r=m(t[2]),o=m(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*a+6e4*r+1e3*o:NaN}function m(e){return e&&parseFloat(e.replace(",","."))||0}function v(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*a+6e4*o):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400==0||e%4==0&&e%100}var x,w,k,_=n(45111);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t{"use strict";n.d(t,{mG:()=>l,d7:()=>u,pt:()=>d,sZ:()=>h,Z4:()=>m,_y:()=>x});var r,o=n(27378),a=n(45111);function i(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}function l(e,t){return c.apply(this,arguments)}function c(){return(c=s(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Z)("/api/interfaces/".concat(t),{method:"put",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 2:return r=e.sent,e.next=5,r.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e){return f.apply(this,arguments)}function f(){return(f=s(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Z)("/api/interfaces",{signal:t});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=s(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Z)("/api/pcap/interfaces",{signal:t});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return g.apply(this,arguments)}function g(){return(g=s(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,(0,a.Z)("/api/interfaces/".concat(t,"/enable"),{method:"post"});case 3:e.next=7;break;case 5:return e.next=7,(0,a.Z)("/api/interfaces/".concat(t,"/disable"),{method:"post"});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e,t){return v.apply(this,arguments)}function v(){return(v=s(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Z)("/api/interfaces/".concat(t,"/conncheck"),{signal:n});case 2:return r=e.sent,e.next=5,r.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var y,b,x=o.createContext({interfaces:[],refetch:function(){return Promise.resolve()},loading:!1});(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(y.register(l,"saveInterface","/workspace/dplane/ui/src/services/interfaces.ts"),y.register(u,"fetchInterfaces","/workspace/dplane/ui/src/services/interfaces.ts"),y.register(d,"fetchPcapInterfaces","/workspace/dplane/ui/src/services/interfaces.ts"),y.register(h,"toggleInterfaces","/workspace/dplane/ui/src/services/interfaces.ts"),y.register(m,"fetchConnCheck","/workspace/dplane/ui/src/services/interfaces.ts"),y.register(x,"Context","/workspace/dplane/ui/src/services/interfaces.ts")),(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&b(e)},30465:(e,t,n)=>{"use strict";n.d(t,{b:()=>c,Z:()=>f});var r,o,a,i=n(45111);function s(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,"next",e)}function l(e){s(a,r,o,i,l,"throw",e)}i(void 0)}))}}function c(e,t){return u.apply(this,arguments)}function u(){return(u=l(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/interfaces/".concat(t,"/lte"),{signal:n});case 2:return r=e.sent,e.next=5,r.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t){return d.apply(this,arguments)}function d(){return(d=l(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/interfaces/".concat(t,"/lte"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 2:return r=e.sent,e.next=5,r.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(c,"fetchLTE","/workspace/dplane/ui/src/services/lte.ts"),o.register(f,"postLTEConfig","/workspace/dplane/ui/src/services/lte.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},53902:(e,t,n)=>{"use strict";n.d(t,{QZ:()=>c,Mq:()=>f,mP:()=>p,mc:()=>g,ur:()=>v,_s:()=>b});var r,o,a,i=n(45111);function s(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,"next",e)}function l(e){s(a,r,o,i,l,"throw",e)}i(void 0)}))}}function c(e){return u.apply(this,arguments)}function u(){return(u=l(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/activate",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return d.apply(this,arguments)}function d(){return(d=l(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/system",{signal:t});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=l(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/edgeStats",{signal:t});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return m.apply(this,arguments)}function m(){return(m=l(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/reset",{method:"post"});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(){return y.apply(this,arguments)}function y(){return(y=l(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/restart",{method:"post"});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return x.apply(this,arguments)}function x(){return(x=l(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/upgrade",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(c,"activate","/workspace/dplane/ui/src/services/system.ts"),o.register(f,"fetchSystem","/workspace/dplane/ui/src/services/system.ts"),o.register(p,"fetchStats","/workspace/dplane/ui/src/services/system.ts"),o.register(g,"reset","/workspace/dplane/ui/src/services/system.ts"),o.register(v,"restart","/workspace/dplane/ui/src/services/system.ts"),o.register(b,"upgrade","/workspace/dplane/ui/src/services/system.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},55380:(e,t,n)=>{"use strict";n.d(t,{vf:()=>c,MA:()=>f,_W:()=>p,hm:()=>g});var r,o,a,i=n(45111);function s(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,"next",e)}function l(e){s(a,r,o,i,l,"throw",e)}i(void 0)}))}}function c(e){return u.apply(this,arguments)}function u(){return(u=l(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/wifi/scan",{signal:t});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return d.apply(this,arguments)}function d(){return(d=l(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/wifi/saved",{signal:t});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=l(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/wifi/saved",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m.apply(this,arguments)}function m(){return(m=l(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.Z)("/api/wifi/saved/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(c,"fetchAvailableWifis","/workspace/dplane/ui/src/services/wifis.ts"),o.register(f,"fetchSavedWifis","/workspace/dplane/ui/src/services/wifis.ts"),o.register(p,"addSavedWifi","/workspace/dplane/ui/src/services/wifis.ts"),o.register(g,"deleteSavedWifi","/workspace/dplane/ui/src/services/wifis.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},45111:(e,t,n)=>{"use strict";var r;function o(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 a(e){for(var t=1;tc,T:()=>g}),e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var d,p,h="Check your internet connectivity and make sure the edge can be reached.";function g(e){var t=f(e);return t.startsWith("Failed to fetch")||t.startsWith("NetworkError when attempting to fetch resource")?h:t}(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(d.register(c,"inffetch","/workspace/dplane/ui/src/utils/inffetch.ts"),d.register(f,"extractErrStr","/workspace/dplane/ui/src/utils/inffetch.ts"),d.register(h,"checkInternetConnectivityMessage","/workspace/dplane/ui/src/utils/inffetch.ts"),d.register(g,"errToString","/workspace/dplane/ui/src/utils/inffetch.ts")),(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&p(e)},57242:(e,t,n)=>{"use strict";var r;n.d(t,{To:()=>s,nK:()=>l,W8:()=>c,KV:()=>u}),e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i="dhcp",s="static",l="PPPoE",c=[i,s,l];function u(e){switch(e){case i:return"DHCP";case s:return"Static";case l:return"PPPoE"}return e}(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(i,"ModeDHCP","/workspace/dplane/ui/src/utils/intfmode.ts"),o.register(s,"ModeStatic","/workspace/dplane/ui/src/utils/intfmode.ts"),o.register(l,"ModePPPoE","/workspace/dplane/ui/src/utils/intfmode.ts"),o.register(c,"AllModes","/workspace/dplane/ui/src/utils/intfmode.ts"),o.register(u,"modeToHuman","/workspace/dplane/ui/src/utils/intfmode.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},13698:(e,t,n)=>{"use strict";var r;n.d(t,{d:()=>i,U:()=>s}),e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i={mobile:"320px",tablet:"768px",laptop:"1200px"},s={mobile:"only screen and (min-width: ".concat(i.mobile,")"),tablet:"only screen and (min-width: ".concat(i.tablet,")"),laptop:"only screen and (min-width: ".concat(i.laptop,")")};(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(i,"size","/workspace/dplane/ui/src/utils/media.ts"),o.register(s,"device","/workspace/dplane/ui/src/utils/media.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},47091:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r,o,a,i=n(27378);function s(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.useRef(!1);i.useEffect((function(){t&&!n.current&&(n.current=!0,e())}),[e,t])}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(s,"useRef{isCalledRef}\nuseEffect{}"),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(s,"useEffectOnce","/workspace/dplane/ui/src/utils/useEffectOnce.ts"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},48633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r,o,a,i=n(27378),s=n(45111);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialFetch,r=void 0===n||n,o=(0,i.useState)({value:void 0,error:void 0,loading:r}),a=f(o,2),l=a[0],u=a[1],d=(0,i.useMemo)((function(){return new AbortController}),[]);function p(){return u((function(e){return c(c({},e),{},{loading:!0})})),e(d.signal).then((function(e){u({value:e,error:void 0,loading:!1})})).catch((function(e){"AbortError"!==e.name&&u({value:void 0,error:(0,s.T)(e),loading:!1})}))}return(0,i.useEffect)((function(){return function(){d.abort()}}),[]),(0,i.useEffect)((function(){r&&p()}),[]),[l.value,c(c({},l),{},{refetch:p})]}e=n.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(p,"useState{[state, setState]({\n value: undefined,\n error: undefined,\n loading: initialFetch,\n })}\nuseMemo{controller}\nuseEffect{}\nuseEffect{}"),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(p,"useFetch","/workspace/dplane/ui/src/utils/useFetch.ts"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)},89589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(27378);function o(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)}))}}const i=Math.pow(2,31)-1;function s(e){return l.apply(this,arguments)}function l(){return(l=a((function*(e){e.stopped=!0;for(var t=0,n=Object.values(e.timeouts);t{},o=Object.values(e.promises).map((e=>{e.catch(r)})),a=setInterval(r,i);yield Promise.all(o),clearInterval(a)}))).apply(this,arguments)}class c extends Error{}Object.defineProperty(c.prototype,"name",{value:"SetIntervalAsyncError"});var u,f,d,p=n(90750),h=n(48633);function g(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){g(a,r,o,i,s,"next",e)}function s(e){g(a,r,o,i,s,"throw",e)}i(void 0)}))}}function v(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 y(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},a=o.autoStart,i=void 0===a||a,l=(0,h.Z)(e),c=w(l,2),u=c[0],f=c[1],d=f.refetch,g=x(f,["refetch"]),v=(0,r.useRef)();function b(){k(),v.current=(0,p.ad)(d,t)}function k(){v.current&&s(v.current)}return(0,r.useEffect)((function(){return i&&b(),k}),[]),[u,y(y({},g),{},{refetch:(n=m(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(),e.next=3,d();case 3:return t=e.sent,b(),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}),{stop:k,start:b}]}e=n.hmd(e),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&u(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(_,"useFetch{[value, { refetch, ...extra }]}\nuseRef{int}\nuseEffect{}",(function(){return[h.Z]})),(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&f.register(_,"usePoll","/workspace/dplane/ui/src/utils/usePoll.tsx"),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)},57418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r,o,a,i=n(27378);function s(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,"next",e)}function l(e){s(a,r,o,i,l,"throw",e)}i(void 0)}))}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{n(25901),n(98521),n(92189),n(76563),n(83301),n(91047),n(9038),n(5737),n(31918),n(12077),n(78605),n(13199),n(19068),n(6798),n(19745),n(65234),n(15610),n(23023),n(78956),n(23938),n(55719),n(86e3),n(53984),n(98010),n(52327),n(95699),n(44705),n(44270),n(95374),n(95623),n(27471),n(25613),n(58112),n(61013),n(73902),n(5576),n(60190),n(72410),n(72264),n(69217),n(38217),n(35974),n(44062),n(83315),n(5769),n(63515),n(83352),n(17965),n(99709),n(48410),n(74374),n(99785),n(12699),n(12595),n(64844),n(41940),n(20252),n(14009),n(713),n(12274),n(79657),n(20390),n(78317),n(72673),n(92571),n(63227),n(87501),n(50987),n(71444),n(63238),n(76263),n(89995),n(85425),n(16522),n(35555),n(85221),n(63436),n(95289),n(61514),n(1203),n(72423),n(24216),n(62228),n(87816),n(911),n(83526),n(72482),n(90938),n(20266),n(75943),n(16983),n(17460),n(16057),n(51883),n(18679),n(61665),n(81048),n(81416),n(5899),n(24666),n(83611),n(756),n(49509),n(55033),n(3191),n(37258),n(82759),n(52077),n(57774),n(14992),n(94890),n(40895),n(32081),n(43512),n(95163),n(98762),n(8269),n(45781),n(45822),n(65127),n(50219),n(17055),n(83836),n(68679),n(76056),n(35084),n(51299),n(57261),n(5770),n(9149),n(88738),n(78419),n(67380),n(30105),n(21687),n(69376),n(90728),n(94075),n(54870),n(21935),n(41505),n(55069),n(21897),n(57520),n(75017),n(71438),n(38459),n(40205),n(87211),n(95735),n(82923),n(61418),n(32107),n(43007),n(61370),n(61484),n(56446),n(11755),n(12133),n(84925),n(66704),n(91572),n(634),n(2122),n(29876),n(9360),n(15446),n(18428),n(82345),n(57148),n(37753),n(6479),n(87275),n(82575),n(73712),n(82979),n(6160),n(61849),n(25540),n(30896),n(20936),n(10040),n(5923),n(85246),n(97635),n(68774),n(8373),n(29706),n(86964),n(34630),n(75389),n(81244),n(89981),n(33807),n(62627),n(34950),n(61964),n(73302),n(3214),n(61023),n(88880),n(83011),n(285),n(79419),n(22161),n(71788),n(97326),n(72362),n(79155),n(92798),n(61544);var r=n(79775);e.exports=r},29944:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},81378:(e,t,n)=>{var r=n(28759);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},78669:(e,t,n)=>{var r=n(50211),o=n(44710),a=n(77826),i=r("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},99966:(e,t,n)=>{"use strict";var r=n(83448).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},51855:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},56112:(e,t,n)=>{var r=n(28759);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},90656:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},83466:(e,t,n)=>{"use strict";var r,o=n(90656),a=n(25283),i=n(22086),s=n(28759),l=n(63167),c=n(90375),u=n(72585),f=n(11007),d=n(77826).f,p=n(62130),h=n(77530),g=n(50211),m=n(65422),v=i.Int8Array,y=v&&v.prototype,b=i.Uint8ClampedArray,x=b&&b.prototype,w=v&&p(v),k=y&&p(y),_=Object.prototype,S=_.isPrototypeOf,E=g("toStringTag"),C=m("TYPED_ARRAY_TAG"),M=o&&!!h&&"Opera"!==c(i.opera),L=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},A=function(e){if(!s(e))return!1;var t=c(e);return l(O,t)||l(P,t)};for(r in O)i[r]||(M=!1);if((!M||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},M))for(r in O)i[r]&&h(i[r],w);if((!M||!k||k===_)&&(k=w.prototype,M))for(r in O)i[r]&&h(i[r].prototype,k);if(M&&p(x)!==k&&h(x,k),a&&!l(k,E))for(r in L=!0,d(k,E,{get:function(){return s(this)?this[C]:void 0}}),O)i[r]&&u(i[r],C,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:L&&C,aTypedArray:function(e){if(A(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(S.call(w,e))return e}else for(var t in O)if(l(O,r)){var n=i[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(a){if(n)for(var r in O){var o=i[r];o&&l(o.prototype,e)&&delete o.prototype[e]}k[e]&&!n||f(k,e,n?t:M&&y[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(a){if(h){if(n)for(r in O)(o=i[r])&&l(o,e)&&delete o[e];if(w[e]&&!n)return;try{return f(w,e,n?t:M&&v[e]||t)}catch(e){}}for(r in O)!(o=i[r])||o[e]&&!n||f(o,e,t)}},isView:function(e){if(!s(e))return!1;var t=c(e);return"DataView"===t||l(O,t)||l(P,t)},isTypedArray:A,TypedArray:w,TypedArrayPrototype:k}},99185:(e,t,n)=>{"use strict";var r=n(22086),o=n(25283),a=n(90656),i=n(72585),s=n(49431),l=n(63677),c=n(51855),u=n(59679),f=n(24005),d=n(13687),p=n(23339),h=n(62130),g=n(77530),m=n(20062).f,v=n(77826).f,y=n(20435),b=n(70914),x=n(83278),w=x.get,k=x.set,_="ArrayBuffer",S="DataView",E="Wrong index",C=r.ArrayBuffer,M=C,L=r.DataView,O=L&&L.prototype,P=Object.prototype,A=r.RangeError,T=p.pack,I=p.unpack,j=function(e){return[255&e]},R=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},N=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return T(e,23,4)},z=function(e){return T(e,52,8)},F=function(e,t){v(e.prototype,t,{get:function(){return w(this)[t]}})},G=function(e,t,n,r){var o=d(n),a=w(e);if(o+t>a.byteLength)throw A(E);var i=w(a.buffer).bytes,s=o+a.byteOffset,l=i.slice(s,s+t);return r?l:l.reverse()},U=function(e,t,n,r,o,a){var i=d(n),s=w(e);if(i+t>s.byteLength)throw A(E);for(var l=w(s.buffer).bytes,c=i+s.byteOffset,u=r(+o),f=0;fZ;)(B=V[Z++])in M||i(M,B,C[B]);W.constructor=M}g&&h(O)!==P&&g(O,P);var $=new L(new M(2)),q=O.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||s(O,{setInt8:function(e,t){q.call(this,e,t<<24>>24)},setUint8:function(e,t){q.call(this,e,t<<24>>24)}},{unsafe:!0})}else M=function(e){c(this,M,_);var t=d(e);k(this,{bytes:y.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},L=function(e,t,n){c(this,L,S),c(e,M,S);var r=w(e).byteLength,a=u(t);if(a<0||a>r)throw A("Wrong offset");if(a+(n=void 0===n?r-a:f(n))>r)throw A("Wrong length");k(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(F(M,"byteLength"),F(L,"buffer"),F(L,"byteLength"),F(L,"byteOffset")),s(L.prototype,{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return N(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return N(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return I(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return I(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){U(this,1,e,j,t)},setUint8:function(e,t){U(this,1,e,j,t)},setInt16:function(e,t){U(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){U(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){U(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){U(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){U(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){U(this,8,e,z,t,arguments.length>2?arguments[2]:void 0)}});b(M,_),b(L,S),e.exports={ArrayBuffer:M,DataView:L}},70990:(e,t,n)=>{"use strict";var r=n(3060),o=n(7740),a=n(24005),i=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),l=o(e,s),c=o(t,s),u=arguments.length>2?arguments[2]:void 0,f=i((void 0===u?s:o(u,s))-c,s-l),d=1;for(c0;)c in n?n[l]=n[c]:delete n[l],l+=d,c+=d;return n}},20435:(e,t,n)=>{"use strict";var r=n(3060),o=n(7740),a=n(24005);e.exports=function(e){for(var t=r(this),n=a(t.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},21984:(e,t,n)=>{"use strict";var r=n(28062).forEach,o=n(72802)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},21842:(e,t,n)=>{"use strict";var r=n(18516),o=n(3060),a=n(47850),i=n(92814),s=n(24005),l=n(89720),c=n(61667);e.exports=function(e){var t,n,u,f,d,p,h=o(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=c(h),x=0;if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),null==b||g==Array&&i(b))for(n=new g(t=s(h.length));t>x;x++)p=y?v(h[x],x):h[x],l(n,x,p);else for(d=(f=b.call(h)).next,n=new g;!(u=d.call(f)).done;x++)p=y?a(f,v,[u.value,x],!0):u.value,l(n,x,p);return n.length=x,n}},56198:(e,t,n)=>{var r=n(64088),o=n(24005),a=n(7740),i=function(e){return function(t,n,i){var s,l=r(t),c=o(l.length),u=a(i,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},28062:(e,t,n)=>{var r=n(18516),o=n(95974),a=n(3060),i=n(24005),s=n(85574),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,g,m,v){for(var y,b,x=a(h),w=o(x),k=r(g,m,3),_=i(w.length),S=0,E=v||s,C=t?E(h,_):n||d?E(h,0):void 0;_>S;S++)if((p||S in w)&&(b=k(y=w[S],S,x),e))if(t)C[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(C,y)}else switch(e){case 4:return!1;case 7:l.call(C,y)}return f?-1:c||u?u:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},71739:(e,t,n)=>{"use strict";var r=n(64088),o=n(59679),a=n(24005),i=n(72802),s=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=i("lastIndexOf"),f=c||!u;e.exports=f?function(e){if(c)return l.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=s(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:l},69955:(e,t,n)=>{var r=n(63677),o=n(50211),a=n(21448),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},72802:(e,t,n)=>{"use strict";var r=n(63677);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},18758:(e,t,n)=>{var r=n(29944),o=n(3060),a=n(95974),i=n(24005),s=function(e){return function(t,n,s,l){r(n);var c=o(t),u=a(c),f=i(c.length),d=e?f-1:0,p=e?-1:1;if(s<2)for(;;){if(d in u){l=u[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in u&&(l=n(l,u[d],d,c));return l}};e.exports={left:s(!1),right:s(!0)}},85574:(e,t,n)=>{var r=n(28759),o=n(46526),a=n(50211)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},47850:(e,t,n)=>{var r=n(56112),o=n(26737);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},68939:(e,t,n)=>{var r=n(50211)("iterator"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},52306:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},90375:(e,t,n)=>{var r=n(12371),o=n(52306),a=n(50211)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=r?o: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(e){}}(t=Object(e),a))?n:i?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},75204:(e,t,n)=>{"use strict";var r=n(77826).f,o=n(44710),a=n(49431),i=n(18516),s=n(51855),l=n(94722),c=n(98432),u=n(67420),f=n(25283),d=n(12423).fastKey,p=n(83278),h=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){s(e,u,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})})),p=g(t),m=function(e,t,n){var r,o,a=p(e),i=v(e,t);return i?i.value=n:(a.last=i={index:o=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},v=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(u.prototype,{clear:function(){for(var e=p(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,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=v(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),a(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),a=g(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(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),u(t)}}},29872:(e,t,n)=>{"use strict";var r=n(49431),o=n(12423).getWeakData,a=n(56112),i=n(28759),s=n(51855),l=n(94722),c=n(28062),u=n(63167),f=n(83278),d=f.set,p=f.getterFor,h=c.find,g=c.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){s(e,f,t),d(e,{type:t,id:m++,frozen:void 0}),null!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})})),h=p(t),g=function(e,t,n){var r=h(e),i=o(a(t),!0);return!0===i?v(r).set(t,n):i[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=h(this);if(!i(e))return!1;var n=o(e);return!0===n?v(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!i(e))return!1;var n=o(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=h(this);if(i(e)){var n=o(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),f}}},14909:(e,t,n)=>{"use strict";var r=n(51695),o=n(22086),a=n(67189),i=n(11007),s=n(12423),l=n(94722),c=n(51855),u=n(28759),f=n(63677),d=n(68939),p=n(70914),h=n(15070);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",y=o[e],b=y&&y.prototype,x=y,w={},k=function(e){var t=b[e];i(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))x=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(a(e,!0)){var _=new x,S=_[v](m?{}:-0,1)!=_,E=f((function(){_.has(1)})),C=d((function(e){new y(e)})),M=!m&&f((function(){for(var e=new y,t=5;t--;)e[v](t,t);return!e.has(-0)}));C||((x=t((function(t,n){c(t,x,e);var r=h(new y,t,x);return null!=n&&l(n,r[v],{that:r,AS_ENTRIES:g}),r}))).prototype=b,b.constructor=x),(E||M)&&(k("delete"),k("has"),g&&k("get")),(M||S)&&k(v),m&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=y},w),p(x,e),m||n.setStrong(x,e,g),x}},48474:(e,t,n)=>{var r=n(63167),o=n(46095),a=n(94399),i=n(77826);e.exports=function(e,t){for(var n=o(t),s=i.f,l=a.f,c=0;c{var r=n(50211)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},47209:(e,t,n)=>{var r=n(63677);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},31068:(e,t,n)=>{var r=n(69586),o=/"/g;e.exports=function(e,t,n,a){var i=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(a).replace(o,""")+'"'),s+">"+i+""}},60471:(e,t,n)=>{"use strict";var r=n(13083).IteratorPrototype,o=n(44710),a=n(55736),i=n(70914),s=n(97719),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,c,!1,!0),s[c]=l,e}},72585:(e,t,n)=>{var r=n(25283),o=n(77826),a=n(55736);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},55736:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},89720:(e,t,n)=>{"use strict";var r=n(1288),o=n(77826),a=n(55736);e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},81597:(e,t,n)=>{"use strict";var r=n(63677),o=n(37453).start,a=Math.abs,i=Date.prototype,s=i.getTime,l=i.toISOString;e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!r((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+o(a(t),r?6:4,0)+"-"+o(e.getUTCMonth()+1,2,0)+"-"+o(e.getUTCDate(),2,0)+"T"+o(e.getUTCHours(),2,0)+":"+o(e.getUTCMinutes(),2,0)+":"+o(e.getUTCSeconds(),2,0)+"."+o(n,3,0)+"Z"}:l},86481:(e,t,n)=>{"use strict";var r=n(56112),o=n(1288);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},98432:(e,t,n)=>{"use strict";var r=n(51695),o=n(60471),a=n(62130),i=n(77530),s=n(70914),l=n(72585),c=n(11007),u=n(50211),f=n(43296),d=n(97719),p=n(13083),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",b="entries",x=function(){return this};e.exports=function(e,t,n,u,p,w,k){o(n,t,u);var _,S,E,C=function(e){if(e===p&&A)return A;if(!g&&e in O)return O[e];switch(e){case v:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",L=!1,O=e.prototype,P=O[m]||O["@@iterator"]||p&&O[p],A=!g&&P||C(p),T="Array"==t&&O.entries||P;if(T&&(_=a(T.call(new e)),h!==Object.prototype&&_.next&&(f||a(_)===h||(i?i(_,h):"function"!=typeof _[m]&&l(_,m,x)),s(_,M,!0,!0),f&&(d[M]=x))),p==y&&P&&P.name!==y&&(L=!0,A=function(){return P.call(this)}),f&&!k||O[m]===A||l(O,m,A),d[t]=A,p)if(S={values:C(y),keys:w?A:C(v),entries:C(b)},k)for(E in S)(g||L||!(E in O))&&c(O,E,S[E]);else r({target:t,proto:!0,forced:g||L},S);return S}},64145:(e,t,n)=>{var r=n(79775),o=n(63167),a=n(69251),i=n(77826).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},25283:(e,t,n)=>{var r=n(63677);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},20821:(e,t,n)=>{var r=n(22086),o=n(28759),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},933:e=>{e.exports={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}},84344:(e,t,n)=>{var r=n(4999);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},81801:(e,t,n)=>{var r=n(52306),o=n(22086);e.exports="process"==r(o.process)},54928:(e,t,n)=>{var r=n(4999);e.exports=/web0s(?!.*chrome)/i.test(r)},4999:(e,t,n)=>{var r=n(10563);e.exports=r("navigator","userAgent")||""},21448:(e,t,n)=>{var r,o,a=n(22086),i=n(4999),s=a.process,l=s&&s.versions,c=l&&l.v8;c?o=(r=c.split("."))[0]+r[1]:i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},58684:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51695:(e,t,n)=>{var r=n(22086),o=n(94399).f,a=n(72585),i=n(11007),s=n(83648),l=n(48474),c=n(67189);e.exports=function(e,t){var n,u,f,d,p,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!c(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),i(n,u,d,e)}}},63677:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},82331:(e,t,n)=>{"use strict";n(52077);var r=n(11007),o=n(63677),a=n(50211),i=n(84861),s=n(72585),l=a("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),u="$0"==="a".replace(/./,"$0"),f=a("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=a(e),g=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=g&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!g||!m||"replace"===e&&(!c||!u||d)||"split"===e&&!p){var v=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===i?g&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],x=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},27561:(e,t,n)=>{"use strict";var r=n(46526),o=n(24005),a=n(18516),i=function(e,t,n,s,l,c,u,f){for(var d,p=l,h=0,g=!!u&&a(u,f,3);h0&&r(d))p=i(e,t,d,o(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=i},66910:(e,t,n)=>{var r=n(63677);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},18516:(e,t,n)=>{var r=n(29944);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},32395:(e,t,n)=>{"use strict";var r=n(29944),o=n(28759),a=[].slice,i={},s=function(e,t,n){if(!(t in i)){for(var r=[],o=0;o{var r=n(79775),o=n(22086),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},61667:(e,t,n)=>{var r=n(90375),o=n(97719),a=n(50211)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||o[r(e)]}},73546:(e,t,n)=>{var r=n(56112),o=n(61667);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},18509:(e,t,n)=>{var r=n(3060),o=Math.floor,a="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var f=n+e.length,d=l.length,p=s;return void 0!==c&&(c=r(c),p=i),a.call(u,p,(function(r,a){var i;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":i=c[a.slice(1,-1)];break;default:var s=+a;if(0===s)return r;if(s>d){var u=o(s/10);return 0===u?r:u<=d?void 0===l[u-1]?a.charAt(1):l[u-1]+a.charAt(1):r}i=l[s-1]}return void 0===i?"":i}))}},22086:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},63167:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},7153:e=>{e.exports={}},71670:(e,t,n)=>{var r=n(22086);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},25963:(e,t,n)=>{var r=n(10563);e.exports=r("document","documentElement")},26761:(e,t,n)=>{var r=n(25283),o=n(63677),a=n(20821);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},23339:e=>{var t=Math.abs,n=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,i,s){var l,c,u,f=new Array(s),d=8*s-i-1,p=(1<>1,g=23===i?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(c=e!=e?1:0,l=p):(l=r(o(e)/a),e*(u=n(2,-l))<1&&(l--,u*=2),(e+=l+h>=1?g/u:g*n(2,1-h))*u>=2&&(l++,u/=2),l+h>=p?(c=0,l=p):l+h>=1?(c=(e*u-1)*n(2,i),l+=h):(c=e*n(2,h-1)*n(2,i),l=0));i>=8;f[v++]=255&c,c/=256,i-=8);for(l=l<0;f[v++]=255&l,l/=256,d-=8);return f[--v]|=128*m,f},unpack:function(e,t){var r,o=e.length,a=8*o-t-1,i=(1<>1,l=a-7,c=o-1,u=e[c--],f=127&u;for(u>>=7;l>0;f=256*f+e[c],c--,l-=8);for(r=f&(1<<-l)-1,f>>=-l,l+=t;l>0;r=256*r+e[c],c--,l-=8);if(0===f)f=1-s;else{if(f===i)return r?NaN:u?-1/0:1/0;r+=n(2,t),f-=s}return(u?-1:1)*r*n(2,f-t)}}},95974:(e,t,n)=>{var r=n(63677),o=n(52306),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},15070:(e,t,n)=>{var r=n(28759),o=n(77530);e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},39277:(e,t,n)=>{var r=n(74489),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},12423:(e,t,n)=>{var r=n(7153),o=n(28759),a=n(63167),i=n(77826).f,s=n(65422),l=n(66910),c=s("meta"),u=0,f=Object.isExtensible||function(){return!0},d=function(e){i(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!a(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return l&&p.REQUIRED&&f(e)&&!a(e,c)&&d(e),e}};r[c]=!0},83278:(e,t,n)=>{var r,o,a,i=n(9316),s=n(22086),l=n(28759),c=n(72585),u=n(63167),f=n(74489),d=n(88944),p=n(7153),h=s.WeakMap;if(i){var g=f.state||(f.state=new h),m=g.get,v=g.has,y=g.set;r=function(e,t){return t.facade=e,y.call(g,e,t),t},o=function(e){return m.call(g,e)||{}},a=function(e){return v.call(g,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return t.facade=e,c(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},92814:(e,t,n)=>{var r=n(50211),o=n(97719),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},46526:(e,t,n)=>{var r=n(52306);e.exports=Array.isArray||function(e){return"Array"==r(e)}},67189:(e,t,n)=>{var r=n(63677),o=/#|\.prototype\./,a=function(e,t){var n=s[i(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},24251:(e,t,n)=>{var r=n(28759),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},28759:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},43296:e=>{e.exports=!1},67994:(e,t,n)=>{var r=n(28759),o=n(52306),a=n(50211)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},94722:(e,t,n)=>{var r=n(56112),o=n(92814),a=n(24005),i=n(18516),s=n(61667),l=n(26737),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,f,d,p,h,g,m,v=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=i(t,v,1+y+x),k=function(e){return u&&l(u),new c(!0,e)},_=function(e){return y?(r(e),x?w(e[0],e[1],k):w(e[0],e[1])):x?w(e,k):w(e)};if(b)u=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(o(f)){for(d=0,p=a(e.length);p>d;d++)if((h=_(e[d]))&&h instanceof c)return h;return new c(!1)}u=f.call(e)}for(g=u.next;!(m=g.call(u)).done;){try{h=_(m.value)}catch(e){throw l(u),e}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},26737:(e,t,n)=>{var r=n(56112);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},13083:(e,t,n)=>{"use strict";var r,o,a,i=n(63677),s=n(62130),l=n(72585),c=n(63167),u=n(50211),f=n(43296),d=u("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(o=s(s(a)))!==Object.prototype&&(r=o):p=!0);var h=null==r||i((function(){var e={};return r[d].call(e)!==e}));h&&(r={}),f&&!h||c(r,d)||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},97719:e=>{e.exports={}},26044:e=>{var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},23682:(e,t,n)=>{var r=n(64638),o=Math.abs,a=Math.pow,i=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),c=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=o(e),u=r(e);return al||n!=n?u*(1/0):u*n}},67819:e=>{var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},64638:e=>{e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},43173:(e,t,n)=>{var r,o,a,i,s,l,c,u,f=n(22086),d=n(94399).f,p=n(84953).set,h=n(84344),g=n(54928),m=n(81801),v=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,x=f.Promise,w=d(f,"queueMicrotask"),k=w&&w.value;k||(r=function(){var e,t;for(m&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():a=void 0,e}}a=void 0,e&&e.enter()},h||m||g||!v||!y?x&&x.resolve?(c=x.resolve(void 0),u=c.then,i=function(){u.call(c,r)}):i=m?function(){b.nextTick(r)}:function(){p.call(f,r)}:(s=!0,l=y.createTextNode(""),new v(r).observe(l,{characterData:!0}),i=function(){l.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},8109:(e,t,n)=>{var r=n(22086);e.exports=r.Promise},73193:(e,t,n)=>{var r=n(81801),o=n(21448),a=n(63677);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){return!Symbol.sham&&(r?38===o:o>37&&o<41)}))},54634:(e,t,n)=>{var r=n(63677),o=n(50211),a=n(43296),i=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9316:(e,t,n)=>{var r=n(22086),o=n(39277),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(o(a))},98722:(e,t,n)=>{"use strict";var r=n(29944),o=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=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},77725:(e,t,n)=>{var r=n(67994);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},87954:(e,t,n)=>{var r=n(22086).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},72252:(e,t,n)=>{var r=n(22086),o=n(74080).trim,a=n(59439),i=r.parseFloat,s=1/i(a+"-0")!=-1/0;e.exports=s?function(e){var t=o(String(e)),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},12194:(e,t,n)=>{var r=n(22086),o=n(74080).trim,a=n(59439),i=r.parseInt,s=/^[+-]?0[Xx]/,l=8!==i(a+"08")||22!==i(a+"0x16");e.exports=l?function(e,t){var n=o(String(e));return i(n,t>>>0||(s.test(n)?16:10))}:i},88675:(e,t,n)=>{"use strict";var r=n(25283),o=n(63677),a=n(68779),i=n(66952),s=n(7446),l=n(3060),c=n(95974),u=Object.assign,f=Object.defineProperty;e.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||a(u({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,u=1,f=i.f,d=s.f;o>u;)for(var p,h=c(arguments[u++]),g=f?a(h).concat(f(h)):a(h),m=g.length,v=0;m>v;)p=g[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},44710:(e,t,n)=>{var r,o=n(56112),a=n(77711),i=n(58684),s=n(7153),l=n(25963),c=n(20821),u=n(88944)("IE_PROTO"),f=function(){},d=function(e){return"