@perses-dev/timeseries-chart-plugin 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/__mf/css/async/442.d3010b86.css +1 -0
  2. package/__mf/css/async/61.d3010b86.css +1 -0
  3. package/__mf/css/async/823.d3010b86.css +1 -0
  4. package/__mf/js/TimeSeriesChart.95aa233e.js +6 -0
  5. package/__mf/js/async/109.dc414292.js +110 -0
  6. package/__mf/js/async/{964.719c530c.js → 121.a742c022.js} +2 -2
  7. package/__mf/js/async/{488.031fc875.js → 177.97e14ed0.js} +1 -1
  8. package/__mf/js/async/192.30450189.js +1 -0
  9. package/__mf/js/async/197.e065f9da.js +1 -0
  10. package/__mf/js/async/2.68ee9e1b.js +1 -0
  11. package/__mf/js/async/235.a53a2591.js +1 -0
  12. package/__mf/js/async/252.85ae7558.js +22 -0
  13. package/__mf/js/async/274.8e8950b6.js +2 -0
  14. package/__mf/js/async/356.dee0f34a.js +1 -0
  15. package/__mf/js/async/392.fa5c2b2f.js +2 -0
  16. package/__mf/js/async/437.aa3568c0.js +2 -0
  17. package/__mf/js/async/440.020f91d3.js +7 -0
  18. package/__mf/js/async/470.4c93905a.js +2 -0
  19. package/__mf/js/async/491.35fc6280.js +1 -0
  20. package/__mf/js/async/{62.f24fce0a.js → 558.5a41ebcc.js} +1 -1
  21. package/__mf/js/async/{214.37696543.js → 587.40becf9b.js} +1 -1
  22. package/__mf/js/async/588.33924c3f.js +1 -0
  23. package/__mf/js/async/591.9d963c5f.js +38 -0
  24. package/__mf/js/async/616.6d37f37b.js +1 -0
  25. package/__mf/js/async/702.5d93a78a.js +2 -0
  26. package/__mf/js/async/71.e481dbdb.js +1 -0
  27. package/__mf/js/async/724.5594af97.js +1 -0
  28. package/__mf/js/async/873.11e0e15e.js +1 -0
  29. package/__mf/js/async/941.5331fb70.js +2 -0
  30. package/__mf/js/async/{738.c37f7bca.js → 968.2ea36b8a.js} +1 -1
  31. package/__mf/js/async/978.844227d5.js +1 -0
  32. package/__mf/js/async/__federation_expose_TimeSeriesChart.340a97c5.js +3 -0
  33. package/__mf/js/async/lib-router.54d80a0a.js +2 -0
  34. package/__mf/js/main.fa8f2974.js +6 -0
  35. package/lib/GeneralSettingsEditor.js +1 -1
  36. package/lib/GeneralSettingsEditor.js.map +1 -1
  37. package/lib/QuerySettingsEditor.js +1 -1
  38. package/lib/QuerySettingsEditor.js.map +1 -1
  39. package/lib/TimeSeriesChartBase.js +1 -1
  40. package/lib/TimeSeriesChartBase.js.map +1 -1
  41. package/lib/TimeSeriesChartPanel.js +2 -3
  42. package/lib/TimeSeriesChartPanel.js.map +1 -1
  43. package/lib/TimeSeriesExportAction.js +1 -1
  44. package/lib/TimeSeriesExportAction.js.map +1 -1
  45. package/lib/VisualOptionsEditor.js +1 -1
  46. package/lib/VisualOptionsEditor.js.map +1 -1
  47. package/lib/YAxisOptionsEditor.js +1 -1
  48. package/lib/YAxisOptionsEditor.js.map +1 -1
  49. package/lib/bootstrap.js +1 -1
  50. package/lib/bootstrap.js.map +1 -1
  51. package/lib/cjs/CSVExportUtils.js +9 -9
  52. package/lib/cjs/TimeSeriesChartPanel.js +1 -2
  53. package/lib/cjs/index-federation.js +12 -12
  54. package/lib/cjs/test/mock-query-results.js +6 -6
  55. package/lib/cjs/time-series-chart-model.js +21 -21
  56. package/lib/cjs/utils/data-transform.js +10 -10
  57. package/lib/cjs/utils/palette-gen.js +5 -5
  58. package/lib/cjs/utils/palette.js +3 -3
  59. package/mf-manifest.json +35 -35
  60. package/mf-stats.json +35 -35
  61. package/package.json +5 -5
  62. package/__mf/css/async/263.9a1fa3dd.css +0 -1
  63. package/__mf/css/async/341.9a1fa3dd.css +0 -1
  64. package/__mf/css/async/759.9a1fa3dd.css +0 -1
  65. package/__mf/js/TimeSeriesChart.3336f08d.js +0 -5
  66. package/__mf/js/async/173.58a1dc61.js +0 -2
  67. package/__mf/js/async/223.8e26d3d3.js +0 -7
  68. package/__mf/js/async/224.2d3ce51f.js +0 -1
  69. package/__mf/js/async/238.959f0362.js +0 -1
  70. package/__mf/js/async/292.9efc6a73.js +0 -1
  71. package/__mf/js/async/327.de3dd754.js +0 -38
  72. package/__mf/js/async/402.96f04a89.js +0 -1
  73. package/__mf/js/async/409.97dde548.js +0 -1
  74. package/__mf/js/async/476.23a59a72.js +0 -1
  75. package/__mf/js/async/53.8edfe937.js +0 -2
  76. package/__mf/js/async/613.20f15bb7.js +0 -1
  77. package/__mf/js/async/651.e0c9e225.js +0 -1
  78. package/__mf/js/async/694.ebf24a00.js +0 -1
  79. package/__mf/js/async/740.f0e8d499.js +0 -1
  80. package/__mf/js/async/75.ef138797.js +0 -1
  81. package/__mf/js/async/770.e129dd07.js +0 -1
  82. package/__mf/js/async/797.72ff552e.js +0 -2
  83. package/__mf/js/async/863.f147d2ba.js +0 -2
  84. package/__mf/js/async/943.fac0d13f.js +0 -110
  85. package/__mf/js/async/960.cd399075.js +0 -2
  86. package/__mf/js/async/968.ff41bef8.js +0 -22
  87. package/__mf/js/async/981.e360e7df.js +0 -2
  88. package/__mf/js/async/__federation_expose_TimeSeriesChart.4754e5df.js +0 -3
  89. package/__mf/js/async/lib-router.25a1f509.js +0 -2
  90. package/__mf/js/main.67fa67df.js +0 -5
  91. /package/__mf/js/async/{943.fac0d13f.js.LICENSE.txt → 109.dc414292.js.LICENSE.txt} +0 -0
  92. /package/__mf/js/async/{964.719c530c.js.LICENSE.txt → 121.a742c022.js.LICENSE.txt} +0 -0
  93. /package/__mf/js/async/{968.ff41bef8.js.LICENSE.txt → 252.85ae7558.js.LICENSE.txt} +0 -0
  94. /package/__mf/js/async/{960.cd399075.js.LICENSE.txt → 274.8e8950b6.js.LICENSE.txt} +0 -0
  95. /package/__mf/js/async/{981.e360e7df.js.LICENSE.txt → 392.fa5c2b2f.js.LICENSE.txt} +0 -0
  96. /package/__mf/js/async/{53.8edfe937.js.LICENSE.txt → 437.aa3568c0.js.LICENSE.txt} +0 -0
  97. /package/__mf/js/async/{223.8e26d3d3.js.LICENSE.txt → 440.020f91d3.js.LICENSE.txt} +0 -0
  98. /package/__mf/js/async/{173.58a1dc61.js.LICENSE.txt → 470.4c93905a.js.LICENSE.txt} +0 -0
  99. /package/__mf/js/async/{797.72ff552e.js.LICENSE.txt → 702.5d93a78a.js.LICENSE.txt} +0 -0
  100. /package/__mf/js/async/{863.f147d2ba.js.LICENSE.txt → 941.5331fb70.js.LICENSE.txt} +0 -0
  101. /package/__mf/js/async/{lib-router.25a1f509.js.LICENSE.txt → lib-router.54d80a0a.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 53.8edfe937.js.LICENSE.txt */
2
- (self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["53"],{14046:function(t,r,e){"use strict";e.d(r,{Dc:()=>s,FB:()=>a,K2:()=>n,c7:()=>i,gO:()=>o});let n="last",i={first:function(t){return a(t,"first")},last:function(t){return a(t,"last")},"first-number":function(t){return a(t,"first-number")},"last-number":function(t){return a(t,"last-number")},mean:function(t){return a(t,"mean")},sum:function(t){return a(t,"sum")},min:function(t){return a(t,"min")},max:function(t){return a(t,"max")}},o={first:{label:"First",description:"First value"},last:{label:"Last",description:"Last value"},"first-number":{label:"First *",description:"First numeric value"},"last-number":{label:"Last *",description:"Last numeric value"},mean:{label:"Avg",description:"Average value excluding nulls"},sum:{label:"Sum",description:"The sum of all values"},min:{label:"Min",description:"Minimum value"},max:{label:"Max",description:"Maximum value"}};function s(t,r){let e=r.reduce((t,r)=>(t[r]=void 0,t),{}),n=0,i=0;return t.forEach((r,o)=>{let s=r[1];0===o&&"first"in e&&(e.first=s),o===t.length-1&&"last"in e&&(e.last=s),"number"==typeof s&&(n+=1,i+=s,"first-number"in e&&void 0===e["first-number"]&&(e["first-number"]=s),"last-number"in e&&(e["last-number"]=s),"min"in e&&("number"!=typeof e.min?e.min=s:e.min=Math.min(e.min,s)),"max"in e&&("number"!=typeof e.max?e.max=s:e.max=Math.max(e.max,s)))}),n>0&&"sum"in e&&(e.sum=i),n>0&&"mean"in e&&(e.mean=i/n),e}function a(t,r){return s(t,[r])[r]}},69481:function(t,r,e){"use strict";e.d(r,{C5:()=>ek,m6:()=>eD,Rj:()=>ej});var n=e(70252);function i(t){return"number"==typeof t}function o(t){return!!t&&"object"==typeof t&&"function"==typeof t.constructor&&(!0===t.isBigNumber&&"object"==typeof t.constructor.prototype&&!0===t.constructor.prototype.isBigNumber||"function"==typeof t.constructor.isDecimal&&!0===t.constructor.isDecimal(t))}function s(t){return t&&"object"==typeof t&&!0===Object.getPrototypeOf(t).isComplex||!1}function a(t){return t&&"object"==typeof t&&!0===Object.getPrototypeOf(t).isFraction||!1}function u(t){return t&&!0===t.constructor.prototype.isUnit||!1}function f(t){return"string"==typeof t}var c=Array.isArray;function h(t){return t&&!0===t.constructor.prototype.isMatrix||!1}function p(t){return Array.isArray(t)||h(t)}function l(t){return t&&t.isDenseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function d(t){return t&&t.isSparseMatrix&&!0===t.constructor.prototype.isMatrix||!1}function m(t){return t&&!0===t.constructor.prototype.isRange||!1}function g(t){return t&&!0===t.constructor.prototype.isIndex||!1}function v(t){return"boolean"==typeof t}function y(t){return t&&!0===t.constructor.prototype.isResultSet||!1}function w(t){return t&&!0===t.constructor.prototype.isHelp||!1}function x(t){return"function"==typeof t}function b(t){return t instanceof Date}function N(t){return t instanceof RegExp}function _(t){return!!(t&&"object"==typeof t&&t.constructor===Object&&!s(t)&&!a(t))}function M(t){return null===t}function E(t){return void 0===t}function O(t){return t&&!0===t.isAccessorNode&&!0===t.constructor.prototype.isNode||!1}function A(t){return t&&!0===t.isArrayNode&&!0===t.constructor.prototype.isNode||!1}function z(t){return t&&!0===t.isAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function S(t){return t&&!0===t.isBlockNode&&!0===t.constructor.prototype.isNode||!1}function F(t){return t&&!0===t.isConditionalNode&&!0===t.constructor.prototype.isNode||!1}function C(t){return t&&!0===t.isConstantNode&&!0===t.constructor.prototype.isNode||!1}function I(t){return t&&!0===t.isFunctionAssignmentNode&&!0===t.constructor.prototype.isNode||!1}function T(t){return t&&!0===t.isFunctionNode&&!0===t.constructor.prototype.isNode||!1}function j(t){return t&&!0===t.isIndexNode&&!0===t.constructor.prototype.isNode||!1}function D(t){return t&&!0===t.isNode&&!0===t.constructor.prototype.isNode||!1}function k(t){return t&&!0===t.isObjectNode&&!0===t.constructor.prototype.isNode||!1}function P(t){return t&&!0===t.isOperatorNode&&!0===t.constructor.prototype.isNode||!1}function R(t){return t&&!0===t.isParenthesisNode&&!0===t.constructor.prototype.isNode||!1}function B(t){return t&&!0===t.isRangeNode&&!0===t.constructor.prototype.isNode||!1}function q(t){return t&&!0===t.isSymbolNode&&!0===t.constructor.prototype.isNode||!1}function U(t){return t&&!0===t.constructor.prototype.isChain||!1}function L(t){var r=typeof t;return"object"===r?null===t?"null":Array.isArray(t)?"Array":t instanceof Date?"Date":t instanceof RegExp?"RegExp":o(t)?"BigNumber":s(t)?"Complex":a(t)?"Fraction":h(t)?"Matrix":u(t)?"Unit":g(t)?"Index":m(t)?"Range":y(t)?"ResultSet":D(t)?t.type:U(t)?"Chain":w(t)?"Help":"Object":"function"===r?"Function":r}function Z(t){var r=typeof t;if("number"===r||"string"===r||"boolean"===r||null==t)return t;if("function"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map(function(t){return Z(t)});if(t instanceof Date)return new Date(t.valueOf());if(o(t))return t;if(t instanceof RegExp)throw TypeError("Cannot clone "+t);return J(t,Z)}function J(t,r){var e={};for(var n in t)V(t,n)&&(e[n]=r(t[n]));return e}function W(t,r){var e,n,i;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(n=0,i=t.length;n<i;n++)if(!W(t[n],r[n]))return!1;return!0}if("function"==typeof t)return t===r;if(!(t instanceof Object))return t===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(e in t)if(!(e in r)||!W(t[e],r[e]))return!1;for(e in r)if(!(e in t))return!1;return!0}function H(t,r,e){var n,i=!0;Object.defineProperty(t,r,{get:function(){return i&&(n=e(),i=!1),n},set:function(t){n=t,i=!1},configurable:!0,enumerable:!0})}function V(t,r){return t&&Object.hasOwnProperty.call(t,r)}function $(t){return Object.keys(t).map(r=>t[r])}var Y=e(8317);function G(t,r,e,n){function i(n){var i=function(t,r){for(var e={},n=0;n<r.length;n++){var i=r[n],o=t[i];void 0!==o&&(e[i]=o)}return e}(n,r.map(K));return function(t,r,e){if(!r.filter(t=>{var r;return!((r=t)&&"?"===r[0])}).every(t=>void 0!==e[t])){var n=r.filter(t=>void 0===e[t]);throw Error('Cannot create function "'.concat(t,'", ')+"some dependencies are missing: ".concat(n.map(t=>'"'.concat(t,'"')).join(", "),"."))}}(t,r,n),e(i)}return i.isFactory=!0,i.fn=t,i.dependencies=r.slice().sort(),n&&(i.meta=n),i}function X(t){return"function"==typeof t&&"string"==typeof t.fn&&Array.isArray(t.dependencies)}function K(t){return t&&"?"===t[0]?t.slice(1):t}function Q(t){return"boolean"==typeof t||!!isFinite(t)&&t===Math.round(t)}function tt(t,r,e){var n="";if(e){if(e<1)throw Error("size must be in greater than 0");if(!Q(e))throw Error("size must be an integer");if(t>2**(e-1)-1||t<-(2**(e-1)))throw Error("Value must be in range [-2^".concat(e-1,", 2^").concat(e-1,"-1]"));if(!Q(t))throw Error("Value must be an integer");t<0&&(t+=2**e),n="i".concat(e)}var i="";return t<0&&(t=-t,i="-"),"".concat(i).concat({2:"0b",8:"0o",16:"0x"}[r]).concat(t.toString(r)).concat(n)}function tr(t,r){if("function"==typeof r)return r(t);if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(isNaN(t))return"NaN";var e,n,o="auto";if(r&&(r.notation&&(o=r.notation),i(r)?e=r:i(r.precision)&&(e=r.precision),r.wordSize)&&"number"!=typeof(n=r.wordSize))throw Error('Option "wordSize" must be a number');switch(o){case"fixed":return function(t,r){if(isNaN(t)||!isFinite(t))return String(t);var e=te(t),n="number"==typeof r?ti(e,e.exponent+1+r):e,i=n.coefficients,o=n.exponent+1,s=o+(r||0);return i.length<s&&(i=i.concat(to(s-i.length))),o<0&&(i=to(-o+1).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?"0.":"."),n.sign+i.join("")}(t,e);case"exponential":return tn(t,e);case"engineering":return function(t,r){if(isNaN(t)||!isFinite(t))return String(t);var e=ti(te(t),r),n=e.exponent,o=e.coefficients,s=n%3==0?n:n<0?n-3-n%3:n-n%3;if(i(r))for(;r>o.length||n-s+1>o.length;)o.push(0);else for(var a=Math.abs(n-s)-(o.length-1),u=0;u<a;u++)o.push(0);for(var f=Math.abs(n-s),c=1;f>0;)c++,f--;var h=o.slice(c).join(""),p=i(r)&&h.length||h.match(/[1-9]/)?"."+h:"",l=o.slice(0,c).join("")+p+"e"+(n>=0?"+":"")+s.toString();return e.sign+l}(t,e);case"bin":return tt(t,2,n);case"oct":return tt(t,8,n);case"hex":return tt(t,16,n);case"auto":return(function(t,r,e){if(isNaN(t)||!isFinite(t))return String(t);var n=e&&void 0!==e.lowerExp?e.lowerExp:-3,i=e&&void 0!==e.upperExp?e.upperExp:5,o=te(t),s=r?ti(o,r):o;if(s.exponent<n||s.exponent>=i)return tn(t,r);var a=s.coefficients,u=s.exponent;a.length<r&&(a=a.concat(to(r-a.length))),a=a.concat(to(u-a.length+1+(a.length<r?r-a.length:0))),a=to(-u).concat(a);var f=u>0?u:0;return f<a.length-1&&a.splice(f+1,0,"."),s.sign+a.join("")})(t,e,r&&r).replace(/((\.\d*?)(0+))($|e)/,function(){var t=arguments[2],r=arguments[4];return"."!==t?t+r:r});default:throw Error('Unknown notation "'+o+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function te(t){var r=String(t).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!r)throw SyntaxError("Invalid number "+t);var e=r[1],n=r[2],i=parseFloat(r[4]||"0"),o=n.indexOf(".");i+=-1!==o?o-1:n.length-1;var s=n.replace(".","").replace(/^0*/,function(t){return i-=t.length,""}).replace(/0*$/,"").split("").map(function(t){return parseInt(t)});return 0===s.length&&(s.push(0),i++),{sign:e,coefficients:s,exponent:i}}function tn(t,r){if(isNaN(t)||!isFinite(t))return String(t);var e=te(t),n=r?ti(e,r):e,i=n.coefficients,o=n.exponent;i.length<r&&(i=i.concat(to(r-i.length)));var s=i.shift();return n.sign+s+(i.length>0?"."+i.join(""):"")+"e"+(o>=0?"+":"")+o}function ti(t,r){for(var e={sign:t.sign,coefficients:t.coefficients,exponent:t.exponent},n=e.coefficients;r<=0;)n.unshift(0),e.exponent++,r++;if(n.length>r&&n.splice(r,n.length-r)[0]>=5){var i=r-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),e.exponent++,i++),i--,n[i]++}return e}function to(t){for(var r=[],e=0;e<t;e++)r.push(0);return r}var ts=Number.EPSILON||2220446049250313e-31;function ta(t,r,e){if(null==e)return t===r;if(t===r)return!0;if(isNaN(t)||isNaN(r))return!1;if(isFinite(t)&&isFinite(r)){var n=Math.abs(t-r);return n<ts||n<=Math.max(Math.abs(t),Math.abs(r))*e}return!1}function tu(t,r,e){var n=new t.constructor(2),i="";if(e){if(e<1)throw Error("size must be in greater than 0");if(!Q(e))throw Error("size must be an integer");if(t.greaterThan(n.pow(e-1).sub(1))||t.lessThan(n.pow(e-1).mul(-1)))throw Error("Value must be in range [-2^".concat(e-1,", 2^").concat(e-1,"-1]"));if(!t.isInteger())throw Error("Value must be an integer");t.lessThan(0)&&(t=t.add(n.pow(e))),i="i".concat(e)}switch(r){case 2:return"".concat(t.toBinary()).concat(i);case 8:return"".concat(t.toOctal()).concat(i);case 16:return"".concat(t.toHexadecimal()).concat(i);default:throw Error("Base ".concat(r," not supported "))}}function tf(t,r){return void 0!==r?t.toExponential(r-1):t.toExponential()}function tc(t,r){var e=function(t,r){var e;if("number"==typeof t)return tr(t,r);if(o(t))return function(t,r){if("function"==typeof r)return r(t);if(!t.isFinite())return t.isNaN()?"NaN":t.gt(0)?"Infinity":"-Infinity";var e="auto";if(void 0!==r&&(r.notation&&(e=r.notation),"number"==typeof r?h=r:r.precision&&(h=r.precision),r.wordSize)&&"number"!=typeof(p=r.wordSize))throw Error('Option "wordSize" must be a number');switch(e){case"fixed":return n=t,i=h,n.toFixed(i);case"exponential":return tf(t,h);case"engineering":return o=t,s=h,u=(a=o.e)%3==0?a:a<0?a-3-a%3:a-a%3,-1!==(c=(f=o.mul(Math.pow(10,-u))).toPrecision(s)).indexOf("e")&&(c=f.toString()),c+"e"+(a>=0?"+":"")+u.toString();case"bin":return tu(t,2,p);case"oct":return tu(t,8,p);case"hex":return tu(t,16,p);case"auto":var n,i,o,s,a,u,f,c,h,p,l=r&&void 0!==r.lowerExp?r.lowerExp:-3,d=r&&void 0!==r.upperExp?r.upperExp:5;if(t.isZero())return"0";var m=t.toSignificantDigits(h),g=m.e;return(g>=l&&g<d?m.toFixed():tf(t,h)).replace(/((\.\d*?)(0+))($|e)/,function(){var t=arguments[2],r=arguments[4];return"."!==t?t+r:r});default:throw Error('Unknown notation "'+e+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(t,r);if((e=t)&&"object"==typeof e&&"number"==typeof e.s&&"number"==typeof e.n&&"number"==typeof e.d)if(!r||"decimal"!==r.fraction)return t.s*t.n+"/"+t.d;else return t.toString();if(Array.isArray(t))return function t(r,e){if(!Array.isArray(r))return tc(r,e);for(var n="[",i=r.length,o=0;o<i;o++)0!==o&&(n+=", "),n+=t(r[o],e);return n+"]"}(t,r);if(f(t))return'"'+t+'"';if("function"==typeof t)return t.syntax?String(t.syntax):"function";if(t&&"object"==typeof t)if("function"==typeof t.format)return t.format(r);else return t&&t.toString(r)!==({}).toString()?t.toString(r):"{"+Object.keys(t).map(e=>'"'+e+'": '+tc(t[e],r)).join(", ")+"}";return String(t)}(t,r);return r&&"object"==typeof r&&"truncate"in r&&e.length>r.truncate?e.substring(0,r.truncate-3)+"...":e}function th(t,r,e){if(!(this instanceof th))throw SyntaxError("Constructor must be called with the new operator");this.actual=t,this.expected=r,this.relation=e,this.message="Dimension mismatch ("+(Array.isArray(t)?"["+t.join(", ")+"]":t)+" "+(this.relation||"!=")+" "+(Array.isArray(r)?"["+r.join(", ")+"]":r)+")",this.stack=Error().stack}function tp(t,r,e){if(!(this instanceof tp))throw SyntaxError("Constructor must be called with the new operator");this.index=t,arguments.length<3?(this.min=0,this.max=r):(this.min=r,this.max=e),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}function tl(t){for(var r=[];Array.isArray(t);)r.push(t.length),t=t[0];return r}function td(t,r){if(0===r.length){if(Array.isArray(t))throw new th(t.length,0)}else!function t(r,e,n){var i,o=r.length;if(o!==e[n])throw new th(o,e[n]);if(n<e.length-1){var s=n+1;for(i=0;i<o;i++){if(!Array.isArray(r[i]))throw new th(e.length-1,e.length,"<");t(r[i],e,s)}}else for(i=0;i<o;i++)if(Array.isArray(r[i]))throw new th(e.length+1,e.length,">")}(t,r,0)}function tm(t,r){if(!i(t)||!Q(t))throw TypeError("Index must be an integer (value: "+t+")");if(t<0||"number"==typeof r&&t>=r)throw new tp(t,r)}function tg(t,r,e){if(!Array.isArray(t)||!Array.isArray(r))throw TypeError("Array expected");if(0===r.length)throw Error("Resizing to scalar is not supported");return r.forEach(function(t){if(!i(t)||!Q(t)||t<0)throw TypeError("Invalid size, must contain positive integers (size: "+tc(r)+")")}),function t(r,e,n,i){var o,s,a=r.length,u=e[n],f=Math.min(a,u);if(r.length=u,n<e.length-1){var c=n+1;for(o=0;o<f;o++)Array.isArray(s=r[o])||(s=[s],r[o]=s),t(s,e,c,i);for(o=f;o<u;o++)s=[],r[o]=s,t(s,e,c,i)}else{for(o=0;o<f;o++)for(;Array.isArray(r[o]);)r[o]=r[o][0];for(o=f;o<u;o++)r[o]=i}}(t,r,0,void 0!==e?e:0),t}function tv(t,r){var e=ty(t),n=t.slice(),i=t.indexOf(-1);if(t.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0)if(r%e==0)n[i]=-r/e;else throw Error("Could not replace wildcard, since "+r+" is no multiple of "+-e);return n}function ty(t){return t.reduce((t,r)=>t*r,1)}function tw(t,r,e,n){var i=n||tl(t);if(e)for(var o=0;o<e;o++)t=[t],i.unshift(1);for(t=function t(r,e,n){var i,o;if(Array.isArray(r)){var s=n+1;for(i=0,o=r.length;i<o;i++)r[i]=t(r[i],e,s)}else for(var a=n;a<e;a++)r=[r];return r}(t,r,0);i.length<r;)i.push(1);return t}function tx(t,r){for(var e,n=0,i=0;i<t.length;i++){var o=t[i],s=Array.isArray(o);if(0===i&&s&&(n=o.length),s&&o.length!==n)return;var a=s?tx(o,r):r(o);if(void 0===e)e=a;else if(e!==a)return"mixed"}return e}function tb(t,r){return -1!==t.indexOf(r)}function tN(t,r,e,n){if(!(this instanceof tN))throw SyntaxError("Constructor must be called with the new operator");this.fn=t,this.count=r,this.min=e,this.max=n,this.message="Wrong number of arguments in function "+t+" ("+r+" provided, "+e+(null!=n?"-"+n:"")+" expected)",this.stack=Error().stack}th.prototype=RangeError(),th.prototype.constructor=RangeError,th.prototype.name="DimensionError",th.prototype.isDimensionError=!0,tp.prototype=RangeError(),tp.prototype.constructor=RangeError,tp.prototype.name="IndexError",tp.prototype.isIndexError=!0,tN.prototype=Error(),tN.prototype.constructor=Error,tN.prototype.name="ArgumentsError",tN.prototype.isArgumentsError=!0;var t_={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},tM=["Matrix","Array"],tE=["number","BigNumber","Fraction"];function tO(t,r,e){var n;void 0!==t[r]&&(n=t[r],-1===e.indexOf(n))&&console.warn('Warning: Unknown value "'+t[r]+'" for configuration option "'+r+'". Available options: '+e.map(t=>JSON.stringify(t)).join(", ")+".")}var tA,tz,tS="0123456789abcdef",tF="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",tC="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",tI={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},tT=!0,tj="[DecimalError] ",tD=tj+"Invalid argument: ",tk=tj+"Precision limit exceeded",tP=tj+"crypto unavailable",tR="[object Decimal]",tB=Math.floor,tq=Math.pow,tU=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,tL=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,tZ=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,tJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tW=tF.length-1,tH=tC.length-1,tV={toStringTag:tR};function t$(t){var r,e,n,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,r=1;r<i;r++)(e=7-(n=t[r]+"").length)&&(o+=t5(e)),o+=n;(e=7-(n=(s=t[r])+"").length)&&(o+=t5(e))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function tY(t,r,e){if(t!==~~t||t<r||t>e)throw Error(tD+t)}function tG(t,r,e,n){var i,o,s,a;for(o=t[0];o>=10;o/=10)--r;return--r<0?(r+=7,i=0):(i=Math.ceil((r+1)/7),r%=7),o=tq(10,7-r),a=t[i]%o|0,null==n?r<3?(0==r?a=a/100|0:1==r&&(a=a/10|0),s=e<4&&99999==a||e>3&&49999==a||5e4==a||0==a):s=(e<4&&a+1==o||e>3&&a+1==o/2)&&(t[i+1]/o/100|0)==tq(10,r-2)-1||(a==o/2||0==a)&&(t[i+1]/o/100|0)==0:r<4?(0==r?a=a/1e3|0:1==r?a=a/100|0:2==r&&(a=a/10|0),s=(n||e<4)&&9999==a||!n&&e>3&&4999==a):s=((n||e<4)&&a+1==o||!n&&e>3&&a+1==o/2)&&(t[i+1]/o/1e3|0)==tq(10,r-3)-1,s}function tX(t,r,e){for(var n,i,o=[0],s=0,a=t.length;s<a;){for(i=o.length;i--;)o[i]*=r;for(o[0]+=tS.indexOf(t.charAt(s++)),n=0;n<o.length;n++)o[n]>e-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/e|0,o[n]%=e)}return o.reverse()}tV.absoluteValue=tV.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),tQ(t)},tV.ceil=function(){return tQ(new this.constructor(this),this.e+1,2)},tV.clampedTo=tV.clamp=function(t,r){var e=this.constructor;if(t=new e(t),r=new e(r),!t.s||!r.s)return new e(NaN);if(t.gt(r))throw Error(tD+r);return 0>this.cmp(t)?t:this.cmp(r)>0?r:new e(this)},tV.comparedTo=tV.cmp=function(t){var r,e,n,i,o=this.d,s=(t=new this.constructor(t)).d,a=this.s,u=t.s;if(!o||!s)return a&&u?a!==u?a:o===s?0:!o^a<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?a:s[0]?-u:0;if(a!==u)return a;if(this.e!==t.e)return this.e>t.e^a<0?1:-1;for(r=0,e=(n=o.length)<(i=s.length)?n:i;r<e;++r)if(o[r]!==s[r])return o[r]>s[r]^a<0?1:-1;return n===i?0:n>i^a<0?1:-1},tV.cosine=tV.cos=function(){var t,r,e=this,n=e.constructor;return e.d?e.d[0]?(t=n.precision,r=n.rounding,n.precision=t+Math.max(e.e,e.sd())+7,n.rounding=1,e=function(t,r){var e,n,i;if(r.isZero())return r;(n=r.d.length)<32?i=(1/ri(4,e=Math.ceil(n/3))).toString():(e=16,i="2.3283064365386962890625e-10"),t.precision+=e,r=rn(t,1,r.times(i),new t(1));for(var o=e;o--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return t.precision-=e,r}(n,ro(n,e)),n.precision=t,n.rounding=r,tQ(2==tz||3==tz?e.neg():e,t,r,!0)):new n(1):new n(NaN)},tV.cubeRoot=tV.cbrt=function(){var t,r,e,n,i,o,s,a,u,f,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(tT=!1,(o=this.s*tq(this.s*this,1/3))&&Math.abs(o)!=1/0?n=new c(o.toString()):(e=t$(this.d),(o=((t=this.e)-e.length+1)%3)&&(e+=1==o||-2==o?"0":"00"),o=tq(e,1/3),t=tB((t+1)/3)-(t%3==(t<0?-1:2)),(n=new c(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)).s=this.s),s=(t=c.precision)+3;;)if(n=tK((f=(u=(a=n).times(a).times(a)).plus(this)).plus(this).times(a),f.plus(u),s+2,1),t$(a.d).slice(0,s)===(e=t$(n.d)).slice(0,s)){if("9999"!=(e=e.slice(s-3,s+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(tQ(n,t+1,1),r=!n.times(n).times(n).eq(this));break}if(!i&&(tQ(a,t+1,0),a.times(a).times(a).eq(this))){n=a;break}s+=4,i=1}return tT=!0,tQ(n,t,c.rounding,r)},tV.decimalPlaces=tV.dp=function(){var t,r=this.d,e=NaN;if(r){if(e=((t=r.length-1)-tB(this.e/7))*7,t=r[t])for(;t%10==0;t/=10)e--;e<0&&(e=0)}return e},tV.dividedBy=tV.div=function(t){return tK(this,new this.constructor(t))},tV.dividedToIntegerBy=tV.divToInt=function(t){var r=this.constructor;return tQ(tK(this,new r(t),0,1,1),r.precision,r.rounding)},tV.equals=tV.eq=function(t){return 0===this.cmp(t)},tV.floor=function(){return tQ(new this.constructor(this),this.e+1,3)},tV.greaterThan=tV.gt=function(t){return this.cmp(t)>0},tV.greaterThanOrEqualTo=tV.gte=function(t){var r=this.cmp(t);return 1==r||0===r},tV.hyperbolicCosine=tV.cosh=function(){var t,r,e,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;e=s.precision,n=s.rounding,s.precision=e+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?r=(1/ri(4,t=Math.ceil(i/3))).toString():(t=16,r="2.3283064365386962890625e-10"),o=rn(s,1,o.times(r),new s(1),!0);for(var u,f=t,c=new s(8);f--;)u=o.times(o),o=a.minus(u.times(c.minus(u.times(c))));return tQ(o,s.precision=e,s.rounding=n,!0)},tV.hyperbolicSine=tV.sinh=function(){var t,r,e,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(r=o.precision,e=o.rounding,o.precision=r+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=rn(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=rn(o,2,i=i.times(1/ri(5,t)),i,!0);for(var s,a=new o(5),u=new o(16),f=new o(20);t--;)s=i.times(i),i=i.times(a.plus(s.times(u.times(s).plus(f))))}return o.precision=r,o.rounding=e,tQ(i,r,e,!0)},tV.hyperbolicTangent=tV.tanh=function(){var t,r,e=this.constructor;return this.isFinite()?this.isZero()?new e(this):(t=e.precision,r=e.rounding,e.precision=t+7,e.rounding=1,tK(this.sinh(),this.cosh(),e.precision=t,e.rounding=r)):new e(this.s)},tV.inverseCosine=tV.acos=function(){var t=this,r=t.constructor,e=t.abs().cmp(1),n=r.precision,i=r.rounding;return -1!==e?0===e?t.isNeg()?t7(r,n,i):new r(0):new r(NaN):t.isZero()?t7(r,n+4,i).times(.5):(r.precision=n+6,r.rounding=1,t=new r(1).minus(t).div(t.plus(1)).sqrt().atan(),r.precision=n,r.rounding=i,t.times(2))},tV.inverseHyperbolicCosine=tV.acosh=function(){var t,r,e=this,n=e.constructor;return e.lte(1)?new n(e.eq(1)?0:NaN):e.isFinite()?(t=n.precision,r=n.rounding,n.precision=t+Math.max(Math.abs(e.e),e.sd())+4,n.rounding=1,tT=!1,e=e.times(e).minus(1).sqrt().plus(e),tT=!0,n.precision=t,n.rounding=r,e.ln()):new n(e)},tV.inverseHyperbolicSine=tV.asinh=function(){var t,r,e=this,n=e.constructor;return!e.isFinite()||e.isZero()?new n(e):(t=n.precision,r=n.rounding,n.precision=t+2*Math.max(Math.abs(e.e),e.sd())+6,n.rounding=1,tT=!1,e=e.times(e).plus(1).sqrt().plus(e),tT=!0,n.precision=t,n.rounding=r,e.ln())},tV.inverseHyperbolicTangent=tV.atanh=function(){var t,r,e,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,r=o.rounding,Math.max(n=i.sd(),t)<-(2*i.e)-1)?tQ(new o(i),t,r,!0):(o.precision=e=n-i.e,i=tK(i.plus(1),new o(1).minus(i),e+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=r,i.times(.5)):new o(NaN)},tV.inverseSine=tV.asin=function(){var t,r,e,n,i=this,o=i.constructor;return i.isZero()?new o(i):(r=i.abs().cmp(1),e=o.precision,n=o.rounding,-1!==r)?0===r?((t=t7(o,e+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=e+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=e,o.rounding=n,i.times(2))},tV.inverseTangent=tV.atan=function(){var t,r,e,n,i,o,s,a,u,f=this,c=f.constructor,h=c.precision,p=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);else if(f.abs().eq(1)&&h+4<=tH)return(s=t7(c,h+4,p).times(.25)).s=f.s,s}else{if(!f.s)return new c(NaN);if(h+4<=tH)return(s=t7(c,h+4,p).times(.5)).s=f.s,s}for(c.precision=a=h+10,c.rounding=1,t=e=Math.min(28,a/7+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(tT=!1,r=Math.ceil(a/7),n=1,u=f.times(f),s=new c(f),i=f;-1!==t;)if(i=i.times(u),o=s.minus(i.div(n+=2)),i=i.times(u),void 0!==(s=o.plus(i.div(n+=2))).d[r])for(t=r;s.d[t]===o.d[t]&&t--;);return e&&(s=s.times(2<<e-1)),tT=!0,tQ(s,c.precision=h,c.rounding=p,!0)},tV.isFinite=function(){return!!this.d},tV.isInteger=tV.isInt=function(){return!!this.d&&tB(this.e/7)>this.d.length-2},tV.isNaN=function(){return!this.s},tV.isNegative=tV.isNeg=function(){return this.s<0},tV.isPositive=tV.isPos=function(){return this.s>0},tV.isZero=function(){return!!this.d&&0===this.d[0]},tV.lessThan=tV.lt=function(t){return 0>this.cmp(t)},tV.lessThanOrEqualTo=tV.lte=function(t){return 1>this.cmp(t)},tV.logarithm=tV.log=function(t){var r,e,n,i,o,s,a,u=this.constructor,f=u.precision,c=u.rounding;if(null==t)t=new u(10),r=!0;else{if(e=(t=new u(t)).d,t.s<0||!e||!e[0]||t.eq(1))return new u(NaN);r=t.eq(10)}if(e=this.d,this.s<0||!e||!e[0]||this.eq(1))return new u(e&&!e[0]?-1/0:1!=this.s?NaN:e?0:1/0);if(r)if(e.length>1)i=!0;else{for(n=e[0];n%10==0;)n/=10;i=1!==n}if(tT=!1,tG((a=tK(o=rt(this,s=f+5),r?t2(u,s+10):rt(t,s),s,1)).d,n=f,c))do if(s+=10,a=tK(o=rt(this,s),r?t2(u,s+10):rt(t,s),s,1),!i){+t$(a.d).slice(n+1,n+15)+1==1e14&&(a=tQ(a,f+1,0));break}while(tG(a.d,n+=10,c));return tT=!0,tQ(a,f,c)},tV.minus=tV.sub=function(t){var r,e,n,i,o,s,a,u,f,c,h,p,l=this.constructor;if(t=new l(t),!this.d||!t.d)return this.s&&t.s?this.d?t.s=-t.s:t=new l(t.d||this.s!==t.s?this:NaN):t=new l(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.plus(t);if(f=this.d,p=t.d,a=l.precision,u=l.rounding,!f[0]||!p[0]){if(p[0])t.s=-t.s;else{if(!f[0])return new l(3===u?-0:0);t=new l(this)}return tT?tQ(t,a,u):t}if(e=tB(t.e/7),c=tB(this.e/7),f=f.slice(),o=c-e){for((h=o<0)?(r=f,o=-o,s=p.length):(r=p,e=c,s=f.length),o>(n=Math.max(Math.ceil(a/7),s)+2)&&(o=n,r.length=1),r.reverse(),n=o;n--;)r.push(0);r.reverse()}else{for((h=(n=f.length)<(s=p.length))&&(s=n),n=0;n<s;n++)if(f[n]!=p[n]){h=f[n]<p[n];break}o=0}for(h&&(r=f,f=p,p=r,t.s=-t.s),s=f.length,n=p.length-s;n>0;--n)f[s++]=0;for(n=p.length;n>o;){if(f[--n]<p[n]){for(i=n;i&&0===f[--i];)f[i]=1e7-1;--f[i],f[n]+=1e7}f[n]-=p[n]}for(;0===f[--s];)f.pop();for(;0===f[0];f.shift())--e;return f[0]?(t.d=f,t.e=t1(f,e),tT?tQ(t,a,u):t):new l(3===u?-0:0)},tV.modulo=tV.mod=function(t){var r,e=this.constructor;return(t=new e(t),this.d&&t.s&&(!t.d||t.d[0]))?t.d&&(!this.d||this.d[0])?(tT=!1,9==e.modulo?(r=tK(this,t.abs(),0,3,1),r.s*=t.s):r=tK(this,t,0,e.modulo,1),r=r.times(t),tT=!0,this.minus(r)):tQ(new e(this),e.precision,e.rounding):new e(NaN)},tV.naturalExponential=tV.exp=function(){return t6(this)},tV.naturalLogarithm=tV.ln=function(){return rt(this)},tV.negated=tV.neg=function(){var t=new this.constructor(this);return t.s=-t.s,tQ(t)},tV.plus=tV.add=function(t){var r,e,n,i,o,s,a,u,f,c,h=this.constructor;if(t=new h(t),!this.d||!t.d)return this.s&&t.s?this.d||(t=new h(t.d||this.s===t.s?this:NaN)):t=new h(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.minus(t);if(f=this.d,c=t.d,a=h.precision,u=h.rounding,!f[0]||!c[0])return c[0]||(t=new h(this)),tT?tQ(t,a,u):t;if(o=tB(this.e/7),n=tB(t.e/7),f=f.slice(),i=o-n){for(i<0?(e=f,i=-i,s=c.length):(e=c,n=o,s=f.length),i>(s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(i=s,e.length=1),e.reverse();i--;)e.push(0);e.reverse()}for((s=f.length)-(i=c.length)<0&&(i=s,e=c,c=f,f=e),r=0;i;)r=(f[--i]=f[i]+c[i]+r)/1e7|0,f[i]%=1e7;for(r&&(f.unshift(r),++n),s=f.length;0==f[--s];)f.pop();return t.d=f,t.e=t1(f,n),tT?tQ(t,a,u):t},tV.precision=tV.sd=function(t){var r;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(tD+t);return this.d?(r=t4(this.d),t&&this.e+1>r&&(r=this.e+1)):r=NaN,r},tV.round=function(){var t=this.constructor;return tQ(new t(this),this.e+1,t.rounding)},tV.sine=tV.sin=function(){var t,r,e=this,n=e.constructor;return e.isFinite()?e.isZero()?new n(e):(t=n.precision,r=n.rounding,n.precision=t+Math.max(e.e,e.sd())+7,n.rounding=1,e=function(t,r){var e,n=r.d.length;if(n<3)return r.isZero()?r:rn(t,2,r,r);e=(e=1.4*Math.sqrt(n))>16?16:0|e,r=rn(t,2,r=r.times(1/ri(5,e)),r);for(var i,o=new t(5),s=new t(16),a=new t(20);e--;)i=r.times(r),r=r.times(o.plus(i.times(s.times(i).minus(a))));return r}(n,ro(n,e)),n.precision=t,n.rounding=r,tQ(tz>2?e.neg():e,t,r,!0)):new n(NaN)},tV.squareRoot=tV.sqrt=function(){var t,r,e,n,i,o,s=this.d,a=this.e,u=this.s,f=this.constructor;if(1!==u||!s||!s[0])return new f(!u||u<0&&(!s||s[0])?NaN:s?this:1/0);for(tT=!1,0==(u=Math.sqrt(+this))||u==1/0?(((r=t$(s)).length+a)%2==0&&(r+="0"),u=Math.sqrt(r),a=tB((a+1)/2)-(a<0||a%2),n=new f(r=u==1/0?"5e"+a:(r=u.toExponential()).slice(0,r.indexOf("e")+1)+a)):n=new f(u.toString()),e=(a=f.precision)+3;;)if(n=(o=n).plus(tK(this,o,e+2,1)).times(.5),t$(o.d).slice(0,e)===(r=t$(n.d)).slice(0,e)){if("9999"!=(r=r.slice(e-3,e+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(tQ(n,a+1,1),t=!n.times(n).eq(this));break}if(!i&&(tQ(o,a+1,0),o.times(o).eq(this))){n=o;break}e+=4,i=1}return tT=!0,tQ(n,a,f.rounding,t)},tV.tangent=tV.tan=function(){var t,r,e=this,n=e.constructor;return e.isFinite()?e.isZero()?new n(e):(t=n.precision,r=n.rounding,n.precision=t+10,n.rounding=1,(e=e.sin()).s=1,e=tK(e,new n(1).minus(e.times(e)).sqrt(),t+10,0),n.precision=t,n.rounding=r,tQ(2==tz||4==tz?e.neg():e,t,r,!0)):new n(NaN)},tV.times=tV.mul=function(t){var r,e,n,i,o,s,a,u,f,c=this.constructor,h=this.d,p=(t=new c(t)).d;if(t.s*=this.s,!h||!h[0]||!p||!p[0])return new c(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:!h||!p?t.s/0:0*t.s);for(e=tB(this.e/7)+tB(t.e/7),(u=h.length)<(f=p.length)&&(o=h,h=p,p=o,s=u,u=f,f=s),o=[],n=s=u+f;n--;)o.push(0);for(n=f;--n>=0;){for(r=0,i=u+n;i>n;)a=o[i]+p[n]*h[i-n-1]+r,o[i--]=a%1e7|0,r=a/1e7|0;o[i]=(o[i]+r)%1e7|0}for(;!o[--s];)o.pop();return r?++e:o.shift(),t.d=o,t.e=t1(o,e),tT?tQ(t,c.precision,c.rounding):t},tV.toBinary=function(t,r){return rs(this,2,t,r)},tV.toDecimalPlaces=tV.toDP=function(t,r){var e=this,n=e.constructor;return(e=new n(e),void 0===t)?e:(tY(t,0,1e9),void 0===r?r=n.rounding:tY(r,0,8),tQ(e,t+e.e+1,r))},tV.toExponential=function(t,r){var e,n=this,i=n.constructor;return void 0===t?e=t0(n,!0):(tY(t,0,1e9),void 0===r?r=i.rounding:tY(r,0,8),e=t0(n=tQ(new i(n),t+1,r),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+e:e},tV.toFixed=function(t,r){var e,n,i=this.constructor;return void 0===t?e=t0(this):(tY(t,0,1e9),void 0===r?r=i.rounding:tY(r,0,8),e=t0(n=tQ(new i(this),t+this.e+1,r),!1,t+n.e+1)),this.isNeg()&&!this.isZero()?"-"+e:e},tV.toFraction=function(t){var r,e,n,i,o,s,a,u,f,c,h,p,l=this.d,d=this.constructor;if(!l)return new d(this);if(f=e=new d(1),n=u=new d(0),s=(o=(r=new d(n)).e=t4(l)-this.e-1)%7,r.d[0]=tq(10,s<0?7+s:s),null==t)t=o>0?r:f;else{if(!(a=new d(t)).isInt()||a.lt(f))throw Error(tD+a);t=a.gt(r)?o>0?r:f:a}for(tT=!1,a=new d(t$(l)),c=d.precision,d.precision=o=7*l.length*2;h=tK(a,r,0,1,1),1!=(i=e.plus(h.times(n))).cmp(t);)e=n,n=i,i=f,f=u.plus(h.times(i)),u=i,i=r,r=a.minus(h.times(i)),a=i;return i=tK(t.minus(e),n,0,1,1),u=u.plus(i.times(f)),e=e.plus(i.times(n)),u.s=f.s=this.s,p=1>tK(f,n,o,1).minus(this).abs().cmp(tK(u,e,o,1).minus(this).abs())?[f,n]:[u,e],d.precision=c,tT=!0,p},tV.toHexadecimal=tV.toHex=function(t,r){return rs(this,16,t,r)},tV.toNearest=function(t,r){var e=this,n=e.constructor;if(e=new n(e),null==t){if(!e.d)return e;t=new n(1),r=n.rounding}else{if(t=new n(t),void 0===r?r=n.rounding:tY(r,0,8),!e.d)return t.s?e:t;if(!t.d)return t.s&&(t.s=e.s),t}return t.d[0]?(tT=!1,e=tK(e,t,0,r,1).times(t),tT=!0,tQ(e)):(t.s=e.s,e=t),e},tV.toNumber=function(){return+this},tV.toOctal=function(t,r){return rs(this,8,t,r)},tV.toPower=tV.pow=function(t){var r,e,n,i,o,s,a=this,u=a.constructor,f=+(t=new u(t));if(!a.d||!t.d||!a.d[0]||!t.d[0])return new u(tq(+a,f));if((a=new u(a)).eq(1))return a;if(n=u.precision,o=u.rounding,t.eq(1))return tQ(a,n,o);if((r=tB(t.e/7))>=t.d.length-1&&(e=f<0?-f:f)<=0x1fffffffffffff)return i=t3(u,a,e,n),t.s<0?new u(1).div(i):tQ(i,n,o);if((s=a.s)<0){if(r<t.d.length-1)return new u(NaN);if((1&t.d[r])==0&&(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(r=0!=(e=tq(+a,f))&&isFinite(e)?new u(e+"").e:tB(f*(Math.log("0."+t$(a.d))/Math.LN10+a.e+1)))>u.maxE+1||r<u.minE-1?new u(r>0?s/0:0):(tT=!1,u.rounding=a.s=1,e=Math.min(12,(r+"").length),(i=t6(t.times(rt(a,n+e)),n)).d&&tG((i=tQ(i,n+5,1)).d,n,o)&&(r=n+10,+t$((i=tQ(t6(t.times(rt(a,r+e)),r),r+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=tQ(i,n+1,0))),i.s=s,tT=!0,u.rounding=o,tQ(i,n,o))},tV.toPrecision=function(t,r){var e,n=this,i=n.constructor;return void 0===t?e=t0(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(tY(t,1,1e9),void 0===r?r=i.rounding:tY(r,0,8),e=t0(n=tQ(new i(n),t,r),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+e:e},tV.toSignificantDigits=tV.toSD=function(t,r){var e=this.constructor;return void 0===t?(t=e.precision,r=e.rounding):(tY(t,1,1e9),void 0===r?r=e.rounding:tY(r,0,8)),tQ(new e(this),t,r)},tV.toString=function(){var t=this.constructor,r=t0(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()&&!this.isZero()?"-"+r:r},tV.truncated=tV.trunc=function(){return tQ(new this.constructor(this),this.e+1,1)},tV.valueOf=tV.toJSON=function(){var t=this.constructor,r=t0(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()?"-"+r:r};var tK=function(){function t(t,r,e){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*r+i,t[o]=n%e|0,i=n/e|0;return i&&t.unshift(i),t}function r(t,r,e,n){var i,o;if(e!=n)o=e>n?1:-1;else for(i=o=0;i<e;i++)if(t[i]!=r[i]){o=t[i]>r[i]?1:-1;break}return o}function e(t,r,e,n){for(var i=0;e--;)t[e]-=i,i=+(t[e]<r[e]),t[e]=i*n+t[e]-r[e];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,s,a,u){var f,c,h,p,l,d,m,g,v,y,w,x,b,N,_,M,E,O,A,z,S=n.constructor,F=n.s==i.s?1:-1,C=n.d,I=i.d;if(!C||!C[0]||!I||!I[0])return new S(!n.s||!i.s||(C?I&&C[0]==I[0]:!I)?NaN:C&&0==C[0]||!I?0*F:F/0);for(u?(l=1,c=n.e-i.e):(u=1e7,l=7,c=tB(n.e/l)-tB(i.e/l)),A=I.length,E=C.length,y=(v=new S(F)).d=[],h=0;I[h]==(C[h]||0);h++);if(I[h]>(C[h]||0)&&c--,null==o?(N=o=S.precision,s=S.rounding):N=a?o+(n.e-i.e)+1:o,N<0)y.push(1),d=!0;else{if(N=N/l+2|0,h=0,1==A){for(p=0,I=I[0],N++;(h<E||p)&&N--;h++)_=p*u+(C[h]||0),y[h]=_/I|0,p=_%I|0;d=p||h<E}else{for((p=u/(I[0]+1)|0)>1&&(I=t(I,p,u),C=t(C,p,u),A=I.length,E=C.length),M=A,x=(w=C.slice(0,A)).length;x<A;)w[x++]=0;(z=I.slice()).unshift(0),O=I[0],I[1]>=u/2&&++O;do p=0,(f=r(I,w,A,x))<0?(b=w[0],A!=x&&(b=b*u+(w[1]||0)),(p=b/O|0)>1?(p>=u&&(p=u-1),g=(m=t(I,p,u)).length,x=w.length,1==(f=r(m,w,g,x))&&(p--,e(m,A<g?z:I,g,u))):(0==p&&(f=p=1),m=I.slice()),(g=m.length)<x&&m.unshift(0),e(w,m,x,u),-1==f&&(x=w.length,(f=r(I,w,A,x))<1&&(p++,e(w,A<x?z:I,x,u))),x=w.length):0===f&&(p++,w=[0]),y[h++]=p,f&&w[0]?w[x++]=C[M]||0:(w=[C[M]],x=1);while((M++<E||void 0!==w[0])&&N--);d=void 0!==w[0]}y[0]||y.shift()}if(1==l)v.e=c,tA=d;else{for(h=1,p=y[0];p>=10;p/=10)h++;v.e=h+c*l-1,tQ(v,a?o+v.e+1:o,s,d)}return v}}();function tQ(t,r,e,n){var i,o,s,a,u,f,c,h,p,l=t.constructor;t:if(null!=r){if(!(h=t.d))return t;for(i=1,a=h[0];a>=10;a/=10)i++;if((o=r-i)<0)o+=7,s=r,u=(c=h[p=0])/tq(10,i-s-1)%10|0;else if((p=Math.ceil((o+1)/7))>=(a=h.length))if(n){for(;a++<=p;)h.push(0);c=u=0,i=1,o%=7,s=o-7+1}else break t;else{for(i=1,c=a=h[p];a>=10;a/=10)i++;o%=7,u=(s=o-7+i)<0?0:c/tq(10,i-s-1)%10|0}if(n=n||r<0||void 0!==h[p+1]||(s<0?c:c%tq(10,i-s-1)),f=e<4?(u||n)&&(0==e||e==(t.s<0?3:2)):u>5||5==u&&(4==e||n||6==e&&(o>0?s>0?c/tq(10,i-s):0:h[p-1])%10&1||e==(t.s<0?8:7)),r<1||!h[0])return h.length=0,f?(r-=t.e+1,h[0]=tq(10,(7-r%7)%7),t.e=-r||0):h[0]=t.e=0,t;if(0==o?(h.length=p,a=1,p--):(h.length=p+1,a=tq(10,7-o),h[p]=s>0?(c/tq(10,i-s)%tq(10,s)|0)*a:0),f)for(;;)if(0==p){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,1e7==h[0]&&(h[0]=1));break}else{if(h[p]+=a,1e7!=h[p])break;h[p--]=0,a=1}for(o=h.length;0===h[--o];)h.pop()}return tT&&(t.e>l.maxE?(t.d=null,t.e=NaN):t.e<l.minE&&(t.e=0,t.d=[0])),t}function t0(t,r,e){if(!t.isFinite())return rr(t);var n,i=t.e,o=t$(t.d),s=o.length;return r?(e&&(n=e-s)>0?o=o.charAt(0)+"."+o.slice(1)+t5(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+t5(-i-1)+o,e&&(n=e-s)>0&&(o+=t5(n))):i>=s?(o+=t5(i+1-s),e&&(n=e-i-1)>0&&(o=o+"."+t5(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),e&&(n=e-s)>0&&(i+1===s&&(o+="."),o+=t5(n))),o}function t1(t,r){var e=t[0];for(r*=7;e>=10;e/=10)r++;return r}function t2(t,r,e){if(r>tW)throw tT=!0,e&&(t.precision=e),Error(tk);return tQ(new t(tF),r,1,!0)}function t7(t,r,e){if(r>tH)throw Error(tk);return tQ(new t(tC),r,e,!0)}function t4(t){var r=t.length-1,e=7*r+1;if(r=t[r]){for(;r%10==0;r/=10)e--;for(r=t[0];r>=10;r/=10)e++}return e}function t5(t){for(var r="";t--;)r+="0";return r}function t3(t,r,e,n){var i,o=new t(1),s=Math.ceil(n/7+4);for(tT=!1;;){if(e%2&&ra((o=o.times(r)).d,s)&&(i=!0),0===(e=tB(e/2))){e=o.d.length-1,i&&0===o.d[e]&&++o.d[e];break}ra((r=r.times(r)).d,s)}return tT=!0,o}function t9(t){return 1&t.d[t.d.length-1]}function t8(t,r,e){for(var n,i,o=new t(r[0]),s=0;++s<r.length;){if(!(i=new t(r[s])).s){o=i;break}((n=o.cmp(i))===e||0===n&&o.s===e)&&(o=i)}return o}function t6(t,r){var e,n,i,o,s,a,u,f=0,c=0,h=0,p=t.constructor,l=p.rounding,d=p.precision;if(!t.d||!t.d[0]||t.e>17)return new p(t.d?!t.d[0]?1:t.s<0?0:1/0:t.s?t.s<0?0:t:0/0);for(null==r?(tT=!1,u=d):u=r,a=new p(.03125);t.e>-2;)t=t.times(a),h+=5;for(u+=n=Math.log(tq(2,h))/Math.LN10*2+5|0,e=o=s=new p(1),p.precision=u;;){if(o=tQ(o.times(t),u,1),e=e.times(++c),t$((a=s.plus(tK(o,e,u,1))).d).slice(0,u)===t$(s.d).slice(0,u)){for(i=h;i--;)s=tQ(s.times(s),u,1);if(null!=r)return p.precision=d,s;if(!(f<3&&tG(s.d,u-n,l,f)))return tQ(s,p.precision=d,l,tT=!0);p.precision=u+=10,e=o=a=new p(1),c=0,f++}s=a}}function rt(t,r){var e,n,i,o,s,a,u,f,c,h,p,l=1,d=t,m=d.d,g=d.constructor,v=g.rounding,y=g.precision;if(d.s<0||!m||!m[0]||!d.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=d.s?NaN:m?0:d);if(null==r?(tT=!1,c=y):c=r,g.precision=c+=10,n=(e=t$(m)).charAt(0),!(15e14>Math.abs(o=d.e)))return f=t2(g,c+2,y).times(o+""),d=rt(new g(n+"."+e.slice(1)),c-10).plus(f),g.precision=y,null==r?tQ(d,y,v,tT=!0):d;for(;n<7&&1!=n||1==n&&e.charAt(1)>3;)n=(e=t$((d=d.times(t)).d)).charAt(0),l++;for(o=d.e,n>1?(d=new g("0."+e),o++):d=new g(n+"."+e.slice(1)),h=d,u=s=d=tK(d.minus(1),d.plus(1),c,1),p=tQ(d.times(d),c,1),i=3;;){if(s=tQ(s.times(p),c,1),t$((f=u.plus(tK(s,new g(i),c,1))).d).slice(0,c)===t$(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(t2(g,c+2,y).times(o+""))),u=tK(u,new g(l),c,1),null!=r)return g.precision=y,u;if(!tG(u.d,c-10,v,a))return tQ(u,g.precision=y,v,tT=!0);g.precision=c+=10,f=s=d=tK(h.minus(1),h.plus(1),c,1),p=tQ(d.times(d),c,1),i=a=1}u=f,i+=2}}function rr(t){return String(t.s*t.s/0)}function re(t,r){var e,n,i;for((e=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(e<0&&(e=n),e+=+r.slice(n+1),r=r.substring(0,n)):e<0&&(e=r.length),n=0;48===r.charCodeAt(n);n++);for(i=r.length;48===r.charCodeAt(i-1);--i);if(r=r.slice(n,i)){if(i-=n,t.e=e=e-n-1,t.d=[],n=(e+1)%7,e<0&&(n+=7),n<i){for(n&&t.d.push(+r.slice(0,n)),i-=7;n<i;)t.d.push(+r.slice(n,n+=7));n=7-(r=r.slice(n)).length}else n-=i;for(;n--;)r+="0";t.d.push(+r),tT&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function rn(t,r,e,n,i){var o,s,a,u,f=t.precision,c=Math.ceil(f/7);for(tT=!1,u=e.times(e),a=new t(n);;){if(s=tK(a.times(u),new t(r++*r++),f,1),a=i?n.plus(s):n.minus(s),n=tK(s.times(u),new t(r++*r++),f,1),void 0!==(s=a.plus(n)).d[c]){for(o=c;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=n,n=s,s=o}return tT=!0,s.d.length=c+1,s}function ri(t,r){for(var e=t;--r;)e*=t;return e}function ro(t,r){var e,n=r.s<0,i=t7(t,t.precision,1),o=i.times(.5);if((r=r.abs()).lte(o))return tz=n?4:1,r;if((e=r.divToInt(i)).isZero())tz=n?3:2;else{if((r=r.minus(e.times(i))).lte(o))return tz=t9(e)?n?2:3:n?4:1,r;tz=t9(e)?n?1:4:n?3:2}return r.minus(i).abs()}function rs(t,r,e,n){var i,o,s,a,u,f,c,h,p,l=t.constructor,d=void 0!==e;if(d?(tY(e,1,1e9),void 0===n?n=l.rounding:tY(n,0,8)):(e=l.precision,n=l.rounding),t.isFinite()){for(s=(c=t0(t)).indexOf("."),d?(i=2,16==r?e=4*e-3:8==r&&(e=3*e-2)):i=r,s>=0&&(c=c.replace(".",""),(p=new l(1)).e=c.length-s,p.d=tX(t0(p),10,i),p.e=p.d.length),o=u=(h=tX(c,10,i)).length;0==h[--u];)h.pop();if(h[0]){if(s<0?o--:((t=new l(t)).d=h,t.e=o,h=(t=tK(t,p,e,n,0,i)).d,o=t.e,f=tA),s=h[e],a=i/2,f=f||void 0!==h[e+1],f=n<4?(void 0!==s||f)&&(0===n||n===(t.s<0?3:2)):s>a||s===a&&(4===n||f||6===n&&1&h[e-1]||n===(t.s<0?8:7)),h.length=e,f)for(;++h[--e]>i-1;)h[e]=0,e||(++o,h.unshift(1));for(u=h.length;!h[u-1];--u);for(s=0,c="";s<u;s++)c+=tS.charAt(h[s]);if(d){if(u>1)if(16==r||8==r){for(s=16==r?4:3,--u;u%s;u++)c+="0";for(u=(h=tX(c,i,r)).length;!h[u-1];--u);for(s=1,c="1.";s<u;s++)c+=tS.charAt(h[s])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>u)for(o-=u;o--;)c+="0";else o<u&&(c=c.slice(0,o)+"."+c.slice(o))}else c=d?"0p+0":"0";c=(16==r?"0x":2==r?"0b":8==r?"0o":"")+c}else c=rr(t);return t.s<0?"-"+c:c}function ra(t,r){if(t.length>r)return t.length=r,!0}function ru(t){return new this(t).abs()}function rf(t){return new this(t).acos()}function rc(t){return new this(t).acosh()}function rh(t,r){return new this(t).plus(r)}function rp(t){return new this(t).asin()}function rl(t){return new this(t).asinh()}function rd(t){return new this(t).atan()}function rm(t){return new this(t).atanh()}function rg(t,r){t=new this(t),r=new this(r);var e,n=this.precision,i=this.rounding,o=n+4;return t.s&&r.s?t.d||r.d?!r.d||t.isZero()?(e=r.s<0?t7(this,n,i):new this(0)).s=t.s:!t.d||r.isZero()?(e=t7(this,o,1).times(.5)).s=t.s:r.s<0?(this.precision=o,this.rounding=1,e=this.atan(tK(t,r,o,1)),r=t7(this,o,1),this.precision=n,this.rounding=i,e=t.s<0?e.minus(r):e.plus(r)):e=this.atan(tK(t,r,o,1)):(e=t7(this,o,1).times(r.s>0?.25:.75)).s=t.s:e=new this(NaN),e}function rv(t){return new this(t).cbrt()}function ry(t){return tQ(t=new this(t),t.e+1,2)}function rw(t,r,e){return new this(t).clamp(r,e)}function rx(t){if(!t||"object"!=typeof t)throw Error(tj+"Object expected");var r,e,n,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(r=0;r<o.length;r+=3)if(e=o[r],i&&(this[e]=tI[e]),void 0!==(n=t[e]))if(tB(n)===n&&n>=o[r+1]&&n<=o[r+2])this[e]=n;else throw Error(tD+e+": "+n);if(e="crypto",i&&(this[e]=tI[e]),void 0!==(n=t[e]))if(!0===n||!1===n||0===n||1===n)if(n)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[e]=!0;else throw Error(tP);else this[e]=!1;else throw Error(tD+e+": "+n);return this}function rb(t){return new this(t).cos()}function rN(t){return new this(t).cosh()}function r_(t,r){return new this(t).div(r)}function rM(t){return new this(t).exp()}function rE(t){return tQ(t=new this(t),t.e+1,3)}function rO(){var t,r,e=new this(0);for(t=0,tT=!1;t<arguments.length;)if(r=new this(arguments[t++]),r.d)e.d&&(e=e.plus(r.times(r)));else{if(r.s)return tT=!0,new this(1/0);e=r}return tT=!0,e.sqrt()}function rA(t){return t instanceof r$||t&&t.toStringTag===tR||!1}function rz(t){return new this(t).ln()}function rS(t,r){return new this(t).log(r)}function rF(t){return new this(t).log(2)}function rC(t){return new this(t).log(10)}function rI(){return t8(this,arguments,-1)}function rT(){return t8(this,arguments,1)}function rj(t,r){return new this(t).mod(r)}function rD(t,r){return new this(t).mul(r)}function rk(t,r){return new this(t).pow(r)}function rP(t){var r,e,n,i,o=0,s=new this(1),a=[];if(void 0===t?t=this.precision:tY(t,1,1e9),n=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=r[o])>=429e7?r[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);o<n;)(i=r[o]+(r[o+1]<<8)+(r[o+2]<<16)+((127&r[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(r,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(tP);else for(;o<n;)a[o++]=1e7*Math.random()|0;for(n=a[--o],t%=7,n&&t&&(i=tq(10,7-t),a[o]=(n/i|0)*i);0===a[o];o--)a.pop();if(o<0)e=0,a=[0];else{for(e=-1;0===a[0];e-=7)a.shift();for(n=1,i=a[0];i>=10;i/=10)n++;n<7&&(e-=7-n)}return s.e=e,s.d=a,s}function rR(t){return tQ(t=new this(t),t.e+1,this.rounding)}function rB(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function rq(t){return new this(t).sin()}function rU(t){return new this(t).sinh()}function rL(t){return new this(t).sqrt()}function rZ(t,r){return new this(t).sub(r)}function rJ(){var t=0,r=arguments,e=new this(r[0]);for(tT=!1;e.s&&++t<r.length;)e=e.plus(r[t]);return tT=!0,tQ(e,this.precision,this.rounding)}function rW(t){return new this(t).tan()}function rH(t){return new this(t).tanh()}function rV(t){return tQ(t=new this(t),t.e+1,1)}tV[Symbol.for("nodejs.util.inspect.custom")]=tV.toString,tV[Symbol.toStringTag]="Decimal";var r$=tV.constructor=function t(r){var e,n,i;function o(t){var r,e,n;if(!(this instanceof o))return new o(t);if(this.constructor=o,rA(t)){this.s=t.s,tT?!t.d||t.e>o.maxE?(this.e=NaN,this.d=null):t.e<o.minE?(this.e=0,this.d=[0]):(this.e=t.e,this.d=t.d.slice()):(this.e=t.e,this.d=t.d?t.d.slice():t.d);return}if("number"==(n=typeof t)){if(0===t){this.s=1/t<0?-1:1,this.e=0,this.d=[0];return}if(t<0?(t=-t,this.s=-1):this.s=1,t===~~t&&t<1e7){for(r=0,e=t;e>=10;e/=10)r++;tT?r>o.maxE?(this.e=NaN,this.d=null):r<o.minE?(this.e=0,this.d=[0]):(this.e=r,this.d=[t]):(this.e=r,this.d=[t]);return}if(0*t!=0){t||(this.s=NaN),this.e=NaN,this.d=null;return}return re(this,t.toString())}if("string"===n)return 45===(e=t.charCodeAt(0))?(t=t.slice(1),this.s=-1):(43===e&&(t=t.slice(1)),this.s=1),tJ.test(t)?re(this,t):function(t,r){var e,n,i,o,s,a,u,f,c;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),tJ.test(r))return re(t,r)}else if("Infinity"===r||"NaN"===r)return+r||(t.s=NaN),t.e=NaN,t.d=null,t;if(tL.test(r))e=16,r=r.toLowerCase();else if(tU.test(r))e=2;else if(tZ.test(r))e=8;else throw Error(tD+r);for((o=r.search(/p/i))>0?(u=+r.slice(o+1),r=r.substring(2,o)):r=r.slice(2),s=(o=r.indexOf("."))>=0,n=t.constructor,s&&(o=(a=(r=r.replace(".","")).length)-o,i=t3(n,new n(e),o,2*o)),o=c=(f=tX(r,e,1e7)).length-1;0===f[o];--o)f.pop();return o<0?new n(0*t.s):(t.e=t1(f,c),t.d=f,tT=!1,s&&(t=tK(t,i,4*a)),u&&(t=t.times(54>Math.abs(u)?tq(2,u):r$.pow(2,u))),tT=!0,t)}(this,t);if("bigint"===n)return t<0?(t=-t,this.s=-1):this.s=1,re(this,t.toString());throw Error(tD+t)}if(o.prototype=tV,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=rx,o.clone=t,o.isDecimal=rA,o.abs=ru,o.acos=rf,o.acosh=rc,o.add=rh,o.asin=rp,o.asinh=rl,o.atan=rd,o.atanh=rm,o.atan2=rg,o.cbrt=rv,o.ceil=ry,o.clamp=rw,o.cos=rb,o.cosh=rN,o.div=r_,o.exp=rM,o.floor=rE,o.hypot=rO,o.ln=rz,o.log=rS,o.log10=rC,o.log2=rF,o.max=rI,o.min=rT,o.mod=rj,o.mul=rD,o.pow=rk,o.random=rP,o.round=rR,o.sign=rB,o.sin=rq,o.sinh=rU,o.sqrt=rL,o.sub=rZ,o.sum=rJ,o.tan=rW,o.tanh=rH,o.trunc=rV,void 0===r&&(r={}),r&&!0!==r.defaults)for(e=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];e<i.length;)r.hasOwnProperty(n=i[e++])||(r[n]=this[n]);return o.config(r),o}(tI);tF=new r$(tF),tC=new r$(tC);var rY={createBigNumberClass:G("BigNumber",["?on","config"],t=>{var{on:r,config:e}=t,n=r$.clone({precision:e.precision,modulo:r$.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(t){return new n(t.value)},r&&r("config",function(t,r){t.precision!==r.precision&&n.config({precision:t.precision})}),n},{isClass:!0})},rG={createMatrixClass:G("Matrix",[],()=>{function t(){if(!(this instanceof t))throw SyntaxError("Constructor must be called with the new operator")}return t.prototype.type="Matrix",t.prototype.isMatrix=!0,t.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},t.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},t.prototype.create=function(t,r){throw Error("Cannot invoke create on a Matrix interface")},t.prototype.subset=function(t,r,e){throw Error("Cannot invoke subset on a Matrix interface")},t.prototype.get=function(t){throw Error("Cannot invoke get on a Matrix interface")},t.prototype.set=function(t,r,e){throw Error("Cannot invoke set on a Matrix interface")},t.prototype.resize=function(t,r){throw Error("Cannot invoke resize on a Matrix interface")},t.prototype.reshape=function(t,r){throw Error("Cannot invoke reshape on a Matrix interface")},t.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},t.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},t.prototype.map=function(t,r){throw Error("Cannot invoke map on a Matrix interface")},t.prototype.forEach=function(t){throw Error("Cannot invoke forEach on a Matrix interface")},t.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},t.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},t.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},t.prototype.format=function(t){throw Error("Cannot invoke format on a Matrix interface")},t.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},t},{isClass:!0})},rX={MatrixDependencies:rG,createDenseMatrixClass:G("DenseMatrix",["Matrix"],t=>{var{Matrix:r}=t;function e(t,r){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator");if(r&&!f(r))throw Error("Invalid datatype: "+r);if(h(t))"DenseMatrix"===t.type?(this._data=Z(t._data),this._size=Z(t._size)):(this._data=t.toArray(),this._size=t.size()),this._datatype=r||t._datatype;else if(t&&c(t.data)&&c(t.size))this._data=t.data,this._size=t.size,td(this._data,this._size),this._datatype=r||t.datatype;else if(c(t))this._data=function t(r){for(var e=0,n=r.length;e<n;e++){var i=r[e];c(i)?r[e]=t(i):i&&!0===i.isMatrix&&(r[e]=t(i.valueOf()))}return r}(t),this._size=tl(this._data),td(this._data,this._size),this._datatype=r;else if(t)throw TypeError("Unsupported type of data ("+L(t)+")");else this._data=[],this._size=[0],this._datatype=r}function n(t,r,e){if(0===r.length){for(var n=t._data;c(n);)n=n[0];return n}return t._size=r.slice(0),t._data=tg(t._data,t._size,e),t}function s(t,r,e){for(var i=t._size.slice(0),o=!1;i.length<r.length;)i.push(0),o=!0;for(var s=0,a=r.length;s<a;s++)r[s]>i[s]&&(i[s]=r[s],o=!0);o&&n(t,i,e)}return e.prototype=new r,e.prototype.createDenseMatrix=function(t,r){return new e(t,r)},e.prototype.type="DenseMatrix",e.prototype.isDenseMatrix=!0,e.prototype.getDataType=function(){return tx(this._data,L)},e.prototype.storage=function(){return"dense"},e.prototype.datatype=function(){return this._datatype},e.prototype.create=function(t,r){return new e(t,r)},e.prototype.subset=function(t,r,n){switch(arguments.length){case 1:return function(t,r){if(!g(r))throw TypeError("Invalid index");if(r.isScalar())return t.get(r.min());var n=r.size();if(n.length!==t._size.length)throw new th(n.length,t._size.length);for(var i=r.min(),o=r.max(),s=0,a=t._size.length;s<a;s++)tm(i[s],t._size[s]),tm(o[s],t._size[s]);return new e(function t(r,e,n,i){var o=i===n-1,s=e.dimension(i);return o?s.map(function(t){return tm(t,r.length),r[t]}).valueOf():s.map(function(o){return tm(o,r.length),t(r[o],e,n,i+1)}).valueOf()}(t._data,r,n.length,0),t._datatype)}(this,t);case 2:case 3:return function(t,r,e,n){if(!r||!0!==r.isIndex)throw TypeError("Invalid index");var i,o=r.size(),a=r.isScalar();if(h(e)?(i=e.size(),e=e.valueOf()):i=tl(e),a){if(0!==i.length)throw TypeError("Scalar expected");t.set(r.min(),e,n)}else{if(o.length<t._size.length)throw new th(o.length,t._size.length,"<");if(i.length<o.length){for(var u=0,f=0;1===o[u]&&1===i[u];)u++;for(;1===o[u];)f++,u++;e=tw(e,o.length,f,i)}if(!W(o,i))throw new th(o,i,">");s(t,r.max().map(function(t){return t+1}),n);var c=o.length;!function t(r,e,n,i,o){var s=o===i-1,a=e.dimension(o);s?a.forEach(function(t,e){tm(t),r[t]=n[e[0]]}):a.forEach(function(s,a){tm(s),t(r[s],e,n[a[0]],i,o+1)})}(t._data,r,e,c,0)}return t}(this,t,r,n);default:throw SyntaxError("Wrong number of arguments")}},e.prototype.get=function(t){if(!c(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new th(t.length,this._size.length);for(var r=0;r<t.length;r++)tm(t[r],this._size[r]);for(var e=this._data,n=0,i=t.length;n<i;n++){var o=t[n];tm(o,e.length),e=e[o]}return e},e.prototype.set=function(t,r,e){if(!c(t))throw TypeError("Array expected");if(t.length<this._size.length)throw new th(t.length,this._size.length,"<");s(this,t.map(function(t){return t+1}),e);var n,i,o,a=this._data;for(n=0,i=t.length-1;n<i;n++)tm(o=t[n],a.length),a=a[o];return tm(o=t[t.length-1],a.length),a[o]=r,this},e.prototype.resize=function(t,r,e){if(!p(t))throw TypeError("Array or Matrix expected");var i=t.valueOf().map(t=>Array.isArray(t)&&1===t.length?t[0]:t);return n(e?this.clone():this,i,r)},e.prototype.reshape=function(t,r){var e=r?this.clone():this;e._data=function(t,r){var e=function(t){if(!Array.isArray(t))return t;var r=[];return t.forEach(function t(e){Array.isArray(e)?e.forEach(t):r.push(e)}),r}(t),n=e.length;if(!Array.isArray(t)||!Array.isArray(r))throw TypeError("Array expected");if(0===r.length)throw new th(0,n,"!=");var i=ty(r=tv(r,n));if(n!==i)throw new th(i,n,"!=");try{return function(t,r){for(var e,n=t,i=r.length-1;i>0;i--){var o=r[i];e=[];for(var s=n.length/o,a=0;a<s;a++)e.push(n.slice(a*o,(a+1)*o));n=e}return n}(e,r)}catch(t){if(t instanceof th)throw new th(i,n,"!=");throw t}}(e._data,t);var n=e._size.reduce((t,r)=>t*r);return e._size=tv(t,n),e},e.prototype.clone=function(){return new e({data:Z(this._data),size:Z(this._size),datatype:this._datatype})},e.prototype.size=function(){return this._size.slice(0)},e.prototype.map=function(t){var r=this,n=function e(n,i){return c(n)?n.map(function(t,r){return e(t,i.concat(r))}):t(n,i,r)}(this._data,[]),i=void 0!==this._datatype?tx(n,L):void 0;return new e(n,i)},e.prototype.forEach=function(t){var r=this;!function e(n,i){c(n)?n.forEach(function(t,r){e(t,i.concat(r))}):t(n,i,r)}(this._data,[])},e.prototype[Symbol.iterator]=function*(){var t=function* t(r,e){if(c(r))for(var n=0;n<r.length;n++)yield*t(r[n],e.concat(n));else yield{value:r,index:e}};yield*t(this._data,[])},e.prototype.rows=function(){var t=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var r of this._data)t.push(new e([r],this._datatype));return t},e.prototype.columns=function(){var t=this,r=[],n=this.size();if(2!==n.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,o=function(n){var o=i.map(t=>[t[n]]);r.push(new e(o,t._datatype))},s=0;s<n[1];s++)o(s);return r},e.prototype.toArray=function(){return Z(this._data)},e.prototype.valueOf=function(){return this._data},e.prototype.format=function(t){return tc(this._data,t)},e.prototype.toString=function(){return tc(this._data)},e.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},e.prototype.diagonal=function(t){if(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t))throw TypeError("The parameter k must be an integer number")}else t=0;for(var r=t>0?t:0,n=t<0?-t:0,s=Math.min(this._size[0]-n,this._size[1]-r),a=[],u=0;u<s;u++)a[u]=this._data[u+n][u+r];return new e({data:a,size:[s],datatype:this._datatype})},e.diagonal=function(t,r,n,s){if(!c(t))throw TypeError("Array expected, size parameter");if(2!==t.length)throw Error("Only two dimensions matrix are supported");if(t=t.map(function(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t)||t<1)throw Error("Size values must be positive integers");return t}),n){if(o(n)&&(n=n.toNumber()),!i(n)||!Q(n))throw TypeError("The parameter k must be an integer number")}else n=0;var a,u=n>0?n:0,f=n<0?-n:0,p=t[0],l=t[1],d=Math.min(p-f,l-u);if(c(r)){if(r.length!==d)throw Error("Invalid value array length");a=function(t){return r[t]}}else if(h(r)){var m=r.size();if(1!==m.length||m[0]!==d)throw Error("Invalid matrix length");a=function(t){return r.get([t])}}else a=function(){return r};s||(s=o(a(0))?a(0).mul(0):0);var g=[];if(t.length>0){g=tg(g,t,s);for(var v=0;v<d;v++)g[v+f][v+u]=a(v)}return new e({data:g,size:[p,l]})},e.fromJSON=function(t){return new e(t)},e.prototype.swapRows=function(t,r){if(!i(t)||!Q(t)||!i(r)||!Q(r))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return tm(t,this._size[0]),tm(r,this._size[0]),e._swapRows(t,r,this._data),this},e._swapRows=function(t,r,e){var n=e[t];e[t]=e[r],e[r]=n},e},{isClass:!0})};let rK=Math.cosh||function(t){return 1e-9>Math.abs(t)?1-t:(Math.exp(t)+Math.exp(-t))*.5},rQ=Math.sinh||function(t){return 1e-9>Math.abs(t)?t:(Math.exp(t)-Math.exp(-t))*.5},r0=function(t){let r=Math.PI/4;if(-r>t||t>r)return Math.cos(t)-1;let e=t*t;return e*(e*(e*(e*(e*(e*(e*(e/20922789888e3-1/0x144c3b2800)+1/0x1c8cfc00)-1/3628800)+1/40320)-1/720)+1/24)-.5)},r1=function(t,r){return((t=Math.abs(t))<(r=Math.abs(r))&&([t,r]=[r,t]),t<1e8)?Math.sqrt(t*t+r*r):(r/=t,t*Math.sqrt(1+r*r))},r2=function(){throw SyntaxError("Invalid Param")};function r7(t,r){let e=Math.abs(t),n=Math.abs(r);return 0===t?Math.log(n):0===r?Math.log(e):e<3e3&&n<3e3?.5*Math.log(t*t+r*r):.5*Math.log((t*=.5)*t+(r*=.5)*r)+Math.LN2}let r4={re:0,im:0},r5=function(t,r){if(null==t)r4.re=r4.im=0;else if(void 0!==r)r4.re=t,r4.im=r;else switch(typeof t){case"object":if("im"in t&&"re"in t)r4.re=t.re,r4.im=t.im;else if("abs"in t&&"arg"in t){if(!isFinite(t.abs)&&isFinite(t.arg))return r3.INFINITY;r4.re=t.abs*Math.cos(t.arg),r4.im=t.abs*Math.sin(t.arg)}else if("r"in t&&"phi"in t){if(!isFinite(t.r)&&isFinite(t.phi))return r3.INFINITY;r4.re=t.r*Math.cos(t.phi),r4.im=t.r*Math.sin(t.phi)}else 2===t.length?(r4.re=t[0],r4.im=t[1]):r2();break;case"string":r4.im=r4.re=0;let e=t.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===e&&r2();for(let t=0;t<e.length;t++){let r=e[t];" "===r||" "===r||"\n"===r||("+"===r?n++:"-"===r?i++:("i"===r||"I"===r?(n+i===0&&r2()," "===e[t+1]||isNaN(e[t+1])?r4.im+=parseFloat((i%2?"-":"")+"1"):(r4.im+=parseFloat((i%2?"-":"")+e[t+1]),t++)):((n+i===0||isNaN(r))&&r2(),"i"===e[t+1]||"I"===e[t+1]?(r4.im+=parseFloat((i%2?"-":"")+r),t++):r4.re+=parseFloat((i%2?"-":"")+r)),n=i=0))}n+i>0&&r2();break;case"number":r4.im=0,r4.re=t;break;default:r2()}return isNaN(r4.re)||isNaN(r4.im),r4};function r3(t,r){if(!(this instanceof r3))return new r3(t,r);let e=r5(t,r);this.re=e.re,this.im=e.im}r3.prototype={re:0,im:0,sign:function(){let t=r1(this.re,this.im);return new r3(this.re/t,this.im/t)},add:function(t,r){let e=r5(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im));return n||i?n&&i?r3.NAN:r3.INFINITY:new r3(this.re+e.re,this.im+e.im)},sub:function(t,r){let e=r5(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im));return n||i?n&&i?r3.NAN:r3.INFINITY:new r3(this.re-e.re,this.im-e.im)},mul:function(t,r){let e=r5(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im)),o=0===this.re&&0===this.im,s=0===e.re&&0===e.im;return n&&s||i&&o?r3.NAN:n||i?r3.INFINITY:0===e.im&&0===this.im?new r3(this.re*e.re,0):new r3(this.re*e.re-this.im*e.im,this.re*e.im+this.im*e.re)},div:function(t,r){let e=r5(t,r),n=this.isInfinite(),i=!(isFinite(e.re)&&isFinite(e.im)),o=0===this.re&&0===this.im,s=0===e.re&&0===e.im;if(o&&s||n&&i)return r3.NAN;if(s||n)return r3.INFINITY;if(o||i)return r3.ZERO;if(0===e.im)return new r3(this.re/e.re,this.im/e.re);if(Math.abs(e.re)<Math.abs(e.im)){let t=e.re/e.im,r=e.re*t+e.im;return new r3((this.re*t+this.im)/r,(this.im*t-this.re)/r)}{let t=e.im/e.re,r=e.im*t+e.re;return new r3((this.re+this.im*t)/r,(this.im-this.re*t)/r)}},pow:function(t,r){let e=r5(t,r),n=0===this.re&&0===this.im;if(0===e.re&&0===e.im)return r3.ONE;if(0===e.im){if(0===this.im&&this.re>0)return new r3(Math.pow(this.re,e.re),0);else if(0===this.re)switch((e.re%4+4)%4){case 0:return new r3(Math.pow(this.im,e.re),0);case 1:return new r3(0,Math.pow(this.im,e.re));case 2:return new r3(-Math.pow(this.im,e.re),0);case 3:return new r3(0,-Math.pow(this.im,e.re))}}if(n&&e.re>0)return r3.ZERO;let i=Math.atan2(this.im,this.re),o=r7(this.re,this.im),s=Math.exp(e.re*o-e.im*i),a=e.im*o+e.re*i;return new r3(s*Math.cos(a),s*Math.sin(a))},sqrt:function(){let t=this.re,r=this.im;if(0===r)if(t>=0)return new r3(Math.sqrt(t),0);else return new r3(0,Math.sqrt(-t));let e=Math.sqrt(.5*(r1(t,r)+Math.abs(t))),n=Math.abs(r)/(2*e);return t>=0?new r3(e,r<0?-n:n):new r3(n,r<0?-e:e)},exp:function(){let t=Math.exp(this.re);return 0===this.im?new r3(t,0):new r3(t*Math.cos(this.im),t*Math.sin(this.im))},expm1:function(){let t=this.re,r=this.im;return new r3(Math.expm1(t)*Math.cos(r)+r0(r),Math.exp(t)*Math.sin(r))},log:function(){let t=this.re,r=this.im;return 0===r&&t>0?new r3(Math.log(t),0):new r3(r7(t,r),Math.atan2(r,t))},abs:function(){return r1(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let t=this.re,r=this.im;return new r3(Math.sin(t)*rK(r),Math.cos(t)*rQ(r))},cos:function(){let t=this.re,r=this.im;return new r3(Math.cos(t)*rK(r),-Math.sin(t)*rQ(r))},tan:function(){let t=2*this.re,r=2*this.im,e=Math.cos(t)+rK(r);return new r3(Math.sin(t)/e,rQ(r)/e)},cot:function(){let t=2*this.re,r=2*this.im,e=Math.cos(t)-rK(r);return new r3(-Math.sin(t)/e,rQ(r)/e)},sec:function(){let t=this.re,r=this.im,e=.5*rK(2*r)+.5*Math.cos(2*t);return new r3(Math.cos(t)*rK(r)/e,Math.sin(t)*rQ(r)/e)},csc:function(){let t=this.re,r=this.im,e=.5*rK(2*r)-.5*Math.cos(2*t);return new r3(Math.sin(t)*rK(r)/e,-Math.cos(t)*rQ(r)/e)},asin:function(){let t=this.re,r=this.im,e=new r3(r*r-t*t+1,-2*t*r).sqrt(),n=new r3(e.re-r,e.im+t).log();return new r3(n.im,-n.re)},acos:function(){let t=this.re,r=this.im,e=new r3(r*r-t*t+1,-2*t*r).sqrt(),n=new r3(e.re-r,e.im+t).log();return new r3(Math.PI/2-n.im,n.re)},atan:function(){let t=this.re,r=this.im;if(0===t){if(1===r)return new r3(0,1/0);if(-1===r)return new r3(0,-1/0)}let e=t*t+(1-r)*(1-r),n=new r3((1-r*r-t*t)/e,-2*t/e).log();return new r3(-.5*n.im,.5*n.re)},acot:function(){let t=this.re,r=this.im;if(0===r)return new r3(Math.atan2(1,t),0);let e=t*t+r*r;return 0!==e?new r3(t/e,-r/e).atan():new r3(0!==t?t/0:0,0!==r?-r/0:0).atan()},asec:function(){let t=this.re,r=this.im;if(0===t&&0===r)return new r3(0,1/0);let e=t*t+r*r;return 0!==e?new r3(t/e,-r/e).acos():new r3(0!==t?t/0:0,0!==r?-r/0:0).acos()},acsc:function(){let t=this.re,r=this.im;if(0===t&&0===r)return new r3(Math.PI/2,1/0);let e=t*t+r*r;return 0!==e?new r3(t/e,-r/e).asin():new r3(0!==t?t/0:0,0!==r?-r/0:0).asin()},sinh:function(){let t=this.re,r=this.im;return new r3(rQ(t)*Math.cos(r),rK(t)*Math.sin(r))},cosh:function(){let t=this.re,r=this.im;return new r3(rK(t)*Math.cos(r),rQ(t)*Math.sin(r))},tanh:function(){let t=2*this.re,r=2*this.im,e=rK(t)+Math.cos(r);return new r3(rQ(t)/e,Math.sin(r)/e)},coth:function(){let t=2*this.re,r=2*this.im,e=rK(t)-Math.cos(r);return new r3(rQ(t)/e,-Math.sin(r)/e)},csch:function(){let t=this.re,r=this.im,e=Math.cos(2*r)-rK(2*t);return new r3(-2*rQ(t)*Math.cos(r)/e,2*rK(t)*Math.sin(r)/e)},sech:function(){let t=this.re,r=this.im,e=Math.cos(2*r)+rK(2*t);return new r3(2*rK(t)*Math.cos(r)/e,-2*rQ(t)*Math.sin(r)/e)},asinh:function(){let t=this.im;this.im=-this.re,this.re=t;let r=this.asin();return this.re=-this.im,this.im=t,t=r.re,r.re=-r.im,r.im=t,r},acosh:function(){let t=this.acos();if(t.im<=0){let r=t.re;t.re=-t.im,t.im=r}else{let r=t.im;t.im=-t.re,t.re=r}return t},atanh:function(){let t=this.re,r=this.im,e=1-t,n=1+t,i=e*e+r*r,o=0!==i?new r3((n*e-r*r)/i,(r*e+n*r)/i):new r3(-1!==t?t/0:0,0!==r?r/0:0),s=o.re;return o.re=r7(o.re,o.im)/2,o.im=Math.atan2(o.im,s)/2,t>1&&0===r&&(o.im=-o.im),o},acoth:function(){let t=this.re,r=this.im;if(0===t&&0===r)return new r3(0,Math.PI/2);let e=t*t+r*r;return 0!==e?new r3(t/e,-r/e).atanh():new r3(0!==t?t/0:0,0!==r?-r/0:0).atanh()},acsch:function(){let t=this.re,r=this.im;if(0===r)return new r3(0!==t?Math.log(t+Math.sqrt(t*t+1)):1/0,0);let e=t*t+r*r;return 0!==e?new r3(t/e,-r/e).asinh():new r3(0!==t?t/0:0,0!==r?-r/0:0).asinh()},asech:function(){let t=this.re,r=this.im;if(this.isZero())return r3.INFINITY;let e=t*t+r*r;return 0!==e?new r3(t/e,-r/e).acosh():new r3(0!==t?t/0:0,0!==r?-r/0:0).acosh()},inverse:function(){if(this.isZero())return r3.INFINITY;if(this.isInfinite())return r3.ZERO;let t=this.re,r=this.im,e=t*t+r*r;return new r3(t/e,-r/e)},conjugate:function(){return new r3(this.re,-this.im)},neg:function(){return new r3(-this.re,-this.im)},ceil:function(t){return t=Math.pow(10,t||0),new r3(Math.ceil(this.re*t)/t,Math.ceil(this.im*t)/t)},floor:function(t){return t=Math.pow(10,t||0),new r3(Math.floor(this.re*t)/t,Math.floor(this.im*t)/t)},round:function(t){return t=Math.pow(10,t||0),new r3(Math.round(this.re*t)/t,Math.round(this.im*t)/t)},equals:function(t,r){let e=r5(t,r);return Math.abs(e.re-this.re)<=r3.EPSILON&&Math.abs(e.im-this.im)<=r3.EPSILON},clone:function(){return new r3(this.re,this.im)},toString:function(){let t=this.re,r=this.im,e="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(t)<r3.EPSILON&&(t=0),Math.abs(r)<r3.EPSILON&&(r=0),0===r)?e+t:(0!==t?(e+=t,e+=" ",r<0?(r=-r,e+="-"):e+="+",e+=" "):r<0&&(r=-r,e+="-"),1!==r&&(e+=r),e+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},r3.ZERO=new r3(0,0),r3.ONE=new r3(1,0),r3.I=new r3(0,1),r3.PI=new r3(Math.PI,0),r3.E=new r3(Math.E,0),r3.INFINITY=new r3(1/0,1/0),r3.NAN=new r3(NaN,NaN),r3.EPSILON=1e-15;var r9=G("Complex",[],()=>(r3.prototype.type="Complex",r3.prototype.isComplex=!0,r3.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},r3.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},r3.prototype.format=function(t){var r=this.im,e=this.re,n=tr(this.re,t),o=tr(this.im,t),s=i(t)?t:t?t.precision:null;if(null!==s){var a=Math.pow(10,-s);Math.abs(e/r)<a&&(e=0),Math.abs(r/e)<a&&(r=0)}return 0===r?n:0===e?1===r?"i":-1===r?"-i":o+"i":r<0?-1===r?n+" - i":n+" - "+o.substring(1)+"i":1===r?n+" + i":n+" + "+o+"i"},r3.fromPolar=function(t){switch(arguments.length){case 1:var r=arguments[0];if("object"==typeof r)return r3(r);throw TypeError("Input has to be an object with r and phi keys.");case 2:var e=arguments[0],n=arguments[1];if(i(e)){if(u(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),i(n))return new r3({r:e,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},r3.prototype.valueOf=r3.prototype.toString,r3.fromJSON=function(t){return new r3(t)},r3.compare=function(t,r){return t.re>r.re?1:t.re<r.re?-1:t.im>r.im?1:t.im<r.im?-1:0},r3),{isClass:!0}),r8={s:1,n:0,d:1};function r6(t,r){if(isNaN(t=parseInt(t,10)))throw es();return t*r}function et(t,r){if(0===r)throw eo();var e=Object.create(ei.prototype);e.s=t<0?-1:1;var n=en(t=t<0?-t:t,r);return e.n=t/n,e.d=r/n,e}function er(t){for(var r={},e=t,n=2,i=4;i<=e;){for(;e%n==0;)e/=n,r[n]=(r[n]||0)+1;i+=1+2*n++}return e!==t?e>1&&(r[e]=(r[e]||0)+1):r[t]=(r[t]||0)+1,r}var ee=function(t,r){var e,n=0,i=1,o=1,s=0,a=0,u=0,f=1,c=1,h=0,p=1,l=1,d=1;if(null==t);else if(void 0!==r){if(o=(n=t)*(i=r),n%1!=0||i%1!=0)throw ea()}else switch(typeof t){case"object":if("d"in t&&"n"in t)n=t.n,i=t.d,"s"in t&&(n*=t.s);else if(0 in t)n=t[0],1 in t&&(i=t[1]);else throw es();o=n*i;break;case"number":if(t<0&&(o=t,t=-t),t%1==0)n=t;else if(t>0){for(t>=1&&(c=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)),t/=c);p<=1e7&&d<=1e7;){if(t===(e=(h+l)/(p+d))){p+d<=1e7?(n=h+l,i=p+d):d>p?(n=l,i=d):(n=h,i=p);break}t>e?(h+=l,p+=d):(l+=h,d+=p),p>1e7?(n=l,i=d):(n=h,i=p)}n*=c}else(isNaN(t)||isNaN(r))&&(i=n=NaN);break;case"string":if(null===(p=t.match(/\d+|./g)))throw es();if("-"===p[h]?(o=-1,h++):"+"===p[h]&&h++,p.length===h+1?a=r6(p[h++],o):"."===p[h+1]||"."===p[h]?("."!==p[h]&&(s=r6(p[h++],o)),(++h+1===p.length||"("===p[h+1]&&")"===p[h+3]||"'"===p[h+1]&&"'"===p[h+3])&&(a=r6(p[h],o),f=Math.pow(10,p[h].length),h++),("("===p[h]&&")"===p[h+2]||"'"===p[h]&&"'"===p[h+2])&&(u=r6(p[h+1],o),c=Math.pow(10,p[h+1].length)-1,h+=3)):"/"===p[h+1]||":"===p[h+1]?(a=r6(p[h],o),f=r6(p[h+2],1),h+=3):"/"===p[h+3]&&" "===p[h+1]&&(s=r6(p[h],o),a=r6(p[h+2],o),f=r6(p[h+4],1),h+=5),p.length<=h){o=n=u+(i=f*c)*s+c*a;break}default:throw es()}if(0===i)throw eo();r8.s=o<0?-1:1,r8.n=Math.abs(n),r8.d=Math.abs(i)};function en(t,r){if(!t)return r;if(!r)return t;for(;;){if(!(t%=r))return r;if(!(r%=t))return t}}function ei(t,r){if(ee(t,r),!(this instanceof ei))return et(r8.s*r8.n,r8.d);t=en(r8.d,r8.n),this.s=r8.s,this.n=r8.n/t,this.d=r8.d/t}var eo=function(){return Error("Division by Zero")},es=function(){return Error("Invalid argument")},ea=function(){return Error("Parameters must be integer")};ei.prototype={s:1,n:0,d:1,abs:function(){return et(this.n,this.d)},neg:function(){return et(-this.s*this.n,this.d)},add:function(t,r){return ee(t,r),et(this.s*this.n*r8.d+r8.s*this.d*r8.n,this.d*r8.d)},sub:function(t,r){return ee(t,r),et(this.s*this.n*r8.d-r8.s*this.d*r8.n,this.d*r8.d)},mul:function(t,r){return ee(t,r),et(this.s*r8.s*this.n*r8.n,this.d*r8.d)},div:function(t,r){return ee(t,r),et(this.s*r8.s*this.n*r8.d,this.d*r8.n)},clone:function(){return et(this.s*this.n,this.d)},mod:function(t,r){if(isNaN(this.n)||isNaN(this.d))return new ei(NaN);if(void 0===t)return et(this.s*this.n%this.d,1);if(ee(t,r),0===r8.n&&0===this.d)throw eo();return et(this.s*(r8.d*this.n)%(r8.n*this.d),r8.d*this.d)},gcd:function(t,r){return ee(t,r),et(en(r8.n,this.n)*en(r8.d,this.d),r8.d*this.d)},lcm:function(t,r){return(ee(t,r),0===r8.n&&0===this.n)?et(0,1):et(r8.n*this.n,en(r8.n,this.n)*en(r8.d,this.d))},ceil:function(t){return(t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d))?new ei(NaN):et(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return(t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d))?new ei(NaN):et(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return(t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d))?new ei(NaN):et(Math.round(t*this.s*this.n/this.d),t)},roundTo:function(t,r){return ee(t,r),et(this.s*Math.round(this.n*r8.d/(this.d*r8.n))*r8.n,r8.d)},inverse:function(){return et(this.s*this.d,this.n)},pow:function(t,r){if(ee(t,r),1===r8.d)if(r8.s<0)return et(Math.pow(this.s*this.d,r8.n),Math.pow(this.n,r8.n));else return et(Math.pow(this.s*this.n,r8.n),Math.pow(this.d,r8.n));if(this.s<0)return null;var e=er(this.n),n=er(this.d),i=1,o=1;for(var s in e)if("1"!==s){if("0"===s){i=0;break}if(e[s]*=r8.n,e[s]%r8.d!=0)return null;e[s]/=r8.d,i*=Math.pow(s,e[s])}for(var s in n)if("1"!==s){if(n[s]*=r8.n,n[s]%r8.d!=0)return null;n[s]/=r8.d,o*=Math.pow(s,n[s])}return r8.s<0?et(o,i):et(i,o)},equals:function(t,r){return ee(t,r),this.s*this.n*r8.d==r8.s*r8.n*this.d},compare:function(t,r){ee(t,r);var e=this.s*this.n*r8.d-r8.s*r8.n*this.d;return(0<e)-(e<0)},simplify:function(t){if(isNaN(this.n)||isNaN(this.d))return this;t=t||.001;for(var r=this.abs(),e=r.toContinued(),n=1;n<e.length;n++){for(var i=et(e[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(e[o]);if(Math.abs(i.sub(r).valueOf())<t)return i.mul(this.s)}return this},divisible:function(t,r){return ee(t,r),!(!(r8.n*this.d)||this.n*r8.d%(r8.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var r,e="",n=this.n,i=this.d;return this.s<0&&(e+="-"),1===i?e+=n:(t&&(r=Math.floor(n/i))>0&&(e+=r,e+=" ",n%=i),e+=n,e+="/",e+=i),e},toLatex:function(t){var r,e="",n=this.n,i=this.d;return this.s<0&&(e+="-"),1===i?e+=n:(t&&(r=Math.floor(n/i))>0&&(e+=r,n%=i),e+="\\frac{",e+=n,e+="}{",e+=i,e+="}"),e},toContinued:function(){var t,r=this.n,e=this.d,n=[];if(isNaN(r)||isNaN(e))return n;do n.push(Math.floor(r/e)),t=r%e,r=e,e=t;while(1!==r);return n},toString:function(t){var r=this.n,e=this.d;if(isNaN(r)||isNaN(e))return"NaN";t=t||15;var n=function(t,r){for(;r%2==0;r/=2);for(;r%5==0;r/=5);if(1===r)return 0;for(var e=10%r,n=1;1!==e;n++)if(e=10*e%r,n>2e3)return 0;return n}(0,e),i=function(t,r,e){for(var n=1,i=function(t,r,e){for(var n=1;r>0;t=t*t%e,r>>=1)1&r&&(n=n*t%e);return n}(10,e,r),o=0;o<300;o++){if(n===i)return o;n=10*n%r,i=10*i%r}return 0}(0,e,n),o=this.s<0?"-":"";if(o+=r/e|0,r%=e,(r*=10)&&(o+="."),n){for(var s=i;s--;)o+=r/e|0,r%=e,r*=10;o+="(";for(var s=n;s--;)o+=r/e|0,r%=e,r*=10;o+=")"}else for(var s=t;r&&s--;)o+=r/e|0,r%=e,r*=10;return o}};var eu=G("Fraction",[],()=>(ei.prototype.type="Fraction",ei.prototype.isFraction=!0,ei.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},ei.fromJSON=function(t){return new ei(t)},ei),{isClass:!0}),ef=e(27554);function ec(t,r){return!!t&&"object"==typeof t&&(!!V(ep,r)||!(r in Object.prototype)&&!(r in Function.prototype))}function eh(t){return"object"==typeof t&&t&&t.constructor===Object}var ep={length:!0,name:!0},el={toString:!0,valueOf:!0,toLocaleString:!0};class ed{constructor(t){this.wrappedObject=t}keys(){return Object.keys(this.wrappedObject)}get(t){var r,e,n=this.wrappedObject;if(eh(n)&&ec(n,t))return n[t];if("function"==typeof n[t]&&(r=n,e=t,!(null==r||"function"!=typeof r[e]||V(r,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(r))&&(V(el,e)||!(e in Object.prototype)&&!(e in Function.prototype))))throw Error('Cannot access method "'+t+'" as a property');throw Error('No access to property "'+t+'"')}set(t,r){return!function(t,r,e){if(eh(t)&&ec(t,r))return t[r]=e;throw Error('No access to property "'+r+'"')}(this.wrappedObject,t,r),this}has(t){return t in this.wrappedObject}}function em(t){return!!t&&(t instanceof Map||t instanceof ed||"function"==typeof t.set&&"function"==typeof t.get&&"function"==typeof t.keys&&"function"==typeof t.has)}var eg=function(){return eg=ef.create,ef};function ev(t){throw Error("Cannot convert value ".concat(t," into a BigNumber: no class 'BigNumber' provided"))}function ey(t){throw Error("Cannot convert value ".concat(t," into a Complex number: no class 'Complex' provided"))}function ew(t){throw Error("Cannot convert value ".concat(t," into a Fraction, no class 'Fraction' provided."))}var ex={BigNumberDependencies:rY,ComplexDependencies:{createComplexClass:r9},DenseMatrixDependencies:rX,FractionDependencies:{createFractionClass:eu},createTyped:G("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(t){var{BigNumber:r,Complex:e,DenseMatrix:n,Fraction:p}=t,L=eg();return L.types=[{name:"number",test:i},{name:"Complex",test:s},{name:"BigNumber",test:o},{name:"Fraction",test:a},{name:"Unit",test:u},{name:"string",test:f},{name:"Chain",test:U},{name:"Array",test:c},{name:"Matrix",test:h},{name:"DenseMatrix",test:l},{name:"SparseMatrix",test:d},{name:"Range",test:m},{name:"Index",test:g},{name:"boolean",test:v},{name:"ResultSet",test:y},{name:"Help",test:w},{name:"function",test:x},{name:"Date",test:b},{name:"RegExp",test:N},{name:"null",test:M},{name:"undefined",test:E},{name:"AccessorNode",test:O},{name:"ArrayNode",test:A},{name:"AssignmentNode",test:z},{name:"BlockNode",test:S},{name:"ConditionalNode",test:F},{name:"ConstantNode",test:C},{name:"FunctionNode",test:T},{name:"FunctionAssignmentNode",test:I},{name:"IndexNode",test:j},{name:"Node",test:D},{name:"ObjectNode",test:k},{name:"OperatorNode",test:P},{name:"ParenthesisNode",test:R},{name:"RangeNode",test:B},{name:"SymbolNode",test:q},{name:"Map",test:em},{name:"Object",test:_}],L.conversions=[{from:"number",to:"BigNumber",convert:function(t){if(r||ev(t),t.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+t+"). Use function bignumber(x) to convert to BigNumber.");return new r(t)}},{from:"number",to:"Complex",convert:function(t){return e||ey(t),new e(t,0)}},{from:"number",to:"string",convert:function(t){return t+""}},{from:"BigNumber",to:"Complex",convert:function(t){return e||ey(t),new e(t.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(t){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(t){return e||ey(t),new e(t.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(t){p||ew(t);var r=new p(t);if(r.valueOf()!==t)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+t+"). Use function fraction(x) to convert to Fraction.");return r}},{from:"string",to:"number",convert:function(t){var r=Number(t);if(isNaN(r))throw Error('Cannot convert "'+t+'" to a number');return r}},{from:"string",to:"BigNumber",convert:function(t){r||ev(t);try{return new r(t)}catch(r){throw Error('Cannot convert "'+t+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(t){p||ew(t);try{return new p(t)}catch(r){throw Error('Cannot convert "'+t+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(t){e||ey(t);try{return new e(t)}catch(r){throw Error('Cannot convert "'+t+'" to Complex')}}},{from:"boolean",to:"number",convert:function(t){return+t}},{from:"boolean",to:"BigNumber",convert:function(t){return r||ev(t),new r(+t)}},{from:"boolean",to:"Fraction",convert:function(t){return p||ew(t),new p(+t)}},{from:"boolean",to:"string",convert:function(t){return String(t)}},{from:"Array",to:"Matrix",convert:function(t){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(t)}},{from:"Matrix",to:"Array",convert:function(t){return t.valueOf()}}],L})},eb="equalScalar",eN=G(eb,["typed","config"],t=>{var{typed:r,config:e}=t;return r(eb,{"boolean, boolean":function(t,r){return t===r},"number, number":function(t,r){return ta(t,r,e.epsilon)},"BigNumber, BigNumber":function(t,r){return t.eq(r)||function(t,r,e){if(null==e)return t.eq(r);if(t.eq(r))return!0;if(t.isNaN()||r.isNaN())return!1;if(t.isFinite()&&r.isFinite()){var n=t.minus(r).abs();if(n.isZero())return!0;var i=t.constructor.max(t.abs(),r.abs());return n.lte(i.times(e))}return!1}(t,r,e.epsilon)},"Fraction, Fraction":function(t,r){return t.equals(r)},"Complex, Complex":function(t,r){var n;return n=e.epsilon,ta(t.re,r.re,n)&&ta(t.im,r.im,n)},"Unit, Unit":function(t,r){if(!t.equalBase(r))throw Error("Cannot compare units with different base");return this(t.value,r.value)}})});G(eb,["typed","config"],t=>{var{typed:r,config:e}=t;return r(eb,{"number, number":function(t,r){return ta(t,r,e.epsilon)}})});var e_={typedDependencies:ex,createEqualScalar:eN},eM=G("SparseMatrix",["typed","equalScalar","Matrix"],t=>{var{typed:r,equalScalar:e,Matrix:n}=t;function s(t,r){if(!(this instanceof s))throw SyntaxError("Constructor must be called with the new operator");if(r&&!f(r))throw Error("Invalid datatype: "+r);if(h(t)){var e,n,i;e=this,n=t,i=r,"SparseMatrix"===n.type?(e._values=n._values?Z(n._values):void 0,e._index=Z(n._index),e._ptr=Z(n._ptr),e._size=Z(n._size),e._datatype=i||n._datatype):a(e,n.valueOf(),i||n._datatype)}else if(t&&c(t.index)&&c(t.ptr)&&c(t.size))this._values=t.values,this._index=t.index,this._ptr=t.ptr,this._size=t.size,this._datatype=r||t.datatype;else if(c(t))a(this,t,r);else if(t)throw TypeError("Unsupported type of data ("+L(t)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=r}function a(t,n,i){t._values=[],t._index=[],t._ptr=[],t._datatype=i;var o=n.length,s=0,a=e,u=0;if(f(i)&&(a=r.find(e,[i,i])||e,u=r.convert(0,i)),o>0){var h=0;do{t._ptr.push(t._index.length);for(var p=0;p<o;p++){var l=n[p];if(c(l)){if(0===h&&s<l.length&&(s=l.length),h<l.length){var d=l[h];a(d,u)||(t._values.push(d),t._index.push(p))}}else 0===h&&s<1&&(s=1),a(l,u)||(t._values.push(l),t._index.push(p))}h++}while(h<s)}t._ptr.push(t._index.length),t._size=[o,s]}function u(t,r,e,n){if(e-r==0)return e;for(var i=r;i<e;i++)if(n[i]===t)return i;return r}function l(t,r,e,n,i,o,s){i.splice(t,0,n),o.splice(t,0,r);for(var a=e+1;a<s.length;a++)s[a]++}function d(t,n,i,o){var s,a,u,c=o||0,h=e,p=0;f(t._datatype)&&(h=r.find(e,[t._datatype,t._datatype])||e,p=r.convert(0,t._datatype),c=r.convert(c,t._datatype));var l=!h(c,p),d=t._size[0],m=t._size[1];if(i>m){for(a=m;a<i;a++)if(t._ptr[a]=t._values.length,l)for(s=0;s<d;s++)t._values.push(c),t._index.push(s);t._ptr[i]=t._values.length}else i<m&&(t._ptr.splice(i+1,m-i),t._values.splice(t._ptr[i],t._values.length),t._index.splice(t._ptr[i],t._index.length));if(m=i,n>d){if(l){var g=0;for(a=0;a<m;a++){t._ptr[a]=t._ptr[a]+g,u=t._ptr[a+1]+g;var v=0;for(s=d;s<n;s++,v++)t._values.splice(u+v,0,c),t._index.splice(u+v,0,s),g++}t._ptr[m]=t._values.length}}else if(n<d){var y=0;for(a=0;a<m;a++){t._ptr[a]=t._ptr[a]-y;var w=t._ptr[a],x=t._ptr[a+1]-y;for(u=w;u<x;u++)(s=t._index[u])>n-1&&(t._values.splice(u,1),t._index.splice(u,1),y++)}t._ptr[a]=t._values.length}return t._size[0]=n,t._size[1]=i,t}function m(t,r,e,n,i){var o,s,a=n[0],u=n[1],f=[];for(o=0;o<a;o++)for(s=0,f[o]=[];s<u;s++)f[o][s]=0;for(s=0;s<u;s++)for(var c=e[s],h=e[s+1],p=c;p<h;p++)f[o=r[p]][s]=t?i?Z(t[p]):t[p]:1;return f}return s.prototype=new n,s.prototype.createSparseMatrix=function(t,r){return new s(t,r)},s.prototype.type="SparseMatrix",s.prototype.isSparseMatrix=!0,s.prototype.getDataType=function(){return tx(this._values,L)},s.prototype.storage=function(){return"sparse"},s.prototype.datatype=function(){return this._datatype},s.prototype.create=function(t,r){return new s(t,r)},s.prototype.density=function(){var t=this._size[0],r=this._size[1];return 0!==t&&0!==r?this._index.length/(t*r):0},s.prototype.subset=function(t,r,e){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(t,r){if(!g(r))throw TypeError("Invalid index");if(r.isScalar())return t.get(r.min());var e,n,i,o,a=r.size();if(a.length!==t._size.length)throw new th(a.length,t._size.length);var u=r.min(),f=r.max();for(e=0,n=t._size.length;e<n;e++)tm(u[e],t._size[e]),tm(f[e],t._size[e]);var c=t._values,h=t._index,p=t._ptr,l=r.dimension(0),d=r.dimension(1),m=[],v=[];l.forEach(function(t,r){v[t]=r[0],m[t]=!0});var y=c?[]:void 0,w=[],x=[];return d.forEach(function(t){for(x.push(w.length),i=p[t],o=p[t+1];i<o;i++)!0===m[e=h[i]]&&(w.push(v[e]),y&&y.push(c[i]))}),x.push(w.length),new s({values:y,index:w,ptr:x,size:a,datatype:t._datatype})}(this,t);case 2:case 3:return function(t,r,e,n){if(!r||!0!==r.isIndex)throw TypeError("Invalid index");var i,o=r.size(),s=r.isScalar();if(h(e)?(i=e.size(),e=e.toArray()):i=tl(e),s){if(0!==i.length)throw TypeError("Scalar expected");t.set(r.min(),e,n)}else{if(1!==o.length&&2!==o.length)throw new th(o.length,t._size.length,"<");if(i.length<o.length){for(var a=0,u=0;1===o[a]&&1===i[a];)a++;for(;1===o[a];)u++,a++;e=tw(e,o.length,u,i)}if(!W(o,i))throw new th(o,i,">");if(1===o.length)r.dimension(0).forEach(function(r,i){tm(r),t.set([r,0],e[i[0]],n)});else{var f=r.dimension(0),c=r.dimension(1);f.forEach(function(r,i){tm(r),c.forEach(function(o,s){tm(o),t.set([r,o],e[i[0]][s[0]],n)})})}}return t}(this,t,r,e);default:throw SyntaxError("Wrong number of arguments")}},s.prototype.get=function(t){if(!c(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new th(t.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var r=t[0],e=t[1];tm(r,this._size[0]),tm(e,this._size[1]);var n=u(r,this._ptr[e],this._ptr[e+1],this._index);return n<this._ptr[e+1]&&this._index[n]===r?this._values[n]:0},s.prototype.set=function(t,n,i){if(!c(t))throw TypeError("Array expected");if(t.length!==this._size.length)throw new th(t.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var o=t[0],s=t[1],a=this._size[0],h=this._size[1],p=e,m=0;f(this._datatype)&&(p=r.find(e,[this._datatype,this._datatype])||e,m=r.convert(0,this._datatype)),(o>a-1||s>h-1)&&(d(this,Math.max(o+1,a),Math.max(s+1,h),i),a=this._size[0],h=this._size[1]),tm(o,a),tm(s,h);var g=u(o,this._ptr[s],this._ptr[s+1],this._index);return g<this._ptr[s+1]&&this._index[g]===o?p(n,m)?function(t,r,e,n,i){e.splice(t,1),n.splice(t,1);for(var o=r+1;o<i.length;o++)i[o]--}(g,s,this._values,this._index,this._ptr):this._values[g]=n:l(g,o,s,n,this._values,this._index,this._ptr),this},s.prototype.resize=function(t,r,e){if(!p(t))throw TypeError("Array or Matrix expected");var n=t.valueOf().map(t=>Array.isArray(t)&&1===t.length?t[0]:t);if(2!==n.length)throw Error("Only two dimensions matrix are supported");return n.forEach(function(t){if(!i(t)||!Q(t)||t<0)throw TypeError("Invalid size, must contain positive integers (size: "+tc(n)+")")}),d(e?this.clone():this,n[0],n[1],r)},s.prototype.reshape=function(t,r){if(!c(t))throw TypeError("Array expected");if(2!==t.length)throw Error("Sparse matrices can only be reshaped in two dimensions");t.forEach(function(r){if(!i(r)||!Q(r)||r<=-2||0===r)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+tc(t)+")")});var e=this._size[0]*this._size[1],n=(t=tv(t,e))[0]*t[1];if(e!==n)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var o=r?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return o;for(var s=[],a=0;a<o._ptr.length;a++)for(var f=0;f<o._ptr[a+1]-o._ptr[a];f++)s.push(a);for(var h=o._values.slice(),p=o._index.slice(),d=0;d<o._index.length;d++){var m=p[d],g=s[d],v=m*o._size[1]+g;s[d]=v%t[1],p[d]=Math.floor(v/t[1])}o._values.length=0,o._index.length=0,o._ptr.length=t[1]+1,o._size=t.slice();for(var y=0;y<o._ptr.length;y++)o._ptr[y]=0;for(var w=0;w<h.length;w++){var x=p[w],b=s[w],N=h[w];l(u(x,o._ptr[b],o._ptr[b+1],o._index),x,b,N,o._values,o._index,o._ptr)}return o},s.prototype.clone=function(){return new s({values:this._values?Z(this._values):void 0,index:Z(this._index),ptr:Z(this._ptr),size:Z(this._size),datatype:this._datatype})},s.prototype.size=function(){return this._size.slice(0)},s.prototype.map=function(t,n){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var i=this;return function(t,n,i,o,a,u,c){var h=[],p=[],l=[],d=e,m=0;f(t._datatype)&&(d=r.find(e,[t._datatype,t._datatype])||e,m=r.convert(0,t._datatype));for(var g=function(t,r,e){t=u(t,r,e),d(t,m)||(h.push(t),p.push(r))},v=0;v<=a;v++){l.push(h.length);var y=t._ptr[v],w=t._ptr[v+1];if(c)for(var x=y;x<w;x++){var b=t._index[x];b>=0&&b<=i&&g(t._values[x],b-n,v-o)}else{for(var N={},_=y;_<w;_++)N[t._index[_]]=t._values[_];for(var M=n;M<=i;M++)g(M in N?N[M]:0,M-n,v-o)}}return l.push(h.length),new s({values:h,index:p,ptr:l,size:[i-n+1,a-o+1]})}(this,0,this._size[0]-1,0,this._size[1]-1,function(r,e,n){return t(r,[e,n],i)},n)},s.prototype.forEach=function(t,r){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var e=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],s=this._ptr[i+1];if(r)for(var a=o;a<s;a++){var u=this._index[a];t(this._values[a],[u,i],this)}else{for(var f={},c=o;c<s;c++)f[this._index[c]]=this._values[c];for(var h=0;h<e;h++)t(h in f?f[h]:0,[h,i],this)}}},s.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var t=this._size[1],r=0;r<t;r++)for(var e=this._ptr[r],n=this._ptr[r+1],i=e;i<n;i++){var o=this._index[i];yield{value:this._values[i],index:[o,r]}}},s.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},s.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)},s.prototype.format=function(t){for(var r=this._size[0],e=this._size[1],n=this.density(),i="Sparse Matrix ["+tc(r,t)+" x "+tc(e,t)+"] density: "+tc(n,t)+"\n",o=0;o<e;o++)for(var s=this._ptr[o],a=this._ptr[o+1],u=s;u<a;u++)i+="\n ("+tc(this._index[u],t)+", "+tc(o,t)+") ==> "+(this._values?tc(this._values[u],t):"X");return i},s.prototype.toString=function(){return tc(this.toArray())},s.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},s.prototype.diagonal=function(t){if(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t))throw TypeError("The parameter k must be an integer number")}else t=0;var r=t>0?t:0,e=t<0?-t:0,n=this._size[0],a=this._size[1],u=Math.min(n-e,a-r),f=[],c=[],h=[];h[0]=0;for(var p=r;p<a&&f.length<u;p++)for(var l=this._ptr[p],d=this._ptr[p+1],m=l;m<d;m++){var g=this._index[m];if(g===p-r+e){f.push(this._values[m]),c[f.length-1]=g-e;break}}return h.push(f.length),new s({values:f,index:c,ptr:h,size:[u,1]})},s.fromJSON=function(t){return new s(t)},s.diagonal=function(t,n,a,u,p){if(!c(t))throw TypeError("Array expected, size parameter");if(2!==t.length)throw Error("Only two dimensions matrix are supported");if(t=t.map(function(t){if(o(t)&&(t=t.toNumber()),!i(t)||!Q(t)||t<1)throw Error("Size values must be positive integers");return t}),a){if(o(a)&&(a=a.toNumber()),!i(a)||!Q(a))throw TypeError("The parameter k must be an integer number")}else a=0;var l,d=e,m=0;f(p)&&(d=r.find(e,[p,p])||e,m=r.convert(0,p));var g=a>0?a:0,v=a<0?-a:0,y=t[0],w=t[1],x=Math.min(y-v,w-g);if(c(n)){if(n.length!==x)throw Error("Invalid value array length");l=function(t){return n[t]}}else if(h(n)){var b=n.size();if(1!==b.length||b[0]!==x)throw Error("Invalid matrix length");l=function(t){return n.get([t])}}else l=function(){return n};for(var N=[],_=[],M=[],E=0;E<w;E++){M.push(N.length);var O=E-g;if(O>=0&&O<x){var A=l(O);d(A,m)||(_.push(O+v),N.push(A))}}return M.push(N.length),new s({values:N,index:_,ptr:M,size:[y,w]})},s.prototype.swapRows=function(t,r){if(!i(t)||!Q(t)||!i(r)||!Q(r))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return tm(t,this._size[0]),tm(r,this._size[0]),s._swapRows(t,r,this._size[1],this._values,this._index,this._ptr),this},s._forEachRow=function(t,r,e,n,i){for(var o=n[t],s=n[t+1],a=o;a<s;a++)i(e[a],r[a])},s._swapRows=function(t,r,e,n,i,o){for(var s=0;s<e;s++){var a=o[s],f=o[s+1],c=u(t,a,f,i),h=u(r,a,f,i);if(c<f&&h<f&&i[c]===t&&i[h]===r){if(n){var p=n[c];n[c]=n[h],n[h]=p}continue}if(c<f&&i[c]===t&&(h>=f||i[h]!==r)){var l=n?n[c]:void 0;i.splice(h,0,r),n&&n.splice(h,0,l),i.splice(h<=c?c+1:c,1),n&&n.splice(h<=c?c+1:c,1);continue}if(h<f&&i[h]===r&&(c>=f||i[c]!==t)){var d=n?n[h]:void 0;i.splice(c,0,t),n&&n.splice(c,0,d),i.splice(c<=h?h+1:h,1),n&&n.splice(c<=h?h+1:h,1)}}},s},{isClass:!0}),eE="matrix",eO=G(eE,["typed","Matrix","DenseMatrix","SparseMatrix"],t=>{var{typed:r,Matrix:e,DenseMatrix:n,SparseMatrix:i}=t;return r(eE,{"":function(){return o([])},string:function(t){return o([],t)},"string, string":function(t,r){return o([],t,r)},Array:function(t){return o(t)},Matrix:function(t){return o(t,t.storage())},"Array | Matrix, string":o,"Array | Matrix, string, string":o});function o(t,r,e){if("dense"===r||"default"===r||void 0===r)return new n(t,e);if("sparse"===r)return new i(t,e);throw TypeError("Unknown matrix type "+JSON.stringify(r)+".")}}),eA=G("algorithm01",["typed"],t=>{var{typed:r}=t;return function(t,e,n,i){var o,s,a=t._data,u=t._size,f=t._datatype,c=e._values,h=e._index,p=e._ptr,l=e._size,d=e._datatype;if(u.length!==l.length)throw new th(u.length,l.length);if(u[0]!==l[0]||u[1]!==l[1])throw RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+l+")");if(!c)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=u[0],g=u[1],v="string"==typeof f&&f===d?f:void 0,y=v?r.find(n,[v,v]):n,w=[];for(o=0;o<m;o++)w[o]=[];var x=[],b=[];for(s=0;s<g;s++){for(var N=s+1,_=p[s],M=p[s+1],E=_;E<M;E++)x[o=h[E]]=i?y(c[E],a[o][s]):y(a[o][s],c[E]),b[o]=N;for(o=0;o<m;o++)b[o]===N?w[o][s]=x[o]:w[o][s]=a[o][s]}return t.createDenseMatrix({data:w,size:[m,g],datatype:v})}}),ez=G("algorithm04",["typed","equalScalar"],t=>{var{typed:r,equalScalar:e}=t;return function(t,n,i){var o,s,a,u,f,c,h=t._values,p=t._index,l=t._ptr,d=t._size,m=t._datatype,g=n._values,v=n._index,y=n._ptr,w=n._size,x=n._datatype;if(d.length!==w.length)throw new th(d.length,w.length);if(d[0]!==w[0]||d[1]!==w[1])throw RangeError("Dimension mismatch. Matrix A ("+d+") must match Matrix B ("+w+")");var b=d[0],N=d[1],_=e,M=0,E=i;"string"==typeof m&&m===x&&(o=m,_=r.find(e,[o,o]),M=r.convert(0,o),E=r.find(i,[o,o]));var O=h&&g?[]:void 0,A=[],z=[],S=h&&g?[]:void 0,F=h&&g?[]:void 0,C=[],I=[];for(a=0;a<N;a++){z[a]=A.length;var T=a+1;for(f=l[a],c=l[a+1],u=f;u<c;u++)s=p[u],A.push(s),C[s]=T,S&&(S[s]=h[u]);for(f=y[a],c=y[a+1],u=f;u<c;u++)if(C[s=v[u]]===T){if(S){var j=E(S[s],g[u]);_(j,M)?C[s]=null:S[s]=j}}else A.push(s),I[s]=T,F&&(F[s]=g[u]);if(S&&F)for(u=z[a];u<A.length;)C[s=A[u]]===T?(O[u]=S[s],u++):I[s]===T?(O[u]=F[s],u++):A.splice(u,1)}return z[N]=A.length,t.createSparseMatrix({values:O,index:A,ptr:z,size:[b,N],datatype:o})}}),eS=G("algorithm10",["typed","DenseMatrix"],t=>{var{typed:r,DenseMatrix:e}=t;return function(t,n,i,o){var s,a=t._values,u=t._index,f=t._ptr,c=t._size,h=t._datatype;if(!a)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],l=c[1],d=i;"string"==typeof h&&(s=h,n=r.convert(n,s),d=r.find(i,[s,s]));for(var m=[],g=[],v=[],y=0;y<l;y++){for(var w=y+1,x=f[y],b=f[y+1],N=x;N<b;N++){var _=u[N];g[_]=a[N],v[_]=w}for(var M=0;M<p;M++)0===y&&(m[M]=[]),v[M]===w?m[M][y]=o?d(n,g[M]):d(g[M],n):m[M][y]=n}return new e({data:m,size:[p,l],datatype:s})}}),eF=G("algorithm13",["typed"],t=>{var{typed:r}=t;return function(t,e,n){var i,o=t._data,s=t._size,a=t._datatype,u=e._data,f=e._size,c=e._datatype,h=[];if(s.length!==f.length)throw new th(s.length,f.length);for(var p=0;p<s.length;p++){if(s[p]!==f[p])throw RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+f+")");h[p]=s[p]}var l=n;"string"==typeof a&&a===c&&(i=a,l=r.find(n,[i,i]));var d=h.length>0?function t(r,e,n,i,o,s){var a=[];if(e===n.length-1)for(var u=0;u<i;u++)a[u]=r(o[u],s[u]);else for(var f=0;f<i;f++)a[f]=t(r,e+1,n,n[e+1],o[f],s[f]);return a}(l,0,h,h[0],o,u):[];return t.createDenseMatrix({data:d,size:h,datatype:i})}}),eC=G("algorithm14",["typed"],t=>{var{typed:r}=t;return function(t,e,n,i){var o,s=t._data,a=t._size,u=t._datatype,f=n;"string"==typeof u&&(o=u,e=r.convert(e,o),f=r.find(n,[o,o]));var c=a.length>0?function t(r,e,n,i,o,s,a){var u=[];if(e===n.length-1)for(var f=0;f<i;f++)u[f]=a?r(s,o[f]):r(o[f],s);else for(var c=0;c<i;c++)u[c]=t(r,e+1,n,n[e+1],o[c],s,a);return u}(f,0,a,a[0],s,e,i):[];return t.createDenseMatrix({data:c,size:Z(a),datatype:o})}});function eI(t,r){var e;if(!Q(t)||!Q(r))throw Error("Parameters in function gcd must be integer numbers");for(;0!==r;)e=t%r,t=r,r=e;return t<0?-t:t}eI.signature="number, number";let{gcd:eT}=function t(r,e){var L,W,Q,tt=(0,n.Z)({},t_,e);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var tr=((L={isNumber:i,isComplex:s,isBigNumber:o,isFraction:a,isUnit:u,isString:f,isArray:c,isMatrix:h,isCollection:p,isDenseMatrix:l,isSparseMatrix:d,isRange:m,isIndex:g,isBoolean:v,isResultSet:y,isHelp:w,isFunction:x,isDate:b,isRegExp:N,isObject:_,isNull:M,isUndefined:E,isAccessorNode:O,isArrayNode:A,isAssignmentNode:z,isBlockNode:S,isConditionalNode:F,isConstantNode:C,isFunctionAssignmentNode:I,isFunctionNode:T,isIndexNode:j,isNode:D,isObjectNode:k,isOperatorNode:P,isParenthesisNode:R,isRangeNode:B,isSymbolNode:q,isChain:U}).on=(W=new Y).on.bind(W),L.off=W.off.bind(W),L.once=W.once.bind(W),L.emit=W.emit.bind(W),L);tr.config=function(t,r){function e(e){if(!e)return J(t,Z);var n=J(t,Z);tO(e,"matrix",tM),tO(e,"number",tE),function t(r,e){if(Array.isArray(e))throw TypeError("Arrays are not supported by deepExtend");for(var n in e)if(V(e,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(e[n]&&e[n].constructor===Object)void 0===r[n]&&(r[n]={}),r[n]&&r[n].constructor===Object?t(r[n],e[n]):r[n]=e[n];else if(Array.isArray(e[n]))throw TypeError("Arrays are not supported by deepExtend");else r[n]=e[n];return r}(t,e);var i=J(t,Z);return r("config",i,n,J(e,Z)),i}return e.MATRIX_OPTIONS=tM,e.NUMBER_OPTIONS=tE,Object.keys(t_).forEach(r=>{Object.defineProperty(e,r,{get:()=>t[r],enumerable:!0,configurable:!0})}),e}(tt,tr.emit),tr.expression={transform:{},mathWithTransform:{config:tr.config}};var te={},tn=function(t,r,e,n){function i(t,r){r&&"function"==typeof r.transform?(e.expression.transform[t]=r.transform,V(p,t)||(e.expression.mathWithTransform[t]=r.transform)):(delete e.expression.transform[t],V(p,t)||(e.expression.mathWithTransform[t]=r))}function f(t){return"function"==typeof t&&"object"==typeof t.signatures}function c(t){return void 0!==t&&void 0!==t.meta&&!0===t.meta.isTransformFunction}var p={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(r,l){var d=arguments.length;if(1!==d&&2!==d)throw new tN("import",d,1,2);l||(l={});var m={};for(var g in!function t(r,e,n){if(Array.isArray(e))e.forEach(e=>t(r,e));else if("object"==typeof e)for(var i in e)V(e,i)&&t(r,e[i],i);else if(X(e)||void 0!==n){var o=X(e)?c(e)?e.fn+".transform":e.fn:n;if(V(r,o)&&r[o]!==e&&!l.silent)throw Error('Cannot import "'+o+'" twice');r[o]=e}else if(!l.silent)throw TypeError("Factory, Object, or Array expected")}(m,r),m)if(V(m,g)){var v,y=m[g];if(X(y))!function(r,i){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.fn;if(tb(s,"."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(s));var a=c(r)?e.expression.transform:e,u=s in e.expression.transform,h=V(a,s)?a[s]:void 0,l=function(){var n={};r.dependencies.map(K).forEach(t=>{if(tb(t,"."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(t));"math"===t?n.math=e:"mathWithTransform"===t?n.mathWithTransform=e.expression.mathWithTransform:"classes"===t?n.classes=e:n[t]=e[t]});var o=r(n);if(o&&"function"==typeof o.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===h||i.override)return o;if(f(h)&&f(o))return t(h,o);if(i.silent)return h;throw Error('Cannot import "'+s+'": already exists')};r.meta&&!1===r.meta.lazy?a[s]=l():H(a,s,l),h&&u?function(t){delete e.expression.transform[t],V(p,t)?delete e.expression.mathWithTransform[t]:e.expression.mathWithTransform[t]=e[t]}(s):!c(r)&&(-1!==(o=r).fn.indexOf(".")||V(p,o.fn)||o.meta&&o.meta.isClass)||H(e.expression.mathWithTransform,s,()=>a[s]),n[s]=r,e.emit("import",s,l)}(y,l);else{if("function"==typeof(v=y)||"number"==typeof v||"string"==typeof v||"boolean"==typeof v||null===v||u(v)||s(v)||o(v)||a(v)||h(v)||Array.isArray(v))!function(r,o,s){var a;if(s.wrap&&"function"==typeof o&&(o=function(t){var r=function(){for(var r=[],n=0,i=arguments.length;n<i;n++){var o=arguments[n];r[n]=o&&o.valueOf()}return t.apply(e,r)};return t.transform&&(r.transform=t.transform),r}(o)),"function"==typeof(a=o)&&"string"==typeof a.signature&&(o=t(r,{[o.signature]:o})),f(e[r])&&f(o)){o=s.override?t(r,o.signatures):t(e[r],o),e[r]=o,delete n[r],i(r,o),e.emit("import",r,function(){return o});return}if(void 0===e[r]||s.override){e[r]=o,delete n[r],i(r,o),e.emit("import",r,function(){return o});return}if(!s.silent)throw Error('Cannot import "'+r+'": already exists')}(g,y,l);else if(!l.silent)throw TypeError("Factory, Object, or Array expected")}}}}(function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return tr.typed.apply(tr.typed,r)},0,tr,te);return tr.import=tn,tr.on("config",()=>{$(te).forEach(t=>{t&&t.meta&&t.meta.recreateOnConfigChange&&tn(t,{override:!0})})}),tr.create=t.bind(null,r),tr.factory=G,tr.import($((function t(r,e){for(var n in r)if(V(r,n)){var i=r[n];"object"==typeof i&&null!==i?t(i,e):e[n]=i}}(r,Q={}),Q))),tr.ArgumentsError=tN,tr.DimensionError=th,tr.IndexError=tp,tr}({gcdDependencies:{BigNumberDependencies:rY,DenseMatrixDependencies:rX,equalScalarDependencies:e_,matrixDependencies:{DenseMatrixDependencies:rX,MatrixDependencies:rG,SparseMatrixDependencies:{MatrixDependencies:rG,equalScalarDependencies:e_,typedDependencies:ex,createSparseMatrixClass:eM},typedDependencies:ex,createMatrix:eO},typedDependencies:ex,createGcd:G("gcd",["typed","matrix","equalScalar","BigNumber","DenseMatrix"],t=>{var{typed:r,matrix:e,equalScalar:n,BigNumber:i,DenseMatrix:o}=t,s=eA({typed:r}),a=ez({typed:r,equalScalar:n}),u=eS({typed:r,DenseMatrix:o}),f=eF({typed:r}),c=eC({typed:r});return r("gcd",{"number, number":eI,"BigNumber, BigNumber":function(t,r){if(!t.isInt()||!r.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var e=new i(0);!r.isZero();){var n=t.mod(r);t=r,r=n}return t.lt(e)?t.neg():t},"Fraction, Fraction":function(t,r){return t.gcd(r)},"SparseMatrix, SparseMatrix":function(t,r){return a(t,r,this)},"SparseMatrix, DenseMatrix":function(t,r){return s(r,t,this,!0)},"DenseMatrix, SparseMatrix":function(t,r){return s(t,r,this,!1)},"DenseMatrix, DenseMatrix":function(t,r){return f(t,r,this)},"Array, Array":function(t,r){return this(e(t),e(r)).valueOf()},"Array, Matrix":function(t,r){return this(e(t),r)},"Matrix, Array":function(t,r){return this(t,e(r))},"SparseMatrix, number | BigNumber":function(t,r){return u(t,r,this,!1)},"DenseMatrix, number | BigNumber":function(t,r){return c(t,r,this,!1)},"number | BigNumber, SparseMatrix":function(t,r){return u(r,t,this,!0)},"number | BigNumber, DenseMatrix":function(t,r){return c(r,t,this,!0)},"Array, number | BigNumber":function(t,r){return c(e(t),r,this,!1).valueOf()},"number | BigNumber, Array":function(t,r){return c(e(r),t,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(t,r,e){for(var n=this(t,r),i=0;i<e.length;i++)n=this(n,e[i]);return n}})})}}),ej=10;function eD(t,r){let e=r.startMs,n=t.values,i=[];for(let t of n){for(;e<t[0];)i.push([e,null]),e+=r.stepMs;i.push([e,t[1]]),e+=r.stepMs}for(;e<=r.endMs;)i.push([e,null]),e+=r.stepMs;return i}function ek(t){let r,e,n=[];for(let r of t)if(r&&"timeRange"in r){if(void 0===r||void 0===r.timeRange||void 0===r.stepMs)continue;if(n.push(r.stepMs),void 0===e){e=r.timeRange;continue}r.timeRange.start<e.start&&(e.start=r.timeRange.start),r.timeRange.end>e.end&&(e.end=r.timeRange.end)}else if(r&&"values"in r){for(let t=0;t<r.values.length;t++){let n=r.values[t];if(void 0===n)continue;let[i]=n,o=new Date(i),s=new Date(i);if(void 0===e){e={start:o,end:s};continue}o<e.start&&(e.start=o),s>e.end&&(e.end=s)}if(void 0===e)return;let t=e.start.valueOf(),n=e.end.valueOf(),i=n-t;return{startMs:t,endMs:n,rangeMs:i,stepMs:ej}}if(void 0===e)return;if(1===n.length)r=n[0];else{let t=eT(...n);r=t<ej?ej:t}let i=e.start.valueOf(),o=e.end.valueOf();return{startMs:i,endMs:o,stepMs:r,rangeMs:o-i}}},8317:function(t){function r(){}r.prototype={on:function(t,r,e){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:r,ctx:e}),this},once:function(t,r,e){var n=this;function i(){n.off(t,i),r.apply(e,arguments)}return i._=r,this.on(t,i,e)},emit:function(t){for(var r=[].slice.call(arguments,1),e=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=e.length;n<i;n++)e[n].fn.apply(e[n].ctx,r);return this},off:function(t,r){var e=this.e||(this.e={}),n=e[t],i=[];if(n&&r)for(var o=0,s=n.length;o<s;o++)n[o].fn!==r&&n[o].fn._!==r&&i.push(n[o]);return i.length?e[t]=i:delete e[t],this}},t.exports=r,t.exports.TinyEmitter=r},27554:function(t){"use strict";var r;r=function(){function t(){return!0}function r(){return!1}function e(){}return function n(){var i=[{name:"number",test:function(t){return"number"==typeof t}},{name:"string",test:function(t){return"string"==typeof t}},{name:"boolean",test:function(t){return"boolean"==typeof t}},{name:"Function",test:function(t){return"function"==typeof t}},{name:"Array",test:Array.isArray},{name:"Date",test:function(t){return t instanceof Date}},{name:"RegExp",test:function(t){return t instanceof RegExp}},{name:"Object",test:function(t){return"object"==typeof t&&null!==t&&t.constructor===Object}},{name:"null",test:function(t){return null===t}},{name:"undefined",test:function(t){return void 0===t}}],o={name:"any",test:t},s=[],a=[],u={types:i,conversions:a,ignore:s};function f(t){var r=k(u.types,function(r){return r.name===t});if(r)return r;if("any"===t)return o;var e=k(u.types,function(r){return r.name.toLowerCase()===t.toLowerCase()});throw TypeError('Unknown type "'+t+'"'+(e?'. Did you mean "'+e.name+'"?':""))}function c(t){return t===o?999:u.types.indexOf(t)}function h(t){var r=k(u.types,function(r){return r.test(t)});if(r)return r.name;throw TypeError("Value has unknown type. Value: "+t)}function p(t){return t.map(function(t){var r=t.types.map(y);return(t.restParam?"...":"")+r.join("|")}).join(",")}function l(t){var r=j(t);return!!r&&r.restParam}function d(t){return t.types.some(function(t){return null!=t.conversion})}function m(r){if(!r||0===r.types.length)return t;if(1===r.types.length)return f(r.types[0].name).test;if(2===r.types.length){var e=f(r.types[0].name).test,n=f(r.types[1].name).test;return function(t){return e(t)||n(t)}}var i=r.types.map(function(t){return f(t.name).test});return function(t){for(var r=0;r<i.length;r++)if(i[r](t))return!0;return!1}}function g(t,r){return r<t.params.length?t.params[r]:l(t.params)?j(t.params):null}function v(t,r,e){var n=g(t,r);return(n?e?n.types.filter(w):n.types:[]).map(y)}function y(t){return t.name}function w(t){return null===t.conversion||void 0===t.conversion}function x(t,r){var e=function(t){for(var r={},e=0;e<t.length;e++)r[t[e]]=!0;return Object.keys(r)}(P(t,function(t){return v(t,r,!1)}));return -1!==e.indexOf("any")?["any"]:e}function b(t,r,e){var n,i,o,s=t||"unnamed",a=e;for(o=0;o<r.length;o++){var u=a.filter(function(t){var e=m(g(t,o));return(o<t.params.length||l(t.params))&&e(r[o])});if(0===u.length){if((i=x(a,o)).length>0){var f=h(r[o]);return(n=TypeError("Unexpected type of argument in function "+s+" (expected: "+i.join(" or ")+", actual: "+f+", index: "+o+")")).data={category:"wrongType",fn:s,index:o,actual:f,expected:i},n}}else a=u}var c=a.map(function(t){return l(t.params)?1/0:t.params.length});if(r.length<Math.min.apply(null,c))return(n=TypeError("Too few arguments in function "+s+" (expected: "+(i=x(a,o)).join(" or ")+", index: "+r.length+")")).data={category:"tooFewArgs",fn:s,index:r.length,expected:i},n;var p=Math.max.apply(null,c);return r.length>p?(n=TypeError("Too many arguments in function "+s+" (expected: "+p+", actual: "+r.length+")")).data={category:"tooManyArgs",fn:s,index:r.length,expectedLength:p}:(n=TypeError('Arguments of type "'+r.join(", ")+'" do not match any of the defined signatures of function '+s+".")).data={category:"mismatch",actual:r.map(h)},n}function N(t){for(var r=999,e=0;e<t.types.length;e++)w(t.types[e])&&(r=Math.min(r,t.types[e].typeIndex));return r}function _(t){for(var r=999,e=0;e<t.types.length;e++)w(t.types[e])||(r=Math.min(r,t.types[e].conversionIndex));return r}function M(t,r){var e,n,i=Math.min(t.params.length,r.params.length);if(0!=(n=t.params.some(d)-r.params.some(d)))return n;for(e=0;e<i;e++)if(0!=(n=d(t.params[e])-d(r.params[e])))return n;for(e=0;e<i;e++)if(0!==(n=function(t,r){var e;return 0!=(e=t.restParam-r.restParam)||0!=(e=d(t)-d(r))||0!=(e=N(t)-N(r))?e:_(t)-_(r)}(t.params[e],r.params[e])))return n;return t.params.length-r.params.length}function E(t){var r,e,n,i,o=[],s=[];switch(t.types.forEach(function(t){t.conversion&&(o.push(f(t.conversion.from).test),s.push(t.conversion.convert))}),s.length){case 0:return function(t){return t};case 1:return r=o[0],n=s[0],function(t){return r(t)?n(t):t};case 2:return r=o[0],e=o[1],n=s[0],i=s[1],function(t){return r(t)?n(t):e(t)?i(t):t};default:return function(t){for(var r=0;r<s.length;r++)if(o[r](t))return s[r](t);return t}}}function O(t,r){return function t(e,n,i){if(!(n<e.length))return[i.map(function(t,r){return{types:t,restParam:r===e.length-1&&l(e)}})];var o,s=e[n],a=r?s.types.filter(w):s.types;if(s.restParam){var u=a.filter(w);o=u.length<a.length?[u,a]:[a]}else o=a.map(function(t){return[t]});return P(o,function(r){return t(e,n+1,i.concat([r]))})}(t,0,[])}function A(t,n){if(0===Object.keys(n).length)throw SyntaxError("No signatures provided");var i,o=[];Object.keys(n).map(function(t){var r,e,i;return r=n[t],e=u.conversions,i=[],(""!==t.trim()&&(i=t.split(",").map(F).map(function(t,r,n){var i,o,s,a,u,h,p,l,d=(i=e,o=u=((a=0===t.indexOf("..."))?t.length>3?t.slice(3):"any":t).split("|").map(F).filter(C).filter(S),s={},i.forEach(function(t){-1!==o.indexOf(t.from)||-1===o.indexOf(t.to)||s[t.from]||(s[t.from]=t)}),h=Object.keys(s).map(function(t){return s[t]}),p=u.map(function(t){var r=f(t);return{name:t,typeIndex:c(r),test:r.test,conversion:null,conversionIndex:-1}}),l=h.map(function(t){var r=f(t.from);return{name:t.from,typeIndex:c(r),test:r.test,conversion:t,conversionIndex:e.indexOf(t)}}),{types:p.concat(l),restParam:a});if(d.restParam&&r!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+t+'": only allowed for the last parameter');return d})),i.some(T))?null:{params:i,fn:r}}).filter(I).forEach(function(t){var r=k(o,function(r){return function(t,r){for(var e=Math.max(t.params.length,r.params.length),n=0;n<e;n++)if(!function(t,r){for(var e,n=0;n<t.length;n++)if(e=t[n],-1!==r.indexOf(e))return!0;return!1}(v(t,n,!0),v(r,n,!0)))return!1;var i=t.params.length,o=r.params.length,s=l(t.params),a=l(r.params);return s?a?i===o:o>=i:a?i>=o:i===o}(r,t)});if(r)throw TypeError('Conflicting signatures "'+p(r.params)+'" and "'+p(t.params)+'".');o.push(t)});var s=P(o,function(t){return(t?O(t.params,!1):[]).map(function(r){return{params:r,fn:t.fn}})}).filter(I);s.sort(M);var a=s[0]&&s[0].params.length<=2&&!l(s[0].params),h=s[1]&&s[1].params.length<=2&&!l(s[1].params),g=s[2]&&s[2].params.length<=2&&!l(s[2].params),y=s[3]&&s[3].params.length<=2&&!l(s[3].params),w=s[4]&&s[4].params.length<=2&&!l(s[4].params),x=s[5]&&s[5].params.length<=2&&!l(s[5].params),b=s.map(function(t){return function(t){var r,e,n;if(l(t)){var i,o=(r=(i=t).slice(0,i.length-1).map(m)).length,s=m(j(t)),a=function(t){for(var r=o;r<t.length;r++)if(!s(t[r]))return!1;return!0};return function(t){for(var e=0;e<r.length;e++)if(!r[e](t[e]))return!1;return a(t)&&t.length>=o+1}}return 0===t.length?function(t){return 0===t.length}:1===t.length?(e=m(t[0]),function(t){return e(t[0])&&1===t.length}):2===t.length?(e=m(t[0]),n=m(t[1]),function(t){return e(t[0])&&n(t[1])&&2===t.length}):(r=t.map(m),function(t){for(var e=0;e<r.length;e++)if(!r[e](t[e]))return!1;return t.length===r.length})}(t.params)}),N=a?m(s[0].params[0]):r,_=h?m(s[1].params[0]):r,A=g?m(s[2].params[0]):r,z=y?m(s[3].params[0]):r,R=w?m(s[4].params[0]):r,B=x?m(s[5].params[0]):r,q=a?m(s[0].params[1]):r,U=h?m(s[1].params[1]):r,L=g?m(s[2].params[1]):r,Z=y?m(s[3].params[1]):r,J=w?m(s[4].params[1]):r,W=x?m(s[5].params[1]):r,H=s.map(function(t){return function(t,r){var e=r;if(t.some(d)){var n=l(t),i=t.map(E);e=function(){for(var t=[],e=n?arguments.length-1:arguments.length,o=0;o<e;o++)t[o]=i[o](arguments[o]);return n&&(t[e]=arguments[e].map(i[e])),r.apply(this,t)}}var o=e;if(l(t)){var s=t.length-1;o=function(){return e.apply(this,D(arguments,0,s).concat([D(arguments,s)]))}}return o}(t.params,t.fn)}),V=a?H[0]:e,$=h?H[1]:e,Y=g?H[2]:e,G=y?H[3]:e,X=w?H[4]:e,K=x?H[5]:e,Q=a?s[0].params.length:-1,tt=h?s[1].params.length:-1,tr=g?s[2].params.length:-1,te=y?s[3].params.length:-1,tn=w?s[4].params.length:-1,ti=x?s[5].params.length:-1,to=6*!!(a&&h&&g&&y&&w&&x),ts=s.length,ta=function(){for(var r=to;r<ts;r++)if(b[r](arguments))return H[r].apply(this,arguments);return u.onMismatch(t,arguments,s)},tu=function t(r,e){return arguments.length===Q&&N(r)&&q(e)?V.apply(t,arguments):arguments.length===tt&&_(r)&&U(e)?$.apply(t,arguments):arguments.length===tr&&A(r)&&L(e)?Y.apply(t,arguments):arguments.length===te&&z(r)&&Z(e)?G.apply(t,arguments):arguments.length===tn&&R(r)&&J(e)?X.apply(t,arguments):arguments.length===ti&&B(r)&&W(e)?K.apply(t,arguments):ta.apply(t,arguments)};try{Object.defineProperty(tu,"name",{value:t})}catch(t){}return i={},s.forEach(function(t){t.params.some(d)||O(t.params,!0).forEach(function(r){i[p(r)]=t.fn})}),tu.signatures=i,tu}function z(t,r,e){throw b(t,r,e)}function S(t){return -1===u.ignore.indexOf(t)}function F(t){return t.trim()}function C(t){return!!t}function I(t){return null!==t}function T(t){return 0===t.types.length}function j(t){return t[t.length-1]}function D(t,r,e){return Array.prototype.slice.call(t,r,e)}function k(t,r){for(var e=0;e<t.length;e++)if(r(t[e]))return t[e]}function P(t,r){return Array.prototype.concat.apply([],t.map(r))}function R(t){for(var r="",e=0;e<t.length;e++){var n=t[e];if(("object"==typeof n.signatures||"string"==typeof n.signature)&&""!==n.name){if(""===r)r=n.name;else if(r!==n.name){var i=Error("Function names do not match (expected: "+r+", actual: "+n.name+")");throw i.data={actual:n.name,expected:r},i}}}return r}function B(t){var r,e={};function n(t,n){if(e.hasOwnProperty(t)&&n!==e[t])throw(r=Error('Signature "'+t+'" is defined twice')).data={signature:t},r}for(var i=0;i<t.length;i++){var o=t[i];if("object"==typeof o.signatures)for(var s in o.signatures)o.signatures.hasOwnProperty(s)&&(n(s,o.signatures[s]),e[s]=o.signatures[s]);else if("string"==typeof o.signature)n(o.signature,o),e[o.signature]=o;else throw(r=TypeError("Function is no typed-function (index: "+i+")")).data={index:i},r}return e}return(u=A("typed",{"string, Object":A,Object:function(t){var r=[];for(var e in t)t.hasOwnProperty(e)&&r.push(t[e]);return A(R(r),t)},"...Function":function(t){return A(R(t),B(t))},"string, ...Function":function(t,r){return A(t,B(r))}})).create=n,u.types=i,u.conversions=a,u.ignore=s,u.onMismatch=z,u.throwMismatchError=z,u.createError=b,u.convert=function(t,r){var e=h(t);if(r===e)return t;for(var n=0;n<u.conversions.length;n++){var i=u.conversions[n];if(i.from===e&&i.to===r)return i.convert(t)}throw Error("Cannot convert from "+e+" to "+r)},u.find=function(t,r){if(!t.signatures)throw TypeError("Function is no typed-function");if("string"==typeof r){e=r.split(",");for(var e,n=0;n<e.length;n++)e[n]=e[n].trim()}else if(Array.isArray(r))e=r;else throw TypeError("String array or a comma separated string expected");var i=e.join(","),o=t.signatures[i];if(o)return o;throw TypeError("Signature not found (signature: "+(t.name||"unnamed")+"("+e.join(", ")+"))")},u.addType=function(t,r){if(!t||"string"!=typeof t.name||"function"!=typeof t.test)throw TypeError("Object with properties {name: string, test: function} expected");if(!1!==r){for(var e=0;e<u.types.length;e++)if("Object"===u.types[e].name)return void u.types.splice(e,0,t)}u.types.push(t)},u.addConversion=function(t){if(!t||"string"!=typeof t.from||"string"!=typeof t.to||"function"!=typeof t.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");u.conversions.push(t)},u}()},"function"==typeof define&&define.amd?define([],r):t.exports=r()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["613"],{71377:function(e,t,r){let a;r.d(t,{ZP:()=>K});var i=r(54538),n=r(90496),o=r(82267),s=r(46954),l=r(6595),h=r(25399),u=r(80668),c=r(9831),d=r(61714),p=r(97048),f=r(74111),m=r(96858),b=r(81925),v=r(69134),x=r(92438);function g(e,t,r,a,i){return 1===r?Math.min(e+t,i):Math.max(e-t,a)}function y(e,t){return e-t}function k(e,t){let{index:r}=e.reduce((e,r,a)=>{let i=Math.abs(t-r);return null===e||i<e.distance||i===e.distance?{distance:i,index:a}:e},null)??{};return r}function w(e,t){if(void 0!==t.current&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){let a=e.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function S({values:e,newValue:t,index:r}){let a=e.slice();return a[r]=t,a.sort(y)}function Z({sliderRef:e,activeIndex:t,setActive:r}){let a=(0,u.Z)(e.current);e.current?.contains(a.activeElement)&&Number(a?.activeElement?.getAttribute("data-index"))===t||e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),r&&r(t)}function L(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=(e,t)=>e===t){return e.length===t.length&&e.every((e,a)=>r(e,t[a]))}(e,t)}let M={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},A=e=>e;function C(){return void 0===a&&(a="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),a}var R=r(88653),P=r(12709),z=r(82319),$=r(51751),T=r(4005),E=r(51640),j=r(90433),N=r(44124),W=r(6749);function O(e){return(0,W.ZP)("MuiSlider",e)}let D=(0,N.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var U=r(24246);function F(e){return e}let I=(0,P.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`color${(0,E.Z)(r.color)}`],"medium"!==r.size&&t[`size${(0,E.Z)(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((0,z.Z)(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${D.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${D.dragging}`]:{[`& .${D.thumb}, & .${D.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter((0,j.Z)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),V=(0,P.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),H=(0,P.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((0,z.Z)(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter((0,j.Z)()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:(0,s.$n)(e.palette[t].main,.62),borderColor:(0,s.$n)(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:(0,s._j)(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:(0,s._j)(e.palette[t].main,.5)})}}}))]}))),Y=(0,P.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.thumb,t[`thumbColor${(0,E.Z)(r.color)}`],"medium"!==r.size&&t[`thumbSize${(0,E.Z)(r.size)}`]]}})((0,z.Z)(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${D.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter((0,j.Z)()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${D.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,s.Fq)(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${D.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${(0,s.Fq)(e.palette[t].main,.16)}`}}}}))]}))),B=(0,P.ZP)(function(e){let{children:t,className:r,value:a}=e,o=(e=>{let{open:t}=e;return{offset:(0,n.Z)(t&&D.valueLabelOpen),circle:D.valueLabelCircle,label:D.valueLabelLabel}})(e);return t?i.cloneElement(t,{className:(0,n.Z)(t.props.className)},(0,U.jsxs)(i.Fragment,{children:[t.props.children,(0,U.jsx)("span",{className:(0,n.Z)(o.offset,r),"aria-hidden":!0,children:(0,U.jsx)("span",{className:o.circle,children:(0,U.jsx)("span",{className:o.label,children:a})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((0,z.Z)(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${D.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${D.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),_=(0,P.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,T.Z)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:r}=e;return[t.mark,r&&t.markActive]}})((0,z.Z)(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),X=(0,P.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,T.Z)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((0,z.Z)(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),q=({children:e})=>e,K=i.forwardRef(function(e,t){let r=(0,$.i)({props:e,name:"MuiSlider"}),a=(0,l.V)(),{"aria-label":s,"aria-valuetext":P,"aria-labelledby":z,component:T="span",components:j={},componentsProps:N={},color:W="primary",classes:D,className:K,disableSwap:G=!1,disabled:J=!1,getAriaLabel:Q,getAriaValueText:ee,marks:et=!1,max:er=100,min:ea=0,name:ei,onChange:en,onChangeCommitted:eo,orientation:es="horizontal",shiftStep:el=10,size:eh="medium",step:eu=1,scale:ec=F,slotProps:ed,slots:ep,tabIndex:ef,track:em="normal",value:eb,valueLabelDisplay:ev="off",valueLabelFormat:ex=F,...eg}=r,ey={...r,isRtl:a,max:er,min:ea,classes:D,disabled:J,disableSwap:G,orientation:es,marks:et,color:W,size:eh,step:eu,shiftStep:el,scale:ec,track:em,valueLabelDisplay:ev,valueLabelFormat:ex},{axisProps:ek,getRootProps:ew,getHiddenInputProps:eS,getThumbProps:eZ,open:eL,active:eM,axis:eA,focusedThumbIndex:eC,range:eR,dragging:eP,marks:ez,values:e$,trackOffset:eT,trackLeap:eE,getThumbStyle:ej}=function(e){let t,{"aria-labelledby":r,defaultValue:a,disabled:n=!1,disableSwap:o=!1,isRtl:s=!1,marks:l=!1,max:h=100,min:R=0,name:P,onChange:z,onChangeCommitted:$,orientation:T="horizontal",rootRef:E,scale:j=A,step:N=1,shiftStep:W=10,tabIndex:O,value:D}=e,U=i.useRef(void 0),[F,I]=i.useState(-1),[V,H]=i.useState(-1),[Y,B]=i.useState(!1),_=i.useRef(0),X=i.useRef(null),[q,K]=(0,c.Z)({controlled:D,default:a??R,name:"Slider"}),G=z&&((e,t,r)=>{let a=e.nativeEvent||e,i=new a.constructor(a.type,a);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:P}}),X.current=t,z(i,t,r)}),J=Array.isArray(q),Q=J?q.slice().sort(y):[q];Q=Q.map(e=>null==e?R:(0,d.Z)(e,R,h));let ee=!0===l&&null!==N?[...Array(Math.floor((h-R)/N)+1)].map((e,t)=>({value:R+N*t})):l||[],et=ee.map(e=>e.value),[er,ea]=i.useState(-1),ei=i.useRef(null),en=(0,p.Z)(E,ei),eo=(e,t)=>{let r=Number(e.currentTarget.getAttribute("data-index")),a=Q[r],i=et.indexOf(a),n=t;if(ee&&null==N){let e=et[et.length-1];n=n>=e?e:n<=et[0]?et[0]:n<a?et[i-1]:et[i+1]}if(n=(0,d.Z)(n,R,h),J){o&&(n=(0,d.Z)(n,Q[r-1]||-1/0,Q[r+1]||1/0));let e=n;n=S({values:Q,newValue:n,index:r});let t=r;o||(t=n.indexOf(e)),Z({sliderRef:ei,activeIndex:t})}K(n),ea(r),G&&!L(n,q)&&G(e,n,r),$&&$(e,X.current??n)};(0,m.Z)(()=>{n&&ei.current.contains(document.activeElement)&&document.activeElement?.blur()},[n]),n&&-1!==F&&I(-1),n&&-1!==er&&ea(-1);let es=i.useRef(void 0),el=T;s&&"horizontal"===T&&(el+="-reverse");let eh=({finger:e,move:t=!1})=>{let r,a,{current:i}=ei,{width:n,height:s,bottom:l,left:u}=i.getBoundingClientRect();if(r=el.startsWith("vertical")?(l-e.y)/s:(e.x-u)/n,el.includes("-reverse")&&(r=1-r),a=(h-R)*r+R,N)a=Number((Math.round((a-R)/N)*N+R).toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(N)));else{let e=k(et,a);a=et[e]}a=(0,d.Z)(a,R,h);let c=0;if(J){c=t?es.current:k(Q,a),o&&(a=(0,d.Z)(a,Q[c-1]||-1/0,Q[c+1]||1/0));let e=a;a=S({values:Q,newValue:a,index:c}),o&&t||(es.current=c=a.indexOf(e))}return{newValue:a,activeIndex:c}},eu=(0,b.Z)(e=>{let t=w(e,U);if(!t)return;if(_.current+=1,"mousemove"===e.type&&0===e.buttons)return void ec(e);let{newValue:r,activeIndex:a}=eh({finger:t,move:!0});Z({sliderRef:ei,activeIndex:a,setActive:I}),K(r),!Y&&_.current>2&&B(!0),G&&!L(r,q)&&G(e,r,a)}),ec=(0,b.Z)(e=>{let t=w(e,U);if(B(!1),!t)return;let{newValue:r}=eh({finger:t,move:!0});I(-1),"touchend"===e.type&&H(-1),$&&$(e,X.current??r),U.current=void 0,ep()}),ed=(0,b.Z)(e=>{if(n)return;C()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(U.current=t.identifier);let r=w(e,U);if(!1!==r){let{newValue:t,activeIndex:a}=eh({finger:r});Z({sliderRef:ei,activeIndex:a,setActive:I}),K(t),G&&!L(t,q)&&G(e,t,a)}_.current=0;let a=(0,u.Z)(ei.current);a.addEventListener("touchmove",eu,{passive:!0}),a.addEventListener("touchend",ec,{passive:!0})}),ep=i.useCallback(()=>{let e=(0,u.Z)(ei.current);e.removeEventListener("mousemove",eu),e.removeEventListener("mouseup",ec),e.removeEventListener("touchmove",eu),e.removeEventListener("touchend",ec)},[ec,eu]);i.useEffect(()=>{let{current:e}=ei;return e.addEventListener("touchstart",ed,{passive:C()}),()=>{e.removeEventListener("touchstart",ed),ep()}},[ep,ed]),i.useEffect(()=>{n&&ep()},[n,ep]);let ef=((J?Q[0]:R)-R)*100/(h-R),em=(Q[Q.length-1]-R)*100/(h-R)-ef;return"vertical"===T&&(t=s?"vertical-rl":"vertical-lr"),{active:F,axis:el,axisProps:M,dragging:Y,focusedThumbIndex:er,getHiddenInputProps:(a={})=>{let i,o,l,u,c=(0,x.Z)(a),d={onChange:(i=c||{},e=>{i.onChange?.(e),eo(e,e.target.valueAsNumber)}),onFocus:(o=c||{},e=>{let t=Number(e.currentTarget.getAttribute("data-index"));(0,f.Z)(e.target)&&ea(t),H(t),o?.onFocus?.(e)}),onBlur:(l=c||{},e=>{(0,f.Z)(e.target)||ea(-1),H(-1),l?.onBlur?.(e)}),onKeyDown:(u=c||{},e=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){e.preventDefault();let t=Q[Number(e.currentTarget.getAttribute("data-index"))],r=null;if(null!=N){let a=e.shiftKey?W:N;switch(e.key){case"ArrowUp":r=g(t,a,1,R,h);break;case"ArrowRight":r=g(t,a,s?-1:1,R,h);break;case"ArrowDown":r=g(t,a,-1,R,h);break;case"ArrowLeft":r=g(t,a,s?1:-1,R,h);break;case"PageUp":r=g(t,W,1,R,h);break;case"PageDown":r=g(t,W,-1,R,h);break;case"Home":r=R;break;case"End":r=h}}else if(ee){let a=et[et.length-1],i=et.indexOf(t);[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(e.key)?r=0===i?et[0]:et[i-1]:[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"].includes(e.key)&&(r=i===et.length-1?a:et[i+1])}null!=r&&eo(e,r)}u?.onKeyDown?.(e)})},p={...c,...d};return{tabIndex:O,"aria-labelledby":r,"aria-orientation":T,"aria-valuemax":j(h),"aria-valuemin":j(R),name:P,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":e.step??void 0,disabled:n,...a,...p,style:{...v.Z,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:t}}},getRootProps:(e={})=>{let t,r=(0,x.Z)(e),a={onMouseDown:(t=r||{},e=>{if(t.onMouseDown?.(e),n||e.defaultPrevented||0!==e.button)return;e.preventDefault();let r=w(e,U);if(!1!==r){let{newValue:t,activeIndex:a}=eh({finger:r});Z({sliderRef:ei,activeIndex:a,setActive:I}),K(t),G&&!L(t,q)&&G(e,t,a)}_.current=0;let a=(0,u.Z)(ei.current);a.addEventListener("mousemove",eu,{passive:!0}),a.addEventListener("mouseup",ec)})},i={...r,...a};return{...e,ref:en,...i}},getThumbProps:(e={})=>{let t,r,a=(0,x.Z)(e),i={onMouseOver:(t=a||{},e=>{t.onMouseOver?.(e),H(Number(e.currentTarget.getAttribute("data-index")))}),onMouseLeave:(r=a||{},e=>{r.onMouseLeave?.(e),H(-1)})};return{...e,...a,...i}},marks:ee,open:V,range:J,rootRef:en,trackLeap:em,trackOffset:ef,values:Q,getThumbStyle:e=>({pointerEvents:-1!==F&&F!==e?"none":void 0})}}({...ey,rootRef:t});ey.marked=ez.length>0&&ez.some(e=>e.label),ey.dragging=eP,ey.focusedThumbIndex=eC;let eN=(e=>{let{disabled:t,dragging:r,marked:a,orientation:i,track:n,classes:s,color:l,size:h}=e,u={root:["root",t&&"disabled",r&&"dragging",a&&"marked","vertical"===i&&"vertical","inverted"===n&&"trackInverted",!1===n&&"trackFalse",l&&`color${(0,E.Z)(l)}`,h&&`size${(0,E.Z)(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",h&&`thumbSize${(0,E.Z)(h)}`,l&&`thumbColor${(0,E.Z)(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,o.Z)(u,O,s)})(ey),eW=ep?.root??j.Root??I,eO=ep?.rail??j.Rail??V,eD=ep?.track??j.Track??H,eU=ep?.thumb??j.Thumb??Y,eF=ep?.valueLabel??j.ValueLabel??B,eI=ep?.mark??j.Mark??_,eV=ep?.markLabel??j.MarkLabel??X,eH=ep?.input??j.Input??"input",eY=ed?.root??N.root,eB=ed?.rail??N.rail,e_=ed?.track??N.track,eX=ed?.thumb??N.thumb,eq=ed?.valueLabel??N.valueLabel,eK=ed?.mark??N.mark,eG=ed?.markLabel??N.markLabel,eJ=ed?.input??N.input,eQ=(0,h.Z)({elementType:eW,getSlotProps:ew,externalSlotProps:eY,externalForwardedProps:eg,additionalProps:{...(!eW||!(0,R.Z)(eW))&&{as:T}},ownerState:{...ey,...eY?.ownerState},className:[eN.root,K]}),e0=(0,h.Z)({elementType:eO,externalSlotProps:eB,ownerState:ey,className:eN.rail}),e1=(0,h.Z)({elementType:eD,externalSlotProps:e_,additionalProps:{style:{...ek[eA].offset(eT),...ek[eA].leap(eE)}},ownerState:{...ey,...e_?.ownerState},className:eN.track}),e5=(0,h.Z)({elementType:eU,getSlotProps:eZ,externalSlotProps:eX,ownerState:{...ey,...eX?.ownerState},className:eN.thumb}),e2=(0,h.Z)({elementType:eF,externalSlotProps:eq,ownerState:{...ey,...eq?.ownerState},className:eN.valueLabel}),e6=(0,h.Z)({elementType:eI,externalSlotProps:eK,ownerState:ey,className:eN.mark}),e8=(0,h.Z)({elementType:eV,externalSlotProps:eG,ownerState:ey,className:eN.markLabel}),e4=(0,h.Z)({elementType:eH,getSlotProps:eS,externalSlotProps:eJ,ownerState:ey});return(0,U.jsxs)(eW,{...eQ,children:[(0,U.jsx)(eO,{...e0}),(0,U.jsx)(eD,{...e1}),ez.filter(e=>e.value>=ea&&e.value<=er).map((e,t)=>{let r,a=(e.value-ea)*100/(er-ea),o=ek[eA].offset(a);return r=!1===em?e$.includes(e.value):"normal"===em&&(eR?e.value>=e$[0]&&e.value<=e$[e$.length-1]:e.value<=e$[0])||"inverted"===em&&(eR?e.value<=e$[0]||e.value>=e$[e$.length-1]:e.value>=e$[0]),(0,U.jsxs)(i.Fragment,{children:[(0,U.jsx)(eI,{"data-index":t,...e6,...!(0,R.Z)(eI)&&{markActive:r},style:{...o,...e6.style},className:(0,n.Z)(e6.className,r&&eN.markActive)}),null!=e.label?(0,U.jsx)(eV,{"aria-hidden":!0,"data-index":t,...e8,...!(0,R.Z)(eV)&&{markLabelActive:r},style:{...o,...e8.style},className:(0,n.Z)(eN.markLabel,e8.className,r&&eN.markLabelActive),children:e.label}):null]},t)}),e$.map((e,t)=>{let r=(e-ea)*100/(er-ea),a=ek[eA].offset(r),i="off"===ev?q:eF;return(0,U.jsx)(i,{...!(0,R.Z)(i)&&{valueLabelFormat:ex,valueLabelDisplay:ev,value:"function"==typeof ex?ex(ec(e),t):ex,index:t,open:eL===t||eM===t||"on"===ev,disabled:J},...e2,children:(0,U.jsx)(eU,{"data-index":t,...e5,className:(0,n.Z)(eN.thumb,e5.className,eM===t&&eN.active,eC===t&&eN.focusVisible),style:{...a,...ej(t),...e5.style},children:(0,U.jsx)(eH,{"data-index":t,"aria-label":Q?Q(t):s,"aria-valuenow":ec(e),"aria-labelledby":z,"aria-valuetext":ee?ee(ec(e),t):P,value:e$[t],...e4})})},t)})]})})},83915:function(e,t,r){r.d(t,{Z:()=>T});var a,i,n,o,s,l,h,u,c,d,p,f,m,b,v,x,g,y,k=function(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r},w=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let S=function(e){var t=0;e+="x";var r=Math.floor(65745979961613.07);for(let a=0;a<e.length;a++)t>r&&(t=Math.floor(t/137)),t=131*t+e.charCodeAt(a);return t},Z="0123456789abcdef".split(""),L=[-0x80000000,8388608,32768,128],M=[24,16,8,0],A=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],C=[];class R{constructor(e=!1,t=!1){a.set(this,void 0),i.set(this,void 0),n.set(this,void 0),o.set(this,void 0),s.set(this,void 0),l.set(this,void 0),h.set(this,void 0),u.set(this,void 0),c.set(this,void 0),d.set(this,void 0),p.set(this,void 0),f.set(this,void 0),m.set(this,void 0),b.set(this,void 0),v.set(this,void 0),x.set(this,void 0),g.set(this,0),y.set(this,void 0),this.init(e,t)}init(e,t){t?(C[0]=C[16]=C[1]=C[2]=C[3]=C[4]=C[5]=C[6]=C[7]=C[8]=C[9]=C[10]=C[11]=C[12]=C[13]=C[14]=C[15]=0,k(this,i,C)):k(this,i,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e?(k(this,l,0xc1059ed8),k(this,h,0x367cd507),k(this,u,0x3070dd17),k(this,c,0xf70e5939),k(this,d,0xffc00b31),k(this,p,0x68581511),k(this,f,0x64f98fa7),k(this,m,0xbefa4fa4)):(k(this,l,0x6a09e667),k(this,h,0xbb67ae85),k(this,u,0x3c6ef372),k(this,c,0xa54ff53a),k(this,d,0x510e527f),k(this,p,0x9b05688c),k(this,f,0x1f83d9ab),k(this,m,0x5be0cd19)),k(this,a,k(this,y,k(this,n,k(this,v,0)))),k(this,o,k(this,b,!1)),k(this,s,!0),k(this,x,e)}update(e){let t;if(w(this,o))return this;t=e instanceof ArrayBuffer?new Uint8Array(e):e;let r=0,s=t.length,l=w(this,i);for(;r<s;){let e;if(w(this,b)&&(k(this,b,!1),l[0]=w(this,a),l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),"string"!=typeof t)for(e=w(this,y);r<s&&e<64;++r)l[e>>2]|=t[r]<<M[3&e++];else for(e=w(this,y);r<s&&e<64;++r){let a=t.charCodeAt(r);a<128?l[e>>2]|=a<<M[3&e++]:(a<2048?l[e>>2]|=(192|a>>6)<<M[3&e++]:(a<55296||a>=57344?l[e>>2]|=(224|a>>12)<<M[3&e++]:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++r)),l[e>>2]|=(240|a>>18)<<M[3&e++],l[e>>2]|=(128|a>>12&63)<<M[3&e++]),l[e>>2]|=(128|a>>6&63)<<M[3&e++]),l[e>>2]|=(128|63&a)<<M[3&e++])}k(this,g,e),k(this,n,w(this,n)+(e-w(this,y))),e>=64?(k(this,a,l[16]),k(this,y,e-64),this.hash(),k(this,b,!0)):k(this,y,e)}return w(this,n)>0xffffffff&&(k(this,v,w(this,v)+(w(this,n)/0x100000000|0)),k(this,n,w(this,n)%0x100000000)),this}finalize(){if(w(this,o))return;k(this,o,!0);let e=w(this,i),t=w(this,g);e[16]=w(this,a),e[t>>2]|=L[3&t],k(this,a,e[16]),t>=56&&(w(this,b)||this.hash(),e[0]=w(this,a),e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=w(this,v)<<3|w(this,n)>>>29,e[15]=w(this,n)<<3,this.hash()}hash(){let e,t,r,a,n,o,b,v,g,y=w(this,l),S=w(this,h),Z=w(this,u),L=w(this,c),M=w(this,d),C=w(this,p),R=w(this,f),P=w(this,m),z=w(this,i);for(let r=16;r<64;++r)e=((a=z[r-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,t=((a=z[r-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,z[r]=z[r-16]+e+z[r-7]+t|0;g=S&Z;for(let i=0;i<64;i+=4)w(this,s)?(w(this,x)?(o=300032,P=(a=z[0]-0x543c9a5b)-0x8f1a6c7|0,L=a+0x170e9b5|0):(o=0x2a01a605,P=(a=z[0]-0xc881298)-0x5ab00ac6|0,L=a+0x8909ae5|0),k(this,s,!1)):(e=(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10),t=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),r=(o=y&S)^y&Z^g,a=P+t+(M&C^~M&R)+A[i]+z[i],n=e+r,P=L+a|0,L=a+n|0),e=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),t=(P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7),r=(b=L&y)^L&S^o,a=R+t+(P&M^~P&C)+A[i+1]+z[i+1],n=e+r,R=Z+a|0,e=((Z=a+n|0)>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10),t=(R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7),r=(v=Z&L)^Z&y^b,a=C+t+(R&P^~R&M)+A[i+2]+z[i+2],n=e+r,C=S+a|0,e=((S=a+n|0)>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10),t=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),r=(g=S&Z)^S&L^v,a=M+t+(C&R^~C&P)+A[i+3]+z[i+3],n=e+r,M=y+a|0,y=a+n|0;k(this,l,w(this,l)+y|0),k(this,h,w(this,h)+S|0),k(this,u,w(this,u)+Z|0),k(this,c,w(this,c)+L|0),k(this,d,w(this,d)+M|0),k(this,p,w(this,p)+C|0),k(this,f,w(this,f)+R|0),k(this,m,w(this,m)+P|0)}hex(){this.finalize();let e=w(this,l),t=w(this,h),r=w(this,u),a=w(this,c),i=w(this,d),n=w(this,p),o=w(this,f),s=w(this,m),b=Z[e>>28&15]+Z[e>>24&15]+Z[e>>20&15]+Z[e>>16&15]+Z[e>>12&15]+Z[e>>8&15]+Z[e>>4&15]+Z[15&e]+Z[t>>28&15]+Z[t>>24&15]+Z[t>>20&15]+Z[t>>16&15]+Z[t>>12&15]+Z[t>>8&15]+Z[t>>4&15]+Z[15&t]+Z[r>>28&15]+Z[r>>24&15]+Z[r>>20&15]+Z[r>>16&15]+Z[r>>12&15]+Z[r>>8&15]+Z[r>>4&15]+Z[15&r]+Z[a>>28&15]+Z[a>>24&15]+Z[a>>20&15]+Z[a>>16&15]+Z[a>>12&15]+Z[a>>8&15]+Z[a>>4&15]+Z[15&a]+Z[i>>28&15]+Z[i>>24&15]+Z[i>>20&15]+Z[i>>16&15]+Z[i>>12&15]+Z[i>>8&15]+Z[i>>4&15]+Z[15&i]+Z[n>>28&15]+Z[n>>24&15]+Z[n>>20&15]+Z[n>>16&15]+Z[n>>12&15]+Z[n>>8&15]+Z[n>>4&15]+Z[15&n]+Z[o>>28&15]+Z[o>>24&15]+Z[o>>20&15]+Z[o>>16&15]+Z[o>>12&15]+Z[o>>8&15]+Z[o>>4&15]+Z[15&o];return w(this,x)||(b+=Z[s>>28&15]+Z[s>>24&15]+Z[s>>20&15]+Z[s>>16&15]+Z[s>>12&15]+Z[s>>8&15]+Z[s>>4&15]+Z[15&s]),b}toString(){return this.hex()}digest(){this.finalize();let e=w(this,l),t=w(this,h),r=w(this,u),a=w(this,c),i=w(this,d),n=w(this,p),o=w(this,f),s=w(this,m),b=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o];return w(this,x)||b.push(s>>24&255,s>>16&255,s>>8&255,255&s),b}array(){return this.digest()}arrayBuffer(){this.finalize();let e=new ArrayBuffer(w(this,x)?28:32),t=new DataView(e);return t.setUint32(0,w(this,l)),t.setUint32(4,w(this,h)),t.setUint32(8,w(this,u)),t.setUint32(12,w(this,c)),t.setUint32(16,w(this,d)),t.setUint32(20,w(this,p)),t.setUint32(24,w(this,f)),w(this,x)||t.setUint32(28,w(this,m)),e}}function P(e){let t=new R;return t.update(e),parseInt(t.hex().substring(0,8),16)}a=new WeakMap,i=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,h=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,b=new WeakMap,v=new WeakMap,x=new WeakMap,g=new WeakMap,y=new WeakMap;let z=function(e){var t="#";return e.forEach(function(e){e<16&&(t+=0),t+=e.toString(16)}),t},$=function(e,t,r){var a=r<.5?r*(1+t):r+t-r*t,i=2*r-a;return[(e/=360)+1/3,e,e-1/3].map(function(e){return e<0&&e++,e>1&&e--,Math.round(255*(e=e<1/6?i+(a-i)*6*e:e<.5?a:e<2/3?i+(a-i)*6*(2/3-e):i))})};class T{constructor(e={}){let[t,r]=[e.lightness,e.saturation].map(function(e){return Array.isArray(e=void 0!==e?e:[.35,.5,.65])?e.concat():[e]});this.L=t,this.S=r,"number"==typeof e.hue&&(e.hue={min:e.hue,max:e.hue}),"object"!=typeof e.hue||Array.isArray(e.hue)||(e.hue=[e.hue]),void 0===e.hue&&(e.hue=[]),this.hueRanges=e.hue.map(function(e){return{min:void 0===e.min?0:e.min,max:void 0===e.max?360:e.max}}),this.hash=P,"function"==typeof e.hash&&(this.hash=e.hash),"bkdr"===e.hash&&(this.hash=S)}hsl(e){var t,r,a=this.hash(e);if(this.hueRanges.length){let e=this.hueRanges[a%this.hueRanges.length];t=a/this.hueRanges.length%727*(e.max-e.min)/727+e.min}else t=a%359;return a=Math.ceil(a/360),r=this.S[a%this.S.length],a=Math.ceil(a/this.S.length),[t,r,this.L[a%this.L.length]]}rgb(e){var t=this.hsl(e);return $.apply(this,t)}hex(e){return z(this.rgb(e))}}},76310:function(e,t,r){var a;t.default=void 0,t.default=(0,((a=r(30265))&&a.__esModule?a:{default:a}).default)("M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z","Download")}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["651"],{17960:function(e,r,t){t.d(r,{Z:()=>n});function n(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}},42747:function(e,r,t){t.d(r,{O:()=>v});var n,o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=t(17960),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),f=function(e,r){switch(e){case"animation":case"animationName":if("string"==typeof r)return r.replace(s,function(e,r,t){return n={name:r,styles:t,next:n},r})}return 1===o[e]||l(e)||"number"!=typeof r||0===r?r:r+"px"};function d(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return n={name:t.name,styles:t.styles,next:n},t.name;if(void 0!==t.styles){var o=t.next;if(void 0!==o)for(;void 0!==o;)n={name:o.name,styles:o.styles,next:n},o=o.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=d(e,r,t[o])+";";else for(var i in t){var a=t[i];if("object"!=typeof a)null!=r&&void 0!==r[a]?n+=i+"{"+r[a]+"}":u(a)&&(n+=c(i)+":"+f(i,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==r||void 0===r[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(n+=c(i)+":"+f(i,a[s])+";");else{var l=d(e,r,a);switch(i){case"animation":case"animationName":n+=c(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}}return n}(e,r,t);case"function":if(void 0!==e){var i=n,a=t(e);return n=i,d(e,r,a)}}if(null==r)return t;var s=r[t];return void 0!==s?s:t}var m=/label:\s*([^\s;{]+)\s*(;|$)/g;function v(e,r,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,i=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(i=!1,a+=d(t,r,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=d(t,r,e[l]),i&&(a+=s[l]);m.lastIndex=0;for(var u="";null!==(o=m.exec(a));)u+="-"+o[1];return{name:function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((r>>>16)*59797<<16),r^=r>>>24,t=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)^(65535&t)*0x5bd1e995+((t>>>16)*59797<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t^=255&e.charCodeAt(n),t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)}return t^=t>>>13,(((t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16))^t>>>15)>>>0).toString(36)}(a)+u,styles:a,next:n}}},70252:function(e,r,t){t.d(r,{Z:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["694"],{17960:function(e,t,r){r.d(t,{Z:()=>n});function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},42747:function(e,t,r){r.d(t,{O:()=>m});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=r(17960),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.Z)(function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()}),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=p(e,t,r[i])+";";else for(var a in r){var o=r[a];if("object"!=typeof o)null!=t&&void 0!==t[o]?n+=a+"{"+t[o]+"}":c(o)&&(n+=d(a)+":"+u(a,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==t||void 0===t[o[0]]))for(var s=0;s<o.length;s++)c(o[s])&&(n+=d(a)+":"+u(a,o[s])+";");else{var l=p(e,t,o);switch(a){case"animation":case"animationName":n+=d(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var a=n,o=r(e);return n=a,p(e,t,o)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var f=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,a=!0,o="";n=void 0;var s=e[0];null==s||void 0===s.raw?(a=!1,o+=p(r,t,s)):o+=s[0];for(var l=1;l<e.length;l++)o+=p(r,t,e[l]),a&&(o+=s[l]);f.lastIndex=0;for(var c="";null!==(i=f.exec(o));)c+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(o)+c,styles:o,next:n}}},51958:function(e,t,r){r.r(t),r.d(t,{default:()=>g});var n=r(70252),i=r(72116),a=r(42747),o=r(37164),s=r(53211),l=r(54538),c=r(17960),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=(0,c.Z)(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?u:p},m=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},h=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,s.hC)(t,r,n),(0,o.L)(function(){return(0,s.My)(t,r,n)}),null},g=(function e(t,r){var o,c,d=t.__emotion_real===t,u=d&&t.__emotion_base||t;void 0!==r&&(o=r.label,c=r.target);var p=m(t,r,d),g=p||f(u),y=!g("as");return function(){var v=arguments,b=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{var k=v[0];b.push(k[0]);for(var x=v.length,C=1;C<x;C++)b.push(v[C],k[C])}var w=(0,i.withEmotionCache)(function(e,t,r){var n=y&&e.as||u,o="",d=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=l.useContext(i.ThemeContext)}"string"==typeof e.className?o=(0,s.fp)(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var k=(0,a.O)(b.concat(d),t.registered,m);o+=t.key+"-"+k.name,void 0!==c&&(o+=" "+c);var x=y&&void 0===p?f(n):g,C={};for(var w in e)(!y||"as"!==w)&&x(w)&&(C[w]=e[w]);return C.className=o,r&&(C.ref=r),l.createElement(l.Fragment,null,l.createElement(h,{cache:t,serialized:k,isStringTag:"string"==typeof n}),l.createElement(n,C))});return w.displayName=void 0!==o?o:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=u,w.__emotion_styles=b,w.__emotion_forwardProp=p,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(t,i){return e(t,(0,n.Z)({},r,i,{shouldForwardProp:m(w,i,!0)})).apply(void 0,b)},w}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)})},37164:function(e,t,r){r.d(t,{L:()=>a,j:()=>o});var n=r(54538),i=!!n.useInsertionEffect&&n.useInsertionEffect,a=i||function(e){return e()},o=i||n.useLayoutEffect},53211:function(e,t,r){function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}r.d(t,{My:()=>a,fp:()=>n,hC:()=>i});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}}},70252:function(e,t,r){r.d(t,{Z:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["740"],{48872:function(e,t,n){n.r(t),n.d(t,{toDate:()=>E,toZonedTime:()=>J,fromZonedTime:()=>L,format:()=>B,formatInTimeZone:()=>K,getTimezoneOffset:()=>Q});var r=n(16332),i=n(57871);function a(e,t,n){var r,a,u;let l=(0,i.getDefaultOptions)(),o=(r=e,a=n.timeZone,u=n.locale??l.locale,new Intl.DateTimeFormat(u?[u.code,"en-US"]:void 0,{timeZone:a,timeZoneName:r}));return"formatToParts"in o?function(e,t){let n=e.formatToParts(t);for(let e=n.length-1;e>=0;--e)if("timeZoneName"===n[e].type)return n[e].value}(o,t):function(e,t){let n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(o,t)}let u={year:0,month:1,day:2,hour:3,minute:4,second:5},l={},o=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c="06/25/2014, 00:00:00"===o||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===o;function s(e,t,n,r,i,a,u){let l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,i,a,u),l}let f=/^(Z)$/,d=/^([+-]\d{2})$/,g=/^([+-])(\d{2}):?(\d{2})$/;function m(e,t,n){let r,i;if(!e)return 0;let a=f.exec(e);if(a)return 0;if(a=d.exec(e))return h(r=parseInt(a[1],10))?-(36e5*r):NaN;if(a=g.exec(e)){r=parseInt(a[2],10);let e=parseInt(a[3],10);return h(r,e)?(i=36e5*Math.abs(r)+6e4*e,"+"===a[1]?-i:i):NaN}if(function(e){if(T[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),T[e]=!0,!0}catch(e){return!1}}(e)){var u;t=new Date(t||Date.now());let r=D(n?t:s((u=t).getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()),e);return-(n?r:function(e,t,n){let r=e.getTime()-t,i=D(new Date(r),n);if(t===i)return t;let a=D(new Date(r-=i-t),n);return i===a?i:Math.max(i,a)}(t,r,e))}return NaN}function D(e,t){let n=function(e,t){var n;let r=(l[n=t]||(l[n]=c?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),l[n]);return"formatToParts"in r?function(e,t){try{let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let t=u[n[e].type];void 0!==t&&(r[t]=parseInt(n[e].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(r,e):function(e,t){let n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}(r,e)}(e,t),r=s(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),i=e.getTime(),a=i%1e3;return r-(i-=a>=0?a:1e3+a)}function h(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}let T={},N={X:function(e,t,n){let r=p(n.timeZone,e);if(0===r)return"Z";switch(t){case"X":return I(r);case"XXXX":case"XX":return x(r);default:return x(r,":")}},x:function(e,t,n){let r=p(n.timeZone,e);switch(t){case"x":return I(r);case"xxxx":case"xx":return x(r);default:return x(r,":")}},O:function(e,t,n){let r=p(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+w(a,2)}(r,":");default:return"GMT"+x(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return a("short",e,n);default:return a("long",e,n)}}};function p(e,t){let n=e?m(e,t,!0)/6e4:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw RangeError("Invalid time zone specified: "+e);return n}function w(e,t){let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return(e<0?"-":"")+n}function x(e,t=""){let n=Math.abs(e);return(e>0?"-":"+")+w(Math.floor(n/60),2)+t+w(Math.floor(n%60),2)}function I(e,t){return e%60==0?(e>0?"-":"+")+w(Math.abs(e)/60,2):x(e,t)}function Z(e){let 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-t}let y=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,U=/^([0-9W+-]+)(T| )(.*)/,C=/^([0-9W+-]+)(.*)/,M=/^(\d{2})$/,b=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],F=/^(\d{4})/,S=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],$=/^-(\d{2})$/,O=/^-?(\d{3})$/,z=/^-?(\d{2})-?(\d{2})$/,Y=/^-?W(\d{2})$/,v=/^-?W(\d{2})-?(\d{1})$/,X=/^(\d{2}([.,]\d*)?)$/,j=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,H=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/;function E(e,t={}){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);let n=null==t.additionalDigits?2:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);let r=function(e){let t,n={},r=U.exec(e);if(r?(n.date=r[1],t=r[3]):(r=C.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){let e=y.exec(t);e?(n.time=t.replace(e[1],""),n.timeZone=e[1].trim()):n.time=t}return n}(e),{year:i,restDateString:a}=function(e,t){if(e){let n=b[t],r=S[t],i=F.exec(e)||r.exec(e);if(i){let t=i[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(i=M.exec(e)||n.exec(e)){let t=i[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(r.date,n),u=function(e,t){let n,r,i;if(null===t)return null;if(!e||!e.length)return(n=new Date(0)).setUTCFullYear(t),n;let a=$.exec(e);if(a)return(n=new Date(0),k(t,r=parseInt(a[1],10)-1))?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=O.exec(e)){n=new Date(0);let e=parseInt(a[1],10);return!function(e,t){if(t<1)return!1;let n=P(e);return(!n||!(t>366))&&(!!n||!(t>365))}(t,e)?new Date(NaN):(n.setUTCFullYear(t,0,e),n)}if(a=z.exec(e)){n=new Date(0),r=parseInt(a[1],10)-1;let e=parseInt(a[2],10);return k(t,r,e)?(n.setUTCFullYear(t,r,e),n):new Date(NaN)}if(a=Y.exec(e))return R(i=parseInt(a[1],10)-1)?W(t,i):new Date(NaN);if(a=v.exec(e)){i=parseInt(a[1],10)-1;let e=parseInt(a[2],10)-1;return R(i,e)?W(t,i,e):new Date(NaN)}return null}(a,i);if(null===u||isNaN(u.getTime())||!u)return new Date(NaN);{let e,n=u.getTime(),i=0;if(r.time&&(null===(i=function(e){let t,n,r=X.exec(e);if(r)return G(t=parseFloat(r[1].replace(",",".")))?t%24*36e5:NaN;if(r=j.exec(e))return G(t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")))?t%24*36e5+6e4*n:NaN;if(r=H.exec(e)){t=parseInt(r[1],10),n=parseInt(r[2],10);let e=parseFloat(r[3].replace(",","."));return G(t,n,e)?t%24*36e5+6e4*n+1e3*e:NaN}return null}(r.time))||isNaN(i)))return new Date(NaN);if(r.timeZone||t.timeZone){if(isNaN(e=m(r.timeZone||t.timeZone,new Date(n+i))))return new Date(NaN)}else e=Z(new Date(n+i)),e=Z(new Date(n+i+e));return new Date(n+i+e)}}function W(e,t,n){t=t||0,n=n||0;let r=new Date(0);r.setUTCFullYear(e,0,4);let i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}let _=[31,28,31,30,31,30,31,31,30,31,30,31],A=[31,29,31,30,31,30,31,31,30,31,30,31];function P(e){return e%400==0||e%4==0&&e%100!=0}function k(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;let r=P(e);if(r&&n>A[t]||!r&&n>_[t])return!1}return!0}function R(e,t){return!(e<0)&&!(e>52)&&(null==t||!(t<0)&&!(t>6))}function G(e,t,n){return!(e<0)&&!(e>=25)&&(null==t||!(t<0)&&!(t>=60))&&(null==n||!(n<0)&&!(n>=60))}let q=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function B(e,t,n={}){let i=(t=String(t)).match(q);if(i){let r=E(n.originalDate||e,n);t=i.reduce(function(e,t){if("'"===t[0])return e;let i=e.indexOf(t),a="'"===e[i-1],u=e.replace(t,"'"+N[t[0]](r,t,n)+"'");return a?u.substring(0,i-1)+u.substring(i+1):u},t)}return(0,r.WU)(e,t,n)}function J(e,t,n){let r=m(t,e=E(e,n),!0),i=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function K(e,t,n,r){return r={...r,timeZone:t,originalDate:e},B(J(e,t,{timeZone:r.timeZone}),n,r)}function L(e,t,n){if("string"==typeof e&&!e.match(y))return E(e,{...n,timeZone:t});let r=s((e=E(e,n)).getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=m(t,new Date(r));return new Date(r+i)}function Q(e,t){return-m(e,t)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["75"],{99657:function(e,t,n){n.r(t),n.d(t,{isThursday:()=>t1,longFormatters:()=>eC.Gw,lastDayOfISOWeek:()=>nt,differenceInYears:()=>ef,setQuarter:()=>rn,isWeekend:()=>f,differenceInHours:()=>V,setISODay:()=>n7.v,getQuarter:()=>_,isFirstDayOfMonth:()=>tw,differenceInISOWeekYears:()=>ee,quartersToYears:()=>nA,setDay:()=>n5.v,getWeekOfMonth:()=>td,lightFormat:()=>nf,addBusinessDays:()=>c,subYears:()=>rN,startOfDay:()=>ro.b,lastDayOfYear:()=>na,lastDayOfDecade:()=>t8,getDay:()=>e3,subMonths:()=>rg,nextFriday:()=>nT,subMinutes:()=>rv,differenceInCalendarQuarters:()=>X,endOfWeek:()=>ek.v,max:()=>Y,nextMonday:()=>nS,isSameHour:()=>tL.f,roundToNearestHours:()=>nP,startOfSecond:()=>t_,isTomorrow:()=>t3,hoursToMinutes:()=>ty,endOfSecond:()=>eb,isToday:()=>t2,addISOWeekYears:()=>m,isWednesday:()=>t6,formatDate:()=>eC.p6,eachQuarterOfInterval:()=>em,toDate:()=>i.Q,formatRFC3339:()=>eP,isAfter:()=>tQ.A,isBefore:()=>tp.R,daysToWeeks:()=>x,intlFormatDistance:()=>tN,isSaturday:()=>o,isLeapYear:()=>e9,addSeconds:()=>T.v,previousDay:()=>nj,previousSaturday:()=>nJ,isPast:()=>tx,lastDayOfISOWeekYear:()=>nn,endOfHour:()=>eI,formatRelative:()=>e0,subWeeks:()=>rS,startOfMonth:()=>eO.N,roundToNearestMinutes:()=>nK,closestTo:()=>H,startOfHour:()=>rf.o,getMilliseconds:()=>ta.p,getISOWeek:()=>tn.l,minutesToHours:()=>nM,eachHourOfInterval:()=>eh,startOfISOWeekYear:()=>M.E,eachWeekendOfYear:()=>eQ,hoursToMilliseconds:()=>tm,eachWeekOfInterval:()=>ey,formatRFC7231:()=>eG,min:()=>I,secondsToHours:()=>nV,millisecondsToMinutes:()=>nh,secondsToMinutes:()=>n0,subDays:()=>t4,differenceInCalendarYears:()=>Z,startOfQuarter:()=>eD,isFriday:()=>tH,differenceInMinutes:()=>en,monthsToQuarters:()=>ny,formatISO:()=>eB,nextDay:()=>nO,startOfMinute:()=>tj,formatDistanceToNowStrict:()=>eJ,addMonths:()=>a.z,isSameMinute:()=>tz,sub:()=>rM,eachMinuteOfInterval:()=>eg,isThisMinute:()=>tA,nextSaturday:()=>nN,previousSunday:()=>n_,setDate:()=>n3.G,transpose:()=>rQ.p,formatDistance:()=>ej,previousFriday:()=>nz,setYear:()=>rs.M,startOfDecade:()=>rl,parsers:()=>t$.fQ,isEqual:()=>tI.X,millisecondsToSeconds:()=>ng,endOfToday:()=>eW,subQuarters:()=>rO,lightFormatters:()=>nu.o,isSameSecond:()=>tX,startOfWeek:()=>q.z,differenceInCalendarMonths:()=>J,differenceInWeeks:()=>el,endOfMonth:()=>ea.V,getDate:()=>e2._,getDefaultOptions:()=>e8.j,isThisQuarter:()=>tK,isValid:()=>C.J,nextThursday:()=>np,getYear:()=>tD.S,intervalToDuration:()=>tT,previousMonday:()=>nR,previousTuesday:()=>nq,setDayOfYear:()=>n6,set:()=>n2,addQuarters:()=>O,startOfTomorrow:()=>rd,subHours:()=>rm,subISOWeekYears:()=>G,getWeekYear:()=>th.c,addHours:()=>d.T,fromUnixTime:()=>e1,startOfToday:()=>rc,getSeconds:()=>to.C,subSeconds:()=>rT,isSameYear:()=>tq.F,addMinutes:()=>v.m,isDate:()=>tY.J,nextWednesday:()=>nI,differenceInMonths:()=>ei,nextTuesday:()=>nY,parseISO:()=>nk,setISOWeekYear:()=>D,eachDayOfInterval:()=>ed,isWithinInterval:()=>t9._,getDaysInYear:()=>e4,previousThursday:()=>nX,startOfYear:()=>eN.e,quartersToMonths:()=>nZ,intlFormat:()=>tS,getHours:()=>te.p,isSameQuarter:()=>tJ,minutesToSeconds:()=>nm,formatISODuration:()=>eA,addMilliseconds:()=>y.n,yearsToQuarters:()=>rk,eachWeekendOfMonth:()=>eT,startOfWeekYear:()=>ru.v,isMonday:()=>tW,compareAsc:()=>F,endOfQuarter:()=>e$,getMonth:()=>ti.j,addYears:()=>N.B,differenceInQuarters:()=>es,eachYearOfInterval:()=>ep,lastDayOfWeek:()=>ne,parse:()=>t$.Qc,milliseconds:()=>nc,endOfTomorrow:()=>ex,subMilliseconds:()=>ry,formatDuration:()=>eX,interval:()=>tO,format:()=>eC.WU,setHours:()=>n4.B,eachWeekendOfInterval:()=>ev,isSameWeek:()=>tC,isSameISOWeek:()=>tE,closestIndexTo:()=>w,isFuture:()=>tF,isSunday:()=>l,getDecade:()=>e7,isYesterday:()=>t7,clamp:()=>k,endOfYear:()=>eS.w,getOverlappingDaysInIntervals:()=>ts,nextSunday:()=>nQ,setWeek:()=>ra.$,startOfISOWeek:()=>z.T,differenceInMilliseconds:()=>et,endOfMinute:()=>eF,setDefaultOptions:()=>n9,addDays:()=>r.E,isThisYear:()=>t0,addWeeks:()=>S.j,formatISO9075:()=>eZ,endOfISOWeekYear:()=>eH,getMinutes:()=>tu.q,getWeek:()=>tc.Q,isThisMonth:()=>tP,setWeekYear:()=>ri,getISODay:()=>tt.t,isLastDayOfMonth:()=>eu,setISOWeek:()=>n8.M,weeksToDays:()=>rp,parseJSON:()=>nU,isMatch:()=>tb,formatDistanceToNow:()=>eR,setMilliseconds:()=>re.I,eachMonthOfInterval:()=>eM,add:()=>s,isSameISOWeekYear:()=>tU,differenceInCalendarWeeks:()=>B,isSameDay:()=>L.K,setSeconds:()=>rr.O,isThisISOWeek:()=>tZ,getDaysInMonth:()=>e6.N,millisecondsToHours:()=>nd,differenceInSeconds:()=>eo,areIntervalsOverlapping:()=>Q,differenceInCalendarDays:()=>g.w,differenceInCalendarISOWeeks:()=>R,differenceInCalendarISOWeekYears:()=>U,isThisHour:()=>tB,isThisSecond:()=>tV,lastDayOfQuarter:()=>nr,monthsToYears:()=>nv,subBusinessDays:()=>rD,differenceInDays:()=>A,yearsToMonths:()=>rI,constructNow:()=>b,getISOWeekYear:()=>h.L,setMonth:()=>n1.q,endOfDecade:()=>eY,getUnixTime:()=>tf,getDayOfYear:()=>e5.B,isExists:()=>tk,endOfDay:()=>er.i,endOfYesterday:()=>eL,isSameMonth:()=>tR.x,previousWednesday:()=>nB,minutesToMilliseconds:()=>nD,startOfYesterday:()=>rh,formatters:()=>eC.$0,secondsToMilliseconds:()=>nG,yearsToDays:()=>rY,getISOWeeksInYear:()=>tr,isThisWeek:()=>tG,compareDesc:()=>$,differenceInBusinessDays:()=>E,isTuesday:()=>t5,setMinutes:()=>rt.H,endOfISOWeek:()=>ew,getTime:()=>tl,getWeeksInMonth:()=>tM,constructFrom:()=>u.L,hoursToSeconds:()=>tv,formatDistanceStrict:()=>ez,lastDayOfMonth:()=>tg});var r=n(29435),a=n(39489),u=n(63879),i=n(55753);function s(e,t,n){let{years:s=0,months:o=0,weeks:l=0,days:f=0,hours:c=0,minutes:d=0,seconds:h=0}=t,g=(0,i.Q)(e,n?.in),M=o||s?(0,a.z)(g,o+12*s):g,D=f||l?(0,r.E)(M,f+7*l):M;return(0,u.L)(n?.in||e,+D+1e3*(h+60*(d+60*c)))}function o(e,t){return 6===(0,i.Q)(e,t?.in).getDay()}function l(e,t){return 0===(0,i.Q)(e,t?.in).getDay()}function f(e,t){let n=(0,i.Q)(e,t?.in).getDay();return 0===n||6===n}function c(e,t,n){let r=(0,i.Q)(e,n?.in),a=f(r,n);if(isNaN(t))return(0,u.L)(n?.in,NaN);let s=r.getHours(),c=t<0?-1:1,d=Math.trunc(t/5);r.setDate(r.getDate()+7*d);let h=Math.abs(t%5);for(;h>0;)r.setDate(r.getDate()+c),f(r,n)||(h-=1);return a&&f(r,n)&&0!==t&&(o(r,n)&&r.setDate(r.getDate()+(c<0?2:-1)),l(r,n)&&r.setDate(r.getDate()+(c<0?1:-2))),r.setHours(s),r}var d=n(22694),h=n(55795),g=n(56512),M=n(66024);function D(e,t,n){let r=(0,i.Q)(e,n?.in),a=(0,g.w)(r,(0,M.E)(r,n)),s=(0,u.L)(n?.in||e,0);return s.setFullYear(t,0,4),s.setHours(0,0,0,0),(r=(0,M.E)(s)).setDate(r.getDate()+a),r}function m(e,t,n){return D(e,(0,h.L)(e,n)+t,n)}var y=n(92450),v=n(14336);function O(e,t,n){return(0,a.z)(e,3*t,n)}var T=n(32791),S=n(5154),N=n(6341);function Q(e,t,n){let[r,a]=[+(0,i.Q)(e.start,n?.in),+(0,i.Q)(e.end,n?.in)].sort((e,t)=>e-t),[u,s]=[+(0,i.Q)(t.start,n?.in),+(0,i.Q)(t.end,n?.in)].sort((e,t)=>e-t);return n?.inclusive?r<=s&&u<=a:r<s&&u<a}var p=n(5643);function Y(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=u.L.bind(null,e));let t=(0,i.Q)(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),(0,u.L)(r,n||NaN)}function I(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=u.L.bind(null,e));let t=(0,i.Q)(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),(0,u.L)(r,n||NaN)}function k(e,t,n){let[r,a,u]=(0,p.d)(n?.in,e,t.start,t.end);return I([Y([r,a],n),u],n)}function w(e,t){let n,r,a=+(0,i.Q)(e);return isNaN(a)?NaN:(t.forEach((e,t)=>{let u=(0,i.Q)(e);if(isNaN(+u)){n=NaN,r=NaN;return}let s=Math.abs(a-u);(null==n||s<r)&&(n=t,r=s)}),n)}function H(e,t,n){let[r,...a]=(0,p.d)(n?.in,e,...t),i=w(r,a);return"number"==typeof i&&isNaN(i)?(0,u.L)(r,NaN):void 0!==i?a[i]:void 0}function F(e,t){let n=(0,i.Q)(e)-(0,i.Q)(t);return n<0?-1:n>0?1:n}function $(e,t){let n=(0,i.Q)(e)-(0,i.Q)(t);return n>0?-1:n<0?1:n}function b(e){return(0,u.L)(e,Date.now())}var W=n(25274);function x(e){let t=Math.trunc(e/W.ju);return 0===t?0:t}var L=n(97912),C=n(53743);function E(e,t,n){let[a,u]=(0,p.d)(n?.in,e,t);if(!(0,C.J)(a)||!(0,C.J)(u))return NaN;let i=(0,g.w)(a,u),s=i<0?-1:1,o=Math.trunc(i/7),l=5*o,c=(0,r.E)(u,7*o);for(;!(0,L.K)(a,c);)l+=f(c,n)?0:s,c=(0,r.E)(c,s);return 0===l?0:l}function U(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return(0,h.L)(r,n)-(0,h.L)(a,n)}var j=n(67337),z=n(15889);function R(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t),u=(0,z.T)(r),i=(0,z.T)(a);return Math.round((u-(0,j.D)(u)-(i-(0,j.D)(i)))/W.jE)}function J(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return 12*(r.getFullYear()-a.getFullYear())+(r.getMonth()-a.getMonth())}function _(e,t){return Math.trunc((0,i.Q)(e,t?.in).getMonth()/3)+1}function X(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return 4*(r.getFullYear()-a.getFullYear())+(_(r)-_(a))}var q=n(5149);function B(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t),u=(0,q.z)(r,n),i=(0,q.z)(a,n);return Math.round((u-(0,j.D)(u)-(i-(0,j.D)(i)))/W.jE)}function Z(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return r.getFullYear()-a.getFullYear()}function A(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t),u=P(r,a),i=Math.abs((0,g.w)(r,a));r.setDate(r.getDate()-u*i);let s=Number(P(r,a)===-u),o=u*(i-s);return 0===o?0:o}function P(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function K(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function V(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t),u=(r-a)/W.vh;return K(n?.roundingMethod)(u)}function G(e,t,n){return m(e,-t,n)}function ee(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t),u=F(r,a),i=Math.abs(U(r,a,n)),s=Number(F(G(r,u*i,n),a)===-u),o=u*(i-s);return 0===o?0:o}function et(e,t){return(0,i.Q)(e)-(0,i.Q)(t)}function en(e,t,n){let r=et(e,t)/W.yJ;return K(n?.roundingMethod)(r)}var er=n(13189),ea=n(24575);function eu(e,t){let n=(0,i.Q)(e,t?.in);return+(0,er.i)(n,t)==+(0,ea.V)(n,t)}function ei(e,t,n){let[r,a,u]=(0,p.d)(n?.in,e,e,t),i=F(a,u),s=Math.abs(J(a,u));if(s<1)return 0;1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-i*s);let o=F(a,u)===-i;eu(r)&&1===s&&1===F(r,u)&&(o=!1);let l=i*(s-o);return 0===l?0:l}function es(e,t,n){let r=ei(e,t,n)/3;return K(n?.roundingMethod)(r)}function eo(e,t,n){let r=et(e,t)/1e3;return K(n?.roundingMethod)(r)}function el(e,t,n){let r=A(e,t,n)/7;return K(n?.roundingMethod)(r)}function ef(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t),u=F(r,a),i=Math.abs(Z(r,a));r.setFullYear(1584),a.setFullYear(1584);let s=F(r,a)===-u,o=u*(i-s);return 0===o?0:o}function ec(e,t){let[n,r]=(0,p.d)(e,t.start,t.end);return{start:n,end:r}}function ed(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setHours(0,0,0,0);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.L)(n,s)),s.setDate(s.getDate()+o),s.setHours(0,0,0,0);return a?l.reverse():l}function eh(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setMinutes(0,0,0);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.L)(n,s)),s.setHours(s.getHours()+o);return a?l.reverse():l}function eg(e,t){let{start:n,end:r}=ec(t?.in,e);n.setSeconds(0,0);let a=+n>+r,i=a?+n:+r,s=a?r:n,o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.L)(n,s)),s=(0,v.m)(s,o);return a?l.reverse():l}function eM(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setHours(0,0,0,0),s.setDate(1);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.L)(n,s)),s.setMonth(s.getMonth()+o);return a?l.reverse():l}function eD(e,t){let n=(0,i.Q)(e,t?.in),r=n.getMonth();return n.setMonth(r-r%3,1),n.setHours(0,0,0,0),n}function em(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+eD(n):+eD(r),s=a?eD(r):eD(n),o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.L)(n,s)),s=O(s,o);return a?l.reverse():l}function ey(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?(0,q.z)(r,t):(0,q.z)(n,t),s=a?(0,q.z)(n,t):(0,q.z)(r,t);i.setHours(15),s.setHours(15);let o=+s.getTime(),l=i,f=t?.step??1;if(!f)return[];f<0&&(f=-f,a=!a);let c=[];for(;+l<=o;)l.setHours(0),c.push((0,u.L)(n,l)),(l=(0,S.j)(l,f)).setHours(15);return a?c.reverse():c}function ev(e,t){let{start:n,end:r}=ec(t?.in,e),a=ed({start:n,end:r},t),i=[],s=0;for(;s<a.length;){let e=a[s++];f(e)&&i.push((0,u.L)(n,e))}return i}var eO=n(50007);function eT(e,t){return ev({start:(0,eO.N)(e,t),end:(0,ea.V)(e,t)},t)}var eS=n(89880),eN=n(18874);function eQ(e,t){return ev({start:(0,eN.e)(e,t),end:(0,eS.w)(e,t)},t)}function ep(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setHours(0,0,0,0),s.setMonth(0,1);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.L)(n,s)),s.setFullYear(s.getFullYear()+o);return a?l.reverse():l}function eY(e,t){let n=(0,i.Q)(e,t?.in),r=9+10*Math.floor(n.getFullYear()/10);return n.setFullYear(r,11,31),n.setHours(23,59,59,999),n}function eI(e,t){let n=(0,i.Q)(e,t?.in);return n.setMinutes(59,59,999),n}var ek=n(35918);function ew(e,t){return(0,ek.v)(e,{...t,weekStartsOn:1})}function eH(e,t){let n=(0,h.L)(e,t),r=(0,u.L)(t?.in||e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let a=(0,z.T)(r,t);return a.setMilliseconds(a.getMilliseconds()-1),a}function eF(e,t){let n=(0,i.Q)(e,t?.in);return n.setSeconds(59,999),n}function e$(e,t){let n=(0,i.Q)(e,t?.in),r=n.getMonth();return n.setMonth(r-r%3+3,0),n.setHours(23,59,59,999),n}function eb(e,t){let n=(0,i.Q)(e,t?.in);return n.setMilliseconds(999),n}function eW(e){return(0,er.i)(Date.now(),e)}function ex(e){let t=b(e?.in),n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),u=b(e?.in);return u.setFullYear(n,r,a+1),u.setHours(23,59,59,999),e?.in?e.in(u):u}function eL(e){let t=b(e?.in),n=(0,u.L)(e?.in,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),n.setHours(23,59,59,999),n}var eC=n(16332),eE=n(14257),eU=n(85095);function ej(e,t,n){let r,a=(0,eU.j)(),u=n?.locale??a.locale??eE._,i=F(e,t);if(isNaN(i))throw RangeError("Invalid time value");let s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:i}),[o,l]=(0,p.d)(n?.in,...i>0?[t,e]:[e,t]),f=eo(l,o),c=Math.round((f-((0,j.D)(l)-(0,j.D)(o))/1e3)/60);if(c<2)if(n?.includeSeconds)if(f<5)return u.formatDistance("lessThanXSeconds",5,s);else if(f<10)return u.formatDistance("lessThanXSeconds",10,s);else if(f<20)return u.formatDistance("lessThanXSeconds",20,s);else if(f<40)return u.formatDistance("halfAMinute",0,s);else if(f<60)return u.formatDistance("lessThanXMinutes",1,s);else return u.formatDistance("xMinutes",1,s);else if(0===c)return u.formatDistance("lessThanXMinutes",1,s);else return u.formatDistance("xMinutes",c,s);if(c<45)return u.formatDistance("xMinutes",c,s);if(c<90)return u.formatDistance("aboutXHours",1,s);if(c<W.H_){let e=Math.round(c/60);return u.formatDistance("aboutXHours",e,s)}if(c<2520)return u.formatDistance("xDays",1,s);else if(c<W.fH){let e=Math.round(c/W.H_);return u.formatDistance("xDays",e,s)}else if(c<2*W.fH)return r=Math.round(c/W.fH),u.formatDistance("aboutXMonths",r,s);if((r=ei(l,o))<12){let e=Math.round(c/W.fH);return u.formatDistance("xMonths",e,s)}{let e=r%12,t=Math.trunc(r/12);return e<3?u.formatDistance("aboutXYears",t,s):e<9?u.formatDistance("overXYears",t,s):u.formatDistance("almostXYears",t+1,s)}}function ez(e,t,n){let r,a=(0,eU.j)(),u=n?.locale??a.locale??eE._,i=F(e,t);if(isNaN(i))throw RangeError("Invalid time value");let s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:i}),[o,l]=(0,p.d)(n?.in,...i>0?[t,e]:[e,t]),f=K(n?.roundingMethod??"round"),c=l.getTime()-o.getTime(),d=c/W.yJ,h=(c-((0,j.D)(l)-(0,j.D)(o)))/W.yJ,g=n?.unit;if("second"===(r=g||(d<1?"second":d<60?"minute":d<W.H_?"hour":h<W.fH?"day":h<W.UU?"month":"year"))){let e=f(c/1e3);return u.formatDistance("xSeconds",e,s)}if("minute"===r){let e=f(d);return u.formatDistance("xMinutes",e,s)}if("hour"===r){let e=f(d/60);return u.formatDistance("xHours",e,s)}if("day"===r){let e=f(h/W.H_);return u.formatDistance("xDays",e,s)}if("month"===r){let e=f(h/W.fH);return 12===e&&"month"!==g?u.formatDistance("xYears",1,s):u.formatDistance("xMonths",e,s)}else{let e=f(h/W.UU);return u.formatDistance("xYears",e,s)}}function eR(e,t){return ej(e,b(e),t)}function eJ(e,t){return ez(e,b(e),t)}let e_=["years","months","weeks","days","hours","minutes","seconds"];function eX(e,t){let n=(0,eU.j)(),r=t?.locale??n.locale??eE._,a=t?.format??e_,u=t?.zero??!1,i=t?.delimiter??" ";return r.formatDistance?a.reduce((t,n)=>{let a=`x${n.replace(/(^.)/,e=>e.toUpperCase())}`,i=e[n];return void 0!==i&&(u||e[n])?t.concat(r.formatDistance(a,i)):t},[]).join(i):""}var eq=n(73577);function eB(e,t){let n=(0,i.Q)(e,t?.in);if(isNaN(+n))throw RangeError("Invalid time value");let r=t?.format??"extended",a=t?.representation??"complete",u="",s="",o="extended"===r?"-":"";if("time"!==a){let e=(0,eq.r)(n.getDate(),2),t=(0,eq.r)(n.getMonth()+1,2),r=(0,eq.r)(n.getFullYear(),4);u=`${r}${o}${t}${o}${e}`}if("date"!==a){let e=n.getTimezoneOffset();if(0!==e){let t=Math.abs(e),n=(0,eq.r)(Math.trunc(t/60),2),r=(0,eq.r)(t%60,2);s=`${e<0?"+":"-"}${n}:${r}`}else s="Z";let t=(0,eq.r)(n.getHours(),2),a=(0,eq.r)(n.getMinutes(),2),i=(0,eq.r)(n.getSeconds(),2),o=""===u?"":"T",l=[t,a,i].join("extended"===r?":":"");u=`${u}${o}${l}${s}`}return u}function eZ(e,t){let n=(0,i.Q)(e,t?.in);if(!(0,C.J)(n))throw RangeError("Invalid time value");let r=t?.format??"extended",a=t?.representation??"complete",u="",s="extended"===r?"-":"",o="extended"===r?":":"";if("time"!==a){let e=(0,eq.r)(n.getDate(),2),t=(0,eq.r)(n.getMonth()+1,2),r=(0,eq.r)(n.getFullYear(),4);u=`${r}${s}${t}${s}${e}`}if("date"!==a){let e=(0,eq.r)(n.getHours(),2),t=(0,eq.r)(n.getMinutes(),2),r=(0,eq.r)(n.getSeconds(),2),a=""===u?"":" ";u=`${u}${a}${e}${o}${t}${o}${r}`}return u}function eA(e){let{years:t=0,months:n=0,days:r=0,hours:a=0,minutes:u=0,seconds:i=0}=e;return`P${t}Y${n}M${r}DT${a}H${u}M${i}S`}function eP(e,t){let n=(0,i.Q)(e,t?.in);if(!(0,C.J)(n))throw RangeError("Invalid time value");let r=t?.fractionDigits??0,a=(0,eq.r)(n.getDate(),2),u=(0,eq.r)(n.getMonth()+1,2),s=n.getFullYear(),o=(0,eq.r)(n.getHours(),2),l=(0,eq.r)(n.getMinutes(),2),f=(0,eq.r)(n.getSeconds(),2),c="";if(r>0){let e=Math.trunc(n.getMilliseconds()*Math.pow(10,r-3));c="."+(0,eq.r)(e,r)}let d="",h=n.getTimezoneOffset();if(0!==h){let e=Math.abs(h),t=(0,eq.r)(Math.trunc(e/60),2),n=(0,eq.r)(e%60,2);d=`${h<0?"+":"-"}${t}:${n}`}else d="Z";return`${s}-${u}-${a}T${o}:${l}:${f}${c}${d}`}let eK=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eV=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function eG(e){let t=(0,i.Q)(e);if(!(0,C.J)(t))throw RangeError("Invalid time value");let n=eK[t.getUTCDay()],r=(0,eq.r)(t.getUTCDate(),2),a=eV[t.getUTCMonth()],u=t.getUTCFullYear(),s=(0,eq.r)(t.getUTCHours(),2),o=(0,eq.r)(t.getUTCMinutes(),2),l=(0,eq.r)(t.getUTCSeconds(),2);return`${n}, ${r} ${a} ${u} ${s}:${o}:${l} GMT`}function e0(e,t,n){let r,[a,u]=(0,p.d)(n?.in,e,t),i=(0,eU.j)(),s=n?.locale??i.locale??eE._,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,g.w)(a,u);if(isNaN(l))throw RangeError("Invalid time value");r=l<-6?"other":l<-1?"lastWeek":l<0?"yesterday":l<1?"today":l<2?"tomorrow":l<7?"nextWeek":"other";let f=s.formatRelative(r,a,u,{locale:s,weekStartsOn:o});return(0,eC.WU)(a,f,{locale:s,weekStartsOn:o})}function e1(e,t){return(0,i.Q)(1e3*e,t?.in)}var e2=n(71721);function e3(e,t){return(0,i.Q)(e,t?.in).getDay()}var e5=n(52529),e6=n(61721);function e9(e,t){let n=(0,i.Q)(e,t?.in).getFullYear();return n%400==0||n%4==0&&n%100!=0}function e4(e,t){let n=(0,i.Q)(e,t?.in);return Number.isNaN(+n)?NaN:e9(n)?366:365}function e7(e,t){return 10*Math.floor((0,i.Q)(e,t?.in).getFullYear()/10)}var e8=n(70658),te=n(28904),tt=n(69105),tn=n(65345);function tr(e,t){let n=(0,M.E)(e,t);return Math.round(((0,M.E)((0,S.j)(n,60))-n)/W.jE)}var ta=n(20506),tu=n(7785),ti=n(38364);function ts(e,t){let[n,r]=[+(0,i.Q)(e.start),+(0,i.Q)(e.end)].sort((e,t)=>e-t),[a,u]=[+(0,i.Q)(t.start),+(0,i.Q)(t.end)].sort((e,t)=>e-t);if(!(n<u&&a<r))return 0;let s=a<n?n:a,o=s-(0,j.D)(s),l=u>r?r:u;return Math.ceil((l-(0,j.D)(l)-o)/W.dP)}var to=n(18340);function tl(e){return+(0,i.Q)(e)}function tf(e){return Math.trunc((0,i.Q)(e)/1e3)}var tc=n(74265);function td(e,t){let n=(0,eU.j)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,e2._)((0,i.Q)(e,t?.in));if(isNaN(a))return NaN;let u=r-e3((0,eO.N)(e,t));return u<=0&&(u+=7),Math.ceil((a-u)/7)+1}var th=n(30904);function tg(e,t){let n=(0,i.Q)(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),(0,i.Q)(n,t?.in)}function tM(e,t){let n=(0,i.Q)(e,t?.in);return B(tg(n,t),(0,eO.N)(n,t),t)+1}var tD=n(26635);function tm(e){return Math.trunc(e*W.vh)}function ty(e){return Math.trunc(e*W.fR)}function tv(e){return Math.trunc(e*W.R3)}function tO(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);if(isNaN(+r))throw TypeError("Start date is invalid");if(isNaN(+a))throw TypeError("End date is invalid");if(n?.assertPositive&&+r>+a)throw TypeError("End date must be after start date");return{start:r,end:a}}function tT(e,t){let{start:n,end:r}=ec(t?.in,e),a={},u=ef(r,n);u&&(a.years=u);let i=s(n,{years:a.years}),o=ei(r,i);o&&(a.months=o);let l=s(i,{months:a.months}),f=A(r,l);f&&(a.days=f);let c=s(l,{days:a.days}),d=V(r,c);d&&(a.hours=d);let h=s(c,{hours:a.hours}),g=en(r,h);g&&(a.minutes=g);let M=eo(r,s(h,{minutes:a.minutes}));return M&&(a.seconds=M),a}function tS(e,t,n){var r;let a;return void 0===(r=t)||"locale"in r?n=t:a=t,new Intl.DateTimeFormat(n?.locale,a).format((0,i.Q)(e))}function tN(e,t,n){let r,a=0,[u,i]=(0,p.d)(n?.in,e,t);if(n?.unit)"second"===(r=n?.unit)?a=eo(u,i):"minute"===r?a=en(u,i):"hour"===r?a=V(u,i):"day"===r?a=(0,g.w)(u,i):"week"===r?a=B(u,i):"month"===r?a=J(u,i):"quarter"===r?a=X(u,i):"year"===r&&(a=Z(u,i));else{let e=eo(u,i);Math.abs(e)<W.xx?(a=eo(u,i),r="second"):Math.abs(e)<W.R3?(a=en(u,i),r="minute"):Math.abs(e)<W.gM&&1>Math.abs((0,g.w)(u,i))?(a=V(u,i),r="hour"):Math.abs(e)<W.vr&&(a=(0,g.w)(u,i))&&7>Math.abs(a)?r="day":Math.abs(e)<W.nZ?(a=B(u,i),r="week"):Math.abs(e)<W.Y2?(a=J(u,i),r="month"):Math.abs(e)<W.rz&&4>X(u,i)?(a=X(u,i),r="quarter"):(a=Z(u,i),r="year")}return new Intl.RelativeTimeFormat(n?.locale,{numeric:"auto",...n}).format(a,r)}var tQ=n(41275),tp=n(14107),tY=n(95090),tI=n(50436);function tk(e,t,n){let r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}function tw(e,t){return 1===(0,i.Q)(e,t?.in).getDate()}function tH(e,t){return 5===(0,i.Q)(e,t?.in).getDay()}function tF(e){return+(0,i.Q)(e)>Date.now()}var t$=n(18070);function tb(e,t,n){return(0,C.J)((0,t$.Qc)(e,t,new Date,n))}function tW(e,t){return 1===(0,i.Q)(e,t?.in).getDay()}function tx(e){return+(0,i.Q)(e)<Date.now()}var tL=n(78374);function tC(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return+(0,q.z)(r,n)==+(0,q.z)(a,n)}function tE(e,t,n){return tC(e,t,{...n,weekStartsOn:1})}function tU(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return+(0,M.E)(r)==+(0,M.E)(a)}function tj(e,t){let n=(0,i.Q)(e,t?.in);return n.setSeconds(0,0),n}function tz(e,t){return+tj(e)==+tj(t)}var tR=n(3303);function tJ(e,t,n){let[r,a]=(0,p.d)(n?.in,e,t);return+eD(r)==+eD(a)}function t_(e,t){let n=(0,i.Q)(e,t?.in);return n.setMilliseconds(0),n}function tX(e,t){return+t_(e)==+t_(t)}var tq=n(59250);function tB(e,t){return(0,tL.f)((0,i.Q)(e,t?.in),b(t?.in||e))}function tZ(e,t){return tE((0,u.L)(t?.in||e,e),b(t?.in||e))}function tA(e){return tz(e,b(e))}function tP(e,t){return(0,tR.x)((0,u.L)(t?.in||e,e),b(t?.in||e))}function tK(e,t){return tJ((0,u.L)(t?.in||e,e),b(t?.in||e))}function tV(e){return tX(e,b(e))}function tG(e,t){return tC((0,u.L)(t?.in||e,e),b(t?.in||e),t)}function t0(e,t){return(0,tq.F)((0,u.L)(t?.in||e,e),b(t?.in||e))}function t1(e,t){return 4===(0,i.Q)(e,t?.in).getDay()}function t2(e,t){return(0,L.K)((0,u.L)(t?.in||e,e),b(t?.in||e))}function t3(e,t){return(0,L.K)(e,(0,r.E)(b(t?.in||e),1),t)}function t5(e,t){return 2===(0,i.Q)(e,t?.in).getDay()}function t6(e,t){return 3===(0,i.Q)(e,t?.in).getDay()}var t9=n(62511);function t4(e,t,n){return(0,r.E)(e,-t,n)}function t7(e,t){return(0,L.K)((0,u.L)(t?.in||e,e),t4(b(t?.in||e),1))}function t8(e,t){let n=(0,i.Q)(e,t?.in),r=9+10*Math.floor(n.getFullYear()/10);return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),(0,i.Q)(n,t?.in)}function ne(e,t){let n=(0,eU.j)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,i.Q)(e,t?.in),u=a.getDay();return a.setHours(0,0,0,0),a.setDate(a.getDate()+((u<r?-7:0)+6-(u-r))),a}function nt(e,t){return ne(e,{...t,weekStartsOn:1})}function nn(e,t){let n=(0,h.L)(e,t),r=(0,u.L)(t?.in||e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let a=(0,z.T)(r,t);return a.setDate(a.getDate()-1),a}function nr(e,t){let n=(0,i.Q)(e,t?.in),r=n.getMonth();return n.setMonth(r-r%3+3,0),n.setHours(0,0,0,0),n}function na(e,t){let n=(0,i.Q)(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}var nu=n(7175);let ni=/(\w)\1*|''|'(''|[^'])+('|$)|./g,ns=/^'([^]*?)'?$/,no=/''/g,nl=/[a-zA-Z]/;function nf(e,t){let n=(0,i.Q)(e);if(!(0,C.J)(n))throw RangeError("Invalid time value");let r=t.match(ni);return r?r.map(e=>{if("''"===e)return"'";let t=e[0];if("'"===t){var r=e;let t=r.match(ns);return t?t[1].replace(no,"'"):r}let a=nu.o[t];if(a)return a(n,e);if(t.match(nl))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join(""):""}function nc({years:e,months:t,weeks:n,days:r,hours:a,minutes:u,seconds:i}){let s=0;e&&(s+=e*W.dT),t&&(s+=t*(W.dT/12)),n&&(s+=7*n),r&&(s+=r);let o=24*s*3600;return a&&(o+=60*a*60),u&&(o+=60*u),i&&(o+=i),Math.trunc(1e3*o)}function nd(e){return Math.trunc(e/W.vh)}function nh(e){return Math.trunc(e/W.yJ)}function ng(e){return Math.trunc(e/W.qk)}function nM(e){return Math.trunc(e/W.fR)}function nD(e){return Math.trunc(e*W.yJ)}function nm(e){return Math.trunc(e*W.xx)}function ny(e){return Math.trunc(e/W.Ob)}function nv(e){return Math.trunc(e/W.CU)}function nO(e,t,n){let a=t-e3(e,n);return a<=0&&(a+=7),(0,r.E)(e,a,n)}function nT(e,t){return nO(e,5,t)}function nS(e,t){return nO(e,1,t)}function nN(e,t){return nO(e,6,t)}function nQ(e,t){return nO(e,0,t)}function np(e,t){return nO(e,4,t)}function nY(e,t){return nO(e,2,t)}function nI(e,t){return nO(e,3,t)}function nk(e,t){let n,r,a=()=>(0,u.L)(t?.in,NaN),s=t?.additionalDigits??2,o=function(e){let t,n={},r=e.split(nw);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],nH.test(n.date)&&(n.date=e.split(nH)[0],t=e.substr(n.date.length,e.length))),t){let e=nF.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(o.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let a=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:null===u?a:100*u,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,s);n=function(e,t){var n,r,a,u,i,s,o;if(null===t)return new Date(NaN);let l=e.match(n$);if(!l)return new Date(NaN);let f=!!l[4],c=nx(l[1]),d=nx(l[2])-1,h=nx(l[3]),g=nx(l[4]),M=nx(l[5])-1;if(f){return(n=g,r=M,n>=1&&n<=53&&r>=0&&r<=6)?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let a=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-a)),r}(t,g,M):new Date(NaN)}{let e=new Date(0);return(a=t,u=d,i=h,u>=0&&u<=11&&i>=1&&i<=(nC[u]||(nE(a)?29:28))&&(s=t,(o=c)>=1&&o<=(nE(s)?366:365)))?(e.setUTCFullYear(t,d,Math.max(c,h)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!n||isNaN(+n))return a();let l=+n,f=0;if(o.time&&isNaN(f=function(e){var t,n,r;let a=e.match(nb);if(!a)return NaN;let u=nL(a[1]),i=nL(a[2]),s=nL(a[3]);return(t=u,n=i,r=s,24===t?0===n&&0===r:r>=0&&r<60&&n>=0&&n<60&&t>=0&&t<25)?u*W.vh+i*W.yJ+1e3*s:NaN}(o.time)))return a();if(o.timezone){if(isNaN(r=function(e){var t;if("Z"===e)return 0;let n=e.match(nW);if(!n)return 0;let r="+"===n[1]?-1:1,a=parseInt(n[2]),u=n[3]&&parseInt(n[3])||0;return(t=u)>=0&&t<=59?r*(a*W.vh+u*W.yJ):NaN}(o.timezone)))return a()}else{let e=new Date(l+f),n=(0,i.Q)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return(0,i.Q)(l+f+r,t?.in)}let nw=/[T ]/,nH=/[Z ]/i,nF=/([Z+-].*)$/,n$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,nb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nx(e){return e?parseInt(e):1}function nL(e){return e&&parseFloat(e.replace(",","."))||0}let nC=[31,null,31,30,31,30,31,31,30,31,30,31];function nE(e){return e%400==0||e%4==0&&e%100!=0}function nU(e,t){let n=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return n?(0,i.Q)(Date.UTC(+n[1],n[2]-1,+n[3],n[4]-(+n[9]||0)*("-"==n[8]?-1:1),n[5]-(+n[10]||0)*("-"==n[8]?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)),t?.in):(0,i.Q)(NaN,t?.in)}function nj(e,t,n){let r=e3(e,n)-t;return r<=0&&(r+=7),t4(e,r,n)}function nz(e,t){return nj(e,5,t)}function nR(e,t){return nj(e,1,t)}function nJ(e,t){return nj(e,6,t)}function n_(e,t){return nj(e,0,t)}function nX(e,t){return nj(e,4,t)}function nq(e,t){return nj(e,2,t)}function nB(e,t){return nj(e,3,t)}function nZ(e){return Math.trunc(e*W.Ob)}function nA(e){return Math.trunc(e/W._j)}function nP(e,t){let n=t?.nearestTo??1;if(n<1||n>12)return(0,u.L)(t?.in||e,NaN);let r=(0,i.Q)(e,t?.in),a=r.getMinutes()/60,s=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,l=r.getHours()+a+s+o,f=K(t?.roundingMethod??"round")(l/n)*n;return r.setHours(f,0,0,0),r}function nK(e,t){let n=t?.nearestTo??1;if(n<1||n>30)return(0,u.L)(e,NaN);let r=(0,i.Q)(e,t?.in),a=r.getSeconds()/60,s=r.getMilliseconds()/1e3/60,o=r.getMinutes()+a+s,l=K(t?.roundingMethod??"round")(o/n)*n;return r.setMinutes(l,0,0),r}function nV(e){return Math.trunc(e/W.R3)}function nG(e){return e*W.qk}function n0(e){return Math.trunc(e/W.xx)}var n1=n(11136);function n2(e,t,n){let r=(0,i.Q)(e,n?.in);return isNaN(+r)?(0,u.L)(n?.in||e,NaN):(null!=t.year&&r.setFullYear(t.year),null!=t.month&&(r=(0,n1.q)(r,t.month)),null!=t.date&&r.setDate(t.date),null!=t.hours&&r.setHours(t.hours),null!=t.minutes&&r.setMinutes(t.minutes),null!=t.seconds&&r.setSeconds(t.seconds),null!=t.milliseconds&&r.setMilliseconds(t.milliseconds),r)}var n3=n(83709),n5=n(42063);function n6(e,t,n){let r=(0,i.Q)(e,n?.in);return r.setMonth(0),r.setDate(t),r}function n9(e){let t={},n=(0,eU.j)();for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===e[n]?delete t[n]:t[n]=e[n]);(0,eU.b)(t)}var n4=n(63200),n7=n(21542),n8=n(95738),re=n(44138),rt=n(36292);function rn(e,t,n){let r=(0,i.Q)(e,n?.in),a=Math.trunc(r.getMonth()/3)+1;return(0,n1.q)(r,r.getMonth()+3*(t-a))}var rr=n(33518),ra=n(70616),ru=n(20937);function ri(e,t,n){let r=(0,eU.j)(),a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=(0,g.w)((0,i.Q)(e,n?.in),(0,ru.v)(e,n),n),o=(0,u.L)(n?.in||e,0);o.setFullYear(t,0,a),o.setHours(0,0,0,0);let l=(0,ru.v)(o,n);return l.setDate(l.getDate()+s),l}var rs=n(28140),ro=n(23033);function rl(e,t){let n=(0,i.Q)(e,t?.in),r=10*Math.floor(n.getFullYear()/10);return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}var rf=n(82806);function rc(e){return(0,ro.b)(Date.now(),e)}function rd(e){let t=b(e?.in),n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),i=(0,u.L)(e?.in,0);return i.setFullYear(n,r,a+1),i.setHours(0,0,0,0),i}function rh(e){let t=b(e?.in),n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),u=b(e?.in);return u.setFullYear(n,r,a-1),u.setHours(0,0,0,0),u}function rg(e,t,n){return(0,a.z)(e,-t,n)}function rM(e,t,n){let{years:r=0,months:a=0,weeks:i=0,days:s=0,hours:o=0,minutes:l=0,seconds:f=0}=t,c=t4(rg(e,a+12*r,n),s+7*i,n);return(0,u.L)(n?.in||e,c-1e3*(f+60*(l+60*o)))}function rD(e,t,n){return c(e,-t,n)}function rm(e,t,n){return(0,d.T)(e,-t,n)}function ry(e,t,n){return(0,y.n)(e,-t,n)}function rv(e,t,n){return(0,v.m)(e,-t,n)}function rO(e,t,n){return O(e,-t,n)}function rT(e,t,n){return(0,T.v)(e,-t,n)}function rS(e,t,n){return(0,S.j)(e,-t,n)}function rN(e,t,n){return(0,N.B)(e,-t,n)}var rQ=n(50469);function rp(e){return Math.trunc(e*W.ju)}function rY(e){return Math.trunc(e*W.dT)}function rI(e){return Math.trunc(e*W.CU)}function rk(e){return Math.trunc(e*W._j)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_TimeSeriesChart=self.chunk_TimeSeriesChart||[]).push([["770"],{51958:function(e,t,r){r.r(t),r.d(t,{default:()=>g});var i=r(70252),n=r(72116),a=r(42747),o=r(37164),s=r(53211),l=r(54538),c=r(17960),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=(0,c.Z)(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),u=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:u},f=function(e,t,r){var i;if(t){var n=t.shouldForwardProp;i=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},h=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,s.hC)(t,r,i),(0,o.L)(function(){return(0,s.My)(t,r,i)}),null},g=(function e(t,r){var o,c,d=t.__emotion_real===t,p=d&&t.__emotion_base||t;void 0!==r&&(o=r.label,c=r.target);var u=f(t,r,d),g=u||m(p),y=!g("as");return function(){var v=arguments,k=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&k.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)k.push.apply(k,v);else{var b=v[0];k.push(b[0]);for(var x=v.length,_=1;_<x;_++)k.push(v[_],b[_])}var w=(0,n.withEmotionCache)(function(e,t,r){var i=y&&e.as||p,o="",d=[],f=e;if(null==e.theme){for(var v in f={},e)f[v]=e[v];f.theme=l.useContext(n.ThemeContext)}"string"==typeof e.className?o=(0,s.fp)(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var b=(0,a.O)(k.concat(d),t.registered,f);o+=t.key+"-"+b.name,void 0!==c&&(o+=" "+c);var x=y&&void 0===u?m(i):g,_={};for(var w in e)(!y||"as"!==w)&&x(w)&&(_[w]=e[w]);return _.className=o,r&&(_.ref=r),l.createElement(l.Fragment,null,l.createElement(h,{cache:t,serialized:b,isStringTag:"string"==typeof i}),l.createElement(i,_))});return w.displayName=void 0!==o?o:"Styled("+("string"==typeof p?p:p.displayName||p.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=p,w.__emotion_styles=k,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(t,n){return e(t,(0,i.Z)({},r,n,{shouldForwardProp:f(w,n,!0)})).apply(void 0,k)},w}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)})},37164:function(e,t,r){r.d(t,{L:()=>a,j:()=>o});var i=r(54538),n=!!i.useInsertionEffect&&i.useInsertionEffect,a=n||function(e){return e()},o=n||i.useLayoutEffect},53211:function(e,t,r){function i(e,t,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(i+=r+" ")}),i}r.d(t,{My:()=>a,fp:()=>i,hC:()=>n});var n=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},a=function(e,t,r){n(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+i:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}}}}]);