@wavv/ui 1.8.15-beta.2 → 1.8.16

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.
@@ -206,7 +206,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
206
206
  38:14,
207
207
  /*! Conditions:: INITIAL */
208
208
  /*! Rule:: $ */
209
- 39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();void 0!==$C&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(WC);var qC={},ZC={exports:{}},GC={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},YC=function(e,t,n,r){if(!GC.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!GC[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=GC[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=YC)&&n.__esModule?n:{default:n};t.default=function(e,t,n){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,n){t.type===e.type&&(t={type:e.type,value:(0,r.default)(t.value,t.unit,e.unit,n),unit:e.unit});return{left:e,right:t}}(e,t,n);default:return{left:e,right:t}}},e.exports=t.default}(ZC,ZC.exports);var XC=ZC.exports;Object.defineProperty(qC,"__esModule",{value:!0}),qC.flip=r_;var JC,QC=(JC=XC)&&JC.__esModule?JC:{default:JC};function e_(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,QC.default)(e.left,e.right,t),r=e_(n.left,t),o=e_(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(t_(r.right,o.right)?n=(0,QC.default)(r.left,o.left,t):t_(r.right,o.left)&&(n=(0,QC.default)(r.left,o.right,t)),r=e_(n.left,t),o=e_(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return o_(o);r.type===o.type&&n_(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(n_(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=e_({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?r_(o.operator):o.operator,e_(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=e_({type:"MathExpression",operator:"-"===i?r_(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,e_(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&n_(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=e_({type:"MathExpression",operator:i,left:r.left,right:o},t),e_(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=e_({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=e_({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),e_(e,t)}return e}(e,t);case"/":return function(e,t){if(!n_(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return n_(e.left.left.type)&&n_(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,e_(e.left,t)):e;if(n_(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(n_(e.left.left.type)&&n_(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(n_(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(n_(e.right.left.type)&&n_(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&n_(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?e_(e.value,t):e}function t_(e,t){return e.type===t.type&&e.value===t.value}function n_(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function r_(e){return"+"===e?"-":"+"}function o_(e){return n_(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=o_(e.left),e.right=o_(e.right)),e}qC.default=e_;var i_={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=qC,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,l="";return"MathExpression"===a.type&&r[c]<r[a.operator]?l+="("+i(a,t)+")":l+=i(a,t),l+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?l+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),l+=i(s,t)):l+=i(s,t),l;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}(i_,i_.exports);var a_=i_.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(UC),r=WC,o=a(qC),i=a(a_);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),l=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default}(jC,jC.exports);var s_=ct(jC.exports);function c_(e){return c_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c_(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l_(Object(n),!0).forEach((function(t){f_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==c_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d_(e){return function(e){if(Array.isArray(e))return p_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h_={widthCache:{},cacheCount:0},g_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},v_=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],y_="recharts_measurement_span";var m_=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(d_(e),["-",t.toLowerCase()]):[].concat(d_(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],v_.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},b_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Px.isSsr)return{width:0,height:0};var n="".concat(e),r=m_(t),o="".concat(n,"-").concat(r);if(h_.widthCache[o])return h_.widthCache[o];try{var i=document.getElementById(y_);i||((i=document.createElement("span")).setAttribute("id",y_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=u_(u_({},g_),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return h_.widthCache[o]=c,++h_.cacheCount>2e3&&(h_.cacheCount=0,h_.widthCache={}),c}catch(e){return{width:0,height:0}}},w_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x_.apply(this,arguments)}function C_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function __(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k_=/[ \f\n\r\t\v\u2028\u2029]+/,O_=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return wf(t)||(o=n?t.toString().split(""):t.toString().split(k_)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:b_(e,r).width}})),spaceWidth:n?0:b_(" ",r).width}}catch(e){return null}},E_=function(e){return[{words:wf(e)?[]:e.toString().split(k_)}]},j_=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!Px.isSsr){var s=O_({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,l=Lf(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!l)return d;for(var p,h=function(e){var t=u.slice(0,e),n=O_({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,v=u.length-1,y=0;g<=v&&y<=u.length-1;){var m=Math.floor((g+v)/2),b=__(h(m-1),2),w=b[0],x=b[1],C=__(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(v=m-1),!w&&C){p=x;break}y++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):E_(r)}return E_(r)},A_={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"},T_=function(e){var n=t.useMemo((function(){return j_({breakAll:e.breakAll,children:e.children,maxLines:e.maxLines,scaleToFit:e.scaleToFit,style:e.style,width:e.width})}),[e.breakAll,e.children,e.maxLines,e.scaleToFit,e.style,e.width]),r=e.dx,o=e.dy,i=e.textAnchor,a=e.verticalAnchor,s=e.scaleToFit,c=e.angle,l=e.lineHeight,u=e.capHeight,f=e.className,d=e.breakAll,p=C_(e,w_);if(!If(p.x)||!If(p.y))return null;var h,g=p.x+(Lf(r)?r:0),v=p.y+(Lf(o)?o:0);switch(a){case"start":h=s_("calc(".concat(u,")"));break;case"middle":h=s_("calc(".concat((n.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:h=s_("calc(".concat(n.length-1," * -").concat(l,")"))}var y=[];if(s){var m=n[0].width,b=e.width;y.push("scale(".concat((Lf(b)?b/m:1)/m,")"))}return c&&y.push("rotate(".concat(c,", ").concat(g,", ").concat(v,")")),y.length&&(p.transform=y.join(" ")),t.createElement("text",x_({},ld(p,!0),{x:g,y:v,className:Bc("recharts-text",f),textAnchor:i,fill:p.fill.includes("url")?A_.fill:p.fill}),n.map((function(e,n){return t.createElement("tspan",{x:g,dy:0===n?h:l,key:n},e.words.join(d?"":" "))})))};T_.defaultProps=A_;var M_=Yh;var P_=ct((function(e,t){return M_(e,t)})),D_=vl;var L_=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!D_(a):n(a,s)))var s=a,c=i}return c};var I_=function(e,t){return e>t},R_=L_,N_=I_,B_=Ag;var F_=function(e){return e&&e.length?R_(e,B_,N_):void 0},z_=ct(F_);var H_=function(e,t){return e<t},V_=L_,K_=H_,U_=Ag;var $_=function(e){return e&&e.length?V_(e,U_,K_):void 0},W_=ct($_),q_=Yu,Z_=Vg,G_=Bw,Y_=sl;var X_=jw,J_=function(e,t){return(Y_(e)?q_:G_)(e,Z_(t))};var Q_=ct((function(e,t){return X_(J_(e,t),1)}));function eS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nS(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=eS,n=(t,n)=>eS(e(t),n),r=(t,n)=>e(t)-n):(t=e===eS||e===tS?e:rS,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function rS(){return 0}function oS(e){return null===e?NaN:+e}const iS=nS(eS).right;nS(oS).center;var aS=iS;class sS extends Map{constructor(e,t=lS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(cS(this,e))}has(e){return super.has(cS(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function cS({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lS(e){return null!==e&&"object"==typeof e?e.valueOf():e}function uS(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const fS=Math.sqrt(50),dS=Math.sqrt(10),pS=Math.sqrt(2);function hS(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=fS?10:i>=dS?5:i>=pS?2:1;let s,c,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,o)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?hS(e,t,2*n):[s,c,l]}function gS(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?hS(t,e,n):hS(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function vS(e,t,n){return hS(e=+e,t=+t,n=+n)[2]}function yS(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?vS(t,e,n):vS(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mS(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function bS(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function wS(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?uS:function(e=eS){if(e===eS)return uS;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);wS(e,t,Math.max(n,Math.floor(t-a*c/i+l)),Math.min(r,Math.floor(t+(i-a)*c/i+l)),o)}const i=e[t];let a=n,s=r;for(xS(e,n,t),o(e[r],i)>0&&xS(e,n,r);a<s;){for(xS(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?xS(e,n,s):(++s,xS(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function xS(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CS(e,t,n=oS){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function _S(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function SS(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const kS=Symbol("implicit");function OS(){var e=new sS,t=[],n=[],r=kS;function o(o){let i=e.get(o);if(void 0===i){if(r!==kS)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new sS;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return OS(t,n).unknown(r)},_S.apply(o,arguments),o}function ES(){var e,t,n=OS().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,l=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-c+2*l),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*u,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return ES(r(),[i,a]).round(s).paddingInner(c).paddingOuter(l).align(u)},_S.apply(f(),arguments)}function jS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return jS(t())},e}function AS(){return jS(ES.apply(null,arguments).paddingInner(1))}function TS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function MS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function PS(){}var DS=.7,LS=1/DS,IS="\\s*([+-]?\\d+)\\s*",RS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",NS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BS=/^#([0-9a-f]{3,8})$/,FS=new RegExp(`^rgb\\(${IS},${IS},${IS}\\)$`),zS=new RegExp(`^rgb\\(${NS},${NS},${NS}\\)$`),HS=new RegExp(`^rgba\\(${IS},${IS},${IS},${RS}\\)$`),VS=new RegExp(`^rgba\\(${NS},${NS},${NS},${RS}\\)$`),KS=new RegExp(`^hsl\\(${RS},${NS},${NS}\\)$`),US=new RegExp(`^hsla\\(${RS},${NS},${NS},${RS}\\)$`),$S={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function WS(){return this.rgb().formatHex()}function qS(){return this.rgb().formatRgb()}function ZS(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BS.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?GS(t):3===n?new JS(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?YS(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?YS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=FS.exec(e))?new JS(t[1],t[2],t[3],1):(t=zS.exec(e))?new JS(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HS.exec(e))?YS(t[1],t[2],t[3],t[4]):(t=VS.exec(e))?YS(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=KS.exec(e))?ok(t[1],t[2]/100,t[3]/100,1):(t=US.exec(e))?ok(t[1],t[2]/100,t[3]/100,t[4]):$S.hasOwnProperty(e)?GS($S[e]):"transparent"===e?new JS(NaN,NaN,NaN,0):null}function GS(e){return new JS(e>>16&255,e>>8&255,255&e,1)}function YS(e,t,n,r){return r<=0&&(e=t=n=NaN),new JS(e,t,n,r)}function XS(e,t,n,r){return 1===arguments.length?function(e){return e instanceof PS||(e=ZS(e)),e?new JS((e=e.rgb()).r,e.g,e.b,e.opacity):new JS}(e):new JS(e,t,n,null==r?1:r)}function JS(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function QS(){return`#${rk(this.r)}${rk(this.g)}${rk(this.b)}`}function ek(){const e=tk(this.opacity);return`${1===e?"rgb(":"rgba("}${nk(this.r)}, ${nk(this.g)}, ${nk(this.b)}${1===e?")":`, ${e})`}`}function tk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rk(e){return((e=nk(e))<16?"0":"")+e.toString(16)}function ok(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ak(e,t,n,r)}function ik(e){if(e instanceof ak)return new ak(e.h,e.s,e.l,e.opacity);if(e instanceof PS||(e=ZS(e)),!e)return new ak;if(e instanceof ak)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new ak(a,s,c,e.opacity)}function ak(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sk(e){return(e=(e||0)%360)<0?e+360:e}function ck(e){return Math.max(0,Math.min(1,e||0))}function lk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}TS(PS,ZS,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WS,formatHex:WS,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ik(this).formatHsl()},formatRgb:qS,toString:qS}),TS(JS,XS,MS(PS,{brighter(e){return e=null==e?LS:Math.pow(LS,e),new JS(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?DS:Math.pow(DS,e),new JS(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new JS(nk(this.r),nk(this.g),nk(this.b),tk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:QS,formatHex:QS,formatHex8:function(){return`#${rk(this.r)}${rk(this.g)}${rk(this.b)}${rk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ek,toString:ek})),TS(ak,(function(e,t,n,r){return 1===arguments.length?ik(e):new ak(e,t,n,null==r?1:r)}),MS(PS,{brighter(e){return e=null==e?LS:Math.pow(LS,e),new ak(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?DS:Math.pow(DS,e),new ak(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new JS(lk(e>=240?e-240:e+120,o,r),lk(e,o,r),lk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ak(sk(this.h),ck(this.s),ck(this.l),tk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tk(this.opacity);return`${1===e?"hsl(":"hsla("}${sk(this.h)}, ${100*ck(this.s)}%, ${100*ck(this.l)}%${1===e?")":`, ${e})`}`}}));var uk=e=>()=>e;function fk(e){return 1==(e=+e)?dk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):uk(isNaN(t)?n:t)}}function dk(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):uk(isNaN(e)?t:e)}var pk=function e(t){var n=fk(t);function r(e,t){var r=n((e=XS(e)).r,(t=XS(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=dk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function hk(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function gk(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Ck(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function vk(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yk(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mk(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Ck(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var bk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wk=new RegExp(bk.source,"g");function xk(e,t){var n,r,o,i=bk.lastIndex=wk.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=bk.exec(e))&&(r=wk.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:yk(n,r)})),i=wk.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function Ck(e,t){var n,r=typeof t;return null==t||"boolean"===r?uk(t):("number"===r?yk:"string"===r?(n=ZS(t))?(t=n,pk):xk:t instanceof ZS?pk:t instanceof Date?vk:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?hk:Array.isArray(t)?gk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mk:yk)(e,t)}function _k(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Sk(e,t){void 0===t&&(t=e,e=Ck);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function kk(e){return+e}var Ok=[0,1];function Ek(e){return e}function jk(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ak(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=jk(o,r),i=n(a,i)):(r=jk(r,o),i=n(i,a)),function(e){return i(r(e))}}function Tk(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=jk(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=aS(e,t,1,r)-1;return i[n](o[n](t))}}function Mk(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pk(){var e,t,n,r,o,i,a=Ok,s=Ok,c=Ck,l=Ek;function u(){var e=Math.min(a.length,s.length);return l!==Ek&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Tk:Ak,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),yk)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,kk),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=_k,u()},f.clamp=function(e){return arguments.length?(l=!!e||Ek,u()):l!==Ek},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function Dk(){return Pk()(Ek,Ek)}function Lk(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ik(e){return(e=Lk(Math.abs(e)))?e[1]:NaN}var Rk,Nk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bk(e){if(!(t=Nk.exec(e)))throw new Error("invalid format: "+e);var t;return new Fk({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Fk(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function zk(e,t){var n=Lk(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Bk.prototype=Fk.prototype,Fk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hk={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>zk(100*e,t),r:zk,s:function(e,t){var n=Lk(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Rk=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Lk(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vk(e){return e}var Kk,Uk,$k,Wk=Array.prototype.map,qk=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zk(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Vk:(t=Wk.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Vk:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Wk.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Bk(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,v=e.precision,y=e.trim,m=e.type;"n"===m?(g=!0,m="g"):Hk[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?c:"",x=Hk[m],C=/[defgprs%]/.test(m);function _(e){var o,i,c,d=b,_=w;if("c"===m)_=x(e)+_,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:l:"-"===f||"("===f?"":f)+d,_=("s"===m?qk[8+Rk/3]:"")+_+(S&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){_=(46===c?a+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var k=d.length+e.length+_.length,O=k<h?new Array(h-k+1).join(t):"";switch(g&&p&&(e=r(O+e,O.length?h-_.length:1/0),O=""),n){case"<":e=d+e+_+O;break;case"=":e=d+O+e+_;break;case"^":e=O.slice(0,k=O.length>>1)+d+e+_+O.slice(k);break;default:e=O+d+e+_}return s(e)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=Bk(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ik(t)/3))),o=Math.pow(10,-r),i=qk[8+r/3];return function(e){return n(o*e)+i}}}}function Gk(e,t,n,r){var o,i=yS(e,t,n);switch((r=Bk(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ik(t)/3)))-Ik(Math.abs(e)))}(i,a))||(r.precision=o),$k(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ik(t)-Ik(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Ik(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Uk(r)}function Yk(e){var t=e.domain;return e.ticks=function(e){var n=t();return gS(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Gk(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],l=i[s],u=10;for(l<c&&(o=c,c=l,l=o,o=a,a=s,s=o);u-- >0;){if((o=vS(c,l,n))===r)return i[a]=c,i[s]=l,t(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function Xk(){var e=Dk();return e.copy=function(){return Mk(e,Xk())},_S.apply(e,arguments),Yk(e)}function Jk(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Qk(e){return Math.log(e)}function eO(e){return Math.exp(e)}function tO(e){return-Math.log(-e)}function nO(e){return-Math.exp(-e)}function rO(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oO(e){return(t,n)=>-e(-t,n)}function iO(e){const t=e(Qk,eO),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?rO:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=oO(r),o=oO(o),e(tO,nO)):e(Qk,eO),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let l,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1;l<i;++l)if(u=f<0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(l=i-1;l>=1;--l)if(u=f>0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=gS(a,s,p))}else h=gS(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=Bk(n)).precision||(n.trim=!0),n=Uk(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(Jk(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function aO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cO(e){var t=1,n=e(aO(t),sO(t));return n.constant=function(n){return arguments.length?e(aO(t=+n),sO(t)):t},Yk(n)}function lO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fO(e){return e<0?-e*e:e*e}function dO(e){var t=e(Ek,Ek),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Ek,Ek):.5===n?e(uO,fO):e(lO(n),lO(1/n)):n},Yk(t)}function pO(){var e=dO(Pk());return e.copy=function(){return Mk(e,pO()).exponent(e.exponent())},_S.apply(e,arguments),e}function hO(e){return Math.sign(e)*e*e}Kk=Zk({thousands:",",grouping:[3],currency:["$",""]}),Uk=Kk.format,$k=Kk.formatPrefix;const gO=new Date,vO=new Date;function yO(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>yO((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(gO.setTime(+t),vO.setTime(+r),e(gO),e(vO),Math.floor(n(gO,vO))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const mO=yO((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));mO.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?yO((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):mO:null),mO.range;const bO=1e3,wO=6e4,xO=36e5,CO=864e5,_O=6048e5,SO=2592e6,kO=31536e6,OO=yO((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*bO)}),((e,t)=>(t-e)/bO),(e=>e.getUTCSeconds()));OO.range;const EO=yO((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bO)}),((e,t)=>{e.setTime(+e+t*wO)}),((e,t)=>(t-e)/wO),(e=>e.getMinutes()));EO.range;const jO=yO((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*wO)}),((e,t)=>(t-e)/wO),(e=>e.getUTCMinutes()));jO.range;const AO=yO((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bO-e.getMinutes()*wO)}),((e,t)=>{e.setTime(+e+t*xO)}),((e,t)=>(t-e)/xO),(e=>e.getHours()));AO.range;const TO=yO((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*xO)}),((e,t)=>(t-e)/xO),(e=>e.getUTCHours()));TO.range;const MO=yO((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wO)/CO),(e=>e.getDate()-1));MO.range;const PO=yO((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/CO),(e=>e.getUTCDate()-1));PO.range;const DO=yO((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/CO),(e=>Math.floor(e/CO)));function LO(e){return yO((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wO)/_O))}DO.range;const IO=LO(0),RO=LO(1),NO=LO(2),BO=LO(3),FO=LO(4),zO=LO(5),HO=LO(6);function VO(e){return yO((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/_O))}IO.range,RO.range,NO.range,BO.range,FO.range,zO.range,HO.range;const KO=VO(0),UO=VO(1),$O=VO(2),WO=VO(3),qO=VO(4),ZO=VO(5),GO=VO(6);KO.range,UO.range,$O.range,WO.range,qO.range,ZO.range,GO.range;const YO=yO((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));YO.range;const XO=yO((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));XO.range;const JO=yO((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));JO.every=e=>isFinite(e=Math.floor(e))&&e>0?yO((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,JO.range;const QO=yO((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function eE(e,t,n,r,o,i){const a=[[OO,1,bO],[OO,5,5e3],[OO,15,15e3],[OO,30,3e4],[i,1,wO],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,xO],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,CO],[r,2,1728e5],[n,1,_O],[t,1,SO],[t,3,7776e6],[e,1,kO]];function s(t,n,r){const o=Math.abs(n-t)/r,i=nS((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(yS(t/kO,n/kO,r));if(0===i)return mO.every(Math.max(yS(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}QO.every=e=>isFinite(e=Math.floor(e))&&e>0?yO((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,QO.range;const[tE,nE]=eE(QO,XO,KO,DO,TO,jO),[rE,oE]=eE(JO,YO,IO,MO,AO,EO);function iE(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function aE(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function sE(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var cE,lE,uE,fE={"-":"",_:" ",0:"0"},dE=/^\s*\d+/,pE=/^%/,hE=/[\\^$*+?|[\]().{}]/g;function gE(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function vE(e){return e.replace(hE,"\\$&")}function yE(e){return new RegExp("^(?:"+e.map(vE).join("|")+")","i")}function mE(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function bE(e,t,n){var r=dE.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wE(e,t,n){var r=dE.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function CE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _E(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function SE(e,t,n){var r=dE.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function kE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function OE(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function EE(e,t,n){var r=dE.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function jE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function AE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function TE(e,t,n){var r=dE.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ME(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function PE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function DE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function LE(e,t,n){var r=dE.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IE(e,t,n){var r=dE.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function RE(e,t,n){var r=pE.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NE(e,t,n){var r=dE.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BE(e,t,n){var r=dE.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function FE(e,t){return gE(e.getDate(),t,2)}function zE(e,t){return gE(e.getHours(),t,2)}function HE(e,t){return gE(e.getHours()%12||12,t,2)}function VE(e,t){return gE(1+MO.count(JO(e),e),t,3)}function KE(e,t){return gE(e.getMilliseconds(),t,3)}function UE(e,t){return KE(e,t)+"000"}function $E(e,t){return gE(e.getMonth()+1,t,2)}function WE(e,t){return gE(e.getMinutes(),t,2)}function qE(e,t){return gE(e.getSeconds(),t,2)}function ZE(e){var t=e.getDay();return 0===t?7:t}function GE(e,t){return gE(IO.count(JO(e)-1,e),t,2)}function YE(e){var t=e.getDay();return t>=4||0===t?FO(e):FO.ceil(e)}function XE(e,t){return e=YE(e),gE(FO.count(JO(e),e)+(4===JO(e).getDay()),t,2)}function JE(e){return e.getDay()}function QE(e,t){return gE(RO.count(JO(e)-1,e),t,2)}function ej(e,t){return gE(e.getFullYear()%100,t,2)}function tj(e,t){return gE((e=YE(e)).getFullYear()%100,t,2)}function nj(e,t){return gE(e.getFullYear()%1e4,t,4)}function rj(e,t){var n=e.getDay();return gE((e=n>=4||0===n?FO(e):FO.ceil(e)).getFullYear()%1e4,t,4)}function oj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gE(t/60|0,"0",2)+gE(t%60,"0",2)}function ij(e,t){return gE(e.getUTCDate(),t,2)}function aj(e,t){return gE(e.getUTCHours(),t,2)}function sj(e,t){return gE(e.getUTCHours()%12||12,t,2)}function cj(e,t){return gE(1+PO.count(QO(e),e),t,3)}function lj(e,t){return gE(e.getUTCMilliseconds(),t,3)}function uj(e,t){return lj(e,t)+"000"}function fj(e,t){return gE(e.getUTCMonth()+1,t,2)}function dj(e,t){return gE(e.getUTCMinutes(),t,2)}function pj(e,t){return gE(e.getUTCSeconds(),t,2)}function hj(e){var t=e.getUTCDay();return 0===t?7:t}function gj(e,t){return gE(KO.count(QO(e)-1,e),t,2)}function vj(e){var t=e.getUTCDay();return t>=4||0===t?qO(e):qO.ceil(e)}function yj(e,t){return e=vj(e),gE(qO.count(QO(e),e)+(4===QO(e).getUTCDay()),t,2)}function mj(e){return e.getUTCDay()}function bj(e,t){return gE(UO.count(QO(e)-1,e),t,2)}function wj(e,t){return gE(e.getUTCFullYear()%100,t,2)}function xj(e,t){return gE((e=vj(e)).getUTCFullYear()%100,t,2)}function Cj(e,t){return gE(e.getUTCFullYear()%1e4,t,4)}function _j(e,t){var n=e.getUTCDay();return gE((e=n>=4||0===n?qO(e):qO.ceil(e)).getUTCFullYear()%1e4,t,4)}function Sj(){return"+0000"}function kj(){return"%"}function Oj(e){return+e}function Ej(e){return Math.floor(+e/1e3)}function jj(e){return new Date(e)}function Aj(e){return e instanceof Date?+e:+new Date(+e)}function Tj(e,t,n,r,o,i,a,s,c,l){var u=Dk(),f=u.invert,d=u.domain,p=l(".%L"),h=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(e){return(c(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?v:r(e)<e?o(e)<e?y:m:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,Aj)):d().map(jj)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:l(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(Jk(n,e)):u},u.copy=function(){return Mk(u,Tj(e,t,n,r,o,i,a,s,c,l))},u}function Mj(){var e,t,n,r,o,i=0,a=1,s=Ek,c=!1;function l(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=u(Ck),l.rangeRound=u(_k),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function Pj(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Dj(){var e=dO(Mj());return e.copy=function(){return Pj(e,Dj()).exponent(e.exponent())},SS.apply(e,arguments)}function Lj(){var e,t,n,r,o,i,a,s=0,c=.5,l=1,u=1,f=Ek,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=Sk(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,l]=a,e=i(s=+s),t=i(c=+c),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,c,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(Ck),p.rangeRound=h(_k),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function Ij(){var e=dO(Lj());return e.copy=function(){return Pj(e,Ij()).exponent(e.exponent())},SS.apply(e,arguments)}!function(e){cE=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=yE(o),u=mE(o),f=yE(i),d=mE(i),p=yE(a),h=mE(a),g=yE(s),v=mE(s),y=yE(c),m=mE(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:FE,e:FE,f:UE,g:tj,G:rj,H:zE,I:HE,j:VE,L:KE,m:$E,M:WE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Oj,s:Ej,S:qE,u:ZE,U:GE,V:XE,w:JE,W:QE,x:null,X:null,y:ej,Y:nj,Z:oj,"%":kj},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:ij,e:ij,f:uj,g:xj,G:_j,H:aj,I:sj,j:cj,L:lj,m:fj,M:dj,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Oj,s:Ej,S:pj,u:hj,U:gj,V:yj,w:mj,W:bj,x:null,X:null,y:wj,Y:Cj,Z:Sj,"%":kj},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:AE,e:AE,f:IE,g:kE,G:SE,H:ME,I:ME,j:TE,L:LE,m:jE,M:PE,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:EE,Q:NE,s:BE,S:DE,u:wE,U:xE,V:CE,w:bE,W:_E,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:kE,Y:SE,Z:OE,"%":RE};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=fE[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function _(e,t){return function(n){var r,o,i=sE(1900,void 0,1);if(S(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=aE(sE(i.y,0,1))).getUTCDay(),r=o>4||0===o?UO.ceil(r):UO(r),r=PO.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=iE(sE(i.y,0,1))).getDay(),r=o>4||0===o?RO.ceil(r):RO(r),r=MO.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?aE(sE(i.y,0,1)).getUTCDay():iE(sE(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,aE(i)):iE(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in fE?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}(e),lE=cE.format,cE.parse,uE=cE.utcFormat,cE.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Rj,Nj=Object.freeze({__proto__:null,scaleBand:ES,scaleDiverging:function e(){var t=Yk(Lj()(Ek));return t.copy=function(){return Pj(t,e())},SS.apply(t,arguments)},scaleDivergingLog:function e(){var t=iO(Lj()).domain([.1,1,10]);return t.copy=function(){return Pj(t,e()).base(t.base())},SS.apply(t,arguments)},scaleDivergingPow:Ij,scaleDivergingSqrt:function(){return Ij.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=cO(Lj());return t.copy=function(){return Pj(t,e()).constant(t.constant())},SS.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,kk),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,kk):[0,1],Yk(r)},scaleImplicit:kS,scaleLinear:Xk,scaleLog:function e(){const t=iO(Pk()).domain([1,10]);return t.copy=()=>Mk(t,e()).base(t.base()),_S.apply(t,arguments),t},scaleOrdinal:OS,scalePoint:AS,scalePow:pO,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=CS(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[aS(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(eS),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},_S.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[aS(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},_S.apply(Yk(s),arguments)},scaleRadial:function e(){var t,n=Dk(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(hO(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,kk)).map(hO)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},_S.apply(i,arguments),Yk(i)},scaleSequential:function e(){var t=Yk(Mj()(Ek));return t.copy=function(){return Pj(t,e())},SS.apply(t,arguments)},scaleSequentialLog:function e(){var t=iO(Mj()).domain([1,10]);return t.copy=function(){return Pj(t,e()).base(t.base())},SS.apply(t,arguments)},scaleSequentialPow:Dj,scaleSequentialQuantile:function e(){var t=[],n=Ek;function r(e){if(null!=e&&!isNaN(e=+e))return n((aS(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(eS),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return bS(e);if(t>=1)return mS(e);var r,o=(r-1)*t,i=Math.floor(o),a=mS(wS(e,i).subarray(0,i+1));return a+(bS(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},SS.apply(r,arguments)},scaleSequentialSqrt:function(){return Dj.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=cO(Mj());return t.copy=function(){return Pj(t,e()).constant(t.constant())},SS.apply(t,arguments)},scaleSqrt:function(){return pO.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=cO(Pk());return t.copy=function(){return Mk(t,e()).constant(t.constant())},_S.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[aS(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},_S.apply(i,arguments)},scaleTime:function(){return _S.apply(Tj(rE,oE,JO,YO,IO,MO,AO,EO,OO,lE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return _S.apply(Tj(tE,nE,QO,XO,KO,PO,TO,jO,OO,uE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Gk}),Bj=1e9,Fj=!0,zj="[DecimalError] ",Hj=zj+"Invalid argument: ",Vj=zj+"Exponent out of range: ",Kj=Math.floor,Uj=Math.pow,$j=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Wj=1e7,qj=7,Zj=9007199254740991,Gj=Kj(Zj/qj),Yj={};function Xj(e,t){var n,r,o,i,a,s,c,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Fj?sA(t,f):t;if(c=e.d,l=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(f/qj))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/Wj|0,c[i]%=Wj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,Fj?sA(t,f):t}function Jj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Hj+e)}function Qj(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=qj-r.length)&&(i+=oA(n)),i+=r;a=e[t],(n=qj-(r=a+"").length)&&(i+=oA(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Yj.absoluteValue=Yj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Yj.comparedTo=Yj.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},Yj.decimalPlaces=Yj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*qj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Yj.dividedBy=Yj.div=function(e){return eA(this,new this.constructor(e))},Yj.dividedToIntegerBy=Yj.idiv=function(e){var t=this.constructor;return sA(eA(this,new t(e),0,1),t.precision)},Yj.equals=Yj.eq=function(e){return!this.cmp(e)},Yj.exponent=function(){return nA(this)},Yj.greaterThan=Yj.gt=function(e){return this.cmp(e)>0},Yj.greaterThanOrEqualTo=Yj.gte=function(e){return this.cmp(e)>=0},Yj.isInteger=Yj.isint=function(){return this.e>this.d.length-2},Yj.isNegative=Yj.isneg=function(){return this.s<0},Yj.isPositive=Yj.ispos=function(){return this.s>0},Yj.isZero=function(){return 0===this.s},Yj.lessThan=Yj.lt=function(e){return this.cmp(e)<0},Yj.lessThanOrEqualTo=Yj.lte=function(e){return this.cmp(e)<1},Yj.logarithm=Yj.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Rj))throw Error(zj+"NaN");if(n.s<1)throw Error(zj+(n.s?"NaN":"-Infinity"));return n.eq(Rj)?new r(0):(Fj=!1,t=eA(iA(n,i),iA(e,i),i),Fj=!0,sA(t,o))},Yj.minus=Yj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cA(t,e):Xj(t,(e.s=-e.s,e))},Yj.modulo=Yj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(zj+"NaN");return n.s?(Fj=!1,t=eA(n,e,0,1).times(e),Fj=!0,n.minus(t)):sA(new r(n),o)},Yj.naturalExponential=Yj.exp=function(){return tA(this)},Yj.naturalLogarithm=Yj.ln=function(){return iA(this)},Yj.negated=Yj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Yj.plus=Yj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Xj(t,e):cA(t,(e.s=-e.s,e))},Yj.precision=Yj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Hj+e);if(t=nA(o)+1,n=(r=o.d.length-1)*qj+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Yj.squareRoot=Yj.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zj+"NaN")}for(e=nA(s),Fj=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=Qj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Kj((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(eA(s,i,a+2)).times(.5),Qj(i.d).slice(0,a)===(t=Qj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(sA(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return Fj=!0,sA(r,n)},Yj.times=Yj.mul=function(e){var t,n,r,o,i,a,s,c,l,u=this,f=u.constructor,d=u.d,p=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(c=d.length)<(l=p.length)&&(i=d,d=p,p=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%Wj|0,t=s/Wj|0;i[o]=(i[o]+t)%Wj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Fj?sA(e,f.precision):e},Yj.toDecimalPlaces=Yj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Jj(e,0,Bj),void 0===t?t=r.rounding:Jj(t,0,8),sA(n,e+nA(n)+1,t))},Yj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=lA(r,!0):(Jj(e,0,Bj),void 0===t?t=o.rounding:Jj(t,0,8),n=lA(r=sA(new o(r),e+1,t),!0,e+1)),n},Yj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?lA(o):(Jj(e,0,Bj),void 0===t?t=i.rounding:Jj(t,0,8),n=lA((r=sA(new i(o),e+nA(o)+1,t)).abs(),!1,e+nA(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Yj.toInteger=Yj.toint=function(){var e=this,t=e.constructor;return sA(new t(e),nA(e)+1,t.rounding)},Yj.toNumber=function(){return+this},Yj.toPower=Yj.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(Rj);if(!(s=new c(s)).s){if(e.s<1)throw Error(zj+"Infinity");return s}if(s.eq(Rj))return s;if(r=c.precision,e.eq(Rj))return sA(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=l<0?-l:l)<=Zj){for(o=new c(Rj),t=Math.ceil(r/qj+4),Fj=!1;n%2&&uA((o=o.times(s)).d,t),0!==(n=Kj(n/2));)uA((s=s.times(s)).d,t);return Fj=!0,e.s<0?new c(Rj).div(o):sA(o,r)}}else if(i<0)throw Error(zj+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Fj=!1,o=e.times(iA(s,r+12)),Fj=!0,(o=tA(o)).s=i,o},Yj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=lA(o,(n=nA(o))<=i.toExpNeg||n>=i.toExpPos):(Jj(e,1,Bj),void 0===t?t=i.rounding:Jj(t,0,8),r=lA(o=sA(new i(o),e,t),e<=(n=nA(o))||n<=i.toExpNeg,e)),r},Yj.toSignificantDigits=Yj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Jj(e,1,Bj),void 0===t?t=n.rounding:Jj(t,0,8)),sA(new n(this),e,t)},Yj.toString=Yj.valueOf=Yj.val=Yj.toJSON=Yj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=nA(e),n=e.constructor;return lA(e,t<=n.toExpNeg||t>=n.toExpPos)};var eA=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%Wj|0,r=n/Wj|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*Wj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,l,u,f,d,p,h,g,v,y,m,b,w,x,C,_,S,k=r.constructor,O=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new k(r);if(!o.s)throw Error(zj+"Division by zero");for(c=r.e-o.e,_=j.length,x=E.length,h=(p=new k(O)).d=[],l=0;j[l]==(E[l]||0);)++l;if(j[l]>(E[l]||0)&&--c,(m=null==i?i=k.precision:a?i+(nA(r)-nA(o))+1:i)<0)return new k(0);if(m=m/qj+2|0,l=0,1==_)for(u=0,j=j[0],m++;(l<x||u)&&m--;l++)b=u*Wj+(E[l]||0),h[l]=b/j|0,u=b%j|0;else{for((u=Wj/(j[0]+1)|0)>1&&(j=e(j,u),E=e(E,u),_=j.length,x=E.length),w=_,v=(g=E.slice(0,_)).length;v<_;)g[v++]=0;(S=j.slice()).unshift(0),C=j[0],j[1]>=Wj/2&&++C;do{u=0,(s=t(j,g,_,v))<0?(y=g[0],_!=v&&(y=y*Wj+(g[1]||0)),(u=y/C|0)>1?(u>=Wj&&(u=Wj-1),1==(s=t(f=e(j,u),g,d=f.length,v=g.length))&&(u--,n(f,_<d?S:j,d))):(0==u&&(s=u=1),f=j.slice()),(d=f.length)<v&&f.unshift(0),n(g,f,v),-1==s&&(s=t(j,g,_,v=g.length))<1&&(u++,n(g,_<v?S:j,v)),v=g.length):0===s&&(u++,g=[0]),h[l++]=u,s&&g[0]?g[v++]=E[w]||0:(g=[E[w]],v=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=c,sA(p,a?i+nA(p)+1:i)}}();function tA(e,t){var n,r,o,i,a,s=0,c=0,l=e.constructor,u=l.precision;if(nA(e)>16)throw Error(Vj+nA(e));if(!e.s)return new l(Rj);for(null==t?(Fj=!1,a=u):a=t,i=new l(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(Uj(2,c))/Math.LN10*2+5|0,n=r=o=new l(Rj),l.precision=a;;){if(r=sA(r.times(e),a),n=n.times(++s),Qj((i=o.plus(eA(r,n,a))).d).slice(0,a)===Qj(o.d).slice(0,a)){for(;c--;)o=sA(o.times(o),a);return l.precision=u,null==t?(Fj=!0,sA(o,u)):o}o=i}}function nA(e){for(var t=e.e*qj,n=e.d[0];n>=10;n/=10)t++;return t}function rA(e,t,n){if(t>e.LN10.sd())throw Fj=!0,n&&(e.precision=n),Error(zj+"LN10 precision limit exceeded");return sA(new e(e.LN10),t)}function oA(e){for(var t="";e--;)t+="0";return t}function iA(e,t){var n,r,o,i,a,s,c,l,u,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(zj+(d.s?"NaN":"-Infinity"));if(d.eq(Rj))return new h(0);if(null==t?(Fj=!1,l=g):l=t,d.eq(10))return null==t&&(Fj=!0),rA(h,l);if(l+=10,h.precision=l,r=(n=Qj(p)).charAt(0),i=nA(d),!(Math.abs(i)<15e14))return c=rA(h,l+2,g).times(i+""),d=iA(new h(r+"."+n.slice(1)),l-10).plus(c),h.precision=g,null==t?(Fj=!0,sA(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Qj((d=d.times(e)).d)).charAt(0),f++;for(i=nA(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=eA(d.minus(Rj),d.plus(Rj),l),u=sA(d.times(d),l),o=3;;){if(a=sA(a.times(u),l),Qj((c=s.plus(eA(a,new h(o),l))).d).slice(0,l)===Qj(s.d).slice(0,l))return s=s.times(2),0!==i&&(s=s.plus(rA(h,l+2,g).times(i+""))),s=eA(s,new h(f),l),h.precision=g,null==t?(Fj=!0,sA(s,g)):s;s=c,o+=2}}function aA(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=Kj(n/qj),e.d=[],r=(n+1)%qj,n<0&&(r+=qj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=qj;r<o;)e.d.push(+t.slice(r,r+=qj));t=t.slice(r),r=qj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Fj&&(e.e>Gj||e.e<-Gj))throw Error(Vj+n)}else e.s=0,e.e=0,e.d=[0];return e}function sA(e,t,n){var r,o,i,a,s,c,l,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=qj,o=t,l=f[u=0];else{if((u=Math.ceil((r+1)/qj))>=(i=f.length))return e;for(l=i=f[u],a=1;i>=10;i/=10)a++;o=(r%=qj)-qj+a}if(void 0!==n&&(s=l/(i=Uj(10,a-o-1))%10|0,c=t<0||void 0!==f[u+1]||l%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?l/Uj(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=nA(e),f.length=1,t=t-i-1,f[0]=Uj(10,(qj-t%qj)%qj),e.e=Kj(-t/qj)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,i=1,u--):(f.length=u+1,i=Uj(10,qj-r),f[u]=o>0?(l/Uj(10,a-o)%Uj(10,o)|0)*i:0),c)for(;;){if(0==u){(f[0]+=i)==Wj&&(f[0]=1,++e.e);break}if(f[u]+=i,f[u]!=Wj)break;f[u--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(Fj&&(e.e>Gj||e.e<-Gj))throw Error(Vj+nA(e));return e}function cA(e,t){var n,r,o,i,a,s,c,l,u,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fj?sA(t,p):t;if(c=e.d,f=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((u=a<0)?(n=c,a=-a,s=f.length):(n=f,r=l,s=c.length),a>(o=Math.max(Math.ceil(p/qj),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){u=c[o]<f[o];break}a=0}for(u&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=Wj-1;--c[i],c[o]+=Wj}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,Fj?sA(t,p):t):new d(0)}function lA(e,t,n){var r,o=nA(e),i=Qj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+oA(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+oA(-o-1)+i,n&&(r=n-a)>0&&(i+=oA(r))):o>=a?(i+=oA(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+oA(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=oA(r))),e.s<0?"-"+i:i}function uA(e,t){if(e.length>t)return e.length=t,!0}function fA(e){if(!e||"object"!=typeof e)throw Error(zj+"Object expected");var t,n,r,o=["precision",1,Bj,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(Kj(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Hj+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Hj+n+": "+r);this[n]=new this(r)}return this}var dA=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Hj+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):aA(t,e.toString())}if("string"!=typeof e)throw Error(Hj+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!$j.test(e))throw Error(Hj+e);aA(t,e)}if(i.prototype=Yj,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=fA,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Rj=new dA(1);var pA=dA;function hA(e){return function(e){if(Array.isArray(e))return gA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vA=function(e){return e},yA={"@@functional/placeholder":!0},mA=function(e){return e===yA},bA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&mA(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},wA=function e(t,n){return 1===t?n:bA((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==yA})).length;return a>=t?n.apply(void 0,o):e(t-a,bA((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return mA(e)?t.shift():e}));return n.apply(void 0,hA(i).concat(t))})))}))},xA=function(e){return wA(e.length,e)},CA=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},_A=xA((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),SA=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return vA;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},kA=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},OA=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var EA=xA((function(e,t,n){var r=+e;return r+n*(+t-r)})),jA=xA((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),AA=xA((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),TA={rangeStep:function(e,t,n){for(var r=new pA(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new pA(e).abs().log(10).toNumber())+1},interpolateNumber:EA,uninterpolateNumber:jA,uninterpolateTruncation:AA};function MA(e){return function(e){if(Array.isArray(e))return LA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||DA(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||DA(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DA(e,t){if(e){if("string"==typeof e)return LA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LA(e,t):void 0}}function LA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IA(e){var t=PA(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function RA(e,t,n){if(e.lte(0))return new pA(0);var r=TA.getDigitCount(e.toNumber()),o=new pA(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new pA(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new pA(Math.ceil(s))}function NA(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new pA(0),tickMin:new pA(0),tickMax:new pA(0)};var i,a=RA(new pA(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new pA(0):(i=new pA(e).add(t).div(2)).sub(new pA(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new pA(t).sub(i).div(a).toNumber()),l=s+c+1;return l>n?NA(e,t,n,r,o+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:i.sub(new pA(s).mul(a)),tickMax:i.add(new pA(c).mul(a))})}var BA=OA((function(e){var t=PA(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=PA(IA([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(MA(CA(0,o-1).map((function(){return 1/0})))):[].concat(MA(CA(0,o-1).map((function(){return-1/0}))),[l]);return n>r?kA(u):u}if(c===l)return function(e,t,n){var r=1,o=new pA(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new pA(10).pow(TA.getDigitCount(e)-1),o=new pA(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new pA(Math.floor(e)))}else 0===e?o=new pA(Math.floor((t-1)/2)):n||(o=new pA(Math.floor(e)));var a=Math.floor((t-1)/2),s=SA(_A((function(e){return o.add(new pA(e-a).mul(r)).toNumber()})),CA);return s(0,t)}(c,o,i);var f=NA(c,l,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=TA.rangeStep(p,h.add(new pA(.1).mul(d)),d);return n>r?kA(g):g})),FA=OA((function(e,t){var n=PA(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=PA(IA([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var l=Math.max(t,2),u=RA(new pA(c).sub(s).div(l-1),i,0),f=[].concat(MA(TA.rangeStep(new pA(s),new pA(c).sub(new pA(.99).mul(u)),u)),[c]);return r>o?kA(f):f})),zA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function HA(){return HA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HA.apply(this,arguments)}function VA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return KA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KA(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $A(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=UA(e,zA),f=ld(u),d=a.map((function(e,a){var u=s(e,i),d=u.x,p=u.y,h=u.value,g=u.errorVal;if(!g)return null;var v,y,m=[];if(Array.isArray(g)){var b=VA(g,2);v=b[0],y=b[1]}else v=y=g;if("vertical"===r){var w=c.scale,x=p+n,C=x+o,_=x-o,S=w(h-v),k=w(h+y);m.push({x1:k,y1:C,x2:k,y2:_}),m.push({x1:S,y1:x,x2:k,y2:x}),m.push({x1:S,y1:C,x2:S,y2:_})}else if("horizontal"===r){var O=l.scale,E=d+n,j=E-o,A=E+o,T=O(h-v),M=O(h+y);m.push({x1:j,y1:M,x2:A,y2:M}),m.push({x1:E,y1:T,x2:E,y2:M}),m.push({x1:j,y1:T,x2:A,y2:T})}return t.createElement(wd,HA({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",HA({},e,{key:"line-".concat(n)}))})))}));return t.createElement(wd,{className:"recharts-errorBars"},d)}function WA(e){return WA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WA(e)}function qA(e){return function(e){if(Array.isArray(e))return ZA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ZA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==WA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==WA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===WA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(e,t,n){return wf(e)||wf(t)?n:If(t)?mf(e,t,n):al(t)?t(e):n}function QA(e,t,n,r){var o=Q_(e,(function(e){return JA(e,t)}));if("number"===n){var i=o.filter((function(e){return Lf(e)||parseFloat(e)}));return i.length?[W_(i),z_(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!wf(e)})):o).map((function(e){return If(e)||e instanceof Date?e:""}))}$A.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},$A.displayName="ErrorBar";var eT=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},tT=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=ad(n,wm);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:eT(t),value:o||r,payload:t.props}})),YA(YA(YA({},a.props),wm.getWithHeight(a,o)),{},{payload:t,item:a})):null},nT=function(e,t,n,r,o){var i=id(t.props.children,$A).filter((function(e){return function(e,t,n){return!!wf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=JA(t,n,0),o=cl(r)?[W_(r),z_(r)]:[r,r],i=a.reduce((function(e,n){var r=JA(t,n,0),i=o[0]-Math.abs(cl(r)?r[0]:r),a=o[1]+Math.abs(cl(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},rT=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&nT(e,t,i,r)||QA(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},oT=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},iT=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},aT=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Pf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Mf(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},sT=function(e,t,n){var r;return al(n)?r=n:al(t)&&(r=t),al(e)||r?function(t,n,o,i){al(e)&&e(t,n,o,i),al(r)&&r(t,n,o,i)}:null},cT=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:ES(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Xk(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:AS(),realScaleType:"point"}:"category"===o?{scale:ES(),realScaleType:"band"}:{scale:Xk(),realScaleType:"linear"};if(pl(r)){var s="scale".concat(zv(r));return{scale:(Nj[s]||AS)(),realScaleType:Nj[s]?s:"point"}}return al(r)?{scale:r}:{scale:AS(),realScaleType:"point"}},lT=1e-4,uT=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-lT,i=Math.max(r[0],r[1])+lT,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},fT={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Mf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Hy(e,t)}},none:Hy,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}Hy(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,Hy(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Mf(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},dT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Hv([]),t=Vy,n=Hy,r=Ky;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Uy),c=s.length,l=-1;for(const e of o)for(i=0,++l;i<c;++i)(s[i][l]=[0,+r(e,s[i].key,l,o)]).data=e;for(i=0,a=ey(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Hv(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Hv(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Vy:"function"==typeof e?e:Hv(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Hy:e,o):n},o}().keys(r).value((function(e,t){return+JA(e,t,0)})).order(Vy).offset(fT[n]);return o(e)},pT=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var l=BA(c,o,a);return e.domain([W_(l),z_(l)]),{niceTicks:l}}if(o&&"number"===r){var u=e.domain();return{niceTicks:FA(u,o,a)}}return null},hT=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!wf(o[t.dataKey])){var s=Hf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=JA(o,wf(a)?t.dataKey:a);return wf(c)?null:t.scale(c)},gT=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=JA(i,t.dataKey,t.domain[a]);return wf(s)?null:t.scale(s)-o/2+r},vT=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[W_(t.concat([e[0]]).filter(Lf)),z_(t.concat([e[1]]).filter(Lf))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},yT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bT=function(e,t,n){if(al(e))return e(t,n);if(!cl(e))return t;var r=[];if(Lf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(yT.test(e[0])){var o=+yT.exec(e[0])[1];r[0]=t[0]-o}else al(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Lf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(mT.test(e[1])){var i=+mT.exec(e[1])[1];r[1]=t[1]+i}else al(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},wT=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=_x(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},xT=function(e,t,n){return e&&e.length?P_(e,mf(n,"type.defaultProps.domain"))?t:e:t},CT=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return YA(YA({},ld(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:eT(e),value:JA(t,r),type:s,payload:t,chartType:c})};function _T(e){return _T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_T(e)}function ST(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(n),!0).forEach((function(t){OT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_T(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jT(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var AT=Math.PI/180,TT=function(e){return 180*e/Math.PI},MT=function(e,t,n,r){return{x:e+Math.cos(-AT*r)*n,y:t+Math.sin(-AT*r)*n}},PT=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},DT=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:TT(c),angleInRadian:c}},LT=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},IT=function(e,t){var n=e.x,r=e.y,o=DT({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=u.startAngle,d=u.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?kT(kT({},t),{},{radius:i,angle:LT(p,t)}):null};function RT(e){return RT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RT(e)}function NT(e){return function(e){if(Array.isArray(e))return BT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return BT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FT(Object(n),!0).forEach((function(t){HT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VT(){return VT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VT.apply(this,arguments)}var KT=function(e){var t=e.value,n=e.formatter,r=wf(e.children)?t:e.children;return al(n)?n(r):r},UT=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,l=e.className,u=s,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,v=u.endAngle,y=u.clockWise,m=(p+h)/2,b=function(e,t){return Pf(t-e)*Math.min(Math.abs(t-e),360)}(g,v),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=y):"insideEnd"===a?(o=v-w*c,i=!y):"end"===a&&(o=v+w*c,i=y),i=b<=0?i:!i;var x=MT(f,d,m,o),C=MT(f,d,m,o+359*(i?1:-1)),_="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),S=wf(e.id)?Nf("recharts-radial-line-"):e.id;return t.createElement("text",VT({},r,{dominantBaseline:"central",className:Bc("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:S,d:_})),t.createElement("textPath",{xlinkHref:"#".concat(S)},n))},$T=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=MT(i,a,c+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=MT(i,a,(s+c)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},WT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,l=i.height,u=l>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,g=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===o)return zT(zT({},{x:a+c/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return zT(zT({},{x:a+c/2,y:s+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"};return zT(zT({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+c+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"};return zT(zT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:c,height:l}:{};return"insideLeft"===o?zT({x:a+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===o?zT({x:a+c-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?zT({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?zT({x:a+c/2,y:s+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?zT({x:a+g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideTopRight"===o?zT({x:a+c-g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===o?zT({x:a+g,y:s+l-f,textAnchor:y,verticalAnchor:d},w):"insideBottomRight"===o?zT({x:a+c-g,y:s+l-f,textAnchor:v,verticalAnchor:d},w):zc(o)&&(Lf(o.x)||Df(o.x))&&(Lf(o.y)||Df(o.y))?zT({x:a+Bf(o.x,c),y:s+Bf(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):zT({x:a+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},qT=function(e){return"cx"in e&&Lf(e.cx)};function ZT(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,l=void 0===c?"":c,u=e.textBreakAll;if(!r||wf(i)&&wf(a)&&!t.isValidElement(s)&&!al(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(al(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=KT(e);var f=qT(r),d=ld(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return UT(e,n,d);var p=f?$T(e):WT(e);return t.createElement(T_,VT({className:Bc("recharts-label",l)},d,p,{breakAll:u}),n)}ZT.displayName="Label",ZT.defaultProps={offset:5};var GT=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Lf(h)&&Lf(g)){if(Lf(u)&&Lf(f))return{x:u,y:f,width:h,height:g};if(Lf(d)&&Lf(p))return{x:d,y:p,width:h,height:g}}return Lf(u)&&Lf(f)?{x:u,y:f,width:0,height:0}:Lf(t)&&Lf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};ZT.parseViewBox=GT,ZT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=GT(e),a=id(o,ZT).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(ZT,{key:"label-implicit",viewBox:n}):If(e)?t.createElement(ZT,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===ZT?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(ZT,{key:"label-implicit",content:e,viewBox:n}):al(e)?t.createElement(ZT,{key:"label-implicit",content:e,viewBox:n}):zc(e)?t.createElement(ZT,VT({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(NT(a))};var YT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},XT=ct(YT);function JT(e){return JT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JT(e)}var QT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function eM(e){return function(e){if(Array.isArray(e))return tM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nM(){return nM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nM.apply(this,arguments)}function rM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rM(Object(n),!0).forEach((function(t){iM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==JT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sM={valueAccessor:function(e){return cl(e.value)?XT(e.value):e.value}};function cM(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=aM(e,QT);return n&&n.length?t.createElement(wd,{className:"recharts-label-list"},n.map((function(e,n){var l=wf(o)?r(e,n):JA(e&&e.payload,o),u=wf(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(ZT,nM({},ld(e,!0),c,u,{parentViewBox:e.parentViewBox,index:n,value:l,textBreakAll:s,viewBox:ZT.parseViewBox(wf(i)?e:oM(oM({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function lM(){return lM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lM.apply(this,arguments)}cM.displayName="LabelList",cM.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=id(e.children,cM).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(cM,{key:"labelList-implicit",data:n}):t.isValidElement(e)||al(e)?t.createElement(cM,{key:"labelList-implicit",data:n,content:e}):zc(e)?t.createElement(cM,nM({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(eM(o)):o},cM.defaultProps=sM;var uM=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(a?1:-1)+r,u=Math.asin(s/l)/AT,f=c?o:o+i*u,d=c?o-i*u:o;return{center:MT(t,n,l,f),circleTangency:MT(t,n,r,f),lineTangency:MT(t,n,l*Math.cos(u*AT),d),theta:u}},fM=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Pf(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=MT(t,n,o,i),l=MT(t,n,o,s),u="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=MT(t,n,r,i),d=MT(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},dM=function(e){var n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,f=e.className;if(i<o||l===u)return null;var d,p=Bc("recharts-sector",f),h=i-o,g=Bf(a,h,0,!0);return d=g>0&&Math.abs(l-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=Pf(l-c),f=uM({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=uM({cx:t,cy:n,radius:o,angle:l,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=g.circleTangency,y=g.lineTangency,m=g.theta,b=s?Math.abs(c-l):Math.abs(c-l)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):fM({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var x=uM({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,_=x.lineTangency,S=x.theta,k=uM({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),O=k.circleTangency,E=k.lineTangency,j=k.theta,A=s?Math.abs(c-l):Math.abs(c-l)-S-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):fM({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:l,endAngle:u}),t.createElement("path",lM({},ld(e,!0),{className:p,d:d,role:"img"}))};function pM(e){return pM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pM(e)}function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(n),!0).forEach((function(t){yM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}dM.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var mM={curveBasisClosed:function(e){return new jy(e)},curveBasisOpen:function(e){return new Ay(e)},curveBasis:function(e){return new Ey(e)},curveBumpX:function(e){return new sy(e,!0)},curveBumpY:function(e){return new sy(e,!1)},curveLinearClosed:function(e){return new Ty(e)},curveLinear:ny,curveMonotoneX:function(e){return new Iy(e)},curveMonotoneY:function(e){return new Ry(e)},curveNatural:function(e){return new By(e)},curveStep:function(e){return new zy(e,.5)},curveStepAfter:function(e){return new zy(e,1)},curveStepBefore:function(e){return new zy(e,0)}},bM=function(e){return e.x===+e.x&&e.y===+e.y},wM=function(e){return e.x},xM=function(e){return e.y},CM=function(e){var t,n=e.type,r=e.points,o=e.baseLine,i=e.layout,a=e.connectNulls,s=function(e,t){if(al(e))return e;var n="curve".concat(zv(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?mM[n]||ny:mM["".concat(n).concat("vertical"===t?"Y":"X")]}(n,i),c=a?r.filter((function(e){return bM(e)})):r;if(cl(o)){var l=a?o.filter((function(e){return bM(e)})):o,u=c.map((function(e,t){return vM(vM({},e),{},{base:l[t]})}));return(t="vertical"===i?ay().y(xM).x1(wM).x0((function(e){return e.base.x})):ay().x(wM).y1(xM).y0((function(e){return e.base.y}))).defined(bM).curve(s),t(u)}return(t="vertical"===i&&Lf(o)?ay().y(xM).x1(wM).x0(o):Lf(o)?ay().x(wM).y1(xM).y0(o):iy().x(wM).y(xM)).defined(bM).curve(s),t(c)},_M=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?CM(e):o;return t.createElement("path",hM({},ld(e),Zf(e),{className:Bc("recharts-curve",n),d:a,ref:i}))};function SM(){return SM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SM.apply(this,arguments)}function kM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}_M.defaultProps={type:"linear",points:[],connectNulls:!1};var EM=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},jM=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=l&&r>=u&&r<=f}return!1},AM=function(e){var n=t.useRef(),r=kM(t.useState(-1),2),o=r[0],i=r[1];t.useLayoutEffect((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}}),[]);var a=e.x,s=e.y,c=e.width,l=e.height,u=e.radius,f=e.className,d=e.animationEasing,p=e.animationDuration,h=e.animationBegin,g=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||s!==+s||c!==+c||l!==+l||0===c||0===l)return null;var y=Bc("recharts-rectangle",f);return v?t.createElement(Cw,{canBegin:o>0,from:{width:c,height:l,x:a,y:s},to:{width:c,height:l,x:a,y:s},duration:p,animationEasing:d,isActive:v},(function(r){var i=r.width,a=r.height,s=r.x,c=r.y;return t.createElement(Cw,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:g,easing:d},t.createElement("path",SM({},ld(e,!0),{className:y,d:EM(s,c,i,a,u),ref:n})))})):t.createElement("path",SM({},ld(e,!0),{className:y,d:EM(a,s,c,l,u)}))};AM.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var TM=["points","className","baseLinePoints","connectNulls"];function MM(){return MM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MM.apply(this,arguments)}function PM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DM(e){return function(e){if(Array.isArray(e))return LM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return LM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IM=function(e){return e&&e.x===+e.x&&e.y===+e.y},RM=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){IM(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),IM(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(DM(e),DM(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},NM=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=PM(e,TM);if(!n||!n.length)return null;var s=Bc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=RM(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(RM(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",MM({},ld(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),c?t.createElement("path",MM({},ld(a,!0),{fill:"none",d:RM(n,i)})):null,c?t.createElement("path",MM({},ld(a,!0),{fill:"none",d:RM(o,i)})):null)}var u=RM(n,i);return t.createElement("path",MM({},ld(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:s,d:u}))};function BM(){return BM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BM.apply(this,arguments)}var FM=function(e){var n=e.cx,r=e.cy,o=e.r,i=e.className,a=Bc("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",BM({},ld(e),Zf(e),{className:a,cx:n,cy:r,r:o})):null};function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zM.apply(this,arguments)}var HM=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},VM=function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.top,s=e.left,c=e.className;return Lf(n)&&Lf(r)&&Lf(o)&&Lf(i)&&Lf(a)&&Lf(s)?t.createElement("path",zM({},ld(e,!0),{className:Bc("recharts-cross",c),d:HM(n,r,o,i,a,s)})):null};VM.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var KM=L_,UM=Vg,$M=H_;var WM=function(e,t){return e&&e.length?KM(e,UM(t),$M):void 0},qM=ct(WM),ZM=L_,GM=I_,YM=Vg;var XM=function(e,t){return e&&e.length?ZM(e,YM(t),GM):void 0},JM=ct(XM),QM=["cx","cy","angle","ticks","axisLine"],eP=["ticks","tick","angle","tickFormatter","stroke"];function tP(e){return tP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tP(e)}function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nP.apply(this,arguments)}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rP(Object(n),!0).forEach((function(t){uP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function aP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}function sP(e,t){return sP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sP(e,t)}function cP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lP(e);if(t){var o=lP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function lP(e){return lP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lP(e)}function uP(e,t,n){return(t=fP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){var t=function(e,t){if("object"!==tP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tP(t)?t:String(t)}var dP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sP(e,t)}(a,t.PureComponent);var n,r,o,i=cP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return MT(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=JM(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:qM(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=iP(e,QM),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=MT(n,r,c[0],o),u=MT(n,r,c[1],o),f=oP(oP(oP({},ld(s)),{},{fill:"none"},ld(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return t.createElement("line",nP({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,c=n.stroke,l=iP(n,eP),u=this.getTickTextAnchor(),f=ld(l),d=ld(o),p=r.map((function(n,r){var l=e.getTickValueCoord(n),p=oP(oP(oP(oP({textAnchor:u,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:r},l),{},{payload:n});return t.createElement(wd,nP({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Gf(e.props,n,r)),a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(wd,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),ZT.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(T_,nP({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&aP(n.prototype,r),o&&aP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pP(e){return pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pP(e)}function hP(){return hP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hP.apply(this,arguments)}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gP(Object(n),!0).forEach((function(t){xP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CP(r.key),r)}}function mP(e,t){return mP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mP(e,t)}function bP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wP(e);if(t){var o=wP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function wP(e){return wP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wP(e)}function xP(e,t,n){return(t=CP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CP(e){var t=function(e,t){if("object"!==pP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pP(t)?t:String(t)}uP(dP,"displayName","PolarRadiusAxis"),uP(dP,"axisType","radiusAxis"),uP(dP,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var _P=Math.PI/180,SP=1e-5,kP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mP(e,t)}(a,t.PureComponent);var n,r,o,i=bP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=MT(n,r,o,e.coordinate),c=MT(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*_P);return n>SP?"outer"===t?"start":"end":n<-SP?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=vP(vP({},ld(this.props)),{},{fill:"none"},ld(i));if("circle"===a)return t.createElement(FM,hP({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return MT(n,r,o,e.coordinate)}));return t.createElement(NM,hP({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,c=n.stroke,l=ld(this.props),u=ld(o),f=vP(vP({},l),{},{fill:"none"},ld(i)),d=r.map((function(n,r){var d=e.getTickLineCoord(n),p=vP(vP(vP({textAnchor:e.getTickTextAnchor(n)},l),{},{stroke:"none",fill:c},u),{},{index:r,payload:n,x:d.x2,y:d.y2});return t.createElement(wd,hP({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Gf(e.props,n,r)),i&&t.createElement("line",hP({className:"recharts-polar-angle-axis-tick-line"},f,d)),o&&a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(wd,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(T_,hP({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&yP(n.prototype,r),o&&yP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();xP(kP,"displayName","PolarAngleAxis"),xP(kP,"axisType","angleAxis"),xP(kP,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var OP=Zp(Object.getPrototypeOf,Object),EP=nl,jP=OP,AP=ll,TP=Function.prototype,MP=Object.prototype,PP=TP.toString,DP=MP.hasOwnProperty,LP=PP.call(Object);var IP=ct((function(e){if(!AP(e)||"[object Object]"!=EP(e))return!1;var t=jP(e);if(null===t)return!0;var n=DP.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&PP.call(n)==LP}));function RP(e){return RP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RP(e)}function NP(){return NP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NP.apply(this,arguments)}function BP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BP(Object(n),!0).forEach((function(t){$P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WP(r.key),r)}}function HP(e,t){return HP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HP(e,t)}function VP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=UP(e);if(t){var o=UP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return KP(e)}(this,n)}}function KP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UP(e){return UP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UP(e)}function $P(e,t,n){return(t=WP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WP(e){var t=function(e,t){if("object"!==RP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RP(t)?t:String(t)}var qP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HP(e,t)}(a,t.PureComponent);var n,r,o,i=VP(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),$P(KP(t=i.call(this,e)),"pieRef",null),$P(KP(t),"sectorRefs",[]),$P(KP(t),"id",Nf("recharts-pie-")),$P(KP(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),al(e)&&e()})),$P(KP(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),al(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,c=ld(this.props),l=ld(r),u=ld(o),f=r&&r.offsetRadius||20,d=e.map((function(e,n){var d=(e.startAngle+e.endAngle)/2,p=MT(e.cx,e.cy,e.outerRadius+f,d),h=FP(FP(FP(FP({},c),e),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(p.x,e.cx)},p),g=FP(FP(FP(FP({},c),e),{},{fill:"none",stroke:e.fill},u),{},{index:n,points:[MT(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),v=i;return wf(i)&&wf(s)?v="value":wf(i)&&(v=s),t.createElement(wd,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,JA(e,v)))}));return t.createElement(wd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,s=r.inactiveShape;return e.map((function(e,r){var c=s&&n.hasActiveIndex()?s:null,l=n.isActiveIndex(r)?o:c,u=FP(FP({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(wd,NP({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Gf(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(l,u))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(Cw,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?mf(e,"paddingAngle",0):0;if(n){var s=zf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=FP(FP({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var l=e.endAngle,f=e.startAngle,d=zf(0,l-f)(o),p=FP(FP({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(wd,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&P_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Lf(s)||!Lf(c)||!Lf(l)||!Lf(u))return null;var p=Bc("recharts-pie",i);return t.createElement(wd,{tabIndex:0,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),ZT.renderCallByParent(this.props,null,!1),(!f||d)&&cM.renderCallByParent(this.props,o,!1))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(_M,NP({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return al(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(T_,NP({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):IP(e)?t.createElement(dM,NP({tabIndex:-1},n,e)):t.createElement(dM,NP({tabIndex:-1},n))}}],r&&zP(n.prototype,r),o&&zP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();$P(qP,"displayName","Pie"),$P(qP,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Px.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),$P(qP,"parseDeltaAngle",(function(e,t){return Pf(t-e)*Math.min(Math.abs(t-e),360)})),$P(qP,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=ld(e.props),i=id(r,kC);return n&&n.length?n.map((function(e,t){return FP(FP(FP({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return FP(FP({},o),e.props)})):[]})),$P(qP,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=PT(o,i);return{cx:r+Bf(e.props.cx,o,o/2),cy:n+Bf(e.props.cy,i,i/2),innerRadius:Bf(e.props.innerRadius,a,0),outerRadius:Bf(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),$P(qP,"getComposedData",(function(e){var t=e.item,n=e.offset,r=qP.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,l=o.dataKey,u=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=qP.parseCoordinateOfPie(t,n),g=qP.parseDeltaAngle(a,s),v=Math.abs(g),y=l;wf(l)&&wf(f)?(wC(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):wf(l)&&(wC(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var m,b,w=r.filter((function(e){return 0!==JA(e,y,0)})).length,x=v-w*p-(v>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=JA(t,y,0);return e+(Lf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=JA(e,y,0),o=JA(e,u,t),s=(Lf(r)?r:0)/C,l=(n=t?b.endAngle+Pf(g)*c*(0!==r?1:0):a)+Pf(g)*((0!==r?p:0)+s*x),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:y,type:d}],w=MT(h.cx,h.cy,v,f);return b=FP(FP(FP({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},e),h),{},{value:JA(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:Pf(g)*c})})));return FP(FP({},h),{},{sectors:m,data:r})}));var ZP=Math.ceil,GP=Math.max;var YP=function(e,t,n,r){for(var o=-1,i=GP(ZP((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},XP=nC,JP=1/0;var QP=function(e){return e?(e=XP(e))===JP||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},eD=YP,tD=bx,nD=QP;var rD=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&tD(t,n,r)&&(n=r=void 0),t=nD(t),void 0===n?(n=t,t=0):n=nD(n),r=void 0===r?t<n?1:-1:nD(r),eD(t,n,r,e)}}());function oD(e){return oD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oD(e)}function iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iD(Object(n),!0).forEach((function(t){sD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sD(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==oD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oD(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cD=["Webkit","Moz","O","ms"];function lD(e){return lD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lD(e)}function uD(){return uD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uD.apply(this,arguments)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fD(Object(n),!0).forEach((function(t){mD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bD(r.key),r)}}function hD(e,t){return hD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hD(e,t)}function gD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yD(e);if(t){var o=yD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vD(e)}(this,n)}}function vD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yD(e){return yD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yD(e)}function mD(e,t,n){return(t=bD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bD(e){var t=function(e,t){if("object"!==lD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lD(t)?t:String(t)}var wD=function(e){return e.changedTouches&&!!e.changedTouches.length},xD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hD(e,t)}(a,t.PureComponent);var n,r,o,i=gD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),mD(vD(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),mD(vD(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),mD(vD(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),mD(vD(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),mD(vD(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),mD(vD(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),mD(vD(t),"handleSlideDragStart",(function(e){var n=wD(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(vD(t),"startX"),endX:t.handleTravellerDragStart.bind(vD(t),"endX")},t.state={},t}return n=a,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,c=Math.min(t,n),l=Math.max(t,n),u=a.getIndexInRange(r,c),f=a.getIndexInRange(r,l);return{startIndex:u-u%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=JA(n[e],o,e);return al(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,l=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=wD(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],c=this.props,l=c.x,u=c.width,f=c.travellerWidth,d=c.onChange,p=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+u-f-s):v<0&&(v=Math.max(v,l-s)),g[o]=s+v;var y=this.getIndex(g),m=y.startIndex,b=y.endIndex;this.setState((mD(t={},o,s+v),mD(t,"brushMoveStartX",e.pageX),t),(function(){var e;d&&(e=h.length-1,("startX"===o&&(i>a?m%p==0:b%p==0)||i<a&&b===e||"endX"===o&&(i>a?b%p==0:m%p==0)||i>a&&b===e)&&d(y))}))}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,l=t.Children.only(s);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,s=r.height,c=r.traveller,l=Math.max(e,this.props.x),u=dD(dD({},ld(this.props)),{},{x:l,y:o,width:i,height:s});return t.createElement(wd,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(c,u))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,l=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,l=c.startX,u=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(wd,{className:"recharts-brush-texts"},t.createElement(T_,uD({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(T_,uD({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving;if(!n||!n.length||!Lf(i)||!Lf(a)||!Lf(s)||!Lf(c)||s<=0||c<=0)return null;var v=Bc("recharts-brush",r),y=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=cD.reduce((function(e,r){return aD(aD({},e),{},sD({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(wd,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return dD({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=AS().domain(rD(0,s)).range([o,o+i-a]),l=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&pD(n.prototype,r),o&&pD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();mD(xD,"displayName","Brush"),mD(xD,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var CD=Iw;var _D=function(e,t){var n;return CD(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},SD=Bd,kD=Vg,OD=_D,ED=sl,jD=bx;var AD=function(e,t,n){var r=ED(e)?SD:OD;return n&&jD(e,t,n)&&(t=void 0),r(e,kD(t))},TD=ct(AD),MD=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var PD=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},DD=Iw;var LD=function(e,t){var n=!0;return DD(e,(function(e,r,o){return n=!!t(e,r,o)})),n},ID=PD,RD=LD,ND=Vg,BD=sl,FD=bx;var zD=function(e,t,n){var r=BD(e)?ID:RD;return n&&FD(e,t,n)&&(t=void 0),r(e,ND(t))},HD=ct(zD),VD=ix;var KD=function(e,t,n){"__proto__"==t&&VD?VD(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},UD=KD,$D=Pw,WD=Vg;var qD=function(e,t){var n={};return t=WD(t),$D(e,(function(e,r,o){UD(n,r,t(e,r,o))})),n},ZD=ct(qD),GD=["value","background"];function YD(e){return YD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YD(e)}function XD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JD(){return JD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JD.apply(this,arguments)}function QD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QD(Object(n),!0).forEach((function(t){aL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sL(r.key),r)}}function nL(e,t){return nL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nL(e,t)}function rL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iL(e);if(t){var o=iL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oL(e)}(this,n)}}function oL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iL(e){return iL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iL(e)}function aL(e,t,n){return(t=sL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sL(e){var t=function(e,t){if("object"!==YD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YD(t)?t:String(t)}var cL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nL(e,t)}(a,t.PureComponent);var n,r,o,i=rL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aL(oL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),aL(oL(e),"id",Nf("recharts-bar-")),aL(oL(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),aL(oL(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props.shape,o=ld(this.props);return e&&e.map((function(e,i){var s=eL(eL(eL({},o),e),{},{index:i});return t.createElement(wd,JD({className:"recharts-bar-rectangle"},Gf(n.props,e,i),{key:"rectangle-".concat(i)}),a.renderRectangle(r,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,l=n.animationId,u=this.state.prevData;return t.createElement(Cw,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=zf(n.x,e.x),a=zf(n.y,e.y),s=zf(n.width,e.width),c=zf(n.height,e.height);return eL(eL({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var l=zf(0,e.height)(i);return eL(eL({},e),{},{y:e.y+e.height-l,height:l})}var f=zf(0,e.width)(i);return eL(eL({},e),{},{width:f})}));return t.createElement(wd,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&P_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=ld(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=XD(t,GD);if(!o)return null;var s=eL(eL(eL(eL(eL({},i),{},{fill:"#eee"},o),n),Gf(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,$A);if(!c)return null;var l="vertical"===s?o[0].height/2:o[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:JA(e,t)}},f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,f,c.map((function(e,n){return t.cloneElement(e,{key:"error-bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Bc("recharts-bar",o),v=i&&i.allowDataOverflow,y=a&&a.allowDataOverflow,m=v||y,b=wf(p)?this.id:p;return t.createElement(wd,{className:g},v||y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:v?s:s-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,t.createElement(wd,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!f||h)&&cM.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(AM,n)}}],r&&tL(n.prototype,r),o&&tL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function lL(e){return lL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lL(e)}function uL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hL(r.key),r)}}function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fL(Object(n),!0).forEach((function(t){pL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pL(e,t,n){return(t=hL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e){var t=function(e,t){if("object"!==lL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lL(t)?t:String(t)}aL(cL,"displayName","Bar"),aL(cL,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Px.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),aL(cL,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,v=g.dataKey,y=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=l?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=id(y,kC),_=f.map((function(e,t){var r,f,d,g,y,b;if(l?r=function(e,t){if(!t||2!==t.length||!Lf(t[0])||!Lf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Lf(e[0])||e[0]<n)&&(o[0]=n),(!Lf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(l[u+t],w):(r=JA(e,v),cl(r)||(r=[x,r])),"horizontal"===h){var _,S=[a.scale(r[0]),a.scale(r[1])],k=S[0],O=S[1];f=gT({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=O?O:k)&&void 0!==_?_:void 0,g=p.size;var E=k-O;if(y=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(y)<Math.abs(m)){var j=Pf(y||m)*(Math.abs(m)-Math.abs(y));d-=j,y+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],M=A[1];if(f=T,d=gT({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=M-T,y=p.size,b={x:i.x,y:d,width:i.width,height:y},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=Pf(g||m)*(Math.abs(m)-Math.abs(g))}return eL(eL(eL({},e),{},{x:f,y:d,width:g,height:y,value:l?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[CT(n,e)],tooltipPosition:{x:f+g/2,y:d+y/2}})}));return eL({data:_,layout:h},d)}));var gL=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!ad(c,cL);return l.reduce((function(i,a){var c,l,d,p,h,g=t[a],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,C="".concat(v).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var _=y[1]-y[0],S=1/0,k=g.categoricalDomain.sort();k.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(k[t-1]||0),S))}));var O=S/_,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=O*E/2),"no-gap"===g.padding){var j=Bf(e.barCategoryGap,O*E),A=O*E/2;c=A-j-(A-j)/E*j}}l="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(l=[l[1],l[0]]);var T=cT(g,o,f),M=T.scale,P=T.realScaleType;M.domain(y).range(l),uT(M);var D=pT(M,dL(dL({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,d=n.left,p=u[C]-h*g.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,d=u[C]-h*g.width,p=n.top);var L=dL(dL(dL({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=wT(L,D),g.hide||"xAxis"!==r?g.hide||(u[C]+=(h?-1:1)*L.width):u[C]+=(h?-1:1)*L.height,dL(dL({},i),{},pL({},a,L))}),{})},vL=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},yL=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&uL(t.prototype,n),r&&uL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();pL(yL,"EPS",1e-4);var mL=function(e){var t=Object.keys(e).reduce((function(t,n){return dL(dL({},t),{},pL({},n,yL.create(e[n])))}),{});return dL(dL({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return ZD(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return HD(e,(function(e,n){return t[n].isInRange(e)}))}})};var bL=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)};function wL(e){return wL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wL(e)}function xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xL(Object(n),!0).forEach((function(t){_L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OL(){return OL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OL.apply(this,arguments)}function EL(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,l=e.alwaysShow,u=e.clipPathId;wC(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,c=i.width,l=i.height,u=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:u});if(MD(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+c,y:p},{x:a,y:p}];return"left"===d?h.reverse():h}if(t){var g=o.x,v=o.xAxis.orientation,y=e.x.apply(g,{position:u});if(MD(o,"discard")&&!e.x.isInRange(y))return null;var m=[{x:y,y:s+l},{x:y,y:s}];return"top"===v?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:u})}));return MD(o,"discard")&&TD(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(mL({x:i.scale,y:a.scale}),If(n),If(r),o&&2===o.length,e);if(!f)return null;var d=SL(f,2),p=d[0],h=p.x,g=p.y,v=d[1],y=v.x,m=v.y,b=CL(CL({clipPath:MD(e,"hidden")?"url(#".concat(u,")"):void 0},ld(e,!0)),{},{x1:h,y1:g,x2:y,y2:m});return t.createElement(wd,{className:Bc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement("line",OL({},n,{className:"recharts-reference-line-line"}))}(s,b),ZT.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return vL({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:y,y2:m})))}function jL(e){return jL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jL(e)}function AL(){return AL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AL.apply(this,arguments)}function TL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ML(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TL(Object(n),!0).forEach((function(t){PL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}EL.displayName="ReferenceLine",EL.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function DL(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=If(n),c=If(r);if(wC(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=mL({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return MD(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,h=ML(ML({clipPath:MD(e,"hidden")?"url(#".concat(a,")"):void 0},ld(e,!0)),{},{cx:u,cy:f});return t.createElement(wd,{className:Bc("recharts-reference-dot",p)},DL.renderDot(d,h),ZT.renderCallByParent(e,{x:u-o,y:f-o,width:2*o,height:2*o}))}function LL(e){return LL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LL(e)}function IL(){return IL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IL.apply(this,arguments)}function RL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RL(Object(n),!0).forEach((function(t){BL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==LL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}DL.displayName="ReferenceDot",DL.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},DL.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(FM,AL({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function FL(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;wC(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=If(n),u=If(r),f=If(o),d=If(i),p=e.shape;if(!(l||u||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,l=o.xAxis,u=o.yAxis;if(!l||!u)return null;var f=mL({x:l.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!MD(o,"discard")||f.isInRange(d)&&f.isInRange(p)?vL(d,p):null}(l,u,f,d,e);if(!h&&!p)return null;var g=MD(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(wd,{className:Bc("recharts-reference-area",a)},FL.renderRect(p,NL(NL({clipPath:g},ld(e,!0)),h)),ZT.renderCallByParent(e,h))}function zL(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function HL(e){return HL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HL(e)}function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VL(Object(n),!0).forEach((function(t){UL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==HL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $L(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return bL(r,n)}function WL(e,t){var n,r,o=e.angle,i=e.ticks,a=e.tickFormatter,s=e.viewBox,c=e.orientation,l=e.minTickGap,u=e.unit,f=e.fontSize,d=e.letterSpacing,p=s.x,h=s.y,g=s.width,v=s.height,y="top"===c||"bottom"===c?"width":"height",m=(i||[]).slice(),b=u&&"width"===y?b_(u,{fontSize:f,letterSpacing:d}):{width:0,height:0},w=m.length,x=w>=2?Pf(m[1].coordinate-m[0].coordinate):1;if(1===x?(n="width"===y?p:h,r="width"===y?p+g:h+v):(n="width"===y?p+g:h+v,r="width"===y?p:h),t){var C=i[w-1],_=al(a)?a(C.value,w-1):C.value,S="width"===y?$L(b_(_,{fontSize:f,letterSpacing:d}),b,o):b_(_,{fontSize:f,letterSpacing:d})[y],k=x*(C.coordinate+x*S/2-r);m[w-1]=C=KL(KL({},C),{},{tickCoord:k>0?C.coordinate-k*x:C.coordinate}),x*(C.tickCoord-x*S/2-n)>=0&&x*(C.tickCoord+x*S/2-r)<=0&&(r=C.tickCoord-x*(S/2+l),m[w-1]=KL(KL({},C),{},{isShow:!0}))}for(var O=t?w-1:w,E=0;E<O;E++){var j=m[E],A=al(a)?a(j.value,E):j.value,T="width"===y?$L(b_(A,{fontSize:f,letterSpacing:d}),b,o):b_(A,{fontSize:f,letterSpacing:d})[y];if(0===E){var M=x*(j.coordinate-x*T/2-n);m[E]=j=KL(KL({},j),{},{tickCoord:M<0?j.coordinate-M*x:j.coordinate})}else m[E]=j=KL(KL({},j),{},{tickCoord:j.coordinate});x*(j.tickCoord-x*T/2-n)>=0&&x*(j.tickCoord+x*T/2-r)<=0&&(n=j.tickCoord+x*(T/2+l),m[E]=KL(KL({},j),{},{isShow:!0}))}return m}function qL(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(Lf(c)||Px.isSsr)return function(e,t){return zL(e,t+1)}(o,"number"==typeof c&&Lf(c)?c:0);var d=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=zL(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=zL(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(d=WL({angle:f,ticks:o,tickFormatter:l,viewBox:i,orientation:s,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(d="preserveStart"===c||"preserveStartEnd"===c?WL({angle:f,ticks:o,tickFormatter:l,viewBox:i,orientation:s,minTickGap:a,unit:u,fontSize:t,letterSpacing:n},"preserveStartEnd"===c):function(e){var t,n,r=e.angle,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,l=e.unit,u=e.fontSize,f=e.letterSpacing,d=a.x,p=a.y,h=a.width,g=a.height,v="top"===s||"bottom"===s?"width":"height",y=l&&"width"===v?b_(l,{fontSize:u,letterSpacing:f}):{width:0,height:0},m=(o||[]).slice(),b=m.length,w=b>=2?Pf(m[1].coordinate-m[0].coordinate):1;1===w?(t="width"===v?d:p,n="width"===v?d+h:p+g):(t="width"===v?d+h:p+g,n="width"===v?d:p);for(var x=b-1;x>=0;x--){var C=m[x],_=al(i)?i(C.value,b-x-1):C.value,S="width"===v?$L(b_(_,{fontSize:u,letterSpacing:f}),y,r):b_(_,{fontSize:u,letterSpacing:f})[v];if(x===b-1){var k=w*(C.coordinate+w*S/2-n);m[x]=C=KL(KL({},C),{},{tickCoord:k>0?C.coordinate-k*w:C.coordinate})}else m[x]=C=KL(KL({},C),{},{tickCoord:C.coordinate});w*(C.tickCoord-w*S/2-t)>=0&&w*(C.tickCoord+w*S/2-n)<=0&&(n=C.tickCoord-w*(S/2+c),m[x]=KL(KL({},C),{},{isShow:!0}))}return m}({angle:f,ticks:o,tickFormatter:l,viewBox:i,orientation:s,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),d.filter((function(e){return e.isShow})))}FL.displayName="ReferenceArea",FL.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},FL.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(AM,IL({},n,{className:"recharts-reference-area-rect"}))};var ZL=["viewBox"],GL=["viewBox"],YL=["ticks"];function XL(e){return XL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XL(e)}function JL(){return JL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JL.apply(this,arguments)}function QL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QL(Object(n),!0).forEach((function(t){aI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sI(r.key),r)}}function rI(e,t){return rI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rI(e,t)}function oI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iI(e);if(t){var o=iI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function iI(e){return iI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iI(e)}function aI(e,t,n){return(t=sI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sI(e){var t=function(e,t){if("object"!==XL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XL(t)?t:String(t)}var cI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rI(e,t)}(a,t.Component);var n,r,o,i=oI(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=tI(e,ZL),o=this.props,i=o.viewBox,a=tI(o,GL);return!Vf(n,i)||!Vf(r,a)||!Vf(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,l=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,v=h?-1:1,y=e.tickSize||p,m=Lf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-v*y)-v*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*u)-v*y)-v*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*u)+v*y)+v*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+v*y)+v*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,l=eI(eI(eI({},ld(this.props)),ld(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);l=eI(eI({},l),{},{x1:n,y1:r+u*i,x2:n+o,y2:r+u*i})}else{var f=+("left"===a&&!s||"right"===a&&s);l=eI(eI({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",JL({},l,{className:Bc("recharts-cartesian-axis-line",mf(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,l=i.tick,u=i.tickFormatter,f=i.unit,d=qL(eI(eI({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=ld(this.props),v=ld(l),y=eI(eI({},g),{},{fill:"none"},ld(s)),m=d.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=eI(eI(eI(eI({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},v),m),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:u});return t.createElement(wd,JL({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Gf(o.props,e,n)),s&&t.createElement("line",JL({},y,i,{className:Bc("recharts-cartesian-axis-tick-line",mf(s,"className"))})),l&&a.renderTickItem(l,b,"".concat(al(u)?u(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,l=c.ticks,u=tI(c,YL),f=l;return al(a)&&(f=l&&l.length>0?a(this.props):a(u)),o<=0||i<=0||!f||!f.length?null:t.createElement(wd,{className:Bc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),ZT.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(T_,JL({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&nI(n.prototype,r),o&&nI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();aI(cI,"displayName","CartesianAxis"),aI(cI,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var lI=["x1","y1","x2","y2","key"];function uI(e){return uI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uI(e)}function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fI.apply(this,arguments)}function dI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wI(r.key),r)}}function vI(e,t){return vI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vI(e,t)}function yI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mI(e);if(t){var o=mI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===uI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mI(e){return mI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mI(e)}function bI(e,t,n){return(t=wI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wI(e){var t=function(e,t){if("object"!==uI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uI(t)?t:String(t)}var xI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vI(e,t)}(a,t.PureComponent);var n,r,o,i=yI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var n=this,r=this.props,o=r.x,i=r.width,s=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=hI(hI({},n.props),{},{x1:o,y1:e,x2:o+i,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var n=this,r=this.props,o=r.y,i=r.height,s=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=hI(hI({},n.props),{},{x1:e,y1:o,x2:e,y2:o+i,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,l=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==l[0]&&l.unshift(0);var u=l.map((function(e,r){var u=l[r+1]?l[r+1]-e:i+s-e;if(u<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:u,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(e){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,l=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var u=l.map((function(e,r){var u=l[r+1]?l[r+1]-e:a+c-e;if(u<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:u,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,s=n.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,u=e.xAxis,f=e.yAxis,d=e.offset,p=e.chartWidth,h=e.chartHeight;if(!Lf(o)||o<=0||!Lf(i)||i<=0||!Lf(n)||n!==+n||!Lf(r)||r!==+r)return null;var g=this.props,v=g.horizontalPoints,y=g.verticalPoints;return v&&v.length||!al(c)||(v=c({yAxis:f,width:p,height:h,offset:d})),y&&y.length||!al(l)||(y=l({xAxis:u,width:p,height:h,offset:d})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),s&&this.renderVertical(y),a&&this.renderHorizontalStripes(v),s&&this.renderVerticalStripes(y))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(al(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,l=dI(n,lI);r=t.createElement("line",fI({},ld(l),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&gI(n.prototype,r),o&&gI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();bI(xI,"displayName","CartesianGrid"),bI(xI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var CI=["type","layout","connectNulls","ref"];function _I(e){return _I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_I(e)}function SI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kI(){return kI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kI.apply(this,arguments)}function OI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OI(Object(n),!0).forEach((function(t){II(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(e){return function(e){if(Array.isArray(e))return AI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return AI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AI(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RI(r.key),r)}}function MI(e,t){return MI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MI(e,t)}function PI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LI(e);if(t){var o=LI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DI(e)}(this,n)}}function DI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LI(e){return LI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LI(e)}function II(e,t,n){return(t=RI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RI(e){var t=function(e,t){if("object"!==_I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_I(t)?t:String(t)}var NI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MI(e,t)}(a,t.PureComponent);var n,r,o,i=PI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return II(DI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),II(DI(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,c=[],l=0,u=0;;u+=n[l],++l)if(u+n[l]>i){c=[].concat(jI(n.slice(0,l)),[i-u]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(jI(a.repeat(n,o)),jI(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),II(DI(e),"id",Nf("recharts-line-")),II(DI(e),"pathRef",(function(t){e.mainCurve=t})),II(DI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),II(DI(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,$A);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:JA(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,u,c.map((function(e,n){return t.cloneElement(e,{key:"bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,s=o.points,c=o.dataKey,l=ld(this.props),u=ld(i,!0),f=s.map((function(e,t){var n=EI(EI(EI({key:"dot-".concat(t),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(i,n)})),d={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return t.createElement(wd,kI({className:"recharts-line-dots",key:"dots"},d,{role:"img"}),f)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var l=SI(i,CI),u=EI(EI(EI({},ld(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(_M,kI({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,l=o.animationDuration,u=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,v=g.prevPoints,y=g.totalLength;return t.createElement(Cw,{begin:c,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var s=v.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(v[n]){var r=v[n],i=zf(r.x,e.x),a=zf(r.y,e.y);return EI(EI({},e),{},{x:i(o),y:a(o)})}if(d){var c=zf(2*p,e.x),l=zf(h/2,e.y);return EI(EI({},e),{},{x:c(o),y:l(o)})}return EI(EI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var l,u=zf(0,y)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l="".concat(u,"px ").concat(y-u,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!P_(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,s=n.xAxis,c=n.yAxis,l=n.top,u=n.left,f=n.width,d=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,v=1===i.length,y=Bc("recharts-line",a),m=s&&s.allowDataOverflow,b=c&&c.allowDataOverflow,w=m||b,x=wf(h)?this.id:h,C=null!==(e=ld(o))&&void 0!==e?e:{r:3,strokeWidth:2},_=C.r,S=void 0===_?3:_,k=C.strokeWidth,O=void 0===k?2:k,E=(function(e){return e&&"object"===Qf(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===E||E,A=2*S+O;return t.createElement(wd,{className:y},m||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:m?u:u-f/2,y:b?l:l-d/2,width:m?f:2*f,height:b?d:2*d})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:u-A/2,y:l-A/2,width:f+A,height:d+A}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,j,x),(!p||g)&&cM.renderCallByParent(this.props,i))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(jI(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(jI(r),jI(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(al(e))r=e(n);else{var o=Bc("recharts-line-dot",e?e.className:"");r=t.createElement(FM,kI({},n,{className:o}))}return r}}],r&&TI(n.prototype,r),o&&TI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();II(NI,"displayName","Line"),II(NI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Px.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),II(NI,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout,f=c.map((function(e,t){var c=JA(e,a);return"horizontal"===u?{x:hT({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:wf(c)?null:r.scale(c),value:c,payload:e}:{x:wf(c)?null:n.scale(c),y:hT({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return EI({points:f,layout:u},l)}));var BI=function(){return null};BI.displayName="XAxis",BI.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var FI=function(){return null};FI.displayName="YAxis",FI.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var zI=Vg,HI=nh,VI=ah;var KI=function(e){return function(t,n,r){var o=Object(t);if(!HI(t)){var i=zI(n);t=VI(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},UI=QP;var $I=Kg,WI=Vg,qI=function(e){var t=UI(e),n=t%1;return t==t?n?t-n:t:0},ZI=Math.max;var GI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:qI(n);return o<0&&(o=ZI(r+o,0)),$I(e,WI(t),o)},YI=ct(KI(GI)),XI=nl,JI=ll;var QI=ct((function(e){return!0===e||!1===e||JI(e)&&"[object Boolean]"==XI(e)}));function eR(e){return function(e){if(Array.isArray(e))return tR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tR(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nR=function(e,t,n,r,o){var i=id(e,EL),a=id(e,DL),s=[].concat(eR(i),eR(a)),c=id(e,FL),l="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&MD(t.props,"extendDomain")&&Lf(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(u,"1"),p="".concat(u,"2");f=c.reduce((function(e,t){if(t.props[l]===n&&MD(t.props,"extendDomain")&&Lf(t.props[d])&&Lf(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Lf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},rR={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(rR);var oR=new(ct(rR.exports));oR.setMaxListeners&&oR.setMaxListeners(10);var iR="recharts.syncMouseEvents";function aR(e){return aR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aR(e)}function sR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lR(r.key),r)}}function cR(e,t,n){return(t=lR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e){var t=function(e,t){if("object"!==aR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aR(t)?t:String(t)}var uR=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cR(this,"activeIndex",0),cR(this,"coordinateList",[]),cR(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t=e.coordinateList,n=void 0===t?[]:t,r=e.container,o=void 0===r?null:r,i=e.layout,a=void 0===i?null:i,s=e.offset,c=void 0===s?null:s,l=e.mouseHandlerCallback,u=void 0===l?null:l;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=u?u:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=t+this.coordinateList[this.activeIndex].coordinate,o=n+this.offset.top;this.mouseHandlerCallback({pageX:r,pageY:o})}}}],n&&sR(t.prototype,n),r&&sR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),fR=["item"],dR=["children","className","width","height","style","compact","title","desc"];function pR(e){return pR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pR(e)}function hR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||_R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gR.apply(this,arguments)}function vR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jR(r.key),r)}}function mR(e,t){return mR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mR(e,t)}function bR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xR(e);if(t){var o=xR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wR(e)}(this,n)}}function wR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xR(e){return xR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xR(e)}function CR(e){return function(e){if(Array.isArray(e))return SR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _R(e,t){if(e){if("string"==typeof e)return SR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SR(e,t):void 0}}function SR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kR(Object(n),!0).forEach((function(t){ER(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ER(e,t,n){return(t=jR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}var AR={xAxis:["bottom","top"],yAxis:["left","right"]},TR={x:0,y:0},MR=Number.isFinite?Number.isFinite:isFinite,PR="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,DR="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,LR=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(CR(e),CR(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Lf(o)&&Lf(i)?e.slice(o,i+1):[]};function IR(e){return"number"===e?[0,"auto"]:void 0}var RR=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=LR(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=Hf(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(CR(e),[CT(t,o)]):e}),[])},NR=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var l=c>0?r[c-1].coordinate:r[a-1].coordinate,u=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(Pf(u-l)!==Pf(f-u)){var p=[];if(Pf(f-u)===Pf(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var g=f+s[1]-s[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){i=r[c].index;break}}else{var y=Math.min(l,f),m=Math.max(l,f);if(e>(y+u)/2&&e<=(m+u)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(l>=0&&c){var u=c[l]&&c[l].value,f=RR(e,t,l,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return OR(OR(OR({},r),MT(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return OR(OR(OR({},r),MT(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return TR}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},BR=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,d=oT(l,o),p=n.reduce((function(t,n){var p,h=n.props,g=h.type,v=h.dataKey,y=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var _,S,k,O=LR(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Lf(r)&&Lf(o))return!0}return!1})(n.props.domain,y,g)&&(_=bT(n.props.domain,null,y),!d||"number"!==g&&"auto"===b||(k=QA(O,v,"category")));var j=IR(g);if(!_||0===_.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(v){if(_=QA(O,v,g),"category"===g&&d){var M=function(e){if(!cl(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(_);m&&M?(S=_,_=rD(0,E)):m||(_=xT(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(CR(e),[t])}),[]))}else if("category"===g)_=m?_.filter((function(e){return""!==e&&!wf(e)})):xT(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||wf(t)?e:[].concat(CR(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return nT(e,t,n,o,r)})).filter((function(e){return!wf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),v,o,l);P&&(_=P)}!d||"number"!==g&&"auto"===b||(k=QA(O,v,"category"))}else _=d?rD(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:vT(a[C].stackGroups,s,c):rT(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,l,!0);if("number"===g)_=nR(u,_,C,o,w),T&&(_=bT(T,_,y));else if("category"===g&&T){var D=T;_.every((function(e){return D.indexOf(e)>=0}))&&(_=D)}}return OR(OR({},t),{},ER({},C,OR(OR({},n.props),{},{axisType:o,domain:_,categoricalDomain:k,duplicateDomain:S,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:l})))}),{});return p},FR=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=id(l,o),d={};return f&&f.length?d=BR(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=LR(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=oT(l,o),h=-1;return n.reduce((function(e,t){var g,v=t.props[i],y=IR("number");return e[v]?e:(h++,p?g=rD(0,d):a&&a[v]&&a[v].hasStack?(g=vT(a[v].stackGroups,s,c),g=nR(u,g,v,o)):(g=bT(y,rT(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),g=nR(u,g,v,o)),OR(OR({},e),{},ER({},v,OR(OR({axisType:o},r.defaultProps),{},{hide:!0,orientation:mf(AR,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:y,isCategorical:p,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},zR=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=ad(r,xD);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!wf(o)&&o}},HR=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},VR=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,l=n.children,u=n.margin||{},f=ad(l,xD),d=ad(l,wm),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:OR(OR({},e),{},ER({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:OR(OR({},e),{},ER({},r,mf(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=OR(OR({},h),p),v=g.bottom;return f&&(g.bottom+=f.props.height||xD.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=tT({children:o,legendWidth:s}),l=e;if(c){var u=r||{},f=c.align,d=c.verticalAlign,p=c.layout;("vertical"===p||"horizontal"===p&&"middle"===d)&&Lf(e[f])&&(l=YA(YA({},e),{},XA({},f,l[f]+(u.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&Lf(e[d])&&(l=YA(YA({},e),{},XA({},d,l[d]+(u.height||0))))}return l}(g,0,n,t)),OR(OR({brushBottom:v},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},KR=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=HR(u),g=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=td(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,l=Object.keys(c),u=0,f=l.length;u<f;u++){var d=c[l[u]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return td(e.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].props.barSize,y=g[0].props[h];o[y]||(o[y]=[]),o[y].push({item:g[0],stackList:g.slice(1),barSize:wf(v)?t:v})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=LR(e.data,{dataStartIndex:a,dataEndIndex:s},n),y=n.props,w=y.dataKey,x=y.maxBarSize,C=n.props["".concat(g,"Id")],_=n.props["".concat(v,"Id")],S=l.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return OR(OR({},e),{},(ER(o={},r.axisType,s),ER(o,"".concat(r.axisType,"Ticks"),aT(s)),o))}),{}),k=S[v],O=S["".concat(v,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(If(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),j=td(n.type).indexOf("Bar")>=0,A=wT(k,O),T=[];if(j){var M,P,D=wf(x)?p:x,L=null!==(M=null!==(P=wT(k,O,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,l=Bf(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var u=!1,f=r/s,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(s-1)*l)>=r&&(d-=(s-1)*l,l=0),d>=r&&f>0&&(u=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-l,size:0};c=i.reduce((function(e,t){var n=[].concat(qA(e),[{item:t.item,position:{offset:p.offset+p.size+l,size:u?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=Bf(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var g=(r-2*h-(s-1)*l)/s;g>1&&(g>>=0);var v=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(qA(e),[{item:t.item,position:{offset:h+(g+l)*n+(g-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[_],maxBarSize:D}),L!==A&&(T=T.map((function(e){return OR(OR({},e),{},{position:OR(OR({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:OR(OR({},B(OR(OR({},S),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(c)},ER(I,g,S[g]),ER(I,v,S[v]),ER(I,"animationId",i),I)),childIndex:(R=n,N=e.children,od(N).indexOf(R)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!sd({props:n}))return null;var c=n.children,u=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,v=HR(u),y=v.numericAxisName,m=v.cateAxisName,b=id(c,o),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(If(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Nf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return YA(YA({},e),{},XA({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return YA(YA({},t),{},XA({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:dT(e,a.items,o)}))}),{})),YA(YA({},t),{},XA({},i,s))}),{})}(h,b,"".concat(y,"Id"),"".concat(m,"Id"),d,g),x=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return OR(OR({},e),{},ER({},r,FR(n,OR(OR({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=VR(OR(OR({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var _,S,k=x["".concat(m,"Map")],O=(_=Ff(k),{tooltipTicks:S=aT(_,!1,!0),orderedTooltipTicks:_x(S,(function(e){return e.coordinate})),tooltipAxis:_,tooltipAxisBandSize:wT(_,S)}),E=p(n,OR(OR({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return OR(OR({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},O),x)};return n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mR(e,t)}(l,t.Component);var n,o,i,s=bR(l);function l(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),ER(wR(n=s.call(this,e)),"accessibilityManager",new uR),ER(wR(n),"clearDeferId",(function(){!wf(n.deferId)&&DR&&DR(n.deferId),n.deferId=null})),ER(wR(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(OR({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},OR(OR({},n.state),{},{legendBBox:e}))))}})),ER(wR(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=PR&&PR(n.applySyncEvent.bind(wR(n),r)))})),ER(wR(n),"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return OR({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),ER(wR(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=OR(OR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),al(t)&&t(o,e)}})),ER(wR(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?OR(OR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),al(t)&&t(o,e)})),ER(wR(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ER(wR(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),ER(wR(n),"handleMouseMove",(function(e){e&&al(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),ER(wR(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),al(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),ER(wR(n),"handleOuterEvent",(function(e){var t=function(e){var t=e&&e.type;return t&&ed[t]?ed[t]:null}(e),r=mf(n.props,"".concat(t));t&&al(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),ER(wR(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=OR(OR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),al(t)&&t(o,e)}})),ER(wR(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;al(t)&&t(n.getMouseInfo(e),e)})),ER(wR(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;al(t)&&t(n.getMouseInfo(e),e)})),ER(wR(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),ER(wR(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),ER(wR(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),ER(wR(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return iT(qL(OR(OR(OR({},cI.defaultProps),t),{},{ticks:aT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),ER(wR(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return iT(qL(OR(OR(OR({},cI.defaultProps),t),{},{ticks:aT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),ER(wR(n),"axesTicksGenerator",(function(e){return aT(e,!0)})),ER(wR(n),"renderCursor",(function(e){var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.offset,l=o.activeTooltipIndex,u=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==r&&"axis"!==u)return null;var f,d=n.props.layout,p=_M;if("ScatterChart"===r)f=a,p=VM;else if("BarChart"===r)f=n.getCursorRectangle(),p=AM;else if("radial"===d){var h=n.getCursorPoints(),g=h.cx,v=h.cy,y=h.radius;f={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},p=dM}else f={points:n.getCursorPoints()},p=_M;var m=e.key||"_recharts-cursor",b=OR(OR(OR(OR({stroke:"#ccc",pointerEvents:"none"},c),f),ld(e.props.cursor)),{},{payload:s,payloadIndex:l,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(p,b)})),ER(wR(n),"renderPolarAxis",(function(e,r,o){var i=mf(e,"type.axisType"),a=mf(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,OR(OR({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:aT(s,!0)}))})),ER(wR(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),ER(wR(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),ER(wR(n),"renderGrid",(function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,l=s.height,u=Ff(o),f=YI(i,(function(e){return HD(e.domain,MR)}))||Ff(i),d=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Lf(d.x)?d.x:a.left,y:Lf(d.y)?d.y:a.top,width:Lf(d.width)?d.width:a.width,height:Lf(d.height)?d.height:a.height,xAxis:u,yAxis:f,offset:a,chartWidth:c,chartHeight:l,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),ER(wR(n),"renderPolarGrid",(function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,l=s.angleAxisMap,u=Ff(c),f=Ff(l),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:cl(i)?i:aT(f,!0).map((function(e){return e.coordinate})),polarRadius:cl(a)?a:aT(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),ER(wR(n),"renderLegend",(function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},c=i-(s.left||0)-(s.right||0),l=tT({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:u});if(!l)return null;var f=l.item,d=vR(l,fR);return t.cloneElement(f,OR(OR({},d),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),ER(wR(n),"renderTooltip",(function(){var e=ad(n.props.children,Vx);if(!e)return null;var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,c=r.offset;return t.cloneElement(e,{viewBox:OR(OR({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),ER(wR(n),"renderBrush",(function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,l=a.dataEndIndex,u=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:sT(n.handleBrushChange,null,e.props.onChange),data:i,x:Lf(e.props.x)?e.props.x:s.left,y:Lf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Lf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),ER(wR(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=wR(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,l=a.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:i})})),ER(wR(n),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=OR(OR({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:eT(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},ld(u)),Zf(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,OR(OR({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),ER(wR(n),"renderGraphicChild",(function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,c=s.isTooltipActive,l=s.tooltipAxis,u=s.activeTooltipIndex,f=s.activeLabel,d=ad(n.props.children,Vx),p=i.props,h=p.points,g=p.isRange,v=p.baseLine,y=i.item.props,m=y.activeDot,b=!y.hide&&c&&d&&m&&u>=0,w={};"axis"!==a&&d&&"click"===d.props.trigger?w={onClick:sT(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:sT(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:sT(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,OR(OR({},i.props),w));if(b){var C,_;if(l.dataKey&&!l.allowDuplicatedCategory){var S="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());C=Hf(h,S,f),_=g&&v&&Hf(v,S,f)}else C=h[u],_=g&&v&&v[u];if(!wf(C))return[x].concat(CR(n.renderActivePoints({item:i,activePoint:C,basePoint:_,childIndex:u,isRange:g})))}return g?[x,null,null]:[x,null]})),ER(wR(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,OR(OR({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=wf(e.id)?Nf("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=pC(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=l,o=[{key:"componentDidMount",value:function(){var e,t;wf(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){wf(e.syncId)&&!wf(this.props.syncId)&&this.addListener(),!wf(e.syncId)&&wf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),wf(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=ad(this.props.children,Vx);if(e&&QI(e.props.shared)){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var l=Ff(s).scale,u=Ff(c).scale,f=l&&l.invert?l.invert(o.chartX):null,d=u&&u.invert?u.invert(o.chartY):null;return OR(OR({},o),{},{xValue:f,yValue:d})}var p=NR(this.state,this.props.data,this.props.layout,i);return p?OR(OR({},o),p):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!wf(a.cx)||!wf(a.cy)){if("centric"!==o){var c=a.cx,l=a.cy,u=a.radius,f=a.startAngle,d=a.endAngle;return{points:[MT(c,l,u,f),MT(c,l,u,d)],cx:c,cy:l,radius:u,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,g=a.innerRadius,v=a.outerRadius,y=a.angle,m=MT(p,h,g,y),b=MT(p,h,v,y);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=Ff(i);return IT({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=ad(e,Vx),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),OR(OR({},Zf(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){oR.on(iR,this.handleReceiveSyncEvent),oR.setMaxListeners&&oR._maxListeners&&oR.setMaxListeners(oR._maxListeners+1)}},{key:"removeListener",value:function(){oR.removeListener(iR,this.handleReceiveSyncEvent),oR.setMaxListeners&&oR._maxListeners&&oR.setMaxListeners(oR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;wf(t)||oR.emit(iR,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(wf(e.dataStartIndex)&&wf(e.dataEndIndex))if(wf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,l=e.activeTooltipIndex,u=this.state,f=u.offset,d=u.tooltipTicks;if(!f)return;if("function"==typeof r)l=r(d,e);else if("value"===r){l=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){l=p;break}}var g=OR(OR({},f),{},{x:f.left,y:f.top}),v=Math.min(s,g.x+g.width),y=Math.min(c,g.y+g.height),m=d[l]&&d[l].value,b=RR(this.state,this.props.data,l),w=d[l]?{x:"horizontal"===n?d[l].coordinate:v,y:"horizontal"===n?y:d[l].coordinate}:TR;this.setState(OR(OR({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:l}))}else this.setState(OR({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===td(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,s=i.height;return t.createElement(cI,gR({},e,{className:Bc("recharts-".concat(e.axisType," ").concat(e.axisType),e.className),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=hR(t,2),r=n[0],o=n[1];return OR(OR({},e),{},ER({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=hR(t,2),r=n[0],o=n[1];return OR(OR({},e),{},ER({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=td(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return jM(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var l=(i.data||[]).find((function(t){return IT(e,t)}));if(l)return{graphicalItem:o,payload:l}}}return null}},{key:"render",value:function(){var e=this;if(!sd(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,s=n.style,c=n.compact,l=n.title,u=n.desc,f=vR(n,dR),d=ld(f),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return t.createElement(vd,gR({},d,{width:i,height:a,title:l,desc:u}),this.renderClipPath(),dd(r,p));this.props.accessibilityLayer&&(d.tabIndex=0,d.role="img",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return t.createElement("div",gR({className:Bc("recharts-wrapper",o),style:OR({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(vd,gR({},d,{width:i,height:a,title:l,desc:u}),this.renderClipPath(),dd(r,p)),this.renderLegend(),this.renderTooltip())}}],o&&yR(n.prototype,o),i&&yR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(),ER(n,"displayName",r),ER(n,"defaultProps",OR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ER(n,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(wf(t.updateId)){var l=zR(e);return OR(OR(OR({},l),{},{updateId:0},h(OR(OR({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Vf(c,t.prevMargin)){var u=zR(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=OR(OR({},NR(t,n,a)),{},{updateId:t.updateId+1}),p=OR(OR(OR({},u),f),d);return OR(OR(OR({},p),h(OR({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!ud(r,t.prevChildren)){var g=!wf(n)?t.updateId:t.updateId+1;return OR(OR({updateId:g},h(OR(OR({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),ER(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(FM,n),t.createElement(wd,{className:"recharts-active-dot",key:n.key},r)})),n},UR=KR({chartName:"LineChart",GraphicalChild:NI,axisComponents:[{axisType:"xAxis",AxisComp:BI},{axisType:"yAxis",AxisComp:FI}],formatAxisMap:gL}),$R=KR({chartName:"BarChart",GraphicalChild:cL,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:BI},{axisType:"yAxis",AxisComp:FI}],formatAxisMap:gL}),WR=KR({chartName:"PieChart",GraphicalChild:qP,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:kP},{axisType:"radiusAxis",AxisComp:dP}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,l=Bf(e.cx,i,i/2),u=Bf(e.cy,a,a/2),f=PT(i,a,n),d=Bf(e.innerRadius,f,0),p=Bf(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(wf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=ET(i=a.range,2);s=g[0],c=g[1]}var v=cT(a,o),y=v.realScaleType,m=v.scale;m.domain(f).range(i),uT(m);var b=pT(m,kT(kT({},a),{},{realScaleType:y})),w=kT(kT(kT({},a),b),{},{range:i,radius:p,realScaleType:y,scale:m,cx:l,cy:u,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return kT(kT({},e),{},OT({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const qR=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),cn,ln);function ZR(e){return ZR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZR(e)}function GR(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function YR(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function XR(e){YR(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ZR(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function JR(e,t){YR(2,arguments);var n=XR(e),r=GR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function QR(e,t){YR(2,arguments);var n=XR(e),r=GR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function eN(e,t){if(YR(2,arguments),!t||"object"!==ZR(t))return new Date(NaN);var n=t.years?GR(t.years):0,r=t.months?GR(t.months):0,o=t.weeks?GR(t.weeks):0,i=t.days?GR(t.days):0,a=t.hours?GR(t.hours):0,s=t.minutes?GR(t.minutes):0,c=t.seconds?GR(t.seconds):0,l=XR(e),u=r||n?QR(l,r+12*n):l,f=i||o?JR(u,i+7*o):u,d=1e3*(c+60*(s+60*a));return new Date(f.getTime()+d)}var tN={};function nN(){return tN}function rN(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function oN(e){YR(1,arguments);var t=XR(e);return t.setHours(0,0,0,0),t}var iN=864e5;function aN(e,t){YR(2,arguments);var n=oN(e),r=oN(t);return n.getTime()===r.getTime()}function sN(e){if(YR(1,arguments),!function(e){return YR(1,arguments),e instanceof Date||"object"===ZR(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=XR(e);return!isNaN(Number(t))}function cN(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function lN(e,t){YR(2,arguments);var n=XR(e),r=XR(t),o=cN(n,r),i=Math.abs(function(e,t){YR(2,arguments);var n=oN(e),r=oN(t),o=n.getTime()-rN(n),i=r.getTime()-rN(r);return Math.round((o-i)/iN)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(cN(n,r)===-o));return 0===a?0:a}var uN={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},fN="trunc";function dN(e){return e?uN[e]:uN[fN]}function pN(e,t,n){YR(2,arguments);var r=function(e,t){return YR(2,arguments),XR(e).getTime()-XR(t).getTime()}(e,t)/6e4;return dN(null==n?void 0:n.roundingMethod)(r)}function hN(e,t){return YR(2,arguments),function(e,t){YR(2,arguments);var n=XR(e).getTime(),r=GR(t);return new Date(n+r)}(e,-GR(t))}function gN(e){YR(1,arguments);var t=XR(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function vN(e){YR(1,arguments);var t=XR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=gN(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=gN(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function yN(e){YR(1,arguments);var t=XR(e),n=gN(t).getTime()-function(e){YR(1,arguments);var t=vN(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),gN(n)}(t).getTime();return Math.round(n/6048e5)+1}function mN(e,t){var n,r,o,i,a,s,c,l;YR(1,arguments);var u=nN(),f=GR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=XR(e),p=d.getUTCDay(),h=(p<f?7:0)+p-f;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function bN(e,t){var n,r,o,i,a,s,c,l;YR(1,arguments);var u=XR(e),f=u.getUTCFullYear(),d=nN(),p=GR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var g=mN(h,t),v=new Date(0);v.setUTCFullYear(f,0,p),v.setUTCHours(0,0,0,0);var y=mN(v,t);return u.getTime()>=g.getTime()?f+1:u.getTime()>=y.getTime()?f:f-1}function wN(e,t){YR(1,arguments);var n=XR(e),r=mN(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,l;YR(1,arguments);var u=nN(),f=GR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),d=bN(e,t),p=new Date(0);return p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0),mN(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function xN(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var CN={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return xN("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):xN(n+1,2)},d:function(e,t){return xN(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return xN(e.getUTCHours()%12||12,t.length)},H:function(e,t){return xN(e.getUTCHours(),t.length)},m:function(e,t){return xN(e.getUTCMinutes(),t.length)},s:function(e,t){return xN(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return xN(Math.floor(r*Math.pow(10,n-3)),t.length)}},_N=CN,SN="midnight",kN="noon",ON="morning",EN="afternoon",jN="evening",AN="night",TN={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return _N.y(e,t)},Y:function(e,t,n,r){var o=bN(e,r),i=o>0?o:1-o;return"YY"===t?xN(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):xN(i,t.length)},R:function(e,t){return xN(vN(e),t.length)},u:function(e,t){return xN(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return xN(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return xN(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return _N.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return xN(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=wN(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):xN(o,t.length)},I:function(e,t,n){var r=yN(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):xN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):_N.d(e,t)},D:function(e,t,n){var r=function(e){YR(1,arguments);var t=XR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):xN(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return xN(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return xN(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return xN(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?kN:0===o?SN:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?jN:o>=12?EN:o>=4?ON:AN,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _N.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):_N.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):xN(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):xN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):_N.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):_N.s(e,t)},S:function(e,t){return _N.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return PN(o);case"XXXX":case"XX":return DN(o);default:return DN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return PN(o);case"xxxx":case"xx":return DN(o);default:return DN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+MN(o,":");default:return"GMT"+DN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+MN(o,":");default:return"GMT"+DN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return xN(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return xN((r._originalDate||e).getTime(),t.length)}};function MN(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+xN(i,2)}function PN(e,t){return e%60==0?(e>0?"-":"+")+xN(Math.abs(e)/60,2):DN(e,t)}function DN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+xN(Math.floor(o/60),2)+n+xN(o%60,2)}var LN=TN,IN=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},RN=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},NN={p:RN,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return IN(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",IN(o,t)).replace("{{time}}",RN(i,t))}},BN=NN,FN=["D","DD"],zN=["YY","YYYY"];function HN(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var VN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KN=function(e,t,n){var r,o=VN[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function UN(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var $N={date:UN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UN({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:UN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},WN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qN=function(e,t,n,r){return WN[e]};function ZN(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var GN={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ZN({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ZN({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ZN({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ZN({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ZN({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},YN=GN;function XN(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(l):l,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var JN,QN={ordinalNumber:(JN={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(JN.matchPattern);if(!n)return null;var r=n[0],o=e.match(JN.parsePattern);if(!o)return null;var i=JN.valueCallback?JN.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:XN({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:XN({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:XN({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:XN({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:XN({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},eB={code:"en-US",formatDistance:KN,formatLong:$N,formatRelative:qN,localize:YN,match:QN,options:{weekStartsOn:0,firstWeekContainsDate:1}},tB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rB=/^'([^]*?)'?$/,oB=/''/g,iB=/[a-zA-Z]/;function aB(e,t,n){var r,o,i,a,s,c,l,u,f,d,p,h,g,v,y,m,b,w;YR(2,arguments);var x=String(t),C=nN(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:C.locale)&&void 0!==r?r:eB,S=GR(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==a?a:null===(f=C.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=GR(null!==(p=null!==(h=null!==(g=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(y=n.locale)||void 0===y||null===(m=y.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==h?h:null===(b=C.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var O=XR(e);if(!sN(O))throw new RangeError("Invalid time value");var E=hN(O,rN(O)),j={firstWeekContainsDate:S,weekStartsOn:k,locale:_,_originalDate:O},A=x.match(nB).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,BN[t])(e,_.formatLong):e})).join("").match(tB).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(rB);if(!t)return e;return t[1].replace(oB,"'")}(r);var i,a=LN[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===zN.indexOf(i))||HN(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==FN.indexOf(e)}(r)||HN(r,t,String(e)),a(E,r,_.localize,j);if(o.match(iB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function sB(e){return YR(1,arguments),XR(e).getDate()}function cB(e){YR(1,arguments);var t=XR(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function lB(e){YR(1,arguments);var t=XR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function uB(e,t){YR(2,arguments);var n=XR(e),r=XR(t);return n.getTime()>r.getTime()}function fB(e,t){YR(2,arguments);var n=XR(e),r=XR(t);return n.getTime()<r.getTime()}function dB(e){return YR(1,arguments),function(e,t){YR(2,arguments);var n=XR(e),r=XR(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function pB(e,t){return YR(2,arguments),JR(e,-GR(t))}function hB(e,t){if(YR(2,arguments),"object"!==ZR(t)||null===t)throw new RangeError("values parameter must be an object");var n=XR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){YR(2,arguments);var n=XR(e),r=GR(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=cB(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(GR(t.date)),null!=t.hours&&n.setHours(GR(t.hours)),null!=t.minutes&&n.setMinutes(GR(t.minutes)),null!=t.seconds&&n.setSeconds(GR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(GR(t.milliseconds)),n)}function gB(e,t){YR(2,arguments);var n=XR(e),r=GR(t);return n.setDate(r),n}function vB(e,t){if(YR(2,arguments),!t||"object"!==ZR(t))return new Date(NaN);var n=t.years?GR(t.years):0,r=t.months?GR(t.months):0,o=t.weeks?GR(t.weeks):0,i=t.days?GR(t.days):0,a=t.hours?GR(t.hours):0,s=t.minutes?GR(t.minutes):0,c=t.seconds?GR(t.seconds):0,l=function(e,t){return YR(2,arguments),QR(e,-GR(t))}(e,r+12*n),u=pB(l,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(u.getTime()-f)}const yB=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},mB=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),bB=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),wB=W.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),cn),xB=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(OB,{children:[e.jsx(EB,{children:r}),null==n?void 0:n.map((t=>{var n;const r=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color);return e.jsxs(kB,{children:[r&&e.jsx(qR,{color:r}),t.name,": ",mB(t.value||0)]},t.value)}))]}):null,CB=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Vx,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(xB,{})})},_B=({payload:t,toggleData:n})=>e.jsx(SB,{children:null==t?void 0:t.map((t=>e.jsxs(kB,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx(qR,{color:t.color}),t.value]},t.value)))}),SB=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),kB=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),OB=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),EB=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let jB;const AB=new Uint8Array(16);function TB(){if(!jB&&(jB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!jB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jB(AB)}const MB=[];for(let e=0;e<256;++e)MB.push((e+256).toString(16).slice(1));var PB={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DB(e,t,n){if(PB.randomUUID&&!t&&!e)return PB.randomUUID();const r=(e=e||{}).random||(e.rng||TB)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(MB[e[t+0]]+MB[e[t+1]]+MB[e[t+2]]+MB[e[t+3]]+"-"+MB[e[t+4]]+MB[e[t+5]]+"-"+MB[e[t+6]]+MB[e[t+7]]+"-"+MB[e[t+8]]+MB[e[t+9]]+"-"+MB[e[t+10]]+MB[e[t+11]]+MB[e[t+12]]+MB[e[t+13]]+MB[e[t+14]]+MB[e[t+15]]).toLowerCase()}(r)}const LB=W.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),IB=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),RB=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),NB=W.div({display:"flex"}),BB=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),FB=W.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),zB=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),HB=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),VB=W.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),cn),KB=W.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),UB=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),$B=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:l,onChange:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,v=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),C="right"===i,_={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(VB,Object.assign({htmlFor:r,labelRight:C,disabled:l},_,{children:[o&&e.jsx(UB,{children:o}),e.jsx(KB,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:l,onChange:()=>{const e=!!s||!b;w(e),u(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},v)),e.jsx(fn,{name:y,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!l})]}))};function WB(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=WB(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function qB(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=WB(e))&&(r&&(r+=" "),r+=t);return r}var ZB,GB,YB=Object.create,XB=Object.defineProperty,JB=Object.defineProperties,QB=Object.getOwnPropertyDescriptor,eF=Object.getOwnPropertyDescriptors,tF=Object.getOwnPropertyNames,nF=Object.getOwnPropertySymbols,rF=Object.getPrototypeOf,oF=Object.prototype.hasOwnProperty,iF=Object.prototype.propertyIsEnumerable,aF=(e,t,n)=>t in e?XB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sF=(e,t)=>{for(var n in t||(t={}))oF.call(t,n)&&aF(e,n,t[n]);if(nF)for(var n of nF(t))iF.call(t,n)&&aF(e,n,t[n]);return e},cF=(e,t)=>JB(e,eF(t)),lF=(e,t)=>{var n={};for(var r in e)oF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nF)for(var r of nF(e))t.indexOf(r)<0&&iF.call(e,r)&&(n[r]=e[r]);return n},uF=(ZB={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=s.next,_=u;C!==t.tail&&!(f&&_>=f.reach);_+=C.value.length,C=C.next){var S=C.value;if(t.length>e.length)return;if(!(S instanceof o)){var k,O=1;if(m){if(!(k=i(x,_,e,y))||k.index>=e.length)break;var E=k.index,j=k.index+k[0].length,A=_;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(_=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)O++,A+=T.value.length;O--,S=e.slice(_,A),k.index-=_}else if(!(k=i(x,0,S,y)))continue;E=k.index;var M=k[0],P=S.slice(0,E),D=S.slice(E+M.length),L=_+S.length;f&&L>f.reach&&(f.reach=L);var I=C.prev;if(P&&(I=c(t,I,P),_+=P.length),l(t,I,O),C=c(t,I,new o(d,v?r.tokenize(M,v):M,b,M)),D&&c(t,C,D),O>1){var R={cause:d+","+h,reach:L};a(e,t,n,C.prev,_,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return GB||(0,ZB[tF(ZB)[0]])((GB={exports:{}}).exports,GB),GB.exports}),fF=((e,t,n)=>(n=null!=e?YB(rF(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of tF(t))oF.call(e,o)||o===n||XB(e,o,{get:()=>t[o],enumerable:!(r=QB(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:XB(n,"default",{value:e,enumerable:!0}),e)))(uF());!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(fF),fF.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},fF.languages.javascript=fF.languages.extend("clike",{"class-name":[fF.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),fF.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,fF.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:fF.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:fF.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:fF.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:fF.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:fF.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),fF.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:fF.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),fF.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),fF.languages.markup&&(fF.languages.markup.tag.addInlined("script","javascript"),fF.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),fF.languages.js=fF.languages.javascript,fF.languages.actionscript=fF.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),fF.languages.actionscript["class-name"].alias="function",delete fF.languages.actionscript.parameter,delete fF.languages.actionscript["literal-property"],fF.languages.markup&&fF.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:fF.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(fF),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(fF),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(fF),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(fF),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(fF),fF.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},fF.languages.markup.tag.inside["attr-value"].inside.entity=fF.languages.markup.entity,fF.languages.markup.doctype.inside["internal-subset"].inside=fF.languages.markup,fF.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(fF.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:fF.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:fF.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},fF.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(fF.languages.markup.tag,"addAttribute",{value:function(e,t){fF.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:fF.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),fF.languages.html=fF.languages.markup,fF.languages.mathml=fF.languages.markup,fF.languages.svg=fF.languages.markup,fF.languages.xml=fF.languages.extend("markup",{}),fF.languages.ssml=fF.languages.xml,fF.languages.atom=fF.languages.xml,fF.languages.rss=fF.languages.xml,function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(fF),fF.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:fF.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},fF.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&0<=o.indexOf(l.content)&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),fF.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),l=0,u={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=l++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return l=0,function t(n){for(var i=0;i<n.length;i++){if(l>=f.length)return;var a,c,d,p,h,g,v,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=f[l],-1!==(v=(g="string"==typeof y?y:y.content).indexOf(a))&&(++l,c=g.substring(0,v),h=u[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(v+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(v=y.content,Array.isArray(v)?t(v):t([v]))}}(c),new e.Token(a,c,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in l&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,l=n[r];"string"!=typeof l&&(i=l.content,Array.isArray(i)?"template-string"===l.type?(l=i[1],3===i.length&&"string"!=typeof l&&"embedded-code"===l.type&&(a=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(i[1]=c(a,s,l))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(fF),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(fF),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(fF),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(fF),fF.languages.n4js=fF.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),fF.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),fF.languages.n4jsd=fF.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(fF),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(fF),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(fF),fF.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},fF.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=fF.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(fF),fF.languages.c=fF.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),fF.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),fF.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},fF.languages.c.string],char:fF.languages.c.char,comment:fF.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:fF.languages.c}}}}),fF.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete fF.languages.c.boolean,fF.languages.objectivec=fF.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete fF.languages.objectivec["class-name"],fF.languages.objc=fF.languages.objectivec,fF.languages.reason=fF.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),fF.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete fF.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(fF),fF.languages.go=fF.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),fF.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete fF.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(fF);var dF={};((e,t)=>{for(var n in t)XB(e,n,{get:t[n],enumerable:!0})})(dF,{dracula:()=>pF,duotoneDark:()=>hF,duotoneLight:()=>gF,github:()=>vF,jettwaveDark:()=>AF,jettwaveLight:()=>TF,nightOwl:()=>yF,nightOwlLight:()=>mF,oceanicNext:()=>xF,okaidia:()=>CF,palenight:()=>_F,shadesOfPurple:()=>SF,synthwave84:()=>kF,ultramin:()=>OF,vsDark:()=>EF,vsLight:()=>jF});var pF={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},hF={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},gF={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},vF={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},yF={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},mF={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},bF="#c5a5c5",wF="#8dc891",xF={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:bF}},{types:["attr-value"],style:{color:wF}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:wF}},{types:["punctuation"],style:{color:wF}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:bF}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},CF={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},_F={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},SF={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},kF={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},OF={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},EF={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},jF={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},AF={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},TF={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},MF=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=sF(sF({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=cF(sF({},n),{backgroundColor:void 0}),r},PF=/\r\n|\r|\n/,DF=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},LF=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},IF=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,l=t[a];const u=n[a][i];if("string"==typeof u?(l=a>0?l:["plain"],e=u):(l=LF(l,u.type),u.alias&&(l=LF(l,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(l),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(PF),d=f.length;s.push({types:l,content:f[0]});for(let e=1;e<d;e++)DF(s),c.push(s=[]),s.push({types:l,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return DF(s),c},RF=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(MF(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(MF(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=lF(n,["className","style","line"]);const s=cF(sF({},a),{className:qB("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=sF(sF({},s.style||{}),o)),s}),[e]))(s),l=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=lF(t,["token","className","style"]);const s=cF(sF({},a),{className:qB("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=sF(sF({},s.style||{}),i)),s}),[n])})(s),u=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return IF([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),IF(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:l})},NF=e=>t.createElement(RF,cF(sF({},e),{prism:e.prism||fF,theme:e.theme||EF,code:e.code,language:e.language}))
209
+ 39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();void 0!==$C&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(WC);var qC={},ZC={exports:{}},GC={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},YC=function(e,t,n,r){if(!GC.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!GC[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=GC[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=YC)&&n.__esModule?n:{default:n};t.default=function(e,t,n){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,n){t.type===e.type&&(t={type:e.type,value:(0,r.default)(t.value,t.unit,e.unit,n),unit:e.unit});return{left:e,right:t}}(e,t,n);default:return{left:e,right:t}}},e.exports=t.default}(ZC,ZC.exports);var XC=ZC.exports;Object.defineProperty(qC,"__esModule",{value:!0}),qC.flip=r_;var JC,QC=(JC=XC)&&JC.__esModule?JC:{default:JC};function e_(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,QC.default)(e.left,e.right,t),r=e_(n.left,t),o=e_(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(t_(r.right,o.right)?n=(0,QC.default)(r.left,o.left,t):t_(r.right,o.left)&&(n=(0,QC.default)(r.left,o.right,t)),r=e_(n.left,t),o=e_(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return o_(o);r.type===o.type&&n_(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(n_(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=e_({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?r_(o.operator):o.operator,e_(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=e_({type:"MathExpression",operator:"-"===i?r_(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,e_(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&n_(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=e_({type:"MathExpression",operator:i,left:r.left,right:o},t),e_(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=e_({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=e_({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),e_(e,t)}return e}(e,t);case"/":return function(e,t){if(!n_(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return n_(e.left.left.type)&&n_(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,e_(e.left,t)):e;if(n_(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(n_(e.left.left.type)&&n_(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(n_(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(n_(e.right.left.type)&&n_(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&n_(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?e_(e.value,t):e}function t_(e,t){return e.type===t.type&&e.value===t.value}function n_(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function r_(e){return"+"===e?"-":"+"}function o_(e){return n_(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=o_(e.left),e.right=o_(e.right)),e}qC.default=e_;var i_={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=qC,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,l="";return"MathExpression"===a.type&&r[c]<r[a.operator]?l+="("+i(a,t)+")":l+=i(a,t),l+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?l+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),l+=i(s,t)):l+=i(s,t),l;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}(i_,i_.exports);var a_=i_.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(UC),r=WC,o=a(qC),i=a(a_);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),l=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default}(jC,jC.exports);var s_=ct(jC.exports);function c_(e){return c_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c_(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l_(Object(n),!0).forEach((function(t){f_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==c_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d_(e){return function(e){if(Array.isArray(e))return p_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h_={widthCache:{},cacheCount:0},g_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},v_=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],y_="recharts_measurement_span";var m_=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(d_(e),["-",t.toLowerCase()]):[].concat(d_(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],v_.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},b_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Px.isSsr)return{width:0,height:0};var n="".concat(e),r=m_(t),o="".concat(n,"-").concat(r);if(h_.widthCache[o])return h_.widthCache[o];try{var i=document.getElementById(y_);i||((i=document.createElement("span")).setAttribute("id",y_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=u_(u_({},g_),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return h_.widthCache[o]=c,++h_.cacheCount>2e3&&(h_.cacheCount=0,h_.widthCache={}),c}catch(e){return{width:0,height:0}}},w_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x_.apply(this,arguments)}function C_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function __(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k_=/[ \f\n\r\t\v\u2028\u2029]+/,O_=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return wf(t)||(o=n?t.toString().split(""):t.toString().split(k_)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:b_(e,r).width}})),spaceWidth:n?0:b_(" ",r).width}}catch(e){return null}},E_=function(e){return[{words:wf(e)?[]:e.toString().split(k_)}]},j_=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!Px.isSsr){var s=O_({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,l=Lf(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!l)return d;for(var p,h=function(e){var t=u.slice(0,e),n=O_({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,v=u.length-1,y=0;g<=v&&y<=u.length-1;){var m=Math.floor((g+v)/2),b=__(h(m-1),2),w=b[0],x=b[1],C=__(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(v=m-1),!w&&C){p=x;break}y++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):E_(r)}return E_(r)},A_={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"},T_=function(e){var n=t.useMemo((function(){return j_({breakAll:e.breakAll,children:e.children,maxLines:e.maxLines,scaleToFit:e.scaleToFit,style:e.style,width:e.width})}),[e.breakAll,e.children,e.maxLines,e.scaleToFit,e.style,e.width]),r=e.dx,o=e.dy,i=e.textAnchor,a=e.verticalAnchor,s=e.scaleToFit,c=e.angle,l=e.lineHeight,u=e.capHeight,f=e.className,d=e.breakAll,p=C_(e,w_);if(!If(p.x)||!If(p.y))return null;var h,g=p.x+(Lf(r)?r:0),v=p.y+(Lf(o)?o:0);switch(a){case"start":h=s_("calc(".concat(u,")"));break;case"middle":h=s_("calc(".concat((n.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:h=s_("calc(".concat(n.length-1," * -").concat(l,")"))}var y=[];if(s){var m=n[0].width,b=e.width;y.push("scale(".concat((Lf(b)?b/m:1)/m,")"))}return c&&y.push("rotate(".concat(c,", ").concat(g,", ").concat(v,")")),y.length&&(p.transform=y.join(" ")),t.createElement("text",x_({},ld(p,!0),{x:g,y:v,className:Bc("recharts-text",f),textAnchor:i,fill:p.fill.includes("url")?A_.fill:p.fill}),n.map((function(e,n){return t.createElement("tspan",{x:g,dy:0===n?h:l,key:n},e.words.join(d?"":" "))})))};T_.defaultProps=A_;var M_=Yh;var P_=ct((function(e,t){return M_(e,t)})),D_=vl;var L_=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!D_(a):n(a,s)))var s=a,c=i}return c};var I_=function(e,t){return e>t},R_=L_,N_=I_,B_=Ag;var F_=function(e){return e&&e.length?R_(e,B_,N_):void 0},z_=ct(F_);var H_=function(e,t){return e<t},V_=L_,K_=H_,U_=Ag;var $_=function(e){return e&&e.length?V_(e,U_,K_):void 0},W_=ct($_),q_=Yu,Z_=Vg,G_=Bw,Y_=sl;var X_=jw,J_=function(e,t){return(Y_(e)?q_:G_)(e,Z_(t))};var Q_=ct((function(e,t){return X_(J_(e,t),1)}));function eS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nS(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=eS,n=(t,n)=>eS(e(t),n),r=(t,n)=>e(t)-n):(t=e===eS||e===tS?e:rS,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function rS(){return 0}function oS(e){return null===e?NaN:+e}const iS=nS(eS).right;nS(oS).center;var aS=iS;class sS extends Map{constructor(e,t=lS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(cS(this,e))}has(e){return super.has(cS(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function cS({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lS(e){return null!==e&&"object"==typeof e?e.valueOf():e}function uS(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const fS=Math.sqrt(50),dS=Math.sqrt(10),pS=Math.sqrt(2);function hS(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=fS?10:i>=dS?5:i>=pS?2:1;let s,c,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,o)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?hS(e,t,2*n):[s,c,l]}function gS(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?hS(t,e,n):hS(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function vS(e,t,n){return hS(e=+e,t=+t,n=+n)[2]}function yS(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?vS(t,e,n):vS(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mS(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function bS(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function wS(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?uS:function(e=eS){if(e===eS)return uS;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);wS(e,t,Math.max(n,Math.floor(t-a*c/i+l)),Math.min(r,Math.floor(t+(i-a)*c/i+l)),o)}const i=e[t];let a=n,s=r;for(xS(e,n,t),o(e[r],i)>0&&xS(e,n,r);a<s;){for(xS(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?xS(e,n,s):(++s,xS(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function xS(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CS(e,t,n=oS){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function _S(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function SS(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const kS=Symbol("implicit");function OS(){var e=new sS,t=[],n=[],r=kS;function o(o){let i=e.get(o);if(void 0===i){if(r!==kS)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new sS;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return OS(t,n).unknown(r)},_S.apply(o,arguments),o}function ES(){var e,t,n=OS().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,l=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-c+2*l),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*u,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return ES(r(),[i,a]).round(s).paddingInner(c).paddingOuter(l).align(u)},_S.apply(f(),arguments)}function jS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return jS(t())},e}function AS(){return jS(ES.apply(null,arguments).paddingInner(1))}function TS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function MS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function PS(){}var DS=.7,LS=1/DS,IS="\\s*([+-]?\\d+)\\s*",RS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",NS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BS=/^#([0-9a-f]{3,8})$/,FS=new RegExp(`^rgb\\(${IS},${IS},${IS}\\)$`),zS=new RegExp(`^rgb\\(${NS},${NS},${NS}\\)$`),HS=new RegExp(`^rgba\\(${IS},${IS},${IS},${RS}\\)$`),VS=new RegExp(`^rgba\\(${NS},${NS},${NS},${RS}\\)$`),KS=new RegExp(`^hsl\\(${RS},${NS},${NS}\\)$`),US=new RegExp(`^hsla\\(${RS},${NS},${NS},${RS}\\)$`),$S={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function WS(){return this.rgb().formatHex()}function qS(){return this.rgb().formatRgb()}function ZS(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BS.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?GS(t):3===n?new JS(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?YS(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?YS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=FS.exec(e))?new JS(t[1],t[2],t[3],1):(t=zS.exec(e))?new JS(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HS.exec(e))?YS(t[1],t[2],t[3],t[4]):(t=VS.exec(e))?YS(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=KS.exec(e))?ok(t[1],t[2]/100,t[3]/100,1):(t=US.exec(e))?ok(t[1],t[2]/100,t[3]/100,t[4]):$S.hasOwnProperty(e)?GS($S[e]):"transparent"===e?new JS(NaN,NaN,NaN,0):null}function GS(e){return new JS(e>>16&255,e>>8&255,255&e,1)}function YS(e,t,n,r){return r<=0&&(e=t=n=NaN),new JS(e,t,n,r)}function XS(e,t,n,r){return 1===arguments.length?function(e){return e instanceof PS||(e=ZS(e)),e?new JS((e=e.rgb()).r,e.g,e.b,e.opacity):new JS}(e):new JS(e,t,n,null==r?1:r)}function JS(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function QS(){return`#${rk(this.r)}${rk(this.g)}${rk(this.b)}`}function ek(){const e=tk(this.opacity);return`${1===e?"rgb(":"rgba("}${nk(this.r)}, ${nk(this.g)}, ${nk(this.b)}${1===e?")":`, ${e})`}`}function tk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rk(e){return((e=nk(e))<16?"0":"")+e.toString(16)}function ok(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ak(e,t,n,r)}function ik(e){if(e instanceof ak)return new ak(e.h,e.s,e.l,e.opacity);if(e instanceof PS||(e=ZS(e)),!e)return new ak;if(e instanceof ak)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new ak(a,s,c,e.opacity)}function ak(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sk(e){return(e=(e||0)%360)<0?e+360:e}function ck(e){return Math.max(0,Math.min(1,e||0))}function lk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}TS(PS,ZS,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WS,formatHex:WS,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ik(this).formatHsl()},formatRgb:qS,toString:qS}),TS(JS,XS,MS(PS,{brighter(e){return e=null==e?LS:Math.pow(LS,e),new JS(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?DS:Math.pow(DS,e),new JS(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new JS(nk(this.r),nk(this.g),nk(this.b),tk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:QS,formatHex:QS,formatHex8:function(){return`#${rk(this.r)}${rk(this.g)}${rk(this.b)}${rk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ek,toString:ek})),TS(ak,(function(e,t,n,r){return 1===arguments.length?ik(e):new ak(e,t,n,null==r?1:r)}),MS(PS,{brighter(e){return e=null==e?LS:Math.pow(LS,e),new ak(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?DS:Math.pow(DS,e),new ak(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new JS(lk(e>=240?e-240:e+120,o,r),lk(e,o,r),lk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ak(sk(this.h),ck(this.s),ck(this.l),tk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tk(this.opacity);return`${1===e?"hsl(":"hsla("}${sk(this.h)}, ${100*ck(this.s)}%, ${100*ck(this.l)}%${1===e?")":`, ${e})`}`}}));var uk=e=>()=>e;function fk(e){return 1==(e=+e)?dk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):uk(isNaN(t)?n:t)}}function dk(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):uk(isNaN(e)?t:e)}var pk=function e(t){var n=fk(t);function r(e,t){var r=n((e=XS(e)).r,(t=XS(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=dk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function hk(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function gk(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Ck(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function vk(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yk(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mk(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Ck(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var bk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wk=new RegExp(bk.source,"g");function xk(e,t){var n,r,o,i=bk.lastIndex=wk.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=bk.exec(e))&&(r=wk.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:yk(n,r)})),i=wk.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function Ck(e,t){var n,r=typeof t;return null==t||"boolean"===r?uk(t):("number"===r?yk:"string"===r?(n=ZS(t))?(t=n,pk):xk:t instanceof ZS?pk:t instanceof Date?vk:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?hk:Array.isArray(t)?gk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mk:yk)(e,t)}function _k(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Sk(e,t){void 0===t&&(t=e,e=Ck);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function kk(e){return+e}var Ok=[0,1];function Ek(e){return e}function jk(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ak(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=jk(o,r),i=n(a,i)):(r=jk(r,o),i=n(i,a)),function(e){return i(r(e))}}function Tk(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=jk(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=aS(e,t,1,r)-1;return i[n](o[n](t))}}function Mk(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pk(){var e,t,n,r,o,i,a=Ok,s=Ok,c=Ck,l=Ek;function u(){var e=Math.min(a.length,s.length);return l!==Ek&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Tk:Ak,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),yk)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,kk),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=_k,u()},f.clamp=function(e){return arguments.length?(l=!!e||Ek,u()):l!==Ek},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function Dk(){return Pk()(Ek,Ek)}function Lk(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ik(e){return(e=Lk(Math.abs(e)))?e[1]:NaN}var Rk,Nk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bk(e){if(!(t=Nk.exec(e)))throw new Error("invalid format: "+e);var t;return new Fk({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Fk(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function zk(e,t){var n=Lk(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Bk.prototype=Fk.prototype,Fk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hk={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>zk(100*e,t),r:zk,s:function(e,t){var n=Lk(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Rk=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Lk(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vk(e){return e}var Kk,Uk,$k,Wk=Array.prototype.map,qk=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zk(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Vk:(t=Wk.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Vk:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Wk.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Bk(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,v=e.precision,y=e.trim,m=e.type;"n"===m?(g=!0,m="g"):Hk[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?c:"",x=Hk[m],C=/[defgprs%]/.test(m);function _(e){var o,i,c,d=b,_=w;if("c"===m)_=x(e)+_,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:l:"-"===f||"("===f?"":f)+d,_=("s"===m?qk[8+Rk/3]:"")+_+(S&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){_=(46===c?a+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var k=d.length+e.length+_.length,O=k<h?new Array(h-k+1).join(t):"";switch(g&&p&&(e=r(O+e,O.length?h-_.length:1/0),O=""),n){case"<":e=d+e+_+O;break;case"=":e=d+O+e+_;break;case"^":e=O.slice(0,k=O.length>>1)+d+e+_+O.slice(k);break;default:e=O+d+e+_}return s(e)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=Bk(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ik(t)/3))),o=Math.pow(10,-r),i=qk[8+r/3];return function(e){return n(o*e)+i}}}}function Gk(e,t,n,r){var o,i=yS(e,t,n);switch((r=Bk(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ik(t)/3)))-Ik(Math.abs(e)))}(i,a))||(r.precision=o),$k(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ik(t)-Ik(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Ik(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Uk(r)}function Yk(e){var t=e.domain;return e.ticks=function(e){var n=t();return gS(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Gk(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],l=i[s],u=10;for(l<c&&(o=c,c=l,l=o,o=a,a=s,s=o);u-- >0;){if((o=vS(c,l,n))===r)return i[a]=c,i[s]=l,t(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function Xk(){var e=Dk();return e.copy=function(){return Mk(e,Xk())},_S.apply(e,arguments),Yk(e)}function Jk(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Qk(e){return Math.log(e)}function eO(e){return Math.exp(e)}function tO(e){return-Math.log(-e)}function nO(e){return-Math.exp(-e)}function rO(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oO(e){return(t,n)=>-e(-t,n)}function iO(e){const t=e(Qk,eO),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?rO:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=oO(r),o=oO(o),e(tO,nO)):e(Qk,eO),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let l,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1;l<i;++l)if(u=f<0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(l=i-1;l>=1;--l)if(u=f>0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=gS(a,s,p))}else h=gS(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=Bk(n)).precision||(n.trim=!0),n=Uk(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(Jk(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function aO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cO(e){var t=1,n=e(aO(t),sO(t));return n.constant=function(n){return arguments.length?e(aO(t=+n),sO(t)):t},Yk(n)}function lO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fO(e){return e<0?-e*e:e*e}function dO(e){var t=e(Ek,Ek),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Ek,Ek):.5===n?e(uO,fO):e(lO(n),lO(1/n)):n},Yk(t)}function pO(){var e=dO(Pk());return e.copy=function(){return Mk(e,pO()).exponent(e.exponent())},_S.apply(e,arguments),e}function hO(e){return Math.sign(e)*e*e}Kk=Zk({thousands:",",grouping:[3],currency:["$",""]}),Uk=Kk.format,$k=Kk.formatPrefix;const gO=new Date,vO=new Date;function yO(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>yO((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(gO.setTime(+t),vO.setTime(+r),e(gO),e(vO),Math.floor(n(gO,vO))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const mO=yO((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));mO.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?yO((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):mO:null),mO.range;const bO=1e3,wO=6e4,xO=36e5,CO=864e5,_O=6048e5,SO=2592e6,kO=31536e6,OO=yO((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*bO)}),((e,t)=>(t-e)/bO),(e=>e.getUTCSeconds()));OO.range;const EO=yO((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bO)}),((e,t)=>{e.setTime(+e+t*wO)}),((e,t)=>(t-e)/wO),(e=>e.getMinutes()));EO.range;const jO=yO((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*wO)}),((e,t)=>(t-e)/wO),(e=>e.getUTCMinutes()));jO.range;const AO=yO((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bO-e.getMinutes()*wO)}),((e,t)=>{e.setTime(+e+t*xO)}),((e,t)=>(t-e)/xO),(e=>e.getHours()));AO.range;const TO=yO((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*xO)}),((e,t)=>(t-e)/xO),(e=>e.getUTCHours()));TO.range;const MO=yO((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wO)/CO),(e=>e.getDate()-1));MO.range;const PO=yO((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/CO),(e=>e.getUTCDate()-1));PO.range;const DO=yO((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/CO),(e=>Math.floor(e/CO)));function LO(e){return yO((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wO)/_O))}DO.range;const IO=LO(0),RO=LO(1),NO=LO(2),BO=LO(3),FO=LO(4),zO=LO(5),HO=LO(6);function VO(e){return yO((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/_O))}IO.range,RO.range,NO.range,BO.range,FO.range,zO.range,HO.range;const KO=VO(0),UO=VO(1),$O=VO(2),WO=VO(3),qO=VO(4),ZO=VO(5),GO=VO(6);KO.range,UO.range,$O.range,WO.range,qO.range,ZO.range,GO.range;const YO=yO((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));YO.range;const XO=yO((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));XO.range;const JO=yO((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));JO.every=e=>isFinite(e=Math.floor(e))&&e>0?yO((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,JO.range;const QO=yO((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function eE(e,t,n,r,o,i){const a=[[OO,1,bO],[OO,5,5e3],[OO,15,15e3],[OO,30,3e4],[i,1,wO],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,xO],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,CO],[r,2,1728e5],[n,1,_O],[t,1,SO],[t,3,7776e6],[e,1,kO]];function s(t,n,r){const o=Math.abs(n-t)/r,i=nS((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(yS(t/kO,n/kO,r));if(0===i)return mO.every(Math.max(yS(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}QO.every=e=>isFinite(e=Math.floor(e))&&e>0?yO((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,QO.range;const[tE,nE]=eE(QO,XO,KO,DO,TO,jO),[rE,oE]=eE(JO,YO,IO,MO,AO,EO);function iE(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function aE(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function sE(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var cE,lE,uE,fE={"-":"",_:" ",0:"0"},dE=/^\s*\d+/,pE=/^%/,hE=/[\\^$*+?|[\]().{}]/g;function gE(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function vE(e){return e.replace(hE,"\\$&")}function yE(e){return new RegExp("^(?:"+e.map(vE).join("|")+")","i")}function mE(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function bE(e,t,n){var r=dE.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wE(e,t,n){var r=dE.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function CE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _E(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function SE(e,t,n){var r=dE.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function kE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function OE(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function EE(e,t,n){var r=dE.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function jE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function AE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function TE(e,t,n){var r=dE.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ME(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function PE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function DE(e,t,n){var r=dE.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function LE(e,t,n){var r=dE.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IE(e,t,n){var r=dE.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function RE(e,t,n){var r=pE.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NE(e,t,n){var r=dE.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BE(e,t,n){var r=dE.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function FE(e,t){return gE(e.getDate(),t,2)}function zE(e,t){return gE(e.getHours(),t,2)}function HE(e,t){return gE(e.getHours()%12||12,t,2)}function VE(e,t){return gE(1+MO.count(JO(e),e),t,3)}function KE(e,t){return gE(e.getMilliseconds(),t,3)}function UE(e,t){return KE(e,t)+"000"}function $E(e,t){return gE(e.getMonth()+1,t,2)}function WE(e,t){return gE(e.getMinutes(),t,2)}function qE(e,t){return gE(e.getSeconds(),t,2)}function ZE(e){var t=e.getDay();return 0===t?7:t}function GE(e,t){return gE(IO.count(JO(e)-1,e),t,2)}function YE(e){var t=e.getDay();return t>=4||0===t?FO(e):FO.ceil(e)}function XE(e,t){return e=YE(e),gE(FO.count(JO(e),e)+(4===JO(e).getDay()),t,2)}function JE(e){return e.getDay()}function QE(e,t){return gE(RO.count(JO(e)-1,e),t,2)}function ej(e,t){return gE(e.getFullYear()%100,t,2)}function tj(e,t){return gE((e=YE(e)).getFullYear()%100,t,2)}function nj(e,t){return gE(e.getFullYear()%1e4,t,4)}function rj(e,t){var n=e.getDay();return gE((e=n>=4||0===n?FO(e):FO.ceil(e)).getFullYear()%1e4,t,4)}function oj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gE(t/60|0,"0",2)+gE(t%60,"0",2)}function ij(e,t){return gE(e.getUTCDate(),t,2)}function aj(e,t){return gE(e.getUTCHours(),t,2)}function sj(e,t){return gE(e.getUTCHours()%12||12,t,2)}function cj(e,t){return gE(1+PO.count(QO(e),e),t,3)}function lj(e,t){return gE(e.getUTCMilliseconds(),t,3)}function uj(e,t){return lj(e,t)+"000"}function fj(e,t){return gE(e.getUTCMonth()+1,t,2)}function dj(e,t){return gE(e.getUTCMinutes(),t,2)}function pj(e,t){return gE(e.getUTCSeconds(),t,2)}function hj(e){var t=e.getUTCDay();return 0===t?7:t}function gj(e,t){return gE(KO.count(QO(e)-1,e),t,2)}function vj(e){var t=e.getUTCDay();return t>=4||0===t?qO(e):qO.ceil(e)}function yj(e,t){return e=vj(e),gE(qO.count(QO(e),e)+(4===QO(e).getUTCDay()),t,2)}function mj(e){return e.getUTCDay()}function bj(e,t){return gE(UO.count(QO(e)-1,e),t,2)}function wj(e,t){return gE(e.getUTCFullYear()%100,t,2)}function xj(e,t){return gE((e=vj(e)).getUTCFullYear()%100,t,2)}function Cj(e,t){return gE(e.getUTCFullYear()%1e4,t,4)}function _j(e,t){var n=e.getUTCDay();return gE((e=n>=4||0===n?qO(e):qO.ceil(e)).getUTCFullYear()%1e4,t,4)}function Sj(){return"+0000"}function kj(){return"%"}function Oj(e){return+e}function Ej(e){return Math.floor(+e/1e3)}function jj(e){return new Date(e)}function Aj(e){return e instanceof Date?+e:+new Date(+e)}function Tj(e,t,n,r,o,i,a,s,c,l){var u=Dk(),f=u.invert,d=u.domain,p=l(".%L"),h=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(e){return(c(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?v:r(e)<e?o(e)<e?y:m:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,Aj)):d().map(jj)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:l(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(Jk(n,e)):u},u.copy=function(){return Mk(u,Tj(e,t,n,r,o,i,a,s,c,l))},u}function Mj(){var e,t,n,r,o,i=0,a=1,s=Ek,c=!1;function l(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=u(Ck),l.rangeRound=u(_k),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function Pj(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Dj(){var e=dO(Mj());return e.copy=function(){return Pj(e,Dj()).exponent(e.exponent())},SS.apply(e,arguments)}function Lj(){var e,t,n,r,o,i,a,s=0,c=.5,l=1,u=1,f=Ek,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=Sk(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,l]=a,e=i(s=+s),t=i(c=+c),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,c,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(Ck),p.rangeRound=h(_k),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function Ij(){var e=dO(Lj());return e.copy=function(){return Pj(e,Ij()).exponent(e.exponent())},SS.apply(e,arguments)}!function(e){cE=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=yE(o),u=mE(o),f=yE(i),d=mE(i),p=yE(a),h=mE(a),g=yE(s),v=mE(s),y=yE(c),m=mE(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:FE,e:FE,f:UE,g:tj,G:rj,H:zE,I:HE,j:VE,L:KE,m:$E,M:WE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Oj,s:Ej,S:qE,u:ZE,U:GE,V:XE,w:JE,W:QE,x:null,X:null,y:ej,Y:nj,Z:oj,"%":kj},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:ij,e:ij,f:uj,g:xj,G:_j,H:aj,I:sj,j:cj,L:lj,m:fj,M:dj,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Oj,s:Ej,S:pj,u:hj,U:gj,V:yj,w:mj,W:bj,x:null,X:null,y:wj,Y:Cj,Z:Sj,"%":kj},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:AE,e:AE,f:IE,g:kE,G:SE,H:ME,I:ME,j:TE,L:LE,m:jE,M:PE,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:EE,Q:NE,s:BE,S:DE,u:wE,U:xE,V:CE,w:bE,W:_E,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:kE,Y:SE,Z:OE,"%":RE};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=fE[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function _(e,t){return function(n){var r,o,i=sE(1900,void 0,1);if(S(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=aE(sE(i.y,0,1))).getUTCDay(),r=o>4||0===o?UO.ceil(r):UO(r),r=PO.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=iE(sE(i.y,0,1))).getDay(),r=o>4||0===o?RO.ceil(r):RO(r),r=MO.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?aE(sE(i.y,0,1)).getUTCDay():iE(sE(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,aE(i)):iE(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in fE?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}(e),lE=cE.format,cE.parse,uE=cE.utcFormat,cE.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Rj,Nj=Object.freeze({__proto__:null,scaleBand:ES,scaleDiverging:function e(){var t=Yk(Lj()(Ek));return t.copy=function(){return Pj(t,e())},SS.apply(t,arguments)},scaleDivergingLog:function e(){var t=iO(Lj()).domain([.1,1,10]);return t.copy=function(){return Pj(t,e()).base(t.base())},SS.apply(t,arguments)},scaleDivergingPow:Ij,scaleDivergingSqrt:function(){return Ij.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=cO(Lj());return t.copy=function(){return Pj(t,e()).constant(t.constant())},SS.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,kk),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,kk):[0,1],Yk(r)},scaleImplicit:kS,scaleLinear:Xk,scaleLog:function e(){const t=iO(Pk()).domain([1,10]);return t.copy=()=>Mk(t,e()).base(t.base()),_S.apply(t,arguments),t},scaleOrdinal:OS,scalePoint:AS,scalePow:pO,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=CS(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[aS(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(eS),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},_S.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[aS(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},_S.apply(Yk(s),arguments)},scaleRadial:function e(){var t,n=Dk(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(hO(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,kk)).map(hO)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},_S.apply(i,arguments),Yk(i)},scaleSequential:function e(){var t=Yk(Mj()(Ek));return t.copy=function(){return Pj(t,e())},SS.apply(t,arguments)},scaleSequentialLog:function e(){var t=iO(Mj()).domain([1,10]);return t.copy=function(){return Pj(t,e()).base(t.base())},SS.apply(t,arguments)},scaleSequentialPow:Dj,scaleSequentialQuantile:function e(){var t=[],n=Ek;function r(e){if(null!=e&&!isNaN(e=+e))return n((aS(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(eS),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return bS(e);if(t>=1)return mS(e);var r,o=(r-1)*t,i=Math.floor(o),a=mS(wS(e,i).subarray(0,i+1));return a+(bS(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},SS.apply(r,arguments)},scaleSequentialSqrt:function(){return Dj.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=cO(Mj());return t.copy=function(){return Pj(t,e()).constant(t.constant())},SS.apply(t,arguments)},scaleSqrt:function(){return pO.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=cO(Pk());return t.copy=function(){return Mk(t,e()).constant(t.constant())},_S.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[aS(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},_S.apply(i,arguments)},scaleTime:function(){return _S.apply(Tj(rE,oE,JO,YO,IO,MO,AO,EO,OO,lE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return _S.apply(Tj(tE,nE,QO,XO,KO,PO,TO,jO,OO,uE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Gk}),Bj=1e9,Fj=!0,zj="[DecimalError] ",Hj=zj+"Invalid argument: ",Vj=zj+"Exponent out of range: ",Kj=Math.floor,Uj=Math.pow,$j=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Wj=1e7,qj=7,Zj=9007199254740991,Gj=Kj(Zj/qj),Yj={};function Xj(e,t){var n,r,o,i,a,s,c,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Fj?sA(t,f):t;if(c=e.d,l=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(f/qj))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/Wj|0,c[i]%=Wj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,Fj?sA(t,f):t}function Jj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Hj+e)}function Qj(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=qj-r.length)&&(i+=oA(n)),i+=r;a=e[t],(n=qj-(r=a+"").length)&&(i+=oA(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Yj.absoluteValue=Yj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Yj.comparedTo=Yj.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},Yj.decimalPlaces=Yj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*qj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Yj.dividedBy=Yj.div=function(e){return eA(this,new this.constructor(e))},Yj.dividedToIntegerBy=Yj.idiv=function(e){var t=this.constructor;return sA(eA(this,new t(e),0,1),t.precision)},Yj.equals=Yj.eq=function(e){return!this.cmp(e)},Yj.exponent=function(){return nA(this)},Yj.greaterThan=Yj.gt=function(e){return this.cmp(e)>0},Yj.greaterThanOrEqualTo=Yj.gte=function(e){return this.cmp(e)>=0},Yj.isInteger=Yj.isint=function(){return this.e>this.d.length-2},Yj.isNegative=Yj.isneg=function(){return this.s<0},Yj.isPositive=Yj.ispos=function(){return this.s>0},Yj.isZero=function(){return 0===this.s},Yj.lessThan=Yj.lt=function(e){return this.cmp(e)<0},Yj.lessThanOrEqualTo=Yj.lte=function(e){return this.cmp(e)<1},Yj.logarithm=Yj.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Rj))throw Error(zj+"NaN");if(n.s<1)throw Error(zj+(n.s?"NaN":"-Infinity"));return n.eq(Rj)?new r(0):(Fj=!1,t=eA(iA(n,i),iA(e,i),i),Fj=!0,sA(t,o))},Yj.minus=Yj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cA(t,e):Xj(t,(e.s=-e.s,e))},Yj.modulo=Yj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(zj+"NaN");return n.s?(Fj=!1,t=eA(n,e,0,1).times(e),Fj=!0,n.minus(t)):sA(new r(n),o)},Yj.naturalExponential=Yj.exp=function(){return tA(this)},Yj.naturalLogarithm=Yj.ln=function(){return iA(this)},Yj.negated=Yj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Yj.plus=Yj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Xj(t,e):cA(t,(e.s=-e.s,e))},Yj.precision=Yj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Hj+e);if(t=nA(o)+1,n=(r=o.d.length-1)*qj+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Yj.squareRoot=Yj.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zj+"NaN")}for(e=nA(s),Fj=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=Qj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Kj((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(eA(s,i,a+2)).times(.5),Qj(i.d).slice(0,a)===(t=Qj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(sA(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return Fj=!0,sA(r,n)},Yj.times=Yj.mul=function(e){var t,n,r,o,i,a,s,c,l,u=this,f=u.constructor,d=u.d,p=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(c=d.length)<(l=p.length)&&(i=d,d=p,p=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%Wj|0,t=s/Wj|0;i[o]=(i[o]+t)%Wj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Fj?sA(e,f.precision):e},Yj.toDecimalPlaces=Yj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Jj(e,0,Bj),void 0===t?t=r.rounding:Jj(t,0,8),sA(n,e+nA(n)+1,t))},Yj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=lA(r,!0):(Jj(e,0,Bj),void 0===t?t=o.rounding:Jj(t,0,8),n=lA(r=sA(new o(r),e+1,t),!0,e+1)),n},Yj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?lA(o):(Jj(e,0,Bj),void 0===t?t=i.rounding:Jj(t,0,8),n=lA((r=sA(new i(o),e+nA(o)+1,t)).abs(),!1,e+nA(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Yj.toInteger=Yj.toint=function(){var e=this,t=e.constructor;return sA(new t(e),nA(e)+1,t.rounding)},Yj.toNumber=function(){return+this},Yj.toPower=Yj.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(Rj);if(!(s=new c(s)).s){if(e.s<1)throw Error(zj+"Infinity");return s}if(s.eq(Rj))return s;if(r=c.precision,e.eq(Rj))return sA(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=l<0?-l:l)<=Zj){for(o=new c(Rj),t=Math.ceil(r/qj+4),Fj=!1;n%2&&uA((o=o.times(s)).d,t),0!==(n=Kj(n/2));)uA((s=s.times(s)).d,t);return Fj=!0,e.s<0?new c(Rj).div(o):sA(o,r)}}else if(i<0)throw Error(zj+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Fj=!1,o=e.times(iA(s,r+12)),Fj=!0,(o=tA(o)).s=i,o},Yj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=lA(o,(n=nA(o))<=i.toExpNeg||n>=i.toExpPos):(Jj(e,1,Bj),void 0===t?t=i.rounding:Jj(t,0,8),r=lA(o=sA(new i(o),e,t),e<=(n=nA(o))||n<=i.toExpNeg,e)),r},Yj.toSignificantDigits=Yj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Jj(e,1,Bj),void 0===t?t=n.rounding:Jj(t,0,8)),sA(new n(this),e,t)},Yj.toString=Yj.valueOf=Yj.val=Yj.toJSON=Yj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=nA(e),n=e.constructor;return lA(e,t<=n.toExpNeg||t>=n.toExpPos)};var eA=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%Wj|0,r=n/Wj|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*Wj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,l,u,f,d,p,h,g,v,y,m,b,w,x,C,_,S,k=r.constructor,O=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new k(r);if(!o.s)throw Error(zj+"Division by zero");for(c=r.e-o.e,_=j.length,x=E.length,h=(p=new k(O)).d=[],l=0;j[l]==(E[l]||0);)++l;if(j[l]>(E[l]||0)&&--c,(m=null==i?i=k.precision:a?i+(nA(r)-nA(o))+1:i)<0)return new k(0);if(m=m/qj+2|0,l=0,1==_)for(u=0,j=j[0],m++;(l<x||u)&&m--;l++)b=u*Wj+(E[l]||0),h[l]=b/j|0,u=b%j|0;else{for((u=Wj/(j[0]+1)|0)>1&&(j=e(j,u),E=e(E,u),_=j.length,x=E.length),w=_,v=(g=E.slice(0,_)).length;v<_;)g[v++]=0;(S=j.slice()).unshift(0),C=j[0],j[1]>=Wj/2&&++C;do{u=0,(s=t(j,g,_,v))<0?(y=g[0],_!=v&&(y=y*Wj+(g[1]||0)),(u=y/C|0)>1?(u>=Wj&&(u=Wj-1),1==(s=t(f=e(j,u),g,d=f.length,v=g.length))&&(u--,n(f,_<d?S:j,d))):(0==u&&(s=u=1),f=j.slice()),(d=f.length)<v&&f.unshift(0),n(g,f,v),-1==s&&(s=t(j,g,_,v=g.length))<1&&(u++,n(g,_<v?S:j,v)),v=g.length):0===s&&(u++,g=[0]),h[l++]=u,s&&g[0]?g[v++]=E[w]||0:(g=[E[w]],v=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=c,sA(p,a?i+nA(p)+1:i)}}();function tA(e,t){var n,r,o,i,a,s=0,c=0,l=e.constructor,u=l.precision;if(nA(e)>16)throw Error(Vj+nA(e));if(!e.s)return new l(Rj);for(null==t?(Fj=!1,a=u):a=t,i=new l(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(Uj(2,c))/Math.LN10*2+5|0,n=r=o=new l(Rj),l.precision=a;;){if(r=sA(r.times(e),a),n=n.times(++s),Qj((i=o.plus(eA(r,n,a))).d).slice(0,a)===Qj(o.d).slice(0,a)){for(;c--;)o=sA(o.times(o),a);return l.precision=u,null==t?(Fj=!0,sA(o,u)):o}o=i}}function nA(e){for(var t=e.e*qj,n=e.d[0];n>=10;n/=10)t++;return t}function rA(e,t,n){if(t>e.LN10.sd())throw Fj=!0,n&&(e.precision=n),Error(zj+"LN10 precision limit exceeded");return sA(new e(e.LN10),t)}function oA(e){for(var t="";e--;)t+="0";return t}function iA(e,t){var n,r,o,i,a,s,c,l,u,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(zj+(d.s?"NaN":"-Infinity"));if(d.eq(Rj))return new h(0);if(null==t?(Fj=!1,l=g):l=t,d.eq(10))return null==t&&(Fj=!0),rA(h,l);if(l+=10,h.precision=l,r=(n=Qj(p)).charAt(0),i=nA(d),!(Math.abs(i)<15e14))return c=rA(h,l+2,g).times(i+""),d=iA(new h(r+"."+n.slice(1)),l-10).plus(c),h.precision=g,null==t?(Fj=!0,sA(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Qj((d=d.times(e)).d)).charAt(0),f++;for(i=nA(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=eA(d.minus(Rj),d.plus(Rj),l),u=sA(d.times(d),l),o=3;;){if(a=sA(a.times(u),l),Qj((c=s.plus(eA(a,new h(o),l))).d).slice(0,l)===Qj(s.d).slice(0,l))return s=s.times(2),0!==i&&(s=s.plus(rA(h,l+2,g).times(i+""))),s=eA(s,new h(f),l),h.precision=g,null==t?(Fj=!0,sA(s,g)):s;s=c,o+=2}}function aA(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=Kj(n/qj),e.d=[],r=(n+1)%qj,n<0&&(r+=qj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=qj;r<o;)e.d.push(+t.slice(r,r+=qj));t=t.slice(r),r=qj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Fj&&(e.e>Gj||e.e<-Gj))throw Error(Vj+n)}else e.s=0,e.e=0,e.d=[0];return e}function sA(e,t,n){var r,o,i,a,s,c,l,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=qj,o=t,l=f[u=0];else{if((u=Math.ceil((r+1)/qj))>=(i=f.length))return e;for(l=i=f[u],a=1;i>=10;i/=10)a++;o=(r%=qj)-qj+a}if(void 0!==n&&(s=l/(i=Uj(10,a-o-1))%10|0,c=t<0||void 0!==f[u+1]||l%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?l/Uj(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=nA(e),f.length=1,t=t-i-1,f[0]=Uj(10,(qj-t%qj)%qj),e.e=Kj(-t/qj)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,i=1,u--):(f.length=u+1,i=Uj(10,qj-r),f[u]=o>0?(l/Uj(10,a-o)%Uj(10,o)|0)*i:0),c)for(;;){if(0==u){(f[0]+=i)==Wj&&(f[0]=1,++e.e);break}if(f[u]+=i,f[u]!=Wj)break;f[u--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(Fj&&(e.e>Gj||e.e<-Gj))throw Error(Vj+nA(e));return e}function cA(e,t){var n,r,o,i,a,s,c,l,u,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fj?sA(t,p):t;if(c=e.d,f=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((u=a<0)?(n=c,a=-a,s=f.length):(n=f,r=l,s=c.length),a>(o=Math.max(Math.ceil(p/qj),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){u=c[o]<f[o];break}a=0}for(u&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=Wj-1;--c[i],c[o]+=Wj}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,Fj?sA(t,p):t):new d(0)}function lA(e,t,n){var r,o=nA(e),i=Qj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+oA(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+oA(-o-1)+i,n&&(r=n-a)>0&&(i+=oA(r))):o>=a?(i+=oA(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+oA(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=oA(r))),e.s<0?"-"+i:i}function uA(e,t){if(e.length>t)return e.length=t,!0}function fA(e){if(!e||"object"!=typeof e)throw Error(zj+"Object expected");var t,n,r,o=["precision",1,Bj,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(Kj(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Hj+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Hj+n+": "+r);this[n]=new this(r)}return this}var dA=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Hj+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):aA(t,e.toString())}if("string"!=typeof e)throw Error(Hj+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!$j.test(e))throw Error(Hj+e);aA(t,e)}if(i.prototype=Yj,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=fA,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Rj=new dA(1);var pA=dA;function hA(e){return function(e){if(Array.isArray(e))return gA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vA=function(e){return e},yA={"@@functional/placeholder":!0},mA=function(e){return e===yA},bA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&mA(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},wA=function e(t,n){return 1===t?n:bA((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==yA})).length;return a>=t?n.apply(void 0,o):e(t-a,bA((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return mA(e)?t.shift():e}));return n.apply(void 0,hA(i).concat(t))})))}))},xA=function(e){return wA(e.length,e)},CA=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},_A=xA((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),SA=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return vA;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},kA=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},OA=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var EA=xA((function(e,t,n){var r=+e;return r+n*(+t-r)})),jA=xA((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),AA=xA((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),TA={rangeStep:function(e,t,n){for(var r=new pA(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new pA(e).abs().log(10).toNumber())+1},interpolateNumber:EA,uninterpolateNumber:jA,uninterpolateTruncation:AA};function MA(e){return function(e){if(Array.isArray(e))return LA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||DA(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||DA(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DA(e,t){if(e){if("string"==typeof e)return LA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LA(e,t):void 0}}function LA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IA(e){var t=PA(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function RA(e,t,n){if(e.lte(0))return new pA(0);var r=TA.getDigitCount(e.toNumber()),o=new pA(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new pA(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new pA(Math.ceil(s))}function NA(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new pA(0),tickMin:new pA(0),tickMax:new pA(0)};var i,a=RA(new pA(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new pA(0):(i=new pA(e).add(t).div(2)).sub(new pA(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new pA(t).sub(i).div(a).toNumber()),l=s+c+1;return l>n?NA(e,t,n,r,o+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:i.sub(new pA(s).mul(a)),tickMax:i.add(new pA(c).mul(a))})}var BA=OA((function(e){var t=PA(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=PA(IA([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(MA(CA(0,o-1).map((function(){return 1/0})))):[].concat(MA(CA(0,o-1).map((function(){return-1/0}))),[l]);return n>r?kA(u):u}if(c===l)return function(e,t,n){var r=1,o=new pA(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new pA(10).pow(TA.getDigitCount(e)-1),o=new pA(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new pA(Math.floor(e)))}else 0===e?o=new pA(Math.floor((t-1)/2)):n||(o=new pA(Math.floor(e)));var a=Math.floor((t-1)/2),s=SA(_A((function(e){return o.add(new pA(e-a).mul(r)).toNumber()})),CA);return s(0,t)}(c,o,i);var f=NA(c,l,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=TA.rangeStep(p,h.add(new pA(.1).mul(d)),d);return n>r?kA(g):g})),FA=OA((function(e,t){var n=PA(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=PA(IA([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var l=Math.max(t,2),u=RA(new pA(c).sub(s).div(l-1),i,0),f=[].concat(MA(TA.rangeStep(new pA(s),new pA(c).sub(new pA(.99).mul(u)),u)),[c]);return r>o?kA(f):f})),zA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function HA(){return HA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HA.apply(this,arguments)}function VA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return KA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KA(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $A(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=UA(e,zA),f=ld(u),d=a.map((function(e,a){var u=s(e,i),d=u.x,p=u.y,h=u.value,g=u.errorVal;if(!g)return null;var v,y,m=[];if(Array.isArray(g)){var b=VA(g,2);v=b[0],y=b[1]}else v=y=g;if("vertical"===r){var w=c.scale,x=p+n,C=x+o,_=x-o,S=w(h-v),k=w(h+y);m.push({x1:k,y1:C,x2:k,y2:_}),m.push({x1:S,y1:x,x2:k,y2:x}),m.push({x1:S,y1:C,x2:S,y2:_})}else if("horizontal"===r){var O=l.scale,E=d+n,j=E-o,A=E+o,T=O(h-v),M=O(h+y);m.push({x1:j,y1:M,x2:A,y2:M}),m.push({x1:E,y1:T,x2:E,y2:M}),m.push({x1:j,y1:T,x2:A,y2:T})}return t.createElement(wd,HA({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",HA({},e,{key:"line-".concat(n)}))})))}));return t.createElement(wd,{className:"recharts-errorBars"},d)}function WA(e){return WA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WA(e)}function qA(e){return function(e){if(Array.isArray(e))return ZA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ZA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==WA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==WA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===WA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(e,t,n){return wf(e)||wf(t)?n:If(t)?mf(e,t,n):al(t)?t(e):n}function QA(e,t,n,r){var o=Q_(e,(function(e){return JA(e,t)}));if("number"===n){var i=o.filter((function(e){return Lf(e)||parseFloat(e)}));return i.length?[W_(i),z_(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!wf(e)})):o).map((function(e){return If(e)||e instanceof Date?e:""}))}$A.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},$A.displayName="ErrorBar";var eT=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},tT=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=ad(n,wm);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:eT(t),value:o||r,payload:t.props}})),YA(YA(YA({},a.props),wm.getWithHeight(a,o)),{},{payload:t,item:a})):null},nT=function(e,t,n,r,o){var i=id(t.props.children,$A).filter((function(e){return function(e,t,n){return!!wf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=JA(t,n,0),o=cl(r)?[W_(r),z_(r)]:[r,r],i=a.reduce((function(e,n){var r=JA(t,n,0),i=o[0]-Math.abs(cl(r)?r[0]:r),a=o[1]+Math.abs(cl(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},rT=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&nT(e,t,i,r)||QA(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},oT=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},iT=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},aT=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Pf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Mf(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},sT=function(e,t,n){var r;return al(n)?r=n:al(t)&&(r=t),al(e)||r?function(t,n,o,i){al(e)&&e(t,n,o,i),al(r)&&r(t,n,o,i)}:null},cT=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:ES(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Xk(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:AS(),realScaleType:"point"}:"category"===o?{scale:ES(),realScaleType:"band"}:{scale:Xk(),realScaleType:"linear"};if(pl(r)){var s="scale".concat(zv(r));return{scale:(Nj[s]||AS)(),realScaleType:Nj[s]?s:"point"}}return al(r)?{scale:r}:{scale:AS(),realScaleType:"point"}},lT=1e-4,uT=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-lT,i=Math.max(r[0],r[1])+lT,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},fT={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Mf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Hy(e,t)}},none:Hy,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}Hy(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,Hy(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Mf(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},dT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Hv([]),t=Vy,n=Hy,r=Ky;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Uy),c=s.length,l=-1;for(const e of o)for(i=0,++l;i<c;++i)(s[i][l]=[0,+r(e,s[i].key,l,o)]).data=e;for(i=0,a=ey(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Hv(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Hv(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Vy:"function"==typeof e?e:Hv(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Hy:e,o):n},o}().keys(r).value((function(e,t){return+JA(e,t,0)})).order(Vy).offset(fT[n]);return o(e)},pT=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var l=BA(c,o,a);return e.domain([W_(l),z_(l)]),{niceTicks:l}}if(o&&"number"===r){var u=e.domain();return{niceTicks:FA(u,o,a)}}return null},hT=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!wf(o[t.dataKey])){var s=Hf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=JA(o,wf(a)?t.dataKey:a);return wf(c)?null:t.scale(c)},gT=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=JA(i,t.dataKey,t.domain[a]);return wf(s)?null:t.scale(s)-o/2+r},vT=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[W_(t.concat([e[0]]).filter(Lf)),z_(t.concat([e[1]]).filter(Lf))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},yT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bT=function(e,t,n){if(al(e))return e(t,n);if(!cl(e))return t;var r=[];if(Lf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(yT.test(e[0])){var o=+yT.exec(e[0])[1];r[0]=t[0]-o}else al(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Lf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(mT.test(e[1])){var i=+mT.exec(e[1])[1];r[1]=t[1]+i}else al(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},wT=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=_x(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},xT=function(e,t,n){return e&&e.length?P_(e,mf(n,"type.defaultProps.domain"))?t:e:t},CT=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return YA(YA({},ld(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:eT(e),value:JA(t,r),type:s,payload:t,chartType:c})};function _T(e){return _T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_T(e)}function ST(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(n),!0).forEach((function(t){OT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_T(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jT(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var AT=Math.PI/180,TT=function(e){return 180*e/Math.PI},MT=function(e,t,n,r){return{x:e+Math.cos(-AT*r)*n,y:t+Math.sin(-AT*r)*n}},PT=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},DT=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:TT(c),angleInRadian:c}},LT=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},IT=function(e,t){var n=e.x,r=e.y,o=DT({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=u.startAngle,d=u.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?kT(kT({},t),{},{radius:i,angle:LT(p,t)}):null};function RT(e){return RT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RT(e)}function NT(e){return function(e){if(Array.isArray(e))return BT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return BT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FT(Object(n),!0).forEach((function(t){HT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VT(){return VT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VT.apply(this,arguments)}var KT=function(e){var t=e.value,n=e.formatter,r=wf(e.children)?t:e.children;return al(n)?n(r):r},UT=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,l=e.className,u=s,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,v=u.endAngle,y=u.clockWise,m=(p+h)/2,b=function(e,t){return Pf(t-e)*Math.min(Math.abs(t-e),360)}(g,v),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=y):"insideEnd"===a?(o=v-w*c,i=!y):"end"===a&&(o=v+w*c,i=y),i=b<=0?i:!i;var x=MT(f,d,m,o),C=MT(f,d,m,o+359*(i?1:-1)),_="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),S=wf(e.id)?Nf("recharts-radial-line-"):e.id;return t.createElement("text",VT({},r,{dominantBaseline:"central",className:Bc("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:S,d:_})),t.createElement("textPath",{xlinkHref:"#".concat(S)},n))},$T=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=MT(i,a,c+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=MT(i,a,(s+c)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},WT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,l=i.height,u=l>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,g=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===o)return zT(zT({},{x:a+c/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return zT(zT({},{x:a+c/2,y:s+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"};return zT(zT({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+c+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"};return zT(zT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:c,height:l}:{};return"insideLeft"===o?zT({x:a+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===o?zT({x:a+c-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?zT({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?zT({x:a+c/2,y:s+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?zT({x:a+g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideTopRight"===o?zT({x:a+c-g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===o?zT({x:a+g,y:s+l-f,textAnchor:y,verticalAnchor:d},w):"insideBottomRight"===o?zT({x:a+c-g,y:s+l-f,textAnchor:v,verticalAnchor:d},w):zc(o)&&(Lf(o.x)||Df(o.x))&&(Lf(o.y)||Df(o.y))?zT({x:a+Bf(o.x,c),y:s+Bf(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):zT({x:a+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},qT=function(e){return"cx"in e&&Lf(e.cx)};function ZT(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,l=void 0===c?"":c,u=e.textBreakAll;if(!r||wf(i)&&wf(a)&&!t.isValidElement(s)&&!al(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(al(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=KT(e);var f=qT(r),d=ld(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return UT(e,n,d);var p=f?$T(e):WT(e);return t.createElement(T_,VT({className:Bc("recharts-label",l)},d,p,{breakAll:u}),n)}ZT.displayName="Label",ZT.defaultProps={offset:5};var GT=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Lf(h)&&Lf(g)){if(Lf(u)&&Lf(f))return{x:u,y:f,width:h,height:g};if(Lf(d)&&Lf(p))return{x:d,y:p,width:h,height:g}}return Lf(u)&&Lf(f)?{x:u,y:f,width:0,height:0}:Lf(t)&&Lf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};ZT.parseViewBox=GT,ZT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=GT(e),a=id(o,ZT).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(ZT,{key:"label-implicit",viewBox:n}):If(e)?t.createElement(ZT,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===ZT?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(ZT,{key:"label-implicit",content:e,viewBox:n}):al(e)?t.createElement(ZT,{key:"label-implicit",content:e,viewBox:n}):zc(e)?t.createElement(ZT,VT({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(NT(a))};var YT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},XT=ct(YT);function JT(e){return JT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JT(e)}var QT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function eM(e){return function(e){if(Array.isArray(e))return tM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nM(){return nM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nM.apply(this,arguments)}function rM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rM(Object(n),!0).forEach((function(t){iM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==JT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sM={valueAccessor:function(e){return cl(e.value)?XT(e.value):e.value}};function cM(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=aM(e,QT);return n&&n.length?t.createElement(wd,{className:"recharts-label-list"},n.map((function(e,n){var l=wf(o)?r(e,n):JA(e&&e.payload,o),u=wf(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(ZT,nM({},ld(e,!0),c,u,{parentViewBox:e.parentViewBox,index:n,value:l,textBreakAll:s,viewBox:ZT.parseViewBox(wf(i)?e:oM(oM({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function lM(){return lM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lM.apply(this,arguments)}cM.displayName="LabelList",cM.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=id(e.children,cM).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(cM,{key:"labelList-implicit",data:n}):t.isValidElement(e)||al(e)?t.createElement(cM,{key:"labelList-implicit",data:n,content:e}):zc(e)?t.createElement(cM,nM({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(eM(o)):o},cM.defaultProps=sM;var uM=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(a?1:-1)+r,u=Math.asin(s/l)/AT,f=c?o:o+i*u,d=c?o-i*u:o;return{center:MT(t,n,l,f),circleTangency:MT(t,n,r,f),lineTangency:MT(t,n,l*Math.cos(u*AT),d),theta:u}},fM=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Pf(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=MT(t,n,o,i),l=MT(t,n,o,s),u="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=MT(t,n,r,i),d=MT(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},dM=function(e){var n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,f=e.className;if(i<o||l===u)return null;var d,p=Bc("recharts-sector",f),h=i-o,g=Bf(a,h,0,!0);return d=g>0&&Math.abs(l-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=Pf(l-c),f=uM({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=uM({cx:t,cy:n,radius:o,angle:l,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=g.circleTangency,y=g.lineTangency,m=g.theta,b=s?Math.abs(c-l):Math.abs(c-l)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):fM({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var x=uM({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,_=x.lineTangency,S=x.theta,k=uM({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),O=k.circleTangency,E=k.lineTangency,j=k.theta,A=s?Math.abs(c-l):Math.abs(c-l)-S-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):fM({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:l,endAngle:u}),t.createElement("path",lM({},ld(e,!0),{className:p,d:d,role:"img"}))};function pM(e){return pM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pM(e)}function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(n),!0).forEach((function(t){yM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}dM.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var mM={curveBasisClosed:function(e){return new jy(e)},curveBasisOpen:function(e){return new Ay(e)},curveBasis:function(e){return new Ey(e)},curveBumpX:function(e){return new sy(e,!0)},curveBumpY:function(e){return new sy(e,!1)},curveLinearClosed:function(e){return new Ty(e)},curveLinear:ny,curveMonotoneX:function(e){return new Iy(e)},curveMonotoneY:function(e){return new Ry(e)},curveNatural:function(e){return new By(e)},curveStep:function(e){return new zy(e,.5)},curveStepAfter:function(e){return new zy(e,1)},curveStepBefore:function(e){return new zy(e,0)}},bM=function(e){return e.x===+e.x&&e.y===+e.y},wM=function(e){return e.x},xM=function(e){return e.y},CM=function(e){var t,n=e.type,r=e.points,o=e.baseLine,i=e.layout,a=e.connectNulls,s=function(e,t){if(al(e))return e;var n="curve".concat(zv(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?mM[n]||ny:mM["".concat(n).concat("vertical"===t?"Y":"X")]}(n,i),c=a?r.filter((function(e){return bM(e)})):r;if(cl(o)){var l=a?o.filter((function(e){return bM(e)})):o,u=c.map((function(e,t){return vM(vM({},e),{},{base:l[t]})}));return(t="vertical"===i?ay().y(xM).x1(wM).x0((function(e){return e.base.x})):ay().x(wM).y1(xM).y0((function(e){return e.base.y}))).defined(bM).curve(s),t(u)}return(t="vertical"===i&&Lf(o)?ay().y(xM).x1(wM).x0(o):Lf(o)?ay().x(wM).y1(xM).y0(o):iy().x(wM).y(xM)).defined(bM).curve(s),t(c)},_M=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?CM(e):o;return t.createElement("path",hM({},ld(e),Zf(e),{className:Bc("recharts-curve",n),d:a,ref:i}))};function SM(){return SM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SM.apply(this,arguments)}function kM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}_M.defaultProps={type:"linear",points:[],connectNulls:!1};var EM=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},jM=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=l&&r>=u&&r<=f}return!1},AM=function(e){var n=t.useRef(),r=kM(t.useState(-1),2),o=r[0],i=r[1];t.useLayoutEffect((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}}),[]);var a=e.x,s=e.y,c=e.width,l=e.height,u=e.radius,f=e.className,d=e.animationEasing,p=e.animationDuration,h=e.animationBegin,g=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||s!==+s||c!==+c||l!==+l||0===c||0===l)return null;var y=Bc("recharts-rectangle",f);return v?t.createElement(Cw,{canBegin:o>0,from:{width:c,height:l,x:a,y:s},to:{width:c,height:l,x:a,y:s},duration:p,animationEasing:d,isActive:v},(function(r){var i=r.width,a=r.height,s=r.x,c=r.y;return t.createElement(Cw,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:g,easing:d},t.createElement("path",SM({},ld(e,!0),{className:y,d:EM(s,c,i,a,u),ref:n})))})):t.createElement("path",SM({},ld(e,!0),{className:y,d:EM(a,s,c,l,u)}))};AM.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var TM=["points","className","baseLinePoints","connectNulls"];function MM(){return MM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MM.apply(this,arguments)}function PM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DM(e){return function(e){if(Array.isArray(e))return LM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return LM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IM=function(e){return e&&e.x===+e.x&&e.y===+e.y},RM=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){IM(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),IM(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(DM(e),DM(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},NM=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=PM(e,TM);if(!n||!n.length)return null;var s=Bc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=RM(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(RM(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",MM({},ld(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),c?t.createElement("path",MM({},ld(a,!0),{fill:"none",d:RM(n,i)})):null,c?t.createElement("path",MM({},ld(a,!0),{fill:"none",d:RM(o,i)})):null)}var u=RM(n,i);return t.createElement("path",MM({},ld(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:s,d:u}))};function BM(){return BM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BM.apply(this,arguments)}var FM=function(e){var n=e.cx,r=e.cy,o=e.r,i=e.className,a=Bc("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",BM({},ld(e),Zf(e),{className:a,cx:n,cy:r,r:o})):null};function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zM.apply(this,arguments)}var HM=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},VM=function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.top,s=e.left,c=e.className;return Lf(n)&&Lf(r)&&Lf(o)&&Lf(i)&&Lf(a)&&Lf(s)?t.createElement("path",zM({},ld(e,!0),{className:Bc("recharts-cross",c),d:HM(n,r,o,i,a,s)})):null};VM.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var KM=L_,UM=Vg,$M=H_;var WM=function(e,t){return e&&e.length?KM(e,UM(t),$M):void 0},qM=ct(WM),ZM=L_,GM=I_,YM=Vg;var XM=function(e,t){return e&&e.length?ZM(e,YM(t),GM):void 0},JM=ct(XM),QM=["cx","cy","angle","ticks","axisLine"],eP=["ticks","tick","angle","tickFormatter","stroke"];function tP(e){return tP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tP(e)}function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nP.apply(this,arguments)}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rP(Object(n),!0).forEach((function(t){uP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function aP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}function sP(e,t){return sP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sP(e,t)}function cP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lP(e);if(t){var o=lP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function lP(e){return lP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lP(e)}function uP(e,t,n){return(t=fP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){var t=function(e,t){if("object"!==tP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tP(t)?t:String(t)}var dP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sP(e,t)}(a,t.PureComponent);var n,r,o,i=cP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return MT(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=JM(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:qM(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=iP(e,QM),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=MT(n,r,c[0],o),u=MT(n,r,c[1],o),f=oP(oP(oP({},ld(s)),{},{fill:"none"},ld(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return t.createElement("line",nP({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,c=n.stroke,l=iP(n,eP),u=this.getTickTextAnchor(),f=ld(l),d=ld(o),p=r.map((function(n,r){var l=e.getTickValueCoord(n),p=oP(oP(oP(oP({textAnchor:u,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:r},l),{},{payload:n});return t.createElement(wd,nP({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Gf(e.props,n,r)),a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(wd,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),ZT.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(T_,nP({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&aP(n.prototype,r),o&&aP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pP(e){return pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pP(e)}function hP(){return hP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hP.apply(this,arguments)}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gP(Object(n),!0).forEach((function(t){xP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CP(r.key),r)}}function mP(e,t){return mP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mP(e,t)}function bP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wP(e);if(t){var o=wP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function wP(e){return wP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wP(e)}function xP(e,t,n){return(t=CP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CP(e){var t=function(e,t){if("object"!==pP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pP(t)?t:String(t)}uP(dP,"displayName","PolarRadiusAxis"),uP(dP,"axisType","radiusAxis"),uP(dP,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var _P=Math.PI/180,SP=1e-5,kP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mP(e,t)}(a,t.PureComponent);var n,r,o,i=bP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=MT(n,r,o,e.coordinate),c=MT(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*_P);return n>SP?"outer"===t?"start":"end":n<-SP?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=vP(vP({},ld(this.props)),{},{fill:"none"},ld(i));if("circle"===a)return t.createElement(FM,hP({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return MT(n,r,o,e.coordinate)}));return t.createElement(NM,hP({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,c=n.stroke,l=ld(this.props),u=ld(o),f=vP(vP({},l),{},{fill:"none"},ld(i)),d=r.map((function(n,r){var d=e.getTickLineCoord(n),p=vP(vP(vP({textAnchor:e.getTickTextAnchor(n)},l),{},{stroke:"none",fill:c},u),{},{index:r,payload:n,x:d.x2,y:d.y2});return t.createElement(wd,hP({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Gf(e.props,n,r)),i&&t.createElement("line",hP({className:"recharts-polar-angle-axis-tick-line"},f,d)),o&&a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(wd,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(T_,hP({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&yP(n.prototype,r),o&&yP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();xP(kP,"displayName","PolarAngleAxis"),xP(kP,"axisType","angleAxis"),xP(kP,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var OP=Zp(Object.getPrototypeOf,Object),EP=nl,jP=OP,AP=ll,TP=Function.prototype,MP=Object.prototype,PP=TP.toString,DP=MP.hasOwnProperty,LP=PP.call(Object);var IP=ct((function(e){if(!AP(e)||"[object Object]"!=EP(e))return!1;var t=jP(e);if(null===t)return!0;var n=DP.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&PP.call(n)==LP}));function RP(e){return RP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RP(e)}function NP(){return NP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NP.apply(this,arguments)}function BP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BP(Object(n),!0).forEach((function(t){$P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WP(r.key),r)}}function HP(e,t){return HP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HP(e,t)}function VP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=UP(e);if(t){var o=UP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return KP(e)}(this,n)}}function KP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UP(e){return UP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UP(e)}function $P(e,t,n){return(t=WP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WP(e){var t=function(e,t){if("object"!==RP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RP(t)?t:String(t)}var qP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HP(e,t)}(a,t.PureComponent);var n,r,o,i=VP(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),$P(KP(t=i.call(this,e)),"pieRef",null),$P(KP(t),"sectorRefs",[]),$P(KP(t),"id",Nf("recharts-pie-")),$P(KP(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),al(e)&&e()})),$P(KP(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),al(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,c=ld(this.props),l=ld(r),u=ld(o),f=r&&r.offsetRadius||20,d=e.map((function(e,n){var d=(e.startAngle+e.endAngle)/2,p=MT(e.cx,e.cy,e.outerRadius+f,d),h=FP(FP(FP(FP({},c),e),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(p.x,e.cx)},p),g=FP(FP(FP(FP({},c),e),{},{fill:"none",stroke:e.fill},u),{},{index:n,points:[MT(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),v=i;return wf(i)&&wf(s)?v="value":wf(i)&&(v=s),t.createElement(wd,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,JA(e,v)))}));return t.createElement(wd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,s=r.inactiveShape;return e.map((function(e,r){var c=s&&n.hasActiveIndex()?s:null,l=n.isActiveIndex(r)?o:c,u=FP(FP({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(wd,NP({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Gf(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(l,u))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(Cw,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?mf(e,"paddingAngle",0):0;if(n){var s=zf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=FP(FP({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var l=e.endAngle,f=e.startAngle,d=zf(0,l-f)(o),p=FP(FP({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(wd,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&P_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Lf(s)||!Lf(c)||!Lf(l)||!Lf(u))return null;var p=Bc("recharts-pie",i);return t.createElement(wd,{tabIndex:0,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),ZT.renderCallByParent(this.props,null,!1),(!f||d)&&cM.renderCallByParent(this.props,o,!1))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(_M,NP({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return al(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(T_,NP({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):IP(e)?t.createElement(dM,NP({tabIndex:-1},n,e)):t.createElement(dM,NP({tabIndex:-1},n))}}],r&&zP(n.prototype,r),o&&zP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();$P(qP,"displayName","Pie"),$P(qP,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Px.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),$P(qP,"parseDeltaAngle",(function(e,t){return Pf(t-e)*Math.min(Math.abs(t-e),360)})),$P(qP,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=ld(e.props),i=id(r,kC);return n&&n.length?n.map((function(e,t){return FP(FP(FP({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return FP(FP({},o),e.props)})):[]})),$P(qP,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=PT(o,i);return{cx:r+Bf(e.props.cx,o,o/2),cy:n+Bf(e.props.cy,i,i/2),innerRadius:Bf(e.props.innerRadius,a,0),outerRadius:Bf(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),$P(qP,"getComposedData",(function(e){var t=e.item,n=e.offset,r=qP.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,l=o.dataKey,u=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=qP.parseCoordinateOfPie(t,n),g=qP.parseDeltaAngle(a,s),v=Math.abs(g),y=l;wf(l)&&wf(f)?(wC(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):wf(l)&&(wC(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var m,b,w=r.filter((function(e){return 0!==JA(e,y,0)})).length,x=v-w*p-(v>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=JA(t,y,0);return e+(Lf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=JA(e,y,0),o=JA(e,u,t),s=(Lf(r)?r:0)/C,l=(n=t?b.endAngle+Pf(g)*c*(0!==r?1:0):a)+Pf(g)*((0!==r?p:0)+s*x),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:y,type:d}],w=MT(h.cx,h.cy,v,f);return b=FP(FP(FP({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},e),h),{},{value:JA(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:Pf(g)*c})})));return FP(FP({},h),{},{sectors:m,data:r})}));var ZP=Math.ceil,GP=Math.max;var YP=function(e,t,n,r){for(var o=-1,i=GP(ZP((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},XP=nC,JP=1/0;var QP=function(e){return e?(e=XP(e))===JP||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},eD=YP,tD=bx,nD=QP;var rD=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&tD(t,n,r)&&(n=r=void 0),t=nD(t),void 0===n?(n=t,t=0):n=nD(n),r=void 0===r?t<n?1:-1:nD(r),eD(t,n,r,e)}}());function oD(e){return oD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oD(e)}function iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iD(Object(n),!0).forEach((function(t){sD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sD(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==oD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oD(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cD=["Webkit","Moz","O","ms"];function lD(e){return lD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lD(e)}function uD(){return uD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uD.apply(this,arguments)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fD(Object(n),!0).forEach((function(t){mD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bD(r.key),r)}}function hD(e,t){return hD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hD(e,t)}function gD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yD(e);if(t){var o=yD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vD(e)}(this,n)}}function vD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yD(e){return yD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yD(e)}function mD(e,t,n){return(t=bD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bD(e){var t=function(e,t){if("object"!==lD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lD(t)?t:String(t)}var wD=function(e){return e.changedTouches&&!!e.changedTouches.length},xD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hD(e,t)}(a,t.PureComponent);var n,r,o,i=gD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),mD(vD(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),mD(vD(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),mD(vD(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),mD(vD(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),mD(vD(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),mD(vD(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),mD(vD(t),"handleSlideDragStart",(function(e){var n=wD(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(vD(t),"startX"),endX:t.handleTravellerDragStart.bind(vD(t),"endX")},t.state={},t}return n=a,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,c=Math.min(t,n),l=Math.max(t,n),u=a.getIndexInRange(r,c),f=a.getIndexInRange(r,l);return{startIndex:u-u%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=JA(n[e],o,e);return al(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,l=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=wD(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],c=this.props,l=c.x,u=c.width,f=c.travellerWidth,d=c.onChange,p=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+u-f-s):v<0&&(v=Math.max(v,l-s)),g[o]=s+v;var y=this.getIndex(g),m=y.startIndex,b=y.endIndex;this.setState((mD(t={},o,s+v),mD(t,"brushMoveStartX",e.pageX),t),(function(){var e;d&&(e=h.length-1,("startX"===o&&(i>a?m%p==0:b%p==0)||i<a&&b===e||"endX"===o&&(i>a?b%p==0:m%p==0)||i>a&&b===e)&&d(y))}))}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,l=t.Children.only(s);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,s=r.height,c=r.traveller,l=Math.max(e,this.props.x),u=dD(dD({},ld(this.props)),{},{x:l,y:o,width:i,height:s});return t.createElement(wd,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(c,u))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,l=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,l=c.startX,u=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(wd,{className:"recharts-brush-texts"},t.createElement(T_,uD({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(T_,uD({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving;if(!n||!n.length||!Lf(i)||!Lf(a)||!Lf(s)||!Lf(c)||s<=0||c<=0)return null;var v=Bc("recharts-brush",r),y=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=cD.reduce((function(e,r){return aD(aD({},e),{},sD({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(wd,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return dD({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=AS().domain(rD(0,s)).range([o,o+i-a]),l=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&pD(n.prototype,r),o&&pD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();mD(xD,"displayName","Brush"),mD(xD,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var CD=Iw;var _D=function(e,t){var n;return CD(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},SD=Bd,kD=Vg,OD=_D,ED=sl,jD=bx;var AD=function(e,t,n){var r=ED(e)?SD:OD;return n&&jD(e,t,n)&&(t=void 0),r(e,kD(t))},TD=ct(AD),MD=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var PD=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},DD=Iw;var LD=function(e,t){var n=!0;return DD(e,(function(e,r,o){return n=!!t(e,r,o)})),n},ID=PD,RD=LD,ND=Vg,BD=sl,FD=bx;var zD=function(e,t,n){var r=BD(e)?ID:RD;return n&&FD(e,t,n)&&(t=void 0),r(e,ND(t))},HD=ct(zD),VD=ix;var KD=function(e,t,n){"__proto__"==t&&VD?VD(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},UD=KD,$D=Pw,WD=Vg;var qD=function(e,t){var n={};return t=WD(t),$D(e,(function(e,r,o){UD(n,r,t(e,r,o))})),n},ZD=ct(qD),GD=["value","background"];function YD(e){return YD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YD(e)}function XD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JD(){return JD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JD.apply(this,arguments)}function QD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QD(Object(n),!0).forEach((function(t){aL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sL(r.key),r)}}function nL(e,t){return nL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nL(e,t)}function rL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iL(e);if(t){var o=iL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oL(e)}(this,n)}}function oL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iL(e){return iL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iL(e)}function aL(e,t,n){return(t=sL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sL(e){var t=function(e,t){if("object"!==YD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YD(t)?t:String(t)}var cL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nL(e,t)}(a,t.PureComponent);var n,r,o,i=rL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aL(oL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),aL(oL(e),"id",Nf("recharts-bar-")),aL(oL(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),aL(oL(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props.shape,o=ld(this.props);return e&&e.map((function(e,i){var s=eL(eL(eL({},o),e),{},{index:i});return t.createElement(wd,JD({className:"recharts-bar-rectangle"},Gf(n.props,e,i),{key:"rectangle-".concat(i)}),a.renderRectangle(r,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,l=n.animationId,u=this.state.prevData;return t.createElement(Cw,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=zf(n.x,e.x),a=zf(n.y,e.y),s=zf(n.width,e.width),c=zf(n.height,e.height);return eL(eL({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var l=zf(0,e.height)(i);return eL(eL({},e),{},{y:e.y+e.height-l,height:l})}var f=zf(0,e.width)(i);return eL(eL({},e),{},{width:f})}));return t.createElement(wd,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&P_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=ld(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=XD(t,GD);if(!o)return null;var s=eL(eL(eL(eL(eL({},i),{},{fill:"#eee"},o),n),Gf(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,$A);if(!c)return null;var l="vertical"===s?o[0].height/2:o[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:JA(e,t)}},f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,f,c.map((function(e,n){return t.cloneElement(e,{key:"error-bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Bc("recharts-bar",o),v=i&&i.allowDataOverflow,y=a&&a.allowDataOverflow,m=v||y,b=wf(p)?this.id:p;return t.createElement(wd,{className:g},v||y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:v?s:s-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,t.createElement(wd,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!f||h)&&cM.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(AM,n)}}],r&&tL(n.prototype,r),o&&tL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function lL(e){return lL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lL(e)}function uL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hL(r.key),r)}}function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fL(Object(n),!0).forEach((function(t){pL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pL(e,t,n){return(t=hL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e){var t=function(e,t){if("object"!==lL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lL(t)?t:String(t)}aL(cL,"displayName","Bar"),aL(cL,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Px.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),aL(cL,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,v=g.dataKey,y=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=l?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=id(y,kC),_=f.map((function(e,t){var r,f,d,g,y,b;if(l?r=function(e,t){if(!t||2!==t.length||!Lf(t[0])||!Lf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Lf(e[0])||e[0]<n)&&(o[0]=n),(!Lf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(l[u+t],w):(r=JA(e,v),cl(r)||(r=[x,r])),"horizontal"===h){var _,S=[a.scale(r[0]),a.scale(r[1])],k=S[0],O=S[1];f=gT({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=O?O:k)&&void 0!==_?_:void 0,g=p.size;var E=k-O;if(y=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(y)<Math.abs(m)){var j=Pf(y||m)*(Math.abs(m)-Math.abs(y));d-=j,y+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],M=A[1];if(f=T,d=gT({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=M-T,y=p.size,b={x:i.x,y:d,width:i.width,height:y},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=Pf(g||m)*(Math.abs(m)-Math.abs(g))}return eL(eL(eL({},e),{},{x:f,y:d,width:g,height:y,value:l?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[CT(n,e)],tooltipPosition:{x:f+g/2,y:d+y/2}})}));return eL({data:_,layout:h},d)}));var gL=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!ad(c,cL);return l.reduce((function(i,a){var c,l,d,p,h,g=t[a],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,C="".concat(v).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var _=y[1]-y[0],S=1/0,k=g.categoricalDomain.sort();k.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(k[t-1]||0),S))}));var O=S/_,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=O*E/2),"no-gap"===g.padding){var j=Bf(e.barCategoryGap,O*E),A=O*E/2;c=A-j-(A-j)/E*j}}l="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(l=[l[1],l[0]]);var T=cT(g,o,f),M=T.scale,P=T.realScaleType;M.domain(y).range(l),uT(M);var D=pT(M,dL(dL({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,d=n.left,p=u[C]-h*g.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,d=u[C]-h*g.width,p=n.top);var L=dL(dL(dL({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=wT(L,D),g.hide||"xAxis"!==r?g.hide||(u[C]+=(h?-1:1)*L.width):u[C]+=(h?-1:1)*L.height,dL(dL({},i),{},pL({},a,L))}),{})},vL=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},yL=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&uL(t.prototype,n),r&&uL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();pL(yL,"EPS",1e-4);var mL=function(e){var t=Object.keys(e).reduce((function(t,n){return dL(dL({},t),{},pL({},n,yL.create(e[n])))}),{});return dL(dL({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return ZD(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return HD(e,(function(e,n){return t[n].isInRange(e)}))}})};var bL=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)};function wL(e){return wL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wL(e)}function xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xL(Object(n),!0).forEach((function(t){_L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OL(){return OL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OL.apply(this,arguments)}function EL(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,l=e.alwaysShow,u=e.clipPathId;wC(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,c=i.width,l=i.height,u=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:u});if(MD(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+c,y:p},{x:a,y:p}];return"left"===d?h.reverse():h}if(t){var g=o.x,v=o.xAxis.orientation,y=e.x.apply(g,{position:u});if(MD(o,"discard")&&!e.x.isInRange(y))return null;var m=[{x:y,y:s+l},{x:y,y:s}];return"top"===v?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:u})}));return MD(o,"discard")&&TD(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(mL({x:i.scale,y:a.scale}),If(n),If(r),o&&2===o.length,e);if(!f)return null;var d=SL(f,2),p=d[0],h=p.x,g=p.y,v=d[1],y=v.x,m=v.y,b=CL(CL({clipPath:MD(e,"hidden")?"url(#".concat(u,")"):void 0},ld(e,!0)),{},{x1:h,y1:g,x2:y,y2:m});return t.createElement(wd,{className:Bc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement("line",OL({},n,{className:"recharts-reference-line-line"}))}(s,b),ZT.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return vL({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:y,y2:m})))}function jL(e){return jL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jL(e)}function AL(){return AL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AL.apply(this,arguments)}function TL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ML(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TL(Object(n),!0).forEach((function(t){PL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}EL.displayName="ReferenceLine",EL.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function DL(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=If(n),c=If(r);if(wC(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=mL({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return MD(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,h=ML(ML({clipPath:MD(e,"hidden")?"url(#".concat(a,")"):void 0},ld(e,!0)),{},{cx:u,cy:f});return t.createElement(wd,{className:Bc("recharts-reference-dot",p)},DL.renderDot(d,h),ZT.renderCallByParent(e,{x:u-o,y:f-o,width:2*o,height:2*o}))}function LL(e){return LL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LL(e)}function IL(){return IL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IL.apply(this,arguments)}function RL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RL(Object(n),!0).forEach((function(t){BL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==LL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}DL.displayName="ReferenceDot",DL.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},DL.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(FM,AL({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function FL(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;wC(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=If(n),u=If(r),f=If(o),d=If(i),p=e.shape;if(!(l||u||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,l=o.xAxis,u=o.yAxis;if(!l||!u)return null;var f=mL({x:l.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!MD(o,"discard")||f.isInRange(d)&&f.isInRange(p)?vL(d,p):null}(l,u,f,d,e);if(!h&&!p)return null;var g=MD(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(wd,{className:Bc("recharts-reference-area",a)},FL.renderRect(p,NL(NL({clipPath:g},ld(e,!0)),h)),ZT.renderCallByParent(e,h))}function zL(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function HL(e){return HL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HL(e)}function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VL(Object(n),!0).forEach((function(t){UL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==HL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $L(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return bL(r,n)}function WL(e,t){var n,r,o=e.angle,i=e.ticks,a=e.tickFormatter,s=e.viewBox,c=e.orientation,l=e.minTickGap,u=e.unit,f=e.fontSize,d=e.letterSpacing,p=s.x,h=s.y,g=s.width,v=s.height,y="top"===c||"bottom"===c?"width":"height",m=(i||[]).slice(),b=u&&"width"===y?b_(u,{fontSize:f,letterSpacing:d}):{width:0,height:0},w=m.length,x=w>=2?Pf(m[1].coordinate-m[0].coordinate):1;if(1===x?(n="width"===y?p:h,r="width"===y?p+g:h+v):(n="width"===y?p+g:h+v,r="width"===y?p:h),t){var C=i[w-1],_=al(a)?a(C.value,w-1):C.value,S="width"===y?$L(b_(_,{fontSize:f,letterSpacing:d}),b,o):b_(_,{fontSize:f,letterSpacing:d})[y],k=x*(C.coordinate+x*S/2-r);m[w-1]=C=KL(KL({},C),{},{tickCoord:k>0?C.coordinate-k*x:C.coordinate}),x*(C.tickCoord-x*S/2-n)>=0&&x*(C.tickCoord+x*S/2-r)<=0&&(r=C.tickCoord-x*(S/2+l),m[w-1]=KL(KL({},C),{},{isShow:!0}))}for(var O=t?w-1:w,E=0;E<O;E++){var j=m[E],A=al(a)?a(j.value,E):j.value,T="width"===y?$L(b_(A,{fontSize:f,letterSpacing:d}),b,o):b_(A,{fontSize:f,letterSpacing:d})[y];if(0===E){var M=x*(j.coordinate-x*T/2-n);m[E]=j=KL(KL({},j),{},{tickCoord:M<0?j.coordinate-M*x:j.coordinate})}else m[E]=j=KL(KL({},j),{},{tickCoord:j.coordinate});x*(j.tickCoord-x*T/2-n)>=0&&x*(j.tickCoord+x*T/2-r)<=0&&(n=j.tickCoord+x*(T/2+l),m[E]=KL(KL({},j),{},{isShow:!0}))}return m}function qL(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(Lf(c)||Px.isSsr)return function(e,t){return zL(e,t+1)}(o,"number"==typeof c&&Lf(c)?c:0);var d=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=zL(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=zL(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(d=WL({angle:f,ticks:o,tickFormatter:l,viewBox:i,orientation:s,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(d="preserveStart"===c||"preserveStartEnd"===c?WL({angle:f,ticks:o,tickFormatter:l,viewBox:i,orientation:s,minTickGap:a,unit:u,fontSize:t,letterSpacing:n},"preserveStartEnd"===c):function(e){var t,n,r=e.angle,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,l=e.unit,u=e.fontSize,f=e.letterSpacing,d=a.x,p=a.y,h=a.width,g=a.height,v="top"===s||"bottom"===s?"width":"height",y=l&&"width"===v?b_(l,{fontSize:u,letterSpacing:f}):{width:0,height:0},m=(o||[]).slice(),b=m.length,w=b>=2?Pf(m[1].coordinate-m[0].coordinate):1;1===w?(t="width"===v?d:p,n="width"===v?d+h:p+g):(t="width"===v?d+h:p+g,n="width"===v?d:p);for(var x=b-1;x>=0;x--){var C=m[x],_=al(i)?i(C.value,b-x-1):C.value,S="width"===v?$L(b_(_,{fontSize:u,letterSpacing:f}),y,r):b_(_,{fontSize:u,letterSpacing:f})[v];if(x===b-1){var k=w*(C.coordinate+w*S/2-n);m[x]=C=KL(KL({},C),{},{tickCoord:k>0?C.coordinate-k*w:C.coordinate})}else m[x]=C=KL(KL({},C),{},{tickCoord:C.coordinate});w*(C.tickCoord-w*S/2-t)>=0&&w*(C.tickCoord+w*S/2-n)<=0&&(n=C.tickCoord-w*(S/2+c),m[x]=KL(KL({},C),{},{isShow:!0}))}return m}({angle:f,ticks:o,tickFormatter:l,viewBox:i,orientation:s,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),d.filter((function(e){return e.isShow})))}FL.displayName="ReferenceArea",FL.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},FL.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(AM,IL({},n,{className:"recharts-reference-area-rect"}))};var ZL=["viewBox"],GL=["viewBox"],YL=["ticks"];function XL(e){return XL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XL(e)}function JL(){return JL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JL.apply(this,arguments)}function QL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QL(Object(n),!0).forEach((function(t){aI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sI(r.key),r)}}function rI(e,t){return rI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rI(e,t)}function oI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iI(e);if(t){var o=iI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function iI(e){return iI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iI(e)}function aI(e,t,n){return(t=sI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sI(e){var t=function(e,t){if("object"!==XL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XL(t)?t:String(t)}var cI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rI(e,t)}(a,t.Component);var n,r,o,i=oI(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=tI(e,ZL),o=this.props,i=o.viewBox,a=tI(o,GL);return!Vf(n,i)||!Vf(r,a)||!Vf(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,l=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,v=h?-1:1,y=e.tickSize||p,m=Lf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-v*y)-v*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*u)-v*y)-v*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*u)+v*y)+v*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+v*y)+v*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,l=eI(eI(eI({},ld(this.props)),ld(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);l=eI(eI({},l),{},{x1:n,y1:r+u*i,x2:n+o,y2:r+u*i})}else{var f=+("left"===a&&!s||"right"===a&&s);l=eI(eI({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",JL({},l,{className:Bc("recharts-cartesian-axis-line",mf(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,l=i.tick,u=i.tickFormatter,f=i.unit,d=qL(eI(eI({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=ld(this.props),v=ld(l),y=eI(eI({},g),{},{fill:"none"},ld(s)),m=d.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=eI(eI(eI(eI({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},v),m),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:u});return t.createElement(wd,JL({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Gf(o.props,e,n)),s&&t.createElement("line",JL({},y,i,{className:Bc("recharts-cartesian-axis-tick-line",mf(s,"className"))})),l&&a.renderTickItem(l,b,"".concat(al(u)?u(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,l=c.ticks,u=tI(c,YL),f=l;return al(a)&&(f=l&&l.length>0?a(this.props):a(u)),o<=0||i<=0||!f||!f.length?null:t.createElement(wd,{className:Bc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),ZT.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(T_,JL({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&nI(n.prototype,r),o&&nI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();aI(cI,"displayName","CartesianAxis"),aI(cI,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var lI=["x1","y1","x2","y2","key"];function uI(e){return uI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uI(e)}function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fI.apply(this,arguments)}function dI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wI(r.key),r)}}function vI(e,t){return vI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vI(e,t)}function yI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mI(e);if(t){var o=mI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===uI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mI(e){return mI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mI(e)}function bI(e,t,n){return(t=wI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wI(e){var t=function(e,t){if("object"!==uI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uI(t)?t:String(t)}var xI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vI(e,t)}(a,t.PureComponent);var n,r,o,i=yI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var n=this,r=this.props,o=r.x,i=r.width,s=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=hI(hI({},n.props),{},{x1:o,y1:e,x2:o+i,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var n=this,r=this.props,o=r.y,i=r.height,s=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=hI(hI({},n.props),{},{x1:e,y1:o,x2:e,y2:o+i,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,l=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==l[0]&&l.unshift(0);var u=l.map((function(e,r){var u=l[r+1]?l[r+1]-e:i+s-e;if(u<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:u,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(e){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,l=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var u=l.map((function(e,r){var u=l[r+1]?l[r+1]-e:a+c-e;if(u<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:u,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,s=n.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,u=e.xAxis,f=e.yAxis,d=e.offset,p=e.chartWidth,h=e.chartHeight;if(!Lf(o)||o<=0||!Lf(i)||i<=0||!Lf(n)||n!==+n||!Lf(r)||r!==+r)return null;var g=this.props,v=g.horizontalPoints,y=g.verticalPoints;return v&&v.length||!al(c)||(v=c({yAxis:f,width:p,height:h,offset:d})),y&&y.length||!al(l)||(y=l({xAxis:u,width:p,height:h,offset:d})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),s&&this.renderVertical(y),a&&this.renderHorizontalStripes(v),s&&this.renderVerticalStripes(y))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(al(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,l=dI(n,lI);r=t.createElement("line",fI({},ld(l),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&gI(n.prototype,r),o&&gI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();bI(xI,"displayName","CartesianGrid"),bI(xI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var CI=["type","layout","connectNulls","ref"];function _I(e){return _I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_I(e)}function SI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kI(){return kI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kI.apply(this,arguments)}function OI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OI(Object(n),!0).forEach((function(t){II(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(e){return function(e){if(Array.isArray(e))return AI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return AI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AI(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RI(r.key),r)}}function MI(e,t){return MI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MI(e,t)}function PI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LI(e);if(t){var o=LI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DI(e)}(this,n)}}function DI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LI(e){return LI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LI(e)}function II(e,t,n){return(t=RI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RI(e){var t=function(e,t){if("object"!==_I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_I(t)?t:String(t)}var NI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MI(e,t)}(a,t.PureComponent);var n,r,o,i=PI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return II(DI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),II(DI(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,c=[],l=0,u=0;;u+=n[l],++l)if(u+n[l]>i){c=[].concat(jI(n.slice(0,l)),[i-u]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(jI(a.repeat(n,o)),jI(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),II(DI(e),"id",Nf("recharts-line-")),II(DI(e),"pathRef",(function(t){e.mainCurve=t})),II(DI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),II(DI(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,$A);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:JA(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,u,c.map((function(e,n){return t.cloneElement(e,{key:"bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,s=o.points,c=o.dataKey,l=ld(this.props),u=ld(i,!0),f=s.map((function(e,t){var n=EI(EI(EI({key:"dot-".concat(t),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(i,n)})),d={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return t.createElement(wd,kI({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var l=SI(i,CI),u=EI(EI(EI({},ld(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(_M,kI({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,l=o.animationDuration,u=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,v=g.prevPoints,y=g.totalLength;return t.createElement(Cw,{begin:c,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var s=v.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(v[n]){var r=v[n],i=zf(r.x,e.x),a=zf(r.y,e.y);return EI(EI({},e),{},{x:i(o),y:a(o)})}if(d){var c=zf(2*p,e.x),l=zf(h/2,e.y);return EI(EI({},e),{},{x:c(o),y:l(o)})}return EI(EI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var l,u=zf(0,y)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l="".concat(u,"px ").concat(y-u,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!P_(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,s=n.xAxis,c=n.yAxis,l=n.top,u=n.left,f=n.width,d=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,v=1===i.length,y=Bc("recharts-line",a),m=s&&s.allowDataOverflow,b=c&&c.allowDataOverflow,w=m||b,x=wf(h)?this.id:h,C=null!==(e=ld(o))&&void 0!==e?e:{r:3,strokeWidth:2},_=C.r,S=void 0===_?3:_,k=C.strokeWidth,O=void 0===k?2:k,E=(function(e){return e&&"object"===Qf(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===E||E,A=2*S+O;return t.createElement(wd,{className:y},m||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:m?u:u-f/2,y:b?l:l-d/2,width:m?f:2*f,height:b?d:2*d})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:u-A/2,y:l-A/2,width:f+A,height:d+A}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,j,x),(!p||g)&&cM.renderCallByParent(this.props,i))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(jI(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(jI(r),jI(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(al(e))r=e(n);else{var o=Bc("recharts-line-dot",e?e.className:"");r=t.createElement(FM,kI({},n,{className:o}))}return r}}],r&&TI(n.prototype,r),o&&TI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();II(NI,"displayName","Line"),II(NI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Px.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),II(NI,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout,f=c.map((function(e,t){var c=JA(e,a);return"horizontal"===u?{x:hT({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:wf(c)?null:r.scale(c),value:c,payload:e}:{x:wf(c)?null:n.scale(c),y:hT({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return EI({points:f,layout:u},l)}));var BI=function(){return null};BI.displayName="XAxis",BI.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var FI=function(){return null};FI.displayName="YAxis",FI.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var zI=Vg,HI=nh,VI=ah;var KI=function(e){return function(t,n,r){var o=Object(t);if(!HI(t)){var i=zI(n);t=VI(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},UI=QP;var $I=Kg,WI=Vg,qI=function(e){var t=UI(e),n=t%1;return t==t?n?t-n:t:0},ZI=Math.max;var GI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:qI(n);return o<0&&(o=ZI(r+o,0)),$I(e,WI(t),o)},YI=ct(KI(GI)),XI=nl,JI=ll;var QI=ct((function(e){return!0===e||!1===e||JI(e)&&"[object Boolean]"==XI(e)}));function eR(e){return function(e){if(Array.isArray(e))return tR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tR(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nR=function(e,t,n,r,o){var i=id(e,EL),a=id(e,DL),s=[].concat(eR(i),eR(a)),c=id(e,FL),l="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&MD(t.props,"extendDomain")&&Lf(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(u,"1"),p="".concat(u,"2");f=c.reduce((function(e,t){if(t.props[l]===n&&MD(t.props,"extendDomain")&&Lf(t.props[d])&&Lf(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Lf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},rR={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(rR);var oR=new(ct(rR.exports));oR.setMaxListeners&&oR.setMaxListeners(10);var iR="recharts.syncMouseEvents";function aR(e){return aR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aR(e)}function sR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lR(r.key),r)}}function cR(e,t,n){return(t=lR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e){var t=function(e,t){if("object"!==aR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aR(t)?t:String(t)}var uR=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cR(this,"activeIndex",0),cR(this,"coordinateList",[]),cR(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t=e.coordinateList,n=void 0===t?[]:t,r=e.container,o=void 0===r?null:r,i=e.layout,a=void 0===i?null:i,s=e.offset,c=void 0===s?null:s,l=e.mouseHandlerCallback,u=void 0===l?null:l;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=u?u:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=t+this.coordinateList[this.activeIndex].coordinate,o=n+this.offset.top;this.mouseHandlerCallback({pageX:r,pageY:o})}}}],n&&sR(t.prototype,n),r&&sR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),fR=["item"],dR=["children","className","width","height","style","compact","title","desc"];function pR(e){return pR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pR(e)}function hR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||_R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gR.apply(this,arguments)}function vR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jR(r.key),r)}}function mR(e,t){return mR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mR(e,t)}function bR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xR(e);if(t){var o=xR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wR(e)}(this,n)}}function wR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xR(e){return xR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xR(e)}function CR(e){return function(e){if(Array.isArray(e))return SR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _R(e,t){if(e){if("string"==typeof e)return SR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SR(e,t):void 0}}function SR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kR(Object(n),!0).forEach((function(t){ER(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ER(e,t,n){return(t=jR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}var AR={xAxis:["bottom","top"],yAxis:["left","right"]},TR={x:0,y:0},MR=Number.isFinite?Number.isFinite:isFinite,PR="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,DR="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,LR=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(CR(e),CR(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Lf(o)&&Lf(i)?e.slice(o,i+1):[]};function IR(e){return"number"===e?[0,"auto"]:void 0}var RR=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=LR(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=Hf(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(CR(e),[CT(t,o)]):e}),[])},NR=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var l=c>0?r[c-1].coordinate:r[a-1].coordinate,u=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(Pf(u-l)!==Pf(f-u)){var p=[];if(Pf(f-u)===Pf(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var g=f+s[1]-s[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){i=r[c].index;break}}else{var y=Math.min(l,f),m=Math.max(l,f);if(e>(y+u)/2&&e<=(m+u)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(l>=0&&c){var u=c[l]&&c[l].value,f=RR(e,t,l,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return OR(OR(OR({},r),MT(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return OR(OR(OR({},r),MT(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return TR}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},BR=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,d=oT(l,o),p=n.reduce((function(t,n){var p,h=n.props,g=h.type,v=h.dataKey,y=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var _,S,k,O=LR(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Lf(r)&&Lf(o))return!0}return!1})(n.props.domain,y,g)&&(_=bT(n.props.domain,null,y),!d||"number"!==g&&"auto"===b||(k=QA(O,v,"category")));var j=IR(g);if(!_||0===_.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(v){if(_=QA(O,v,g),"category"===g&&d){var M=function(e){if(!cl(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(_);m&&M?(S=_,_=rD(0,E)):m||(_=xT(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(CR(e),[t])}),[]))}else if("category"===g)_=m?_.filter((function(e){return""!==e&&!wf(e)})):xT(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||wf(t)?e:[].concat(CR(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return nT(e,t,n,o,r)})).filter((function(e){return!wf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),v,o,l);P&&(_=P)}!d||"number"!==g&&"auto"===b||(k=QA(O,v,"category"))}else _=d?rD(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:vT(a[C].stackGroups,s,c):rT(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,l,!0);if("number"===g)_=nR(u,_,C,o,w),T&&(_=bT(T,_,y));else if("category"===g&&T){var D=T;_.every((function(e){return D.indexOf(e)>=0}))&&(_=D)}}return OR(OR({},t),{},ER({},C,OR(OR({},n.props),{},{axisType:o,domain:_,categoricalDomain:k,duplicateDomain:S,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:l})))}),{});return p},FR=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=id(l,o),d={};return f&&f.length?d=BR(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=LR(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=oT(l,o),h=-1;return n.reduce((function(e,t){var g,v=t.props[i],y=IR("number");return e[v]?e:(h++,p?g=rD(0,d):a&&a[v]&&a[v].hasStack?(g=vT(a[v].stackGroups,s,c),g=nR(u,g,v,o)):(g=bT(y,rT(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),g=nR(u,g,v,o)),OR(OR({},e),{},ER({},v,OR(OR({axisType:o},r.defaultProps),{},{hide:!0,orientation:mf(AR,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:y,isCategorical:p,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},zR=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=ad(r,xD);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!wf(o)&&o}},HR=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},VR=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,l=n.children,u=n.margin||{},f=ad(l,xD),d=ad(l,wm),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:OR(OR({},e),{},ER({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:OR(OR({},e),{},ER({},r,mf(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=OR(OR({},h),p),v=g.bottom;return f&&(g.bottom+=f.props.height||xD.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=tT({children:o,legendWidth:s}),l=e;if(c){var u=r||{},f=c.align,d=c.verticalAlign,p=c.layout;("vertical"===p||"horizontal"===p&&"middle"===d)&&Lf(e[f])&&(l=YA(YA({},e),{},XA({},f,l[f]+(u.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&Lf(e[d])&&(l=YA(YA({},e),{},XA({},d,l[d]+(u.height||0))))}return l}(g,0,n,t)),OR(OR({brushBottom:v},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},KR=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=HR(u),g=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=td(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,l=Object.keys(c),u=0,f=l.length;u<f;u++){var d=c[l[u]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return td(e.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].props.barSize,y=g[0].props[h];o[y]||(o[y]=[]),o[y].push({item:g[0],stackList:g.slice(1),barSize:wf(v)?t:v})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=LR(e.data,{dataStartIndex:a,dataEndIndex:s},n),y=n.props,w=y.dataKey,x=y.maxBarSize,C=n.props["".concat(g,"Id")],_=n.props["".concat(v,"Id")],S=l.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return OR(OR({},e),{},(ER(o={},r.axisType,s),ER(o,"".concat(r.axisType,"Ticks"),aT(s)),o))}),{}),k=S[v],O=S["".concat(v,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(If(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),j=td(n.type).indexOf("Bar")>=0,A=wT(k,O),T=[];if(j){var M,P,D=wf(x)?p:x,L=null!==(M=null!==(P=wT(k,O,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,l=Bf(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var u=!1,f=r/s,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(s-1)*l)>=r&&(d-=(s-1)*l,l=0),d>=r&&f>0&&(u=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-l,size:0};c=i.reduce((function(e,t){var n=[].concat(qA(e),[{item:t.item,position:{offset:p.offset+p.size+l,size:u?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=Bf(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var g=(r-2*h-(s-1)*l)/s;g>1&&(g>>=0);var v=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(qA(e),[{item:t.item,position:{offset:h+(g+l)*n+(g-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[_],maxBarSize:D}),L!==A&&(T=T.map((function(e){return OR(OR({},e),{},{position:OR(OR({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:OR(OR({},B(OR(OR({},S),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(c)},ER(I,g,S[g]),ER(I,v,S[v]),ER(I,"animationId",i),I)),childIndex:(R=n,N=e.children,od(N).indexOf(R)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!sd({props:n}))return null;var c=n.children,u=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,v=HR(u),y=v.numericAxisName,m=v.cateAxisName,b=id(c,o),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(If(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Nf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return YA(YA({},e),{},XA({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return YA(YA({},t),{},XA({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:dT(e,a.items,o)}))}),{})),YA(YA({},t),{},XA({},i,s))}),{})}(h,b,"".concat(y,"Id"),"".concat(m,"Id"),d,g),x=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return OR(OR({},e),{},ER({},r,FR(n,OR(OR({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=VR(OR(OR({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var _,S,k=x["".concat(m,"Map")],O=(_=Ff(k),{tooltipTicks:S=aT(_,!1,!0),orderedTooltipTicks:_x(S,(function(e){return e.coordinate})),tooltipAxis:_,tooltipAxisBandSize:wT(_,S)}),E=p(n,OR(OR({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return OR(OR({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},O),x)};return n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mR(e,t)}(l,t.Component);var n,o,i,s=bR(l);function l(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),ER(wR(n=s.call(this,e)),"accessibilityManager",new uR),ER(wR(n),"clearDeferId",(function(){!wf(n.deferId)&&DR&&DR(n.deferId),n.deferId=null})),ER(wR(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(OR({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},OR(OR({},n.state),{},{legendBBox:e}))))}})),ER(wR(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=PR&&PR(n.applySyncEvent.bind(wR(n),r)))})),ER(wR(n),"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return OR({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),ER(wR(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=OR(OR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),al(t)&&t(o,e)}})),ER(wR(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?OR(OR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),al(t)&&t(o,e)})),ER(wR(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ER(wR(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),ER(wR(n),"handleMouseMove",(function(e){e&&al(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),ER(wR(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),al(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),ER(wR(n),"handleOuterEvent",(function(e){var t=function(e){var t=e&&e.type;return t&&ed[t]?ed[t]:null}(e),r=mf(n.props,"".concat(t));t&&al(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),ER(wR(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=OR(OR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),al(t)&&t(o,e)}})),ER(wR(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;al(t)&&t(n.getMouseInfo(e),e)})),ER(wR(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;al(t)&&t(n.getMouseInfo(e),e)})),ER(wR(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),ER(wR(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),ER(wR(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),ER(wR(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return iT(qL(OR(OR(OR({},cI.defaultProps),t),{},{ticks:aT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),ER(wR(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return iT(qL(OR(OR(OR({},cI.defaultProps),t),{},{ticks:aT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),ER(wR(n),"axesTicksGenerator",(function(e){return aT(e,!0)})),ER(wR(n),"renderCursor",(function(e){var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.offset,l=o.activeTooltipIndex,u=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==r&&"axis"!==u)return null;var f,d=n.props.layout,p=_M;if("ScatterChart"===r)f=a,p=VM;else if("BarChart"===r)f=n.getCursorRectangle(),p=AM;else if("radial"===d){var h=n.getCursorPoints(),g=h.cx,v=h.cy,y=h.radius;f={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},p=dM}else f={points:n.getCursorPoints()},p=_M;var m=e.key||"_recharts-cursor",b=OR(OR(OR(OR({stroke:"#ccc",pointerEvents:"none"},c),f),ld(e.props.cursor)),{},{payload:s,payloadIndex:l,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(p,b)})),ER(wR(n),"renderPolarAxis",(function(e,r,o){var i=mf(e,"type.axisType"),a=mf(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,OR(OR({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:aT(s,!0)}))})),ER(wR(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),ER(wR(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),ER(wR(n),"renderGrid",(function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,l=s.height,u=Ff(o),f=YI(i,(function(e){return HD(e.domain,MR)}))||Ff(i),d=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Lf(d.x)?d.x:a.left,y:Lf(d.y)?d.y:a.top,width:Lf(d.width)?d.width:a.width,height:Lf(d.height)?d.height:a.height,xAxis:u,yAxis:f,offset:a,chartWidth:c,chartHeight:l,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),ER(wR(n),"renderPolarGrid",(function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,l=s.angleAxisMap,u=Ff(c),f=Ff(l),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:cl(i)?i:aT(f,!0).map((function(e){return e.coordinate})),polarRadius:cl(a)?a:aT(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),ER(wR(n),"renderLegend",(function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},c=i-(s.left||0)-(s.right||0),l=tT({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:u});if(!l)return null;var f=l.item,d=vR(l,fR);return t.cloneElement(f,OR(OR({},d),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),ER(wR(n),"renderTooltip",(function(){var e=ad(n.props.children,Vx);if(!e)return null;var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,c=r.offset;return t.cloneElement(e,{viewBox:OR(OR({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),ER(wR(n),"renderBrush",(function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,l=a.dataEndIndex,u=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:sT(n.handleBrushChange,null,e.props.onChange),data:i,x:Lf(e.props.x)?e.props.x:s.left,y:Lf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Lf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),ER(wR(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=wR(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,l=a.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:i})})),ER(wR(n),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=OR(OR({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:eT(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},ld(u)),Zf(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,OR(OR({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),ER(wR(n),"renderGraphicChild",(function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,c=s.isTooltipActive,l=s.tooltipAxis,u=s.activeTooltipIndex,f=s.activeLabel,d=ad(n.props.children,Vx),p=i.props,h=p.points,g=p.isRange,v=p.baseLine,y=i.item.props,m=y.activeDot,b=!y.hide&&c&&d&&m&&u>=0,w={};"axis"!==a&&d&&"click"===d.props.trigger?w={onClick:sT(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:sT(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:sT(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,OR(OR({},i.props),w));if(b){var C,_;if(l.dataKey&&!l.allowDuplicatedCategory){var S="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());C=Hf(h,S,f),_=g&&v&&Hf(v,S,f)}else C=h[u],_=g&&v&&v[u];if(!wf(C))return[x].concat(CR(n.renderActivePoints({item:i,activePoint:C,basePoint:_,childIndex:u,isRange:g})))}return g?[x,null,null]:[x,null]})),ER(wR(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,OR(OR({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=wf(e.id)?Nf("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=pC(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=l,o=[{key:"componentDidMount",value:function(){var e,t;wf(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){wf(e.syncId)&&!wf(this.props.syncId)&&this.addListener(),!wf(e.syncId)&&wf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),wf(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=ad(this.props.children,Vx);if(e&&QI(e.props.shared)){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var l=Ff(s).scale,u=Ff(c).scale,f=l&&l.invert?l.invert(o.chartX):null,d=u&&u.invert?u.invert(o.chartY):null;return OR(OR({},o),{},{xValue:f,yValue:d})}var p=NR(this.state,this.props.data,this.props.layout,i);return p?OR(OR({},o),p):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!wf(a.cx)||!wf(a.cy)){if("centric"!==o){var c=a.cx,l=a.cy,u=a.radius,f=a.startAngle,d=a.endAngle;return{points:[MT(c,l,u,f),MT(c,l,u,d)],cx:c,cy:l,radius:u,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,g=a.innerRadius,v=a.outerRadius,y=a.angle,m=MT(p,h,g,y),b=MT(p,h,v,y);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=Ff(i);return IT({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=ad(e,Vx),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),OR(OR({},Zf(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){oR.on(iR,this.handleReceiveSyncEvent),oR.setMaxListeners&&oR._maxListeners&&oR.setMaxListeners(oR._maxListeners+1)}},{key:"removeListener",value:function(){oR.removeListener(iR,this.handleReceiveSyncEvent),oR.setMaxListeners&&oR._maxListeners&&oR.setMaxListeners(oR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;wf(t)||oR.emit(iR,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(wf(e.dataStartIndex)&&wf(e.dataEndIndex))if(wf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,l=e.activeTooltipIndex,u=this.state,f=u.offset,d=u.tooltipTicks;if(!f)return;if("function"==typeof r)l=r(d,e);else if("value"===r){l=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){l=p;break}}var g=OR(OR({},f),{},{x:f.left,y:f.top}),v=Math.min(s,g.x+g.width),y=Math.min(c,g.y+g.height),m=d[l]&&d[l].value,b=RR(this.state,this.props.data,l),w=d[l]?{x:"horizontal"===n?d[l].coordinate:v,y:"horizontal"===n?y:d[l].coordinate}:TR;this.setState(OR(OR({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:l}))}else this.setState(OR({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===td(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,s=i.height;return t.createElement(cI,gR({},e,{className:Bc("recharts-".concat(e.axisType," ").concat(e.axisType),e.className),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=hR(t,2),r=n[0],o=n[1];return OR(OR({},e),{},ER({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=hR(t,2),r=n[0],o=n[1];return OR(OR({},e),{},ER({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=td(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return jM(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var l=(i.data||[]).find((function(t){return IT(e,t)}));if(l)return{graphicalItem:o,payload:l}}}return null}},{key:"render",value:function(){var e=this;if(!sd(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,s=n.style,c=n.compact,l=n.title,u=n.desc,f=vR(n,dR),d=ld(f),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return t.createElement(vd,gR({},d,{width:i,height:a,title:l,desc:u}),this.renderClipPath(),dd(r,p));this.props.accessibilityLayer&&(d.tabIndex=0,d.role="img",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return t.createElement("div",gR({className:Bc("recharts-wrapper",o),style:OR({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(vd,gR({},d,{width:i,height:a,title:l,desc:u}),this.renderClipPath(),dd(r,p)),this.renderLegend(),this.renderTooltip())}}],o&&yR(n.prototype,o),i&&yR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(),ER(n,"displayName",r),ER(n,"defaultProps",OR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ER(n,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(wf(t.updateId)){var l=zR(e);return OR(OR(OR({},l),{},{updateId:0},h(OR(OR({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Vf(c,t.prevMargin)){var u=zR(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=OR(OR({},NR(t,n,a)),{},{updateId:t.updateId+1}),p=OR(OR(OR({},u),f),d);return OR(OR(OR({},p),h(OR({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!ud(r,t.prevChildren)){var g=!wf(n)?t.updateId:t.updateId+1;return OR(OR({updateId:g},h(OR(OR({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),ER(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):al(e)?e(n):t.createElement(FM,n),t.createElement(wd,{className:"recharts-active-dot",key:n.key},r)})),n},UR=KR({chartName:"LineChart",GraphicalChild:NI,axisComponents:[{axisType:"xAxis",AxisComp:BI},{axisType:"yAxis",AxisComp:FI}],formatAxisMap:gL}),$R=KR({chartName:"BarChart",GraphicalChild:cL,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:BI},{axisType:"yAxis",AxisComp:FI}],formatAxisMap:gL}),WR=KR({chartName:"PieChart",GraphicalChild:qP,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:kP},{axisType:"radiusAxis",AxisComp:dP}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,l=Bf(e.cx,i,i/2),u=Bf(e.cy,a,a/2),f=PT(i,a,n),d=Bf(e.innerRadius,f,0),p=Bf(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(wf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=ET(i=a.range,2);s=g[0],c=g[1]}var v=cT(a,o),y=v.realScaleType,m=v.scale;m.domain(f).range(i),uT(m);var b=pT(m,kT(kT({},a),{},{realScaleType:y})),w=kT(kT(kT({},a),b),{},{range:i,radius:p,realScaleType:y,scale:m,cx:l,cy:u,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return kT(kT({},e),{},OT({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const qR=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),cn,ln);function ZR(e){return ZR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZR(e)}function GR(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function YR(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function XR(e){YR(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ZR(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function JR(e,t){YR(2,arguments);var n=XR(e),r=GR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function QR(e,t){YR(2,arguments);var n=XR(e),r=GR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function eN(e,t){if(YR(2,arguments),!t||"object"!==ZR(t))return new Date(NaN);var n=t.years?GR(t.years):0,r=t.months?GR(t.months):0,o=t.weeks?GR(t.weeks):0,i=t.days?GR(t.days):0,a=t.hours?GR(t.hours):0,s=t.minutes?GR(t.minutes):0,c=t.seconds?GR(t.seconds):0,l=XR(e),u=r||n?QR(l,r+12*n):l,f=i||o?JR(u,i+7*o):u,d=1e3*(c+60*(s+60*a));return new Date(f.getTime()+d)}var tN={};function nN(){return tN}function rN(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function oN(e){YR(1,arguments);var t=XR(e);return t.setHours(0,0,0,0),t}var iN=864e5;function aN(e,t){YR(2,arguments);var n=oN(e),r=oN(t);return n.getTime()===r.getTime()}function sN(e){if(YR(1,arguments),!function(e){return YR(1,arguments),e instanceof Date||"object"===ZR(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=XR(e);return!isNaN(Number(t))}function cN(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function lN(e,t){YR(2,arguments);var n=XR(e),r=XR(t),o=cN(n,r),i=Math.abs(function(e,t){YR(2,arguments);var n=oN(e),r=oN(t),o=n.getTime()-rN(n),i=r.getTime()-rN(r);return Math.round((o-i)/iN)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(cN(n,r)===-o));return 0===a?0:a}var uN={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},fN="trunc";function dN(e){return e?uN[e]:uN[fN]}function pN(e,t,n){YR(2,arguments);var r=function(e,t){return YR(2,arguments),XR(e).getTime()-XR(t).getTime()}(e,t)/6e4;return dN(null==n?void 0:n.roundingMethod)(r)}function hN(e,t){return YR(2,arguments),function(e,t){YR(2,arguments);var n=XR(e).getTime(),r=GR(t);return new Date(n+r)}(e,-GR(t))}function gN(e){YR(1,arguments);var t=XR(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function vN(e){YR(1,arguments);var t=XR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=gN(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=gN(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function yN(e){YR(1,arguments);var t=XR(e),n=gN(t).getTime()-function(e){YR(1,arguments);var t=vN(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),gN(n)}(t).getTime();return Math.round(n/6048e5)+1}function mN(e,t){var n,r,o,i,a,s,c,l;YR(1,arguments);var u=nN(),f=GR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=XR(e),p=d.getUTCDay(),h=(p<f?7:0)+p-f;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function bN(e,t){var n,r,o,i,a,s,c,l;YR(1,arguments);var u=XR(e),f=u.getUTCFullYear(),d=nN(),p=GR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var g=mN(h,t),v=new Date(0);v.setUTCFullYear(f,0,p),v.setUTCHours(0,0,0,0);var y=mN(v,t);return u.getTime()>=g.getTime()?f+1:u.getTime()>=y.getTime()?f:f-1}function wN(e,t){YR(1,arguments);var n=XR(e),r=mN(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,l;YR(1,arguments);var u=nN(),f=GR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),d=bN(e,t),p=new Date(0);return p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0),mN(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function xN(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var CN={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return xN("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):xN(n+1,2)},d:function(e,t){return xN(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return xN(e.getUTCHours()%12||12,t.length)},H:function(e,t){return xN(e.getUTCHours(),t.length)},m:function(e,t){return xN(e.getUTCMinutes(),t.length)},s:function(e,t){return xN(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return xN(Math.floor(r*Math.pow(10,n-3)),t.length)}},_N=CN,SN="midnight",kN="noon",ON="morning",EN="afternoon",jN="evening",AN="night",TN={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return _N.y(e,t)},Y:function(e,t,n,r){var o=bN(e,r),i=o>0?o:1-o;return"YY"===t?xN(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):xN(i,t.length)},R:function(e,t){return xN(vN(e),t.length)},u:function(e,t){return xN(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return xN(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return xN(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return _N.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return xN(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=wN(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):xN(o,t.length)},I:function(e,t,n){var r=yN(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):xN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):_N.d(e,t)},D:function(e,t,n){var r=function(e){YR(1,arguments);var t=XR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):xN(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return xN(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return xN(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return xN(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?kN:0===o?SN:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?jN:o>=12?EN:o>=4?ON:AN,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _N.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):_N.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):xN(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):xN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):_N.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):_N.s(e,t)},S:function(e,t){return _N.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return PN(o);case"XXXX":case"XX":return DN(o);default:return DN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return PN(o);case"xxxx":case"xx":return DN(o);default:return DN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+MN(o,":");default:return"GMT"+DN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+MN(o,":");default:return"GMT"+DN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return xN(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return xN((r._originalDate||e).getTime(),t.length)}};function MN(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+xN(i,2)}function PN(e,t){return e%60==0?(e>0?"-":"+")+xN(Math.abs(e)/60,2):DN(e,t)}function DN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+xN(Math.floor(o/60),2)+n+xN(o%60,2)}var LN=TN,IN=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},RN=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},NN={p:RN,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return IN(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",IN(o,t)).replace("{{time}}",RN(i,t))}},BN=NN,FN=["D","DD"],zN=["YY","YYYY"];function HN(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var VN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KN=function(e,t,n){var r,o=VN[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function UN(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var $N={date:UN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UN({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:UN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},WN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qN=function(e,t,n,r){return WN[e]};function ZN(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var GN={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ZN({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ZN({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ZN({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ZN({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ZN({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},YN=GN;function XN(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(l):l,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var JN,QN={ordinalNumber:(JN={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(JN.matchPattern);if(!n)return null;var r=n[0],o=e.match(JN.parsePattern);if(!o)return null;var i=JN.valueCallback?JN.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:XN({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:XN({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:XN({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:XN({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:XN({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},eB={code:"en-US",formatDistance:KN,formatLong:$N,formatRelative:qN,localize:YN,match:QN,options:{weekStartsOn:0,firstWeekContainsDate:1}},tB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rB=/^'([^]*?)'?$/,oB=/''/g,iB=/[a-zA-Z]/;function aB(e,t,n){var r,o,i,a,s,c,l,u,f,d,p,h,g,v,y,m,b,w;YR(2,arguments);var x=String(t),C=nN(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:C.locale)&&void 0!==r?r:eB,S=GR(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==a?a:null===(f=C.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=GR(null!==(p=null!==(h=null!==(g=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(y=n.locale)||void 0===y||null===(m=y.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==h?h:null===(b=C.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var O=XR(e);if(!sN(O))throw new RangeError("Invalid time value");var E=hN(O,rN(O)),j={firstWeekContainsDate:S,weekStartsOn:k,locale:_,_originalDate:O},A=x.match(nB).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,BN[t])(e,_.formatLong):e})).join("").match(tB).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(rB);if(!t)return e;return t[1].replace(oB,"'")}(r);var i,a=LN[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===zN.indexOf(i))||HN(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==FN.indexOf(e)}(r)||HN(r,t,String(e)),a(E,r,_.localize,j);if(o.match(iB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function sB(e){return YR(1,arguments),XR(e).getDate()}function cB(e){YR(1,arguments);var t=XR(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function lB(e){YR(1,arguments);var t=XR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function uB(e,t){YR(2,arguments);var n=XR(e),r=XR(t);return n.getTime()>r.getTime()}function fB(e,t){YR(2,arguments);var n=XR(e),r=XR(t);return n.getTime()<r.getTime()}function dB(e){return YR(1,arguments),function(e,t){YR(2,arguments);var n=XR(e),r=XR(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function pB(e,t){return YR(2,arguments),JR(e,-GR(t))}function hB(e,t){if(YR(2,arguments),"object"!==ZR(t)||null===t)throw new RangeError("values parameter must be an object");var n=XR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){YR(2,arguments);var n=XR(e),r=GR(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=cB(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(GR(t.date)),null!=t.hours&&n.setHours(GR(t.hours)),null!=t.minutes&&n.setMinutes(GR(t.minutes)),null!=t.seconds&&n.setSeconds(GR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(GR(t.milliseconds)),n)}function gB(e,t){YR(2,arguments);var n=XR(e),r=GR(t);return n.setDate(r),n}function vB(e,t){if(YR(2,arguments),!t||"object"!==ZR(t))return new Date(NaN);var n=t.years?GR(t.years):0,r=t.months?GR(t.months):0,o=t.weeks?GR(t.weeks):0,i=t.days?GR(t.days):0,a=t.hours?GR(t.hours):0,s=t.minutes?GR(t.minutes):0,c=t.seconds?GR(t.seconds):0,l=function(e,t){return YR(2,arguments),QR(e,-GR(t))}(e,r+12*n),u=pB(l,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(u.getTime()-f)}const yB=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},mB=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),bB=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),wB=W.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),cn),xB=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(OB,{children:[e.jsx(EB,{children:r}),null==n?void 0:n.map((t=>{var n;const r=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color);return e.jsxs(kB,{children:[r&&e.jsx(qR,{color:r}),t.name,": ",mB(t.value||0)]},t.value)}))]}):null,CB=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Vx,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(xB,{})})},_B=({payload:t,toggleData:n})=>e.jsx(SB,{children:null==t?void 0:t.map((t=>e.jsxs(kB,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx(qR,{color:t.color}),t.value]},t.value)))}),SB=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),kB=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),OB=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),EB=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let jB;const AB=new Uint8Array(16);function TB(){if(!jB&&(jB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!jB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jB(AB)}const MB=[];for(let e=0;e<256;++e)MB.push((e+256).toString(16).slice(1));var PB={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DB(e,t,n){if(PB.randomUUID&&!t&&!e)return PB.randomUUID();const r=(e=e||{}).random||(e.rng||TB)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(MB[e[t+0]]+MB[e[t+1]]+MB[e[t+2]]+MB[e[t+3]]+"-"+MB[e[t+4]]+MB[e[t+5]]+"-"+MB[e[t+6]]+MB[e[t+7]]+"-"+MB[e[t+8]]+MB[e[t+9]]+"-"+MB[e[t+10]]+MB[e[t+11]]+MB[e[t+12]]+MB[e[t+13]]+MB[e[t+14]]+MB[e[t+15]]).toLowerCase()}(r)}const LB=W.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),IB=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),RB=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),NB=W.div({display:"flex"}),BB=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),FB=W.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),zB=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),HB=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),VB=W.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),cn),KB=W.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),UB=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),$B=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:l,onChange:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,v=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),C="right"===i,_={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(VB,Object.assign({htmlFor:r,labelRight:C,disabled:l},_,{children:[o&&e.jsx(UB,{children:o}),e.jsx(KB,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:l,onChange:()=>{const e=!!s||!b;w(e),u(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},v)),e.jsx(fn,{name:y,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!l})]}))};function WB(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=WB(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function qB(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=WB(e))&&(r&&(r+=" "),r+=t);return r}var ZB,GB,YB=Object.create,XB=Object.defineProperty,JB=Object.defineProperties,QB=Object.getOwnPropertyDescriptor,eF=Object.getOwnPropertyDescriptors,tF=Object.getOwnPropertyNames,nF=Object.getOwnPropertySymbols,rF=Object.getPrototypeOf,oF=Object.prototype.hasOwnProperty,iF=Object.prototype.propertyIsEnumerable,aF=(e,t,n)=>t in e?XB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sF=(e,t)=>{for(var n in t||(t={}))oF.call(t,n)&&aF(e,n,t[n]);if(nF)for(var n of nF(t))iF.call(t,n)&&aF(e,n,t[n]);return e},cF=(e,t)=>JB(e,eF(t)),lF=(e,t)=>{var n={};for(var r in e)oF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nF)for(var r of nF(e))t.indexOf(r)<0&&iF.call(e,r)&&(n[r]=e[r]);return n},uF=(ZB={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=s.next,_=u;C!==t.tail&&!(f&&_>=f.reach);_+=C.value.length,C=C.next){var S=C.value;if(t.length>e.length)return;if(!(S instanceof o)){var k,O=1;if(m){if(!(k=i(x,_,e,y))||k.index>=e.length)break;var E=k.index,j=k.index+k[0].length,A=_;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(_=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)O++,A+=T.value.length;O--,S=e.slice(_,A),k.index-=_}else if(!(k=i(x,0,S,y)))continue;E=k.index;var M=k[0],P=S.slice(0,E),D=S.slice(E+M.length),L=_+S.length;f&&L>f.reach&&(f.reach=L);var I=C.prev;if(P&&(I=c(t,I,P),_+=P.length),l(t,I,O),C=c(t,I,new o(d,v?r.tokenize(M,v):M,b,M)),D&&c(t,C,D),O>1){var R={cause:d+","+h,reach:L};a(e,t,n,C.prev,_,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return GB||(0,ZB[tF(ZB)[0]])((GB={exports:{}}).exports,GB),GB.exports}),fF=((e,t,n)=>(n=null!=e?YB(rF(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of tF(t))oF.call(e,o)||o===n||XB(e,o,{get:()=>t[o],enumerable:!(r=QB(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:XB(n,"default",{value:e,enumerable:!0}),e)))(uF());!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(fF),fF.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},fF.languages.javascript=fF.languages.extend("clike",{"class-name":[fF.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),fF.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,fF.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:fF.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:fF.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:fF.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:fF.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:fF.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),fF.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:fF.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),fF.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),fF.languages.markup&&(fF.languages.markup.tag.addInlined("script","javascript"),fF.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),fF.languages.js=fF.languages.javascript,fF.languages.actionscript=fF.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),fF.languages.actionscript["class-name"].alias="function",delete fF.languages.actionscript.parameter,delete fF.languages.actionscript["literal-property"],fF.languages.markup&&fF.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:fF.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(fF),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(fF),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(fF),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(fF),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(fF),fF.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},fF.languages.markup.tag.inside["attr-value"].inside.entity=fF.languages.markup.entity,fF.languages.markup.doctype.inside["internal-subset"].inside=fF.languages.markup,fF.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(fF.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:fF.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:fF.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},fF.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(fF.languages.markup.tag,"addAttribute",{value:function(e,t){fF.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:fF.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),fF.languages.html=fF.languages.markup,fF.languages.mathml=fF.languages.markup,fF.languages.svg=fF.languages.markup,fF.languages.xml=fF.languages.extend("markup",{}),fF.languages.ssml=fF.languages.xml,fF.languages.atom=fF.languages.xml,fF.languages.rss=fF.languages.xml,function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(fF),fF.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:fF.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},fF.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&0<=o.indexOf(l.content)&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),fF.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),l=0,u={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=l++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return l=0,function t(n){for(var i=0;i<n.length;i++){if(l>=f.length)return;var a,c,d,p,h,g,v,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=f[l],-1!==(v=(g="string"==typeof y?y:y.content).indexOf(a))&&(++l,c=g.substring(0,v),h=u[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(v+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(v=y.content,Array.isArray(v)?t(v):t([v]))}}(c),new e.Token(a,c,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in l&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,l=n[r];"string"!=typeof l&&(i=l.content,Array.isArray(i)?"template-string"===l.type?(l=i[1],3===i.length&&"string"!=typeof l&&"embedded-code"===l.type&&(a=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(i[1]=c(a,s,l))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(fF),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(fF),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(fF),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(fF),fF.languages.n4js=fF.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),fF.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),fF.languages.n4jsd=fF.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(fF),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(fF),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(fF),fF.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},fF.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=fF.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(fF),fF.languages.c=fF.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),fF.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),fF.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},fF.languages.c.string],char:fF.languages.c.char,comment:fF.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:fF.languages.c}}}}),fF.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete fF.languages.c.boolean,fF.languages.objectivec=fF.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete fF.languages.objectivec["class-name"],fF.languages.objc=fF.languages.objectivec,fF.languages.reason=fF.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),fF.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete fF.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(fF),fF.languages.go=fF.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),fF.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete fF.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(fF);var dF={};((e,t)=>{for(var n in t)XB(e,n,{get:t[n],enumerable:!0})})(dF,{dracula:()=>pF,duotoneDark:()=>hF,duotoneLight:()=>gF,github:()=>vF,jettwaveDark:()=>AF,jettwaveLight:()=>TF,nightOwl:()=>yF,nightOwlLight:()=>mF,oceanicNext:()=>xF,okaidia:()=>CF,palenight:()=>_F,shadesOfPurple:()=>SF,synthwave84:()=>kF,ultramin:()=>OF,vsDark:()=>EF,vsLight:()=>jF});var pF={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},hF={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},gF={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},vF={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},yF={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},mF={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},bF="#c5a5c5",wF="#8dc891",xF={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:bF}},{types:["attr-value"],style:{color:wF}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:wF}},{types:["punctuation"],style:{color:wF}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:bF}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},CF={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},_F={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},SF={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},kF={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},OF={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},EF={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},jF={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},AF={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},TF={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},MF=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=sF(sF({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=cF(sF({},n),{backgroundColor:void 0}),r},PF=/\r\n|\r|\n/,DF=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},LF=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},IF=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,l=t[a];const u=n[a][i];if("string"==typeof u?(l=a>0?l:["plain"],e=u):(l=LF(l,u.type),u.alias&&(l=LF(l,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(l),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(PF),d=f.length;s.push({types:l,content:f[0]});for(let e=1;e<d;e++)DF(s),c.push(s=[]),s.push({types:l,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return DF(s),c},RF=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(MF(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(MF(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=lF(n,["className","style","line"]);const s=cF(sF({},a),{className:qB("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=sF(sF({},s.style||{}),o)),s}),[e]))(s),l=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=lF(t,["token","className","style"]);const s=cF(sF({},a),{className:qB("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=sF(sF({},s.style||{}),i)),s}),[n])})(s),u=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return IF([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),IF(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:l})},NF=e=>t.createElement(RF,cF(sF({},e),{prism:e.prism||fF,theme:e.theme||EF,code:e.code,language:e.language}))
210
210
  /*! Bundled license information:
211
211
 
212
212
  prismjs/prism.js:
@@ -224,5 +224,5 @@ prismjs/prism.js:
224
224
  (c) Sindre Sorhus
225
225
  @license MIT
226
226
  */
227
- var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var f;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),f=e[u](n,u,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,u,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=l?l():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===l(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},l=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=l(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),l=c?c.length:0,u=f(t),d=p(u,l);return u.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var h2=p2.exports;const g2=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(fn,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(fn,Object.assign({},n,r))},v2=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:l,description:u,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:v,invalid:y,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:_,height:S,margin:k,marginLeft:O,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:I,value:R,disabled:N,readOnly:B,preventFocus:F,pointer:z,onChange:H,onClick:V,onClear:K,onFocus:U,onBlur:$}=r,W=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:Z,handleBlur:G}=o2(U,$,!F&&!B),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:j,marginBottom:A,marginRight:E,marginLeft:O},ne={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&ee){const{current:e}=ee,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,R,s,ee]);const re=h?R||s:R,oe=R&&K&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===h2.normalize(R)){const{current:n}=Y;if(n){const r=h2.format(R),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[R]);const ie=()=>{q||Z()},ae=()=>{q&&G()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:q}))),t.useEffect((()=>{var e;q&&(null===(e=Y.current)||void 0===e||e.focus())}),[q]);return e.jsxs(a2,Object.assign({ref:I,invalid:y,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:_,height:S,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ie(),V&&V(e)},pointer:z,readOnly:B},te,ne,{children:[d&&e.jsx(fn,{name:"search",marginRight:8,inheritColor:!0}),g&&g2(g,{marginRight:8}),e.jsxs(s2,{readOnly:B||F,children:[h&&e.jsx(b2,{ref:ee,fontSize:C,children:re}),a&&!h&&e.jsx(c2,{htmlFor:i||a,filled:i2(R),focused:q,disabled:N,children:a}),e.jsx(y2,Object.assign({id:i||a,ref:Y,value:R,placeholder:s,placeholderColor:l,onChange:e=>{if(p){const{value:t}=e.target,n=h2.normalize(t);if(n.length>10)return;const r=h2.format(n);H&&H(e,r,n)}else H&&H(e)},onFocus:Z,onBlur:G,disabled:N,hide:!(i2(R)||!a||q||h),width:J,fontSize:C},W))]}),v&&g2(v),f&&e.jsx(ic,{}),oe&&e.jsx(m2,{onClick:K,children:e.jsx(fn,{name:"close-circle-outline",color:X.brand})}),u&&e.jsx(l2,{invalid:y,children:u})]}))})),y2=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}}))),m2=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),b2=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),w2=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),x2=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:l,onBlur:u,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:v,borderless:y,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:_,height:S,isLoading:k,margin:O,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:U,filter:$,restrictInput:W,inputRef:q,optionsParent:Z}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:O,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},le=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&U){null===(e=(q||ae).current)||void 0===e||e.focus()}}),[ee,U]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const ue=at(le,ee,Z?[Z,`${Z} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ve().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:DB(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&le(t),X((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?ie(!0):(oe&&ie(!1),x&&X(""),Q(""))};t.useEffect((()=>{""===h&&he()}),[h]);const ve=()=>{const e=Ls(v).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=w2(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Bs(g||[],{search:U,filter:$,inputText:J}),...e]},ye={options:ve(),select:ge,open:le,close:le,searchText:U?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ft(ye),we=zs(g||[],v,ge,le,{selected:me,search:U,filter:$,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,_e=c(G,["onClear","phone"]);return e.jsx(C2,Object.assign({textOnly:C,altTrigger:!!L,width:_,height:S,focused:ne,search:U},ce,{children:e.jsxs(_2,{ref:ue,children:[L?e.jsx(S2,{id:P,onClick:le,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1),children:L}):e.jsx(O2,{shake:oe,children:e.jsx(v2,Object.assign({},_e,{ref:q||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!U,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||k?void 0:xe,borderless:y,borderColor:m,backgroundColor:b,isLoading:k,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:le,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(q||ae).current)||void 0===t?void 0:t.hasFocus;U?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!(U&&(!i||r))?ge(o,e):U&&!a||he(e)},onFocus:e=>{re(!0),l&&l(e)},onBlur:e=>{var t;if(re(!1),u&&u(e),U&&J&&e){const{relatedTarget:n}=e;(null===(t=null==be?void 0:be.current)||void 0===t?void 0:t.contains(n))||ge(J,e)}}}))}),ee&&we.length>0&&e.jsx(Is,{containerRef:be,parentSelector:Z,width:!L&&!C||Z?"100%":void 0,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,children:we})]})}))};x2.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:l,id:u})=>{const f=l?e=>{l&&l(e),o&&o()}:e=>{const o={id:u,label:n||w2(i)||"",value:t};r&&r(o,e)};return e.jsx(Is.Item,{id:u,contentPosition:a,color:s,onClick:f,accented:c,children:i})};const C2=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),an,cn),_2=W.div({position:"relative",width:"100%",height:"inherit"}),S2=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),k2=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),O2=W.div((({shake:e})=>({"& input":{animation:e?`${k2} .5s linear`:void 0}}))),E2=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:l,width:u,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:l,alignContent:a,justifyContent:c,width:u,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),sn,cn);E2.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})),sn,cn);const j2=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};return e.jsxs(VB,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(UB,{children:r}),e.jsx(KB,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(fn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},A2=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:l,margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{y(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(VB,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(UB,{children:o}),e.jsx(KB,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),l(e)}},g)),e.jsx(fn,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},T2=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(M2,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&g2(r,{marginRight:4,size:"small"}),n,o&&g2(o,{marginLeft:4,size:"small"})]}))},M2=W.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),cn),P2=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(D2,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},l,{children:n}))};P2.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(L2,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},l,{children:n}))},P2.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(I2,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},P2.Input=v2,P2.Dropdown=x2,P2.Radio=j2,P2.Toggle=A2,P2.Checkbox=$B,P2.Label=T2;const D2=W(E2)({boxSizing:"border-box"}),L2=W(E2)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),I2=W.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),cn),R2=W.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),N2=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),B2=W.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),F2=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),z2=W.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),H2=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(V2,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,role:"menu",children:w?Ls(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),V2=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l}))),K2=W.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),U2=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),$2=W.div({marginLeft:"auto",marginRight:8});H2.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(K2,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c,children:s}),H2.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:l,children:u,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Ls(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),v=g(u),y=()=>h((e=>!e));return e.jsxs(U2,{backgroundColor:d,children:[e.jsxs(K2,{vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||y()):y()},id:l,role:"menuitem",indent:f,children:[n,e.jsx($2,{onClick:e=>{e.stopPropagation(),y()},children:e.jsx(fn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&v]})};const W2=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),y={margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f};return e.jsxs(G2,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},y,{children:[e.jsx(fn,{name:h,style:{marginRight:10},color:g}),e.jsx(Y2,{children:r||d}),o&&e.jsx(fn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},q2=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Z2=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));W2.Header=q2,W2.Body=Z2;const G2=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),cn),Y2=W.div({width:"100%"}),X2=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),J2=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Q2=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),e5=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:l,preventOverlayClose:u,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,top:y,bottom:m,right:b,left:w,padding:x,paddingTop:C,paddingBottom:_,paddingRight:S,paddingLeft:k})=>{const O=at(u?()=>null:c,i),E={padding:x,paddingTop:C,paddingBottom:_,paddingRight:S,paddingLeft:k},j=Ls(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),A=e.jsx(r5,{color:f,noOverlay:h,centerX:g,centerY:v,top:y,bottom:m,right:b,left:w,children:e.jsxs(t5,Object.assign({ref:O,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},E,{children:[j,l&&e.jsx(n5,{inline:p,children:e.jsx(fn,{name:"close",onClick:c,pointer:!0})})]}))}),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};e5.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),e5.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),e5.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),cn),e5.Footer=W.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),cn);const t5=W.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),sn),n5=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),r5=W.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),o5=t.forwardRef(((o,i)=>{var{children:a,options:s,items:l,listLabel:u,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:v,restrictInput:y,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:_,addItem:S,removeItem:k,onTextChange:O,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:I,font:R,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!u,H=e=>{e&&S(e)},V=()=>{const{current:e}=F;A||u||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const U=e=>{L(e),O&&O(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(l.length>0){e.preventDefault();const t=l[l.length-1];k(t)}}),A&&!D,[l]);const $=s.filter((e=>!l.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${DB()}`),[]),q=t.useMemo((()=>`multi-select-list-${DB()}`),[]),Z=p?l.length>=p:void 0,G=m||!A||Z,Y=()=>{const t=e.jsxs(c5,{id:q,expanded:A,padTop:A&&l.length>0,labeled:!!u,children:[f&&e.jsx(l5,{expanded:A,labeled:!!u,children:f}),a?a(A,!!m):l.map((t=>e.jsx(T2,{pill:!0,iconRight:A&&!m?e.jsx(fn,{name:"close-circle",onClick:()=>k(t),pointer:!0}):void 0,disabled:m,children:t.label},t.id))),e.jsx(x2,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:y,options:$,fontSize:R.size.md,placeholder:m||l.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:U,onError:e=>P(e),disabled:G,optionsParent:w?`#${q}`:`#${W}`,autoFocus:E}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(i5,{width:g,ref:B,labeled:!!u,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()},children:[e.jsxs(a5,{collapse:z,id:W,expanded:A&&l.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:_,children:[u?e.jsx(s5,{collapse:z,children:u}):Y(),e.jsxs(u5,{children:[p&&!b&&e.jsx(d5,{children:m&&d?e.jsxs(e.Fragment,{children:[l.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(f5,{error:l.length>=p,children:l.length}),"/",p," ",d]})}),l.length>0&&e.jsx(fn,{name:A?"chevron-up":"chevron-down",color:I.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]}),u&&A&&Y()]})})),i5=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),a5=W.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),s5=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),c5=W.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),l5=W.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),u5=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),f5=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),d5=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),p5=e=>e?+e:0,h5=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),cn),g5=W.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),v5=W(g5)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),y5=W(g5)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),m5=W.span((({theme:e})=>({color:e.scale6}))),b5=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l})=>{const u={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(w5,Object.assign({size:n},u,{children:[e.jsx(x5,{cx:h,cy:h,r:f,thickness:r}),e.jsx(C5,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},w5=W.svg((({size:e})=>({display:"block",width:e,height:e})),cn),x5=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),C5=W(x5)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),_5=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),cn),S5=W.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var k5={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function l(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){u&&o&&i&&(u(l),u=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,l=null,u=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,y(e)}}function v(e,t){e.c=t,y(e)}function y(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function _(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new m("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function E(){this.c={}}function j(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){c(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function M(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function P(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},M.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},L=null;function I(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function R(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&R(e,n,i)),t?o()-e.A>=e.w?I()&&R(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){l(this.g.a),l(this.h.a),l(this.j.a),l(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):k(e.a))}function V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function K(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)k(t.a);else{t.f+=n.length,a&&(t.j=a);var c,l=[];for(c=0;c<n.length;c++){var f=n[c],d=s[f.c],p=t.a,h=f;if(p.g&&u(p.f,[p.a.c("wf",h.c,x(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new M(r(t.g,t),r(t.h,t),t.c,f,t.s,d):new P(r(t.g,t),r(t.h,t),t.c,f,t.s,e,d),l.push(p)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function U(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,H(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),u(t.f,r,o)}O(t,"fontinactive",e),H(this)},V.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},U.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new b(r[0],c[l]));else s.push(new b(r[0]));v(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(f=J.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":X[u],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),v(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,_("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new V(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new U(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(k5);var O5=ct(k5.exports);const E5=W.div(an),j5=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),cn),A5=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),T5=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),M5=W.div({display:"flex",flexDirection:"column"}),P5=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),D5=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),L5=W.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),I5=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),R5=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),N5=t.createContext({}),B5=(t,n,r)=>{const o="th"===n?F5:z5,i=r?{style:r}:{};return Ls(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},F5=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),z5=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),H5=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),V5=W(E2)({alignItems:"center",padding:"8px 24px"},sn),K5=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),U5=W(E2)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),sn),$5=W.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),W5=W($5)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),sn),q5=W($5)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),Z5=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,l]=t.useState(i),[u,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(u){const{key:t,dir:n}=u;e=ut.orderBy(i,t,n)}ut.isEqual(e,s)||l(e)}),[i,u]);const p=t.useMemo((()=>({activeColumn:u,setActiveColumn:f,parentColumns:o})),[u,f,o]);return e.jsx(N5.Provider,{value:p,children:e.jsx(G5,Object.assign({},a,{children:d}))})};Z5.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:l}=t.useContext(N5),u=o||l||"equal";return e.jsx(H5,{alignToScrollBody:a,children:e.jsx(V5,Object.assign({as:"tr",columns:u},s,{children:B5(r,"th",i)}))})},Z5.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,l]=t.useState(a||"inactive"),{color:u}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(N5),p=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,v=e=>{if(l(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||v(a)}),[]),t.useEffect((()=>{a&&l(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&l("inactive")}),[f,c]),e.jsxs(q5,{onClick:e=>{s?v("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p,children:[r,p?e.jsx(fn,{name:h,marginLeft:8,size:"small",color:g?u.brand:void 0,inheritColor:!g}):null]})},Z5.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(N5);return e.jsx(K5,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},Z5.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:l}=t.useContext(N5),u=o||l||"equal";return e.jsx(U5,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:B5(r,"td",a)}))},Z5.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const l={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(W5,Object.assign({contentPosition:n,showDefault:!!r&&!t},l,{children:t||r}))};const G5=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),sn,cn),Y5=t.forwardRef(((e,n)=>t.createElement(se.span,q({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[X5,J5]=Z("Tooltip",[Go]),Q5=Go(),e3=700,t3="tooltip.open",[n3,r3]=X5("TooltipProvider"),o3="Tooltip",[i3,a3]=X5(o3),s3="TooltipTrigger",c3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=a3(s3,r),a=r3(s3,r),s=Q5(r),c=X(n,t.useRef(null),i.onTriggerChange),l=t.useRef(!1),u=t.useRef(!1),f=t.useCallback((()=>l.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(ci,q({asChild:!0},s),t.createElement(se.button,q({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{l.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),l3="TooltipPortal",[u3,f3]=X5(l3,{forceMount:void 0}),d3="TooltipContent",p3=t.forwardRef(((e,n)=>{const r=f3(d3,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=a3(d3,e.__scopeTooltip);return t.createElement(ue,{present:o||s.open},s.disableHoverableContent?t.createElement(y3,q({side:i},a,{ref:n})):t.createElement(h3,q({side:i},a,{ref:n})))})),h3=t.forwardRef(((e,n)=>{const r=a3(d3,e.__scopeTooltip),o=r3(d3,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:l,onClose:u}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(l&&f){const e=e=>h(e,f),t=e=>h(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>r!=l>r&&n<(c-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,s,u,p]),t.createElement(y3,q({},e,{ref:a}))})),[g3,v3]=X5(o3,{isInside:!1}),y3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=a3(d3,r),u=Q5(r),{onClose:f}=l;return t.useEffect((()=>(document.addEventListener(t3,f),()=>document.removeEventListener(t3,f))),[f]),t.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,f]),t.createElement(vr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(li,q({"data-state":l.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(g3,{scope:r,isInside:!0},t.createElement(Y5,{id:l.contentId,role:"tooltip"},i||o))))}));const m3=e=>{const{__scopeTooltip:n,delayDuration:r=e3,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.createElement(n3,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},a)},b3=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=r3(o3,e.__scopeTooltip),u=Q5(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(t3))):l.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?y.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),y.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),_=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(si,u,t.createElement(i3,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{l.isOpenDelayed?_():x()}),[l.isOpenDelayed,_,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},w3=c3,x3=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=a3(l3,n);return t.createElement(u3,{scope:n,forceMount:r},t.createElement(ue,{present:r||a.open},t.createElement(fi,{asChild:!0,container:i},o)))},C3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Q5(r);return v3("TooltipArrow",r).isInside?null:t.createElement(ui,q({},i,o,{ref:n}))})),_3=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:l,maxWidth:u,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:v,container:y,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(m3,{children:e.jsxs(b3,{delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d,children:[e.jsx(w3,{asChild:!0,children:e.jsx(k3,Object.assign({},w,{children:n}))}),e.jsx(x3,{container:y,children:!p&&e.jsxs(S3,{side:Ks(i).side,align:Ks(i).align,sideOffset:a,zIndex:s,width:l,maxWidth:u,textAlign:f,id:h,bgColor:g,textColor:v,children:[o||r,e.jsx(C3,{className:"tooltip-arrow",width:12,height:8})]})})]})})},S3=W(p3,{shouldForwardProp:e=>Us(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,l=s.background,u=o||l;return{backgroundColor:u,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),k3=W.div({display:"inline-flex"}),O3=W.div((({theme:e})=>({color:e.tooltip.color.default}))),E3=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));_3.Header=O3,_3.Body=E3;const j3="#0074F4",A3="#FF6068",T3="#FF9900",M3="#F0BB00",P3="#00C242",D3="#001D32",L3="#FFFFFF",I3={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:j3,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:ur(.95,j3),brandTint1:ur(.9,j3),brandTint2:ur(.8,j3),brandTint3:ur(.7,j3),brandTint4:ur(.6,j3),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:A3,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:ur(.95,A3),errorTint1:ur(.9,A3),errorTint2:ur(.8,A3),warning:T3,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:ur(.95,T3),warningTint1:ur(.9,T3),warningTint2:ur(.8,T3),alert:M3,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:ur(.95,M3),alertTint1:ur(.9,M3),alertTint2:ur(.8,M3),success:P3,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:ur(.95,P3),successTint1:ur(.9,P3),successTint2:ur(.8,P3),grayscale0:ur(.95,D3),grayscale1:ur(.9,D3),grayscale2:ur(.8,D3),grayscale3:ur(.7,D3),grayscale4:ur(.6,D3),grayscale5:ur(.5,D3),grayscale6:ur(.4,D3),grayscale7:ur(.3,D3),grayscale8:ur(.2,D3),grayscale9:ur(.1,D3),grayscale10:D3,contrast0:ur(.95,L3),contrast1:ur(.9,L3),contrast2:ur(.8,L3),contrast3:ur(.7,L3),contrast4:ur(.6,L3),contrast5:ur(.5,L3),contrast6:ur(.4,L3),contrast7:ur(.3,L3),contrast8:ur(.2,L3),contrast9:ur(.1,L3),contrast10:L3};var R3={color:I3,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:N3}=R3;var B3={small:{height:28,iconSize:18,font:N3.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:N3.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:N3.size.lg,padding:14,iconOnlyPadding:6}};const F3="#FFFFFF",z3=I3.grayscale0,H3=I3.grayscale1,V3=I3.grayscale2,K3=I3.grayscale3,U3=I3.grayscale4,$3=I3.grayscale5,W3=I3.grayscale6,q3=I3.grayscale7,Z3=I3.grayscale8,G3=I3.grayscale9,Y3=I3.grayscale10,X3=Object.assign(Object.assign({},R3),{name:"light",accent:I3.brand,accentShade:I3.brandShade1,background0:F3,background1:F3,background2:F3,background3:F3,background4:F3,background5:F3,scale0:z3,scale1:H3,scale2:V3,scale3:K3,scale4:U3,scale5:$3,scale6:W3,scale7:q3,scale8:Z3,scale9:G3,scale10:Y3,button:Object.assign(Object.assign({},B3),{primary:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},outlineBackground:{default:I3.brandTint0,hover:I3.brandTint1,active:I3.brandTint2},border:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},divider:V3},secondary:{color:{default:Y3,hover:Y3,active:Y3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:H3,hover:V3,active:K3},outlineBackground:{default:H3,hover:V3,active:K3},border:{default:V3,hover:V3,active:V3},divider:V3},positive:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},outlineBackground:{default:I3.successTint0,hover:I3.successTint1,active:I3.successTint2},border:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},divider:V3},negative:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},outlineBackground:{default:I3.errorTint0,hover:I3.errorTint1,active:I3.errorTint2},border:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},divider:V3},caution:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},outlineBackground:{default:I3.warningTint0,hover:I3.warningTint1,active:I3.warningTint2},border:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},divider:V3},subtle:{color:{default:I3.brand,hover:I3.brand,active:I3.brand},outlineColor:{default:I3.brand,hover:I3.brand,active:I3.brand},secondaryColor:{default:Y3,hover:Y3,active:Y3},positiveColor:{default:I3.success,hover:I3.success,active:I3.success},negativeColor:{default:I3.error,hover:I3.error,active:I3.error},cautionColor:{default:I3.warning,hover:I3.warning,active:I3.warning},background:{default:"transparent",hover:H3,active:V3},outlineBackground:{default:"transparent",hover:H3,active:V3},border:{default:"transparent",hover:V3,active:V3},divider:V3},link:{color:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},outlineColor:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},secondaryColor:{default:Z3,hover:G3,active:Y3},positiveColor:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},negativeColor:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},cautionColor:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:U3,hover:U3,active:U3},outlineColor:{default:U3,hover:U3,active:U3},background:{default:H3,hover:H3,active:H3},outlineBackground:{default:z3,hover:z3,active:z3},border:{default:H3,hover:H3,active:H3},divider:H3},color:{default:F3}}),calendar:{background:{container:I3.contrast10,hover:H3,active:I3.brand,activeHover:I3.brandShade1},color:{disabled:U3,default:Y3,active:I3.contrast10,current:I3.brand,outside:W3,weekday:Z3,monthYear:Z3,iconDefault:U3,iconHover:Y3}},defaultBorder:`1px solid ${H3}`,formControl:{color:{default:Z3,hover:Y3,active:I3.brand,activeHover:I3.brandShade1,disabled:U3}},input:{borderRadius:4,background:{default:z3,hover:H3,focused:H3,disabled:z3},color:{default:Y3,disabled:U3,placeholder:W3,description:W3,descriptionError:I3.error},borderColor:{default:W3,hover:Z3,focused:I3.brand,disabled:U3,error:I3.error},labelColor:{default:Z3,hover:Z3,filled:W3,focused:I3.brand,disabled:U3}},menu:{background:F3},menuItem:{borderColor:I3.brand,background:{active:z3,hover:H3,inactive:"transparent"},color:{active:Y3,hover:Y3,inactive:W3}},modal:{background:I3.contrast10,color:{header:Y3,body:W3}},options:{background:I3.contrast10},optionItem:{background:{active:H3,inactive:"transparent"},color:{active:Y3,inactive:Y3,accent:I3.brand}},table:{color:{header:W3,body:Y3},borderColor:H3},toast:{color:Y3,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Z3,info:I3.brand,success:I3.success,warning:I3.warning,error:I3.error}},toggle:{slider:I3.contrast10},tooltip:{background:"#FFF",color:{default:Y3,subtext:W3}}}),J3=I3.contrast0,Q3=I3.contrast1,e9=I3.contrast2,t9=I3.contrast3,n9=I3.contrast4,r9=I3.contrast5,o9=I3.contrast6,i9=I3.contrast7,a9=I3.contrast8,s9=I3.contrast9,c9=I3.contrast10,l9=I3.brandDark,u9={light:X3,dark:Object.assign(Object.assign({},R3),{name:"dark",accent:l9,accentShade:I3.brandDarkShade1,background0:I3.brandBackground0,background1:I3.brandBackground1,background2:I3.brandBackground2,background3:I3.brandBackground3,background4:I3.brandBackground4,background5:I3.brandBackground5,scale0:J3,scale1:Q3,scale2:e9,scale3:t9,scale4:n9,scale5:r9,scale6:o9,scale7:i9,scale8:a9,scale9:s9,scale10:c9,button:Object.assign(Object.assign({},B3),{primary:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},outlineBackground:{default:I3.brandTint0,hover:I3.brandTint1,active:I3.brandTint2},border:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},divider:e9},secondary:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:Q3,hover:e9,active:t9},outlineBackground:{default:Q3,hover:e9,active:t9},border:{default:e9,hover:e9,active:e9},divider:e9},positive:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},outlineBackground:{default:I3.successTint0,hover:I3.successTint1,active:I3.successTint2},border:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},divider:e9},negative:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},outlineBackground:{default:I3.errorTint0,hover:I3.errorTint1,active:I3.errorTint2},border:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},divider:e9},caution:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},outlineBackground:{default:I3.warningTint0,hover:I3.warningTint1,active:I3.warningTint2},border:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},divider:e9},subtle:{color:{default:I3.brand,hover:I3.brand,active:I3.brand},outlineColor:{default:I3.brand,hover:I3.brand,active:I3.brand},secondaryColor:{default:c9,hover:c9,active:c9},positiveColor:{default:I3.success,hover:I3.success,active:I3.success},negativeColor:{default:I3.error,hover:I3.error,active:I3.error},cautionColor:{default:I3.warning,hover:I3.warning,active:I3.warning},background:{default:"transparent",hover:Q3,active:e9},outlineBackground:{default:"transparent",hover:Q3,active:e9},border:{default:"transparent",hover:e9,active:e9},divider:e9},link:{color:{default:I3.brandShade2,hover:I3.brandShade1,active:I3.brand},outlineColor:{default:I3.brandShade2,hover:I3.brandShade1,active:I3.brand},secondaryColor:{default:a9,hover:s9,active:c9},positiveColor:{default:I3.successShade2,hover:I3.successShade1,active:I3.success},negativeColor:{default:I3.errorShade2,hover:I3.errorShade1,active:I3.error},cautionColor:{default:I3.warningShade2,hover:I3.warningShade1,active:I3.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:n9,hover:n9,active:n9},outlineColor:{default:n9,hover:n9,active:n9},background:{default:Q3,hover:Q3,active:Q3},outlineBackground:{default:J3,hover:J3,active:J3},border:{default:Q3,hover:Q3,active:Q3},divider:Q3},color:{default:"#FFFFFF"}}),calendar:{background:{container:I3.brandBackground3,hover:Q3,active:I3.brand,activeHover:I3.brandShade1},color:{disabled:n9,default:c9,active:c9,current:l9,outside:o9,weekday:a9,monthYear:a9,iconDefault:n9,iconHover:c9}},defaultBorder:`1px solid ${Q3}`,formControl:{color:{default:a9,hover:c9,active:I3.brand,activeHover:I3.brandShade1,disabled:n9}},input:{borderRadius:4,background:{default:J3,hover:Q3,focused:Q3,disabled:J3},color:{default:c9,disabled:n9,placeholder:o9,description:o9,descriptionError:I3.error},borderColor:{default:o9,hover:a9,focused:l9,disabled:n9,error:I3.error},labelColor:{default:a9,hover:a9,filled:o9,focused:l9,disabled:n9}},menu:{background:I3.brandBackground2},menuItem:{borderColor:I3.brand,background:{active:J3,hover:Q3,inactive:"transparent"},color:{active:c9,hover:c9,inactive:o9}},modal:{background:I3.brandBackground3,color:{header:c9,body:o9}},options:{background:I3.brandBackground3},optionItem:{background:{active:Q3,inactive:"transparent"},color:{active:c9,inactive:c9,accent:l9}},table:{color:{header:o9,body:c9},borderColor:Q3},toast:{color:c9,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:a9,info:I3.brand,success:I3.success,warning:I3.warning,error:I3.error}},toggle:{slider:I3.brandBackground0},tooltip:{background:I3.brandBackground4,color:{default:c9,subtext:o9}}})};exports.Accordion=hn,exports.Audio=Cc,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:l,barSize:u=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:v=45}=t,y=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:m}=n.useTheme();return e.jsxs(wB,Object.assign({},y,{children:[e.jsx(bB,{}),e.jsx(SC,{width:"100%",height:"100%",children:e.jsxs($R,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:f,barGap:s,barCategoryGap:l,children:[e.jsx(xI,{stroke:m,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(BI,{stroke:m,tickMargin:4,tickFormatter:e=>d?Rc(e):e,tick:!h&&{},height:h?12:g,dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(FI,{stroke:m,tickMargin:4,tickFormatter:e=>d?e:Rc(e),tick:!p&&{},width:p?5:v,dataKey:d?"name":void 0,type:d?"category":"number"}),CB(),o&&e.jsx(wm,{content:e.jsx(_B,{})}),i.map((({key:t,color:n},r)=>e.jsx(cL,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=pc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[l,u]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>hB(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),y=e=>{const t=gB(("prev"===e?vB:eN)(f,{months:1}),1),n=v(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?lB(vB(e,{months:1})):gB("future"===n?eN(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?vB:eN)(o,{days:e}),a=v(n);i[t](a)}return i},b=e=>{const t=function(e){return YR(1,arguments),XR(e).getDay()}(gB(e,1)),n=cB(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=v(c),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(lB(f)),s=v(gB(f,1));let u=!1;const d=fB(e,n),p=uB(e,r);(i&&d||a&&p)&&(u=!0);const h=uB(e,o)||fB(e,s),g=aN(e,c),y=aN(e,l);return{date:sB(e),fullDate:e,current:g,disabled:u,outside:h,active:y}}))};t.useEffect((()=>{const e=b(f);h(e)}),[l,f]);return e.jsxs(LB,{noShadow:s,children:[e.jsxs(IB,{children:[e.jsx(RB,{children:aB(f,"MMMM Y")}),e.jsxs(NB,{children:[e.jsx(fn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>y("prev"),hoverColor:g.color.iconHover}),e.jsx(fn,{name:"chevron-right",pointer:!0,onClick:()=>y("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(zB,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(HB,{children:t[0]},t)))}),e.jsx(BB,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(FB,{disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),o(e)})(n),children:t},DB())))})]})},exports.Checkbox=$B,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p},v=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,m,b]=v;y=y||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=y?y.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),_=e=>{if(m){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ut.range(r,o+1):ut.rangeRight(o,r+1)}return null})),n=t.flat();return ut.compact(n)})(m);return t.some((t=>e===t))}return!1},S=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(zF,{method:x,url:S}):e.jsx(NF,{code:S,language:w,theme:"dark"===h?dF.oceanicNext:dF.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(UF,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement($F,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:_(r+1)}),o.length>1&&!C&&e.jsx(WF,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(BF,{content:S})]}))})},exports.DocTable=qF,exports.DraftEditor=f2,exports.Dropdown=x2,exports.DropdownMenu=$s,exports.Form=P2,exports.Grid=E2,exports.Icon=fn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[u,f]=t.useState(i),d=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(u>0?u-1:o.length-1),h=()=>u<o.length-1?f(u+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(R2,{opacity:l,prevNext:o.length>1,children:[e.jsx(N2,{onClick:r,children:e.jsx(fn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(B2,{id:"prev",onClick:p,children:e.jsx(fn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(F2,{ref:d,src:o[u],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(B2,{next:!0,id:"next",onClick:h,children:e.jsx(fn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=z2,exports.Input=v2,exports.InputUtils=u2,exports.Label=T2,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[l,u]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(wB,Object.assign({},s,{children:[e.jsx(bB,{}),e.jsx(SC,{width:"100%",height:"100%",children:e.jsxs(UR,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(xI,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(BI,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(FI,{stroke:f,tickMargin:4,tickFormatter:e=>Rc(e)}),CB(),i&&e.jsx(wm,{content:e.jsx(_B,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e.jsx(NI,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=H2,exports.Message=W2,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(Q2,{children:[e.jsx(J2,{}),e.jsx(X2,{color:n,style:r,children:t}),e.jsx(J2,{})]}),exports.Modal=e5,exports.MultiSelect=o5,exports.Notification=qR,exports.Options=Is,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,l=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,f]=t.useState(p5(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,p5(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},y=0!==d,m=d!==g.length-1;return e.jsxs(h5,Object.assign({width:s},l,{children:[e.jsx(v5,{disabled:1===u,onClick:()=>v(1),children:e.jsx(fn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(v5,{disabled:1===u,onClick:()=>v(u-1),children:e.jsx(fn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&y?e.jsx(m5,{children:"... "}):"",e.jsx(y5,{selected:n===u,onClick:()=>v(n),children:n}),r===o.length-1&&m?e.jsx(m5,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(v5,{disabled:u===i,onClick:()=>v(u+1),children:e.jsx(fn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(v5,{disabled:u===i,onClick:()=>v(i),children:e.jsx(fn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,l=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(wB,Object.assign({width:n,height:n},a,{children:e.jsxs(WR,{width:n,height:n,children:[e.jsx(qP,{dataKey:"value",data:l,innerRadius:o,outerRadius:u,children:null==l?void 0:l.map((t=>e.jsx(kC,{fill:t.color||"#999"},t.name)))}),s&&CB()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(b5,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(_5,Object.assign({width:o,height:i||s},p,{children:e.jsx(S5,{color:n,width:h})}))},exports.Radio=j2,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,O5.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=bc,exports.Spacer=E5,exports.Spinner=ic,exports.Table=Z5,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=A2,exports.Tooltip=_3,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[y,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,v]),t.useEffect((()=>{r(b)}),[b]);const _=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},S=e=>{const t="select"===e?m:w,n="select"===e?y:b;("select"===e?w:m)((e=>[...e,...n])),t([])},k=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(I5,{children:t.header}),e.jsx(R5,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(s&&c);return e.jsxs(j5,Object.assign({width:u,readOnly:l},x,{children:[i&&e.jsx(A5,{children:i}),e.jsxs(T5,{children:[!l&&e.jsxs(M5,{children:[O&&e.jsx(P5,{children:y.length>0&&!s&&e.jsx(pc,{small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(D5,{children:y.map((t=>e.jsxs(L5,{onClick:()=>_(t,"select"),color:t.color,children:[k(t),e.jsx(fn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(M5,{children:[O&&!l&&e.jsx(P5,{children:b.length>0&&!c&&!l&&e.jsx(pc,{small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left",children:"All"})}),l&&0===b.length?e.jsx("div",{children:a}):e.jsx(D5,{children:b.map((t=>e.jsxs(L5,{onClick:()=>_(t,"remove"),color:t.color,children:[k(t),e.jsx(fn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.copyToClipboard=yB,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,l=aB(n,"EEEE"),u=aB(n,"MMM d"),f=aB(n,"MMM d, y"),d=aB(n,"h:mm aaa"),p=dB(n),h=function(e){return YR(1,arguments),XR(e).getTime()>Date.now()}(n),g=function(e){return YR(1,arguments),aN(e,Date.now())}(n),v=function(e){return YR(1,arguments),aN(e,pB(Date.now(),1))}(n),y=function(e){return YR(1,arguments),aN(e,JR(Date.now(),1))}(n),m=pN(c,n),b=function(e,t,n){YR(2,arguments);var r=lN(e,t)/7;return dN(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:v?`Yesterday${x}`:y?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${f}${x}`:`${l}${x}`)},exports.marginProps=cn,exports.numberWithCommas=mB,exports.paddingProps=sn,exports.positionProps=ln,exports.theme=u9,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:u}={})=>{const[f,d]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof u&&f!==u&&d(u)}),[p]);const v=()=>{null==p||p.resolve(!s||f),g()},y=()=>{null==p||p.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":y()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(e5,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(e5.Header,{children:n}),r&&e.jsx(e5.Text,{children:r}),s&&e.jsx(e5.Body,{marginTop:4,marginBottom:8,children:e.jsx(v2,{autoFocus:!0,label:c,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})}),e.jsxs(e5.Footer,{children:[e.jsx(pc,{secondary:!0,marginRight:8,onClick:y,children:o}),e.jsx(pc,{negative:a,onClick:v,children:i})]})]})]},exports.useElementObserver=on,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,c]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=an;
227
+ var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var f;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),f=e[u](n,u,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,u,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=l?l():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===l(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},l=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=l(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),l=c?c.length:0,u=f(t),d=p(u,l);return u.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var h2=p2.exports;const g2=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(fn,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(fn,Object.assign({},n,r))},v2=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:l,description:u,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:v,invalid:y,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:_,height:S,margin:k,marginLeft:O,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:I,value:R,disabled:N,readOnly:B,preventFocus:F,pointer:z,onChange:H,onClick:V,onClear:K,onFocus:U,onBlur:$}=r,W=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:Z,handleBlur:G}=o2(U,$,!F&&!B),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:j,marginBottom:A,marginRight:E,marginLeft:O},ne={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&ee){const{current:e}=ee,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,R,s,ee]);const re=h?R||s:R,oe=null!=R&&K&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===h2.normalize(R)){const{current:n}=Y;if(n){const r=h2.format(R),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[R]);const ie=()=>{q||Z()},ae=()=>{q&&G()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:q}))),t.useEffect((()=>{var e;q&&(null===(e=Y.current)||void 0===e||e.focus())}),[q]);return e.jsxs(a2,Object.assign({ref:I,invalid:y,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:_,height:S,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ie(),V&&V(e)},pointer:z,readOnly:B},te,ne,{children:[d&&e.jsx(fn,{name:"search",marginRight:8,inheritColor:!0}),g&&g2(g,{marginRight:8}),e.jsxs(s2,{readOnly:B||F,children:[h&&e.jsx(b2,{ref:ee,fontSize:C,children:re}),a&&!h&&e.jsx(c2,{htmlFor:i||a,filled:i2(R),focused:q,disabled:N,children:a}),e.jsx(y2,Object.assign({id:i||a,ref:Y,value:R,placeholder:s,placeholderColor:l,onChange:e=>{if(p){const{value:t}=e.target,n=h2.normalize(t);if(n.length>10)return;const r=h2.format(n);H&&H(e,r,n)}else H&&H(e)},onFocus:Z,onBlur:G,disabled:N,hide:!(i2(R)||!a||q||h),width:J,fontSize:C},W))]}),v&&g2(v),f&&e.jsx(ic,{}),oe&&e.jsx(m2,{onClick:K,children:e.jsx(fn,{name:"close-circle-outline",color:X.brand})}),u&&e.jsx(l2,{invalid:y,children:u})]}))})),y2=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}}))),m2=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),b2=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),w2=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),x2=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:l,onBlur:u,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:v,borderless:y,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:_,height:S,isLoading:k,margin:O,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:U,filter:$,restrictInput:W,inputRef:q,optionsParent:Z}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:O,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},le=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&U){null===(e=(q||ae).current)||void 0===e||e.focus()}}),[ee,U]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const ue=at(le,ee,Z?[Z,`${Z} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ve().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:DB(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&le(t),X((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?ie(!0):(oe&&ie(!1),x&&X(""),Q(""))};t.useEffect((()=>{""!==h&&null!=h||he()}),[h]);const ve=()=>{const e=Ls(v).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=w2(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Bs(g||[],{search:U,filter:$,inputText:J}),...e]},ye={options:ve(),select:ge,open:le,close:le,searchText:U?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ft(ye),we=zs(g||[],v,ge,le,{selected:me,search:U,filter:$,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,_e=c(G,["onClear","phone"]);return e.jsx(C2,Object.assign({textOnly:C,altTrigger:!!L,width:_,height:S,focused:ne,search:U},ce,{children:e.jsxs(_2,{ref:ue,children:[L?e.jsx(S2,{id:P,onClick:le,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1),children:L}):e.jsx(O2,{shake:oe,children:e.jsx(v2,Object.assign({},_e,{ref:q||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!U,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||k?void 0:xe,borderless:y,borderColor:m,backgroundColor:b,isLoading:k,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:le,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(q||ae).current)||void 0===t?void 0:t.hasFocus;U?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!(U&&(!i||r))?ge(o,e):U&&!a||he(e)},onFocus:e=>{re(!0),l&&l(e)},onBlur:e=>{var t;if(re(!1),u&&u(e),U&&J&&e){const{relatedTarget:n}=e;(null===(t=null==be?void 0:be.current)||void 0===t?void 0:t.contains(n))||ge(J,e)}}}))}),ee&&we.length>0&&e.jsx(Is,{containerRef:be,parentSelector:Z,width:!L&&!C||Z?"100%":void 0,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,children:we})]})}))};x2.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:l,id:u})=>{const f=l?e=>{l&&l(e),o&&o()}:e=>{const o={id:u,label:n||w2(i)||"",value:t};r&&r(o,e)};return e.jsx(Is.Item,{id:u,contentPosition:a,color:s,onClick:f,accented:c,children:i})};const C2=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),an,cn),_2=W.div({position:"relative",width:"100%",height:"inherit"}),S2=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),k2=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),O2=W.div((({shake:e})=>({"& input":{animation:e?`${k2} .5s linear`:void 0}}))),E2=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:l,width:u,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:l,alignContent:a,justifyContent:c,width:u,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),sn,cn);E2.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})),sn,cn);const j2=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};return e.jsxs(VB,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(UB,{children:r}),e.jsx(KB,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(fn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},A2=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:l,margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{y(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(VB,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(UB,{children:o}),e.jsx(KB,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),l(e)}},g)),e.jsx(fn,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},T2=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(M2,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&g2(r,{marginRight:4,size:"small"}),n,o&&g2(o,{marginLeft:4,size:"small"})]}))},M2=W.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),cn),P2=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(D2,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},l,{children:n}))};P2.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(L2,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},l,{children:n}))},P2.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(I2,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},P2.Input=v2,P2.Dropdown=x2,P2.Radio=j2,P2.Toggle=A2,P2.Checkbox=$B,P2.Label=T2;const D2=W(E2)({boxSizing:"border-box"}),L2=W(E2)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),I2=W.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),cn),R2=W.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),N2=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),B2=W.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),F2=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),z2=W.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),H2=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(V2,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,role:"menu",children:w?Ls(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),V2=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l}))),K2=W.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),U2=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),$2=W.div({marginLeft:"auto",marginRight:8});H2.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(K2,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c,children:s}),H2.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:l,children:u,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Ls(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),v=g(u),y=()=>h((e=>!e));return e.jsxs(U2,{backgroundColor:d,children:[e.jsxs(K2,{vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||y()):y()},id:l,role:"menuitem",indent:f,children:[n,e.jsx($2,{onClick:e=>{e.stopPropagation(),y()},children:e.jsx(fn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&v]})};const W2=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),y={margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f};return e.jsxs(G2,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},y,{children:[e.jsx(fn,{name:h,style:{marginRight:10},color:g}),e.jsx(Y2,{children:r||d}),o&&e.jsx(fn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},q2=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Z2=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));W2.Header=q2,W2.Body=Z2;const G2=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),cn),Y2=W.div({width:"100%"}),X2=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),J2=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Q2=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),e5=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:l,preventOverlayClose:u,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,top:y,bottom:m,right:b,left:w,padding:x,paddingTop:C,paddingBottom:_,paddingRight:S,paddingLeft:k})=>{const O=at(u?()=>null:c,i),E={padding:x,paddingTop:C,paddingBottom:_,paddingRight:S,paddingLeft:k},j=Ls(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),A=e.jsx(r5,{color:f,noOverlay:h,centerX:g,centerY:v,top:y,bottom:m,right:b,left:w,children:e.jsxs(t5,Object.assign({ref:O,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},E,{children:[j,l&&e.jsx(n5,{inline:p,children:e.jsx(fn,{name:"close",onClick:c,pointer:!0})})]}))}),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};e5.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),e5.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),e5.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),cn),e5.Footer=W.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),cn);const t5=W.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),sn),n5=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),r5=W.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),o5=t.forwardRef(((o,i)=>{var{children:a,options:s,items:l,listLabel:u,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:v,restrictInput:y,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:_,addItem:S,removeItem:k,onTextChange:O,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:I,font:R,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!u,H=e=>{e&&S(e)},V=()=>{const{current:e}=F;A||u||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const U=e=>{L(e),O&&O(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(l.length>0){e.preventDefault();const t=l[l.length-1];k(t)}}),A&&!D,[l]);const $=s.filter((e=>!l.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${DB()}`),[]),q=t.useMemo((()=>`multi-select-list-${DB()}`),[]),Z=p?l.length>=p:void 0,G=m||!A||Z,Y=()=>{const t=e.jsxs(c5,{id:q,expanded:A,padTop:A&&l.length>0,labeled:!!u,children:[f&&e.jsx(l5,{expanded:A,labeled:!!u,children:f}),a?a(A,!!m):l.map((t=>e.jsx(T2,{pill:!0,iconRight:A&&!m?e.jsx(fn,{name:"close-circle",onClick:()=>k(t),pointer:!0}):void 0,disabled:m,children:t.label},t.id))),e.jsx(x2,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:y,options:$,fontSize:R.size.md,placeholder:m||l.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:U,onError:e=>P(e),disabled:G,optionsParent:w?`#${q}`:`#${W}`,autoFocus:E}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(i5,{width:g,ref:B,labeled:!!u,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()},children:[e.jsxs(a5,{collapse:z,id:W,expanded:A&&l.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:_,children:[u?e.jsx(s5,{collapse:z,children:u}):Y(),e.jsxs(u5,{children:[p&&!b&&e.jsx(d5,{children:m&&d?e.jsxs(e.Fragment,{children:[l.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(f5,{error:l.length>=p,children:l.length}),"/",p," ",d]})}),l.length>0&&e.jsx(fn,{name:A?"chevron-up":"chevron-down",color:I.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]}),u&&A&&Y()]})})),i5=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),a5=W.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),s5=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),c5=W.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),l5=W.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),u5=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),f5=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),d5=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),p5=e=>e?+e:0,h5=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),cn),g5=W.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),v5=W(g5)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),y5=W(g5)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),m5=W.span((({theme:e})=>({color:e.scale6}))),b5=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l})=>{const u={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(w5,Object.assign({size:n},u,{children:[e.jsx(x5,{cx:h,cy:h,r:f,thickness:r}),e.jsx(C5,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},w5=W.svg((({size:e})=>({display:"block",width:e,height:e})),cn),x5=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),C5=W(x5)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),_5=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),cn),S5=W.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var k5={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function l(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){u&&o&&i&&(u(l),u=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,l=null,u=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,y(e)}}function v(e,t){e.c=t,y(e)}function y(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function _(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new m("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function E(){this.c={}}function j(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){c(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function M(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function P(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},M.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},L=null;function I(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function R(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&R(e,n,i)),t?o()-e.A>=e.w?I()&&R(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){l(this.g.a),l(this.h.a),l(this.j.a),l(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):k(e.a))}function V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function K(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)k(t.a);else{t.f+=n.length,a&&(t.j=a);var c,l=[];for(c=0;c<n.length;c++){var f=n[c],d=s[f.c],p=t.a,h=f;if(p.g&&u(p.f,[p.a.c("wf",h.c,x(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new M(r(t.g,t),r(t.h,t),t.c,f,t.s,d):new P(r(t.g,t),r(t.h,t),t.c,f,t.s,e,d),l.push(p)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function U(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,H(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),u(t.f,r,o)}O(t,"fontinactive",e),H(this)},V.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},U.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new b(r[0],c[l]));else s.push(new b(r[0]));v(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(f=J.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":X[u],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),v(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,_("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new V(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new U(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(k5);var O5=ct(k5.exports);const E5=W.div(an),j5=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),cn),A5=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),T5=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),M5=W.div({display:"flex",flexDirection:"column"}),P5=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),D5=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),L5=W.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),I5=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),R5=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),N5=t.createContext({}),B5=(t,n,r)=>{const o="th"===n?F5:z5,i=r?{style:r}:{};return Ls(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},F5=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),z5=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),H5=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),V5=W(E2)({alignItems:"center",padding:"8px 24px"},sn),K5=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),U5=W(E2)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),sn),$5=W.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),W5=W($5)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),sn),q5=W($5)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),Z5=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,l]=t.useState(i),[u,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(u){const{key:t,dir:n}=u;e=ut.orderBy(i,t,n)}ut.isEqual(e,s)||l(e)}),[i,u]);const p=t.useMemo((()=>({activeColumn:u,setActiveColumn:f,parentColumns:o})),[u,f,o]);return e.jsx(N5.Provider,{value:p,children:e.jsx(G5,Object.assign({},a,{children:d}))})};Z5.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:l}=t.useContext(N5),u=o||l||"equal";return e.jsx(H5,{alignToScrollBody:a,children:e.jsx(V5,Object.assign({as:"tr",columns:u},s,{children:B5(r,"th",i)}))})},Z5.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,l]=t.useState(a||"inactive"),{color:u}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(N5),p=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,v=e=>{if(l(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||v(a)}),[]),t.useEffect((()=>{a&&l(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&l("inactive")}),[f,c]),e.jsxs(q5,{onClick:e=>{s?v("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p,children:[r,p?e.jsx(fn,{name:h,marginLeft:8,size:"small",color:g?u.brand:void 0,inheritColor:!g}):null]})},Z5.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(N5);return e.jsx(K5,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},Z5.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:l}=t.useContext(N5),u=o||l||"equal";return e.jsx(U5,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:B5(r,"td",a)}))},Z5.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const l={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(W5,Object.assign({contentPosition:n,showDefault:!!r&&!t},l,{children:t||r}))};const G5=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),sn,cn),Y5=t.forwardRef(((e,n)=>t.createElement(se.span,q({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[X5,J5]=Z("Tooltip",[Go]),Q5=Go(),e3=700,t3="tooltip.open",[n3,r3]=X5("TooltipProvider"),o3="Tooltip",[i3,a3]=X5(o3),s3="TooltipTrigger",c3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=a3(s3,r),a=r3(s3,r),s=Q5(r),c=X(n,t.useRef(null),i.onTriggerChange),l=t.useRef(!1),u=t.useRef(!1),f=t.useCallback((()=>l.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(ci,q({asChild:!0},s),t.createElement(se.button,q({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{l.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),l3="TooltipPortal",[u3,f3]=X5(l3,{forceMount:void 0}),d3="TooltipContent",p3=t.forwardRef(((e,n)=>{const r=f3(d3,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=a3(d3,e.__scopeTooltip);return t.createElement(ue,{present:o||s.open},s.disableHoverableContent?t.createElement(y3,q({side:i},a,{ref:n})):t.createElement(h3,q({side:i},a,{ref:n})))})),h3=t.forwardRef(((e,n)=>{const r=a3(d3,e.__scopeTooltip),o=r3(d3,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:l,onClose:u}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(l&&f){const e=e=>h(e,f),t=e=>h(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>r!=l>r&&n<(c-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,s,u,p]),t.createElement(y3,q({},e,{ref:a}))})),[g3,v3]=X5(o3,{isInside:!1}),y3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=a3(d3,r),u=Q5(r),{onClose:f}=l;return t.useEffect((()=>(document.addEventListener(t3,f),()=>document.removeEventListener(t3,f))),[f]),t.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,f]),t.createElement(vr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(li,q({"data-state":l.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(g3,{scope:r,isInside:!0},t.createElement(Y5,{id:l.contentId,role:"tooltip"},i||o))))}));const m3=e=>{const{__scopeTooltip:n,delayDuration:r=e3,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.createElement(n3,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},a)},b3=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=r3(o3,e.__scopeTooltip),u=Q5(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(t3))):l.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?y.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),y.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),_=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(si,u,t.createElement(i3,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{l.isOpenDelayed?_():x()}),[l.isOpenDelayed,_,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},w3=c3,x3=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=a3(l3,n);return t.createElement(u3,{scope:n,forceMount:r},t.createElement(ue,{present:r||a.open},t.createElement(fi,{asChild:!0,container:i},o)))},C3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Q5(r);return v3("TooltipArrow",r).isInside?null:t.createElement(ui,q({},i,o,{ref:n}))})),_3=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:l,maxWidth:u,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:v,container:y,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(m3,{children:e.jsxs(b3,{delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d,children:[e.jsx(w3,{asChild:!0,children:e.jsx(k3,Object.assign({},w,{children:n}))}),e.jsx(x3,{container:y,children:!p&&e.jsxs(S3,{side:Ks(i).side,align:Ks(i).align,sideOffset:a,zIndex:s,width:l,maxWidth:u,textAlign:f,id:h,bgColor:g,textColor:v,children:[o||r,e.jsx(C3,{className:"tooltip-arrow",width:12,height:8})]})})]})})},S3=W(p3,{shouldForwardProp:e=>Us(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,l=s.background,u=o||l;return{backgroundColor:u,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),k3=W.div({display:"inline-flex"}),O3=W.div((({theme:e})=>({color:e.tooltip.color.default}))),E3=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));_3.Header=O3,_3.Body=E3;const j3="#0074F4",A3="#FF6068",T3="#FF9900",M3="#F0BB00",P3="#00C242",D3="#001D32",L3="#FFFFFF",I3={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:j3,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:ur(.95,j3),brandTint1:ur(.9,j3),brandTint2:ur(.8,j3),brandTint3:ur(.7,j3),brandTint4:ur(.6,j3),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:A3,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:ur(.95,A3),errorTint1:ur(.9,A3),errorTint2:ur(.8,A3),warning:T3,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:ur(.95,T3),warningTint1:ur(.9,T3),warningTint2:ur(.8,T3),alert:M3,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:ur(.95,M3),alertTint1:ur(.9,M3),alertTint2:ur(.8,M3),success:P3,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:ur(.95,P3),successTint1:ur(.9,P3),successTint2:ur(.8,P3),grayscale0:ur(.95,D3),grayscale1:ur(.9,D3),grayscale2:ur(.8,D3),grayscale3:ur(.7,D3),grayscale4:ur(.6,D3),grayscale5:ur(.5,D3),grayscale6:ur(.4,D3),grayscale7:ur(.3,D3),grayscale8:ur(.2,D3),grayscale9:ur(.1,D3),grayscale10:D3,contrast0:ur(.95,L3),contrast1:ur(.9,L3),contrast2:ur(.8,L3),contrast3:ur(.7,L3),contrast4:ur(.6,L3),contrast5:ur(.5,L3),contrast6:ur(.4,L3),contrast7:ur(.3,L3),contrast8:ur(.2,L3),contrast9:ur(.1,L3),contrast10:L3};var R3={color:I3,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:N3}=R3;var B3={small:{height:28,iconSize:18,font:N3.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:N3.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:N3.size.lg,padding:14,iconOnlyPadding:6}};const F3="#FFFFFF",z3=I3.grayscale0,H3=I3.grayscale1,V3=I3.grayscale2,K3=I3.grayscale3,U3=I3.grayscale4,$3=I3.grayscale5,W3=I3.grayscale6,q3=I3.grayscale7,Z3=I3.grayscale8,G3=I3.grayscale9,Y3=I3.grayscale10,X3=Object.assign(Object.assign({},R3),{name:"light",accent:I3.brand,accentShade:I3.brandShade1,background0:F3,background1:F3,background2:F3,background3:F3,background4:F3,background5:F3,scale0:z3,scale1:H3,scale2:V3,scale3:K3,scale4:U3,scale5:$3,scale6:W3,scale7:q3,scale8:Z3,scale9:G3,scale10:Y3,button:Object.assign(Object.assign({},B3),{primary:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},outlineBackground:{default:I3.brandTint0,hover:I3.brandTint1,active:I3.brandTint2},border:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},divider:V3},secondary:{color:{default:Y3,hover:Y3,active:Y3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:H3,hover:V3,active:K3},outlineBackground:{default:H3,hover:V3,active:K3},border:{default:V3,hover:V3,active:V3},divider:V3},positive:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},outlineBackground:{default:I3.successTint0,hover:I3.successTint1,active:I3.successTint2},border:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},divider:V3},negative:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},outlineBackground:{default:I3.errorTint0,hover:I3.errorTint1,active:I3.errorTint2},border:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},divider:V3},caution:{color:{default:F3,hover:F3,active:F3},outlineColor:{default:Y3,hover:Y3,active:Y3},background:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},outlineBackground:{default:I3.warningTint0,hover:I3.warningTint1,active:I3.warningTint2},border:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},divider:V3},subtle:{color:{default:I3.brand,hover:I3.brand,active:I3.brand},outlineColor:{default:I3.brand,hover:I3.brand,active:I3.brand},secondaryColor:{default:Y3,hover:Y3,active:Y3},positiveColor:{default:I3.success,hover:I3.success,active:I3.success},negativeColor:{default:I3.error,hover:I3.error,active:I3.error},cautionColor:{default:I3.warning,hover:I3.warning,active:I3.warning},background:{default:"transparent",hover:H3,active:V3},outlineBackground:{default:"transparent",hover:H3,active:V3},border:{default:"transparent",hover:V3,active:V3},divider:V3},link:{color:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},outlineColor:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},secondaryColor:{default:Z3,hover:G3,active:Y3},positiveColor:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},negativeColor:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},cautionColor:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:U3,hover:U3,active:U3},outlineColor:{default:U3,hover:U3,active:U3},background:{default:H3,hover:H3,active:H3},outlineBackground:{default:z3,hover:z3,active:z3},border:{default:H3,hover:H3,active:H3},divider:H3},color:{default:F3}}),calendar:{background:{container:I3.contrast10,hover:H3,active:I3.brand,activeHover:I3.brandShade1},color:{disabled:U3,default:Y3,active:I3.contrast10,current:I3.brand,outside:W3,weekday:Z3,monthYear:Z3,iconDefault:U3,iconHover:Y3}},defaultBorder:`1px solid ${H3}`,formControl:{color:{default:Z3,hover:Y3,active:I3.brand,activeHover:I3.brandShade1,disabled:U3}},input:{borderRadius:4,background:{default:z3,hover:H3,focused:H3,disabled:z3},color:{default:Y3,disabled:U3,placeholder:W3,description:W3,descriptionError:I3.error},borderColor:{default:W3,hover:Z3,focused:I3.brand,disabled:U3,error:I3.error},labelColor:{default:Z3,hover:Z3,filled:W3,focused:I3.brand,disabled:U3}},menu:{background:F3},menuItem:{borderColor:I3.brand,background:{active:z3,hover:H3,inactive:"transparent"},color:{active:Y3,hover:Y3,inactive:W3}},modal:{background:I3.contrast10,color:{header:Y3,body:W3}},options:{background:I3.contrast10},optionItem:{background:{active:H3,inactive:"transparent"},color:{active:Y3,inactive:Y3,accent:I3.brand}},table:{color:{header:W3,body:Y3},borderColor:H3},toast:{color:Y3,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Z3,info:I3.brand,success:I3.success,warning:I3.warning,error:I3.error}},toggle:{slider:I3.contrast10},tooltip:{background:"#FFF",color:{default:Y3,subtext:W3}}}),J3=I3.contrast0,Q3=I3.contrast1,e9=I3.contrast2,t9=I3.contrast3,n9=I3.contrast4,r9=I3.contrast5,o9=I3.contrast6,i9=I3.contrast7,a9=I3.contrast8,s9=I3.contrast9,c9=I3.contrast10,l9=I3.brandDark,u9={light:X3,dark:Object.assign(Object.assign({},R3),{name:"dark",accent:l9,accentShade:I3.brandDarkShade1,background0:I3.brandBackground0,background1:I3.brandBackground1,background2:I3.brandBackground2,background3:I3.brandBackground3,background4:I3.brandBackground4,background5:I3.brandBackground5,scale0:J3,scale1:Q3,scale2:e9,scale3:t9,scale4:n9,scale5:r9,scale6:o9,scale7:i9,scale8:a9,scale9:s9,scale10:c9,button:Object.assign(Object.assign({},B3),{primary:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},outlineBackground:{default:I3.brandTint0,hover:I3.brandTint1,active:I3.brandTint2},border:{default:I3.brand,hover:I3.brandShade1,active:I3.brandShade2},divider:e9},secondary:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:Q3,hover:e9,active:t9},outlineBackground:{default:Q3,hover:e9,active:t9},border:{default:e9,hover:e9,active:e9},divider:e9},positive:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},outlineBackground:{default:I3.successTint0,hover:I3.successTint1,active:I3.successTint2},border:{default:I3.success,hover:I3.successShade1,active:I3.successShade2},divider:e9},negative:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},outlineBackground:{default:I3.errorTint0,hover:I3.errorTint1,active:I3.errorTint2},border:{default:I3.error,hover:I3.errorShade1,active:I3.errorShade2},divider:e9},caution:{color:{default:c9,hover:c9,active:c9},outlineColor:{default:c9,hover:c9,active:c9},background:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},outlineBackground:{default:I3.warningTint0,hover:I3.warningTint1,active:I3.warningTint2},border:{default:I3.warning,hover:I3.warningShade1,active:I3.warningShade2},divider:e9},subtle:{color:{default:I3.brand,hover:I3.brand,active:I3.brand},outlineColor:{default:I3.brand,hover:I3.brand,active:I3.brand},secondaryColor:{default:c9,hover:c9,active:c9},positiveColor:{default:I3.success,hover:I3.success,active:I3.success},negativeColor:{default:I3.error,hover:I3.error,active:I3.error},cautionColor:{default:I3.warning,hover:I3.warning,active:I3.warning},background:{default:"transparent",hover:Q3,active:e9},outlineBackground:{default:"transparent",hover:Q3,active:e9},border:{default:"transparent",hover:e9,active:e9},divider:e9},link:{color:{default:I3.brandShade2,hover:I3.brandShade1,active:I3.brand},outlineColor:{default:I3.brandShade2,hover:I3.brandShade1,active:I3.brand},secondaryColor:{default:a9,hover:s9,active:c9},positiveColor:{default:I3.successShade2,hover:I3.successShade1,active:I3.success},negativeColor:{default:I3.errorShade2,hover:I3.errorShade1,active:I3.error},cautionColor:{default:I3.warningShade2,hover:I3.warningShade1,active:I3.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:n9,hover:n9,active:n9},outlineColor:{default:n9,hover:n9,active:n9},background:{default:Q3,hover:Q3,active:Q3},outlineBackground:{default:J3,hover:J3,active:J3},border:{default:Q3,hover:Q3,active:Q3},divider:Q3},color:{default:"#FFFFFF"}}),calendar:{background:{container:I3.brandBackground3,hover:Q3,active:I3.brand,activeHover:I3.brandShade1},color:{disabled:n9,default:c9,active:c9,current:l9,outside:o9,weekday:a9,monthYear:a9,iconDefault:n9,iconHover:c9}},defaultBorder:`1px solid ${Q3}`,formControl:{color:{default:a9,hover:c9,active:I3.brand,activeHover:I3.brandShade1,disabled:n9}},input:{borderRadius:4,background:{default:J3,hover:Q3,focused:Q3,disabled:J3},color:{default:c9,disabled:n9,placeholder:o9,description:o9,descriptionError:I3.error},borderColor:{default:o9,hover:a9,focused:l9,disabled:n9,error:I3.error},labelColor:{default:a9,hover:a9,filled:o9,focused:l9,disabled:n9}},menu:{background:I3.brandBackground2},menuItem:{borderColor:I3.brand,background:{active:J3,hover:Q3,inactive:"transparent"},color:{active:c9,hover:c9,inactive:o9}},modal:{background:I3.brandBackground3,color:{header:c9,body:o9}},options:{background:I3.brandBackground3},optionItem:{background:{active:Q3,inactive:"transparent"},color:{active:c9,inactive:c9,accent:l9}},table:{color:{header:o9,body:c9},borderColor:Q3},toast:{color:c9,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:a9,info:I3.brand,success:I3.success,warning:I3.warning,error:I3.error}},toggle:{slider:I3.brandBackground0},tooltip:{background:I3.brandBackground4,color:{default:c9,subtext:o9}}})};exports.Accordion=hn,exports.Audio=Cc,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:l,barSize:u=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:v=45}=t,y=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:m}=n.useTheme();return e.jsxs(wB,Object.assign({},y,{children:[e.jsx(bB,{}),e.jsx(SC,{width:"100%",height:"100%",children:e.jsxs($R,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:f,barGap:s,barCategoryGap:l,children:[e.jsx(xI,{stroke:m,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(BI,{stroke:m,tickMargin:4,tickFormatter:e=>d?Rc(e):e,tick:!h&&{},height:h?12:g,dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(FI,{stroke:m,tickMargin:4,tickFormatter:e=>d?e:Rc(e),tick:!p&&{},width:p?5:v,dataKey:d?"name":void 0,type:d?"category":"number"}),CB(),o&&e.jsx(wm,{content:e.jsx(_B,{})}),i.map((({key:t,color:n},r)=>e.jsx(cL,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=pc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[l,u]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>hB(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),y=e=>{const t=gB(("prev"===e?vB:eN)(f,{months:1}),1),n=v(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?lB(vB(e,{months:1})):gB("future"===n?eN(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?vB:eN)(o,{days:e}),a=v(n);i[t](a)}return i},b=e=>{const t=function(e){return YR(1,arguments),XR(e).getDay()}(gB(e,1)),n=cB(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=v(c),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(lB(f)),s=v(gB(f,1));let u=!1;const d=fB(e,n),p=uB(e,r);(i&&d||a&&p)&&(u=!0);const h=uB(e,o)||fB(e,s),g=aN(e,c),y=aN(e,l);return{date:sB(e),fullDate:e,current:g,disabled:u,outside:h,active:y}}))};t.useEffect((()=>{const e=b(f);h(e)}),[l,f]);return e.jsxs(LB,{noShadow:s,children:[e.jsxs(IB,{children:[e.jsx(RB,{children:aB(f,"MMMM Y")}),e.jsxs(NB,{children:[e.jsx(fn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>y("prev"),hoverColor:g.color.iconHover}),e.jsx(fn,{name:"chevron-right",pointer:!0,onClick:()=>y("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(zB,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(HB,{children:t[0]},t)))}),e.jsx(BB,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(FB,{disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),o(e)})(n),children:t},DB())))})]})},exports.Checkbox=$B,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p},v=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,m,b]=v;y=y||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=y?y.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),_=e=>{if(m){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ut.range(r,o+1):ut.rangeRight(o,r+1)}return null})),n=t.flat();return ut.compact(n)})(m);return t.some((t=>e===t))}return!1},S=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(zF,{method:x,url:S}):e.jsx(NF,{code:S,language:w,theme:"dark"===h?dF.oceanicNext:dF.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(UF,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement($F,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:_(r+1)}),o.length>1&&!C&&e.jsx(WF,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(BF,{content:S})]}))})},exports.DocTable=qF,exports.DraftEditor=f2,exports.Dropdown=x2,exports.DropdownMenu=$s,exports.Form=P2,exports.Grid=E2,exports.Icon=fn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[u,f]=t.useState(i),d=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(u>0?u-1:o.length-1),h=()=>u<o.length-1?f(u+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(R2,{opacity:l,prevNext:o.length>1,children:[e.jsx(N2,{onClick:r,children:e.jsx(fn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(B2,{id:"prev",onClick:p,children:e.jsx(fn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(F2,{ref:d,src:o[u],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(B2,{next:!0,id:"next",onClick:h,children:e.jsx(fn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=z2,exports.Input=v2,exports.InputUtils=u2,exports.Label=T2,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[l,u]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(wB,Object.assign({},s,{children:[e.jsx(bB,{}),e.jsx(SC,{width:"100%",height:"100%",children:e.jsxs(UR,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(xI,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(BI,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(FI,{stroke:f,tickMargin:4,tickFormatter:e=>Rc(e)}),CB(),i&&e.jsx(wm,{content:e.jsx(_B,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e.jsx(NI,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=H2,exports.Message=W2,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(Q2,{children:[e.jsx(J2,{}),e.jsx(X2,{color:n,style:r,children:t}),e.jsx(J2,{})]}),exports.Modal=e5,exports.MultiSelect=o5,exports.Notification=qR,exports.Options=Is,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,l=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,f]=t.useState(p5(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,p5(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},y=0!==d,m=d!==g.length-1;return e.jsxs(h5,Object.assign({width:s},l,{children:[e.jsx(v5,{disabled:1===u,onClick:()=>v(1),children:e.jsx(fn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(v5,{disabled:1===u,onClick:()=>v(u-1),children:e.jsx(fn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&y?e.jsx(m5,{children:"... "}):"",e.jsx(y5,{selected:n===u,onClick:()=>v(n),children:n}),r===o.length-1&&m?e.jsx(m5,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(v5,{disabled:u===i,onClick:()=>v(u+1),children:e.jsx(fn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(v5,{disabled:u===i,onClick:()=>v(i),children:e.jsx(fn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,l=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(wB,Object.assign({width:n,height:n},a,{children:e.jsxs(WR,{width:n,height:n,children:[e.jsx(qP,{dataKey:"value",data:l,innerRadius:o,outerRadius:u,children:null==l?void 0:l.map((t=>e.jsx(kC,{fill:t.color||"#999"},t.name)))}),s&&CB()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(b5,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(_5,Object.assign({width:o,height:i||s},p,{children:e.jsx(S5,{color:n,width:h})}))},exports.Radio=j2,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,O5.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=bc,exports.Spacer=E5,exports.Spinner=ic,exports.Table=Z5,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=A2,exports.Tooltip=_3,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[y,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,v]),t.useEffect((()=>{r(b)}),[b]);const _=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},S=e=>{const t="select"===e?m:w,n="select"===e?y:b;("select"===e?w:m)((e=>[...e,...n])),t([])},k=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(I5,{children:t.header}),e.jsx(R5,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(s&&c);return e.jsxs(j5,Object.assign({width:u,readOnly:l},x,{children:[i&&e.jsx(A5,{children:i}),e.jsxs(T5,{children:[!l&&e.jsxs(M5,{children:[O&&e.jsx(P5,{children:y.length>0&&!s&&e.jsx(pc,{small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(D5,{children:y.map((t=>e.jsxs(L5,{onClick:()=>_(t,"select"),color:t.color,children:[k(t),e.jsx(fn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(M5,{children:[O&&!l&&e.jsx(P5,{children:b.length>0&&!c&&!l&&e.jsx(pc,{small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left",children:"All"})}),l&&0===b.length?e.jsx("div",{children:a}):e.jsx(D5,{children:b.map((t=>e.jsxs(L5,{onClick:()=>_(t,"remove"),color:t.color,children:[k(t),e.jsx(fn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.copyToClipboard=yB,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,l=aB(n,"EEEE"),u=aB(n,"MMM d"),f=aB(n,"MMM d, y"),d=aB(n,"h:mm aaa"),p=dB(n),h=function(e){return YR(1,arguments),XR(e).getTime()>Date.now()}(n),g=function(e){return YR(1,arguments),aN(e,Date.now())}(n),v=function(e){return YR(1,arguments),aN(e,pB(Date.now(),1))}(n),y=function(e){return YR(1,arguments),aN(e,JR(Date.now(),1))}(n),m=pN(c,n),b=function(e,t,n){YR(2,arguments);var r=lN(e,t)/7;return dN(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:v?`Yesterday${x}`:y?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${f}${x}`:`${l}${x}`)},exports.marginProps=cn,exports.numberWithCommas=mB,exports.paddingProps=sn,exports.positionProps=ln,exports.theme=u9,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:u}={})=>{const[f,d]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof u&&f!==u&&d(u)}),[p]);const v=()=>{null==p||p.resolve(!s||f),g()},y=()=>{null==p||p.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":y()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(e5,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(e5.Header,{children:n}),r&&e.jsx(e5.Text,{children:r}),s&&e.jsx(e5.Body,{marginTop:4,marginBottom:8,children:e.jsx(v2,{autoFocus:!0,label:c,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})}),e.jsxs(e5.Footer,{children:[e.jsx(pc,{secondary:!0,marginRight:8,onClick:y,children:o}),e.jsx(pc,{negative:a,onClick:v,children:i})]})]})]},exports.useElementObserver=on,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,c]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=an;
228
228
  //# sourceMappingURL=index.js.map