@wavv/ui 1.5.3 → 1.5.5

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.
@@ -199,7 +199,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
199
199
  38:14,
200
200
  /*! Conditions:: INITIAL */
201
201
  /*! Rule:: $ */
202
- 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!==kw&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Ew);var jw={},Aw={},Tw={get exports(){return Aw},set exports(e){Aw=e}},Mw={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}},Pw=function(e,t,n,r){if(!Mw.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Mw[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=Mw[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=function(e){return e&&e.__esModule?e:{default:e}}(Pw);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(Tw,Aw),Object.defineProperty(jw,"__esModule",{value:!0}),jw.flip=Lw;var Dw=function(e){return e&&e.__esModule?e:{default:e}}(Aw);function Rw(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Dw.default)(e.left,e.right,t),r=Rw(n.left,t),o=Rw(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)&&(Iw(r.right,o.right)?n=(0,Dw.default)(r.left,o.left,t):Iw(r.right,o.left)&&(n=(0,Dw.default)(r.left,o.right,t)),r=Rw(n.left,t),o=Rw(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 Bw(o);r.type===o.type&&Nw(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(Nw(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Rw({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?Lw(o.operator):o.operator,Rw(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Rw({type:"MathExpression",operator:"-"===i?Lw(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Rw(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Nw(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Rw({type:"MathExpression",operator:i,left:r.left,right:o},t),Rw(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Rw({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Rw({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Rw(e,t)}return e}(e,t);case"/":return function(e,t){if(!Nw(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 Nw(e.left.left.type)&&Nw(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Rw(e.left,t)):e;if(Nw(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(Nw(e.left.left.type)&&Nw(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Nw(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(Nw(e.right.left.type)&&Nw(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&&Nw(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Rw(e.value,t):e}function Iw(e,t){return e.type===t.type&&e.value===t.value}function Nw(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 Lw(e){return"+"===e?"-":"+"}function Bw(e){return Nw(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Bw(e.left),e.right=Bw(e.right)),e}jw.default=Rw;var Fw={};!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=jw,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,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;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}({get exports(){return Fw},set exports(e){Fw=e}},Fw),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Ow),r=Ew,o=a(jw),i=a(Fw);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),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(uw,cw);var zw=c(cw);function Vw(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 Hw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vw(Object(n),!0).forEach((function(t){Uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kw(e){return function(e){if(Array.isArray(e))return Ww(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 Ww(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 Ww(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 Ww(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 $w={widthCache:{},cacheCount:0},qw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gw=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Zw="recharts_measurement_span";var Yw=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(Kw(e),["-",t.toLowerCase()]):[].concat(Kw(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],Gw.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},Xw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Pm.isSsr)return{width:0,height:0};var n="".concat(e),r=Yw(t),o="".concat(n,"-").concat(r);if($w.widthCache[o])return $w.widthCache[o];try{var i=document.getElementById(Zw);i||((i=document.createElement("span")).setAttribute("id",Zw),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Hw(Hw({},qw),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 $w.widthCache[o]=c,++$w.cacheCount>2e3&&($w.cacheCount=0,$w.widthCache={}),c}catch(e){return{width:0,height:0}}};function Jw(e){return Jw="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},Jw(e)}function Qw(){return Qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function ex(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 tx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rx(e,t){return rx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rx(e,t)}function ox(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=ax(e);if(t){var o=ax(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ix(this,n)}}function ix(e,t){return!t||"object"!==Jw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ax(e){return ax=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ax(e)}function sx(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)||function(e,t){if(!e)return;if("string"==typeof e)return cx(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 cx(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 cx(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 ux(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 lx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ux(Object(n),!0).forEach((function(t){fx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ux(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var px=/[ \f\n\r\t\v\u2028\u2029]+/,dx=function(e){try{var t=[];return Wd(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(px)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Xw(t,e.style).width}})),spaceWidth:e.breakAll?0:Xw(" ",e.style).width}}catch(e){return null}},hx=function(e){return[{words:Wd(e)?[]:e.toString().split(px)}]},gx=function(e,t){if((e.width||e.scaleToFit)&&!Pm.isSsr&&t){var n=dx(e);return n?function(e,t,n,r,o){var i=Cd(e.maxLines),a=e.children,s=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<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=dx(lx(lx({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=sx(l(h-1),2),y=g[0],v=g[1],m=sx(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):hx(e.children)}return hx(e.children)},yx=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}}),t&&rx(e,t)}(a,t.Component);var n,r,o,i=ox(a);function a(){var e;tx(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={},e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=ex(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),h=this.state.wordsByLines;if(!Sd(d.x)||!Sd(d.y))return null;var g,y=d.x+(Cd(n)?n:0),v=d.y+(Cd(r)?r:0);switch(i){case"start":g=zw("calc(".concat(l,")"));break;case"middle":g=zw("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=zw("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((Cd(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",Qw({},Ro(d,!0),{x:y,y:v,className:jo("recharts-text",f),textAnchor:o,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,n){return t.createElement("tspan",{x:y,dy:0===n?g:u,key:n},e.words.join(p?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:gx(e,n)}}return null}}],r&&nx(n.prototype,r),o&&nx(n,o),a}();function vx(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function mx(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}yx.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"};var bx={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},wx=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},xx=null,_x=null,Cx=function e(n){if(n===xx&&us(_x))return _x;var r=[];return t.Children.forEach(n,(function(t){Wd(t)||(Or.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),_x=r,xx=n,r},Sx=function(e,t){var n=[],r=[];return r=us(t)?t.map((function(e){return wx(e)})):[wx(t)],Cx(e).forEach((function(e){var t=nl(e,"type.displayName")||nl(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},Ox=function(e,t){var n=Sx(e,t);return n&&n[0]},kx=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Cd(n)||n<=0||!Cd(r)||r<=0)},Ex=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],jx=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return Ax(us(n)?n[0]:n,us(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(us(a)||us(s)){if(!e(a,s))return!1}else if(!Ax(a,s))return!1}return!0},Ax=function(e,t){if(Wd(e)&&Wd(t))return!0;if(!Wd(e)&&!Wd(t)){var n=e.props||{},r=n.children,o=mx(n,["children"]),i=t.props||{},a=i.children,s=mx(i,["children"]);return r&&a?vx(o,s)&&jx(r,a):!r&&!a&&vx(o,s)}return!1},Tx=function(e,t){var n=[],r={};return Cx(e).forEach((function(e,o){if(function(e){return e&&e.type&&wd(e.type)&&Ex.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=wx(e.type),a=t[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var u=s(e,i,o);n.push(u),r[i]=!0}}})),n},Mx=au;var Px=function(e,t){return Mx(e,t)},Dx=_u;var Rx=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&&!Dx(a):n(a,s)))var s=a,c=i}return c};var Ix=function(e,t){return e>t},Nx=Rx,Lx=Ix,Bx=_l;var Fx=function(e){return e&&e.length?Nx(e,Bx,Lx):void 0};var zx=function(e,t){return e<t},Vx=Rx,Hx=zx,Ux=_l;var Kx=function(e){return e&&e.length?Vx(e,Ux,Hx):void 0},Wx=Nu,$x=Nl,qx=Pv,Gx=us;var Zx=Cv,Yx=function(e,t){return(Gx(e)?Wx:qx)(e,$x(t))};var Xx,Jx=function(e,t){return Zx(Yx(e,t),1)},Qx={},e_={},t_=1e9,n_=!0,r_="[DecimalError] ",o_=r_+"Invalid argument: ",i_=r_+"Exponent out of range: ",a_=Math.floor,s_=Math.pow,c_=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,u_=1e7,l_=9007199254740991,f_=a_(1286742750677284.5),p_={};function d_(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),n_?C_(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/u_|0,c[i]%=u_;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,n_?C_(t,f):t}function h_(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o_+e)}function g_(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=w_(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=w_(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}p_.absoluteValue=p_.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},p_.comparedTo=p_.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},p_.decimalPlaces=p_.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},p_.dividedBy=p_.div=function(e){return y_(this,new this.constructor(e))},p_.dividedToIntegerBy=p_.idiv=function(e){var t=this.constructor;return C_(y_(this,new t(e),0,1),t.precision)},p_.equals=p_.eq=function(e){return!this.cmp(e)},p_.exponent=function(){return m_(this)},p_.greaterThan=p_.gt=function(e){return this.cmp(e)>0},p_.greaterThanOrEqualTo=p_.gte=function(e){return this.cmp(e)>=0},p_.isInteger=p_.isint=function(){return this.e>this.d.length-2},p_.isNegative=p_.isneg=function(){return this.s<0},p_.isPositive=p_.ispos=function(){return this.s>0},p_.isZero=function(){return 0===this.s},p_.lessThan=p_.lt=function(e){return this.cmp(e)<0},p_.lessThanOrEqualTo=p_.lte=function(e){return this.cmp(e)<1},p_.logarithm=p_.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(Xx))throw Error(r_+"NaN");if(n.s<1)throw Error(r_+(n.s?"NaN":"-Infinity"));return n.eq(Xx)?new r(0):(n_=!1,t=y_(x_(n,i),x_(e,i),i),n_=!0,C_(t,o))},p_.minus=p_.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S_(t,e):d_(t,(e.s=-e.s,e))},p_.modulo=p_.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(r_+"NaN");return n.s?(n_=!1,t=y_(n,e,0,1).times(e),n_=!0,n.minus(t)):C_(new r(n),o)},p_.naturalExponential=p_.exp=function(){return v_(this)},p_.naturalLogarithm=p_.ln=function(){return x_(this)},p_.negated=p_.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},p_.plus=p_.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?d_(t,e):S_(t,(e.s=-e.s,e))},p_.precision=p_.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(o_+e);if(t=m_(o)+1,n=7*(r=o.d.length-1)+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},p_.squareRoot=p_.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(r_+"NaN")}for(e=m_(s),n_=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=g_(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=a_((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(y_(s,i,a+2)).times(.5),g_(i.d).slice(0,a)===(t=g_(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(C_(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return n_=!0,C_(r,n)},p_.times=p_.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+d[r]*p[o-r-1]+t,i[o--]=s%u_|0,t=s/u_|0;i[o]=(i[o]+t)%u_|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,n_?C_(e,f.precision):e},p_.toDecimalPlaces=p_.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(h_(e,0,t_),void 0===t?t=r.rounding:h_(t,0,8),C_(n,e+m_(n)+1,t))},p_.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=O_(r,!0):(h_(e,0,t_),void 0===t?t=o.rounding:h_(t,0,8),n=O_(r=C_(new o(r),e+1,t),!0,e+1)),n},p_.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?O_(o):(h_(e,0,t_),void 0===t?t=i.rounding:h_(t,0,8),n=O_((r=C_(new i(o),e+m_(o)+1,t)).abs(),!1,e+m_(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},p_.toInteger=p_.toint=function(){var e=this,t=e.constructor;return C_(new t(e),m_(e)+1,t.rounding)},p_.toNumber=function(){return+this},p_.toPower=p_.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(Xx);if(!(s=new c(s)).s){if(e.s<1)throw Error(r_+"Infinity");return s}if(s.eq(Xx))return s;if(r=c.precision,e.eq(Xx))return C_(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=l_){for(o=new c(Xx),t=Math.ceil(r/7+4),n_=!1;n%2&&k_((o=o.times(s)).d,t),0!==(n=a_(n/2));)k_((s=s.times(s)).d,t);return n_=!0,e.s<0?new c(Xx).div(o):C_(o,r)}}else if(i<0)throw Error(r_+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,n_=!1,o=e.times(x_(s,r+12)),n_=!0,(o=v_(o)).s=i,o},p_.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=O_(o,(n=m_(o))<=i.toExpNeg||n>=i.toExpPos):(h_(e,1,t_),void 0===t?t=i.rounding:h_(t,0,8),r=O_(o=C_(new i(o),e,t),e<=(n=m_(o))||n<=i.toExpNeg,e)),r},p_.toSignificantDigits=p_.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(h_(e,1,t_),void 0===t?t=n.rounding:h_(t,0,8)),C_(new n(this),e,t)},p_.toString=p_.valueOf=p_.val=p_.toJSON=p_[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=m_(e),n=e.constructor;return O_(e,t<=n.toExpNeg||t>=n.toExpPos)};var y_=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%u_|0,r=n/u_|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*u_+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,S,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(r_+"Division by zero");for(c=r.e-o.e,C=j.length,x=E.length,h=(d=new O(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=O.precision:a?i+(m_(r)-m_(o))+1:i)<0)return new O(0);if(m=m/7+2|0,u=0,1==C)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*u_+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=u_/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(S=j.slice()).unshift(0),_=j[0],j[1]>=u_/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*u_+(g[1]||0)),(l=v/_|0)>1?(l>=u_&&(l=u_-1),1==(s=t(f=e(j,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?S:j,p))):(0==l&&(s=l=1),f=j.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?S:j,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,C_(d,a?i+m_(d)+1:i)}}();function v_(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(m_(e)>16)throw Error(i_+m_(e));if(!e.s)return new u(Xx);for(null==t?(n_=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(s_(2,c))/Math.LN10*2+5|0,n=r=o=new u(Xx),u.precision=a;;){if(r=C_(r.times(e),a),n=n.times(++s),g_((i=o.plus(y_(r,n,a))).d).slice(0,a)===g_(o.d).slice(0,a)){for(;c--;)o=C_(o.times(o),a);return u.precision=l,null==t?(n_=!0,C_(o,l)):o}o=i}}function m_(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function b_(e,t,n){if(t>e.LN10.sd())throw n_=!0,n&&(e.precision=n),Error(r_+"LN10 precision limit exceeded");return C_(new e(e.LN10),t)}function w_(e){for(var t="";e--;)t+="0";return t}function x_(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(r_+(p.s?"NaN":"-Infinity"));if(p.eq(Xx))return new h(0);if(null==t?(n_=!1,u=g):u=t,p.eq(10))return null==t&&(n_=!0),b_(h,u);if(u+=10,h.precision=u,r=(n=g_(d)).charAt(0),i=m_(p),!(Math.abs(i)<15e14))return c=b_(h,u+2,g).times(i+""),p=x_(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(n_=!0,C_(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=g_((p=p.times(e)).d)).charAt(0),f++;for(i=m_(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=y_(p.minus(Xx),p.plus(Xx),u),l=C_(p.times(p),u),o=3;;){if(a=C_(a.times(l),u),g_((c=s.plus(y_(a,new h(o),u))).d).slice(0,u)===g_(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(b_(h,u+2,g).times(i+""))),s=y_(s,new h(f),u),h.precision=g,null==t?(n_=!0,C_(s,g)):s;s=c,o+=2}}function __(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=a_(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),n_&&(e.e>f_||e.e<-f_))throw Error(i_+n)}else e.s=0,e.e=0,e.d=[0];return e}function C_(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=u/(i=s_(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%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?u/s_(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=m_(e),f.length=1,t=t-i-1,f[0]=s_(10,(7-t%7)%7),e.e=a_(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=s_(10,7-r),f[l]=o>0?(u/s_(10,a-o)%s_(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==u_&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=u_)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(n_&&(e.e>f_||e.e<-f_))throw Error(i_+m_(e));return e}function S_(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),n_?C_(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(d/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(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]=u_-1;--c[i],c[o]+=u_}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,n_?C_(t,d):t):new p(0)}function O_(e,t,n){var r,o=m_(e),i=g_(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+w_(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+w_(-o-1)+i,n&&(r=n-a)>0&&(i+=w_(r))):o>=a?(i+=w_(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+w_(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=w_(r))),e.s<0?"-"+i:i}function k_(e,t){if(e.length>t)return e.length=t,!0}function E_(e){if(!e||"object"!=typeof e)throw Error(r_+"Object expected");var t,n,r,o=["precision",1,t_,"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(!(a_(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(o_+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(o_+n+": "+r);this[n]=new this(r)}return this}var j_=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(o_+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])):__(t,e.toString())}if("string"!=typeof e)throw Error(o_+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!c_.test(e))throw Error(o_+e);__(t,e)}if(i.prototype=p_,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=E_,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"});Xx=new j_(1);var A_=j_,T_=u(Object.freeze({__proto__:null,get Decimal(){return j_},default:A_})),M_={};function P_(e){return function(e){if(Array.isArray(e))return D_(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 D_(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 D_(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 D_(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}Object.defineProperty(M_,"__esModule",{value:!0}),M_.memoize=M_.reverse=M_.compose=M_.map=M_.range=M_.curry=M_.PLACE_HOLDER=void 0;var R_=function(e){return e},I_={"@@functional/placeholder":!0};M_.PLACE_HOLDER=I_;var N_=function(e){return e===I_},L_=function(e){return function t(){return 0===arguments.length||1===arguments.length&&N_(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},B_=function e(t,n){return 1===t?n:L_((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!==I_})).length;return a>=t?n.apply(void 0,o):e(t-a,L_((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 N_(e)?t.shift():e}));return n.apply(void 0,P_(i).concat(t))})))}))},F_=function(e){return B_(e.length,e)};M_.curry=F_;M_.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var z_=F_((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));M_.map=z_;M_.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return R_;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))}};M_.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};M_.memoize=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 V_={};Object.defineProperty(V_,"__esModule",{value:!0}),V_.default=void 0;var H_=function(e){return e&&e.__esModule?e:{default:e}}(T_),U_=M_;var K_=(0,U_.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),W_=(0,U_.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),$_=(0,U_.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),q_={rangeStep:function(e,t,n){for(var r=new H_.default(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 H_.default(e).abs().log(10).toNumber())+1},interpolateNumber:K_,uninterpolateNumber:W_,uninterpolateTruncation:$_};V_.default=q_,Object.defineProperty(e_,"__esModule",{value:!0}),e_.getTickValuesFixedDomain=e_.getTickValues=e_.getNiceTickValues=void 0;var G_=X_(T_),Z_=M_,Y_=X_(V_);function X_(e){return e&&e.__esModule?e:{default:e}}function J_(e){return function(e){if(Array.isArray(e))return tC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||eC(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 Q_(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)||eC(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 eC(e,t){if(e){if("string"==typeof e)return tC(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)?tC(e,t):void 0}}function tC(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 nC(e){var t=Q_(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function rC(e,t,n){if(e.lte(0))return new G_.default(0);var r=Y_.default.getDigitCount(e.toNumber()),o=new G_.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new G_.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new G_.default(Math.ceil(s))}function oC(e,t,n){var r=1,o=new G_.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new G_.default(10).pow(Y_.default.getDigitCount(e)-1),o=new G_.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new G_.default(Math.floor(e)))}else 0===e?o=new G_.default(Math.floor((t-1)/2)):n||(o=new G_.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,Z_.compose)((0,Z_.map)((function(e){return o.add(new G_.default(e-a).mul(r)).toNumber()})),Z_.range);return s(0,t)}function iC(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 G_.default(0),tickMin:new G_.default(0),tickMax:new G_.default(0)};var i,a=rC(new G_.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new G_.default(0):(i=new G_.default(e).add(t).div(2)).sub(new G_.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new G_.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?iC(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new G_.default(s).mul(a)),tickMax:i.add(new G_.default(c).mul(a))})}var aC=(0,Z_.memoize)((function(e){var t=Q_(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=nC([n,r]),c=Q_(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(J_((0,Z_.range)(0,o-1).map((function(){return 1/0})))):[].concat(J_((0,Z_.range)(0,o-1).map((function(){return-1/0}))),[l]);return n>r?(0,Z_.reverse)(f):f}if(u===l)return oC(u,o,i);var p=iC(u,l,a,i),d=p.step,h=p.tickMin,g=p.tickMax,y=Y_.default.rangeStep(h,g.add(new G_.default(.1).mul(d)),d);return n>r?(0,Z_.reverse)(y):y}));e_.getNiceTickValues=aC;var sC=(0,Z_.memoize)((function(e){var t=Q_(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=nC([n,r]),c=Q_(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[n,r];if(u===l)return oC(u,o,i);var f=rC(new G_.default(l).sub(u).div(a-1),i,0),p=(0,Z_.compose)((0,Z_.map)((function(e){return new G_.default(u).add(new G_.default(e).mul(f)).toNumber()})),Z_.range),d=p(0,a).filter((function(e){return e>=u&&e<=l}));return n>r?(0,Z_.reverse)(d):d}));e_.getTickValues=sC;var cC=(0,Z_.memoize)((function(e,t){var n=Q_(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=nC([r,o]),s=Q_(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,o];if(c===u)return[c];var l=Math.max(t,2),f=rC(new G_.default(u).sub(c).div(l-1),i,0),p=[].concat(J_(Y_.default.rangeStep(new G_.default(c),new G_.default(u).sub(new G_.default(.99).mul(f)),f)),[u]);return r>o?(0,Z_.reverse)(p):p}));e_.getTickValuesFixedDomain=cC,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=e_}(Qx);var uC={};function lC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function fC(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}!function(e){function t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function n(e){let t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}function i(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}function a(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a}return 1===e.length&&(t=(t,n)=>e(t)-n,n=r(e)),{left:o,center:a,right:i}}function r(e){return(n,r)=>t(e(n),r)}function o(e){return null===e?NaN:+e}function*i(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)}}const a=n(t),s=a.right,c=a.left,u=n(o).center;function l(e,t){let n=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++n;else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(o=+o)>=o&&++n}return n}function f(e){return 0|e.length}function p(e){return!(e>0)}function d(e){return"object"!=typeof e||"length"in e?e:Array.from(e)}function h(e){return t=>e(...t)}function g(...e){const t="function"==typeof e[e.length-1]&&h(e.pop()),n=(e=e.map(d)).map(f),r=e.length-1,o=new Array(r+1).fill(0),i=[];if(r<0||n.some(p))return i;for(;;){i.push(o.map(((t,n)=>e[n][t])));let a=r;for(;++o[a]===n[a];){if(0===a)return t?i.map(t):i;o[a--]=0}}}function y(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:o=>n+=+t(o,r++,e)||0)}function v(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function m(e,t){let n,r=0,o=0,i=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-o,o+=n/++r,i+=n*(t-o));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-o,o+=n/++r,i+=n*(s-o))}if(r>1)return i/(r-1)}function b(e,t){const n=m(e,t);return n?Math.sqrt(n):n}function w(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}class x{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const o=t[r],i=e+o,a=Math.abs(e)<Math.abs(o)?e-(i-o):o-(i-e);a&&(t[n++]=a),e=i}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,o=this._n,i=0;if(o>0){for(i=e[--o];o>0&&(t=i,n=e[--o],i=t+n,r=n-(i-t),!r););o>0&&(r<0&&e[o-1]<0||r>0&&e[o-1]>0)&&(n=2*r,t=i+n,n==t-i&&(i=t))}return i}}function _(e,t){const n=new x;if(void 0===t)for(let t of e)(t=+t)&&n.add(t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&n.add(o)}return+n}function C(e,t){const n=new x;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):o=>n.add(+t(o,++r,e)||0))}class S extends Map{constructor(e,t=A){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(k(this,e))}has(e){return super.has(k(this,e))}set(e,t){return super.set(E(this,e),t)}delete(e){return super.delete(j(this,e))}}class O extends Set{constructor(e,t=A){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(k(this,e))}add(e){return super.add(E(this,e))}delete(e){return super.delete(j(this,e))}}function k({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function E({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function j({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function A(e){return null!==e&&"object"==typeof e?e.valueOf():e}function T(e){return e}function M(e,...t){return B(e,T,T,t)}function P(e,...t){return B(e,Array.from,T,t)}function D(e,t,...n){return B(e,T,t,n)}function R(e,t,...n){return B(e,Array.from,t,n)}function I(e,...t){return B(e,T,L,t)}function N(e,...t){return B(e,Array.from,L,t)}function L(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function B(e,t,n,r){return function e(o,i){if(i>=r.length)return n(o);const a=new S,s=r[i++];let c=-1;for(const e of o){const t=s(e,++c,o),n=a.get(t);n?n.push(e):a.set(t,[e])}for(const[t,n]of a)a.set(t,e(n,i));return t(a)}(e,0)}function F(e,t){return Array.from(t,(t=>e[t]))}function z(e,...n){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[r=t]=n;if(1===r.length||n.length>1){const o=Uint32Array.from(e,((e,t)=>t));return n.length>1?(n=n.map((t=>e.map(t))),o.sort(((e,r)=>{for(const o of n){const n=t(o[e],o[r]);if(n)return n}}))):(r=e.map(r),o.sort(((e,n)=>t(r[e],r[n])))),F(e,o)}return e.sort(r)}function V(e,n,r){return(1===n.length?z(D(e,n,r),(([e,n],[r,o])=>t(n,o)||t(e,r))):z(M(e,r),(([e,r],[o,i])=>n(r,i)||t(e,o)))).map((([e])=>e))}var H=Array.prototype,U=H.slice;function K(e){return function(){return e}}var W=Math.sqrt(50),$=Math.sqrt(10),q=Math.sqrt(2);function G(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Z(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)/a}return r&&i.reverse(),i}function Z(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=W?10:i>=$?5:i>=q?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=W?10:i>=$?5:i>=q?2:1)}function Y(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=W?o*=10:i>=$?o*=5:i>=q&&(o*=2),t<e?-o:o}function X(e,t,n){let r;for(;;){const o=Z(e,t,n);if(o===r||0===o||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function J(e){return Math.ceil(Math.log(l(e))/Math.LN2)+1}function Q(){var e=T,t=w,n=J;function r(r){Array.isArray(r)||(r=Array.from(r));var o,i,a=r.length,c=new Array(a);for(o=0;o<a;++o)c[o]=e(r[o],o,r);var u=t(c),l=u[0],f=u[1],p=n(c,l,f);if(!Array.isArray(p)){const e=f,n=+p;if(t===w&&([l,f]=X(l,f,n)),(p=G(l,f,n))[p.length-1]>=f)if(e>=f&&t===w){const e=Z(l,f,n);isFinite(e)&&(e>0?f=(Math.floor(f/e)+1)*e:e<0&&(f=(Math.ceil(f*-e)+1)/-e))}else p.pop()}for(var d=p.length;p[0]<=l;)p.shift(),--d;for(;p[d-1]>f;)p.pop(),--d;var h,g=new Array(d+1);for(o=0;o<=d;++o)(h=g[o]=[]).x0=o>0?p[o-1]:l,h.x1=o<d?p[o]:f;for(o=0;o<a;++o)l<=(i=c[o])&&i<=f&&g[s(p,i,0,d)].push(r[o]);return g}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:K(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:K([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?K(U.call(e)):K(e),r):n},r}function ee(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 te(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 ne(e,n,r=0,o=e.length-1,i=t){for(;o>r;){if(o-r>600){const t=o-r+1,a=n-r+1,s=Math.log(t),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(t-c)/t)*(a-t/2<0?-1:1);ne(e,n,Math.max(r,Math.floor(n-a*c/t+u)),Math.min(o,Math.floor(n+(t-a)*c/t+u)),i)}const t=e[n];let a=r,s=o;for(re(e,r,n),i(e[o],t)>0&&re(e,r,o);a<s;){for(re(e,a,s),++a,--s;i(e[a],t)<0;)++a;for(;i(e[s],t)>0;)--s}0===i(e[r],t)?re(e,r,s):(++s,re(e,s,o)),s<=n&&(r=s+1),n<=s&&(o=s-1)}return e}function re(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oe(e,t,n){if(r=(e=Float64Array.from(i(e,n))).length){if((t=+t)<=0||r<2)return te(e);if(t>=1)return ee(e);var r,o=(r-1)*t,a=Math.floor(o),s=ee(ne(e,a).subarray(0,a+1));return s+(te(e.subarray(a+1))-s)*(o-a)}}function ie(e,t,n=o){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),s=+n(e[a],a,e);return s+(+n(e[a+1],a+1,e)-s)*(i-a)}}function ae(e,t,n){return Math.ceil((n-t)/(2*(oe(e,.75)-oe(e,.25))*Math.pow(l(e),-1/3)))}function se(e,t,n){return Math.ceil((n-t)/(3.5*b(e)*Math.pow(l(e),-1/3)))}function ce(e,t){let n,r=-1,o=-1;if(void 0===t)for(const t of e)++o,null!=t&&(n<t||void 0===n&&t>=t)&&(n=t,r=o);else for(let i of e)null!=(i=t(i,++o,e))&&(n<i||void 0===n&&i>=i)&&(n=i,r=o);return r}function ue(e,t){let n=0,r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(++n,r+=t);else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function le(e,t){return oe(e,.5,t)}function*fe(e){for(const t of e)yield*t}function pe(e){return Array.from(fe(e))}function de(e,t){let n,r=-1,o=-1;if(void 0===t)for(const t of e)++o,null!=t&&(n>t||void 0===n&&t>=t)&&(n=t,r=o);else for(let i of e)null!=(i=t(i,++o,e))&&(n>i||void 0===n&&i>=i)&&(n=i,r=o);return r}function he(e,t=ge){const n=[];let r,o=!1;for(const i of e)o&&n.push(t(r,i)),r=i,o=!0;return n}function ge(e,t){return[e,t]}function ye(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}function ve(e,n=t){let r,o=!1;if(1===n.length){let i;for(const a of e){const e=n(a);(o?t(e,i)<0:0===t(e,e))&&(r=a,i=e,o=!0)}}else for(const t of e)(o?n(t,r)<0:0===n(t,t))&&(r=t,o=!0);return r}function me(e,n=t){if(1===n.length)return de(e,n);let r,o=-1,i=-1;for(const t of e)++i,(o<0?0===n(t,t):n(t,r)<0)&&(r=t,o=i);return o}function be(e,n=t){let r,o=!1;if(1===n.length){let i;for(const a of e){const e=n(a);(o?t(e,i)>0:0===t(e,e))&&(r=a,i=e,o=!0)}}else for(const t of e)(o?n(t,r)>0:0===n(t,t))&&(r=t,o=!0);return r}function we(e,n=t){if(1===n.length)return ce(e,n);let r,o=-1,i=-1;for(const t of e)++i,(o<0?0===n(t,t):n(t,r)>0)&&(r=t,o=i);return o}function xe(e,t){const n=me(e,t);return n<0?void 0:n}var _e=Ce(Math.random);function Ce(e){return function(t,n=0,r=t.length){let o=r-(n=+n);for(;o;){const r=e()*o--|0,i=t[o+n];t[o+n]=t[r+n],t[r+n]=i}return t}}function Se(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function Oe(e){if(!(o=e.length))return[];for(var t=-1,n=te(e,ke),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r}function ke(e){return e.length}function Ee(){return Oe(arguments)}function je(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function Ae(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function Te(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const o of e)t(o,++r,e)&&n.push(o);return n}function Me(e,t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof t)throw new TypeError("mapper is not a function");return Array.from(e,((n,r)=>t(n,r,e)))}function Pe(e,t,n){if("function"!=typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let o,i,a=-1;if(arguments.length<3){if(({done:o,value:n}=r.next()),o)return;++a}for(;({done:o,value:i}=r.next()),!o;)n=t(n,i,++a,e);return n}function De(e){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Re(e,...t){e=new Set(e);for(const n of t)for(const t of n)e.delete(t);return e}function Ie(e,t){const n=t[Symbol.iterator](),r=new Set;for(const t of e){if(r.has(t))return!1;let e,o;for(;({value:e,done:o}=n.next())&&!o;){if(Object.is(t,e))return!1;r.add(e)}}return!0}function Ne(e){return e instanceof Set?e:new Set(e)}function Le(e,...t){e=new Set(e),t=t.map(Ne);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function Be(e,t){const n=e[Symbol.iterator](),r=new Set;for(const e of t){if(r.has(e))continue;let t,o;for(;({value:t,done:o}=n.next());){if(o)return!1;if(r.add(t),Object.is(e,t))break}}return!0}function Fe(e,t){return Be(t,e)}function ze(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t}e.Adder=x,e.InternMap=S,e.InternSet=O,e.ascending=t,e.bin=Q,e.bisect=s,e.bisectCenter=u,e.bisectLeft=c,e.bisectRight=s,e.bisector=n,e.count=l,e.cross=g,e.cumsum=y,e.descending=v,e.deviation=b,e.difference=Re,e.disjoint=Ie,e.every=je,e.extent=w,e.fcumsum=C,e.filter=Te,e.fsum=_,e.greatest=be,e.greatestIndex=we,e.group=M,e.groupSort=V,e.groups=P,e.histogram=Q,e.index=I,e.indexes=N,e.intersection=Le,e.least=ve,e.leastIndex=me,e.map=Me,e.max=ee,e.maxIndex=ce,e.mean=ue,e.median=le,e.merge=pe,e.min=te,e.minIndex=de,e.nice=X,e.pairs=he,e.permute=F,e.quantile=oe,e.quantileSorted=ie,e.quickselect=ne,e.range=ye,e.reduce=Pe,e.reverse=De,e.rollup=D,e.rollups=R,e.scan=xe,e.shuffle=_e,e.shuffler=Ce,e.some=Ae,e.sort=z,e.subset=Fe,e.sum=Se,e.superset=Be,e.thresholdFreedmanDiaconis=ae,e.thresholdScott=se,e.thresholdSturges=J,e.tickIncrement=Z,e.tickStep=Y,e.ticks=G,e.transpose=Oe,e.union=ze,e.variance=m,e.zip=Ee,Object.defineProperty(e,"__esModule",{value:!0})}(uC);const pC=Symbol("implicit");function dC(){var e=new Map,t=[],n=[],r=pC;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==pC)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}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 dC(t,n).unknown(r)},lC.apply(o,arguments),o}function hC(){var e,t,n=dC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=uC.range(n).map((function(t){return p+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,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return hC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},lC.apply(f(),arguments)}function gC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return gC(t())},e}function yC(){return gC(hC.apply(null,arguments).paddingInner(1))}function vC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bC(){}var wC=.7,xC=1/wC,_C="\\s*([+-]?\\d+)\\s*",CC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",SC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OC=/^#([0-9a-f]{3,8})$/,kC=new RegExp("^rgb\\("+[_C,_C,_C]+"\\)$"),EC=new RegExp("^rgb\\("+[SC,SC,SC]+"\\)$"),jC=new RegExp("^rgba\\("+[_C,_C,_C,CC]+"\\)$"),AC=new RegExp("^rgba\\("+[SC,SC,SC,CC]+"\\)$"),TC=new RegExp("^hsl\\("+[CC,SC,SC]+"\\)$"),MC=new RegExp("^hsla\\("+[CC,SC,SC,CC]+"\\)$"),PC={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 DC(){return this.rgb().formatHex()}function RC(){return this.rgb().formatRgb()}function IC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?NC(t):3===n?new zC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?LC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?LC(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=kC.exec(e))?new zC(t[1],t[2],t[3],1):(t=EC.exec(e))?new zC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jC.exec(e))?LC(t[1],t[2],t[3],t[4]):(t=AC.exec(e))?LC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=TC.exec(e))?KC(t[1],t[2]/100,t[3]/100,1):(t=MC.exec(e))?KC(t[1],t[2]/100,t[3]/100,t[4]):PC.hasOwnProperty(e)?NC(PC[e]):"transparent"===e?new zC(NaN,NaN,NaN,0):null}function NC(e){return new zC(e>>16&255,e>>8&255,255&e,1)}function LC(e,t,n,r){return r<=0&&(e=t=n=NaN),new zC(e,t,n,r)}function BC(e){return e instanceof bC||(e=IC(e)),e?new zC((e=e.rgb()).r,e.g,e.b,e.opacity):new zC}function FC(e,t,n,r){return 1===arguments.length?BC(e):new zC(e,t,n,null==r?1:r)}function zC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function VC(){return"#"+UC(this.r)+UC(this.g)+UC(this.b)}function HC(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function UC(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function KC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $C(e,t,n,r)}function WC(e){if(e instanceof $C)return new $C(e.h,e.s,e.l,e.opacity);if(e instanceof bC||(e=IC(e)),!e)return new $C;if(e instanceof $C)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 $C(a,s,c,e.opacity)}function $C(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vC(bC,IC,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:DC,formatHex:DC,formatHsl:function(){return WC(this).formatHsl()},formatRgb:RC,toString:RC}),vC(zC,FC,mC(bC,{brighter:function(e){return e=null==e?xC:Math.pow(xC,e),new zC(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?wC:Math.pow(wC,e),new zC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:VC,formatHex:VC,formatRgb:HC,toString:HC})),vC($C,(function(e,t,n,r){return 1===arguments.length?WC(e):new $C(e,t,n,null==r?1:r)}),mC(bC,{brighter:function(e){return e=null==e?xC:Math.pow(xC,e),new $C(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wC:Math.pow(wC,e),new $C(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new zC(qC(e>=240?e-240:e+120,o,r),qC(e,o,r),qC(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const GC=Math.PI/180,ZC=180/Math.PI,YC=.96422,XC=.82521,JC=4/29,QC=6/29,eS=3*QC*QC;function tS(e){if(e instanceof nS)return new nS(e.l,e.a,e.b,e.opacity);if(e instanceof cS)return uS(e);e instanceof zC||(e=BC(e));var t,n,r=aS(e.r),o=aS(e.g),i=aS(e.b),a=rS((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=rS((.4360747*r+.3850649*o+.1430804*i)/YC),n=rS((.0139322*r+.0971045*o+.7141733*i)/XC)),new nS(116*a-16,500*(t-a),200*(a-n),e.opacity)}function nS(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function rS(e){return e>.008856451679035631?Math.pow(e,1/3):e/eS+JC}function oS(e){return e>QC?e*e*e:eS*(e-JC)}function iS(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function aS(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function sS(e){if(e instanceof cS)return new cS(e.h,e.c,e.l,e.opacity);if(e instanceof nS||(e=tS(e)),0===e.a&&0===e.b)return new cS(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ZC;return new cS(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function cS(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function uS(e){if(isNaN(e.h))return new nS(e.l,0,0,e.opacity);var t=e.h*GC;return new nS(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vC(nS,(function(e,t,n,r){return 1===arguments.length?tS(e):new nS(e,t,n,null==r?1:r)}),mC(bC,{brighter:function(e){return new nS(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new nS(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new zC(iS(3.1338561*(t=YC*oS(t))-1.6168667*(e=1*oS(e))-.4906146*(n=XC*oS(n))),iS(-.9787684*t+1.9161415*e+.033454*n),iS(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vC(cS,(function(e,t,n,r){return 1===arguments.length?sS(e):new cS(e,t,n,null==r?1:r)}),mC(bC,{brighter:function(e){return new cS(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new cS(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return uS(this).rgb()}}));var lS=-.14861,fS=1.78277,pS=-.29227,dS=-.90649,hS=1.97294,gS=hS*dS,yS=hS*fS,vS=fS*pS-dS*lS;function mS(e){if(e instanceof wS)return new wS(e.h,e.s,e.l,e.opacity);e instanceof zC||(e=BC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(vS*r+gS*t-yS*n)/(vS+gS-yS),i=r-o,a=(hS*(n-o)-pS*i)/dS,s=Math.sqrt(a*a+i*i)/(hS*o*(1-o)),c=s?Math.atan2(a,i)*ZC-120:NaN;return new wS(c<0?c+360:c,s,o,e.opacity)}function bS(e,t,n,r){return 1===arguments.length?mS(e):new wS(e,t,n,null==r?1:r)}function wS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vC(wS,bS,mC(bC,{brighter:function(e){return e=null==e?xC:Math.pow(xC,e),new wS(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wC:Math.pow(wC,e),new wS(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*GC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new zC(255*(t+n*(lS*r+fS*o)),255*(t+n*(pS*r+dS*o)),255*(t+n*(hS*r)),this.opacity)}}));var xS=e=>()=>e;function _S(e,t){return function(n){return e+n*t}}function CS(e){return 1==(e=+e)?SS: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):xS(isNaN(t)?n:t)}}function SS(e,t){var n=t-e;return n?_S(e,n):xS(isNaN(e)?t:e)}var OS=function e(t){var n=CS(t);function r(e,t){var r=n((e=FC(e)).r,(t=FC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=SS(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 kS(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 ES(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]=RS(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 jS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function AS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function TS(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]=RS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var MS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,PS=new RegExp(MS.source,"g");function DS(e,t){var n,r,o,i=MS.lastIndex=PS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=MS.exec(e))&&(r=PS.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:AS(n,r)})),i=PS.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 RS(e,t){var n,r=typeof t;return null==t||"boolean"===r?xS(t):("number"===r?AS:"string"===r?(n=IC(t))?(t=n,OS):DS:t instanceof IC?OS:t instanceof Date?jS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?kS:Array.isArray(t)?ES:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?TS:AS)(e,t)}function IS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function NS(e){return((e=Math.exp(e))+1/e)/2}function LS(e){return function t(n){function r(t,r){var o=e((t=bS(t)).h,(r=bS(r)).h),i=SS(t.s,r.s),a=SS(t.l,r.l),s=SS(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function BS(e,t){void 0===t&&(t=e,e=RS);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 FS(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<1e-12)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=NS(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/NS(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),LS((function(e,t){var n=t-e;return n?_S(e,n>180||n<-180?n-360*Math.round(n/360):n):xS(isNaN(e)?t:e)})),LS(SS);var zS=[0,1];function VS(e){return e}function HS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function US(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=HS(o,r),i=n(a,i)):(r=HS(r,o),i=n(i,a)),function(e){return i(r(e))}}function KS(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]=HS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=uC.bisect(e,t,1,r)-1;return i[n](o[n](t))}}function WS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $S(){var e,t,n,r,o,i,a=zS,s=zS,c=RS,u=VS;function l(){var e=Math.min(a.length,s.length);return u!==VS&&(u=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?KS:US,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),AS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,FS),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=IS,l()},f.clamp=function(e){return arguments.length?(u=!!e||VS,l()):u!==VS},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function qS(){return $S()(VS,VS)}var GS={};function ZS(e,t,n,r){var o,i=uC.tickStep(e,t,n);switch((r=GS.formatSpecifier(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=GS.precisionPrefix(i,a))||(r.precision=o),GS.formatPrefix(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=GS.precisionRound(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=GS.precisionFixed(i))||(r.precision=o-2*("%"===r.type))}return GS.format(r)}function YS(e){var t=e.domain;return e.ticks=function(e){var n=t();return uC.ticks(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ZS(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],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=uC.tickIncrement(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function XS(){var e=qS();return e.copy=function(){return WS(e,XS())},lC.apply(e,arguments),YS(e)}function JS(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 QS(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 function(t){return-e(-t)}}function iO(e){var t,n,r=e(QS,eO),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?rO:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=oO(t),n=oO(n),e(tO,nO)):e(QS,eO),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),s=a[0],c=a[a.length-1];(r=c<s)&&(p=s,s=c,c=p);var u,l,f,p=t(s),d=t(c),h=null==e?10:+e,g=[];if(!(i%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),s>0){for(;p<=d;++p)for(l=1,u=n(p);l<i;++l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}}else for(;p<=d;++p)for(l=i-1,u=n(p);l>=1;--l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}2*g.length<h&&(g=uC.ticks(s,c,h))}else g=uC.ticks(p,d,Math.min(d-p,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=GS.format(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(JS(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}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},YS(n)}function uO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fO(e){return e<0?-e*e:e*e}function pO(e){var t=e(VS,VS),n=1;function r(){return 1===n?e(VS,VS):.5===n?e(lO,fO):e(uO(n),uO(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},YS(t)}function dO(){var e=pO($S());return e.copy=function(){return WS(e,dO()).exponent(e.exponent())},lC.apply(e,arguments),e}function hO(e){return Math.sign(e)*e*e}function gO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}!function(e){function t(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function n(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 r(e){return(e=n(Math.abs(e)))?e[1]:NaN}function o(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(o-=s,o+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}var a,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c(e){if(!(t=s.exec(e)))throw new Error("invalid format: "+e);var t;return new u({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 u(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 l(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}function f(e,t){var r=n(e,t);if(!r)return e+"";var o=r[0],i=r[1],s=i-(a=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=o.length;return s===c?o:s>c?o+new Array(s-c+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+n(e,Math.max(0,t+s-1))[0]}function p(e,t){var r=n(e,t);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}c.prototype=u.prototype,u.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 d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:t,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)=>p(100*e,t),r:p,s:f,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function h(e){return e}var g,y=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function m(e){var t=void 0===e.grouping||void 0===e.thousands?h:o(y.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",f=void 0===e.numerals?h:i(y.call(e.numerals,String)),p=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",m=void 0===e.nan?"NaN":e.nan+"";function b(e){var r=(e=c(e)).fill,o=e.align,i=e.sign,h=e.symbol,y=e.zero,b=e.width,w=e.comma,x=e.precision,_=e.trim,C=e.type;"n"===C?(w=!0,C="g"):d[C]||(void 0===x&&(x=12),_=!0,C="g"),(y||"0"===r&&"="===o)&&(y=!0,r="0",o="=");var S="$"===h?n:"#"===h&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",O="$"===h?s:/[%p]/.test(C)?p:"",k=d[C],E=/[defgprs%]/.test(C);function j(e){var n,s,c,p=S,d=O;if("c"===C)d=k(e)+d,e="";else{var h=(e=+e)<0||1/e<0;if(e=isNaN(e)?m:k(Math.abs(e),x),_&&(e=l(e)),h&&0==+e&&"+"!==i&&(h=!1),p=(h?"("===i?i:g:"-"===i||"("===i?"":i)+p,d=("s"===C?v[8+a/3]:"")+d+(h&&"("===i?")":""),E)for(n=-1,s=e.length;++n<s;)if(48>(c=e.charCodeAt(n))||c>57){d=(46===c?u+e.slice(n+1):e.slice(n))+d,e=e.slice(0,n);break}}w&&!y&&(e=t(e,1/0));var j=p.length+e.length+d.length,A=j<b?new Array(b-j+1).join(r):"";switch(w&&y&&(e=t(A+e,A.length?b-d.length:1/0),A=""),o){case"<":e=p+e+d+A;break;case"=":e=p+A+e+d;break;case"^":e=A.slice(0,j=A.length>>1)+p+e+d+A.slice(j);break;default:e=A+p+e+d}return f(e)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),j.toString=function(){return e+""},j}function w(e,t){var n=b(((e=c(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(r(t)/3))),i=Math.pow(10,-o),a=v[8+o/3];return function(e){return n(i*e)+a}}return{format:b,formatPrefix:w}}function b(t){return g=m(t),e.format=g.format,e.formatPrefix=g.formatPrefix,g}function w(e){return Math.max(0,-r(Math.abs(e)))}function x(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(t)/3)))-r(Math.abs(e)))}function _(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,r(t)-r(e))+1}b({thousands:",",grouping:[3],currency:["$",""]}),e.FormatSpecifier=u,e.formatDefaultLocale=b,e.formatLocale=m,e.formatSpecifier=c,e.precisionFixed=w,e.precisionPrefix=x,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})}(GS);var yO=new Date,vO=new Date;function mO(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return mO((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return yO.setTime(+t),vO.setTime(+r),e(yO),e(vO),Math.floor(n(yO,vO))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var bO=mO((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));bO.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?mO((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):bO:null};var wO=bO.range;const xO=1e3,_O=6e4,CO=36e5,SO=864e5,OO=6048e5,kO=2592e6,EO=31536e6;var jO=mO((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*xO)}),(function(e,t){return(t-e)/xO}),(function(e){return e.getUTCSeconds()})),AO=jO.range,TO=mO((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*xO)}),(function(e,t){e.setTime(+e+t*_O)}),(function(e,t){return(t-e)/_O}),(function(e){return e.getMinutes()})),MO=TO.range,PO=mO((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*xO-e.getMinutes()*_O)}),(function(e,t){e.setTime(+e+t*CO)}),(function(e,t){return(t-e)/CO}),(function(e){return e.getHours()})),DO=PO.range,RO=mO((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_O)/SO),(e=>e.getDate()-1)),IO=RO.range;function NO(e){return mO((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_O)/OO}))}var LO=NO(0),BO=NO(1),FO=NO(2),zO=NO(3),VO=NO(4),HO=NO(5),UO=NO(6),KO=LO.range,WO=BO.range,$O=FO.range,qO=zO.range,GO=VO.range,ZO=HO.range,YO=UO.range,XO=mO((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),JO=XO.range,QO=mO((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));QO.every=function(e){return isFinite(e=Math.floor(e))&&e>0?mO((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ek=QO.range,tk=mO((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*_O)}),(function(e,t){return(t-e)/_O}),(function(e){return e.getUTCMinutes()})),nk=tk.range,rk=mO((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*CO)}),(function(e,t){return(t-e)/CO}),(function(e){return e.getUTCHours()})),ok=rk.range,ik=mO((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/SO}),(function(e){return e.getUTCDate()-1})),ak=ik.range;function sk(e){return mO((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/OO}))}var ck=sk(0),uk=sk(1),lk=sk(2),fk=sk(3),pk=sk(4),dk=sk(5),hk=sk(6),gk=ck.range,yk=uk.range,vk=lk.range,mk=fk.range,bk=pk.range,wk=dk.range,xk=hk.range,_k=mO((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),Ck=_k.range,Sk=mO((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));Sk.every=function(e){return isFinite(e=Math.floor(e))&&e>0?mO((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ok=Sk.range;function kk(e,t,n,r,o,i){const a=[[jO,1,xO],[jO,5,5e3],[jO,15,15e3],[jO,30,3e4],[i,1,_O],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,CO],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,SO],[r,2,1728e5],[n,1,OO],[t,1,kO],[t,3,7776e6],[e,1,EO]];function s(t,n,r){const o=Math.abs(n-t)/r,i=uC.bisector((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(uC.tickStep(t/EO,n/EO,r));if(0===i)return bO.every(Math.max(uC.tickStep(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]}const[Ek,jk]=kk(Sk,_k,ck,ik,rk,tk),[Ak,Tk]=kk(QO,XO,LO,RO,PO,TO);var Mk={};function Pk(e){return new Date(e)}function Dk(e){return e instanceof Date?+e:+new Date(+e)}function Rk(e,t,n,r,o,i,a,s,c,u){var l=qS(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,Dk)):p().map(Pk)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:u(t)},l.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(JS(n,e)):l},l.copy=function(){return WS(l,Rk(e,t,n,r,o,i,a,s,c,u))},l}function Ik(){var e,t,n,r,o,i=0,a=1,s=VS,c=!1;function u(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 l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(RS),u.rangeRound=l(IS),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function Nk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Lk(){var e=pO(Ik());return e.copy=function(){return Nk(e,Lk()).exponent(e.exponent())},fC.apply(e,arguments)}function Bk(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=VS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?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=BS(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(RS),d.rangeRound=h(IS),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function Fk(){var e=pO(Bk());return e.copy=function(){return Nk(e,Fk()).exponent(e.exponent())},fC.apply(e,arguments)}!function(e,t){function n(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 r(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 o(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function i(e){var i=e.dateTime,a=e.date,c=e.time,u=e.periods,l=e.days,f=e.shortDays,p=e.months,$=e.shortMonths,pe=d(u),Se=h(u),Oe=d(l),ke=h(l),Ee=d(f),je=h(f),Ae=d(p),Te=h(p),Me=d($),Pe=h($),De={a:qe,A:Ge,b:Ze,B:Ye,c:null,d:I,e:I,f:z,g:X,G:Q,H:N,I:L,j:B,L:F,m:V,M:H,p:Xe,q:Je,Q:_e,s:Ce,S:U,u:K,U:W,V:q,w:G,W:Z,x:null,X:null,y:Y,Y:J,Z:ee,"%":xe},Re={a:Qe,A:et,b:tt,B:nt,c:null,d:te,e:te,f:ae,g:ve,G:be,H:ne,I:re,j:oe,L:ie,m:se,M:ce,p:rt,q:ot,Q:_e,s:Ce,S:ue,u:le,U:fe,V:de,w:he,W:ge,x:null,X:null,y:ye,Y:me,Z:we,"%":xe},Ie={a:ze,A:Ve,b:He,B:Ue,c:Ke,d:O,e:O,f:M,g:x,G:w,H:E,I:E,j:k,L:T,m:S,M:j,p:Fe,q:C,Q:D,s:R,S:A,u:y,U:v,V:m,w:g,W:b,x:We,X:$e,y:x,Y:w,Z:_,"%":P};function Ne(e,t){return function(n){var r,o,i,a=[],c=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(o=s[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function Le(e,i){return function(a){var s,c,u=o(1900,void 0,1);if(Be(u,e,a+="",0)!=a.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(i&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(c=(s=r(o(u.y,0,1))).getUTCDay(),s=c>4||0===c?t.utcMonday.ceil(s):t.utcMonday(s),s=t.utcDay.offset(s,7*(u.V-1)),u.y=s.getUTCFullYear(),u.m=s.getUTCMonth(),u.d=s.getUTCDate()+(u.w+6)%7):(c=(s=n(o(u.y,0,1))).getDay(),s=c>4||0===c?t.timeMonday.ceil(s):t.timeMonday(s),s=t.timeDay.offset(s,7*(u.V-1)),u.y=s.getFullYear(),u.m=s.getMonth(),u.d=s.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),c="Z"in u?r(o(u.y,0,1)).getUTCDay():n(o(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(c+5)%7:u.w+7*u.U-(c+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,r(u)):n(u)}}function Be(e,t,n,r){for(var o,i,a=0,c=t.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Ie[o in s?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function Fe(e,t,n){var r=pe.exec(t.slice(n));return r?(e.p=Se.get(r[0].toLowerCase()),n+r[0].length):-1}function ze(e,t,n){var r=Ee.exec(t.slice(n));return r?(e.w=je.get(r[0].toLowerCase()),n+r[0].length):-1}function Ve(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.w=ke.get(r[0].toLowerCase()),n+r[0].length):-1}function He(e,t,n){var r=Me.exec(t.slice(n));return r?(e.m=Pe.get(r[0].toLowerCase()),n+r[0].length):-1}function Ue(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.m=Te.get(r[0].toLowerCase()),n+r[0].length):-1}function Ke(e,t,n){return Be(e,i,t,n)}function We(e,t,n){return Be(e,a,t,n)}function $e(e,t,n){return Be(e,c,t,n)}function qe(e){return f[e.getDay()]}function Ge(e){return l[e.getDay()]}function Ze(e){return $[e.getMonth()]}function Ye(e){return p[e.getMonth()]}function Xe(e){return u[+(e.getHours()>=12)]}function Je(e){return 1+~~(e.getMonth()/3)}function Qe(e){return f[e.getUTCDay()]}function et(e){return l[e.getUTCDay()]}function tt(e){return $[e.getUTCMonth()]}function nt(e){return p[e.getUTCMonth()]}function rt(e){return u[+(e.getUTCHours()>=12)]}function ot(e){return 1+~~(e.getUTCMonth()/3)}return De.x=Ne(a,De),De.X=Ne(c,De),De.c=Ne(i,De),Re.x=Ne(a,Re),Re.X=Ne(c,Re),Re.c=Ne(i,Re),{format:function(e){var t=Ne(e+="",De);return t.toString=function(){return e},t},parse:function(e){var t=Le(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ne(e+="",Re);return t.toString=function(){return e},t},utcParse:function(e){var t=Le(e+="",!0);return t.toString=function(){return e},t}}}var a,s={"-":"",_:" ",0:"0"},c=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(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 p(e){return e.replace(l,"\\$&")}function d(e){return new RegExp("^(?:"+e.map(p).join("|")+")","i")}function h(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function g(e,t,n){var r=c.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function y(e,t,n){var r=c.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function v(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function m(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function b(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function w(e,t,n){var r=c.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function x(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _(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 C(e,t,n){var r=c.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function S(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function O(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function k(e,t,n){var r=c.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function j(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function A(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function T(e,t,n){var r=c.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function M(e,t,n){var r=c.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function P(e,t,n){var r=u.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function D(e,t,n){var r=c.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function R(e,t,n){var r=c.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function I(e,t){return f(e.getDate(),t,2)}function N(e,t){return f(e.getHours(),t,2)}function L(e,t){return f(e.getHours()%12||12,t,2)}function B(e,n){return f(1+t.timeDay.count(t.timeYear(e),e),n,3)}function F(e,t){return f(e.getMilliseconds(),t,3)}function z(e,t){return F(e,t)+"000"}function V(e,t){return f(e.getMonth()+1,t,2)}function H(e,t){return f(e.getMinutes(),t,2)}function U(e,t){return f(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function W(e,n){return f(t.timeSunday.count(t.timeYear(e)-1,e),n,2)}function $(e){var n=e.getDay();return n>=4||0===n?t.timeThursday(e):t.timeThursday.ceil(e)}function q(e,n){return e=$(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function G(e){return e.getDay()}function Z(e,n){return f(t.timeMonday.count(t.timeYear(e)-1,e),n,2)}function Y(e,t){return f(e.getFullYear()%100,t,2)}function X(e,t){return f((e=$(e)).getFullYear()%100,t,2)}function J(e,t){return f(e.getFullYear()%1e4,t,4)}function Q(e,n){var r=e.getDay();return f((e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e)).getFullYear()%1e4,n,4)}function ee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function te(e,t){return f(e.getUTCDate(),t,2)}function ne(e,t){return f(e.getUTCHours(),t,2)}function re(e,t){return f(e.getUTCHours()%12||12,t,2)}function oe(e,n){return f(1+t.utcDay.count(t.utcYear(e),e),n,3)}function ie(e,t){return f(e.getUTCMilliseconds(),t,3)}function ae(e,t){return ie(e,t)+"000"}function se(e,t){return f(e.getUTCMonth()+1,t,2)}function ce(e,t){return f(e.getUTCMinutes(),t,2)}function ue(e,t){return f(e.getUTCSeconds(),t,2)}function le(e){var t=e.getUTCDay();return 0===t?7:t}function fe(e,n){return f(t.utcSunday.count(t.utcYear(e)-1,e),n,2)}function pe(e){var n=e.getUTCDay();return n>=4||0===n?t.utcThursday(e):t.utcThursday.ceil(e)}function de(e,n){return e=pe(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function he(e){return e.getUTCDay()}function ge(e,n){return f(t.utcMonday.count(t.utcYear(e)-1,e),n,2)}function ye(e,t){return f(e.getUTCFullYear()%100,t,2)}function ve(e,t){return f((e=pe(e)).getUTCFullYear()%100,t,2)}function me(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function be(e,n){var r=e.getUTCDay();return f((e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e)).getUTCFullYear()%1e4,n,4)}function we(){return"+0000"}function xe(){return"%"}function _e(e){return+e}function Ce(e){return Math.floor(+e/1e3)}function Se(t){return a=i(t),e.timeFormat=a.format,e.timeParse=a.parse,e.utcFormat=a.utcFormat,e.utcParse=a.utcParse,a}Se({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 Oe="%Y-%m-%dT%H:%M:%S.%LZ";function ke(e){return e.toISOString()}var Ee=Date.prototype.toISOString?ke:e.utcFormat(Oe);function je(e){var t=new Date(e);return isNaN(t)?null:t}var Ae=+new Date("2000-01-01T00:00:00.000Z")?je:e.utcParse(Oe);e.isoFormat=Ee,e.isoParse=Ae,e.timeFormatDefaultLocale=Se,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})}(Mk,u(Object.freeze({__proto__:null,timeInterval:mO,timeMillisecond:bO,timeMilliseconds:wO,utcMillisecond:bO,utcMilliseconds:wO,timeSecond:jO,timeSeconds:AO,utcSecond:jO,utcSeconds:AO,timeMinute:TO,timeMinutes:MO,timeHour:PO,timeHours:DO,timeDay:RO,timeDays:IO,timeWeek:LO,timeWeeks:KO,timeSunday:LO,timeSundays:KO,timeMonday:BO,timeMondays:WO,timeTuesday:FO,timeTuesdays:$O,timeWednesday:zO,timeWednesdays:qO,timeThursday:VO,timeThursdays:GO,timeFriday:HO,timeFridays:ZO,timeSaturday:UO,timeSaturdays:YO,timeMonth:XO,timeMonths:JO,timeYear:QO,timeYears:ek,utcMinute:tk,utcMinutes:nk,utcHour:rk,utcHours:ok,utcDay:ik,utcDays:ak,utcWeek:ck,utcWeeks:gk,utcSunday:ck,utcSundays:gk,utcMonday:uk,utcMondays:yk,utcTuesday:lk,utcTuesdays:vk,utcWednesday:fk,utcWednesdays:mk,utcThursday:pk,utcThursdays:bk,utcFriday:dk,utcFridays:wk,utcSaturday:hk,utcSaturdays:xk,utcMonth:_k,utcMonths:Ck,utcYear:Sk,utcYears:Ok,utcTicks:Ek,utcTickInterval:jk,timeTicks:Ak,timeTickInterval:Tk})));var zk=Object.freeze({__proto__:null,scaleBand:hC,scalePoint:yC,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,FS),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,FS):[0,1],YS(r)},scaleLinear:XS,scaleLog:function e(){var t=iO($S()).domain([1,10]);return t.copy=function(){return WS(t,e()).base(t.base())},lC.apply(t,arguments),t},scaleSymlog:function e(){var t=cO($S());return t.copy=function(){return WS(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleOrdinal:dC,scaleImplicit:pC,scalePow:dO,scaleSqrt:function(){return dO.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=qS(),r=[0,1],o=!1;function i(e){var r=gO(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,FS)).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)},lC.apply(i,arguments),YS(i)},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]=uC.quantileSorted(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[uC.bisect(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(uC.ascending),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)},lC.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[uC.bisect(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)},lC.apply(YS(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[uC.bisect(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)},lC.apply(i,arguments)},scaleTime:function(){return lC.apply(Rk(Ak,Tk,QO,XO,LO,RO,PO,TO,jO,Mk.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return lC.apply(Rk(Ek,jk,Sk,_k,ck,ik,rk,tk,jO,Mk.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=YS(Ik()(VS));return t.copy=function(){return Nk(t,e())},fC.apply(t,arguments)},scaleSequentialLog:function e(){var t=iO(Ik()).domain([1,10]);return t.copy=function(){return Nk(t,e()).base(t.base())},fC.apply(t,arguments)},scaleSequentialPow:Lk,scaleSequentialSqrt:function(){return Lk.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=cO(Ik());return t.copy=function(){return Nk(t,e()).constant(t.constant())},fC.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=VS;function r(e){if(null!=e&&!isNaN(e=+e))return n((uC.bisect(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(uC.ascending),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)=>uC.quantile(t,r/e)))},r.copy=function(){return e(n).domain(t)},fC.apply(r,arguments)},scaleDiverging:function e(){var t=YS(Bk()(VS));return t.copy=function(){return Nk(t,e())},fC.apply(t,arguments)},scaleDivergingLog:function e(){var t=iO(Bk()).domain([.1,1,10]);return t.copy=function(){return Nk(t,e()).base(t.base())},fC.apply(t,arguments)},scaleDivergingPow:Fk,scaleDivergingSqrt:function(){return Fk.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=cO(Bk());return t.copy=function(){return Nk(t,e()).constant(t.constant())},fC.apply(t,arguments)},tickFormat:ZS});function Vk(e){return function(e){if(Array.isArray(e))return Hk(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 Hk(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 Hk(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 Hk(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 Uk(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 Kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uk(Object(n),!0).forEach((function(t){Wk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $k(e,t,n){return Wd(e)||Wd(t)?n:Sd(t)?nl(e,t,n):si(t)?t(e):n}function qk(e,t,n,r){var o=Jx(e,(function(e){return $k(e,t)}));if("number"===n){var i=o.filter((function(e){return Cd(e)||parseFloat(e)}));return i.length?[Kx(i),Fx(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Wd(e)})):o).map((function(e){return Sd(e)||e instanceof Date?e:""}))}var Gk=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},Zk=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Ox(n,Kd.displayName);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:Gk(t),value:o||r,payload:t.props}})),Kk(Kk(Kk({},a.props),Kd.getWithHeight(a,o)),{},{payload:t,item:a})):null},Yk=function(e,t,n,r,o){var i=t.props.children,a=Sx(i,"ErrorBar").filter((function(e){return function(e,t,n){return!!Wd(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(a&&a.length){var s=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=$k(t,n,0),o=us(r)?[Kx(r),Fx(r)]:[r,r],i=s.reduce((function(e,n){var r=$k(t,n,0),i=o[0]-Math.abs(us(r)?r[0]:r),a=o[1]+Math.abs(us(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},Xk=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&Yk(e,t,i,r)||qk(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}),[])},Jk=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},Qk=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},eE=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?2*xd(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}})):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}}))},tE=function(e,t,n){var r;return si(n)?r=n:si(t)&&(r=t),si(e)||r?function(t,n,o,i){si(e)&&e(t,n,o,i),si(r)&&r(t,n,o,i)}:null},nE=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:hC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:XS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:yC(),realScaleType:"point"}:"category"===o?{scale:hC(),realScaleType:"band"}:{scale:XS(),realScaleType:"linear"};if(wd(r)){var s="scale".concat(Rf(r));return{scale:(zk[s]||yC)(),realScaleType:zk[s]?s:"point"}}return si(r)?{scale:r}:{scale:yC(),realScaleType:"point"}},rE=1e-4,oE=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])-rE,i=Math.max(r[0],r[1])+rE,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},iE=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},aE=function(e,t){if(!t||2!==t.length||!Cd(t[0])||!Cd(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(!Cd(e[0])||e[0]<n)&&(o[0]=n),(!Cd(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},sE={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=yd(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}Fp(e,t)}},none:Fp,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}Fp(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,u=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,Fp(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=yd(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)}}},cE=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Vf([]),t=zp,n=Fp,r=Vp;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Hp),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=Kf(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:Vf(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Vf(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?zp:"function"==typeof e?e:Vf(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Fp:e,o):n},o}().keys(r).value((function(e,t){return+$k(e,t,0)})).order(zp).offset(sE[n]);return o(e)},uE=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 u=Qx.getNiceTickValues(c,o,a);return e.domain(function(e,t){return"number"===t?[Kx(e),Fx(e)]:e}(u,r)),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:Qx.getTickValuesFixedDomain(l,o,a)}}return null},lE=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&&!Wd(o[t.dataKey])){var s=Td(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=$k(o,Wd(a)?t.dataKey:a);return Wd(c)?null:t.scale(c)},fE=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=$k(i,t.dataKey,t.domain[a]);return Wd(s)?null:t.scale(s)-o/2+r},pE=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]},dE=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[Kx(t.concat([e[0]]).filter(Cd)),Fx(t.concat([e[1]]).filter(Cd))]}),[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}))},hE=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yE=function(e,t,n){if(si(e))return e(t,n);if(!us(e))return t;var r=[];if(Cd(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(hE.test(e[0])){var o=+hE.exec(e[0])[1];r[0]=t[0]-o}else si(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Cd(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(gE.test(e[1])){var i=+gE.exec(e[1])[1];r[1]=t[1]+i}else si(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},vE=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=vm(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},mE=function(e,t,n){return e&&e.length?Px(e,nl(n,"type.defaultProps.domain"))?t:e:t},bE=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 Kk(Kk({},Ro(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:Gk(e),value:$k(t,r),type:s,payload:t,chartType:c})};function wE(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 xE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wE(Object(n),!0).forEach((function(t){_E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CE(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)||function(e,t){if(!e)return;if("string"==typeof e)return SE(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 SE(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 SE(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 OE=Math.PI/180,kE=function(e){return 180*e/Math.PI},EE=function(e,t,n,r){return{x:e+Math.cos(-OE*r)*n,y:t+Math.sin(-OE*r)*n}},jE=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},AE=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ed(e.cx,i,i/2),l=Ed(e.cy,a,a/2),f=jE(i,a,n),p=Ed(e.innerRadius,f,0),d=Ed(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(Wd(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=CE(i=a.range,2);s=g[0],c=g[1]}var y=nE(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),oE(m);var b=uE(m,xE(xE({},a),{},{realScaleType:v})),w=xE(xE(xE({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return xE(xE({},e),{},_E({},n,w))}),{})},TE=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:kE(c),angleInRadian:c}},ME=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)},PE=function(e,t){var n=e.x,r=e.y,o=TE({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 u,l=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=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?xE(xE({},t),{},{radius:i,angle:ME(d,t)}):null};function DE(e){return function(e){if(Array.isArray(e))return RE(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 RE(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 RE(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 RE(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 IE(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 NE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IE(Object(n),!0).forEach((function(t){LE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BE(){return BE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BE.apply(this,arguments)}var FE=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return xd(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=v):"insideEnd"===a?(o=y-w*c,i=!v):"end"===a&&(o=y+w*c,i=v),i=b<=0?i:!i;var x=EE(f,p,m,o),_=EE(f,p,m,o+359*(i?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),S=Wd(e.id)?kd("recharts-radial-line-"):e.id;return t.createElement("text",BE({},r,{dominantBaseline:"central",className:jo("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:S,d:C})),t.createElement("textPath",{xlinkHref:"#".concat(S)},n))};function zE(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,u=void 0===c?"":c,l=e.textBreakAll;if(!r||Wd(i)&&Wd(a)&&!t.isValidElement(s)&&!si(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(si(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=function(e){var t=e.value,n=e.formatter,r=Wd(e.children)?t:e.children;return si(n)?n(r):r}(e);var f=function(e){return Cd(e.cx)}(r),p=Ro(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return FE(e,n,p);var d=f?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,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=EE(i,a,c+n,u),f=l.x;return{x:f,y:l.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 p=EE(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):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,u=i.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return NE(NE({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return NE(NE({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return NE(NE({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return NE(NE({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?NE({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?NE({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?NE({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?NE({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?NE({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?NE({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?NE({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?NE({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Ao(o)&&(Cd(o.x)||_d(o.x))&&(Cd(o.y)||_d(o.y))?NE({x:a+Ed(o.x,c),y:s+Ed(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):NE({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return t.createElement(yx,BE({className:jo("recharts-label",u)},p,d,{breakAll:l}),n)}zE.displayName="Label",zE.defaultProps={offset:5};var VE=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,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Cd(h)&&Cd(g)){if(Cd(l)&&Cd(f))return{x:l,y:f,width:h,height:g};if(Cd(p)&&Cd(d))return{x:p,y:d,width:h,height:g}}return Cd(l)&&Cd(f)?{x:l,y:f,width:0,height:0}:Cd(t)&&Cd(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},HE=function(e,n){return e?!0===e?t.createElement(zE,{key:"label-implicit",viewBox:n}):Sd(e)?t.createElement(zE,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===zE?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(zE,{key:"label-implicit",content:e,viewBox:n}):si(e)?t.createElement(zE,{key:"label-implicit",content:e,viewBox:n}):Ao(e)?t.createElement(zE,BE({viewBox:n},e,{key:"label-implicit"})):null:null};zE.parseViewBox=VE,zE.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=VE(e),a=Sx(o,zE.displayName).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=HE(e.label,n||i);return[s].concat(DE(a))};var UE=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function KE(e){return function(e){if(Array.isArray(e))return WE(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 WE(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 WE(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 WE(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 $E(){return $E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$E.apply(this,arguments)}function qE(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 GE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qE(Object(n),!0).forEach((function(t){ZE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YE(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 XE={valueAccessor:function(e){return us(e.value)?UE(e.value):e.value}};function JE(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=YE(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return n&&n.length?t.createElement(Ho,{className:"recharts-label-list"},n.map((function(e,n){var u=Wd(o)?r(e,n):$k(e&&e.payload,o),l=Wd(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(zE,$E({},Ro(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:zE.parseViewBox(Wd(i)?e:GE(GE({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function QE(e,n){return e?!0===e?t.createElement(JE,{key:"labelList-implicit",data:n}):t.isValidElement(e)||si(e)?t.createElement(JE,{key:"labelList-implicit",data:n,content:e}):Ao(e)?t.createElement(JE,$E({data:n},e,{key:"labelList-implicit"})):null:null}function ej(e){return ej="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},ej(e)}function tj(){return tj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tj.apply(this,arguments)}function nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oj(e,t){return oj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oj(e,t)}function ij(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=sj(e);if(t){var o=sj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aj(this,n)}}function aj(e,t){return!t||"object"!==ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sj(e){return sj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sj(e)}JE.displayName="LabelList",JE.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=Sx(o,JE.displayName).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));if(!r)return i;var a=QE(e.label,n);return[a].concat(KE(i))},JE.defaultProps=XE;var cj=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,u=s*(a?1:-1)+r,l=Math.asin(s/u)/OE,f=c?o:o+i*l,p=c?o-i*l:o;return{center:EE(t,n,u,f),circleTangency:EE(t,n,r,f),lineTangency:EE(t,n,u*Math.cos(l*OE),p),theta:l}},uj=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return xd(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=EE(t,n,o,i),u=EE(t,n,o,s),l="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(u.x,",").concat(u.y,"\n ");if(r>0){var f=EE(t,n,r,i),p=EE(t,n,r,s);l+="L ".concat(p.x,",").concat(p.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 l+="L ".concat(t,",").concat(n," Z");return l},lj=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}}),t&&oj(e,t)}(a,t.PureComponent);var n,r,o,i=ij(a);function a(){return nj(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<o||u===l)return null;var p,d=jo("recharts-sector",f),h=i-o,g=Ed(a,h,0,!0);return p=g>0&&Math.abs(u-l)<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,u=e.endAngle,l=xd(u-c),f=cj({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=cj({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.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 "):uj({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=cj({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,S=x.theta,O=cj({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-u):Math.abs(c-u)-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(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.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:u,endAngle:l}):uj({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",tj({},Ro(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&rj(n.prototype,r),o&&rj(n,o),a}();function fj(e){return fj="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},fj(e)}function pj(){return pj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}function dj(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 hj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dj(Object(n),!0).forEach((function(t){gj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mj(e,t){return mj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mj(e,t)}function bj(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=xj(e);if(t){var o=xj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wj(this,n)}}function wj(e,t){return!t||"object"!==fj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xj(e){return xj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xj(e)}lj.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var _j={curveBasisClosed:function(e){return new vp(e)},curveBasisOpen:function(e){return new mp(e)},curveBasis:function(e){return new yp(e)},curveLinearClosed:function(e){return new jp(e)},curveLinear:$f,curveMonotoneX:function(e){return new Dp(e)},curveMonotoneY:function(e){return new Rp(e)},curveNatural:function(e){return new Np(e)},curveStep:function(e){return new Bp(e,.5)},curveStepAfter:function(e){return new Bp(e,1)},curveStepBefore:function(e){return new Bp(e,0)}},Cj=function(e){return e.x===+e.x&&e.y===+e.y},Sj=function(e){return e.x},Oj=function(e){return e.y},kj=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}}),t&&mj(e,t)}(a,t.PureComponent);var n,r,o,i=bj(a);function a(){return yj(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(si(e))return e;var n="curve".concat(Rf(e));return"curveMonotone"===n&&t?_j["".concat(n).concat("vertical"===t?"Y":"X")]:_j[n]||$f}(n,i),c=a?r.filter((function(e){return Cj(e)})):r;if(us(o)){var u=a?o.filter((function(e){return Cj(e)})):o,l=c.map((function(e,t){return hj(hj({},e),{},{base:u[t]})}));return(e="vertical"===i?Yf().y(Oj).x1(Sj).x0((function(e){return e.base.x})):Yf().x(Sj).y1(Oj).y0((function(e){return e.base.y}))).defined(Cj).curve(s),e(l)}return(e="vertical"===i&&Cd(o)?Yf().y(Oj).x1(Sj).x0(o):Cd(o)?Yf().x(Sj).y1(Oj).y0(o):Zf().x(Sj).y(Oj)).defined(Cj).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",pj({},Ro(this.props),Io(this.props),{className:jo("recharts-curve",n),d:a,ref:i}))}}],r&&vj(n.prototype,r),o&&vj(n,o),a}();function Ej(e){return Ej="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},Ej(e)}function jj(){return jj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jj.apply(this,arguments)}function Aj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mj(e,t){return Mj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mj(e,t)}function Pj(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=Rj(e);if(t){var o=Rj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dj(this,n)}}function Dj(e,t){return!t||"object"!==Ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rj(e){return Rj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rj(e)}kj.defaultProps={type:"linear",points:[],connectNulls:!1};var Ij=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,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Nj=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),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},Lj=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}}),t&&Mj(e,t)}(a,t.PureComponent);var n,r,o,i=Pj(a);function a(){var e;Aj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=jo("recharts-rectangle",c);return g?t.createElement(vv,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:p,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(vv,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},t.createElement("path",jj({},Ro(e.props,!0),{className:y,d:Ij(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",jj({},Ro(this.props,!0),{className:y,d:Ij(r,o,i,a,s)}))}}],r&&Tj(n.prototype,r),o&&Tj(n,o),a}();function Bj(e){return Bj="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},Bj(e)}function Fj(){return Fj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fj.apply(this,arguments)}function zj(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 Vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uj(e,t){return Uj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uj(e,t)}function Kj(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=$j(e);if(t){var o=$j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wj(this,n)}}function Wj(e,t){return!t||"object"!==Bj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $j(e){return $j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$j(e)}function qj(e){return function(e){if(Array.isArray(e))return Gj(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 Gj(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 Gj(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 Gj(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}Lj.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var Zj=function(e){return e&&e.x===+e.x&&e.y===+e.y},Yj=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){Zj(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),Zj(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(qj(e),qj(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},Xj=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}}),t&&Uj(e,t)}(a,t.PureComponent);var n,r,o,i=Kj(a);function a(){return Vj(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=zj(e,["points","className","baseLinePoints","connectNulls"]);if(!n||!n.length)return null;var s=jo("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=Yj(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Yj(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",Fj({},Ro(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",Fj({},Ro(a,!0),{fill:"none",d:Yj(n,i)})):null,c?t.createElement("path",Fj({},Ro(a,!0),{fill:"none",d:Yj(o,i)})):null)}var l=Yj(n,i);return t.createElement("path",Fj({},Ro(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&Hj(n.prototype,r),o&&Hj(n,o),a}();function Jj(e){return Jj="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},Jj(e)}function Qj(){return Qj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}function eA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nA(e,t){return nA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nA(e,t)}function rA(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=iA(e);if(t){var o=iA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oA(this,n)}}function oA(e,t){return!t||"object"!==Jj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function iA(e){return iA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iA(e)}var aA=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}}),t&&nA(e,t)}(a,t.PureComponent);var n,r,o,i=rA(a);function a(){return eA(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=jo("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",Qj({},Ro(this.props),Io(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&tA(n.prototype,r),o&&tA(n,o),a}();function sA(e){return sA="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},sA(e)}function cA(){return cA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cA.apply(this,arguments)}function uA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fA(e,t){return fA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fA(e,t)}function pA(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=hA(e);if(t){var o=hA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dA(this,n)}}function dA(e,t){return!t||"object"!==sA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hA(e){return hA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hA(e)}var gA=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}}),t&&fA(e,t)}(a,t.PureComponent);var n,r,o,i=pA(a);function a(){return uA(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return Cd(n)&&Cd(r)&&Cd(o)&&Cd(i)&&Cd(s)&&Cd(c)?t.createElement("path",cA({},Ro(this.props,!0),{className:jo("recharts-cross",u),d:a.getPath(n,r,o,i,s,c)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&lA(n.prototype,r),o&&lA(n,o),a}();gA.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var yA=Rx,vA=Nl,mA=zx;var bA=function(e,t){return e&&e.length?yA(e,vA(t),mA):void 0},wA=Rx,xA=Ix,_A=Nl;var CA=function(e,t){return e&&e.length?wA(e,_A(t),xA):void 0};function SA(e){return SA="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},SA(e)}function OA(){return OA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OA.apply(this,arguments)}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kA(Object(n),!0).forEach((function(t){jA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AA(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 TA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PA(e,t){return PA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},PA(e,t)}function DA(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=IA(e);if(t){var o=IA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RA(this,n)}}function RA(e,t){return!t||"object"!==SA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function IA(e){return IA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},IA(e)}var NA=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}}),t&&PA(e,t)}(a,t.PureComponent);var n,r,o,i=DA(a);function a(){return TA(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 EE(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=CA(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:bA(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=AA(e,["cx","cy","angle","ticks","axisLine"]),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=EE(n,r,c[0],o),l=EE(n,r,c[1],o),f=EA(EA(EA({},Ro(s)),{},{fill:"none"},Ro(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",OA({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,u=AA(n,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=Ro(u),p=Ro(o),d=r.map((function(n,r){var u=e.getTickValueCoord(n),d=EA(EA(EA(EA({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:r},u),{},{payload:n});return t.createElement(Ho,OA({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},No(e.props,n,r)),a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(Ho,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(Ho,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),zE.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(yx,OA({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&MA(n.prototype,r),o&&MA(n,o),a}();function LA(e){return LA="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},LA(e)}function BA(){return BA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BA.apply(this,arguments)}function FA(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 zA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FA(Object(n),!0).forEach((function(t){VA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KA(e,t){return KA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},KA(e,t)}function WA(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=qA(e);if(t){var o=qA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $A(this,n)}}function $A(e,t){return!t||"object"!==LA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qA(e){return qA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qA(e)}NA.displayName="PolarRadiusAxis",NA.axisType="radiusAxis",NA.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};var GA=Math.PI/180,ZA=1e-5,YA=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}}),t&&KA(e,t)}(a,t.PureComponent);var n,r,o,i=WA(a);function a(){return HA(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=EE(n,r,o,e.coordinate),c=EE(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*GA);return n>ZA?"outer"===t?"start":"end":n<-ZA?"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=zA(zA({},Ro(this.props)),{},{fill:"none"},Ro(i));if("circle"===a)return t.createElement(aA,BA({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return EE(n,r,o,e.coordinate)}));return t.createElement(Xj,BA({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,u=Ro(this.props),l=Ro(o),f=zA(zA({},u),{},{fill:"none"},Ro(i)),p=r.map((function(n,r){var p=e.getTickLineCoord(n),d=zA(zA(zA({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:p.x2,y:p.y2});return t.createElement(Ho,BA({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},No(e.props,n,r)),i&&t.createElement("line",BA({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(Ho,{className:"recharts-polar-angle-axis-ticks"},p)}},{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(Ho,{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):si(e)?e(n):t.createElement(yx,BA({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&UA(n.prototype,r),o&&UA(n,o),a}();YA.displayName="PolarAngleAxis",YA.axisType="angleAxis",YA.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var XA=rc(Object.getPrototypeOf,Object),JA=oi,QA=XA,eT=_s,tT=Function.prototype,nT=Object.prototype,rT=tT.toString,oT=nT.hasOwnProperty,iT=rT.call(Object);var aT=function(e){if(!eT(e)||"[object Object]"!=JA(e))return!1;var t=QA(e);if(null===t)return!0;var n=oT.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rT.call(n)==iT};function sT(e){return sT="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},sT(e)}function cT(){return cT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cT.apply(this,arguments)}function uT(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 lT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uT(Object(n),!0).forEach((function(t){fT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dT(e,t){return dT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dT(e,t)}function hT(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=yT(e);if(t){var o=yT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gT(this,n)}}function gT(e,t){return!t||"object"!==sT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yT(e){return yT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yT(e)}var vT=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}}),t&&dT(e,t)}(a,t.PureComponent);var n,r,o,i=hT(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)).pieRef=null,t.sectorRefs=[],t.state=void 0,t.id=kd("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),si(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),si(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=Ro(this.props),u=Ro(r),l=Ro(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,d=EE(e.cx,e.cy,e.outerRadius+f,p),h=lT(lT(lT(lT({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=lT(lT(lT(lT({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[EE(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return Wd(i)&&Wd(s)?y="value":Wd(i)&&(y=s),t.createElement(Ho,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,$k(e,y)))}));return t.createElement(Ho,{className:"recharts-pie-labels"},p)}},{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,u=n.isActiveIndex(r)?o:c,l=lT(lT({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(Ho,cT({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},No(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,l))}))}},{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,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return t.createElement(vv,{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=l&&l[t],r=t>0?nl(e,"paddingAngle",0):0;if(n){var s=Ad(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=lT(lT({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Ad(0,u-f)(o),d=lT(lT({},e),{},{startAngle:a+r,endAngle:a+p+r});i.push(d),a=d.endAngle}})),t.createElement(Ho,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&&Px(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,u=n.innerRadius,l=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!o||!o.length||!Cd(s)||!Cd(c)||!Cd(u)||!Cd(l))return null;var d=jo("recharts-pie",i);return t.createElement(Ho,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),zE.renderCallByParent(this.props,null,!1),(!f||p)&&JE.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):si(e)?e(n):t.createElement(kj,cT({},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 si(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(yx,cT({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):aT(e)?t.createElement(lj,cT({tabIndex:-1},n,e)):t.createElement(lj,cT({tabIndex:-1},n))}}],r&&pT(n.prototype,r),o&&pT(n,o),a}();vT.displayName="Pie",vT.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:!Pm.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},vT.parseDeltaAngle=function(e,t){return xd(t-e)*Math.min(Math.abs(t-e),360)},vT.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=Ro(e.props),i=Sx(r,iw.displayName);return n&&n.length?n.map((function(e,t){return lT(lT(lT({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return lT(lT({},o),e.props)})):[]},vT.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=jE(o,i);return{cx:r+Ed(e.props.cx,o,o/2),cy:n+Ed(e.props.cy,i,i/2),innerRadius:Ed(e.props.innerRadius,a,0),outerRadius:Ed(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},vT.getComposedData=function(e){var t=e.item,n=e.offset,r=vT.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=vT.parseCoordinateOfPie(t,n),g=vT.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Wd(u)&&Wd(f)?(ow(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Wd(u)&&(ow(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==$k(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=$k(t,v,0);return e+(Cd(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=$k(e,v,0),o=$k(e,l,t),s=(Cd(r)?r:0)/_,u=(n=t?b.endAngle+xd(g)*c*(0!==r?1:0):a)+xd(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=EE(h.cx,h.cy,y,f);return b=lT(lT(lT({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:$k(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:xd(g)*c})})));return lT(lT({},h),{},{sectors:m,data:r})};var mT={};var bT=function(e){return e&&e.length?e[0]:void 0};({get exports(){return mT},set exports(e){mT=e}}).exports=bT;var wT=c(mT);function xT(e){return xT="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},xT(e)}function _T(){return _T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}function CT(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 ST(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CT(Object(n),!0).forEach((function(t){OT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ET(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jT(e,t){return jT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jT(e,t)}function AT(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=MT(e);if(t){var o=MT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TT(this,n)}}function TT(e,t){return!t||"object"!==xT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function MT(e){return MT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},MT(e)}var PT=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}}),t&&jT(e,t)}(a,t.PureComponent);var n,r,o,i=AT(a);function a(){var e;kT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)},e}return n=a,r=[{key:"renderDots",value:function(e){var n=this.props,r=n.dot,o=n.dataKey,i=Ro(this.props),s=Ro(r),c=e.map((function(e,t){var n=ST(ST(ST({key:"dot-".concat(t),r:3},i),s),{},{dataKey:o,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return t.createElement(Ho,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var n,r=this.props,o=r.shape,i=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return n=t.isValidElement(o)?t.cloneElement(o,ST(ST({},this.props),{},{points:e})):si(o)?o(ST(ST({},this.props),{},{points:e})):t.createElement(Xj,_T({},Ro(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),t.createElement(Ho,{className:"recharts-radar-polygon"},n,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,i=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var i=Ad(r.x,e.x),a=Ad(r.y,e.y);return ST(ST({},e),{},{x:i(n),y:a(n)})}var s=Ad(e.cx,e.x),c=Ad(e.cy,e.y);return ST(ST({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&Px(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.className,o=e.points,i=e.isAnimationActive;if(n||!o||!o.length)return null;var a=this.state.isAnimationFinished,s=jo("recharts-radar",r);return t.createElement(Ho,{className:s},this.renderPolygon(),(!i||a)&&JE.renderCallByParent(this.props,o))}}],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:"renderDotItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,_T({},n,{className:"recharts-radar-dot"}))}}],r&&ET(n.prototype,r),o&&ET(n,o),a}();function DT(e){return DT="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},DT(e)}function RT(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 IT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RT(Object(n),!0).forEach((function(t){NT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LT(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 BT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zT(e,t){return zT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zT(e,t)}function VT(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=UT(e);if(t){var o=UT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HT(this,n)}}function HT(e,t){return!t||"object"!==DT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function UT(e){return UT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},UT(e)}PT.displayName="Radar",PT.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PT.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=$k(e,n.dataKey,r),f=$k(e,o),p=n.scale(l)+(i||0),d=us(f)?UE(f):f,h=Wd(d)?void 0:t.scale(d);us(f)&&f.length>=2&&(c=!0),u.push(ST(ST({},EE(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(us(e.value)){var n=wT(e.value),r=Wd(n)?void 0:t.scale(n);l.push(ST(ST({},e),{},{radius:r},EE(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}};var KT=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}}),t&&zT(e,t)}(a,t.PureComponent);var n,r,o,i=VT(a);function a(){var e;BT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return xd(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=LT(n,["shape","activeShape","activeIndex","cornerRadius"]),u=Ro(c);return e.map((function(e,n){var l=IT(IT(IT(IT({},u),{},{cornerRadius:s},e),No(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ad(n.startAngle,e.startAngle),i=Ad(n.endAngle,e.endAngle);return IT(IT({},e),{},{startAngle:r(o),endAngle:i(o)})}var a=e.endAngle,s=e.startAngle,c=Ad(s,a);return IT(IT({},e),{},{endAngle:c(o)})}));return t.createElement(Ho,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Px(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=Ro(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=LT(e,["value","background"]);if(!i)return null;var c=IT(IT(IT(IT(IT({cornerRadius:n},s),{},{fill:"#eee"},i),r),No(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.background,a=e.isAnimationActive;if(n||!r||!r.length)return null;var s=this.state.isAnimationFinished,c=jo("recharts-area",o);return t.createElement(Ho,{className:c},i&&t.createElement(Ho,{className:"recharts-radial-bar-background"},this.renderBackground(r)),t.createElement(Ho,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&JE.renderCallByParent(IT(IT({},this.props),{},{clockWise:this.getDeltaAngle()<0}),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:"renderSectorShape",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(lj,n)}}],r&&FT(n.prototype,r),o&&FT(n,o),a}();KT.displayName="RadialBar",KT.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},KT.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=iE(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=pE({numericAxis:w}),C=Sx(m,iw.displayName);return{data:s.map((function(e,s){var l,v,m,w,S,O;if(u?l=aE(u[p+s],x):(l=$k(e,c),us(l)||(l=[_,l])),"radial"===y){v=fE({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),S=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=S-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))S+=xd(k||b)*(Math.abs(b)-Math.abs(k));O={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),S=(w=fE({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=xd(E||b)*(Math.abs(b)-Math.abs(E))}return IT(IT(IT(IT({},e),O),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:S},C&&C[s]&&C[s].props),{},{tooltipPayload:[bE(t,e)],tooltipPosition:EE(h,g,(v+m)/2,(w+S)/2)})})),layout:y}};var WT=Math.ceil,$T=Math.max;var qT=ib,GT=1/0;var ZT=function(e){return e?(e=qT(e))===GT||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},YT=function(e,t,n,r){for(var o=-1,i=$T(WT((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},XT=dm,JT=ZT;var QT=function(e){return function(t,n,r){return r&&"number"!=typeof r&&XT(t,n,r)&&(n=r=void 0),t=JT(t),void 0===n?(n=t,t=0):n=JT(n),r=void 0===r?t<n?1:-1:JT(r),YT(t,n,r,e)}}();function eM(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 tM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eM(Object(n),!0).forEach((function(t){nM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rM=["Webkit","Moz","O","ms"];function oM(e){return oM="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},oM(e)}function iM(){return iM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iM.apply(this,arguments)}function aM(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 sM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){cM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lM(e,t){return lM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lM(e,t)}function fM(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=hM(e);if(t){var o=hM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pM(this,n)}}function pM(e,t){return!t||"object"!==oM(t)&&"function"!=typeof t?dM(e):t}function dM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hM(e)}var gM=function(e){return e.changedTouches&&!!e.changedTouches.length},yM=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}}),t&&lM(e,t)}(a,t.PureComponent);var n,r,o,i=fM(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)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=gM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(dM(t),"startX"),endX:t.handleTravellerDragStart.bind(dM(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),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%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=$k(n[e],o,e);return si(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,u=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=gM(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,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((cM(t={},o,s+y),cM(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(v))}))}},{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,u=t.Children.only(s);return u?t.cloneElement(u,{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,u=Math.max(e,this.props.x),l=sM(sM({},Ro(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(Ho,{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,l))}},{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,u=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:u,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,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(Ho,{className:"recharts-brush-texts"},t.createElement(yx,iM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(yx,iM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+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,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!Cd(i)||!Cd(a)||!Cd(s)||!Cd(c)||s<=0||c<=0)return null;var y=jo("recharts-brush",r),v=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=rM.reduce((function(e,r){return tM(tM({},e),{},nM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(Ho,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&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):si(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 sM({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=yC().domain(QT(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({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 u=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:u}}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&&uM(n.prototype,r),o&&uM(n,o),a}();yM.displayName="Brush",yM.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 vM=Av;var mM=Wa,bM=Nl,wM=function(e,t){var n;return vM(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},xM=us,_M=dm;var CM=function(e,t,n){var r=xM(e)?mM:wM;return n&&_M(e,t,n)&&(t=void 0),r(e,bM(t))},SM=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var OM=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},kM=Av;var EM=OM,jM=function(e,t){var n=!0;return kM(e,(function(e,r,o){return n=!!t(e,r,o)})),n},AM=Nl,TM=us,MM=dm;var PM=function(e,t,n){var r=TM(e)?EM:jM;return n&&MM(e,t,n)&&(t=void 0),r(e,AM(t))},DM=Qv;var RM=function(e,t,n){"__proto__"==t&&DM?DM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},IM=RM,NM=Ev,LM=Nl;var BM=function(e,t){var n={};return t=LM(t),NM(e,(function(e,r,o){IM(n,r,t(e,r,o))})),n};function FM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zM(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?zM(Object(n),!0).forEach((function(t){HM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UM=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={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=!!Ox(c,"Bar");return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],S=1/0,O=g.categoricalDomain.sort();O.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(O[t-1]||0),S))}));var k=S/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Ed(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}u="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&&(u=[u[1],u[0]]);var T=nE(g,o,f),M=T.scale,P=T.realScaleType;M.domain(v).range(u),oE(M);var D=uE(M,VM(VM({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var R=VM(VM(VM({},g),D),{},{realScaleType:P,x:p,y:d,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=vE(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,VM(VM({},i),{},HM({},a,R))}),{})},KM=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)}},WM=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=void 0,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&&FM(t.prototype,n),r&&FM(t,r),e}();WM.EPS=1e-4;var $M=function(e){var t=Object.keys(e).reduce((function(t,n){return VM(VM({},t),{},HM({},n,WM.create(e[n])))}),{});return VM(VM({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return BM(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return PM(e,(function(e,n){return t[n].isInRange(e)}))}})};function qM(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 GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YM(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)||function(e,t){if(!e)return;if("string"==typeof e)return XM(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 XM(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 XM(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 JM(){return JM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JM.apply(this,arguments)}function QM(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;ow(void 0===u,'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,u=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(SM(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(SM(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return SM(o,"discard")&&CM(b,(function(t){return!e.isInRange(t)}))?null:b}return null}($M({x:i.scale,y:a.scale}),Sd(n),Sd(r),o&&2===o.length,e);if(!f)return null;var p=YM(f,2),d=p[0],h=d.x,g=d.y,y=p[1],v=y.x,m=y.y,b=GM(GM({clipPath:SM(e,"hidden")?"url(#".concat(l,")"):void 0},Ro(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return t.createElement(Ho,{className:jo("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement("line",JM({},n,{className:"recharts-reference-line-line"}))}(s,b),zE.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return KM({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:v,y2:m})))}function eP(){return eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eP.apply(this,arguments)}function tP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tP(Object(n),!0).forEach((function(t){rP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}QM.displayName="ReferenceLine",QM.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function oP(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Sd(n),c=Sd(r);if(ow(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=$M({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return SM(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=nP(nP({clipPath:SM(e,"hidden")?"url(#".concat(a,")"):void 0},Ro(e,!0)),{},{cx:l,cy:f});return t.createElement(Ho,{className:jo("recharts-reference-dot",d)},oP.renderDot(p,h),zE.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}function iP(){return iP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iP.apply(this,arguments)}function aP(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 sP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aP(Object(n),!0).forEach((function(t){cP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oP.displayName="ReferenceDot",oP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},oP.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,eP({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function uP(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;ow(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Sd(n),l=Sd(r),f=Sd(o),p=Sd(i),d=e.shape;if(!(u||l||f||p||d))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=$M({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!SM(o,"discard")||f.isInRange(p)&&f.isInRange(d)?KM(p,d):null}(u,l,f,p,e);if(!h&&!d)return null;var g=SM(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(Ho,{className:jo("recharts-reference-area",a)},uP.renderRect(d,sP(sP({clipPath:g},Ro(e,!0)),h)),zE.renderCallByParent(e,h))}function lP(e){return lP="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},lP(e)}function fP(){return fP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fP.apply(this,arguments)}function pP(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 dP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pP(Object(n),!0).forEach((function(t){hP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gP(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 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,r.key,r)}}function vP(e,t){return vP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vP(e,t)}function mP(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 bP(this,n)}}function bP(e,t){return!t||"object"!==lP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wP(e){return wP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wP(e)}uP.displayName="ReferenceArea",uP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},uP.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(Lj,iP({},n,{className:"recharts-reference-area-rect"}))};var xP=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}}),t&&vP(e,t)}(a,t.Component);var n,r,o,i=mP(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)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=gP(e,["viewBox"]),o=this.props,i=o.viewBox,a=gP(o,["viewBox"]);return!vx(n,i)||!vx(r,a)||!vx(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,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=Cd(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*f)+y*v)+y*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,u=dP(dP(dP({},Ro(this.props)),Ro(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=dP(dP({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=dP(dP({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",fP({},u,{className:jo("recharts-cartesian-axis-line",nl(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,p=a.getTicks(dP(dP({},this.props),{},{ticks:e}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Ro(this.props),y=Ro(u),v=dP(dP({},g),{},{fill:"none"},Ro(s)),m=p.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=dP(dP(dP(dP({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:l});return t.createElement(Ho,fP({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},No(o.props,e,n)),s&&t.createElement("line",fP({},v,i,{className:jo("recharts-cartesian-axis-tick-line",nl(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(si(l)?l(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,u=c.ticks,l=gP(c,["ticks"]),f=u;return si(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(Ho,{className:jo("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),zE.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return o&&o.length&&r?Cd(u)||Pm.isSsr?a.getNumberIntervalTicks(o,"number"==typeof u&&Cd(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?Xw(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?xd(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=si(i)?i(x.value,b-1):x.value,C=Xw(_,{fontSize:l,letterSpacing:f})[y]+m,S=w*(x.coordinate+w*C/2-r);v[b-1]=x=dP(dP({},x),{},{tickCoord:S>0?x.coordinate-S*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+c),v[b-1]=dP(dP({},x),{},{isShow:!0}))}for(var O=t?b-1:b,k=0;k<O;k++){var E=v[k],j=si(i)?i(E.value,k):E.value,A=Xw(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=dP(dP({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=dP(dP({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*A/2-n)>=0&&w*(E.tickCoord+w*A/2-r)<=0&&(n=E.tickCoord+w*(A/2+c),v[k]=dP(dP({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=i.x,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Xw(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?xd(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=si(o)?o(x.value,m-w-1):x.value,C=Xw(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var S=b*(x.coordinate+b*C/2-n);v[w]=x=dP(dP({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate})}else v[w]=x=dP(dP({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=dP(dP({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(yx,fP({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&yP(n.prototype,r),o&&yP(n,o),a}();function _P(e){return _P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_P(e)}function CP(){return CP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CP.apply(this,arguments)}function SP(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 OP(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 kP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OP(Object(n),!0).forEach((function(t){EP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function TP(e,t){return TP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},TP(e,t)}function MP(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=DP(e);if(t){var o=DP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return PP(this,n)}}function PP(e,t){return!t||"object"!==_P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function DP(e){return DP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},DP(e)}xP.displayName="CartesianAxis",xP.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 RP=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}}),t&&TP(e,t)}(a,t.PureComponent);var n,r,o,i=MP(a);function a(){return jP(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=kP(kP({},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=kP(kP({},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,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:i+s-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{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,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:a+c-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:l,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{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,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!Cd(o)||o<=0||!Cd(i)||i<=0||!Cd(n)||n!==+n||!Cd(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!si(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!si(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(si(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=SP(n,["x1","y1","x2","y2","key"]);r=t.createElement("line",CP({},Ro(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&AP(n.prototype,r),o&&AP(n,o),a}();function IP(){return IP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IP.apply(this,arguments)}function NP(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)||function(e,t){if(!e)return;if("string"==typeof e)return LP(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 LP(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 LP(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 BP(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 FP(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=BP(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=Ro(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=NP(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=d+n,_=x+o,C=x-o,S=w(h-y),O=w(h+v);m.push({x1:O,y1:_,x2:O,y2:C}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:_,x2:S,y2:C})}else if("horizontal"===r){var k=u.scale,E=p+n,j=E-o,A=E+o,T=k(h-y),M=k(h+v);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(Ho,IP({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",IP({},e,{key:"line-".concat(n)}))})))}));return t.createElement(Ho,{className:"recharts-errorBars"},p)}function zP(e){return zP="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},zP(e)}function VP(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 HP(){return HP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HP.apply(this,arguments)}function UP(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 KP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UP(Object(n),!0).forEach((function(t){WP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e){return function(e){if(Array.isArray(e))return qP(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 qP(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 qP(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 qP(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 GP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function YP(e,t){return YP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YP(e,t)}function XP(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=QP(e);if(t){var o=QP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JP(this,n)}}function JP(e,t){return!t||"object"!==zP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function QP(e){return QP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},QP(e)}RP.displayName="CartesianGrid",RP.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},FP.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},FP.displayName="ErrorBar";var eD=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}}),t&&YP(e,t)}(a,t.PureComponent);var n,r,o,i=XP(a);function a(){var e;GP(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},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=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat($P(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat($P(a.repeat(n,o)),$P(c),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=kd("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},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(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=e.layout,a=e.children,s=Sx(a,FP.displayName);if(!s)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:$k(e.payload,t)}}return s.map((function(e,a){return t.cloneElement(e,{key:"bar-".concat(a),data:n,xAxis:r,yAxis:o,layout:i,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,s=r.dataKey,c=Ro(this.props),u=Ro(o,!0),l=i.map((function(e,t){var n=KP(KP(KP({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(o,n)})),f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(Ho,HP({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=VP(i,["type","layout","connectNulls","ref"]),l=KP(KP(KP({},Ro(u,!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(kj,HP({},l,{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,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=o.animateNewValues,d=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(vv,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=Ad(r.x,e.x),a=Ad(r.y,e.y);return KP(KP({},e),{},{x:i(o),y:a(o)})}if(p){var c=Ad(2*d,e.x),u=Ad(h/2,e.y);return KP(KP({},e),{},{x:c(o),y:u(o)})}return KP(KP({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Ad(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{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||!Px(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=jo("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Wd(d)?this.id:d;return t.createElement(Ho,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||r)&&this.renderDots(v,m),(!p||h)&&JE.renderCallByParent(this.props,o))}}],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($P(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat($P(r),$P(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(si(e))r=e(n);else{var o=jo("recharts-line-dot",e?e.className:"");r=t.createElement(aA,HP({},n,{className:o}))}return r}}],r&&ZP(n.prototype,r),o&&ZP(n,o),a}();function tD(e){return tD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tD(e)}function nD(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 rD(){return rD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rD.apply(this,arguments)}function oD(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 iD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oD(Object(n),!0).forEach((function(t){aD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uD(e,t){return uD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uD(e,t)}function lD(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=pD(e);if(t){var o=pD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fD(this,n)}}function fD(e,t){return!t||"object"!==tD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pD(e){return pD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pD(e)}eD.displayName="Line",eD.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Pm.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1},eD.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,u=e.offset,l=t.layout;return KP({points:c.map((function(e,t){var c=$k(e,a);return"horizontal"===l?{x:lE({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Wd(c)?null:r.scale(c),value:c,payload:e}:{x:Wd(c)?null:n.scale(c),y:lE({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)};var dD=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}}),t&&uD(e,t)}(a,t.PureComponent);var n,r,o,i=lD(a);function a(){var e;sD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!0},e.id=kd("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e}return n=a,r=[{key:"renderDots",value:function(e,n){var r=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(r&&!o)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=Ro(this.props),f=Ro(s,!0),p=c.map((function(e,t){var n=iD(iD(iD({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(Ho,rD({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].x,s=o[o.length-1].x,c=e*Math.abs(a-s),u=Fx(o.map((function(e){return e.y||0})));return Cd(r)&&"number"==typeof r?u=Math.max(r,u):r&&us(r)&&r.length&&(u=Math.max(Fx(r.map((function(e){return e.y||0}))),u)),Cd(u)?t.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].y,s=o[o.length-1].y,c=e*Math.abs(a-s),u=Fx(o.map((function(e){return e.x||0})));return Cd(r)&&"number"==typeof r?u=Math.max(r,u):r&&us(r)&&r.length&&(u=Math.max(Fx(r.map((function(e){return e.x||0}))),u)),Cd(u)?t.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,o){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=nD(i,["layout","type","stroke","connectNulls","isRange","ref"]);return t.createElement(Ho,{clipPath:r?"url(#clipPath-".concat(o,")"):null},t.createElement(kj,rD({},Ro(f,!0),{points:e,connectNulls:u,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&t.createElement(kj,rD({},Ro(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&t.createElement(kj,rD({},Ro(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.baseLine,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return t.createElement(vv,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var s=o.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=Ad(r.x,e.x),i=Ad(r.y,e.y);return iD(iD({},e),{},{x:o(s),y:i(s)})}return e}));return c=Cd(a)&&"number"==typeof a?Ad(h,a)(s):Wd(a)||yd(a)?Ad(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=Ad(r.x,e.x),i=Ad(r.y,e.y);return iD(iD({},e),{},{x:o(s),y:i(s)})}return e})),r.renderAreaStatically(l,c,e,n)}return t.createElement(Ho,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(Ho,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,a,e,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!Px(s,r)||!Px(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=jo("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Wd(d)?this.id:d;return t.createElement(Ho,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(r||g)&&this.renderDots(v,m),(!p||h)&&JE.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&cD(n.prototype,r),o&&cD(n,o),a}();function hD(e){return hD="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},hD(e)}function gD(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 yD(){return yD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yD.apply(this,arguments)}function vD(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 mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vD(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _D(e,t){return _D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_D(e,t)}function CD(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=OD(e);if(t){var o=OD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return SD(this,n)}}function SD(e,t){return!t||"object"!==hD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function OD(e){return OD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},OD(e)}dD.displayName="Area",dD.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dD.getBaseValue=function(e,t,n,r){var o=e.layout,i=t.props.baseValue;if(Cd(i)&&"number"==typeof i)return i;var a="horizontal"===o?r:n,s=a.scale.domain();if("number"===a.type){var c=Math.max(s[0],s[1]),u=Math.min(s[0],s[1]);return"dataMin"===i?u:"dataMax"===i||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===i?s[0]:"dataMax"===i?s[1]:s[0]},dD.getComposedData=function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=dD.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=$k(e,u);g?n=l[f+t]:us(n=r)?v=!0:n=[y,n];var p=Wd(n[1])||g&&Wd(r);return"horizontal"===h?{x:lE({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:lE({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Wd(nl(e,"value[0]"))||Wd(nl(e,"y"))?null:i.scale(nl(e,"value[0]"))}:{x:Wd(nl(e,"value[0]"))?null:o.scale(nl(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),iD({points:m,baseLine:t,layout:h,isRange:v},d)},dD.renderDotItem=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,rD({},n,{className:"recharts-area-dot"}))};var kD=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}}),t&&_D(e,t)}(a,t.PureComponent);var n,r,o,i=CD(a);function a(){var e;wD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.id=kd("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},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=Ro(this.props);return e&&e.map((function(e,i){var s=mD(mD(mD({},o),e),{},{index:i});return t.createElement(Ho,yD({className:"recharts-bar-rectangle"},No(n.props,e,i),{key:"rectangle-".concat(i),role:"img"}),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,u=n.animationId,l=this.state.prevData;return t.createElement(vv,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ad(n.x,e.x),a=Ad(n.y,e.y),s=Ad(n.width,e.width),c=Ad(n.height,e.height);return mD(mD({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Ad(0,e.height)(i);return mD(mD({},e),{},{y:e.y+e.height-u,height:u})}var f=Ad(0,e.width)(i);return mD(mD({},e),{},{width:f})}));return t.createElement(Ho,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&&Px(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=Ro(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=gD(t,["value","background"]);if(!o)return null;var s=mD(mD(mD(mD(mD({},i),{},{fill:"#eee"},o),n),No(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(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.data,r=e.xAxis,o=e.yAxis,i=e.layout,a=e.children,s=Sx(a,FP.displayName);if(!s)return null;var c="vertical"===i?n[0].height/2:n[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:$k(e,t)}}return s.map((function(e,a){return t.cloneElement(e,{key:"error-bar-".concat(a),data:n,xAxis:r,yAxis:o,layout:i,offset:c,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,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=jo("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Wd(d)?this.id:d;return t.createElement(Ho,{className:g},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:s,y:c,width:u,height:l}))):null,t.createElement(Ho,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&JE.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):si(e)?e(n):t.createElement(Lj,n)}}],r&&xD(n.prototype,r),o&&xD(n,o),a}();kD.displayName="Bar",kD.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},kD.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,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=iE(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=pE({numericAxis:b}),_=Sx(v,iw.displayName),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=aE(u[l+t],w):(r=$k(e,y),us(r)||(r=[x,r])),"horizontal"===h){if(f=fE({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=a.scale(r[1]),g=d.size,v=a.scale(r[0])-a.scale(r[1]),b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var C=xd(v||m)*(Math.abs(m)-Math.abs(v));p-=C,v+=C}}else f=i.scale(r[0]),p=fE({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=i.scale(r[1])-i.scale(r[0]),v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=xd(g||m)*(Math.abs(m)-Math.abs(g)));return mD(mD(mD({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[bE(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return mD({data:C,layout:h},p)};var ED=function(){return null};function jD(e){return jD="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},jD(e)}function AD(){return AD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AD.apply(this,arguments)}function TD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TD(Object(n),!0).forEach((function(t){PD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ID(e,t){return ID=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ID(e,t)}function ND(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=BD(e);if(t){var o=BD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LD(this,n)}}function LD(e,t){return!t||"object"!==jD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function BD(e){return BD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BD(e)}ED.displayName="ZAxis",ED.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var FD=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}}),t&&ID(e,t)}(a,t.PureComponent);var n,r,o,i=ND(a);function a(){var e;DD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=kd("recharts-scatter-"),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.activeShape,s=r.activeIndex,c=Ro(this.props);return e.map((function(e,r){var u=MD(MD({key:"symbol-".concat(r)},c),e);return t.createElement(Ho,AD({className:"recharts-scatter-symbol"},No(n.props,e,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(s===r?i:o,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ad(n.cx,e.cx),i=Ad(n.cy,e.cy),a=Ad(n.size,e.size);return MD(MD({},e),{},{cx:r(o),cy:i(o),size:a(o)})}var s=Ad(0,e.size);return MD(MD({},e),{},{size:s(o)})}));return t.createElement(Ho,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&Px(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=e.children,a=Sx(i,FP.displayName);if(!a)return null;function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:$k(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:$k(e,t)}}return a.map((function(e,i){var a=e.props.direction;return t.cloneElement(e,{key:i,data:n,xAxis:r,yAxis:o,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:s})}))}},{key:"renderLine",value:function(){var e,n,r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,c=Ro(this.props),u=Ro(i);if("joint"===a)e=o.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(o),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=MD(MD(MD({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return n=t.isValidElement(i)?t.cloneElement(i,y):si(i)?i(y):t.createElement(kj,AD({},y,{type:s})),t.createElement(Ho,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.points,o=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=jo("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Wd(p)?this.id:p;return t.createElement(Ho,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:c,y:u,width:l,height:f}))):null,o&&this.renderLine(),this.renderErrorBar(),t.createElement(Ho,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&JE.renderCallByParent(this.props,r))}}],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:"renderSymbolItem",value:function(e,n){var r;return t.isValidElement(e)?r=t.cloneElement(e,n):si(e)?r=e(n):"string"==typeof e&&(r=t.createElement(Qp,AD({},n,{type:e}))),r}}],r&&RD(n.prototype,r),o&&RD(n,o),a}();FD.displayName="Scatter",FD.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},FD.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=Sx(o.props.children,iw.displayName),f=Wd(t.dataKey)?o.props.dataKey:t.dataKey,p=Wd(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:ED.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=$k(e,f),h=$k(e,p),m=!Wd(d)&&$k(e,d)||"-",b=[{name:Wd(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Wd(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=lE({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=lE({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return MD(MD({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return MD({points:m},c)};var zD=function(){return null};zD.displayName="XAxis",zD.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var VD=function(){return null};VD.displayName="YAxis",VD.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var HD=Nl,UD=fc,KD=gc;var WD=function(e){return function(t,n,r){var o=Object(t);if(!UD(t)){var i=HD(n);t=KD(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}},$D=ZT;var qD=Ll,GD=Nl,ZD=function(e){var t=$D(e),n=t%1;return t==t?n?t-n:t:0},YD=Math.max;var XD=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ZD(n);return o<0&&(o=YD(r+o,0)),qD(e,GD(t),o)},JD=WD(XD),QD=fb,eR=Ao;var tR=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return eR(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),QD(e,t,{leading:r,maxWait:t,trailing:o})},nR=oi,rR=_s;var oR=function(e){return!0===e||!1===e||rR(e)&&"[object Boolean]"==nR(e)},iR=function(e,t,n,r,o){var i=Sx(e,QM.displayName),a=Sx(e,oP.displayName),s=i.concat(a),c=Sx(e,uP.displayName),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&SM(t.props,"extendDomain")&&Cd(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&SM(t.props,"extendDomain")&&Cd(t.props[p])&&Cd(t.props[d])){var r=t.props[p],o=t.props[d];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 Cd(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},aR={};!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,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].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,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u: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}({get exports(){return aR},set exports(e){aR=e}});var sR=new aR;sR.setMaxListeners&&sR.setMaxListeners(10);var cR="recharts.syncMouseEvents";function uR(e){return uR="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},uR(e)}function lR(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)||wR(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 fR(){return fR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fR.apply(this,arguments)}function pR(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 dR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hR(e,t){return hR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hR(e,t)}function gR(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=mR(e);if(t){var o=mR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yR(this,n)}}function yR(e,t){return!t||"object"!==uR(t)&&"function"!=typeof t?vR(e):t}function vR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mR(e){return mR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mR(e)}function bR(e){return function(e){if(Array.isArray(e))return xR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||wR(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 wR(e,t){if(e){if("string"==typeof e)return xR(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)?xR(e,t):void 0}}function xR(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 _R(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 CR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_R(Object(n),!0).forEach((function(t){SR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OR={xAxis:["bottom","top"],yAxis:["left","right"]},kR={x:0,y:0},ER=Number.isFinite?Number.isFinite:isFinite,jR="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,AR="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,TR=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(bR(e),bR(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&&Cd(o)&&Cd(i)?e.slice(o,i+1):[]},MR=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=TR(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=Td(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(bR(e),[bE(t,o)]):e}),[])},PR=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,u=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){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 u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if(xd(l-u)!==xd(f-l)){var d=[];if(xd(f-l)===xd(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){i=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/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}}else i=0;return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=MR(e,t,u,l),p=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 CR(CR(CR({},r),EE(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return CR(CR(CR({},r),EE(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return kR}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},DR=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,u=e.layout,l=e.children,f=e.stackOffset,p=Jk(u,o),d=n.reduce((function(t,n){var d=n.props,h=d.type,g=d.dataKey,y=d.allowDataOverflow,v=d.allowDuplicatedCategory,m=d.scale,b=d.ticks,w=n.props[i],x=TR(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:c}),_=x.length;if(!t[w]){var C,S,O;if(g){if(C=qk(x,g,h),"category"===h&&p){var k=function(e){if(!us(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}(C);v&&k?(S=C,C=QT(0,_)):v||(C=mE(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(bR(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Wd(e)})):mE(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wd(t)?e:[].concat(bR(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,o){var i=t.map((function(t){return Yk(e,t,n,o,r)})).filter((function(e){return!Wd(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}(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),g,o,u);E&&(C=E)}!p||"number"!==h&&"auto"===m||(O=qk(x,g,"category"))}else C=p?QT(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:dE(a[w].stackGroups,s,c):Xk(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,u,!0);if("number"===h)C=iR(l,C,w,o,b),n.props.domain&&(C=yE(n.props.domain,C,y));else if("category"===h&&n.props.domain){var j=n.props.domain;C.every((function(e){return j.indexOf(e)>=0}))&&(C=j)}return CR(CR({},t),{},SR({},w,CR(CR({},n.props),{},{axisType:o,domain:C,categoricalDomain:O,duplicateDomain:S,originalDomain:n.props.domain,isCategorical:p,layout:u})))}return t}),{});return d},RR=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,u=e.children,l="".concat(r,"Id"),f=Sx(u,o),p={};return f&&f.length?p=DR(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=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,u=e.layout,l=e.children,f=TR(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=Jk(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(h++,d?g=QT(0,p):a&&a[y]&&a[y].hasStack?(g=dE(a[y].stackGroups,s,c),g=iR(l,g,y,o)):(g=yE(r.defaultProps.domain,Xk(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=iR(l,g,y,o)),CR(CR({},e),{},SR({},y,CR(CR({axisType:o},r.defaultProps),{},{hide:!0,orientation:nl(OR,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},IR=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=Ox(r,yM.displayName);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:!Wd(o)&&o}},NR=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"}},LR=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,u=n.children,l=n.margin||{},f=Ox(u,yM.displayName),p=Ox(u,Kd.displayName),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:CR(CR({},e),{},SR({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:CR(CR({},e),{},SR({},r,nl(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=CR(CR({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||yM.defaultProps.height),p&&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=Zk({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Cd(e[f])&&(u=Kk(Kk({},e),{},Wk({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Cd(e[p])&&(u=Kk(Kk({},e),{},Wk({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),CR(CR({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},BR=function(e){var n,r,o=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,s=void 0===a?"axis":a,c=e.validateTooltipEventTypes,u=void 0===c?["axis"]:c,l=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,d=e.defaultProps,h=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,p=e.barCategoryGap,d=e.maxBarSize,h=NR(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=wx(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&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,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return wx(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Wd(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=TR(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"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 CR(CR({},e),{},(SR(o={},r.axisType,s),SR(o,"".concat(r.axisType,"Ticks"),eE(s)),o))}),{}),O=S[y],k=S["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Sd(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[_].stackGroups),j=wx(n.type).indexOf("Bar")>=0,A=vE(O,k),T=[];if(j){var M,P,D=Wd(x)?d:x,R=null!==(M=null!==(P=vE(O,k,!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,u=Ed(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(Vk(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ed(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(Vk(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);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:p,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return CR(CR({},e),{},{position:CR(CR({},e.position),{},{offset:e.position.offset-R/2})})})))}var I,N,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:CR(CR({},B(CR(CR({},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)},SR(I,g,S[g]),SR(I,y,S[y]),SR(I,"animationId",i),I)),childIndex:(N=n,L=e.children,Cx(L).indexOf(N)),item:n})})),b},g=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!kx({props:n}))return null;var c=n.children,u=n.layout,f=n.stackOffset,d=n.data,g=n.reverseStackOrder,y=NR(u),v=y.numericAxisName,m=y.cateAxisName,b=Sx(c,i),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(Sd(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[kd("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Kk(Kk({},e),{},Wk({},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 Kk(Kk({},t),{},Wk({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:cE(e,a.items,o)}))}),{})),Kk(Kk({},t),{},Wk({},i,s))}),{})}(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,g),x=l.reduce((function(e,t){var o="".concat(t.axisType,"Map");return CR(CR({},e),{},SR({},o,RR(n,CR(CR({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=LR(CR(CR({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(n,x[e],_,e.replace("Map",""),o)}));var C,S,O=x["".concat(m,"Map")],k=(C=jd(O),{tooltipTicks:S=eE(C,!1,!0),orderedTooltipTicks:vm(S,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:vE(C,S)}),E=h(n,CR(CR({},x),{},{dataStartIndex:r,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return CR(CR({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return r=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}}),t&&hR(e,t)}(c,t.Component);var n,r,i,a=gR(c);function c(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,e)).uniqueChartId=void 0,n.clipPathId=void 0,n.legendInstance=void 0,n.deferId=void 0,n.container=void 0,n.clearDeferId=function(){!Wd(n.deferId)&&AR&&AR(n.deferId),n.deferId=null},n.handleLegendBBoxUpdate=function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(CR({legendBBox:e},g({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},CR(CR({},n.state),{},{legendBBox:e}))))}},n.handleReceiveSyncEvent=function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=jR&&jR(n.applySyncEvent.bind(vR(n),r)))},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 CR({dataStartIndex:t,dataEndIndex:r},g({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=CR(CR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),si(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?CR(CR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),si(t)&&t(o,e)},n.handleItemMouseEnter=function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&si(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),si(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&bx[t]?bx[t]:null}(e),r=nl(n.props,"".concat(t));t&&si(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)},n.handleClick=function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=CR(CR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),si(t)&&t(o,e)}},n.handleMouseDown=function(e){var t=n.props.onMouseDown;si(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;si(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Qk(xP.getTicks(CR(CR(CR({},xP.defaultProps),t),{},{ticks:eE(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Qk(xP.getTicks(CR(CR(CR({},xP.defaultProps),t),{},{ticks:eE(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return eE(e,!0)},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,s=r.activePayload,c=r.offset,u=r.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==o&&"axis"!==l)return null;var f,p=n.props.layout,d=kj;if("ScatterChart"===o)f=a,d=gA;else if("BarChart"===o)f=n.getCursorRectangle(),d=Lj;else if("radial"===p){var h=n.getCursorPoints(),g=h.cx,y=h.cy,v=h.radius;f={cx:g,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},d=lj}else f={points:n.getCursorPoints()},d=kj;var m=e.key||"_recharts-cursor",b=CR(CR(CR(CR({stroke:"#ccc",pointerEvents:"none"},c),f),Ro(e.props.cursor)),{},{payload:s,payloadIndex:u,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(d,b)},n.renderPolarAxis=function(e,r,o){var i=nl(e,"type.axisType"),a=nl(n.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return t.cloneElement(e,CR(CR({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:eE(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,u=s.height,l=jd(o),f=JD(i,(function(e){return PM(e.domain,ER)}))||jd(i),p=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Cd(p.x)?p.x:a.left,y:Cd(p.y)?p.y:a.top,width:Cd(p.width)?p.width:a.width,height:Cd(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,u=s.angleAxisMap,l=jd(c),f=jd(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:us(i)?i:eE(f,!0).map((function(e){return e.coordinate})),polarRadius:us(a)?a:eE(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})},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),u=Zk({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:f});if(!u)return null;var l=u.item,p=pR(u,["item"]);return t.cloneElement(l,CR(CR({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))},n.renderTooltip=function(){var e=n.props.children,r=Ox(e,Wm.displayName);if(!r)return null;var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.activeLabel,u=o.offset;return t.cloneElement(r,{viewBox:CR(CR({},u),{},{x:u.left,y:u.top}),active:i,label:c,payload:i?s:[],coordinate:a})},n.renderBrush=function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,u=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:tE(n.handleBrushChange,null,e.props.onChange),data:i,x:Cd(e.props.x)?e.props.x:s.left,y:Cd(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Cd(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,r,o){if(!e)return null;var i=vR(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},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,u=t.item.props,l=u.activeDot,f=CR(CR({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:Gk(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Ro(l)),Io(l));return a.push(c.renderActiveDot(l,f)),r?a.push(c.renderActiveDot(l,CR(CR({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a},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,u=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,p=n.props.children,d=Ox(p,Wm.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&c&&d&&b&&l>=0,x={};"axis"!==a&&d&&"click"===d.props.trigger?x={onClick:tE(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:tE(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:tE(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=t.cloneElement(e,CR(CR({},i.props),x));if(w){var C,S;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=Td(g,O,f),S=y&&v&&Td(v,O,f)}else C=g[l],S=y&&v&&v[l];if(!Wd(C))return[_].concat(bR(n.renderActivePoints({item:i,activePoint:C,basePoint:S,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},n.renderCustomized=function(e,r,o){return t.cloneElement(e,CR(CR({key:"recharts-customized-".concat(o)},n.props),n.state))},n.uniqueChartId=Wd(e.id)?kd("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=tR(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=c,r=[{key:"componentDidMount",value:function(){Wd(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Wd(e.syncId)&&!Wd(this.props.syncId)&&this.addListener(),!Wd(e.syncId)&&Wd(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Wd(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=Ox(this.props.children,Wm.displayName);if(e&&oR(e.props.shared)){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{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 u=jd(s).scale,l=jd(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return CR(CR({},o),{},{xValue:f,yValue:p})}var d=PR(this.state,this.props.data,this.props.layout,i);return d?CR(CR({},o),d):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(!Wd(a.cx)||!Wd(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[EE(c,u,l,f),EE(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=EE(d,h,g,v),b=EE(d,h,y,v);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=jd(i);return PE({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Ox(e,Wm.displayName),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}),CR(CR({},Io(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){sR.on(cR,this.handleReceiveSyncEvent),sR.setMaxListeners&&sR._maxListeners&&sR.setMaxListeners(sR._maxListeners+1)}},{key:"removeListener",value:function(){sR.removeListener(cR,this.handleReceiveSyncEvent),sR.setMaxListeners&&sR._maxListeners&&sR.setMaxListeners(sR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Wd(t)||sR.emit(cR,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(Wd(e.dataStartIndex)&&Wd(e.dataEndIndex))if(Wd(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var h=CR(CR({},f),{},{x:f.left,y:f.top}),y=Math.min(s,h.x+h.width),v=Math.min(c,h.y+h.height),m=p[u]&&p[u].value,b=MR(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:kR;this.setState(CR(CR({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(CR({dataStartIndex:i,dataEndIndex:a},g({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===wx(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(xP,fR({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),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=lR(t,2),r=n[0],o=n[1];return CR(CR({},e),{},SR({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=lR(t,2),r=n[0],o=n[1];return CR(CR({},e),{},SR({},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=wx(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return Nj(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return PE(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!kx(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,u=n.title,l=n.desc,f=pR(n,["children","className","width","height","style","compact","title","desc"]),p=Ro(f),d={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(Fo,fR({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Tx(r,d));var h=this.parseEventsOfWrapper();return t.createElement("div",fR({className:jo("recharts-wrapper",o),style:CR({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(Fo,fR({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Tx(r,d)),this.renderLegend(),this.renderTooltip())}}],r&&dR(n.prototype,r),i&&dR(n,i),c}(),n.displayName=o,n.defaultProps=CR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d),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(Wd(t.updateId)){var u=IR(e);return CR(CR(CR({},u),{},{updateId:0},g(CR(CR({props:e},u),{},{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||!vx(c,t.prevMargin)){var l=IR(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=CR(CR({},PR(t,n,a)),{},{updateId:t.updateId+1}),d=CR(CR(CR({},l),f),p);return CR(CR(CR({},d),g(CR({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!jx(r,t.prevChildren)){var h=!Wd(n)?t.updateId:t.updateId+1;return CR(CR({updateId:h},g(CR(CR({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},n.renderActiveDot=function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,n),t.createElement(Ho,{className:"recharts-active-dot",key:n.key},r)},r};BR({chartName:"LineChart",GraphicalChild:eD,axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD}],formatAxisMap:UM});var FR=BR({chartName:"BarChart",GraphicalChild:kD,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD}],formatAxisMap:UM}),zR=BR({chartName:"PieChart",GraphicalChild:vT,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:YA},{axisType:"radiusAxis",AxisComp:NA}],formatAxisMap:AE,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var VR=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},HR=RM,UR=ui,KR=Object.prototype.hasOwnProperty;var WR=function(e,t,n){var r=e[t];KR.call(e,t)&&UR(r,n)&&(void 0!==n||t in e)||HR(e,t,n)},$R=WR,qR=RM;var GR=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?qR(n,s,c):$R(n,s,c)}return n},ZR=GR,YR=gc;var XR=function(e,t){return e&&ZR(t,YR(t),e)};var JR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},QR=Ao,eI=nc,tI=JR,nI=Object.prototype.hasOwnProperty;var rI=function(e){if(!QR(e))return tI(e);var t=eI(e),n=[];for(var r in e)("constructor"!=r||!t&&nI.call(e,r))&&n.push(r);return n},oI=ec,iI=rI,aI=fc;var sI=function(e){return aI(e)?oI(e,!0):iI(e)},cI=GR,uI=sI;var lI=function(e,t){return e&&cI(t,uI(t),e)},fI={};!function(e,t){var n=$o,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return fI},set exports(e){fI=e}},fI);var pI=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},dI=GR,hI=ws;var gI=function(e,t){return dI(e,hI(e),t)},yI=cs,vI=XA,mI=ws,bI=hs,wI=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yI(t,mI(e)),e=vI(e);return t}:bI,xI=GR,_I=wI;var CI=function(e,t){return xI(e,_I(e),t)},SI=ps,OI=wI,kI=sI;var EI=function(e){return SI(e,kI,OI)},jI=Object.prototype.hasOwnProperty;var AI=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&jI.call(e,"index")&&(n.index=e.index,n.input=e.input),n},TI=Xa;var MI=function(e){var t=new e.constructor(e.byteLength);return new TI(t).set(new TI(e)),t},PI=MI;var DI=function(e,t){var n=t?PI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},RI=/\w*$/;var II=function(e){var t=new e.constructor(e.source,RI.exec(e));return t.lastIndex=e.lastIndex,t},NI=qo?qo.prototype:void 0,LI=NI?NI.valueOf:void 0;var BI=MI;var FI=MI,zI=DI,VI=II,HI=function(e){return LI?Object(LI.call(e)):{}},UI=function(e,t){var n=t?BI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var KI=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return FI(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return zI(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return UI(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return VI(e);case"[object Symbol]":return HI(e)}},WI=Ao,$I=Object.create,qI=function(){function e(){}return function(t){if(!WI(t))return{};if($I)return $I(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),GI=qI,ZI=XA,YI=nc;var XI=function(e){return"function"!=typeof e.constructor||YI(e)?{}:GI(ZI(e))},JI=Kc,QI=_s;var eN=function(e){return QI(e)&&"[object Map]"==JI(e)},tN=Vs,nN=Hs&&Hs.isMap,rN=nN?tN(nN):eN,oN=Kc,iN=_s;var aN=function(e){return iN(e)&&"[object Set]"==oN(e)},sN=Vs,cN=Hs&&Hs.isSet,uN=cN?sN(cN):aN,lN=Fa,fN=VR,pN=WR,dN=XR,hN=lI,gN=fI,yN=pI,vN=gI,mN=CI,bN=bc,wN=EI,xN=Kc,_N=AI,CN=KI,SN=XI,ON=us,kN=Ms,EN=rN,jN=Ao,AN=uN,TN=gc,MN=sI,PN="[object Arguments]",DN="[object Function]",RN="[object Object]",IN={};IN[PN]=IN["[object Array]"]=IN["[object ArrayBuffer]"]=IN["[object DataView]"]=IN["[object Boolean]"]=IN["[object Date]"]=IN["[object Float32Array]"]=IN["[object Float64Array]"]=IN["[object Int8Array]"]=IN["[object Int16Array]"]=IN["[object Int32Array]"]=IN["[object Map]"]=IN["[object Number]"]=IN[RN]=IN["[object RegExp]"]=IN["[object Set]"]=IN["[object String]"]=IN["[object Symbol]"]=IN["[object Uint8Array]"]=IN["[object Uint8ClampedArray]"]=IN["[object Uint16Array]"]=IN["[object Uint32Array]"]=!0,IN["[object Error]"]=IN[DN]=IN["[object WeakMap]"]=!1;var NN=function e(t,n,r,o,i,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!jN(t))return t;var f=ON(t);if(f){if(s=_N(t),!c)return yN(t,s)}else{var p=xN(t),d=p==DN||"[object GeneratorFunction]"==p;if(kN(t))return gN(t,c);if(p==RN||p==PN||d&&!i){if(s=u||d?{}:SN(t),!c)return u?mN(t,hN(s,t)):vN(t,dN(s,t))}else{if(!IN[p])return i?t:{};s=CN(t,p,c)}}a||(a=new lN);var h=a.get(t);if(h)return h;a.set(t,s),AN(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):EN(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?wN:bN:u?MN:TN)(t);return fN(g||t,(function(o,i){g&&(o=t[i=o]),pN(s,i,e(o,n,r,i,t,a))})),s},LN=el,BN=af;var FN=function(e,t){return t.length<2?e:LN(e,BN(t,0,-1))},zN=Zu,VN=UE,HN=FN,UN=Xu;var KN=function(e,t){return t=zN(t,e),null==(e=HN(e,t))||delete e[UN(VN(t))]},WN=aT;var $N=Cv;var qN=function(e){return(null==e?0:e.length)?$N(e,1):[]},GN=qN,ZN=Yv,YN=im;var XN=Nu,JN=NN,QN=KN,eL=Zu,tL=GR,nL=function(e){return WN(e)?void 0:e},rL=EI,oL=function(e){return YN(ZN(e,void 0,GN),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=XN(t,(function(t){return t=eL(t,e),r||(r=t.length>1),t})),tL(e,rL(e),n),r&&(n=JN(n,7,nL));for(var o=t.length;o--;)QN(n,t[o]);return n})),iL=oL;function aL(e){return aL="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},aL(e)}function sL(){return sL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sL.apply(this,arguments)}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function lL(e,t){return lL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lL(e,t)}function fL(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=dL(e);if(t){var o=dL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pL(this,n)}}function pL(e,t){return!t||"object"!==aL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dL(e){return dL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dL(e)}Math.sqrt(5),Pm.isSsr,Pm.isSsr,BR({chartName:"RadarChart",GraphicalChild:PT,axisComponents:[{axisType:"angleAxis",AxisComp:YA},{axisType:"radiusAxis",AxisComp:NA}],formatAxisMap:AE,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),BR({chartName:"ScatterChart",GraphicalChild:FD,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD},{axisType:"zAxis",AxisComp:ED}],formatAxisMap:UM}),BR({chartName:"AreaChart",GraphicalChild:dD,axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD}],formatAxisMap:UM}),BR({chartName:"RadialBarChart",GraphicalChild:KT,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:YA},{axisType:"radiusAxis",AxisComp:NA}],formatAxisMap:AE,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),BR({chartName:"ComposedChart",GraphicalChild:[eD,dD,kD,FD],axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD},{axisType:"zAxis",AxisComp:ED}],formatAxisMap:UM});var hL=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},gL=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}}),t&&lL(e,t)}(a,t.PureComponent);var n,r,o,i=fL(a);function a(){var e;cL(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.upperWidth,a=n.lowerWidth,s=n.height,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=jo("recharts-trapezoid",c);return h?t.createElement(vv,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:r,y:o},to:{upperWidth:i,lowerWidth:a,height:s,x:r,y:o},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,o=n.lowerWidth,i=n.height,a=n.x,s=n.y;return t.createElement(vv,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},t.createElement("path",sL({},Ro(e.props,!0),{className:g,d:hL(a,s,r,o,i),ref:function(t){e.node=t}})))})):t.createElement("g",null,t.createElement("path",sL({},Ro(this.props,!0),{className:g,d:hL(r,o,i,a,s)})))}}],r&&uL(n.prototype,r),o&&uL(n,o),a}();function yL(e){return yL="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},yL(e)}function vL(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)||function(e,t){if(!e)return;if("string"==typeof e)return mL(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 mL(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 mL(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 bL(){return bL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bL.apply(this,arguments)}function wL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wL(Object(n),!0).forEach((function(t){_L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OL(e,t){return OL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OL(e,t)}function kL(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=jL(e);if(t){var o=jL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EL(this,n)}}function EL(e,t){return!t||"object"!==yL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jL(e){return jL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jL(e)}gL.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var AL=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}}),t&&OL(e,t)}(a,t.PureComponent);var n,r,o,i=kL(a);function a(){var e;CL(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e}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:"renderTrapezoidsStatically",value:function(e){var n=this,r=this.props.activeShape;return e.map((function(e,o){var i=n.isActiveIndex(o)?r:null,s=xL(xL({},e),{},{stroke:e.stroke});return t.createElement(Ho,bL({className:"recharts-funnel-trapezoid"},No(n.props,e,o),{key:"trapezoid-".concat(o),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,n=this.props,r=n.trapezoids,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevTrapezoids;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ad(n.x,e.x),i=Ad(n.y,e.y),a=Ad(n.upperWidth,e.upperWidth),s=Ad(n.lowerWidth,e.lowerWidth),c=Ad(n.height,e.height);return xL(xL({},e),{},{x:r(o),y:i(o),upperWidth:a(o),lowerWidth:s(o),height:c(o)})}var l=Ad(e.x+e.upperWidth/2,e.x),f=Ad(e.y+e.height/2,e.y),p=Ad(0,e.upperWidth),d=Ad(0,e.lowerWidth),h=Ad(0,e.height);return xL(xL({},e),{},{x:l(o),y:f(o),upperWidth:p(o),lowerWidth:d(o),height:h(o)})}));return t.createElement(Ho,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&Px(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.trapezoids,o=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var s=jo("recharts-trapezoids",o);return t.createElement(Ho,{className:s},this.renderTrapezoids(),(!i||a)&&JE.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):aT(e)?t.createElement(gL,bL({},n,e)):t.createElement(gL,n)}}],r&&SL(n.prototype,r),o&&SL(n,o),a}();AL.displayName="Funnel",AL.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Pm.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},AL.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,o=Ro(e.props),i=Sx(r,iw.displayName);return n&&n.length?n.map((function(e,t){return xL(xL(xL({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return xL(xL({},o),e.props)})):[]},AL.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return hd(n)?l=n:wd(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}},AL.getComposedData=function(e){var t=e.item,n=e.offset,r=AL.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=AL.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return $k(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=$k(e,i,0),u=$k(e,a,t),p=o;if(t!==m-1)(n=$k(r[t+1],i,0))instanceof Array&&(n=vL(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=vL(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,S=n/v*h,O=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return xL(xL({x:x,y:_,width:Math.max(C,S),upperWidth:C,lowerWidth:S,height:b,name:u,val:p,tooltipPayload:O,tooltipPosition:k},iL(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-S)/4,y:_,width:Math.abs(C-S)/2+Math.min(C,S),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return xL(xL({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:xL(xL({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:xL(xL({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},BR({chartName:"FunnelChart",GraphicalChild:AL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const TL=J.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),ML=()=>{const{tooltip:t,elevation1:r}=n.useTheme();return e.jsx(Wm,{wrapperStyle:{outline:"none",boxShadow:r},contentStyle:{background:t.background,border:"none",borderRadius:4,padding:16},labelStyle:{color:t.color.subtext},itemStyle:{color:t.color.default,textTransform:"capitalize"},cursor:!1})},PL=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}});function DL(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 RL(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function IL(e){return IL="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},IL(e)}function NL(e){RL(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===IL(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 LL(e,t){RL(2,arguments);var n=NL(e),r=DL(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function BL(e,t){RL(2,arguments);var n=NL(e),r=DL(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function FL(e){return FL="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},FL(e)}function zL(e,t){if(RL(2,arguments),!t||"object"!==FL(t))return new Date(NaN);var n=t.years?DL(t.years):0,r=t.months?DL(t.months):0,o=t.weeks?DL(t.weeks):0,i=t.days?DL(t.days):0,a=t.hours?DL(t.hours):0,s=t.minutes?DL(t.minutes):0,c=t.seconds?DL(t.seconds):0,u=NL(e),l=r||n?BL(u,r+12*n):u,f=i||o?LL(l,i+7*o):l,p=s+60*a,d=c+60*p,h=1e3*d,g=new Date(f.getTime()+h);return g}function VL(e,t){RL(2,arguments);var n=NL(e).getTime(),r=DL(t);return new Date(n+r)}var HL={};function UL(){return HL}function KL(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 WL(e){RL(1,arguments);var t=NL(e);return t.setHours(0,0,0,0),t}var $L=864e5;function qL(e,t){RL(2,arguments);var n=WL(e),r=WL(t),o=n.getTime()-KL(n),i=r.getTime()-KL(r);return Math.round((o-i)/$L)}function GL(e,t){RL(2,arguments);var n=WL(e),r=WL(t);return n.getTime()===r.getTime()}function ZL(e){return ZL="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},ZL(e)}function YL(e){return RL(1,arguments),e instanceof Date||"object"===ZL(e)&&"[object Date]"===Object.prototype.toString.call(e)}function XL(e){if(RL(1,arguments),!YL(e)&&"number"!=typeof e)return!1;var t=NL(e);return!isNaN(Number(t))}function JL(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 QL(e,t){RL(2,arguments);var n=NL(e),r=NL(t),o=JL(n,r),i=Math.abs(qL(n,r));n.setDate(n.getDate()-o*i);var a=Number(JL(n,r)===-o),s=o*(i-a);return 0===s?0:s}function eB(e,t){return RL(2,arguments),NL(e).getTime()-NL(t).getTime()}var tB={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function nB(e){return e?tB[e]:tB.trunc}function rB(e,t){RL(2,arguments);var n=DL(t);return VL(e,-n)}var oB=864e5;function iB(e){RL(1,arguments);var t=1,n=NL(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function aB(e){RL(1,arguments);var t=NL(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=iB(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=iB(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function sB(e){RL(1,arguments);var t=aB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=iB(n);return r}var cB=6048e5;function uB(e,t){var n,r,o,i,a,s,c,u;RL(1,arguments);var l=UL(),f=DL(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:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=NL(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function lB(e,t){var n,r,o,i,a,s,c,u;RL(1,arguments);var l=NL(e),f=l.getUTCFullYear(),p=UL(),d=DL(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:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=uB(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=uB(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function fB(e,t){var n,r,o,i,a,s,c,u;RL(1,arguments);var l=UL(),f=DL(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:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=lB(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=uB(d,t);return h}var pB=6048e5;function dB(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var hB=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return dB("yy"===t?r%100:r,t.length)},gB=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):dB(n+1,2)},yB=function(e,t){return dB(e.getUTCDate(),t.length)},vB=function(e,t){return dB(e.getUTCHours()%12||12,t.length)},mB=function(e,t){return dB(e.getUTCHours(),t.length)},bB=function(e,t){return dB(e.getUTCMinutes(),t.length)},wB=function(e,t){return dB(e.getUTCSeconds(),t.length)},xB=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return dB(Math.floor(r*Math.pow(10,n-3)),t.length)},_B="midnight",CB="noon",SB="morning",OB="afternoon",kB="evening",EB="night",jB={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 hB(e,t)},Y:function(e,t,n,r){var o=lB(e,r),i=o>0?o:1-o;return"YY"===t?dB(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):dB(i,t.length)},R:function(e,t){return dB(aB(e),t.length)},u:function(e,t){return dB(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 dB(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 dB(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 gB(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 dB(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=function(e,t){RL(1,arguments);var n=NL(e),r=uB(n,t).getTime()-fB(n,t).getTime();return Math.round(r/pB)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):dB(o,t.length)},I:function(e,t,n){var r=function(e){RL(1,arguments);var t=NL(e),n=iB(t).getTime()-sB(t).getTime();return Math.round(n/cB)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):dB(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):yB(e,t)},D:function(e,t,n){var r=function(e){RL(1,arguments);var t=NL(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/oB)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):dB(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 dB(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 dB(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 dB(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?CB:0===o?_B: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?kB:o>=12?OB:o>=4?SB:EB,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 vB(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):mB(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):dB(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):dB(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bB(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):wB(e,t)},S:function(e,t){return xB(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return TB(o);case"XXXX":case"XX":return MB(o);default:return MB(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return TB(o);case"xxxx":case"xx":return MB(o);default:return MB(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+AB(o,":");default:return"GMT"+MB(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+AB(o,":");default:return"GMT"+MB(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return dB(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return dB((r._originalDate||e).getTime(),t.length)}};function AB(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+dB(i,2)}function TB(e,t){return e%60==0?(e>0?"-":"+")+dB(Math.abs(e)/60,2):MB(e,t)}function MB(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+dB(Math.floor(o/60),2)+n+dB(o%60,2)}var PB=jB,DB=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"})}},RB=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"})}},IB={p:RB,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return DB(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}}",DB(o,t)).replace("{{time}}",RB(i,t))}},NB=IB,LB=["D","DD"],BB=["YY","YYYY"];function FB(e){return-1!==LB.indexOf(e)}function zB(e){return-1!==BB.indexOf(e)}function VB(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 HB={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function UB(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var KB={date:UB({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UB({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:UB({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},WB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function $B(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 qB={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:$B({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:$B({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:$B({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:$B({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:$B({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"})};function GB(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],u=Array.isArray(c)?YB(c,(function(e){return e.test(s)})):ZB(c,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function ZB(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function YB(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var XB,JB={ordinalNumber:(XB={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(XB.matchPattern);if(!n)return null;var r=n[0],o=e.match(XB.parsePattern);if(!o)return null;var i=XB.valueCallback?XB.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:GB({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:GB({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:GB({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:GB({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:GB({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"})},QB={code:"en-US",formatDistance:function(e,t,n){var r,o=HB[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},formatLong:KB,formatRelative:function(e,t,n,r){return WB[e]},localize:qB,match:JB,options:{weekStartsOn:0,firstWeekContainsDate:1}},eF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nF=/^'([^]*?)'?$/,rF=/''/g,oF=/[a-zA-Z]/;function iF(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;RL(2,arguments);var x=String(t),_=UL(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:QB,S=DL(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=DL(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=NL(e);if(!XL(k))throw new RangeError("Invalid time value");var E=KL(k),j=rB(k,E),A={firstWeekContainsDate:S,weekStartsOn:O,locale:C,_originalDate:k},T=x.match(tF).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,NB[t])(e,C.formatLong):e})).join("").match(eF).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return aF(r);var i=PB[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!zB(r)||VB(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!FB(r)||VB(r,t,String(e)),i(j,r,C.localize,A);if(o.match(oF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return T}function aF(e){var t=e.match(nF);return t?t[1].replace(rF,"'"):e}function sF(e){RL(1,arguments);var t=NL(e),n=t.getDate();return n}function cF(e){RL(1,arguments);var t=NL(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 uF(e){RL(1,arguments);var t=NL(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function lF(e,t){RL(2,arguments);var n=NL(e),r=NL(t);return n.getTime()>r.getTime()}function fF(e,t){RL(2,arguments);var n=NL(e),r=NL(t);return n.getTime()<r.getTime()}function pF(e,t){RL(2,arguments);var n=NL(e),r=NL(t);return n.getFullYear()===r.getFullYear()}function dF(e,t){RL(2,arguments);var n=DL(t);return LL(e,-n)}function hF(e,t){RL(2,arguments);var n=NL(e),r=DL(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=cF(a);return n.setMonth(r,Math.min(i,s)),n}function gF(e){return gF="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},gF(e)}function yF(e,t){RL(2,arguments);var n=NL(e),r=DL(t);return n.setDate(r),n}function vF(e,t){RL(2,arguments);var n=DL(t);return BL(e,-n)}function mF(e){return mF="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},mF(e)}function bF(e,t){if(RL(2,arguments),!t||"object"!==mF(t))return new Date(NaN);var n=t.years?DL(t.years):0,r=t.months?DL(t.months):0,o=t.weeks?DL(t.weeks):0,i=t.days?DL(t.days):0,a=t.hours?DL(t.hours):0,s=t.minutes?DL(t.minutes):0,c=t.seconds?DL(t.seconds):0,u=vF(e,r+12*n),l=dF(u,i+7*o),f=s+60*a,p=c+60*f,d=1e3*p,h=new Date(l.getTime()-d);return h}const wF=J.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"}))),xF=J.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),_F=J.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),CF=J.div({display:"flex"}),SF=J.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),OF=J.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"}})),kF=J.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),EF=J.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),jF=J.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}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),AF=J.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`}}}))),TF=J.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),MF=n=>{var{id:r,label:o,labelPosition:i,checked:s,partial:c,disabled:u,onChange:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g}=n,y=a(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(s||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(c?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,c]),t.useEffect((()=>{w("boolean"==typeof s?s:b)}),[s,b]),e.jsxs(jF,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(TF,{children:o}),e.jsx(AF,Object.assign({ref:x,id:r,type:"checkbox",checked:c?!b:b,disabled:u,onChange:()=>{const e=!!c||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!c)}},y)),e.jsx(an,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
202
+ 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!==kw&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Ew);var jw={},Aw={},Tw={get exports(){return Aw},set exports(e){Aw=e}},Mw={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}},Pw=function(e,t,n,r){if(!Mw.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Mw[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=Mw[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=function(e){return e&&e.__esModule?e:{default:e}}(Pw);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(Tw,Aw),Object.defineProperty(jw,"__esModule",{value:!0}),jw.flip=Lw;var Dw=function(e){return e&&e.__esModule?e:{default:e}}(Aw);function Rw(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Dw.default)(e.left,e.right,t),r=Rw(n.left,t),o=Rw(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)&&(Iw(r.right,o.right)?n=(0,Dw.default)(r.left,o.left,t):Iw(r.right,o.left)&&(n=(0,Dw.default)(r.left,o.right,t)),r=Rw(n.left,t),o=Rw(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 Bw(o);r.type===o.type&&Nw(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(Nw(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Rw({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?Lw(o.operator):o.operator,Rw(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Rw({type:"MathExpression",operator:"-"===i?Lw(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Rw(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Nw(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Rw({type:"MathExpression",operator:i,left:r.left,right:o},t),Rw(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Rw({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Rw({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Rw(e,t)}return e}(e,t);case"/":return function(e,t){if(!Nw(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 Nw(e.left.left.type)&&Nw(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Rw(e.left,t)):e;if(Nw(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(Nw(e.left.left.type)&&Nw(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Nw(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(Nw(e.right.left.type)&&Nw(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&&Nw(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Rw(e.value,t):e}function Iw(e,t){return e.type===t.type&&e.value===t.value}function Nw(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 Lw(e){return"+"===e?"-":"+"}function Bw(e){return Nw(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Bw(e.left),e.right=Bw(e.right)),e}jw.default=Rw;var Fw={};!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=jw,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,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;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}({get exports(){return Fw},set exports(e){Fw=e}},Fw),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Ow),r=Ew,o=a(jw),i=a(Fw);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),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(uw,cw);var zw=c(cw);function Vw(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 Hw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vw(Object(n),!0).forEach((function(t){Uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kw(e){return function(e){if(Array.isArray(e))return Ww(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 Ww(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 Ww(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 Ww(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 $w={widthCache:{},cacheCount:0},qw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gw=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Zw="recharts_measurement_span";var Yw=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(Kw(e),["-",t.toLowerCase()]):[].concat(Kw(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],Gw.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},Xw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Pm.isSsr)return{width:0,height:0};var n="".concat(e),r=Yw(t),o="".concat(n,"-").concat(r);if($w.widthCache[o])return $w.widthCache[o];try{var i=document.getElementById(Zw);i||((i=document.createElement("span")).setAttribute("id",Zw),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Hw(Hw({},qw),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 $w.widthCache[o]=c,++$w.cacheCount>2e3&&($w.cacheCount=0,$w.widthCache={}),c}catch(e){return{width:0,height:0}}};function Jw(e){return Jw="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},Jw(e)}function Qw(){return Qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function ex(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 tx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rx(e,t){return rx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rx(e,t)}function ox(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=ax(e);if(t){var o=ax(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ix(this,n)}}function ix(e,t){return!t||"object"!==Jw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ax(e){return ax=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ax(e)}function sx(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)||function(e,t){if(!e)return;if("string"==typeof e)return cx(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 cx(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 cx(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 ux(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 lx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ux(Object(n),!0).forEach((function(t){fx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ux(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var px=/[ \f\n\r\t\v\u2028\u2029]+/,dx=function(e){try{var t=[];return Wd(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(px)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Xw(t,e.style).width}})),spaceWidth:e.breakAll?0:Xw(" ",e.style).width}}catch(e){return null}},hx=function(e){return[{words:Wd(e)?[]:e.toString().split(px)}]},gx=function(e,t){if((e.width||e.scaleToFit)&&!Pm.isSsr&&t){var n=dx(e);return n?function(e,t,n,r,o){var i=Cd(e.maxLines),a=e.children,s=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<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=dx(lx(lx({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=sx(l(h-1),2),y=g[0],v=g[1],m=sx(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):hx(e.children)}return hx(e.children)},yx=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}}),t&&rx(e,t)}(a,t.Component);var n,r,o,i=ox(a);function a(){var e;tx(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={},e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=ex(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),h=this.state.wordsByLines;if(!Sd(d.x)||!Sd(d.y))return null;var g,y=d.x+(Cd(n)?n:0),v=d.y+(Cd(r)?r:0);switch(i){case"start":g=zw("calc(".concat(l,")"));break;case"middle":g=zw("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=zw("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((Cd(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",Qw({},Ro(d,!0),{x:y,y:v,className:jo("recharts-text",f),textAnchor:o,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,n){return t.createElement("tspan",{x:y,dy:0===n?g:u,key:n},e.words.join(p?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:gx(e,n)}}return null}}],r&&nx(n.prototype,r),o&&nx(n,o),a}();function vx(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function mx(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}yx.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"};var bx={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},wx=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},xx=null,_x=null,Cx=function e(n){if(n===xx&&us(_x))return _x;var r=[];return t.Children.forEach(n,(function(t){Wd(t)||(Or.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),_x=r,xx=n,r},Sx=function(e,t){var n=[],r=[];return r=us(t)?t.map((function(e){return wx(e)})):[wx(t)],Cx(e).forEach((function(e){var t=nl(e,"type.displayName")||nl(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},Ox=function(e,t){var n=Sx(e,t);return n&&n[0]},kx=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Cd(n)||n<=0||!Cd(r)||r<=0)},Ex=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],jx=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return Ax(us(n)?n[0]:n,us(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(us(a)||us(s)){if(!e(a,s))return!1}else if(!Ax(a,s))return!1}return!0},Ax=function(e,t){if(Wd(e)&&Wd(t))return!0;if(!Wd(e)&&!Wd(t)){var n=e.props||{},r=n.children,o=mx(n,["children"]),i=t.props||{},a=i.children,s=mx(i,["children"]);return r&&a?vx(o,s)&&jx(r,a):!r&&!a&&vx(o,s)}return!1},Tx=function(e,t){var n=[],r={};return Cx(e).forEach((function(e,o){if(function(e){return e&&e.type&&wd(e.type)&&Ex.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=wx(e.type),a=t[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var u=s(e,i,o);n.push(u),r[i]=!0}}})),n},Mx=au;var Px=function(e,t){return Mx(e,t)},Dx=_u;var Rx=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&&!Dx(a):n(a,s)))var s=a,c=i}return c};var Ix=function(e,t){return e>t},Nx=Rx,Lx=Ix,Bx=_l;var Fx=function(e){return e&&e.length?Nx(e,Bx,Lx):void 0};var zx=function(e,t){return e<t},Vx=Rx,Hx=zx,Ux=_l;var Kx=function(e){return e&&e.length?Vx(e,Ux,Hx):void 0},Wx=Nu,$x=Nl,qx=Pv,Gx=us;var Zx=Cv,Yx=function(e,t){return(Gx(e)?Wx:qx)(e,$x(t))};var Xx,Jx=function(e,t){return Zx(Yx(e,t),1)},Qx={},e_={},t_=1e9,n_=!0,r_="[DecimalError] ",o_=r_+"Invalid argument: ",i_=r_+"Exponent out of range: ",a_=Math.floor,s_=Math.pow,c_=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,u_=1e7,l_=9007199254740991,f_=a_(1286742750677284.5),p_={};function d_(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),n_?C_(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/u_|0,c[i]%=u_;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,n_?C_(t,f):t}function h_(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o_+e)}function g_(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=w_(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=w_(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}p_.absoluteValue=p_.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},p_.comparedTo=p_.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},p_.decimalPlaces=p_.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},p_.dividedBy=p_.div=function(e){return y_(this,new this.constructor(e))},p_.dividedToIntegerBy=p_.idiv=function(e){var t=this.constructor;return C_(y_(this,new t(e),0,1),t.precision)},p_.equals=p_.eq=function(e){return!this.cmp(e)},p_.exponent=function(){return m_(this)},p_.greaterThan=p_.gt=function(e){return this.cmp(e)>0},p_.greaterThanOrEqualTo=p_.gte=function(e){return this.cmp(e)>=0},p_.isInteger=p_.isint=function(){return this.e>this.d.length-2},p_.isNegative=p_.isneg=function(){return this.s<0},p_.isPositive=p_.ispos=function(){return this.s>0},p_.isZero=function(){return 0===this.s},p_.lessThan=p_.lt=function(e){return this.cmp(e)<0},p_.lessThanOrEqualTo=p_.lte=function(e){return this.cmp(e)<1},p_.logarithm=p_.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(Xx))throw Error(r_+"NaN");if(n.s<1)throw Error(r_+(n.s?"NaN":"-Infinity"));return n.eq(Xx)?new r(0):(n_=!1,t=y_(x_(n,i),x_(e,i),i),n_=!0,C_(t,o))},p_.minus=p_.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S_(t,e):d_(t,(e.s=-e.s,e))},p_.modulo=p_.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(r_+"NaN");return n.s?(n_=!1,t=y_(n,e,0,1).times(e),n_=!0,n.minus(t)):C_(new r(n),o)},p_.naturalExponential=p_.exp=function(){return v_(this)},p_.naturalLogarithm=p_.ln=function(){return x_(this)},p_.negated=p_.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},p_.plus=p_.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?d_(t,e):S_(t,(e.s=-e.s,e))},p_.precision=p_.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(o_+e);if(t=m_(o)+1,n=7*(r=o.d.length-1)+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},p_.squareRoot=p_.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(r_+"NaN")}for(e=m_(s),n_=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=g_(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=a_((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(y_(s,i,a+2)).times(.5),g_(i.d).slice(0,a)===(t=g_(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(C_(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return n_=!0,C_(r,n)},p_.times=p_.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+d[r]*p[o-r-1]+t,i[o--]=s%u_|0,t=s/u_|0;i[o]=(i[o]+t)%u_|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,n_?C_(e,f.precision):e},p_.toDecimalPlaces=p_.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(h_(e,0,t_),void 0===t?t=r.rounding:h_(t,0,8),C_(n,e+m_(n)+1,t))},p_.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=O_(r,!0):(h_(e,0,t_),void 0===t?t=o.rounding:h_(t,0,8),n=O_(r=C_(new o(r),e+1,t),!0,e+1)),n},p_.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?O_(o):(h_(e,0,t_),void 0===t?t=i.rounding:h_(t,0,8),n=O_((r=C_(new i(o),e+m_(o)+1,t)).abs(),!1,e+m_(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},p_.toInteger=p_.toint=function(){var e=this,t=e.constructor;return C_(new t(e),m_(e)+1,t.rounding)},p_.toNumber=function(){return+this},p_.toPower=p_.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(Xx);if(!(s=new c(s)).s){if(e.s<1)throw Error(r_+"Infinity");return s}if(s.eq(Xx))return s;if(r=c.precision,e.eq(Xx))return C_(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=l_){for(o=new c(Xx),t=Math.ceil(r/7+4),n_=!1;n%2&&k_((o=o.times(s)).d,t),0!==(n=a_(n/2));)k_((s=s.times(s)).d,t);return n_=!0,e.s<0?new c(Xx).div(o):C_(o,r)}}else if(i<0)throw Error(r_+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,n_=!1,o=e.times(x_(s,r+12)),n_=!0,(o=v_(o)).s=i,o},p_.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=O_(o,(n=m_(o))<=i.toExpNeg||n>=i.toExpPos):(h_(e,1,t_),void 0===t?t=i.rounding:h_(t,0,8),r=O_(o=C_(new i(o),e,t),e<=(n=m_(o))||n<=i.toExpNeg,e)),r},p_.toSignificantDigits=p_.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(h_(e,1,t_),void 0===t?t=n.rounding:h_(t,0,8)),C_(new n(this),e,t)},p_.toString=p_.valueOf=p_.val=p_.toJSON=p_[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=m_(e),n=e.constructor;return O_(e,t<=n.toExpNeg||t>=n.toExpPos)};var y_=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%u_|0,r=n/u_|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*u_+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,S,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(r_+"Division by zero");for(c=r.e-o.e,C=j.length,x=E.length,h=(d=new O(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=O.precision:a?i+(m_(r)-m_(o))+1:i)<0)return new O(0);if(m=m/7+2|0,u=0,1==C)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*u_+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=u_/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(S=j.slice()).unshift(0),_=j[0],j[1]>=u_/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*u_+(g[1]||0)),(l=v/_|0)>1?(l>=u_&&(l=u_-1),1==(s=t(f=e(j,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?S:j,p))):(0==l&&(s=l=1),f=j.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?S:j,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,C_(d,a?i+m_(d)+1:i)}}();function v_(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(m_(e)>16)throw Error(i_+m_(e));if(!e.s)return new u(Xx);for(null==t?(n_=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(s_(2,c))/Math.LN10*2+5|0,n=r=o=new u(Xx),u.precision=a;;){if(r=C_(r.times(e),a),n=n.times(++s),g_((i=o.plus(y_(r,n,a))).d).slice(0,a)===g_(o.d).slice(0,a)){for(;c--;)o=C_(o.times(o),a);return u.precision=l,null==t?(n_=!0,C_(o,l)):o}o=i}}function m_(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function b_(e,t,n){if(t>e.LN10.sd())throw n_=!0,n&&(e.precision=n),Error(r_+"LN10 precision limit exceeded");return C_(new e(e.LN10),t)}function w_(e){for(var t="";e--;)t+="0";return t}function x_(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(r_+(p.s?"NaN":"-Infinity"));if(p.eq(Xx))return new h(0);if(null==t?(n_=!1,u=g):u=t,p.eq(10))return null==t&&(n_=!0),b_(h,u);if(u+=10,h.precision=u,r=(n=g_(d)).charAt(0),i=m_(p),!(Math.abs(i)<15e14))return c=b_(h,u+2,g).times(i+""),p=x_(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(n_=!0,C_(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=g_((p=p.times(e)).d)).charAt(0),f++;for(i=m_(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=y_(p.minus(Xx),p.plus(Xx),u),l=C_(p.times(p),u),o=3;;){if(a=C_(a.times(l),u),g_((c=s.plus(y_(a,new h(o),u))).d).slice(0,u)===g_(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(b_(h,u+2,g).times(i+""))),s=y_(s,new h(f),u),h.precision=g,null==t?(n_=!0,C_(s,g)):s;s=c,o+=2}}function __(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=a_(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),n_&&(e.e>f_||e.e<-f_))throw Error(i_+n)}else e.s=0,e.e=0,e.d=[0];return e}function C_(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=u/(i=s_(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%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?u/s_(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=m_(e),f.length=1,t=t-i-1,f[0]=s_(10,(7-t%7)%7),e.e=a_(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=s_(10,7-r),f[l]=o>0?(u/s_(10,a-o)%s_(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==u_&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=u_)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(n_&&(e.e>f_||e.e<-f_))throw Error(i_+m_(e));return e}function S_(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),n_?C_(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(d/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(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]=u_-1;--c[i],c[o]+=u_}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,n_?C_(t,d):t):new p(0)}function O_(e,t,n){var r,o=m_(e),i=g_(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+w_(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+w_(-o-1)+i,n&&(r=n-a)>0&&(i+=w_(r))):o>=a?(i+=w_(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+w_(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=w_(r))),e.s<0?"-"+i:i}function k_(e,t){if(e.length>t)return e.length=t,!0}function E_(e){if(!e||"object"!=typeof e)throw Error(r_+"Object expected");var t,n,r,o=["precision",1,t_,"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(!(a_(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(o_+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(o_+n+": "+r);this[n]=new this(r)}return this}var j_=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(o_+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])):__(t,e.toString())}if("string"!=typeof e)throw Error(o_+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!c_.test(e))throw Error(o_+e);__(t,e)}if(i.prototype=p_,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=E_,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"});Xx=new j_(1);var A_=j_,T_=u(Object.freeze({__proto__:null,get Decimal(){return j_},default:A_})),M_={};function P_(e){return function(e){if(Array.isArray(e))return D_(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 D_(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 D_(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 D_(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}Object.defineProperty(M_,"__esModule",{value:!0}),M_.memoize=M_.reverse=M_.compose=M_.map=M_.range=M_.curry=M_.PLACE_HOLDER=void 0;var R_=function(e){return e},I_={"@@functional/placeholder":!0};M_.PLACE_HOLDER=I_;var N_=function(e){return e===I_},L_=function(e){return function t(){return 0===arguments.length||1===arguments.length&&N_(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},B_=function e(t,n){return 1===t?n:L_((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!==I_})).length;return a>=t?n.apply(void 0,o):e(t-a,L_((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 N_(e)?t.shift():e}));return n.apply(void 0,P_(i).concat(t))})))}))},F_=function(e){return B_(e.length,e)};M_.curry=F_;M_.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var z_=F_((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));M_.map=z_;M_.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return R_;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))}};M_.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};M_.memoize=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 V_={};Object.defineProperty(V_,"__esModule",{value:!0}),V_.default=void 0;var H_=function(e){return e&&e.__esModule?e:{default:e}}(T_),U_=M_;var K_=(0,U_.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),W_=(0,U_.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),$_=(0,U_.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),q_={rangeStep:function(e,t,n){for(var r=new H_.default(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 H_.default(e).abs().log(10).toNumber())+1},interpolateNumber:K_,uninterpolateNumber:W_,uninterpolateTruncation:$_};V_.default=q_,Object.defineProperty(e_,"__esModule",{value:!0}),e_.getTickValuesFixedDomain=e_.getTickValues=e_.getNiceTickValues=void 0;var G_=X_(T_),Z_=M_,Y_=X_(V_);function X_(e){return e&&e.__esModule?e:{default:e}}function J_(e){return function(e){if(Array.isArray(e))return tC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||eC(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 Q_(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)||eC(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 eC(e,t){if(e){if("string"==typeof e)return tC(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)?tC(e,t):void 0}}function tC(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 nC(e){var t=Q_(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function rC(e,t,n){if(e.lte(0))return new G_.default(0);var r=Y_.default.getDigitCount(e.toNumber()),o=new G_.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new G_.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new G_.default(Math.ceil(s))}function oC(e,t,n){var r=1,o=new G_.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new G_.default(10).pow(Y_.default.getDigitCount(e)-1),o=new G_.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new G_.default(Math.floor(e)))}else 0===e?o=new G_.default(Math.floor((t-1)/2)):n||(o=new G_.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,Z_.compose)((0,Z_.map)((function(e){return o.add(new G_.default(e-a).mul(r)).toNumber()})),Z_.range);return s(0,t)}function iC(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 G_.default(0),tickMin:new G_.default(0),tickMax:new G_.default(0)};var i,a=rC(new G_.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new G_.default(0):(i=new G_.default(e).add(t).div(2)).sub(new G_.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new G_.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?iC(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new G_.default(s).mul(a)),tickMax:i.add(new G_.default(c).mul(a))})}var aC=(0,Z_.memoize)((function(e){var t=Q_(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=nC([n,r]),c=Q_(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(J_((0,Z_.range)(0,o-1).map((function(){return 1/0})))):[].concat(J_((0,Z_.range)(0,o-1).map((function(){return-1/0}))),[l]);return n>r?(0,Z_.reverse)(f):f}if(u===l)return oC(u,o,i);var p=iC(u,l,a,i),d=p.step,h=p.tickMin,g=p.tickMax,y=Y_.default.rangeStep(h,g.add(new G_.default(.1).mul(d)),d);return n>r?(0,Z_.reverse)(y):y}));e_.getNiceTickValues=aC;var sC=(0,Z_.memoize)((function(e){var t=Q_(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=nC([n,r]),c=Q_(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[n,r];if(u===l)return oC(u,o,i);var f=rC(new G_.default(l).sub(u).div(a-1),i,0),p=(0,Z_.compose)((0,Z_.map)((function(e){return new G_.default(u).add(new G_.default(e).mul(f)).toNumber()})),Z_.range),d=p(0,a).filter((function(e){return e>=u&&e<=l}));return n>r?(0,Z_.reverse)(d):d}));e_.getTickValues=sC;var cC=(0,Z_.memoize)((function(e,t){var n=Q_(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=nC([r,o]),s=Q_(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,o];if(c===u)return[c];var l=Math.max(t,2),f=rC(new G_.default(u).sub(c).div(l-1),i,0),p=[].concat(J_(Y_.default.rangeStep(new G_.default(c),new G_.default(u).sub(new G_.default(.99).mul(f)),f)),[u]);return r>o?(0,Z_.reverse)(p):p}));e_.getTickValuesFixedDomain=cC,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=e_}(Qx);var uC={};function lC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function fC(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}!function(e){function t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function n(e){let t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}function i(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}function a(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a}return 1===e.length&&(t=(t,n)=>e(t)-n,n=r(e)),{left:o,center:a,right:i}}function r(e){return(n,r)=>t(e(n),r)}function o(e){return null===e?NaN:+e}function*i(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)}}const a=n(t),s=a.right,c=a.left,u=n(o).center;function l(e,t){let n=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++n;else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(o=+o)>=o&&++n}return n}function f(e){return 0|e.length}function p(e){return!(e>0)}function d(e){return"object"!=typeof e||"length"in e?e:Array.from(e)}function h(e){return t=>e(...t)}function g(...e){const t="function"==typeof e[e.length-1]&&h(e.pop()),n=(e=e.map(d)).map(f),r=e.length-1,o=new Array(r+1).fill(0),i=[];if(r<0||n.some(p))return i;for(;;){i.push(o.map(((t,n)=>e[n][t])));let a=r;for(;++o[a]===n[a];){if(0===a)return t?i.map(t):i;o[a--]=0}}}function y(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:o=>n+=+t(o,r++,e)||0)}function v(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function m(e,t){let n,r=0,o=0,i=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-o,o+=n/++r,i+=n*(t-o));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-o,o+=n/++r,i+=n*(s-o))}if(r>1)return i/(r-1)}function b(e,t){const n=m(e,t);return n?Math.sqrt(n):n}function w(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}class x{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const o=t[r],i=e+o,a=Math.abs(e)<Math.abs(o)?e-(i-o):o-(i-e);a&&(t[n++]=a),e=i}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,o=this._n,i=0;if(o>0){for(i=e[--o];o>0&&(t=i,n=e[--o],i=t+n,r=n-(i-t),!r););o>0&&(r<0&&e[o-1]<0||r>0&&e[o-1]>0)&&(n=2*r,t=i+n,n==t-i&&(i=t))}return i}}function _(e,t){const n=new x;if(void 0===t)for(let t of e)(t=+t)&&n.add(t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&n.add(o)}return+n}function C(e,t){const n=new x;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):o=>n.add(+t(o,++r,e)||0))}class S extends Map{constructor(e,t=A){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(k(this,e))}has(e){return super.has(k(this,e))}set(e,t){return super.set(E(this,e),t)}delete(e){return super.delete(j(this,e))}}class O extends Set{constructor(e,t=A){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(k(this,e))}add(e){return super.add(E(this,e))}delete(e){return super.delete(j(this,e))}}function k({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function E({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function j({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function A(e){return null!==e&&"object"==typeof e?e.valueOf():e}function T(e){return e}function M(e,...t){return B(e,T,T,t)}function P(e,...t){return B(e,Array.from,T,t)}function D(e,t,...n){return B(e,T,t,n)}function R(e,t,...n){return B(e,Array.from,t,n)}function I(e,...t){return B(e,T,L,t)}function N(e,...t){return B(e,Array.from,L,t)}function L(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function B(e,t,n,r){return function e(o,i){if(i>=r.length)return n(o);const a=new S,s=r[i++];let c=-1;for(const e of o){const t=s(e,++c,o),n=a.get(t);n?n.push(e):a.set(t,[e])}for(const[t,n]of a)a.set(t,e(n,i));return t(a)}(e,0)}function F(e,t){return Array.from(t,(t=>e[t]))}function z(e,...n){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[r=t]=n;if(1===r.length||n.length>1){const o=Uint32Array.from(e,((e,t)=>t));return n.length>1?(n=n.map((t=>e.map(t))),o.sort(((e,r)=>{for(const o of n){const n=t(o[e],o[r]);if(n)return n}}))):(r=e.map(r),o.sort(((e,n)=>t(r[e],r[n])))),F(e,o)}return e.sort(r)}function V(e,n,r){return(1===n.length?z(D(e,n,r),(([e,n],[r,o])=>t(n,o)||t(e,r))):z(M(e,r),(([e,r],[o,i])=>n(r,i)||t(e,o)))).map((([e])=>e))}var H=Array.prototype,U=H.slice;function K(e){return function(){return e}}var W=Math.sqrt(50),$=Math.sqrt(10),q=Math.sqrt(2);function G(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Z(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)/a}return r&&i.reverse(),i}function Z(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=W?10:i>=$?5:i>=q?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=W?10:i>=$?5:i>=q?2:1)}function Y(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=W?o*=10:i>=$?o*=5:i>=q&&(o*=2),t<e?-o:o}function X(e,t,n){let r;for(;;){const o=Z(e,t,n);if(o===r||0===o||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function J(e){return Math.ceil(Math.log(l(e))/Math.LN2)+1}function Q(){var e=T,t=w,n=J;function r(r){Array.isArray(r)||(r=Array.from(r));var o,i,a=r.length,c=new Array(a);for(o=0;o<a;++o)c[o]=e(r[o],o,r);var u=t(c),l=u[0],f=u[1],p=n(c,l,f);if(!Array.isArray(p)){const e=f,n=+p;if(t===w&&([l,f]=X(l,f,n)),(p=G(l,f,n))[p.length-1]>=f)if(e>=f&&t===w){const e=Z(l,f,n);isFinite(e)&&(e>0?f=(Math.floor(f/e)+1)*e:e<0&&(f=(Math.ceil(f*-e)+1)/-e))}else p.pop()}for(var d=p.length;p[0]<=l;)p.shift(),--d;for(;p[d-1]>f;)p.pop(),--d;var h,g=new Array(d+1);for(o=0;o<=d;++o)(h=g[o]=[]).x0=o>0?p[o-1]:l,h.x1=o<d?p[o]:f;for(o=0;o<a;++o)l<=(i=c[o])&&i<=f&&g[s(p,i,0,d)].push(r[o]);return g}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:K(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:K([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?K(U.call(e)):K(e),r):n},r}function ee(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 te(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 ne(e,n,r=0,o=e.length-1,i=t){for(;o>r;){if(o-r>600){const t=o-r+1,a=n-r+1,s=Math.log(t),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(t-c)/t)*(a-t/2<0?-1:1);ne(e,n,Math.max(r,Math.floor(n-a*c/t+u)),Math.min(o,Math.floor(n+(t-a)*c/t+u)),i)}const t=e[n];let a=r,s=o;for(re(e,r,n),i(e[o],t)>0&&re(e,r,o);a<s;){for(re(e,a,s),++a,--s;i(e[a],t)<0;)++a;for(;i(e[s],t)>0;)--s}0===i(e[r],t)?re(e,r,s):(++s,re(e,s,o)),s<=n&&(r=s+1),n<=s&&(o=s-1)}return e}function re(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oe(e,t,n){if(r=(e=Float64Array.from(i(e,n))).length){if((t=+t)<=0||r<2)return te(e);if(t>=1)return ee(e);var r,o=(r-1)*t,a=Math.floor(o),s=ee(ne(e,a).subarray(0,a+1));return s+(te(e.subarray(a+1))-s)*(o-a)}}function ie(e,t,n=o){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),s=+n(e[a],a,e);return s+(+n(e[a+1],a+1,e)-s)*(i-a)}}function ae(e,t,n){return Math.ceil((n-t)/(2*(oe(e,.75)-oe(e,.25))*Math.pow(l(e),-1/3)))}function se(e,t,n){return Math.ceil((n-t)/(3.5*b(e)*Math.pow(l(e),-1/3)))}function ce(e,t){let n,r=-1,o=-1;if(void 0===t)for(const t of e)++o,null!=t&&(n<t||void 0===n&&t>=t)&&(n=t,r=o);else for(let i of e)null!=(i=t(i,++o,e))&&(n<i||void 0===n&&i>=i)&&(n=i,r=o);return r}function ue(e,t){let n=0,r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(++n,r+=t);else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function le(e,t){return oe(e,.5,t)}function*fe(e){for(const t of e)yield*t}function pe(e){return Array.from(fe(e))}function de(e,t){let n,r=-1,o=-1;if(void 0===t)for(const t of e)++o,null!=t&&(n>t||void 0===n&&t>=t)&&(n=t,r=o);else for(let i of e)null!=(i=t(i,++o,e))&&(n>i||void 0===n&&i>=i)&&(n=i,r=o);return r}function he(e,t=ge){const n=[];let r,o=!1;for(const i of e)o&&n.push(t(r,i)),r=i,o=!0;return n}function ge(e,t){return[e,t]}function ye(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}function ve(e,n=t){let r,o=!1;if(1===n.length){let i;for(const a of e){const e=n(a);(o?t(e,i)<0:0===t(e,e))&&(r=a,i=e,o=!0)}}else for(const t of e)(o?n(t,r)<0:0===n(t,t))&&(r=t,o=!0);return r}function me(e,n=t){if(1===n.length)return de(e,n);let r,o=-1,i=-1;for(const t of e)++i,(o<0?0===n(t,t):n(t,r)<0)&&(r=t,o=i);return o}function be(e,n=t){let r,o=!1;if(1===n.length){let i;for(const a of e){const e=n(a);(o?t(e,i)>0:0===t(e,e))&&(r=a,i=e,o=!0)}}else for(const t of e)(o?n(t,r)>0:0===n(t,t))&&(r=t,o=!0);return r}function we(e,n=t){if(1===n.length)return ce(e,n);let r,o=-1,i=-1;for(const t of e)++i,(o<0?0===n(t,t):n(t,r)>0)&&(r=t,o=i);return o}function xe(e,t){const n=me(e,t);return n<0?void 0:n}var _e=Ce(Math.random);function Ce(e){return function(t,n=0,r=t.length){let o=r-(n=+n);for(;o;){const r=e()*o--|0,i=t[o+n];t[o+n]=t[r+n],t[r+n]=i}return t}}function Se(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function Oe(e){if(!(o=e.length))return[];for(var t=-1,n=te(e,ke),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r}function ke(e){return e.length}function Ee(){return Oe(arguments)}function je(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function Ae(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function Te(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const o of e)t(o,++r,e)&&n.push(o);return n}function Me(e,t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof t)throw new TypeError("mapper is not a function");return Array.from(e,((n,r)=>t(n,r,e)))}function Pe(e,t,n){if("function"!=typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let o,i,a=-1;if(arguments.length<3){if(({done:o,value:n}=r.next()),o)return;++a}for(;({done:o,value:i}=r.next()),!o;)n=t(n,i,++a,e);return n}function De(e){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Re(e,...t){e=new Set(e);for(const n of t)for(const t of n)e.delete(t);return e}function Ie(e,t){const n=t[Symbol.iterator](),r=new Set;for(const t of e){if(r.has(t))return!1;let e,o;for(;({value:e,done:o}=n.next())&&!o;){if(Object.is(t,e))return!1;r.add(e)}}return!0}function Ne(e){return e instanceof Set?e:new Set(e)}function Le(e,...t){e=new Set(e),t=t.map(Ne);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function Be(e,t){const n=e[Symbol.iterator](),r=new Set;for(const e of t){if(r.has(e))continue;let t,o;for(;({value:t,done:o}=n.next());){if(o)return!1;if(r.add(t),Object.is(e,t))break}}return!0}function Fe(e,t){return Be(t,e)}function ze(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t}e.Adder=x,e.InternMap=S,e.InternSet=O,e.ascending=t,e.bin=Q,e.bisect=s,e.bisectCenter=u,e.bisectLeft=c,e.bisectRight=s,e.bisector=n,e.count=l,e.cross=g,e.cumsum=y,e.descending=v,e.deviation=b,e.difference=Re,e.disjoint=Ie,e.every=je,e.extent=w,e.fcumsum=C,e.filter=Te,e.fsum=_,e.greatest=be,e.greatestIndex=we,e.group=M,e.groupSort=V,e.groups=P,e.histogram=Q,e.index=I,e.indexes=N,e.intersection=Le,e.least=ve,e.leastIndex=me,e.map=Me,e.max=ee,e.maxIndex=ce,e.mean=ue,e.median=le,e.merge=pe,e.min=te,e.minIndex=de,e.nice=X,e.pairs=he,e.permute=F,e.quantile=oe,e.quantileSorted=ie,e.quickselect=ne,e.range=ye,e.reduce=Pe,e.reverse=De,e.rollup=D,e.rollups=R,e.scan=xe,e.shuffle=_e,e.shuffler=Ce,e.some=Ae,e.sort=z,e.subset=Fe,e.sum=Se,e.superset=Be,e.thresholdFreedmanDiaconis=ae,e.thresholdScott=se,e.thresholdSturges=J,e.tickIncrement=Z,e.tickStep=Y,e.ticks=G,e.transpose=Oe,e.union=ze,e.variance=m,e.zip=Ee,Object.defineProperty(e,"__esModule",{value:!0})}(uC);const pC=Symbol("implicit");function dC(){var e=new Map,t=[],n=[],r=pC;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==pC)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}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 dC(t,n).unknown(r)},lC.apply(o,arguments),o}function hC(){var e,t,n=dC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=uC.range(n).map((function(t){return p+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,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return hC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},lC.apply(f(),arguments)}function gC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return gC(t())},e}function yC(){return gC(hC.apply(null,arguments).paddingInner(1))}function vC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bC(){}var wC=.7,xC=1/wC,_C="\\s*([+-]?\\d+)\\s*",CC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",SC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OC=/^#([0-9a-f]{3,8})$/,kC=new RegExp("^rgb\\("+[_C,_C,_C]+"\\)$"),EC=new RegExp("^rgb\\("+[SC,SC,SC]+"\\)$"),jC=new RegExp("^rgba\\("+[_C,_C,_C,CC]+"\\)$"),AC=new RegExp("^rgba\\("+[SC,SC,SC,CC]+"\\)$"),TC=new RegExp("^hsl\\("+[CC,SC,SC]+"\\)$"),MC=new RegExp("^hsla\\("+[CC,SC,SC,CC]+"\\)$"),PC={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 DC(){return this.rgb().formatHex()}function RC(){return this.rgb().formatRgb()}function IC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?NC(t):3===n?new zC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?LC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?LC(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=kC.exec(e))?new zC(t[1],t[2],t[3],1):(t=EC.exec(e))?new zC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jC.exec(e))?LC(t[1],t[2],t[3],t[4]):(t=AC.exec(e))?LC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=TC.exec(e))?KC(t[1],t[2]/100,t[3]/100,1):(t=MC.exec(e))?KC(t[1],t[2]/100,t[3]/100,t[4]):PC.hasOwnProperty(e)?NC(PC[e]):"transparent"===e?new zC(NaN,NaN,NaN,0):null}function NC(e){return new zC(e>>16&255,e>>8&255,255&e,1)}function LC(e,t,n,r){return r<=0&&(e=t=n=NaN),new zC(e,t,n,r)}function BC(e){return e instanceof bC||(e=IC(e)),e?new zC((e=e.rgb()).r,e.g,e.b,e.opacity):new zC}function FC(e,t,n,r){return 1===arguments.length?BC(e):new zC(e,t,n,null==r?1:r)}function zC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function VC(){return"#"+UC(this.r)+UC(this.g)+UC(this.b)}function HC(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function UC(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function KC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $C(e,t,n,r)}function WC(e){if(e instanceof $C)return new $C(e.h,e.s,e.l,e.opacity);if(e instanceof bC||(e=IC(e)),!e)return new $C;if(e instanceof $C)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 $C(a,s,c,e.opacity)}function $C(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vC(bC,IC,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:DC,formatHex:DC,formatHsl:function(){return WC(this).formatHsl()},formatRgb:RC,toString:RC}),vC(zC,FC,mC(bC,{brighter:function(e){return e=null==e?xC:Math.pow(xC,e),new zC(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?wC:Math.pow(wC,e),new zC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:VC,formatHex:VC,formatRgb:HC,toString:HC})),vC($C,(function(e,t,n,r){return 1===arguments.length?WC(e):new $C(e,t,n,null==r?1:r)}),mC(bC,{brighter:function(e){return e=null==e?xC:Math.pow(xC,e),new $C(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wC:Math.pow(wC,e),new $C(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new zC(qC(e>=240?e-240:e+120,o,r),qC(e,o,r),qC(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const GC=Math.PI/180,ZC=180/Math.PI,YC=.96422,XC=.82521,JC=4/29,QC=6/29,eS=3*QC*QC;function tS(e){if(e instanceof nS)return new nS(e.l,e.a,e.b,e.opacity);if(e instanceof cS)return uS(e);e instanceof zC||(e=BC(e));var t,n,r=aS(e.r),o=aS(e.g),i=aS(e.b),a=rS((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=rS((.4360747*r+.3850649*o+.1430804*i)/YC),n=rS((.0139322*r+.0971045*o+.7141733*i)/XC)),new nS(116*a-16,500*(t-a),200*(a-n),e.opacity)}function nS(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function rS(e){return e>.008856451679035631?Math.pow(e,1/3):e/eS+JC}function oS(e){return e>QC?e*e*e:eS*(e-JC)}function iS(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function aS(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function sS(e){if(e instanceof cS)return new cS(e.h,e.c,e.l,e.opacity);if(e instanceof nS||(e=tS(e)),0===e.a&&0===e.b)return new cS(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ZC;return new cS(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function cS(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function uS(e){if(isNaN(e.h))return new nS(e.l,0,0,e.opacity);var t=e.h*GC;return new nS(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vC(nS,(function(e,t,n,r){return 1===arguments.length?tS(e):new nS(e,t,n,null==r?1:r)}),mC(bC,{brighter:function(e){return new nS(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new nS(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new zC(iS(3.1338561*(t=YC*oS(t))-1.6168667*(e=1*oS(e))-.4906146*(n=XC*oS(n))),iS(-.9787684*t+1.9161415*e+.033454*n),iS(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vC(cS,(function(e,t,n,r){return 1===arguments.length?sS(e):new cS(e,t,n,null==r?1:r)}),mC(bC,{brighter:function(e){return new cS(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new cS(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return uS(this).rgb()}}));var lS=-.14861,fS=1.78277,pS=-.29227,dS=-.90649,hS=1.97294,gS=hS*dS,yS=hS*fS,vS=fS*pS-dS*lS;function mS(e){if(e instanceof wS)return new wS(e.h,e.s,e.l,e.opacity);e instanceof zC||(e=BC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(vS*r+gS*t-yS*n)/(vS+gS-yS),i=r-o,a=(hS*(n-o)-pS*i)/dS,s=Math.sqrt(a*a+i*i)/(hS*o*(1-o)),c=s?Math.atan2(a,i)*ZC-120:NaN;return new wS(c<0?c+360:c,s,o,e.opacity)}function bS(e,t,n,r){return 1===arguments.length?mS(e):new wS(e,t,n,null==r?1:r)}function wS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vC(wS,bS,mC(bC,{brighter:function(e){return e=null==e?xC:Math.pow(xC,e),new wS(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wC:Math.pow(wC,e),new wS(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*GC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new zC(255*(t+n*(lS*r+fS*o)),255*(t+n*(pS*r+dS*o)),255*(t+n*(hS*r)),this.opacity)}}));var xS=e=>()=>e;function _S(e,t){return function(n){return e+n*t}}function CS(e){return 1==(e=+e)?SS: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):xS(isNaN(t)?n:t)}}function SS(e,t){var n=t-e;return n?_S(e,n):xS(isNaN(e)?t:e)}var OS=function e(t){var n=CS(t);function r(e,t){var r=n((e=FC(e)).r,(t=FC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=SS(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 kS(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 ES(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]=RS(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 jS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function AS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function TS(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]=RS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var MS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,PS=new RegExp(MS.source,"g");function DS(e,t){var n,r,o,i=MS.lastIndex=PS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=MS.exec(e))&&(r=PS.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:AS(n,r)})),i=PS.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 RS(e,t){var n,r=typeof t;return null==t||"boolean"===r?xS(t):("number"===r?AS:"string"===r?(n=IC(t))?(t=n,OS):DS:t instanceof IC?OS:t instanceof Date?jS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?kS:Array.isArray(t)?ES:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?TS:AS)(e,t)}function IS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function NS(e){return((e=Math.exp(e))+1/e)/2}function LS(e){return function t(n){function r(t,r){var o=e((t=bS(t)).h,(r=bS(r)).h),i=SS(t.s,r.s),a=SS(t.l,r.l),s=SS(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function BS(e,t){void 0===t&&(t=e,e=RS);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 FS(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<1e-12)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=NS(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/NS(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),LS((function(e,t){var n=t-e;return n?_S(e,n>180||n<-180?n-360*Math.round(n/360):n):xS(isNaN(e)?t:e)})),LS(SS);var zS=[0,1];function VS(e){return e}function HS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function US(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=HS(o,r),i=n(a,i)):(r=HS(r,o),i=n(i,a)),function(e){return i(r(e))}}function KS(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]=HS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=uC.bisect(e,t,1,r)-1;return i[n](o[n](t))}}function WS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $S(){var e,t,n,r,o,i,a=zS,s=zS,c=RS,u=VS;function l(){var e=Math.min(a.length,s.length);return u!==VS&&(u=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?KS:US,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),AS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,FS),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=IS,l()},f.clamp=function(e){return arguments.length?(u=!!e||VS,l()):u!==VS},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function qS(){return $S()(VS,VS)}var GS={};function ZS(e,t,n,r){var o,i=uC.tickStep(e,t,n);switch((r=GS.formatSpecifier(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=GS.precisionPrefix(i,a))||(r.precision=o),GS.formatPrefix(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=GS.precisionRound(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=GS.precisionFixed(i))||(r.precision=o-2*("%"===r.type))}return GS.format(r)}function YS(e){var t=e.domain;return e.ticks=function(e){var n=t();return uC.ticks(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ZS(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],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=uC.tickIncrement(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function XS(){var e=qS();return e.copy=function(){return WS(e,XS())},lC.apply(e,arguments),YS(e)}function JS(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 QS(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 function(t){return-e(-t)}}function iO(e){var t,n,r=e(QS,eO),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?rO:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=oO(t),n=oO(n),e(tO,nO)):e(QS,eO),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),s=a[0],c=a[a.length-1];(r=c<s)&&(p=s,s=c,c=p);var u,l,f,p=t(s),d=t(c),h=null==e?10:+e,g=[];if(!(i%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),s>0){for(;p<=d;++p)for(l=1,u=n(p);l<i;++l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}}else for(;p<=d;++p)for(l=i-1,u=n(p);l>=1;--l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}2*g.length<h&&(g=uC.ticks(s,c,h))}else g=uC.ticks(p,d,Math.min(d-p,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=GS.format(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(JS(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}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},YS(n)}function uO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fO(e){return e<0?-e*e:e*e}function pO(e){var t=e(VS,VS),n=1;function r(){return 1===n?e(VS,VS):.5===n?e(lO,fO):e(uO(n),uO(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},YS(t)}function dO(){var e=pO($S());return e.copy=function(){return WS(e,dO()).exponent(e.exponent())},lC.apply(e,arguments),e}function hO(e){return Math.sign(e)*e*e}function gO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}!function(e){function t(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function n(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 r(e){return(e=n(Math.abs(e)))?e[1]:NaN}function o(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(o-=s,o+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}var a,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c(e){if(!(t=s.exec(e)))throw new Error("invalid format: "+e);var t;return new u({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 u(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 l(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}function f(e,t){var r=n(e,t);if(!r)return e+"";var o=r[0],i=r[1],s=i-(a=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=o.length;return s===c?o:s>c?o+new Array(s-c+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+n(e,Math.max(0,t+s-1))[0]}function p(e,t){var r=n(e,t);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}c.prototype=u.prototype,u.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 d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:t,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)=>p(100*e,t),r:p,s:f,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function h(e){return e}var g,y=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function m(e){var t=void 0===e.grouping||void 0===e.thousands?h:o(y.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",f=void 0===e.numerals?h:i(y.call(e.numerals,String)),p=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",m=void 0===e.nan?"NaN":e.nan+"";function b(e){var r=(e=c(e)).fill,o=e.align,i=e.sign,h=e.symbol,y=e.zero,b=e.width,w=e.comma,x=e.precision,_=e.trim,C=e.type;"n"===C?(w=!0,C="g"):d[C]||(void 0===x&&(x=12),_=!0,C="g"),(y||"0"===r&&"="===o)&&(y=!0,r="0",o="=");var S="$"===h?n:"#"===h&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",O="$"===h?s:/[%p]/.test(C)?p:"",k=d[C],E=/[defgprs%]/.test(C);function j(e){var n,s,c,p=S,d=O;if("c"===C)d=k(e)+d,e="";else{var h=(e=+e)<0||1/e<0;if(e=isNaN(e)?m:k(Math.abs(e),x),_&&(e=l(e)),h&&0==+e&&"+"!==i&&(h=!1),p=(h?"("===i?i:g:"-"===i||"("===i?"":i)+p,d=("s"===C?v[8+a/3]:"")+d+(h&&"("===i?")":""),E)for(n=-1,s=e.length;++n<s;)if(48>(c=e.charCodeAt(n))||c>57){d=(46===c?u+e.slice(n+1):e.slice(n))+d,e=e.slice(0,n);break}}w&&!y&&(e=t(e,1/0));var j=p.length+e.length+d.length,A=j<b?new Array(b-j+1).join(r):"";switch(w&&y&&(e=t(A+e,A.length?b-d.length:1/0),A=""),o){case"<":e=p+e+d+A;break;case"=":e=p+A+e+d;break;case"^":e=A.slice(0,j=A.length>>1)+p+e+d+A.slice(j);break;default:e=A+p+e+d}return f(e)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),j.toString=function(){return e+""},j}function w(e,t){var n=b(((e=c(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(r(t)/3))),i=Math.pow(10,-o),a=v[8+o/3];return function(e){return n(i*e)+a}}return{format:b,formatPrefix:w}}function b(t){return g=m(t),e.format=g.format,e.formatPrefix=g.formatPrefix,g}function w(e){return Math.max(0,-r(Math.abs(e)))}function x(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(t)/3)))-r(Math.abs(e)))}function _(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,r(t)-r(e))+1}b({thousands:",",grouping:[3],currency:["$",""]}),e.FormatSpecifier=u,e.formatDefaultLocale=b,e.formatLocale=m,e.formatSpecifier=c,e.precisionFixed=w,e.precisionPrefix=x,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})}(GS);var yO=new Date,vO=new Date;function mO(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return mO((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return yO.setTime(+t),vO.setTime(+r),e(yO),e(vO),Math.floor(n(yO,vO))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var bO=mO((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));bO.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?mO((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):bO:null};var wO=bO.range;const xO=1e3,_O=6e4,CO=36e5,SO=864e5,OO=6048e5,kO=2592e6,EO=31536e6;var jO=mO((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*xO)}),(function(e,t){return(t-e)/xO}),(function(e){return e.getUTCSeconds()})),AO=jO.range,TO=mO((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*xO)}),(function(e,t){e.setTime(+e+t*_O)}),(function(e,t){return(t-e)/_O}),(function(e){return e.getMinutes()})),MO=TO.range,PO=mO((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*xO-e.getMinutes()*_O)}),(function(e,t){e.setTime(+e+t*CO)}),(function(e,t){return(t-e)/CO}),(function(e){return e.getHours()})),DO=PO.range,RO=mO((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_O)/SO),(e=>e.getDate()-1)),IO=RO.range;function NO(e){return mO((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_O)/OO}))}var LO=NO(0),BO=NO(1),FO=NO(2),zO=NO(3),VO=NO(4),HO=NO(5),UO=NO(6),KO=LO.range,WO=BO.range,$O=FO.range,qO=zO.range,GO=VO.range,ZO=HO.range,YO=UO.range,XO=mO((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),JO=XO.range,QO=mO((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));QO.every=function(e){return isFinite(e=Math.floor(e))&&e>0?mO((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ek=QO.range,tk=mO((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*_O)}),(function(e,t){return(t-e)/_O}),(function(e){return e.getUTCMinutes()})),nk=tk.range,rk=mO((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*CO)}),(function(e,t){return(t-e)/CO}),(function(e){return e.getUTCHours()})),ok=rk.range,ik=mO((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/SO}),(function(e){return e.getUTCDate()-1})),ak=ik.range;function sk(e){return mO((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/OO}))}var ck=sk(0),uk=sk(1),lk=sk(2),fk=sk(3),pk=sk(4),dk=sk(5),hk=sk(6),gk=ck.range,yk=uk.range,vk=lk.range,mk=fk.range,bk=pk.range,wk=dk.range,xk=hk.range,_k=mO((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),Ck=_k.range,Sk=mO((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));Sk.every=function(e){return isFinite(e=Math.floor(e))&&e>0?mO((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ok=Sk.range;function kk(e,t,n,r,o,i){const a=[[jO,1,xO],[jO,5,5e3],[jO,15,15e3],[jO,30,3e4],[i,1,_O],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,CO],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,SO],[r,2,1728e5],[n,1,OO],[t,1,kO],[t,3,7776e6],[e,1,EO]];function s(t,n,r){const o=Math.abs(n-t)/r,i=uC.bisector((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(uC.tickStep(t/EO,n/EO,r));if(0===i)return bO.every(Math.max(uC.tickStep(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]}const[Ek,jk]=kk(Sk,_k,ck,ik,rk,tk),[Ak,Tk]=kk(QO,XO,LO,RO,PO,TO);var Mk={};function Pk(e){return new Date(e)}function Dk(e){return e instanceof Date?+e:+new Date(+e)}function Rk(e,t,n,r,o,i,a,s,c,u){var l=qS(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,Dk)):p().map(Pk)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:u(t)},l.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(JS(n,e)):l},l.copy=function(){return WS(l,Rk(e,t,n,r,o,i,a,s,c,u))},l}function Ik(){var e,t,n,r,o,i=0,a=1,s=VS,c=!1;function u(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 l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(RS),u.rangeRound=l(IS),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function Nk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Lk(){var e=pO(Ik());return e.copy=function(){return Nk(e,Lk()).exponent(e.exponent())},fC.apply(e,arguments)}function Bk(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=VS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?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=BS(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(RS),d.rangeRound=h(IS),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function Fk(){var e=pO(Bk());return e.copy=function(){return Nk(e,Fk()).exponent(e.exponent())},fC.apply(e,arguments)}!function(e,t){function n(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 r(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 o(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function i(e){var i=e.dateTime,a=e.date,c=e.time,u=e.periods,l=e.days,f=e.shortDays,p=e.months,$=e.shortMonths,pe=d(u),Se=h(u),Oe=d(l),ke=h(l),Ee=d(f),je=h(f),Ae=d(p),Te=h(p),Me=d($),Pe=h($),De={a:qe,A:Ge,b:Ze,B:Ye,c:null,d:I,e:I,f:z,g:X,G:Q,H:N,I:L,j:B,L:F,m:V,M:H,p:Xe,q:Je,Q:_e,s:Ce,S:U,u:K,U:W,V:q,w:G,W:Z,x:null,X:null,y:Y,Y:J,Z:ee,"%":xe},Re={a:Qe,A:et,b:tt,B:nt,c:null,d:te,e:te,f:ae,g:ve,G:be,H:ne,I:re,j:oe,L:ie,m:se,M:ce,p:rt,q:ot,Q:_e,s:Ce,S:ue,u:le,U:fe,V:de,w:he,W:ge,x:null,X:null,y:ye,Y:me,Z:we,"%":xe},Ie={a:ze,A:Ve,b:He,B:Ue,c:Ke,d:O,e:O,f:M,g:x,G:w,H:E,I:E,j:k,L:T,m:S,M:j,p:Fe,q:C,Q:D,s:R,S:A,u:y,U:v,V:m,w:g,W:b,x:We,X:$e,y:x,Y:w,Z:_,"%":P};function Ne(e,t){return function(n){var r,o,i,a=[],c=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(o=s[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function Le(e,i){return function(a){var s,c,u=o(1900,void 0,1);if(Be(u,e,a+="",0)!=a.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(i&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(c=(s=r(o(u.y,0,1))).getUTCDay(),s=c>4||0===c?t.utcMonday.ceil(s):t.utcMonday(s),s=t.utcDay.offset(s,7*(u.V-1)),u.y=s.getUTCFullYear(),u.m=s.getUTCMonth(),u.d=s.getUTCDate()+(u.w+6)%7):(c=(s=n(o(u.y,0,1))).getDay(),s=c>4||0===c?t.timeMonday.ceil(s):t.timeMonday(s),s=t.timeDay.offset(s,7*(u.V-1)),u.y=s.getFullYear(),u.m=s.getMonth(),u.d=s.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),c="Z"in u?r(o(u.y,0,1)).getUTCDay():n(o(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(c+5)%7:u.w+7*u.U-(c+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,r(u)):n(u)}}function Be(e,t,n,r){for(var o,i,a=0,c=t.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Ie[o in s?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function Fe(e,t,n){var r=pe.exec(t.slice(n));return r?(e.p=Se.get(r[0].toLowerCase()),n+r[0].length):-1}function ze(e,t,n){var r=Ee.exec(t.slice(n));return r?(e.w=je.get(r[0].toLowerCase()),n+r[0].length):-1}function Ve(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.w=ke.get(r[0].toLowerCase()),n+r[0].length):-1}function He(e,t,n){var r=Me.exec(t.slice(n));return r?(e.m=Pe.get(r[0].toLowerCase()),n+r[0].length):-1}function Ue(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.m=Te.get(r[0].toLowerCase()),n+r[0].length):-1}function Ke(e,t,n){return Be(e,i,t,n)}function We(e,t,n){return Be(e,a,t,n)}function $e(e,t,n){return Be(e,c,t,n)}function qe(e){return f[e.getDay()]}function Ge(e){return l[e.getDay()]}function Ze(e){return $[e.getMonth()]}function Ye(e){return p[e.getMonth()]}function Xe(e){return u[+(e.getHours()>=12)]}function Je(e){return 1+~~(e.getMonth()/3)}function Qe(e){return f[e.getUTCDay()]}function et(e){return l[e.getUTCDay()]}function tt(e){return $[e.getUTCMonth()]}function nt(e){return p[e.getUTCMonth()]}function rt(e){return u[+(e.getUTCHours()>=12)]}function ot(e){return 1+~~(e.getUTCMonth()/3)}return De.x=Ne(a,De),De.X=Ne(c,De),De.c=Ne(i,De),Re.x=Ne(a,Re),Re.X=Ne(c,Re),Re.c=Ne(i,Re),{format:function(e){var t=Ne(e+="",De);return t.toString=function(){return e},t},parse:function(e){var t=Le(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ne(e+="",Re);return t.toString=function(){return e},t},utcParse:function(e){var t=Le(e+="",!0);return t.toString=function(){return e},t}}}var a,s={"-":"",_:" ",0:"0"},c=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(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 p(e){return e.replace(l,"\\$&")}function d(e){return new RegExp("^(?:"+e.map(p).join("|")+")","i")}function h(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function g(e,t,n){var r=c.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function y(e,t,n){var r=c.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function v(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function m(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function b(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function w(e,t,n){var r=c.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function x(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _(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 C(e,t,n){var r=c.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function S(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function O(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function k(e,t,n){var r=c.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function j(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function A(e,t,n){var r=c.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function T(e,t,n){var r=c.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function M(e,t,n){var r=c.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function P(e,t,n){var r=u.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function D(e,t,n){var r=c.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function R(e,t,n){var r=c.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function I(e,t){return f(e.getDate(),t,2)}function N(e,t){return f(e.getHours(),t,2)}function L(e,t){return f(e.getHours()%12||12,t,2)}function B(e,n){return f(1+t.timeDay.count(t.timeYear(e),e),n,3)}function F(e,t){return f(e.getMilliseconds(),t,3)}function z(e,t){return F(e,t)+"000"}function V(e,t){return f(e.getMonth()+1,t,2)}function H(e,t){return f(e.getMinutes(),t,2)}function U(e,t){return f(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function W(e,n){return f(t.timeSunday.count(t.timeYear(e)-1,e),n,2)}function $(e){var n=e.getDay();return n>=4||0===n?t.timeThursday(e):t.timeThursday.ceil(e)}function q(e,n){return e=$(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function G(e){return e.getDay()}function Z(e,n){return f(t.timeMonday.count(t.timeYear(e)-1,e),n,2)}function Y(e,t){return f(e.getFullYear()%100,t,2)}function X(e,t){return f((e=$(e)).getFullYear()%100,t,2)}function J(e,t){return f(e.getFullYear()%1e4,t,4)}function Q(e,n){var r=e.getDay();return f((e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e)).getFullYear()%1e4,n,4)}function ee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function te(e,t){return f(e.getUTCDate(),t,2)}function ne(e,t){return f(e.getUTCHours(),t,2)}function re(e,t){return f(e.getUTCHours()%12||12,t,2)}function oe(e,n){return f(1+t.utcDay.count(t.utcYear(e),e),n,3)}function ie(e,t){return f(e.getUTCMilliseconds(),t,3)}function ae(e,t){return ie(e,t)+"000"}function se(e,t){return f(e.getUTCMonth()+1,t,2)}function ce(e,t){return f(e.getUTCMinutes(),t,2)}function ue(e,t){return f(e.getUTCSeconds(),t,2)}function le(e){var t=e.getUTCDay();return 0===t?7:t}function fe(e,n){return f(t.utcSunday.count(t.utcYear(e)-1,e),n,2)}function pe(e){var n=e.getUTCDay();return n>=4||0===n?t.utcThursday(e):t.utcThursday.ceil(e)}function de(e,n){return e=pe(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function he(e){return e.getUTCDay()}function ge(e,n){return f(t.utcMonday.count(t.utcYear(e)-1,e),n,2)}function ye(e,t){return f(e.getUTCFullYear()%100,t,2)}function ve(e,t){return f((e=pe(e)).getUTCFullYear()%100,t,2)}function me(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function be(e,n){var r=e.getUTCDay();return f((e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e)).getUTCFullYear()%1e4,n,4)}function we(){return"+0000"}function xe(){return"%"}function _e(e){return+e}function Ce(e){return Math.floor(+e/1e3)}function Se(t){return a=i(t),e.timeFormat=a.format,e.timeParse=a.parse,e.utcFormat=a.utcFormat,e.utcParse=a.utcParse,a}Se({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 Oe="%Y-%m-%dT%H:%M:%S.%LZ";function ke(e){return e.toISOString()}var Ee=Date.prototype.toISOString?ke:e.utcFormat(Oe);function je(e){var t=new Date(e);return isNaN(t)?null:t}var Ae=+new Date("2000-01-01T00:00:00.000Z")?je:e.utcParse(Oe);e.isoFormat=Ee,e.isoParse=Ae,e.timeFormatDefaultLocale=Se,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})}(Mk,u(Object.freeze({__proto__:null,timeInterval:mO,timeMillisecond:bO,timeMilliseconds:wO,utcMillisecond:bO,utcMilliseconds:wO,timeSecond:jO,timeSeconds:AO,utcSecond:jO,utcSeconds:AO,timeMinute:TO,timeMinutes:MO,timeHour:PO,timeHours:DO,timeDay:RO,timeDays:IO,timeWeek:LO,timeWeeks:KO,timeSunday:LO,timeSundays:KO,timeMonday:BO,timeMondays:WO,timeTuesday:FO,timeTuesdays:$O,timeWednesday:zO,timeWednesdays:qO,timeThursday:VO,timeThursdays:GO,timeFriday:HO,timeFridays:ZO,timeSaturday:UO,timeSaturdays:YO,timeMonth:XO,timeMonths:JO,timeYear:QO,timeYears:ek,utcMinute:tk,utcMinutes:nk,utcHour:rk,utcHours:ok,utcDay:ik,utcDays:ak,utcWeek:ck,utcWeeks:gk,utcSunday:ck,utcSundays:gk,utcMonday:uk,utcMondays:yk,utcTuesday:lk,utcTuesdays:vk,utcWednesday:fk,utcWednesdays:mk,utcThursday:pk,utcThursdays:bk,utcFriday:dk,utcFridays:wk,utcSaturday:hk,utcSaturdays:xk,utcMonth:_k,utcMonths:Ck,utcYear:Sk,utcYears:Ok,utcTicks:Ek,utcTickInterval:jk,timeTicks:Ak,timeTickInterval:Tk})));var zk=Object.freeze({__proto__:null,scaleBand:hC,scalePoint:yC,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,FS),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,FS):[0,1],YS(r)},scaleLinear:XS,scaleLog:function e(){var t=iO($S()).domain([1,10]);return t.copy=function(){return WS(t,e()).base(t.base())},lC.apply(t,arguments),t},scaleSymlog:function e(){var t=cO($S());return t.copy=function(){return WS(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleOrdinal:dC,scaleImplicit:pC,scalePow:dO,scaleSqrt:function(){return dO.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=qS(),r=[0,1],o=!1;function i(e){var r=gO(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,FS)).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)},lC.apply(i,arguments),YS(i)},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]=uC.quantileSorted(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[uC.bisect(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(uC.ascending),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)},lC.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[uC.bisect(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)},lC.apply(YS(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[uC.bisect(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)},lC.apply(i,arguments)},scaleTime:function(){return lC.apply(Rk(Ak,Tk,QO,XO,LO,RO,PO,TO,jO,Mk.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return lC.apply(Rk(Ek,jk,Sk,_k,ck,ik,rk,tk,jO,Mk.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=YS(Ik()(VS));return t.copy=function(){return Nk(t,e())},fC.apply(t,arguments)},scaleSequentialLog:function e(){var t=iO(Ik()).domain([1,10]);return t.copy=function(){return Nk(t,e()).base(t.base())},fC.apply(t,arguments)},scaleSequentialPow:Lk,scaleSequentialSqrt:function(){return Lk.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=cO(Ik());return t.copy=function(){return Nk(t,e()).constant(t.constant())},fC.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=VS;function r(e){if(null!=e&&!isNaN(e=+e))return n((uC.bisect(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(uC.ascending),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)=>uC.quantile(t,r/e)))},r.copy=function(){return e(n).domain(t)},fC.apply(r,arguments)},scaleDiverging:function e(){var t=YS(Bk()(VS));return t.copy=function(){return Nk(t,e())},fC.apply(t,arguments)},scaleDivergingLog:function e(){var t=iO(Bk()).domain([.1,1,10]);return t.copy=function(){return Nk(t,e()).base(t.base())},fC.apply(t,arguments)},scaleDivergingPow:Fk,scaleDivergingSqrt:function(){return Fk.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=cO(Bk());return t.copy=function(){return Nk(t,e()).constant(t.constant())},fC.apply(t,arguments)},tickFormat:ZS});function Vk(e){return function(e){if(Array.isArray(e))return Hk(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 Hk(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 Hk(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 Hk(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 Uk(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 Kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uk(Object(n),!0).forEach((function(t){Wk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $k(e,t,n){return Wd(e)||Wd(t)?n:Sd(t)?nl(e,t,n):si(t)?t(e):n}function qk(e,t,n,r){var o=Jx(e,(function(e){return $k(e,t)}));if("number"===n){var i=o.filter((function(e){return Cd(e)||parseFloat(e)}));return i.length?[Kx(i),Fx(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Wd(e)})):o).map((function(e){return Sd(e)||e instanceof Date?e:""}))}var Gk=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},Zk=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Ox(n,Kd.displayName);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:Gk(t),value:o||r,payload:t.props}})),Kk(Kk(Kk({},a.props),Kd.getWithHeight(a,o)),{},{payload:t,item:a})):null},Yk=function(e,t,n,r,o){var i=t.props.children,a=Sx(i,"ErrorBar").filter((function(e){return function(e,t,n){return!!Wd(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(a&&a.length){var s=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=$k(t,n,0),o=us(r)?[Kx(r),Fx(r)]:[r,r],i=s.reduce((function(e,n){var r=$k(t,n,0),i=o[0]-Math.abs(us(r)?r[0]:r),a=o[1]+Math.abs(us(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},Xk=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&Yk(e,t,i,r)||qk(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}),[])},Jk=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},Qk=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},eE=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?2*xd(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}})):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}}))},tE=function(e,t,n){var r;return si(n)?r=n:si(t)&&(r=t),si(e)||r?function(t,n,o,i){si(e)&&e(t,n,o,i),si(r)&&r(t,n,o,i)}:null},nE=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:hC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:XS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:yC(),realScaleType:"point"}:"category"===o?{scale:hC(),realScaleType:"band"}:{scale:XS(),realScaleType:"linear"};if(wd(r)){var s="scale".concat(Rf(r));return{scale:(zk[s]||yC)(),realScaleType:zk[s]?s:"point"}}return si(r)?{scale:r}:{scale:yC(),realScaleType:"point"}},rE=1e-4,oE=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])-rE,i=Math.max(r[0],r[1])+rE,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},iE=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},aE=function(e,t){if(!t||2!==t.length||!Cd(t[0])||!Cd(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(!Cd(e[0])||e[0]<n)&&(o[0]=n),(!Cd(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},sE={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=yd(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}Fp(e,t)}},none:Fp,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}Fp(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,u=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,Fp(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=yd(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)}}},cE=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Vf([]),t=zp,n=Fp,r=Vp;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Hp),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=Kf(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:Vf(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Vf(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?zp:"function"==typeof e?e:Vf(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Fp:e,o):n},o}().keys(r).value((function(e,t){return+$k(e,t,0)})).order(zp).offset(sE[n]);return o(e)},uE=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 u=Qx.getNiceTickValues(c,o,a);return e.domain(function(e,t){return"number"===t?[Kx(e),Fx(e)]:e}(u,r)),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:Qx.getTickValuesFixedDomain(l,o,a)}}return null},lE=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&&!Wd(o[t.dataKey])){var s=Td(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=$k(o,Wd(a)?t.dataKey:a);return Wd(c)?null:t.scale(c)},fE=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=$k(i,t.dataKey,t.domain[a]);return Wd(s)?null:t.scale(s)-o/2+r},pE=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]},dE=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[Kx(t.concat([e[0]]).filter(Cd)),Fx(t.concat([e[1]]).filter(Cd))]}),[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}))},hE=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yE=function(e,t,n){if(si(e))return e(t,n);if(!us(e))return t;var r=[];if(Cd(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(hE.test(e[0])){var o=+hE.exec(e[0])[1];r[0]=t[0]-o}else si(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Cd(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(gE.test(e[1])){var i=+gE.exec(e[1])[1];r[1]=t[1]+i}else si(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},vE=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=vm(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},mE=function(e,t,n){return e&&e.length?Px(e,nl(n,"type.defaultProps.domain"))?t:e:t},bE=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 Kk(Kk({},Ro(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:Gk(e),value:$k(t,r),type:s,payload:t,chartType:c})};function wE(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 xE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wE(Object(n),!0).forEach((function(t){_E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CE(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)||function(e,t){if(!e)return;if("string"==typeof e)return SE(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 SE(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 SE(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 OE=Math.PI/180,kE=function(e){return 180*e/Math.PI},EE=function(e,t,n,r){return{x:e+Math.cos(-OE*r)*n,y:t+Math.sin(-OE*r)*n}},jE=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},AE=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ed(e.cx,i,i/2),l=Ed(e.cy,a,a/2),f=jE(i,a,n),p=Ed(e.innerRadius,f,0),d=Ed(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(Wd(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=CE(i=a.range,2);s=g[0],c=g[1]}var y=nE(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),oE(m);var b=uE(m,xE(xE({},a),{},{realScaleType:v})),w=xE(xE(xE({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return xE(xE({},e),{},_E({},n,w))}),{})},TE=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:kE(c),angleInRadian:c}},ME=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)},PE=function(e,t){var n=e.x,r=e.y,o=TE({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 u,l=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=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?xE(xE({},t),{},{radius:i,angle:ME(d,t)}):null};function DE(e){return function(e){if(Array.isArray(e))return RE(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 RE(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 RE(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 RE(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 IE(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 NE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IE(Object(n),!0).forEach((function(t){LE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BE(){return BE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BE.apply(this,arguments)}var FE=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return xd(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=v):"insideEnd"===a?(o=y-w*c,i=!v):"end"===a&&(o=y+w*c,i=v),i=b<=0?i:!i;var x=EE(f,p,m,o),_=EE(f,p,m,o+359*(i?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),S=Wd(e.id)?kd("recharts-radial-line-"):e.id;return t.createElement("text",BE({},r,{dominantBaseline:"central",className:jo("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:S,d:C})),t.createElement("textPath",{xlinkHref:"#".concat(S)},n))};function zE(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,u=void 0===c?"":c,l=e.textBreakAll;if(!r||Wd(i)&&Wd(a)&&!t.isValidElement(s)&&!si(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(si(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=function(e){var t=e.value,n=e.formatter,r=Wd(e.children)?t:e.children;return si(n)?n(r):r}(e);var f=function(e){return Cd(e.cx)}(r),p=Ro(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return FE(e,n,p);var d=f?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,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=EE(i,a,c+n,u),f=l.x;return{x:f,y:l.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 p=EE(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):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,u=i.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return NE(NE({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return NE(NE({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return NE(NE({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return NE(NE({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?NE({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?NE({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?NE({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?NE({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?NE({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?NE({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?NE({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?NE({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Ao(o)&&(Cd(o.x)||_d(o.x))&&(Cd(o.y)||_d(o.y))?NE({x:a+Ed(o.x,c),y:s+Ed(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):NE({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return t.createElement(yx,BE({className:jo("recharts-label",u)},p,d,{breakAll:l}),n)}zE.displayName="Label",zE.defaultProps={offset:5};var VE=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,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Cd(h)&&Cd(g)){if(Cd(l)&&Cd(f))return{x:l,y:f,width:h,height:g};if(Cd(p)&&Cd(d))return{x:p,y:d,width:h,height:g}}return Cd(l)&&Cd(f)?{x:l,y:f,width:0,height:0}:Cd(t)&&Cd(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},HE=function(e,n){return e?!0===e?t.createElement(zE,{key:"label-implicit",viewBox:n}):Sd(e)?t.createElement(zE,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===zE?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(zE,{key:"label-implicit",content:e,viewBox:n}):si(e)?t.createElement(zE,{key:"label-implicit",content:e,viewBox:n}):Ao(e)?t.createElement(zE,BE({viewBox:n},e,{key:"label-implicit"})):null:null};zE.parseViewBox=VE,zE.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=VE(e),a=Sx(o,zE.displayName).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=HE(e.label,n||i);return[s].concat(DE(a))};var UE=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function KE(e){return function(e){if(Array.isArray(e))return WE(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 WE(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 WE(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 WE(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 $E(){return $E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$E.apply(this,arguments)}function qE(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 GE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qE(Object(n),!0).forEach((function(t){ZE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YE(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 XE={valueAccessor:function(e){return us(e.value)?UE(e.value):e.value}};function JE(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=YE(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return n&&n.length?t.createElement(Ho,{className:"recharts-label-list"},n.map((function(e,n){var u=Wd(o)?r(e,n):$k(e&&e.payload,o),l=Wd(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(zE,$E({},Ro(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:zE.parseViewBox(Wd(i)?e:GE(GE({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function QE(e,n){return e?!0===e?t.createElement(JE,{key:"labelList-implicit",data:n}):t.isValidElement(e)||si(e)?t.createElement(JE,{key:"labelList-implicit",data:n,content:e}):Ao(e)?t.createElement(JE,$E({data:n},e,{key:"labelList-implicit"})):null:null}function ej(e){return ej="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},ej(e)}function tj(){return tj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tj.apply(this,arguments)}function nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oj(e,t){return oj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oj(e,t)}function ij(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=sj(e);if(t){var o=sj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aj(this,n)}}function aj(e,t){return!t||"object"!==ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sj(e){return sj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sj(e)}JE.displayName="LabelList",JE.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=Sx(o,JE.displayName).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));if(!r)return i;var a=QE(e.label,n);return[a].concat(KE(i))},JE.defaultProps=XE;var cj=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,u=s*(a?1:-1)+r,l=Math.asin(s/u)/OE,f=c?o:o+i*l,p=c?o-i*l:o;return{center:EE(t,n,u,f),circleTangency:EE(t,n,r,f),lineTangency:EE(t,n,u*Math.cos(l*OE),p),theta:l}},uj=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return xd(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=EE(t,n,o,i),u=EE(t,n,o,s),l="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(u.x,",").concat(u.y,"\n ");if(r>0){var f=EE(t,n,r,i),p=EE(t,n,r,s);l+="L ".concat(p.x,",").concat(p.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 l+="L ".concat(t,",").concat(n," Z");return l},lj=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}}),t&&oj(e,t)}(a,t.PureComponent);var n,r,o,i=ij(a);function a(){return nj(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<o||u===l)return null;var p,d=jo("recharts-sector",f),h=i-o,g=Ed(a,h,0,!0);return p=g>0&&Math.abs(u-l)<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,u=e.endAngle,l=xd(u-c),f=cj({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=cj({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.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 "):uj({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=cj({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,S=x.theta,O=cj({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-u):Math.abs(c-u)-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(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.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:u,endAngle:l}):uj({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",tj({},Ro(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&rj(n.prototype,r),o&&rj(n,o),a}();function fj(e){return fj="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},fj(e)}function pj(){return pj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}function dj(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 hj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dj(Object(n),!0).forEach((function(t){gj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mj(e,t){return mj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mj(e,t)}function bj(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=xj(e);if(t){var o=xj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wj(this,n)}}function wj(e,t){return!t||"object"!==fj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xj(e){return xj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xj(e)}lj.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var _j={curveBasisClosed:function(e){return new vp(e)},curveBasisOpen:function(e){return new mp(e)},curveBasis:function(e){return new yp(e)},curveLinearClosed:function(e){return new jp(e)},curveLinear:$f,curveMonotoneX:function(e){return new Dp(e)},curveMonotoneY:function(e){return new Rp(e)},curveNatural:function(e){return new Np(e)},curveStep:function(e){return new Bp(e,.5)},curveStepAfter:function(e){return new Bp(e,1)},curveStepBefore:function(e){return new Bp(e,0)}},Cj=function(e){return e.x===+e.x&&e.y===+e.y},Sj=function(e){return e.x},Oj=function(e){return e.y},kj=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}}),t&&mj(e,t)}(a,t.PureComponent);var n,r,o,i=bj(a);function a(){return yj(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(si(e))return e;var n="curve".concat(Rf(e));return"curveMonotone"===n&&t?_j["".concat(n).concat("vertical"===t?"Y":"X")]:_j[n]||$f}(n,i),c=a?r.filter((function(e){return Cj(e)})):r;if(us(o)){var u=a?o.filter((function(e){return Cj(e)})):o,l=c.map((function(e,t){return hj(hj({},e),{},{base:u[t]})}));return(e="vertical"===i?Yf().y(Oj).x1(Sj).x0((function(e){return e.base.x})):Yf().x(Sj).y1(Oj).y0((function(e){return e.base.y}))).defined(Cj).curve(s),e(l)}return(e="vertical"===i&&Cd(o)?Yf().y(Oj).x1(Sj).x0(o):Cd(o)?Yf().x(Sj).y1(Oj).y0(o):Zf().x(Sj).y(Oj)).defined(Cj).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",pj({},Ro(this.props),Io(this.props),{className:jo("recharts-curve",n),d:a,ref:i}))}}],r&&vj(n.prototype,r),o&&vj(n,o),a}();function Ej(e){return Ej="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},Ej(e)}function jj(){return jj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jj.apply(this,arguments)}function Aj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mj(e,t){return Mj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mj(e,t)}function Pj(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=Rj(e);if(t){var o=Rj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dj(this,n)}}function Dj(e,t){return!t||"object"!==Ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rj(e){return Rj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rj(e)}kj.defaultProps={type:"linear",points:[],connectNulls:!1};var Ij=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,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Nj=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),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},Lj=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}}),t&&Mj(e,t)}(a,t.PureComponent);var n,r,o,i=Pj(a);function a(){var e;Aj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=jo("recharts-rectangle",c);return g?t.createElement(vv,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:p,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(vv,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},t.createElement("path",jj({},Ro(e.props,!0),{className:y,d:Ij(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",jj({},Ro(this.props,!0),{className:y,d:Ij(r,o,i,a,s)}))}}],r&&Tj(n.prototype,r),o&&Tj(n,o),a}();function Bj(e){return Bj="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},Bj(e)}function Fj(){return Fj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fj.apply(this,arguments)}function zj(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 Vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uj(e,t){return Uj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uj(e,t)}function Kj(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=$j(e);if(t){var o=$j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wj(this,n)}}function Wj(e,t){return!t||"object"!==Bj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $j(e){return $j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$j(e)}function qj(e){return function(e){if(Array.isArray(e))return Gj(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 Gj(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 Gj(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 Gj(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}Lj.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var Zj=function(e){return e&&e.x===+e.x&&e.y===+e.y},Yj=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){Zj(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),Zj(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(qj(e),qj(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},Xj=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}}),t&&Uj(e,t)}(a,t.PureComponent);var n,r,o,i=Kj(a);function a(){return Vj(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=zj(e,["points","className","baseLinePoints","connectNulls"]);if(!n||!n.length)return null;var s=jo("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=Yj(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Yj(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",Fj({},Ro(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",Fj({},Ro(a,!0),{fill:"none",d:Yj(n,i)})):null,c?t.createElement("path",Fj({},Ro(a,!0),{fill:"none",d:Yj(o,i)})):null)}var l=Yj(n,i);return t.createElement("path",Fj({},Ro(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&Hj(n.prototype,r),o&&Hj(n,o),a}();function Jj(e){return Jj="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},Jj(e)}function Qj(){return Qj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}function eA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nA(e,t){return nA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nA(e,t)}function rA(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=iA(e);if(t){var o=iA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oA(this,n)}}function oA(e,t){return!t||"object"!==Jj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function iA(e){return iA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iA(e)}var aA=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}}),t&&nA(e,t)}(a,t.PureComponent);var n,r,o,i=rA(a);function a(){return eA(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=jo("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",Qj({},Ro(this.props),Io(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&tA(n.prototype,r),o&&tA(n,o),a}();function sA(e){return sA="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},sA(e)}function cA(){return cA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cA.apply(this,arguments)}function uA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fA(e,t){return fA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fA(e,t)}function pA(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=hA(e);if(t){var o=hA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dA(this,n)}}function dA(e,t){return!t||"object"!==sA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hA(e){return hA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hA(e)}var gA=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}}),t&&fA(e,t)}(a,t.PureComponent);var n,r,o,i=pA(a);function a(){return uA(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return Cd(n)&&Cd(r)&&Cd(o)&&Cd(i)&&Cd(s)&&Cd(c)?t.createElement("path",cA({},Ro(this.props,!0),{className:jo("recharts-cross",u),d:a.getPath(n,r,o,i,s,c)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&lA(n.prototype,r),o&&lA(n,o),a}();gA.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var yA=Rx,vA=Nl,mA=zx;var bA=function(e,t){return e&&e.length?yA(e,vA(t),mA):void 0},wA=Rx,xA=Ix,_A=Nl;var CA=function(e,t){return e&&e.length?wA(e,_A(t),xA):void 0};function SA(e){return SA="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},SA(e)}function OA(){return OA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OA.apply(this,arguments)}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kA(Object(n),!0).forEach((function(t){jA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AA(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 TA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PA(e,t){return PA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},PA(e,t)}function DA(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=IA(e);if(t){var o=IA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RA(this,n)}}function RA(e,t){return!t||"object"!==SA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function IA(e){return IA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},IA(e)}var NA=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}}),t&&PA(e,t)}(a,t.PureComponent);var n,r,o,i=DA(a);function a(){return TA(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 EE(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=CA(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:bA(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=AA(e,["cx","cy","angle","ticks","axisLine"]),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=EE(n,r,c[0],o),l=EE(n,r,c[1],o),f=EA(EA(EA({},Ro(s)),{},{fill:"none"},Ro(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",OA({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,u=AA(n,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=Ro(u),p=Ro(o),d=r.map((function(n,r){var u=e.getTickValueCoord(n),d=EA(EA(EA(EA({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:r},u),{},{payload:n});return t.createElement(Ho,OA({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},No(e.props,n,r)),a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(Ho,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(Ho,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),zE.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(yx,OA({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&MA(n.prototype,r),o&&MA(n,o),a}();function LA(e){return LA="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},LA(e)}function BA(){return BA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BA.apply(this,arguments)}function FA(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 zA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FA(Object(n),!0).forEach((function(t){VA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KA(e,t){return KA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},KA(e,t)}function WA(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=qA(e);if(t){var o=qA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $A(this,n)}}function $A(e,t){return!t||"object"!==LA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qA(e){return qA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qA(e)}NA.displayName="PolarRadiusAxis",NA.axisType="radiusAxis",NA.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};var GA=Math.PI/180,ZA=1e-5,YA=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}}),t&&KA(e,t)}(a,t.PureComponent);var n,r,o,i=WA(a);function a(){return HA(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=EE(n,r,o,e.coordinate),c=EE(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*GA);return n>ZA?"outer"===t?"start":"end":n<-ZA?"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=zA(zA({},Ro(this.props)),{},{fill:"none"},Ro(i));if("circle"===a)return t.createElement(aA,BA({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return EE(n,r,o,e.coordinate)}));return t.createElement(Xj,BA({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,u=Ro(this.props),l=Ro(o),f=zA(zA({},u),{},{fill:"none"},Ro(i)),p=r.map((function(n,r){var p=e.getTickLineCoord(n),d=zA(zA(zA({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:p.x2,y:p.y2});return t.createElement(Ho,BA({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},No(e.props,n,r)),i&&t.createElement("line",BA({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(Ho,{className:"recharts-polar-angle-axis-ticks"},p)}},{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(Ho,{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):si(e)?e(n):t.createElement(yx,BA({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&UA(n.prototype,r),o&&UA(n,o),a}();YA.displayName="PolarAngleAxis",YA.axisType="angleAxis",YA.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var XA=rc(Object.getPrototypeOf,Object),JA=oi,QA=XA,eT=_s,tT=Function.prototype,nT=Object.prototype,rT=tT.toString,oT=nT.hasOwnProperty,iT=rT.call(Object);var aT=function(e){if(!eT(e)||"[object Object]"!=JA(e))return!1;var t=QA(e);if(null===t)return!0;var n=oT.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rT.call(n)==iT};function sT(e){return sT="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},sT(e)}function cT(){return cT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cT.apply(this,arguments)}function uT(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 lT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uT(Object(n),!0).forEach((function(t){fT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dT(e,t){return dT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dT(e,t)}function hT(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=yT(e);if(t){var o=yT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gT(this,n)}}function gT(e,t){return!t||"object"!==sT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yT(e){return yT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yT(e)}var vT=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}}),t&&dT(e,t)}(a,t.PureComponent);var n,r,o,i=hT(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)).pieRef=null,t.sectorRefs=[],t.state=void 0,t.id=kd("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),si(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),si(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=Ro(this.props),u=Ro(r),l=Ro(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,d=EE(e.cx,e.cy,e.outerRadius+f,p),h=lT(lT(lT(lT({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=lT(lT(lT(lT({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[EE(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return Wd(i)&&Wd(s)?y="value":Wd(i)&&(y=s),t.createElement(Ho,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,$k(e,y)))}));return t.createElement(Ho,{className:"recharts-pie-labels"},p)}},{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,u=n.isActiveIndex(r)?o:c,l=lT(lT({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(Ho,cT({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},No(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,l))}))}},{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,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return t.createElement(vv,{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=l&&l[t],r=t>0?nl(e,"paddingAngle",0):0;if(n){var s=Ad(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=lT(lT({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Ad(0,u-f)(o),d=lT(lT({},e),{},{startAngle:a+r,endAngle:a+p+r});i.push(d),a=d.endAngle}})),t.createElement(Ho,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&&Px(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,u=n.innerRadius,l=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!o||!o.length||!Cd(s)||!Cd(c)||!Cd(u)||!Cd(l))return null;var d=jo("recharts-pie",i);return t.createElement(Ho,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),zE.renderCallByParent(this.props,null,!1),(!f||p)&&JE.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):si(e)?e(n):t.createElement(kj,cT({},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 si(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(yx,cT({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):aT(e)?t.createElement(lj,cT({tabIndex:-1},n,e)):t.createElement(lj,cT({tabIndex:-1},n))}}],r&&pT(n.prototype,r),o&&pT(n,o),a}();vT.displayName="Pie",vT.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:!Pm.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},vT.parseDeltaAngle=function(e,t){return xd(t-e)*Math.min(Math.abs(t-e),360)},vT.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=Ro(e.props),i=Sx(r,iw.displayName);return n&&n.length?n.map((function(e,t){return lT(lT(lT({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return lT(lT({},o),e.props)})):[]},vT.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=jE(o,i);return{cx:r+Ed(e.props.cx,o,o/2),cy:n+Ed(e.props.cy,i,i/2),innerRadius:Ed(e.props.innerRadius,a,0),outerRadius:Ed(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},vT.getComposedData=function(e){var t=e.item,n=e.offset,r=vT.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=vT.parseCoordinateOfPie(t,n),g=vT.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Wd(u)&&Wd(f)?(ow(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Wd(u)&&(ow(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==$k(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=$k(t,v,0);return e+(Cd(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=$k(e,v,0),o=$k(e,l,t),s=(Cd(r)?r:0)/_,u=(n=t?b.endAngle+xd(g)*c*(0!==r?1:0):a)+xd(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=EE(h.cx,h.cy,y,f);return b=lT(lT(lT({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:$k(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:xd(g)*c})})));return lT(lT({},h),{},{sectors:m,data:r})};var mT={};var bT=function(e){return e&&e.length?e[0]:void 0};({get exports(){return mT},set exports(e){mT=e}}).exports=bT;var wT=c(mT);function xT(e){return xT="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},xT(e)}function _T(){return _T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}function CT(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 ST(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CT(Object(n),!0).forEach((function(t){OT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ET(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jT(e,t){return jT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jT(e,t)}function AT(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=MT(e);if(t){var o=MT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TT(this,n)}}function TT(e,t){return!t||"object"!==xT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function MT(e){return MT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},MT(e)}var PT=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}}),t&&jT(e,t)}(a,t.PureComponent);var n,r,o,i=AT(a);function a(){var e;kT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)},e}return n=a,r=[{key:"renderDots",value:function(e){var n=this.props,r=n.dot,o=n.dataKey,i=Ro(this.props),s=Ro(r),c=e.map((function(e,t){var n=ST(ST(ST({key:"dot-".concat(t),r:3},i),s),{},{dataKey:o,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return t.createElement(Ho,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var n,r=this.props,o=r.shape,i=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return n=t.isValidElement(o)?t.cloneElement(o,ST(ST({},this.props),{},{points:e})):si(o)?o(ST(ST({},this.props),{},{points:e})):t.createElement(Xj,_T({},Ro(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),t.createElement(Ho,{className:"recharts-radar-polygon"},n,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,i=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var i=Ad(r.x,e.x),a=Ad(r.y,e.y);return ST(ST({},e),{},{x:i(n),y:a(n)})}var s=Ad(e.cx,e.x),c=Ad(e.cy,e.y);return ST(ST({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&Px(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.className,o=e.points,i=e.isAnimationActive;if(n||!o||!o.length)return null;var a=this.state.isAnimationFinished,s=jo("recharts-radar",r);return t.createElement(Ho,{className:s},this.renderPolygon(),(!i||a)&&JE.renderCallByParent(this.props,o))}}],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:"renderDotItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,_T({},n,{className:"recharts-radar-dot"}))}}],r&&ET(n.prototype,r),o&&ET(n,o),a}();function DT(e){return DT="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},DT(e)}function RT(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 IT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RT(Object(n),!0).forEach((function(t){NT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LT(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 BT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zT(e,t){return zT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zT(e,t)}function VT(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=UT(e);if(t){var o=UT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HT(this,n)}}function HT(e,t){return!t||"object"!==DT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function UT(e){return UT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},UT(e)}PT.displayName="Radar",PT.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PT.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=$k(e,n.dataKey,r),f=$k(e,o),p=n.scale(l)+(i||0),d=us(f)?UE(f):f,h=Wd(d)?void 0:t.scale(d);us(f)&&f.length>=2&&(c=!0),u.push(ST(ST({},EE(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(us(e.value)){var n=wT(e.value),r=Wd(n)?void 0:t.scale(n);l.push(ST(ST({},e),{},{radius:r},EE(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}};var KT=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}}),t&&zT(e,t)}(a,t.PureComponent);var n,r,o,i=VT(a);function a(){var e;BT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return xd(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=LT(n,["shape","activeShape","activeIndex","cornerRadius"]),u=Ro(c);return e.map((function(e,n){var l=IT(IT(IT(IT({},u),{},{cornerRadius:s},e),No(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ad(n.startAngle,e.startAngle),i=Ad(n.endAngle,e.endAngle);return IT(IT({},e),{},{startAngle:r(o),endAngle:i(o)})}var a=e.endAngle,s=e.startAngle,c=Ad(s,a);return IT(IT({},e),{},{endAngle:c(o)})}));return t.createElement(Ho,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Px(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=Ro(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=LT(e,["value","background"]);if(!i)return null;var c=IT(IT(IT(IT(IT({cornerRadius:n},s),{},{fill:"#eee"},i),r),No(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.background,a=e.isAnimationActive;if(n||!r||!r.length)return null;var s=this.state.isAnimationFinished,c=jo("recharts-area",o);return t.createElement(Ho,{className:c},i&&t.createElement(Ho,{className:"recharts-radial-bar-background"},this.renderBackground(r)),t.createElement(Ho,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&JE.renderCallByParent(IT(IT({},this.props),{},{clockWise:this.getDeltaAngle()<0}),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:"renderSectorShape",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(lj,n)}}],r&&FT(n.prototype,r),o&&FT(n,o),a}();KT.displayName="RadialBar",KT.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},KT.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=iE(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=pE({numericAxis:w}),C=Sx(m,iw.displayName);return{data:s.map((function(e,s){var l,v,m,w,S,O;if(u?l=aE(u[p+s],x):(l=$k(e,c),us(l)||(l=[_,l])),"radial"===y){v=fE({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),S=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=S-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))S+=xd(k||b)*(Math.abs(b)-Math.abs(k));O={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),S=(w=fE({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=xd(E||b)*(Math.abs(b)-Math.abs(E))}return IT(IT(IT(IT({},e),O),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:S},C&&C[s]&&C[s].props),{},{tooltipPayload:[bE(t,e)],tooltipPosition:EE(h,g,(v+m)/2,(w+S)/2)})})),layout:y}};var WT=Math.ceil,$T=Math.max;var qT=ib,GT=1/0;var ZT=function(e){return e?(e=qT(e))===GT||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},YT=function(e,t,n,r){for(var o=-1,i=$T(WT((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},XT=dm,JT=ZT;var QT=function(e){return function(t,n,r){return r&&"number"!=typeof r&&XT(t,n,r)&&(n=r=void 0),t=JT(t),void 0===n?(n=t,t=0):n=JT(n),r=void 0===r?t<n?1:-1:JT(r),YT(t,n,r,e)}}();function eM(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 tM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eM(Object(n),!0).forEach((function(t){nM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rM=["Webkit","Moz","O","ms"];function oM(e){return oM="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},oM(e)}function iM(){return iM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iM.apply(this,arguments)}function aM(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 sM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){cM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lM(e,t){return lM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lM(e,t)}function fM(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=hM(e);if(t){var o=hM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pM(this,n)}}function pM(e,t){return!t||"object"!==oM(t)&&"function"!=typeof t?dM(e):t}function dM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hM(e)}var gM=function(e){return e.changedTouches&&!!e.changedTouches.length},yM=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}}),t&&lM(e,t)}(a,t.PureComponent);var n,r,o,i=fM(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)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=gM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(dM(t),"startX"),endX:t.handleTravellerDragStart.bind(dM(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),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%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=$k(n[e],o,e);return si(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,u=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=gM(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,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((cM(t={},o,s+y),cM(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(v))}))}},{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,u=t.Children.only(s);return u?t.cloneElement(u,{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,u=Math.max(e,this.props.x),l=sM(sM({},Ro(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(Ho,{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,l))}},{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,u=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:u,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,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(Ho,{className:"recharts-brush-texts"},t.createElement(yx,iM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(yx,iM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+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,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!Cd(i)||!Cd(a)||!Cd(s)||!Cd(c)||s<=0||c<=0)return null;var y=jo("recharts-brush",r),v=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=rM.reduce((function(e,r){return tM(tM({},e),{},nM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(Ho,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&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):si(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 sM({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=yC().domain(QT(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({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 u=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:u}}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&&uM(n.prototype,r),o&&uM(n,o),a}();yM.displayName="Brush",yM.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 vM=Av;var mM=Wa,bM=Nl,wM=function(e,t){var n;return vM(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},xM=us,_M=dm;var CM=function(e,t,n){var r=xM(e)?mM:wM;return n&&_M(e,t,n)&&(t=void 0),r(e,bM(t))},SM=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var OM=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},kM=Av;var EM=OM,jM=function(e,t){var n=!0;return kM(e,(function(e,r,o){return n=!!t(e,r,o)})),n},AM=Nl,TM=us,MM=dm;var PM=function(e,t,n){var r=TM(e)?EM:jM;return n&&MM(e,t,n)&&(t=void 0),r(e,AM(t))},DM=Qv;var RM=function(e,t,n){"__proto__"==t&&DM?DM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},IM=RM,NM=Ev,LM=Nl;var BM=function(e,t){var n={};return t=LM(t),NM(e,(function(e,r,o){IM(n,r,t(e,r,o))})),n};function FM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zM(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?zM(Object(n),!0).forEach((function(t){HM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UM=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={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=!!Ox(c,"Bar");return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],S=1/0,O=g.categoricalDomain.sort();O.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(O[t-1]||0),S))}));var k=S/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Ed(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}u="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&&(u=[u[1],u[0]]);var T=nE(g,o,f),M=T.scale,P=T.realScaleType;M.domain(v).range(u),oE(M);var D=uE(M,VM(VM({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var R=VM(VM(VM({},g),D),{},{realScaleType:P,x:p,y:d,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=vE(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,VM(VM({},i),{},HM({},a,R))}),{})},KM=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)}},WM=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=void 0,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&&FM(t.prototype,n),r&&FM(t,r),e}();WM.EPS=1e-4;var $M=function(e){var t=Object.keys(e).reduce((function(t,n){return VM(VM({},t),{},HM({},n,WM.create(e[n])))}),{});return VM(VM({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return BM(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return PM(e,(function(e,n){return t[n].isInRange(e)}))}})};function qM(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 GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YM(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)||function(e,t){if(!e)return;if("string"==typeof e)return XM(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 XM(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 XM(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 JM(){return JM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JM.apply(this,arguments)}function QM(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;ow(void 0===u,'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,u=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(SM(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(SM(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return SM(o,"discard")&&CM(b,(function(t){return!e.isInRange(t)}))?null:b}return null}($M({x:i.scale,y:a.scale}),Sd(n),Sd(r),o&&2===o.length,e);if(!f)return null;var p=YM(f,2),d=p[0],h=d.x,g=d.y,y=p[1],v=y.x,m=y.y,b=GM(GM({clipPath:SM(e,"hidden")?"url(#".concat(l,")"):void 0},Ro(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return t.createElement(Ho,{className:jo("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement("line",JM({},n,{className:"recharts-reference-line-line"}))}(s,b),zE.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return KM({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:v,y2:m})))}function eP(){return eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eP.apply(this,arguments)}function tP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tP(Object(n),!0).forEach((function(t){rP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}QM.displayName="ReferenceLine",QM.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function oP(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Sd(n),c=Sd(r);if(ow(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=$M({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return SM(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=nP(nP({clipPath:SM(e,"hidden")?"url(#".concat(a,")"):void 0},Ro(e,!0)),{},{cx:l,cy:f});return t.createElement(Ho,{className:jo("recharts-reference-dot",d)},oP.renderDot(p,h),zE.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}function iP(){return iP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iP.apply(this,arguments)}function aP(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 sP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aP(Object(n),!0).forEach((function(t){cP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oP.displayName="ReferenceDot",oP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},oP.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,eP({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function uP(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;ow(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Sd(n),l=Sd(r),f=Sd(o),p=Sd(i),d=e.shape;if(!(u||l||f||p||d))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=$M({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!SM(o,"discard")||f.isInRange(p)&&f.isInRange(d)?KM(p,d):null}(u,l,f,p,e);if(!h&&!d)return null;var g=SM(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(Ho,{className:jo("recharts-reference-area",a)},uP.renderRect(d,sP(sP({clipPath:g},Ro(e,!0)),h)),zE.renderCallByParent(e,h))}function lP(e){return lP="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},lP(e)}function fP(){return fP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fP.apply(this,arguments)}function pP(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 dP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pP(Object(n),!0).forEach((function(t){hP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gP(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 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,r.key,r)}}function vP(e,t){return vP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vP(e,t)}function mP(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 bP(this,n)}}function bP(e,t){return!t||"object"!==lP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wP(e){return wP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wP(e)}uP.displayName="ReferenceArea",uP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},uP.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(Lj,iP({},n,{className:"recharts-reference-area-rect"}))};var xP=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}}),t&&vP(e,t)}(a,t.Component);var n,r,o,i=mP(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)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=gP(e,["viewBox"]),o=this.props,i=o.viewBox,a=gP(o,["viewBox"]);return!vx(n,i)||!vx(r,a)||!vx(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,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=Cd(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*f)+y*v)+y*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,u=dP(dP(dP({},Ro(this.props)),Ro(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=dP(dP({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=dP(dP({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",fP({},u,{className:jo("recharts-cartesian-axis-line",nl(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,p=a.getTicks(dP(dP({},this.props),{},{ticks:e}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Ro(this.props),y=Ro(u),v=dP(dP({},g),{},{fill:"none"},Ro(s)),m=p.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=dP(dP(dP(dP({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:l});return t.createElement(Ho,fP({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},No(o.props,e,n)),s&&t.createElement("line",fP({},v,i,{className:jo("recharts-cartesian-axis-tick-line",nl(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(si(l)?l(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,u=c.ticks,l=gP(c,["ticks"]),f=u;return si(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(Ho,{className:jo("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),zE.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return o&&o.length&&r?Cd(u)||Pm.isSsr?a.getNumberIntervalTicks(o,"number"==typeof u&&Cd(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?Xw(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?xd(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=si(i)?i(x.value,b-1):x.value,C=Xw(_,{fontSize:l,letterSpacing:f})[y]+m,S=w*(x.coordinate+w*C/2-r);v[b-1]=x=dP(dP({},x),{},{tickCoord:S>0?x.coordinate-S*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+c),v[b-1]=dP(dP({},x),{},{isShow:!0}))}for(var O=t?b-1:b,k=0;k<O;k++){var E=v[k],j=si(i)?i(E.value,k):E.value,A=Xw(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=dP(dP({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=dP(dP({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*A/2-n)>=0&&w*(E.tickCoord+w*A/2-r)<=0&&(n=E.tickCoord+w*(A/2+c),v[k]=dP(dP({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=i.x,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Xw(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?xd(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=si(o)?o(x.value,m-w-1):x.value,C=Xw(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var S=b*(x.coordinate+b*C/2-n);v[w]=x=dP(dP({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate})}else v[w]=x=dP(dP({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=dP(dP({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(yx,fP({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&yP(n.prototype,r),o&&yP(n,o),a}();function _P(e){return _P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_P(e)}function CP(){return CP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CP.apply(this,arguments)}function SP(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 OP(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 kP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OP(Object(n),!0).forEach((function(t){EP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function TP(e,t){return TP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},TP(e,t)}function MP(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=DP(e);if(t){var o=DP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return PP(this,n)}}function PP(e,t){return!t||"object"!==_P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function DP(e){return DP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},DP(e)}xP.displayName="CartesianAxis",xP.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 RP=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}}),t&&TP(e,t)}(a,t.PureComponent);var n,r,o,i=MP(a);function a(){return jP(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=kP(kP({},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=kP(kP({},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,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:i+s-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{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,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:a+c-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:l,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{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,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!Cd(o)||o<=0||!Cd(i)||i<=0||!Cd(n)||n!==+n||!Cd(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!si(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!si(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(si(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=SP(n,["x1","y1","x2","y2","key"]);r=t.createElement("line",CP({},Ro(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&AP(n.prototype,r),o&&AP(n,o),a}();function IP(){return IP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IP.apply(this,arguments)}function NP(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)||function(e,t){if(!e)return;if("string"==typeof e)return LP(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 LP(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 LP(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 BP(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 FP(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=BP(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=Ro(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=NP(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=d+n,_=x+o,C=x-o,S=w(h-y),O=w(h+v);m.push({x1:O,y1:_,x2:O,y2:C}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:_,x2:S,y2:C})}else if("horizontal"===r){var k=u.scale,E=p+n,j=E-o,A=E+o,T=k(h-y),M=k(h+v);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(Ho,IP({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",IP({},e,{key:"line-".concat(n)}))})))}));return t.createElement(Ho,{className:"recharts-errorBars"},p)}function zP(e){return zP="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},zP(e)}function VP(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 HP(){return HP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HP.apply(this,arguments)}function UP(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 KP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UP(Object(n),!0).forEach((function(t){WP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e){return function(e){if(Array.isArray(e))return qP(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 qP(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 qP(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 qP(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 GP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function YP(e,t){return YP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YP(e,t)}function XP(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=QP(e);if(t){var o=QP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JP(this,n)}}function JP(e,t){return!t||"object"!==zP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function QP(e){return QP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},QP(e)}RP.displayName="CartesianGrid",RP.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},FP.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},FP.displayName="ErrorBar";var eD=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}}),t&&YP(e,t)}(a,t.PureComponent);var n,r,o,i=XP(a);function a(){var e;GP(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},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=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat($P(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat($P(a.repeat(n,o)),$P(c),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=kd("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},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(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=e.layout,a=e.children,s=Sx(a,FP.displayName);if(!s)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:$k(e.payload,t)}}return s.map((function(e,a){return t.cloneElement(e,{key:"bar-".concat(a),data:n,xAxis:r,yAxis:o,layout:i,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,s=r.dataKey,c=Ro(this.props),u=Ro(o,!0),l=i.map((function(e,t){var n=KP(KP(KP({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(o,n)})),f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(Ho,HP({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=VP(i,["type","layout","connectNulls","ref"]),l=KP(KP(KP({},Ro(u,!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(kj,HP({},l,{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,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=o.animateNewValues,d=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(vv,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=Ad(r.x,e.x),a=Ad(r.y,e.y);return KP(KP({},e),{},{x:i(o),y:a(o)})}if(p){var c=Ad(2*d,e.x),u=Ad(h/2,e.y);return KP(KP({},e),{},{x:c(o),y:u(o)})}return KP(KP({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Ad(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{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||!Px(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=jo("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Wd(d)?this.id:d;return t.createElement(Ho,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||r)&&this.renderDots(v,m),(!p||h)&&JE.renderCallByParent(this.props,o))}}],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($P(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat($P(r),$P(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(si(e))r=e(n);else{var o=jo("recharts-line-dot",e?e.className:"");r=t.createElement(aA,HP({},n,{className:o}))}return r}}],r&&ZP(n.prototype,r),o&&ZP(n,o),a}();function tD(e){return tD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tD(e)}function nD(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 rD(){return rD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rD.apply(this,arguments)}function oD(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 iD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oD(Object(n),!0).forEach((function(t){aD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uD(e,t){return uD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uD(e,t)}function lD(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=pD(e);if(t){var o=pD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fD(this,n)}}function fD(e,t){return!t||"object"!==tD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pD(e){return pD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pD(e)}eD.displayName="Line",eD.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Pm.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1},eD.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,u=e.offset,l=t.layout;return KP({points:c.map((function(e,t){var c=$k(e,a);return"horizontal"===l?{x:lE({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Wd(c)?null:r.scale(c),value:c,payload:e}:{x:Wd(c)?null:n.scale(c),y:lE({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)};var dD=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}}),t&&uD(e,t)}(a,t.PureComponent);var n,r,o,i=lD(a);function a(){var e;sD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!0},e.id=kd("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e}return n=a,r=[{key:"renderDots",value:function(e,n){var r=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(r&&!o)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=Ro(this.props),f=Ro(s,!0),p=c.map((function(e,t){var n=iD(iD(iD({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(Ho,rD({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].x,s=o[o.length-1].x,c=e*Math.abs(a-s),u=Fx(o.map((function(e){return e.y||0})));return Cd(r)&&"number"==typeof r?u=Math.max(r,u):r&&us(r)&&r.length&&(u=Math.max(Fx(r.map((function(e){return e.y||0}))),u)),Cd(u)?t.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].y,s=o[o.length-1].y,c=e*Math.abs(a-s),u=Fx(o.map((function(e){return e.x||0})));return Cd(r)&&"number"==typeof r?u=Math.max(r,u):r&&us(r)&&r.length&&(u=Math.max(Fx(r.map((function(e){return e.x||0}))),u)),Cd(u)?t.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,o){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=nD(i,["layout","type","stroke","connectNulls","isRange","ref"]);return t.createElement(Ho,{clipPath:r?"url(#clipPath-".concat(o,")"):null},t.createElement(kj,rD({},Ro(f,!0),{points:e,connectNulls:u,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&t.createElement(kj,rD({},Ro(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&t.createElement(kj,rD({},Ro(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.baseLine,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return t.createElement(vv,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var s=o.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=Ad(r.x,e.x),i=Ad(r.y,e.y);return iD(iD({},e),{},{x:o(s),y:i(s)})}return e}));return c=Cd(a)&&"number"==typeof a?Ad(h,a)(s):Wd(a)||yd(a)?Ad(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=Ad(r.x,e.x),i=Ad(r.y,e.y);return iD(iD({},e),{},{x:o(s),y:i(s)})}return e})),r.renderAreaStatically(l,c,e,n)}return t.createElement(Ho,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(Ho,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,a,e,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!Px(s,r)||!Px(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=jo("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Wd(d)?this.id:d;return t.createElement(Ho,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(r||g)&&this.renderDots(v,m),(!p||h)&&JE.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&cD(n.prototype,r),o&&cD(n,o),a}();function hD(e){return hD="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},hD(e)}function gD(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 yD(){return yD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yD.apply(this,arguments)}function vD(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 mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vD(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _D(e,t){return _D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_D(e,t)}function CD(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=OD(e);if(t){var o=OD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return SD(this,n)}}function SD(e,t){return!t||"object"!==hD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function OD(e){return OD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},OD(e)}dD.displayName="Area",dD.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dD.getBaseValue=function(e,t,n,r){var o=e.layout,i=t.props.baseValue;if(Cd(i)&&"number"==typeof i)return i;var a="horizontal"===o?r:n,s=a.scale.domain();if("number"===a.type){var c=Math.max(s[0],s[1]),u=Math.min(s[0],s[1]);return"dataMin"===i?u:"dataMax"===i||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===i?s[0]:"dataMax"===i?s[1]:s[0]},dD.getComposedData=function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=dD.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=$k(e,u);g?n=l[f+t]:us(n=r)?v=!0:n=[y,n];var p=Wd(n[1])||g&&Wd(r);return"horizontal"===h?{x:lE({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:lE({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Wd(nl(e,"value[0]"))||Wd(nl(e,"y"))?null:i.scale(nl(e,"value[0]"))}:{x:Wd(nl(e,"value[0]"))?null:o.scale(nl(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),iD({points:m,baseLine:t,layout:h,isRange:v},d)},dD.renderDotItem=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,rD({},n,{className:"recharts-area-dot"}))};var kD=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}}),t&&_D(e,t)}(a,t.PureComponent);var n,r,o,i=CD(a);function a(){var e;wD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.id=kd("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},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=Ro(this.props);return e&&e.map((function(e,i){var s=mD(mD(mD({},o),e),{},{index:i});return t.createElement(Ho,yD({className:"recharts-bar-rectangle"},No(n.props,e,i),{key:"rectangle-".concat(i),role:"img"}),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,u=n.animationId,l=this.state.prevData;return t.createElement(vv,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ad(n.x,e.x),a=Ad(n.y,e.y),s=Ad(n.width,e.width),c=Ad(n.height,e.height);return mD(mD({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Ad(0,e.height)(i);return mD(mD({},e),{},{y:e.y+e.height-u,height:u})}var f=Ad(0,e.width)(i);return mD(mD({},e),{},{width:f})}));return t.createElement(Ho,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&&Px(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=Ro(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=gD(t,["value","background"]);if(!o)return null;var s=mD(mD(mD(mD(mD({},i),{},{fill:"#eee"},o),n),No(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(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.data,r=e.xAxis,o=e.yAxis,i=e.layout,a=e.children,s=Sx(a,FP.displayName);if(!s)return null;var c="vertical"===i?n[0].height/2:n[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:$k(e,t)}}return s.map((function(e,a){return t.cloneElement(e,{key:"error-bar-".concat(a),data:n,xAxis:r,yAxis:o,layout:i,offset:c,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,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=jo("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Wd(d)?this.id:d;return t.createElement(Ho,{className:g},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:s,y:c,width:u,height:l}))):null,t.createElement(Ho,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&JE.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):si(e)?e(n):t.createElement(Lj,n)}}],r&&xD(n.prototype,r),o&&xD(n,o),a}();kD.displayName="Bar",kD.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},kD.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,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=iE(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=pE({numericAxis:b}),_=Sx(v,iw.displayName),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=aE(u[l+t],w):(r=$k(e,y),us(r)||(r=[x,r])),"horizontal"===h){if(f=fE({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=a.scale(r[1]),g=d.size,v=a.scale(r[0])-a.scale(r[1]),b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var C=xd(v||m)*(Math.abs(m)-Math.abs(v));p-=C,v+=C}}else f=i.scale(r[0]),p=fE({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=i.scale(r[1])-i.scale(r[0]),v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=xd(g||m)*(Math.abs(m)-Math.abs(g)));return mD(mD(mD({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[bE(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return mD({data:C,layout:h},p)};var ED=function(){return null};function jD(e){return jD="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},jD(e)}function AD(){return AD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AD.apply(this,arguments)}function TD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TD(Object(n),!0).forEach((function(t){PD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ID(e,t){return ID=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ID(e,t)}function ND(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=BD(e);if(t){var o=BD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LD(this,n)}}function LD(e,t){return!t||"object"!==jD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function BD(e){return BD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BD(e)}ED.displayName="ZAxis",ED.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var FD=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}}),t&&ID(e,t)}(a,t.PureComponent);var n,r,o,i=ND(a);function a(){var e;DD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=kd("recharts-scatter-"),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.activeShape,s=r.activeIndex,c=Ro(this.props);return e.map((function(e,r){var u=MD(MD({key:"symbol-".concat(r)},c),e);return t.createElement(Ho,AD({className:"recharts-scatter-symbol"},No(n.props,e,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(s===r?i:o,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ad(n.cx,e.cx),i=Ad(n.cy,e.cy),a=Ad(n.size,e.size);return MD(MD({},e),{},{cx:r(o),cy:i(o),size:a(o)})}var s=Ad(0,e.size);return MD(MD({},e),{},{size:s(o)})}));return t.createElement(Ho,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&Px(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=e.children,a=Sx(i,FP.displayName);if(!a)return null;function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:$k(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:$k(e,t)}}return a.map((function(e,i){var a=e.props.direction;return t.cloneElement(e,{key:i,data:n,xAxis:r,yAxis:o,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:s})}))}},{key:"renderLine",value:function(){var e,n,r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,c=Ro(this.props),u=Ro(i);if("joint"===a)e=o.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(o),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=MD(MD(MD({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return n=t.isValidElement(i)?t.cloneElement(i,y):si(i)?i(y):t.createElement(kj,AD({},y,{type:s})),t.createElement(Ho,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.points,o=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=jo("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Wd(p)?this.id:p;return t.createElement(Ho,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:c,y:u,width:l,height:f}))):null,o&&this.renderLine(),this.renderErrorBar(),t.createElement(Ho,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&JE.renderCallByParent(this.props,r))}}],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:"renderSymbolItem",value:function(e,n){var r;return t.isValidElement(e)?r=t.cloneElement(e,n):si(e)?r=e(n):"string"==typeof e&&(r=t.createElement(Qp,AD({},n,{type:e}))),r}}],r&&RD(n.prototype,r),o&&RD(n,o),a}();FD.displayName="Scatter",FD.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Pm.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},FD.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=Sx(o.props.children,iw.displayName),f=Wd(t.dataKey)?o.props.dataKey:t.dataKey,p=Wd(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:ED.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=$k(e,f),h=$k(e,p),m=!Wd(d)&&$k(e,d)||"-",b=[{name:Wd(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Wd(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=lE({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=lE({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return MD(MD({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return MD({points:m},c)};var zD=function(){return null};zD.displayName="XAxis",zD.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var VD=function(){return null};VD.displayName="YAxis",VD.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var HD=Nl,UD=fc,KD=gc;var WD=function(e){return function(t,n,r){var o=Object(t);if(!UD(t)){var i=HD(n);t=KD(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}},$D=ZT;var qD=Ll,GD=Nl,ZD=function(e){var t=$D(e),n=t%1;return t==t?n?t-n:t:0},YD=Math.max;var XD=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ZD(n);return o<0&&(o=YD(r+o,0)),qD(e,GD(t),o)},JD=WD(XD),QD=fb,eR=Ao;var tR=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return eR(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),QD(e,t,{leading:r,maxWait:t,trailing:o})},nR=oi,rR=_s;var oR=function(e){return!0===e||!1===e||rR(e)&&"[object Boolean]"==nR(e)},iR=function(e,t,n,r,o){var i=Sx(e,QM.displayName),a=Sx(e,oP.displayName),s=i.concat(a),c=Sx(e,uP.displayName),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&SM(t.props,"extendDomain")&&Cd(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&SM(t.props,"extendDomain")&&Cd(t.props[p])&&Cd(t.props[d])){var r=t.props[p],o=t.props[d];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 Cd(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},aR={};!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,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].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,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u: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}({get exports(){return aR},set exports(e){aR=e}});var sR=new aR;sR.setMaxListeners&&sR.setMaxListeners(10);var cR="recharts.syncMouseEvents";function uR(e){return uR="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},uR(e)}function lR(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)||wR(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 fR(){return fR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fR.apply(this,arguments)}function pR(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 dR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hR(e,t){return hR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hR(e,t)}function gR(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=mR(e);if(t){var o=mR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yR(this,n)}}function yR(e,t){return!t||"object"!==uR(t)&&"function"!=typeof t?vR(e):t}function vR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mR(e){return mR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mR(e)}function bR(e){return function(e){if(Array.isArray(e))return xR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||wR(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 wR(e,t){if(e){if("string"==typeof e)return xR(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)?xR(e,t):void 0}}function xR(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 _R(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 CR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_R(Object(n),!0).forEach((function(t){SR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OR={xAxis:["bottom","top"],yAxis:["left","right"]},kR={x:0,y:0},ER=Number.isFinite?Number.isFinite:isFinite,jR="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,AR="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,TR=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(bR(e),bR(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&&Cd(o)&&Cd(i)?e.slice(o,i+1):[]},MR=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=TR(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=Td(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(bR(e),[bE(t,o)]):e}),[])},PR=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,u=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){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 u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if(xd(l-u)!==xd(f-l)){var d=[];if(xd(f-l)===xd(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){i=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/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}}else i=0;return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=MR(e,t,u,l),p=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 CR(CR(CR({},r),EE(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return CR(CR(CR({},r),EE(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return kR}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},DR=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,u=e.layout,l=e.children,f=e.stackOffset,p=Jk(u,o),d=n.reduce((function(t,n){var d=n.props,h=d.type,g=d.dataKey,y=d.allowDataOverflow,v=d.allowDuplicatedCategory,m=d.scale,b=d.ticks,w=n.props[i],x=TR(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:c}),_=x.length;if(!t[w]){var C,S,O;if(g){if(C=qk(x,g,h),"category"===h&&p){var k=function(e){if(!us(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}(C);v&&k?(S=C,C=QT(0,_)):v||(C=mE(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(bR(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Wd(e)})):mE(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wd(t)?e:[].concat(bR(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,o){var i=t.map((function(t){return Yk(e,t,n,o,r)})).filter((function(e){return!Wd(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}(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),g,o,u);E&&(C=E)}!p||"number"!==h&&"auto"===m||(O=qk(x,g,"category"))}else C=p?QT(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:dE(a[w].stackGroups,s,c):Xk(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,u,!0);if("number"===h)C=iR(l,C,w,o,b),n.props.domain&&(C=yE(n.props.domain,C,y));else if("category"===h&&n.props.domain){var j=n.props.domain;C.every((function(e){return j.indexOf(e)>=0}))&&(C=j)}return CR(CR({},t),{},SR({},w,CR(CR({},n.props),{},{axisType:o,domain:C,categoricalDomain:O,duplicateDomain:S,originalDomain:n.props.domain,isCategorical:p,layout:u})))}return t}),{});return d},RR=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,u=e.children,l="".concat(r,"Id"),f=Sx(u,o),p={};return f&&f.length?p=DR(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=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,u=e.layout,l=e.children,f=TR(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=Jk(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(h++,d?g=QT(0,p):a&&a[y]&&a[y].hasStack?(g=dE(a[y].stackGroups,s,c),g=iR(l,g,y,o)):(g=yE(r.defaultProps.domain,Xk(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=iR(l,g,y,o)),CR(CR({},e),{},SR({},y,CR(CR({axisType:o},r.defaultProps),{},{hide:!0,orientation:nl(OR,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},IR=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=Ox(r,yM.displayName);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:!Wd(o)&&o}},NR=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"}},LR=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,u=n.children,l=n.margin||{},f=Ox(u,yM.displayName),p=Ox(u,Kd.displayName),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:CR(CR({},e),{},SR({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:CR(CR({},e),{},SR({},r,nl(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=CR(CR({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||yM.defaultProps.height),p&&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=Zk({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Cd(e[f])&&(u=Kk(Kk({},e),{},Wk({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Cd(e[p])&&(u=Kk(Kk({},e),{},Wk({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),CR(CR({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},BR=function(e){var n,r,o=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,s=void 0===a?"axis":a,c=e.validateTooltipEventTypes,u=void 0===c?["axis"]:c,l=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,d=e.defaultProps,h=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,p=e.barCategoryGap,d=e.maxBarSize,h=NR(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=wx(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&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,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return wx(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Wd(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=TR(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"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 CR(CR({},e),{},(SR(o={},r.axisType,s),SR(o,"".concat(r.axisType,"Ticks"),eE(s)),o))}),{}),O=S[y],k=S["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Sd(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[_].stackGroups),j=wx(n.type).indexOf("Bar")>=0,A=vE(O,k),T=[];if(j){var M,P,D=Wd(x)?d:x,R=null!==(M=null!==(P=vE(O,k,!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,u=Ed(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(Vk(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ed(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(Vk(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);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:p,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return CR(CR({},e),{},{position:CR(CR({},e.position),{},{offset:e.position.offset-R/2})})})))}var I,N,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:CR(CR({},B(CR(CR({},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)},SR(I,g,S[g]),SR(I,y,S[y]),SR(I,"animationId",i),I)),childIndex:(N=n,L=e.children,Cx(L).indexOf(N)),item:n})})),b},g=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!kx({props:n}))return null;var c=n.children,u=n.layout,f=n.stackOffset,d=n.data,g=n.reverseStackOrder,y=NR(u),v=y.numericAxisName,m=y.cateAxisName,b=Sx(c,i),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(Sd(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[kd("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Kk(Kk({},e),{},Wk({},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 Kk(Kk({},t),{},Wk({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:cE(e,a.items,o)}))}),{})),Kk(Kk({},t),{},Wk({},i,s))}),{})}(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,g),x=l.reduce((function(e,t){var o="".concat(t.axisType,"Map");return CR(CR({},e),{},SR({},o,RR(n,CR(CR({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=LR(CR(CR({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(n,x[e],_,e.replace("Map",""),o)}));var C,S,O=x["".concat(m,"Map")],k=(C=jd(O),{tooltipTicks:S=eE(C,!1,!0),orderedTooltipTicks:vm(S,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:vE(C,S)}),E=h(n,CR(CR({},x),{},{dataStartIndex:r,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return CR(CR({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return r=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}}),t&&hR(e,t)}(c,t.Component);var n,r,i,a=gR(c);function c(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,e)).uniqueChartId=void 0,n.clipPathId=void 0,n.legendInstance=void 0,n.deferId=void 0,n.container=void 0,n.clearDeferId=function(){!Wd(n.deferId)&&AR&&AR(n.deferId),n.deferId=null},n.handleLegendBBoxUpdate=function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(CR({legendBBox:e},g({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},CR(CR({},n.state),{},{legendBBox:e}))))}},n.handleReceiveSyncEvent=function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=jR&&jR(n.applySyncEvent.bind(vR(n),r)))},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 CR({dataStartIndex:t,dataEndIndex:r},g({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=CR(CR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),si(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?CR(CR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),si(t)&&t(o,e)},n.handleItemMouseEnter=function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&si(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),si(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&bx[t]?bx[t]:null}(e),r=nl(n.props,"".concat(t));t&&si(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)},n.handleClick=function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=CR(CR({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),si(t)&&t(o,e)}},n.handleMouseDown=function(e){var t=n.props.onMouseDown;si(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;si(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Qk(xP.getTicks(CR(CR(CR({},xP.defaultProps),t),{},{ticks:eE(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Qk(xP.getTicks(CR(CR(CR({},xP.defaultProps),t),{},{ticks:eE(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return eE(e,!0)},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,s=r.activePayload,c=r.offset,u=r.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==o&&"axis"!==l)return null;var f,p=n.props.layout,d=kj;if("ScatterChart"===o)f=a,d=gA;else if("BarChart"===o)f=n.getCursorRectangle(),d=Lj;else if("radial"===p){var h=n.getCursorPoints(),g=h.cx,y=h.cy,v=h.radius;f={cx:g,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},d=lj}else f={points:n.getCursorPoints()},d=kj;var m=e.key||"_recharts-cursor",b=CR(CR(CR(CR({stroke:"#ccc",pointerEvents:"none"},c),f),Ro(e.props.cursor)),{},{payload:s,payloadIndex:u,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(d,b)},n.renderPolarAxis=function(e,r,o){var i=nl(e,"type.axisType"),a=nl(n.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return t.cloneElement(e,CR(CR({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:eE(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,u=s.height,l=jd(o),f=JD(i,(function(e){return PM(e.domain,ER)}))||jd(i),p=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Cd(p.x)?p.x:a.left,y:Cd(p.y)?p.y:a.top,width:Cd(p.width)?p.width:a.width,height:Cd(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,u=s.angleAxisMap,l=jd(c),f=jd(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:us(i)?i:eE(f,!0).map((function(e){return e.coordinate})),polarRadius:us(a)?a:eE(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})},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),u=Zk({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:f});if(!u)return null;var l=u.item,p=pR(u,["item"]);return t.cloneElement(l,CR(CR({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))},n.renderTooltip=function(){var e=n.props.children,r=Ox(e,Wm.displayName);if(!r)return null;var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.activeLabel,u=o.offset;return t.cloneElement(r,{viewBox:CR(CR({},u),{},{x:u.left,y:u.top}),active:i,label:c,payload:i?s:[],coordinate:a})},n.renderBrush=function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,u=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:tE(n.handleBrushChange,null,e.props.onChange),data:i,x:Cd(e.props.x)?e.props.x:s.left,y:Cd(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Cd(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,r,o){if(!e)return null;var i=vR(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},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,u=t.item.props,l=u.activeDot,f=CR(CR({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:Gk(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Ro(l)),Io(l));return a.push(c.renderActiveDot(l,f)),r?a.push(c.renderActiveDot(l,CR(CR({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a},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,u=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,p=n.props.children,d=Ox(p,Wm.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&c&&d&&b&&l>=0,x={};"axis"!==a&&d&&"click"===d.props.trigger?x={onClick:tE(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:tE(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:tE(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=t.cloneElement(e,CR(CR({},i.props),x));if(w){var C,S;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=Td(g,O,f),S=y&&v&&Td(v,O,f)}else C=g[l],S=y&&v&&v[l];if(!Wd(C))return[_].concat(bR(n.renderActivePoints({item:i,activePoint:C,basePoint:S,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},n.renderCustomized=function(e,r,o){return t.cloneElement(e,CR(CR({key:"recharts-customized-".concat(o)},n.props),n.state))},n.uniqueChartId=Wd(e.id)?kd("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=tR(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=c,r=[{key:"componentDidMount",value:function(){Wd(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Wd(e.syncId)&&!Wd(this.props.syncId)&&this.addListener(),!Wd(e.syncId)&&Wd(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Wd(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=Ox(this.props.children,Wm.displayName);if(e&&oR(e.props.shared)){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{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 u=jd(s).scale,l=jd(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return CR(CR({},o),{},{xValue:f,yValue:p})}var d=PR(this.state,this.props.data,this.props.layout,i);return d?CR(CR({},o),d):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(!Wd(a.cx)||!Wd(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[EE(c,u,l,f),EE(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=EE(d,h,g,v),b=EE(d,h,y,v);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=jd(i);return PE({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Ox(e,Wm.displayName),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}),CR(CR({},Io(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){sR.on(cR,this.handleReceiveSyncEvent),sR.setMaxListeners&&sR._maxListeners&&sR.setMaxListeners(sR._maxListeners+1)}},{key:"removeListener",value:function(){sR.removeListener(cR,this.handleReceiveSyncEvent),sR.setMaxListeners&&sR._maxListeners&&sR.setMaxListeners(sR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Wd(t)||sR.emit(cR,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(Wd(e.dataStartIndex)&&Wd(e.dataEndIndex))if(Wd(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var h=CR(CR({},f),{},{x:f.left,y:f.top}),y=Math.min(s,h.x+h.width),v=Math.min(c,h.y+h.height),m=p[u]&&p[u].value,b=MR(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:kR;this.setState(CR(CR({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(CR({dataStartIndex:i,dataEndIndex:a},g({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===wx(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(xP,fR({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),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=lR(t,2),r=n[0],o=n[1];return CR(CR({},e),{},SR({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=lR(t,2),r=n[0],o=n[1];return CR(CR({},e),{},SR({},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=wx(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return Nj(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return PE(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!kx(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,u=n.title,l=n.desc,f=pR(n,["children","className","width","height","style","compact","title","desc"]),p=Ro(f),d={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(Fo,fR({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Tx(r,d));var h=this.parseEventsOfWrapper();return t.createElement("div",fR({className:jo("recharts-wrapper",o),style:CR({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(Fo,fR({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Tx(r,d)),this.renderLegend(),this.renderTooltip())}}],r&&dR(n.prototype,r),i&&dR(n,i),c}(),n.displayName=o,n.defaultProps=CR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d),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(Wd(t.updateId)){var u=IR(e);return CR(CR(CR({},u),{},{updateId:0},g(CR(CR({props:e},u),{},{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||!vx(c,t.prevMargin)){var l=IR(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=CR(CR({},PR(t,n,a)),{},{updateId:t.updateId+1}),d=CR(CR(CR({},l),f),p);return CR(CR(CR({},d),g(CR({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!jx(r,t.prevChildren)){var h=!Wd(n)?t.updateId:t.updateId+1;return CR(CR({updateId:h},g(CR(CR({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},n.renderActiveDot=function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):t.createElement(aA,n),t.createElement(Ho,{className:"recharts-active-dot",key:n.key},r)},r};BR({chartName:"LineChart",GraphicalChild:eD,axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD}],formatAxisMap:UM});var FR=BR({chartName:"BarChart",GraphicalChild:kD,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD}],formatAxisMap:UM}),zR=BR({chartName:"PieChart",GraphicalChild:vT,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:YA},{axisType:"radiusAxis",AxisComp:NA}],formatAxisMap:AE,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var VR=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},HR=RM,UR=ui,KR=Object.prototype.hasOwnProperty;var WR=function(e,t,n){var r=e[t];KR.call(e,t)&&UR(r,n)&&(void 0!==n||t in e)||HR(e,t,n)},$R=WR,qR=RM;var GR=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?qR(n,s,c):$R(n,s,c)}return n},ZR=GR,YR=gc;var XR=function(e,t){return e&&ZR(t,YR(t),e)};var JR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},QR=Ao,eI=nc,tI=JR,nI=Object.prototype.hasOwnProperty;var rI=function(e){if(!QR(e))return tI(e);var t=eI(e),n=[];for(var r in e)("constructor"!=r||!t&&nI.call(e,r))&&n.push(r);return n},oI=ec,iI=rI,aI=fc;var sI=function(e){return aI(e)?oI(e,!0):iI(e)},cI=GR,uI=sI;var lI=function(e,t){return e&&cI(t,uI(t),e)},fI={};!function(e,t){var n=$o,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return fI},set exports(e){fI=e}},fI);var pI=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},dI=GR,hI=ws;var gI=function(e,t){return dI(e,hI(e),t)},yI=cs,vI=XA,mI=ws,bI=hs,wI=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yI(t,mI(e)),e=vI(e);return t}:bI,xI=GR,_I=wI;var CI=function(e,t){return xI(e,_I(e),t)},SI=ps,OI=wI,kI=sI;var EI=function(e){return SI(e,kI,OI)},jI=Object.prototype.hasOwnProperty;var AI=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&jI.call(e,"index")&&(n.index=e.index,n.input=e.input),n},TI=Xa;var MI=function(e){var t=new e.constructor(e.byteLength);return new TI(t).set(new TI(e)),t},PI=MI;var DI=function(e,t){var n=t?PI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},RI=/\w*$/;var II=function(e){var t=new e.constructor(e.source,RI.exec(e));return t.lastIndex=e.lastIndex,t},NI=qo?qo.prototype:void 0,LI=NI?NI.valueOf:void 0;var BI=MI;var FI=MI,zI=DI,VI=II,HI=function(e){return LI?Object(LI.call(e)):{}},UI=function(e,t){var n=t?BI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var KI=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return FI(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return zI(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return UI(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return VI(e);case"[object Symbol]":return HI(e)}},WI=Ao,$I=Object.create,qI=function(){function e(){}return function(t){if(!WI(t))return{};if($I)return $I(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),GI=qI,ZI=XA,YI=nc;var XI=function(e){return"function"!=typeof e.constructor||YI(e)?{}:GI(ZI(e))},JI=Kc,QI=_s;var eN=function(e){return QI(e)&&"[object Map]"==JI(e)},tN=Vs,nN=Hs&&Hs.isMap,rN=nN?tN(nN):eN,oN=Kc,iN=_s;var aN=function(e){return iN(e)&&"[object Set]"==oN(e)},sN=Vs,cN=Hs&&Hs.isSet,uN=cN?sN(cN):aN,lN=Fa,fN=VR,pN=WR,dN=XR,hN=lI,gN=fI,yN=pI,vN=gI,mN=CI,bN=bc,wN=EI,xN=Kc,_N=AI,CN=KI,SN=XI,ON=us,kN=Ms,EN=rN,jN=Ao,AN=uN,TN=gc,MN=sI,PN="[object Arguments]",DN="[object Function]",RN="[object Object]",IN={};IN[PN]=IN["[object Array]"]=IN["[object ArrayBuffer]"]=IN["[object DataView]"]=IN["[object Boolean]"]=IN["[object Date]"]=IN["[object Float32Array]"]=IN["[object Float64Array]"]=IN["[object Int8Array]"]=IN["[object Int16Array]"]=IN["[object Int32Array]"]=IN["[object Map]"]=IN["[object Number]"]=IN[RN]=IN["[object RegExp]"]=IN["[object Set]"]=IN["[object String]"]=IN["[object Symbol]"]=IN["[object Uint8Array]"]=IN["[object Uint8ClampedArray]"]=IN["[object Uint16Array]"]=IN["[object Uint32Array]"]=!0,IN["[object Error]"]=IN[DN]=IN["[object WeakMap]"]=!1;var NN=function e(t,n,r,o,i,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!jN(t))return t;var f=ON(t);if(f){if(s=_N(t),!c)return yN(t,s)}else{var p=xN(t),d=p==DN||"[object GeneratorFunction]"==p;if(kN(t))return gN(t,c);if(p==RN||p==PN||d&&!i){if(s=u||d?{}:SN(t),!c)return u?mN(t,hN(s,t)):vN(t,dN(s,t))}else{if(!IN[p])return i?t:{};s=CN(t,p,c)}}a||(a=new lN);var h=a.get(t);if(h)return h;a.set(t,s),AN(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):EN(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?wN:bN:u?MN:TN)(t);return fN(g||t,(function(o,i){g&&(o=t[i=o]),pN(s,i,e(o,n,r,i,t,a))})),s},LN=el,BN=af;var FN=function(e,t){return t.length<2?e:LN(e,BN(t,0,-1))},zN=Zu,VN=UE,HN=FN,UN=Xu;var KN=function(e,t){return t=zN(t,e),null==(e=HN(e,t))||delete e[UN(VN(t))]},WN=aT;var $N=Cv;var qN=function(e){return(null==e?0:e.length)?$N(e,1):[]},GN=qN,ZN=Yv,YN=im;var XN=Nu,JN=NN,QN=KN,eL=Zu,tL=GR,nL=function(e){return WN(e)?void 0:e},rL=EI,oL=function(e){return YN(ZN(e,void 0,GN),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=XN(t,(function(t){return t=eL(t,e),r||(r=t.length>1),t})),tL(e,rL(e),n),r&&(n=JN(n,7,nL));for(var o=t.length;o--;)QN(n,t[o]);return n})),iL=oL;function aL(e){return aL="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},aL(e)}function sL(){return sL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sL.apply(this,arguments)}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function lL(e,t){return lL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lL(e,t)}function fL(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=dL(e);if(t){var o=dL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pL(this,n)}}function pL(e,t){return!t||"object"!==aL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dL(e){return dL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dL(e)}Math.sqrt(5),Pm.isSsr,Pm.isSsr,BR({chartName:"RadarChart",GraphicalChild:PT,axisComponents:[{axisType:"angleAxis",AxisComp:YA},{axisType:"radiusAxis",AxisComp:NA}],formatAxisMap:AE,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),BR({chartName:"ScatterChart",GraphicalChild:FD,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD},{axisType:"zAxis",AxisComp:ED}],formatAxisMap:UM}),BR({chartName:"AreaChart",GraphicalChild:dD,axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD}],formatAxisMap:UM}),BR({chartName:"RadialBarChart",GraphicalChild:KT,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:YA},{axisType:"radiusAxis",AxisComp:NA}],formatAxisMap:AE,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),BR({chartName:"ComposedChart",GraphicalChild:[eD,dD,kD,FD],axisComponents:[{axisType:"xAxis",AxisComp:zD},{axisType:"yAxis",AxisComp:VD},{axisType:"zAxis",AxisComp:ED}],formatAxisMap:UM});var hL=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},gL=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}}),t&&lL(e,t)}(a,t.PureComponent);var n,r,o,i=fL(a);function a(){var e;cL(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.upperWidth,a=n.lowerWidth,s=n.height,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=jo("recharts-trapezoid",c);return h?t.createElement(vv,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:r,y:o},to:{upperWidth:i,lowerWidth:a,height:s,x:r,y:o},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,o=n.lowerWidth,i=n.height,a=n.x,s=n.y;return t.createElement(vv,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},t.createElement("path",sL({},Ro(e.props,!0),{className:g,d:hL(a,s,r,o,i),ref:function(t){e.node=t}})))})):t.createElement("g",null,t.createElement("path",sL({},Ro(this.props,!0),{className:g,d:hL(r,o,i,a,s)})))}}],r&&uL(n.prototype,r),o&&uL(n,o),a}();function yL(e){return yL="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},yL(e)}function vL(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)||function(e,t){if(!e)return;if("string"==typeof e)return mL(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 mL(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 mL(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 bL(){return bL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bL.apply(this,arguments)}function wL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wL(Object(n),!0).forEach((function(t){_L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OL(e,t){return OL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OL(e,t)}function kL(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=jL(e);if(t){var o=jL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EL(this,n)}}function EL(e,t){return!t||"object"!==yL(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jL(e){return jL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jL(e)}gL.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var AL=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}}),t&&OL(e,t)}(a,t.PureComponent);var n,r,o,i=kL(a);function a(){var e;CL(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),si(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),si(t)&&t()},e}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:"renderTrapezoidsStatically",value:function(e){var n=this,r=this.props.activeShape;return e.map((function(e,o){var i=n.isActiveIndex(o)?r:null,s=xL(xL({},e),{},{stroke:e.stroke});return t.createElement(Ho,bL({className:"recharts-funnel-trapezoid"},No(n.props,e,o),{key:"trapezoid-".concat(o),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,n=this.props,r=n.trapezoids,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevTrapezoids;return t.createElement(vv,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ad(n.x,e.x),i=Ad(n.y,e.y),a=Ad(n.upperWidth,e.upperWidth),s=Ad(n.lowerWidth,e.lowerWidth),c=Ad(n.height,e.height);return xL(xL({},e),{},{x:r(o),y:i(o),upperWidth:a(o),lowerWidth:s(o),height:c(o)})}var l=Ad(e.x+e.upperWidth/2,e.x),f=Ad(e.y+e.height/2,e.y),p=Ad(0,e.upperWidth),d=Ad(0,e.lowerWidth),h=Ad(0,e.height);return xL(xL({},e),{},{x:l(o),y:f(o),upperWidth:p(o),lowerWidth:d(o),height:h(o)})}));return t.createElement(Ho,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&Px(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.trapezoids,o=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var s=jo("recharts-trapezoids",o);return t.createElement(Ho,{className:s},this.renderTrapezoids(),(!i||a)&&JE.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):si(e)?e(n):aT(e)?t.createElement(gL,bL({},n,e)):t.createElement(gL,n)}}],r&&SL(n.prototype,r),o&&SL(n,o),a}();AL.displayName="Funnel",AL.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Pm.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},AL.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,o=Ro(e.props),i=Sx(r,iw.displayName);return n&&n.length?n.map((function(e,t){return xL(xL(xL({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return xL(xL({},o),e.props)})):[]},AL.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return hd(n)?l=n:wd(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}},AL.getComposedData=function(e){var t=e.item,n=e.offset,r=AL.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=AL.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return $k(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=$k(e,i,0),u=$k(e,a,t),p=o;if(t!==m-1)(n=$k(r[t+1],i,0))instanceof Array&&(n=vL(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=vL(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,S=n/v*h,O=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return xL(xL({x:x,y:_,width:Math.max(C,S),upperWidth:C,lowerWidth:S,height:b,name:u,val:p,tooltipPayload:O,tooltipPosition:k},iL(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-S)/4,y:_,width:Math.abs(C-S)/2+Math.min(C,S),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return xL(xL({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:xL(xL({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:xL(xL({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},BR({chartName:"FunnelChart",GraphicalChild:AL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const TL=J.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),ML=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),PL=J.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),DL=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(BL,{children:[e.jsx(FL,{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(LL,{children:[r&&e.jsx(TL,{color:r}),t.name,": ",t.value]},t.value)}))]}):null,RL=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Wm,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(DL,{})})},IL=({payload:t})=>e.jsx(NL,{children:null==t?void 0:t.map((t=>e.jsxs(LL,{children:[e.jsx(TL,{color:t.color}),t.value]},t.value)))}),NL=J.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),LL=J.div((({theme:e})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize"}))),BL=J.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),FL=J.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));function zL(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 VL(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}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 UL(e){VL(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===HL(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 KL(e,t){VL(2,arguments);var n=UL(e),r=zL(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function WL(e,t){VL(2,arguments);var n=UL(e),r=zL(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function $L(e){return $L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$L(e)}function qL(e,t){if(VL(2,arguments),!t||"object"!==$L(t))return new Date(NaN);var n=t.years?zL(t.years):0,r=t.months?zL(t.months):0,o=t.weeks?zL(t.weeks):0,i=t.days?zL(t.days):0,a=t.hours?zL(t.hours):0,s=t.minutes?zL(t.minutes):0,c=t.seconds?zL(t.seconds):0,u=UL(e),l=r||n?WL(u,r+12*n):u,f=i||o?KL(l,i+7*o):l,p=s+60*a,d=c+60*p,h=1e3*d,g=new Date(f.getTime()+h);return g}function GL(e,t){VL(2,arguments);var n=UL(e).getTime(),r=zL(t);return new Date(n+r)}var ZL={};function YL(){return ZL}function XL(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 JL(e){VL(1,arguments);var t=UL(e);return t.setHours(0,0,0,0),t}var QL=864e5;function eB(e,t){VL(2,arguments);var n=JL(e),r=JL(t),o=n.getTime()-XL(n),i=r.getTime()-XL(r);return Math.round((o-i)/QL)}function tB(e,t){VL(2,arguments);var n=JL(e),r=JL(t);return n.getTime()===r.getTime()}function nB(e){return nB="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},nB(e)}function rB(e){return VL(1,arguments),e instanceof Date||"object"===nB(e)&&"[object Date]"===Object.prototype.toString.call(e)}function oB(e){if(VL(1,arguments),!rB(e)&&"number"!=typeof e)return!1;var t=UL(e);return!isNaN(Number(t))}function iB(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 aB(e,t){VL(2,arguments);var n=UL(e),r=UL(t),o=iB(n,r),i=Math.abs(eB(n,r));n.setDate(n.getDate()-o*i);var a=Number(iB(n,r)===-o),s=o*(i-a);return 0===s?0:s}function sB(e,t){return VL(2,arguments),UL(e).getTime()-UL(t).getTime()}var cB={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function uB(e){return e?cB[e]:cB.trunc}function lB(e,t){VL(2,arguments);var n=zL(t);return GL(e,-n)}var fB=864e5;function pB(e){VL(1,arguments);var t=1,n=UL(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function dB(e){VL(1,arguments);var t=UL(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=pB(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=pB(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function hB(e){VL(1,arguments);var t=dB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=pB(n);return r}var gB=6048e5;function yB(e,t){var n,r,o,i,a,s,c,u;VL(1,arguments);var l=YL(),f=zL(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:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=UL(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function vB(e,t){var n,r,o,i,a,s,c,u;VL(1,arguments);var l=UL(e),f=l.getUTCFullYear(),p=YL(),d=zL(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:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=yB(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=yB(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function mB(e,t){var n,r,o,i,a,s,c,u;VL(1,arguments);var l=YL(),f=zL(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:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=vB(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=yB(d,t);return h}var bB=6048e5;function wB(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var xB=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return wB("yy"===t?r%100:r,t.length)},_B=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):wB(n+1,2)},CB=function(e,t){return wB(e.getUTCDate(),t.length)},SB=function(e,t){return wB(e.getUTCHours()%12||12,t.length)},OB=function(e,t){return wB(e.getUTCHours(),t.length)},kB=function(e,t){return wB(e.getUTCMinutes(),t.length)},EB=function(e,t){return wB(e.getUTCSeconds(),t.length)},jB=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return wB(Math.floor(r*Math.pow(10,n-3)),t.length)},AB="midnight",TB="noon",MB="morning",PB="afternoon",DB="evening",RB="night",IB={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 xB(e,t)},Y:function(e,t,n,r){var o=vB(e,r),i=o>0?o:1-o;return"YY"===t?wB(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):wB(i,t.length)},R:function(e,t){return wB(dB(e),t.length)},u:function(e,t){return wB(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 wB(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 wB(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 _B(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 wB(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=function(e,t){VL(1,arguments);var n=UL(e),r=yB(n,t).getTime()-mB(n,t).getTime();return Math.round(r/bB)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):wB(o,t.length)},I:function(e,t,n){var r=function(e){VL(1,arguments);var t=UL(e),n=pB(t).getTime()-hB(t).getTime();return Math.round(n/gB)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):wB(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):CB(e,t)},D:function(e,t,n){var r=function(e){VL(1,arguments);var t=UL(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/fB)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):wB(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 wB(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 wB(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 wB(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?TB:0===o?AB: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?DB:o>=12?PB:o>=4?MB:RB,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 SB(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):OB(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):wB(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):wB(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):kB(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):EB(e,t)},S:function(e,t){return jB(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return LB(o);case"XXXX":case"XX":return BB(o);default:return BB(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return LB(o);case"xxxx":case"xx":return BB(o);default:return BB(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+NB(o,":");default:return"GMT"+BB(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+NB(o,":");default:return"GMT"+BB(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return wB(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return wB((r._originalDate||e).getTime(),t.length)}};function NB(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+wB(i,2)}function LB(e,t){return e%60==0?(e>0?"-":"+")+wB(Math.abs(e)/60,2):BB(e,t)}function BB(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+wB(Math.floor(o/60),2)+n+wB(o%60,2)}var FB=IB,zB=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"})}},VB=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"})}},HB={p:VB,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return zB(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}}",zB(o,t)).replace("{{time}}",VB(i,t))}},UB=HB,KB=["D","DD"],WB=["YY","YYYY"];function $B(e){return-1!==KB.indexOf(e)}function qB(e){return-1!==WB.indexOf(e)}function GB(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 ZB={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function YB(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var XB={date:YB({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:YB({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:YB({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},JB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function QB(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 eF={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:QB({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:QB({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:QB({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:QB({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:QB({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"})};function tF(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],u=Array.isArray(c)?rF(c,(function(e){return e.test(s)})):nF(c,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function nF(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function rF(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var oF,iF={ordinalNumber:(oF={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(oF.matchPattern);if(!n)return null;var r=n[0],o=e.match(oF.parsePattern);if(!o)return null;var i=oF.valueCallback?oF.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:tF({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:tF({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:tF({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:tF({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:tF({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"})},aF={code:"en-US",formatDistance:function(e,t,n){var r,o=ZB[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},formatLong:XB,formatRelative:function(e,t,n,r){return JB[e]},localize:eF,match:iF,options:{weekStartsOn:0,firstWeekContainsDate:1}},sF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uF=/^'([^]*?)'?$/,lF=/''/g,fF=/[a-zA-Z]/;function pF(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;VL(2,arguments);var x=String(t),_=YL(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:aF,S=zL(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=zL(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=UL(e);if(!oB(k))throw new RangeError("Invalid time value");var E=XL(k),j=lB(k,E),A={firstWeekContainsDate:S,weekStartsOn:O,locale:C,_originalDate:k},T=x.match(cF).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,UB[t])(e,C.formatLong):e})).join("").match(sF).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return dF(r);var i=FB[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!qB(r)||GB(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!$B(r)||GB(r,t,String(e)),i(j,r,C.localize,A);if(o.match(fF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return T}function dF(e){var t=e.match(uF);return t?t[1].replace(lF,"'"):e}function hF(e){VL(1,arguments);var t=UL(e),n=t.getDate();return n}function gF(e){VL(1,arguments);var t=UL(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 yF(e){VL(1,arguments);var t=UL(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vF(e,t){VL(2,arguments);var n=UL(e),r=UL(t);return n.getTime()>r.getTime()}function mF(e,t){VL(2,arguments);var n=UL(e),r=UL(t);return n.getTime()<r.getTime()}function bF(e,t){VL(2,arguments);var n=UL(e),r=UL(t);return n.getFullYear()===r.getFullYear()}function wF(e,t){VL(2,arguments);var n=zL(t);return KL(e,-n)}function xF(e,t){VL(2,arguments);var n=UL(e),r=zL(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=gF(a);return n.setMonth(r,Math.min(i,s)),n}function _F(e){return _F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_F(e)}function CF(e,t){VL(2,arguments);var n=UL(e),r=zL(t);return n.setDate(r),n}function SF(e,t){VL(2,arguments);var n=zL(t);return WL(e,-n)}function OF(e){return OF="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},OF(e)}function kF(e,t){if(VL(2,arguments),!t||"object"!==OF(t))return new Date(NaN);var n=t.years?zL(t.years):0,r=t.months?zL(t.months):0,o=t.weeks?zL(t.weeks):0,i=t.days?zL(t.days):0,a=t.hours?zL(t.hours):0,s=t.minutes?zL(t.minutes):0,c=t.seconds?zL(t.seconds):0,u=SF(e,r+12*n),l=wF(u,i+7*o),f=s+60*a,p=c+60*f,d=1e3*p,h=new Date(l.getTime()-d);return h}const EF=J.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"}))),jF=J.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),AF=J.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),TF=J.div({display:"flex"}),MF=J.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),PF=J.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"}})),DF=J.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),RF=J.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),IF=J.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}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),NF=J.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`}}}))),LF=J.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),BF=n=>{var{id:r,label:o,labelPosition:i,checked:s,partial:c,disabled:u,onChange:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g}=n,y=a(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(s||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(c?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,c]),t.useEffect((()=>{w("boolean"==typeof s?s:b)}),[s,b]),e.jsxs(IF,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(LF,{children:o}),e.jsx(NF,Object.assign({ref:x,id:r,type:"checkbox",checked:c?!b:b,disabled:u,onChange:()=>{const e=!!c||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!c)}},y)),e.jsx(an,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
203
203
  /**
204
204
  * Prism: Lightweight, robust, elegant syntax highlighting
205
205
  *
@@ -208,5 +208,5 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
208
208
  * @namespace
209
209
  * @public
210
210
  */
211
- var PF=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 u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&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],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||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};return r.hooks.run("before-tokenize",i),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){var t=[],n=e.head.next;for(;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,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!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,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var S=_.value;if(t.length>e.length)return;if(!(S instanceof o)){var O,k=1;if(m){if(!(O=i(x,C,e,v))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,S=e.slice(C,A),O.index-=C}else if(!(O=i(x,0,S,v)))continue;E=O.index;var M=O[0],P=S.slice(0,E),D=S.slice(E+M.length),R=C+S.length;f&&R>f.reach&&(f.reach=R);var I=_.prev;if(P&&(I=c(t,I,P),C+=P.length),u(t,I,k),_=c(t,I,new o(p,y?r.tokenize(M,y):M,b,M)),D&&c(t,_,D),k>1){var N={cause:p+","+h,reach:R};a(e,t,n,_.prev,C,N),f&&N.reach>f.reach&&(f.reach=N.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 u(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}(),DF=PF;PF.default=PF,DF.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"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},DF.languages.markup.tag.inside["attr-value"].inside.entity=DF.languages.markup.entity,DF.languages.markup.doctype.inside["internal-subset"].inside=DF.languages.markup,DF.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(DF.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:DF.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:DF.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},DF.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(DF.languages.markup.tag,"addAttribute",{value:function(e,t){DF.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:DF.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),DF.languages.html=DF.languages.markup,DF.languages.mathml=DF.languages.markup,DF.languages.svg=DF.languages.markup,DF.languages.xml=DF.languages.extend("markup",{}),DF.languages.ssml=DF.languages.xml,DF.languages.atom=DF.languages.xml,DF.languages.rss=DF.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(DF),DF.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:/[{}[\];(),.:]/},DF.languages.c=DF.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|[?:~]|[-+*/%&|^!=<>]=?/}),DF.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),DF.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},DF.languages.c.string],char:DF.languages.c.char,comment:DF.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:DF.languages.c}}}}),DF.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 DF.languages.c.boolean,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"])}(DF),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,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;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(DF),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;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("\\[(?:[^[\\]\"']|"+n.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":[n,{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}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={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|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:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(DF),DF.languages.javascript=DF.languages.extend("clike",{"class-name":[DF.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}|\?\?=?|\?\.?|[~:]/}),DF.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,DF.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:DF.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:DF.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:DF.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:DF.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:DF.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),DF.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:DF.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"}}),DF.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),DF.languages.markup&&(DF.languages.markup.tag.addInlined("script","javascript"),DF.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")),DF.languages.js=DF.languages.javascript,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}(DF),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}(DF),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;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=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(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],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(DF),DF.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:DF.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+/},DF.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"])&&"("===l(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(u,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(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 d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),DF.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(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,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 f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(DF),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}(DF),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];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(DF),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)}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 a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(DF),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(DF),DF.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},DF.languages.go=DF.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/}),DF.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete DF.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(DF),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(DF),DF.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},DF.languages.webmanifest=DF.languages.json,DF.languages.less=DF.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),DF.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),DF.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},DF.languages.objectivec=DF.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 DF.languages.objectivec["class-name"],DF.languages.objc=DF.languages.objectivec,DF.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},DF.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},DF.languages.python["string-interpolation"].inside.interpolation.inside.rest=DF.languages.python,DF.languages.py=DF.languages.python,DF.languages.reason=DF.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/}),DF.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 DF.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(DF),DF.languages.scss=DF.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),DF.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),DF.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),DF.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),DF.languages.scss.atrule.inside.rest=DF.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?: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|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)\b/i,{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,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(DF),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(DF),DF.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var RF={Prism:DF,theme:{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"}}]}};function IF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NF(){return NF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NF.apply(this,arguments)}var LF=/\r\n|\r|\n/,BF=function(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)},FF=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},zF=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=NF({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=NF({},n,{backgroundColor:null}),o};function VF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var HF=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),IF(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?zF(e.theme,e.language):void 0;return t.themeDict=n})),IF(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=NF({},VF(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?NF({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),IF(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),IF(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=NF({},VF(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?NF({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),IF(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=FF(l,f.type),f.alias&&(l=FF(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(LF),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)BF(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return BF(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),UF="#c5a5c5",KF="#8dc891",WF={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:UF}},{types:["attr-value"],style:{color:KF}},{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:KF}},{types:["punctuation"],style:{color:KF}},{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:UF}},{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}}]},$F={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)"}}]};const qF=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},GF=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(ZF,Object.assign({onClick:()=>{qF(r),i(!0)},copied:o},{children:o?e.jsx(an,{name:"check-circle",color:a.success}):e.jsx(an,{name:"copy",color:s})}))},ZF=J.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),YF=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(XF,Object.assign({},i,{children:[e.jsx(JF,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(QF,{children:r}),e.jsx(GF,{content:r})]}))},XF=J.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),JF=J.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),QF=J.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),ez=J.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),tz=J.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),nz=J.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),rz=J.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var oz={};({get exports(){return oz},set exports(e){oz=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function S(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,I=2,N="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=N||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function V(){return{value:void 0,done:!0}}function H(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[L]);if("function"==typeof t)return t}function $(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=R,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return $(e)?new te(e):U(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?V():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function Se(){}function Oe(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?V():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?V():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new F(V);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):V()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?V():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Ce,_e),t(Se,_e),t(Oe,_e),_e.Keyed=Ce,_e.Indexed=Se,_e.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=He[e];return void 0===t&&(t=Te(e),Ve===ze&&(Ve=0,He={}),Ve++,He[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Ne&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ne)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Ne="function"==typeof WeakMap;Ne&&(Ie=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ve=0,He={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():We(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ht(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var $e,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return $e||($e=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new S);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),o.push(c)}return gt(e,t,o)}function dt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:O(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ct)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:O(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(C(a),s?void C(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ct(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return V()};var xt=v/4,_t=v/2,Ct=v/4;function St(e){var t=Rt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?Dt(0,r,y,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(St,Se),St.of=function(){return this(arguments)},St.prototype.toString=function(){return this.__toString("List [","]")},St.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},St.prototype.set=function(e,t){return It(this,e,t)},St.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},St.prototype.insert=function(e,t){return this.splice(e,0,t)},St.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},St.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},St.prototype.pop=function(){return Ft(this,0,-1)},St.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},St.prototype.shift=function(){return Ft(this,1)},St.prototype.merge=function(){return zt(this,void 0,arguments)},St.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},St.prototype.mergeDeep=function(){return zt(this,dt,arguments)},St.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},St.prototype.setSize=function(e){return Ft(this,0,e)},St.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},St.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?V():z(e,n++,t)}))},St.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},St.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},St.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=St.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Vt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Mt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(u===l)return Mt;var n=t?--l:u++;s=a(c&&c[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return At||(At=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Vt(e._capacity)?r=Nt(r,e.__ownerID,0,t,n,i):o=Nt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Nt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Nt(u,t,n-y,r,o,i);return l===u?e:((a=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(C(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Vt(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Vt(i),p=Vt(s);p>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new jt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Vt(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?Wt():Ut(e)?e:Wt().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return We(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Ht.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Wt(){return Tt||(Tt=Kt(ot(),Rt()))}function $t(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return V();var e=o.next();return r||t===R?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return V();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===I?e:z(r,c,u,e):(s=!1,V())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return V()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?V():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!$(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Ht,Ke),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},Ht.prototype.set=function(e,t){return $t(this,e,t)},Ht.prototype.remove=function(e){return $t(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Ut,Ht.prototype[h]=!0,Ht.prototype[g]=Ht.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Cn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Cn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var Sn=Cn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Nn():Tn(e)&&!l(e)?e:Nn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}Sn[g]=Sn.remove,Sn.deleteIn=Sn.removeIn=Ge.removeIn,Sn.merge=Ge.merge,Sn.mergeWith=Ge.mergeWith,Sn.mergeIn=Ge.mergeIn,Sn.mergeDeep=Ge.mergeDeep,Sn.mergeDeepWith=Ge.mergeDeepWith,Sn.mergeDeepIn=Ge.mergeDeepIn,Sn.setIn=Ge.setIn,Sn.update=Ge.update,Sn.updateIn=Ge.updateIn,Sn.withMutations=Ge.withMutations,Sn.asMutable=Ge.asMutable,Sn.asImmutable=Ge.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Ln(fn(this,e))},An.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Mn||(Mn=In(ot()))}function Ln(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Nn,Dn.__make=In,t(Ln,An),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.prototype;function Vn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Vn(Wt()))}function Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[$n])}zn[h]=!0,zn.__empty=Hn,zn.__make=Vn,t(Un,Se),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return V()}))},Un.isStack=Kn;var Wn,$n="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return Wn||(Wn=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[$n]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return St(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,ln(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Se,o.prototype),Yn(Oe,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:St,Stack:Un,Set:An,OrderedSet:Ln,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var iz=oz.OrderedMap,az={createFromArray:function(e){return iz(e.map((function(e){return[e.getKey(),e]})))}};var sz=oz,cz=sz.Map,uz=sz.OrderedSet,lz=sz.Record,fz=uz(),pz={style:fz,entity:null},dz=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return hz;var t=cz({style:fz,entity:null}).merge(e),n=gz.get(t);if(n)return n;var o=new r(t);return gz=gz.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?uz(t):t,entity:Array.isArray(n)?uz(n):n})},r}(lz(pz)),hz=new dz,gz=cz([[cz(pz),hz]]);dz.EMPTY=hz;var yz=dz;var vz=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var mz=yz,bz=vz,wz=oz,xz=wz.List,_z=wz.Map,Cz=wz.OrderedSet,Sz=wz.Record,Oz=wz.Repeat,kz=Cz(),Ez=Sz({key:"",type:"unstyled",text:"",characterList:xz(),depth:0,data:_z()}),jz=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=xz(Oz(mz.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():kz},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){bz(this.getCharacterList(),Az,e,t)},o.findEntityRanges=function(e,t){bz(this.getCharacterList(),Tz,e,t)},r}(Ez);function Az(e,t){return e.getStyle()===t.getStyle()}function Tz(e,t){return e.getEntity()===t.getEntity()}var Mz=jz;var Pz=yz,Dz=vz,Rz=oz,Iz=Rz.List,Nz=Rz.Map,Lz=Rz.OrderedSet,Bz=Rz.Record,Fz=Rz.Repeat,zz=Lz(),Vz={parent:null,characterList:Iz(),data:Nz(),depth:0,key:"",text:"",type:"unstyled",children:Iz(),prevSibling:null,nextSibling:null},Hz=function(e,t){return e.getStyle()===t.getStyle()},Uz=function(e,t){return e.getEntity()===t.getEntity()},Kz=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Iz(Fz(Pz.EMPTY,n.length))),e},Wz=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vz;return e.call(this,Kz(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():zz},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){Dz(this.getCharacterList(),Hz,e,t)},o.findEntityRanges=function(e,t){Dz(this.getCharacterList(),Uz,e,t)},r}(Bz(Vz)),$z=Wz,qz=yz,Gz=oz.Map;function Zz(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(Gz([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?qz.applyStyle(l,n):qz.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var Yz={add:function(e,t,n){return Zz(e,t,n,!0)},remove:function(e,t,n){return Zz(e,t,n,!1)}},Xz=yz;var Jz=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,Xz.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},Qz=oz;var eV=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(Qz.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return Jz(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},tV={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},nV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var rV=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(nV(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},oV=rV;var iV=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?oV(!1,"Entity key not found in this range."):oV(!1)),n},aV=tV,sV=iV,cV=rV;function uV(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=sV(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?cV(!1,"There should only be one entity range within this removal range."):cV(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=aV.getRemovalRange(s,c,t.getText().slice(p.start,p.end),p.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var lV=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=uV(e,t,u,o,s,!0,!0);else if(s&&c){var l=uV(e,t,u,o,s,!1,!0),f=uV(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=uV(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=uV(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},fV={},pV=Math.pow(2,24);var dV=function(){for(var e;void 0===e||fV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*pV).toString(32);return fV[e]=!0,e},hV=$z,gV=dV,yV=oz.OrderedMap,vV=function(e){return e.first()instanceof hV?function(e){var t,n={};return yV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=gV();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return yV(e.toArray().map((function(e){var t=gV();return[t,e.set("key",t)]})))}(e)},mV=yz,bV=vz,wV=rV;function xV(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return bV(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?wV(!1,"Removal range must exist within character list."):wV(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,mV.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var _V=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=xV(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=xV(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},CV=vV,SV=_V,OV=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=SV(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return CV(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var kV=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},EV=az,jV=$z,AV=kV,TV=rV,MV=vV,PV=oz.List,DV=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:AV(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},RV=function(e,t,n,r,o,i){var a=n.first()instanceof jV,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=f.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=EV.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],PV(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},IV=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?TV(!1,"`insertFragment` should only be called with a collapsed selection state."):TV(!1));var o=e.getBlockMap(),i=MV(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof jV&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?TV(!1,"`insertFragment` should not be called when a container node is selected."):TV(!1))),1===i.size?DV(e,t,o,i.first(),a,s,r):RV(e,t,o,i,a,s)},NV=kV,LV=rV,BV=oz.Repeat;var FV=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?LV(!1,"`insertText` should only be called with a collapsed range."):LV(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:NV(c.getCharacterList(),BV(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},zV=oz.Map;var VV=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(zV([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},HV=$z,UV=function(e,t){if(!(e instanceof HV))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},KV=$z,WV=UV,$V=oz;$V.List;var qV=$V.Map,GV=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},ZV=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},YV=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},XV=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},JV=function(e,t,n,r){return e.withMutations((function(o){if(GV(t.getKey(),o,(function(e){return e.merge({nextSibling:YV(e,o,r),prevSibling:XV(e,o,r)})})),GV(n.getKey(),o,(function(e){return e.merge({nextSibling:YV(e,o,r),prevSibling:XV(e,o,r)})})),ZV(t.getKey(),r).forEach((function(e){return GV(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:YV(e,o,r),prevSibling:XV(e,o,r)})}))})),GV(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),GV(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:YV(e,o,r)})})),GV(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:XV(e,o,r)})})),GV(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),ZV(n.getKey(),r).forEach((function(e){GV(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:YV(e,o,r),prevSibling:XV(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=WV(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?WV(o,t):null}return n}(n,r).forEach((function(e){return GV(e,o,(function(e){return e.merge({nextSibling:YV(e,o,r),prevSibling:XV(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();GV(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),GV(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){GV(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);GV(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}GV(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},QV=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},eH=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),u=r.get(a),l=c instanceof KV,f=[];if(l){var p=u.getChildKeys(),d=ZV(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(ZV(WV(u,r),r))}n=c===u?QV(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?qV([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(qV([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=JV(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},tH=$z,nH=dV,rH=oz,oH=rV,iH=VV,aH=rH.List,sH=rH.Map,cH=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},uH=yz,lH=Yz,fH=eV,pH=lV,dH=OV,hH=IV,gH=FV,yH=rV,vH=VV,mH=_V,bH=eH,wH=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?oH(!1,"Selection range must be collapsed."):oH(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return iH(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=nH(),l=o instanceof tH,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:sH()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?oH(!1,"ContentBlockNode must not have children"):oH(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();cH(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:aH(i)})})),cH(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),cH(r,e,(function(e){return e.merge({nextSibling:o})})),cH(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},xH=oz.OrderedSet,_H={replaceText:function(e,t,n,r,o){var i=mH(e,t),a=bH(i,t),s=uH.create({style:r||xH(),entity:o||null});return gH(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?yH(!1,"Target range must be collapsed for `insertText`."):yH(!1)),_H.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=dH(e,t),o=_H.removeRange(e,t,"backward");return _H.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=mH(e,t),i=bH(o,t);return hH(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=pH(e.getEntityMap(),i,a,t,n);return bH(e,f)}var p=mH(e,t);return bH(p,t)},splitBlock:function(e,t){var n=mH(e,t),r=bH(n,t);return wH(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return lH.add(e,t,n)},removeInlineStyle:function(e,t,n){return lH.remove(e,t,n)},setBlockType:function(e,t,n){return vH(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return vH(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return vH(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=mH(e,t);return fH(r,t,n)}},CH=_H;var SH=function(e){return Object.keys(e).map((function(t){return e[t]}))};function OH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kH=vz,EH=SH,jH=oz,AH=jH.List,TH=jH.Repeat,MH=jH.Record,PH=function(){return!0},DH=MH({start:null,end:null}),RH=MH({start:null,end:null,decoratorKey:null,leaves:null}),IH={generate:function(e,t,n){var r=t.getLength();if(!r)return AH.of(new RH({start:0,end:0,decoratorKey:null,leaves:AH.of(new DH({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):AH(TH(null,r)),a=t.getCharacterList();return kH(i,LH,PH,(function(e,t){o.push(new RH({start:e,end:t,decoratorKey:i.get(e),leaves:NH(a.slice(e,t).toList(),e)}))})),AH(o)},fromJS:function(e){var t=e.leaves,n=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,["leaves"]);return new RH(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OH(e,t,n[t])}))}return e}({},n,{leaves:null!=t?AH(Array.isArray(t)?t:EH(t)).map((function(e){return DH(e)})):null}))}};function NH(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return kH(r,LH,PH,(function(e,r){n.push(new DH({start:e+t,end:r+t}))})),AH(n)}function LH(e,t){return e===t}var BH=IH;var FH=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,oz.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),zH=FH;var VH=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function HH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UH=zH,KH=rV,WH=VH,$H=(0,oz.Map)(),qH=WH();function GH(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var ZH={getLastCreatedEntityKey:function(){return GH("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),ZH.__getLastCreatedEntityKey()},create:function(e,t,n){return GH("DraftEntity.create","contentState.createEntity"),ZH.__create(e,t,n)},add:function(e){return GH("DraftEntity.add","contentState.addEntity"),ZH.__add(e)},get:function(e){return GH("DraftEntity.get","contentState.getEntity"),ZH.__get(e)},__getAll:function(){return $H},__loadWithEntities:function(e){$H=e,qH=WH()},mergeData:function(e,t){return GH("DraftEntity.mergeData","contentState.mergeEntityData"),ZH.__mergeData(e,t)},replaceData:function(e,t){return GH("DraftEntity.replaceData","contentState.replaceEntityData"),ZH.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return qH},__create:function(e,t,n){return ZH.__add(new UH({type:e,mutability:t,data:n||{}}))},__add:function(e){return qH=WH(),$H=$H.set(qH,e),qH},__get:function(e){var t=$H.get(e);return t||("production"!==process.env.NODE_ENV?KH(!1,"Unknown DraftEntity key: %s.",e):KH(!1)),t},__mergeData:function(e,t){var n=ZH.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HH(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return $H=$H.set(e,o),o},__replaceData:function(e,t){var n=ZH.__get(e).set("data",t);return $H=$H.set(e,n),n}},YH=ZH;var XH=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,oz.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),JH=XH,QH=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},eU=new RegExp("\r","g");var tU=function(e){return e.replace(eU,"")};function nU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rU(e,t,n[t])}))}return e}function rU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oU=az,iU=yz,aU=Mz,sU=$z,cU=YH,uU=JH,lU=dV,fU=SH,pU=QH,dU=oz,hU=tU,gU=dU.List,yU=dU.Record,vU=dU.Repeat,mU=dU.Map,bU=dU.OrderedMap,wU=yU({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),xU=pU("draft_tree_data_support")?sU:aU,_U=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return cU},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return cU.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return cU.__create(e,t,n),this},o.mergeEntityData=function(e,t){return cU.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return cU.__replaceData(e,t),this},o.addEntity=function(e){return cU.__add(e),this},o.getEntity=function(e){return cU.__get(e)},o.getAllEntities=function(){return cU.__getAll()},o.loadWithEntities=function(e){return cU.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=oU.createFromArray(n),i=o.isEmpty()?new uU:uU.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||cU,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),o=n.map((function(e){return e=hU(e),new xU({key:lU(),text:e,type:"unstyled",characterList:gU(vU(iU.EMPTY,e.length))})}));return r.createFromBlockArray(o)},r.fromJS=function(e){return new r(nU({},e,{blockMap:bU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new uU(e.selectionBefore),selectionAfter:new uU(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new xU(nU({},e,{data:mU(e.data),characterList:null!=t?gU((Array.isArray(t)?t:fU(t)).map((function(e){return iU.fromJS(e)}))):void 0}))},r}(wU),CU=_U,SU=rV,OU="LTR",kU=null;function EU(e){return e===OU||"RTL"===e}function jU(e){return EU(e)||("production"!==process.env.NODE_ENV?SU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):SU(!1)),e===OU?"ltr":"rtl"}function AU(e){kU=e}var TU={NEUTRAL:"NEUTRAL",LTR:OU,RTL:"RTL",isStrong:EU,getHTMLDir:jU,getHTMLDirIfDifferent:function(e,t){return EU(e)||("production"!==process.env.NODE_ENV?SU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):SU(!1)),EU(t)||("production"!==process.env.NODE_ENV?SU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):SU(!1)),e===t?null:jU(e)},setGlobalDir:AU,initGlobalDir:function(){AU(OU)},getGlobalDir:function(){return kU||this.initGlobalDir(),kU||("production"!==process.env.NODE_ENV?SU(!1,"Global direction not set."):SU(!1)),kU}},MU=TU,PU=rV,DU="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",RU="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",IU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+DU+RU+"]"),NU=new RegExp("["+DU+RU+"]");function LU(e){var t=IU.exec(e);return null==t?null:t[0]}function BU(e){var t=LU(e);return null==t?MU.NEUTRAL:NU.exec(t)?MU.RTL:MU.LTR}function FU(e,t){if(t=t||MU.NEUTRAL,!e.length)return t;var n=BU(e);return n===MU.NEUTRAL?t:n}function zU(e,t){return t||(t=MU.getGlobalDir()),MU.isStrong(t)||("production"!==process.env.NODE_ENV?PU(!1,"Fallback direction must be a strong direction"):PU(!1)),FU(e,t)}var VU={firstStrongChar:LU,firstStrongCharDir:BU,resolveBlockDir:FU,getDirection:zU,isDirectionLTR:function(e,t){return zU(e,t)===MU.LTR},isDirectionRTL:function(e,t){return zU(e,t)===MU.RTL}};function HU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UU,KU=VU,WU=TU,$U=rV,qU=function(){function e(e){HU(this,"_defaultDir",void 0),HU(this,"_lastDir",void 0),e?WU.isStrong(e)||("production"!==process.env.NODE_ENV?$U(!1,"Default direction must be a strong direction (LTR or RTL)"):$U(!1)):e=WU.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=KU.getDirection(e,this._lastDir),this._lastDir},e}(),GU=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},ZU=qU,YU=oz,XU=GU,JU=YU.OrderedMap;function QU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eK(e,t,n[t])}))}return e}function eK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tK=BH,nK=CU,rK={getDirectionMap:function(e,t){UU?UU.reset():UU=new ZU;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return XU(UU).getDirection(e.getText())})),o=JU(n.keySeq().zip(r));return null!=t&&YU.is(t,o)?t:o}},oK=JH,iK=oz,aK=iK.OrderedSet,sK=iK.Record,cK=iK.Stack,uK=iK.OrderedMap,lK=iK.List,fK=sK({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:cK(),selection:null,treeMap:null,undoStack:cK()}),pK=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(nK.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:cK(),redoStack:cK(),decorator:n||null,selection:oK.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=QU({},e,{treeMap:hK(n,e.decorator),directionMap:rK.getDirectionMap(n)});return new t(new fK(r))},t.fromJS=function(e){return new t(new fK(QU({},e,{directionMap:null!=e.directionMap?uK(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?aK(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?nK.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?cK(e.redoStack.map((function(e){return nK.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new oK(e.selection):e.selection,treeMap:null!=e.treeMap?uK(e.treeMap).map((function(e){return lK(e).map((function(e){return tK.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?cK(e.undoStack.map((function(e){return nK.fromJS(e)}))):e.undoStack,currentContent:nK.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return tK.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):hK(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return tK.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){eK(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return yK(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return yK(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return dK(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),dK(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new oK({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=rK.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||gK(e,r)?(c=c.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(l=null);var p={currentContent:u,directionMap:i,undoStack:c,redoStack:cK(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,p)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=rK.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=rK.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function dK(e,t,n){return pK.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function hK(e,t){return e.getBlockMap().map((function(n){return tK.generate(e,n,t)})).toOrderedMap()}function gK(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function yK(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):aK()}var vK=pK,mK=$z,bK=UV,wK=oz,xK=rV,_K=wK.OrderedMap,CK=wK.List,SK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},OK=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){SK(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),SK(l,e,(function(e){return e.merge({nextSibling:u})})),SK(u,e,(function(e){return e.merge({prevSibling:l})})),SK(p,e,(function(e){return e.merge({prevSibling:a})})),SK(d,e,(function(e){return e.merge({nextSibling:a})})),SK(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:CK(o)})})),SK(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function kK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EK(e,t,n[t])}))}return e}function EK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jK=az,AK=yz,TK=Mz,MK=$z,PK=CH,DK=vK,RK=dV,IK=oz,NK=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?xK(!1,"Replacing blocks is not supported."):xK(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?xK(!1,"Block cannot be moved next to itself."):xK(!1));var a=e.getBlockMap(),s=t instanceof mK,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=bK(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),p=c.map((function(e){return[e.getKey(),e]})),d=_K();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?xK(!1,"Block cannot be moved next to itself."):xK(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?xK(!1,"Block cannot be moved next to itself."):xK(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:OK(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},LK=QH("draft_tree_data_support"),BK=LK?MK:TK,FK=IK.List,zK=IK.Repeat,VK={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=PK.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=PK.splitBlock(i,a),c=s.getSelectionAfter(),u=PK.setBlockType(s,c,"atomic"),l=AK.create({entity:t}),f={key:RK(),type:"atomic",text:n,characterList:FK(zK(l,n.length))},p={key:RK(),type:"unstyled"};LK&&(f=kK({},f,{nextSibling:p.key}),p=kK({},p,{prevSibling:f.key}));var d=[new BK(f),new BK(p)],h=jK.createFromArray(d),g=PK.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return DK.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=NK(i,t,s,r)}else{var c=PK.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=NK(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=NK(c,t,l,"after");else{var f=PK.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=NK(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return DK.push(e,h,"move-block")}};var HK=oz.List,UK=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),HK(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var KK=UK;function WK(e){return e.replace(/\//g,"-")}var $K=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(WK).join(" "):Array.prototype.map.call(arguments,WK).join(" ")},qK=t,GK=$K,ZK=(0,oz.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:qK.createElement("ul",{className:GK("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:qK.createElement("ol",{className:GK("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:qK.createElement("pre",{className:GK("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),YK={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},XK={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",S="Browser",O="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",M="Motorola",P="Opera",D="Samsung",R="Sony",I="Xiaomi",N="Zebra",L="Facebook",B=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},F=function(e,t){return typeof e===s&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===i?e:e.substring(0,255)},H=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},U=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(F(t[n][o],e))return"?"===n?r:n}else if(F(t[n],e))return"?"===n?r:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+S]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,L],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,U,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,z]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,j],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[f,j],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,I],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,I],[l,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[l,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,M],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,M],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,A],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,A],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,R],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,R],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,C],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,_],[l,g]],[/(nexus 9)/i],[c,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,"Sharp"],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,N],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,N],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[l,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[c,[f,R],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,A],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,O+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i],[c,[f,"Sharp"],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,V],[c,V],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,N],[l,m]],[/(quest( 2)?)/i],[c,[f,L],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,U,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,U,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},$=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof $))return new $(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,H.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[d]=r,H.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,H.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,H.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,H.call(e,o,h.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>255?V(e,255):e,this},this.setUA(o),this};$.VERSION="0.7.31",$.BROWSER=B([u,p,"major"]),$.CPU=B([d]),$.DEVICE=B([c,f,l,h,g,v,y,m,b]),$.ENGINE=$.OS=B([u,p]),e.exports&&(t=e.exports=$),t.UAParser=$;var q=typeof n!==i&&(n.jQuery||n.Zepto);if(q&&!q.ua){var G=new $;q.ua=G.getResult(),q.ua.get=function(){return G.getUA()},q.ua.set=function(e){G.setUA(e);var t=G.getResult();for(var n in t)q.ua[n]=t[n]}}}("object"==typeof window?window:s)}({get exports(){return XK},set exports(e){XK=e}},XK);var JK="Unknown",QK={"Mac OS":"Mac OS X"};var eW,tW=(new XK).getResult(),nW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(tW.browser.version),rW={browserArchitecture:tW.cpu.architecture||JK,browserFullVersion:tW.browser.version||JK,browserMinorVersion:nW.minor||JK,browserName:tW.browser.name||JK,browserVersion:tW.browser.major||JK,deviceName:tW.device.model||JK,engineName:tW.engine.name||JK,engineVersion:tW.engine.version||JK,platformArchitecture:tW.cpu.architecture||JK,platformName:(eW=tW.os.name,QK[eW]||eW||JK),platformVersion:tW.os.version||JK,platformFullVersion:tW.os.version||JK},oW=rV,iW=/\./,aW=/\|\|/,sW=/\s+\-\s+/,cW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,uW=/^(\d*)(.*)/;function lW(e,t){var n=e.split(aW);return n.length>1?n.some((function(e){return xW.contains(e,t)})):function(e,t){var n=e.split(sW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?oW(!1,'the "-" operator expects exactly 2 operands'):oW(!1)),1===n.length)return fW(n[0],t);var r=n[0],o=n[1];return yW(r)&&yW(o)||("production"!==process.env.NODE_ENV?oW(!1,'operands to the "-" operator must be simple (no modifiers)'):oW(!1)),fW(">="+r,t)&&fW("<="+o,t)}(e=n[0].trim(),t)}function fW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(iW),r=hW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return pW(n,i);case"<=":return function(e,t){var n=wW(e,t);return-1===n||0===n}(n,i);case">=":return dW(n,i);case">":return function(e,t){return 1===wW(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);gW(i)&&(r[o]=i+1+"");return dW(e,n)&&pW(e,r)}(n,i);default:return function(e,t){return 0===wW(e,t)}(n,i)}}function pW(e,t){return-1===wW(e,t)}function dW(e,t){var n=wW(e,t);return 1===n||0===n}function hW(e){var t=e.split(iW),n=t[0].match(cW);return n||("production"!==process.env.NODE_ENV?oW(!1,"expected regex to match but it did not"):oW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function gW(e){return!isNaN(e)&&isFinite(e)}function yW(e){return!hW(e).modifier}function vW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function mW(e,t){var n=e.match(uW)[1],r=t.match(uW)[1],o=parseInt(n,10),i=parseInt(r,10);return gW(o)&&gW(i)&&o!==i?bW(o,i):bW(e,t)}function bW(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?oW(!1,'"a" and "b" must be of the same type'):oW(!1)),e>t?1:e<t?-1:0}function wW(e,t){for(var n=function(e,t){vW(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return vW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=mW(r[i],o[i]);if(a)return a}return 0}var xW={contains:function(e,t){return lW(e.trim(),t.trim())}},_W=xW,CW=Object.prototype.hasOwnProperty;var SW=function(e,t,n){if(!e)return null;var r={};for(var o in e)CW.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var OW=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},kW=rW,EW=_W;function jW(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,EW.contains(o,t))}function AW(e){return"Windows"===kW.platformName?e.replace(/^\s*NT/,""):e}var TW=SW({isBrowser:function(e){return jW(kW.browserName,kW.browserFullVersion,e)},isBrowserArchitecture:function(e){return jW(kW.browserArchitecture,null,e)},isDevice:function(e){return jW(kW.deviceName,null,e)},isEngine:function(e){return jW(kW.engineName,kW.engineVersion,e)},isPlatform:function(e){return jW(kW.platformName,kW.platformFullVersion,e,AW)},isPlatformArchitecture:function(e){return jW(kW.platformArchitecture,null,e)}},OW);var MW=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var PW=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},DW=PW;var RW=function e(t){if(DW(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},IW=MW,NW=RW;var LW=function(e){for(var t=e;t&&t!==IW(e).documentElement;){var n=NW(t);if(null!=n)return n;t=t.parentNode}return null};var BW=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function FW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zW=TW,VW=LW,HW=BW,UW=rV,KW=GU,WW=oz.Map,$W={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},qW=zW.isBrowser("IE <= 11"),GW=function(){function e(e){var t=this;FW(this,"observer",void 0),FW(this,"container",void 0),FW(this,"mutations",void 0),FW(this,"onCharData",void 0),this.container=e,this.mutations=WW();var n=HW(e);n.MutationObserver&&!qW?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?UW(!1,"Expected target to be an instance of Node"):UW(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,$W):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=WW(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return qW?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=KW(VW(e.target));this.mutations=this.mutations.set(n,t)}},e}(),ZW="-",YW={encode:function(e,t,n){return e+ZW+t+ZW+n},decode:function(e){var t=e.split(ZW).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(ZW),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},XW={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},JW={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var QW=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},e$=rV,t$=QW;var n$=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?e$(!1,"Missing editorNode"):e$(!1)),t$(t.firstChild)||("production"!==process.env.NODE_ENV?e$(!1,"editorNode.firstChild is not an HTMLElement"):e$(!1)),t.firstChild},r$=YW,o$=GU;var i$=function(e,t,n,r,o){var i=o$(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=r$.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=r$.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+o:null,m=i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v;if(m)return i;var b=!1;if(s===f){var w=u.get("end"),x=d.get("end");b=g===h&&x===w?o<n:g<h}else{var _=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();b=_===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:b})},a$=LW,s$=RW,c$=i$,u$=rV,l$=PW,f$=GU;function p$(e,t,n){var r=t,o=a$(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?u$(!1,"Unknown node in selection range."):u$(!1)),e===r)&&(r=r.firstChild,l$(r)||("production"!==process.env.NODE_ENV?u$(!1,"Invalid DraftEditorContents node."):u$(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?u$(!1,"Invalid DraftEditorContents structure."):u$(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(l$(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||s$(e.firstChild));)e=e.firstChild;return e}(r);i=f$(s$(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(s$(s)){var l=function(e){for(;e.lastChild&&(l$(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||s$(e.lastChild));)e=e.lastChild;return e}(s);c=f$(s$(l)),u=d$(l)}else c=f$(o),u=d$(s);return{key:c,offset:u}}function d$(e){var t=e.textContent;return"\n"===t?0:t.length}var h$=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:c$(e,f$(a$(n)),r,f$(a$(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:f$(a$(n)),offset:r},u=p$(t,o,i)):s?(u={key:f$(a$(o)),offset:i},c=p$(t,n,r)):(c=p$(t,n,r),u=p$(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:c$(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},g$=h$;var y$=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:g$(e,t,r,o,i,a)},v$=JW,m$=vK,b$=n$,w$=y$;var x$=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();v$.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=w$(n,b$(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?m$.forceSelection(n,o):m$.acceptSelection(n,o),e.update(n))}};var _$={notEmptyKey:function(e){return null!=e&&""!=e}},C$=_$.notEmptyKey;function S$(e,t){return C$(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var O$=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:S$(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),S$(e.getEntityMap(),n)},k$=GW,E$=CH,j$=YW,A$=vK,T$=XW,M$=x$,P$=n$,D$=y$,R$=O$,I$=GU,N$=TW.isBrowser("IE"),L$=!1,B$=!1,F$=null;var z$,V$,H$={onCompositionStart:function(e){B$=!0,function(e){F$||(F$=new k$(P$(e))).start()}(e)},onCompositionEnd:function(e){L$=!1,B$=!1,setTimeout((function(){L$||H$.resolveComposition(e)}),20)},onSelect:M$,onKeyDown:function(e,t){if(!B$)return H$.resolveComposition(e),void e._onKeyDown(t);t.which!==T$.RIGHT&&t.which!==T$.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===T$.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!B$){var t=I$(F$).stopAndFlushMutations();F$=null,L$=!0;var n=A$.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=j$.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),p=R$(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=E$.replaceText(r,f,e,d,p),n=A$.set(n,{currentContent:r})}));var o=D$(n,P$(e)).selectionState;e.restoreEditorDOM();var i=N$?A$.forceSelection(n,o):A$.acceptSelection(n,o);e.update(A$.push(i,r,"insert-characters"))}else e.update(n)}}},U$=H$;function K$(){if(V$)return z$;V$=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}var r=YW,o=t,i=VU,a=TU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=t.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(y,n({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(o.Component);return z$=s}function W$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q$=t,G$=rV,Z$=PW,Y$=TW.isBrowser("IE <= 11");var X$=function(e){var t,n;function r(t){var n;return $$(W$(n=e.call(this,t)||this),"_forceFlag",void 0),$$(W$(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Z$(t)||("production"!==process.env.NODE_ENV?G$(!1,"node is not an Element"):G$(!1));var r=t;return n?!function(e){return Y$?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},Y$?q$.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):q$.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return Y$?q$.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):q$.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):q$.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(q$.Component),J$=X$,Q$=PW;var eq=function(e){return!(!e||!e.ownerDocument)&&(Q$(e)&&"BR"===e.nodeName)};var tq=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},nq=tq;var rq=function(e){return nq(e)&&3==e.nodeType},oq=rq;var iq=function e(t,n){return!(!t||!n)&&(t===n||!oq(t)&&(oq(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var aq=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},sq=JW,cq=iq,uq=aq,lq=MW,fq=rV,pq=PW,dq=TW.isBrowser("IE");function hq(e,t){if(!e)return"[empty]";var n=gq(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(pq(n)||("production"!==process.env.NODE_ENV?fq(!1,"Node must be an Element if it is not a text node."):fq(!1)),n.outerHTML)}function gq(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return lq(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(gq(i[a],t));return o}function yq(e,t){for(var n=e,r=n;n;){if(pq(n)&&r.hasAttribute("contenteditable"))return hq(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function vq(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function mq(e,t,n,r){var o=uq();if(e.extend&&null!=t&&cq(o,t)){n>vq(t)&&sq.logSelectionStateFailure({anonymizedDom:yq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw sq.logSelectionStateFailure({anonymizedDom:yq(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function bq(e,t,n,r){var o=lq(t).createRange();if(n>vq(t)&&sq.logSelectionStateFailure({anonymizedDom:yq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),dq)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var wq=function(e,t,n,r,o){var i=lq(t);if(cq(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),bq(a,t,c-r,e),void mq(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),bq(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),bq(a,t,c-r,e),mq(a,y,v,e)}}else h&&(a.removeAllRanges(),bq(a,t,c-r,e)),g&&mq(a,t,l-r,e)}},xq=lh;function _q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sq,Oq,kq=J$,Eq=t,jq=rV,Aq=eq,Tq=wq,Mq=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Cq(_q(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?jq(!1,"Missing node"):jq(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?jq(!1,"Missing child"):jq(!1)),u.nodeType===Node.TEXT_NODE?c=u:Aq(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?jq(!1,"Missing targetNode"):jq(!1)),Tq(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?jq(!1,"Missing leafNode"):jq(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),xq(e,r,n)}),{});if(i){var u=i(s,t);c=xq(c,u)}return Eq.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},Eq.createElement(kq,null,n))},r}(Eq.Component),Pq=Mq;function Dq(){if(Oq)return Sq;Oq=1;var e=K$(),n=Pq,r=YW,o=t,i=$K;oz.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(y,i,t),l=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:l,selection:d?h:null,forceSelection:p,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return Sq=a}function Rq(e,t){return!!t&&(e===t.documentElement||e===t.body)}var Iq={getTop:function(e){var t=e.ownerDocument;return Rq(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;Rq(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return Rq(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;Rq(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},Nq=/-(.)/g;var Lq=function(e){return e.replace(Nq,(function(e,t){return t.toUpperCase()}))},Bq=/([A-Z])/g;var Fq=function(e){return e.replace(Bq,"-$1").toLowerCase()},zq=Lq,Vq=Fq;function Hq(e){return null==e?e:String(e)}var Uq=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return Hq(n.getPropertyValue(Vq(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return Hq(n.getPropertyValue(Vq(t)));if("display"===t)return"none"}return e.currentStyle?Hq("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[zq(t)]):Hq(e.style&&e.style[zq(t)])};function Kq(e,t){var n=Wq.get(e,t);return"auto"===n||"scroll"===n}var Wq={get:Uq,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Kq(e,"overflow")||Kq(e,"overflowY")||Kq(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},$q=Wq,qq=iq;var Gq=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!qq(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var Zq=function(e){var t=Gq(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},Yq="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Xq=function(e){return(e=e||document).scrollingElement?e.scrollingElement:Yq||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Jq=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var Qq=function(e){var t=Xq(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Jq(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function eG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function tG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function nG(){return{width:window.innerWidth||eG(),height:window.innerHeight||tG()}}nG.withoutScrollbars=function(){return{width:eG(),height:tG()}};var rG,oG,iG,aG,sG=nG;function cG(){if(oG)return rG;oG=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=Dq(),s=YW,c=t,u=Iq,l=$q,f=Zq,p=Qq,d=sG,h=rV,g=QW;oz.List;var y=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},m=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},b=function(e,t,n,r,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=r(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=o({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var t,w;function x(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return i(r(t=e.call.apply(e,[this].concat(o))||this),"wrapperRef",c.createRef()),t}w=e,(t=x).prototype=Object.create(w.prototype),t.prototype.constructor=t,t.__proto__=w;var _=x.prototype;return _.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return i||a},_.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=p(o);if(o===window){var a=f(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{g(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}},_.render=function(){var e=this,t=this.props,r=t.block,i=t.blockRenderMap,u=t.blockRendererFn,l=t.blockStyleFn,f=t.contentState,p=t.decorator,d=t.editorKey,h=t.editorState,g=t.customStyleFn,w=t.customStyleMap,_=t.direction,C=t.forceSelection,S=t.selection,O=t.tree,k=null;r.children.size&&(k=r.children.reduce((function(t,n){var r=s.encode(n,0,0),a=f.getBlockForKey(n),p=m(a,u),g=p.CustomComponent||x,y=v(a,i),w=y.Element,_=y.wrapperTemplate,C=b(a,d,r,l,p,null),S=o({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:r,block:a});return t.push(c.createElement(w,C,c.createElement(g,S))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(a,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(c.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":s.encode(d,0,0)},p))}(_,w,t),t}),[]));var E=r.getKey(),j=s.encode(E,0,0),A=m(r,u),T=A.CustomComponent,M=null!=T?c.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:r})):c.createElement(a,{block:r,children:k,contentState:f,customStyleFn:g,customStyleMap:w,decorator:p,direction:_,forceSelection:C,hasSelection:y(S,E),selection:S,tree:O});if(r.getParentKey())return M;var P=v(r,i).Element,D=b(r,d,j,l,A,this.wrapperRef);return c.createElement(P,D,M)},x}(c.Component);return rG=w}var uG=lh;function lG(){return lG=uG||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},lG.apply(this,arguments)}function fG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dG,hG,gG,yG,vG=Pq,mG=YW,bG=t,wG=Iq,xG=$q,_G=VU,CG=TU,SG=$K,OG=Zq,kG=Qq,EG=sG,jG=rV,AG=QW,TG=GU,MG=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},PG=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pG(fG(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||MG(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=xG.getScrollParent(n),i=kG(o);if(o===window){var a=OG(n);(r=a.y+a.height-EG().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{AG(n)||("production"!==process.env.NODE_ENV?jG(!1,"blockNode is not an HTMLElement"):jG(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&wG.setTop(o,wG.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=MG(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var u=c.size-1,l=c.map((function(a,c){var l=mG.encode(n,s,c),f=a.get("start"),p=a.get("end");return bG.createElement(vG,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=TG(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=mG.encode(n,s,0),y=c.first().get("start"),v=c.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=CG.getHTMLDirIfDifferent(_G.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:y,end:v,blockKey:n,entityKey:b,offsetKey:g};return bG.createElement(d,lG({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=SG({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return bG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(bG.Component),DG=PG;var RG=QH("draft_tree_data_support")?function(){if(aG)return iG;aG=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}var r=cG(),o=YW,i=t,a=GU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var u=c.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},_)),wrapperTemplate:C,key:x,offsetKey:o.encode(x,0,0)});var S=w.getNextSiblingKey();w=S?h.getBlockForKey(S):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return iG=s}():function(){if(yG)return gG;yG=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=DG,a=YW,s=t,c=$K,u=(hG||(hG=1,dG=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),dG),l=GU,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var p=c.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),S=[],O=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,R=void 0;M&&(P=M.component,D=M.props,R=M.editable);var I=v||_.get(A),N=a.encode(A,0,0),L={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:I,forceSelection:w,offsetKey:N,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,V=j.getDepth(),H="";if(c&&(H=c(j)),"li"===z)H=u(H,f(T,V,k!==F||null===O||V>O,I));var U=P||i,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":N,key:A};void 0!==R&&(K=r({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var W=s.createElement(z,K,s.createElement(U,n({},L,{key:A})));S.push({block:W,wrapperTemplate:F,key:A,offsetKey:N}),O=F?j.getDepth():null,k=F}for(var $=[],q=0;q<S.length;){var G=S[q];if(G.wrapperTemplate){var Z=[];do{Z.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===G.wrapperTemplate);var Y=s.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);$.push(Y)}else $.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},$)},c}(s.Component);return gG=p}(),IG={isImage:function(e){return"image"===NG(e)[0]},isJpeg:function(e){var t=NG(e);return IG.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function NG(e){return e.split("/")}var LG=IG,BG=rV;var FG=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?BG(!1,"toArray: Array-like object expected"):BG(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?BG(!1,"toArray: Object needs a length property"):BG(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?BG(!1,"toArray: Object should have keys for indices"):BG(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?BG(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):BG(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function zG(e){return function(){return e}}var VG=function(){};VG.thatReturns=zG,VG.thatReturnsFalse=zG(!1),VG.thatReturnsTrue=zG(!0),VG.thatReturnsNull=zG(null),VG.thatReturnsThis=function(){return this},VG.thatReturnsArgument=function(e){return e};var HG=VG,UG=LG,KG=FG,WG=HG,$G=new RegExp("\r\n","g"),qG={"text/rtf":1,"text/html":1};function GG(e){if("file"==e.kind)return e.getAsFile()}var ZG=function(){function e(e){this.data=e,this.types=e.types?KG(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return qG[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace($G,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!UG.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(GG).filter(WG.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),YG=ZG,XG=rV,JG=/\.textClipping$/,QG={"text/plain":!0,"text/html":!0,"text/rtf":!0};var eZ=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!s.FileReader||e.type&&!(e.type in QG))return void t("");if(""===e.type){var n="";return JG.test(e.name)&&(n=e.name.replace(JG,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?XG(!1,'We should be calling "FileReader.readAsText" which returns a string'):XG(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var tZ=function(e){return"handled"===e||!0===e},nZ=YG,rZ=CH,oZ=vK,iZ=LW,aZ=MW,sZ=eZ,cZ=i$,uZ=BW,lZ=tZ,fZ=GU;var pZ={onDragEnd:function(e){e.exitCurrentMode(),dZ(e)},onDrop:function(e,t){var n=new nZ(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=aZ(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=fZ(n),r=fZ(r);var a=fZ(iZ(n));return cZ(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&lZ(e.props.handleDroppedFiles(o,i)))return;sZ(i,(function(t){t&&e.update(hZ(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&lZ(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=rZ.moveText(e.getCurrentContent(),e.getSelection(),t);return oZ.push(e,n,"insert-fragment")}(r,o)):e.update(hZ(r,o,n.getText()))),dZ(e)}}}};function dZ(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:uZ(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function hZ(e,t,n){var r=rZ.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return oZ.push(e,r,"insert-fragment")}var gZ=pZ;var yZ=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?s:self);var vZ=s.setImmediate,mZ=CH,bZ=vK,wZ=O$,xZ=tZ,_Z=yZ,CZ=GU,SZ=vZ,OZ=TW.isBrowser("Firefox");function kZ(e,t,n,r,o){var i=mZ.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return bZ.push(e,i,"insert-characters",o)}var EZ=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&xZ(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(kZ(n,r,n.getCurrentInlineStyle(),wZ(n.getCurrentContent(),n.getSelection()),!0));var s,c=kZ(n,r,n.getCurrentInlineStyle(),wZ(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=_Z(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),u=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=OZ&&("'"==s||"/"==s)),u||(u=CZ(c.getDirectionMap()).get(a)!==CZ(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=bZ.set(c,{forceSelection:!0}),void e.update(c);c=bZ.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,SZ((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},jZ=vK,AZ=iq,TZ=aq;var MZ=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&TZ(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&AZ(o,r.anchorNode)&&AZ(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(jZ.acceptSelection(i,s))}},PZ=vK;var DZ=function(e,t){e.setMode("composite"),e.update(PZ.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},RZ=OV;var IZ=function(e){var t=e.getSelection();return t.isCollapsed()?null:RZ(e.getCurrentContent(),t)},NZ=IZ;var LZ=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(NZ(e._latestEditorState))};var BZ=CH,FZ=vK,zZ=$q,VZ=IZ,HZ=Qq,UZ=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var KZ=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(UZ(i)){var a=i;n=HZ(zZ.getScrollParent(a))}var s=VZ(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=BZ.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return FZ.push(e,t,"remove-range")}(r))}),0)}};var WZ=function(e,t){e.setMode("drag"),t.preventDefault()};var $Z=function(e){e._internalDrag=!0,e.setMode("drag")},qZ=vK,GZ=TW;var ZZ=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),GZ.isBrowser("Chrome < 60.0.3081.0")?e.update(qZ.forceSelection(n,o)):e.update(qZ.acceptSelection(n,o))}},YZ=rV,XZ=/[\uD800-\uDFFF]/;function JZ(e){return 55296<=e&&e<=57343}function QZ(e){return XZ.test(e)}function eY(e,t){return 1+JZ(e.charCodeAt(t))}function tY(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!QZ(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=eY(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=eY(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=eY(e,i);return e.substring(o,i)}var nY={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=eY(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:eY,hasSurrogateUnit:QZ,isCodeUnitInSurrogateRange:JZ,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?YZ(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):YZ(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(e){if(!QZ(e))return e.length;for(var t=0,n=0;n<e.length;n+=eY(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return tY(e,t=t<n?t:n,r)},substr:tY},rY=nY,oY=HG;function iY(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var aY="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];iY.apply(void 0,[t].concat(r))}}:oY,sY=aY,cY=sY;var uY=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&cY(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},lY=CH,fY=QH("draft_tree_data_support");var pY=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(fY&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(fY)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return lY.removeRange(o,i,n)},dY=vK,hY=rY,gY=uY,yY=pY;var vY=function(e){var t=yY(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return gY(e,i?hY.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return dY.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},mY=CH,bY=YW,wY=vK,xY=_$.notEmptyKey,_Y=LW,CY=vY,SY=GU,OY=TW.isEngine("Gecko");var kY=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,u=e._latestEditorState,l=SY(_Y(r)),f=bY.decode(l),p=f.blockKey,d=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(p).getIn([d,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(p),w=b.getText().slice(y,v);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,_,C,S,O=u.getSelection(),k=O.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=xY(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=mY.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(OY)x=n.anchorOffset,_=n.focusOffset,S=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=S;else{var P=c.length-w.length;C=O.getStartOffset(),S=O.getEndOffset(),x=o?S+P:C,_=S+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:_})});e.update(wY.push(u,D,T))}else{var R=t.nativeEvent.inputType;if(R){var I=function(e,t){return"deleteContentBackward"===e?CY(t):t}(R,u);if(I!==u)return e.restoreEditorDOM(),void e.update(I)}}}},EY=XW;var jY=function(e){return e.which===EY.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},AY=jY,TY=TW.isPlatform("Mac OS X"),MY={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return TY&&e.altKey},usesMacOSHeuristics:function(){return TY},hasCommandModifier:function(e){return TY?!!e.metaKey&&!e.altKey:MY.isCtrlKeyCommand(e)},isSoftNewlineEvent:AY},PY=MY,DY=CH,RY=vK,IY=OV,NY=GU,LY=null,BY={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=NY(r),LY=IY(t,r);var s=DY.removeRange(t,r,"forward");return s===t?e:RY.push(e,s,"remove-range")},paste:function(e){if(!LY)return e;var t=DY.replaceWithFragment(e.getCurrentContent(),e.getSelection(),LY);return RY.push(e,t,"insert-fragment")}},FY=rV;var zY=TW.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?FY(!1,"Found an unexpected detached subtree when getting range client rects."):FY(!1)}:function(e){return Array.from(e.getClientRects())},VY=zY,HY=rY,UY=MW,KY=VY,WY=rV;function $Y(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function qY(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var GY=function(e){e.collapsed||("production"!==process.env.NODE_ENV?WY(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):WY(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=UY(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?WY(!1,"Missing document.body"):WY(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);$Y(KY(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?WY(!1,"Found unexpected detached subtree when traversing."):WY(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&HY.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!$Y(KY(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=qY(i=i.childNodes[c])}return e.setStart(r,o),e},ZY=vK,YY=GY,XY=h$,JY=uY,QY=pY;var eX=function(e,t){var n=QY(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return JY(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=YY(r),XY(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:ZY.push(e,n,"remove-range")},tX="['‘’]",nX="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),rX=new RegExp("^(?:"+nX+")*(?:"+tX+"|(?!"+nX+").)*(?:(?!"+nX+").)"),oX=new RegExp("(?:(?!"+nX+").)(?:"+tX+"|(?!"+nX+").)*(?:"+nX+")*$");function iX(e,t){var n=t?oX.exec(e):rX.exec(e);return n?n[0]:e}var aX={getBackward:function(e){return iX(e,!0)},getForward:function(e){return iX(e,!1)}},sX=aX,cX=vK,uX=uY,lX=pY;var fX=sY;var pX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&fX(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},dX=aX,hX=vK,gX=pX,yX=pY;var vX=CH,mX=vK;var bX=vK;var wX=vK;var xX=vK,_X=rY,CX=pX,SX=pY;var OX=CH,kX=vK,EX=OV;var jX=vK;var AX=function(e,t,n){var r=jX.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(jX.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(jX.set(r,{nativelyRenderedContent:o}))}},TX=CH,MX=vK,PX=XW,DX=BY,RX=TW,IX=tZ,NX=eX,LX=function(e){var t=lX(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return uX(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=sX.getBackward(o);return uX(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:cX.push(e,t,"remove-range")},BX=function(e){var t=yX(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=dX.getForward(o);return gX(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:hX.push(e,t,"remove-range")},FX=function(e){var t=vX.splitBlock(e.getCurrentContent(),e.getSelection());return mX.push(e,t,"split-block")},zX=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return bX.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},VX=function(e){var t=e.getSelection(),n=t.getStartKey();return wX.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},HX=vY,UX=function(e){var t=SX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return CX(e,i?_X.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return xX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},KX=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=EX(a,r),u=OX.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=OX.replaceWithFragment(u,p,c),h=kX.push(e,d,"insert-fragment");return kX.acceptSelection(h,o)},WX=AX,$X=PY.isOptionKeyCommand,qX=RX.isBrowser("Chrome");var GX=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case PX.RETURN:if(t.preventDefault(),e.props.handleReturn&&IX(e.props.handleReturn(t,r)))return;break;case PX.ESC:if(t.preventDefault(),o("onEscape"))return;break;case PX.TAB:if(o("onTab"))return;break;case PX.UP:if(o("onUpArrow"))return;break;case PX.RIGHT:if(o("onRightArrow"))return;break;case PX.DOWN:if(o("onDownArrow"))return;break;case PX.LEFT:if(o("onLeftArrow"))return;break;case PX.SPACE:qX&&$X(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!IX(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return MX.redo(t);case"delete":return UX(t);case"delete-word":return BX(t);case"backspace":return HX(t);case"backspace-word":return LX(t);case"backspace-to-start-of-line":return NX(t,n);case"split-block":return FX(t);case"transpose-characters":return KX(t);case"move-selection-to-start-of-block":return VX(t);case"move-selection-to-end-of-block":return zX(t);case"secondary-cut":return DX.cut(t);case"secondary-paste":return DX.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else WX(t,r,e.update);else if(n===PX.SPACE&&qX&&$X(t)){var s=TX.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(MX.push(r,s,"insert-characters"))}};var ZX=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),YX=ZX,XX=rV,JX=TW.isBrowser("IE <= 9");var QX=function(e){var t,n=null;return!JX&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?XX(!1,"Missing doc.documentElement"):XX(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},eJ=PW;var tJ=function(e){return!(!e||!e.ownerDocument)&&(eJ(e)&&"A"===e.nodeName)},nJ=PW;var rJ,oJ=function(e){return!(!e||!e.ownerDocument)&&(nJ(e)&&"IMG"===e.nodeName)};function iJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aJ(e,t,n[t])}))}return e}function aJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sJ=yz,cJ=Mz,uJ=$z,lJ=ZK,fJ=YH,pJ=YX,dJ=$K,hJ=dV,gJ=QX,yJ=QH,vJ=oz,mJ=vJ.List,bJ=vJ.Map,wJ=vJ.OrderedSet,xJ=tJ,_J=eq,CJ=QW,SJ=oJ,OJ=yJ("draft_tree_data_support"),kJ=new RegExp("\r","g"),EJ=new RegExp("\n","g"),jJ=new RegExp("^\n","g"),AJ=new RegExp("&nbsp;","g"),TJ=new RegExp("&#13;?","g"),MJ=new RegExp("&#8203;?","g"),PJ=["bold","bolder","500","600","700","800","900"],DJ=["light","lighter","normal","100","200","300","400"],RJ=["className","href","rel","target","title"],IJ=["alt","className","height","src","width"],NJ=(aJ(rJ={},dJ("public/DraftStyleDefault/depth0"),0),aJ(rJ,dJ("public/DraftStyleDefault/depth1"),1),aJ(rJ,dJ("public/DraftStyleDefault/depth2"),2),aJ(rJ,dJ("public/DraftStyleDefault/depth3"),3),aJ(rJ,dJ("public/DraftStyleDefault/depth4"),4),rJ),LJ=bJ({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),BJ=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),bJ(t)},FJ=function(e){if(CJ(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},zJ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(NJ).some((function(n){e.classList.contains(n)&&(t=NJ[n])})),t},VJ=function(e){if(!xJ(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new pJ(t.href);return!0}catch(e){return!1}},HJ=function(e){if(!SJ(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},UJ=function(e,t){if(!CJ(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){PJ.indexOf(r)>=0?e.add("BOLD"):DJ.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},KJ=function(e){return"ul"===e||"ol"===e},WJ=function(){function e(e,t){aJ(this,"characterList",mJ()),aJ(this,"currentBlockType","unstyled"),aJ(this,"currentDepth",0),aJ(this,"currentEntity",null),aJ(this,"currentText",""),aJ(this,"wrapper",null),aJ(this,"blockConfigs",[]),aJ(this,"contentBlocks",[]),aJ(this,"entityMap",fJ),aJ(this,"blockTypeMap",void 0),aJ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=mJ(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=fJ,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],wJ())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(OJ?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||hJ(),n=iJ({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:mJ(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=mJ(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||KJ(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;KJ(i)&&(this.wrapper=i,KJ(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(HJ(o))this._addImgNode(o,t);else if(VJ(o))this._addAnchorNode(o,n,t);else{var u=t;LJ.has(i)&&(u=u.add(LJ.get(i))),u=UJ(o,u);var l=FJ(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!OJ&&CJ(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=zJ(d,this.currentDepth)}var h=hJ(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=sJ.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=mJ()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(jJ,"")).replace(EJ," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){_J(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(SJ(e)){var n=e,r={};IJ.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),yJ("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(xJ(e)){var r=e,o={};RJ.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new pJ(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=mJ(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new uJ(iJ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return mJ(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new cJ(iJ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=mJ(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),$J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gJ,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lJ,r=t(e=e.trim().replace(kJ,"").replace(AJ," ").replace(TJ,"").replace(MJ,""));if(!r)return null;var o=BJ(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new WJ(o,i).addDOMNode(r).getContentBlocks()};function qJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GJ=Mz,ZJ=$z,YJ=$J,XJ=dV,JJ=QX,QJ=QH,eQ=oz,tQ=tU,nQ=eQ.List,rQ=eQ.Repeat,oQ=QJ("draft_tree_data_support"),iQ=oQ?ZJ:GJ,aQ={processHTML:function(e,t){return YJ(e,JJ,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=tQ(r);var i=XJ(),a={key:i,type:n,text:r,characterList:nQ(rQ(t,r.length))};if(oQ&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qJ(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new iQ(a)),e}),[])}};var sQ=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},cQ=CH,uQ=vK,lQ=sQ,fQ=GU,pQ={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return pQ.toggleInlineStyle(e,"BOLD");case"italic":return pQ.toggleInlineStyle(e,"ITALIC");case"underline":return pQ.toggleInlineStyle(e,"UNDERLINE");case"code":return pQ.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return pQ.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return pQ.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=cQ.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=uQ.push(e,t,"insert-characters");return uQ.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return uQ.push(e,a,"remove-range")}var s=pQ.tryToRemoveBlockStyle(e);return s?uQ.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=cQ.removeRange(n,a,"forward");return s!==n?uQ.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=lQ(i,r,e.shiftKey?-1:1,n);return uQ.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=fQ(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return uQ.push(e,cQ.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?pQ.toggleBlockType(e,"code-block"):pQ.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return uQ.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?cQ.removeInlineStyle(i,n,t):cQ.applyInlineStyle(i,n,t),uQ.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=cQ.applyEntity(e.getCurrentContent(),t,n);return uQ.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return cQ.setBlockType(o,t,"unstyled")}return null}},dQ=pQ,hQ=/\r\n?|\n/g;var gQ=az,yQ=yz,vQ=YG,mQ=CH,bQ=aQ,wQ=vK,xQ=dQ,_Q=O$,CQ=eZ,SQ=tZ,OQ=function(e){return e.split(hQ)};function kQ(e,t,n){var r=mQ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return wQ.push(e,r.set("entityMap",n),"insert-fragment")}var EQ=function(e,t){t.preventDefault();var n=new vQ(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&SQ(e.props.handlePastedFiles(r)))return;return void CQ(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=OQ(t),i=yQ.create({style:n.getCurrentInlineStyle(),entity:_Q(n.getCurrentContent(),n.getSelection())}),a=xQ.getCurrentBlockType(n),s=bQ.processText(r,i,a),c=gQ.createFromArray(s),u=mQ.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(wQ.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!SQ(e.props.handlePastedText(a,s,c))){if(a&&(i=OQ(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(kQ(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(kQ(e._latestEditorState,f));if(s){var p=bQ.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=gQ.createFromArray(d);return void e.update(kQ(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=yQ.create({style:c.getCurrentInlineStyle(),entity:_Q(c.getCurrentContent(),c.getSelection())}),v=xQ.getCurrentBlockType(c),m=bQ.processText(i,y,v),b=gQ.createFromArray(m);e.update(kQ(e._latestEditorState,b))}}},jQ=TW,AQ=EZ,TQ=MZ,MQ=DZ,PQ=LZ,DQ=KZ,RQ=WZ,IQ=$Z,NQ=ZZ,LQ=kY,BQ=GX,FQ=EQ,zQ=x$,VQ=jQ.isBrowser("Chrome"),HQ=jQ.isBrowser("Firefox"),UQ=VQ||HQ?zQ:function(e){},KQ={onBeforeInput:AQ,onBlur:TQ,onCompositionStart:MQ,onCopy:PQ,onCut:DQ,onDragOver:RQ,onDragStart:IQ,onFocus:NQ,onInput:LQ,onKeyDown:BQ,onPaste:FQ,onSelect:zQ,onMouseUp:UQ,onKeyUp:UQ},WQ=r.unstable_flushControlled;var $Q=t,qQ=$K,GQ=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=qQ({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return $Q.createElement("div",{className:t},$Q.createElement("div",{className:qQ("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}($Q.Component),ZQ=GQ,YQ=PY,XQ=XW,JQ=TW,QQ=JQ.isPlatform("Mac OS X"),e1=QQ&&JQ.isBrowser("Firefox < 29"),t1=YQ.hasCommandModifier,n1=YQ.isCtrlKeyCommand;function r1(e){return QQ&&e.altKey||n1(e)}var o1=function(e){switch(e.keyCode){case 66:return t1(e)?"bold":null;case 68:return n1(e)?"delete":null;case 72:return n1(e)?"backspace":null;case 73:return t1(e)?"italic":null;case 74:return t1(e)?"code":null;case 75:return QQ&&n1(e)?"secondary-cut":null;case 77:case 79:return n1(e)?"split-block":null;case 84:return QQ&&n1(e)?"transpose-characters":null;case 85:return t1(e)?"underline":null;case 87:return QQ&&n1(e)?"backspace-word":null;case 89:return n1(e)?QQ?"secondary-paste":"redo":null;case 90:return function(e){return t1(e)?e.shiftKey?"redo":"undo":null}(e)||null;case XQ.RETURN:return"split-block";case XQ.DELETE:return function(e){return!QQ&&e.shiftKey?null:r1(e)?"delete-word":"delete"}(e);case XQ.BACKSPACE:return function(e){return t1(e)&&QQ?"backspace-to-start-of-line":r1(e)?"backspace-word":"backspace"}(e);case XQ.LEFT:return e1&&t1(e)?"move-selection-to-start-of-block":null;case XQ.RIGHT:return e1&&t1(e)?"move-selection-to-end-of-block":null;default:return null}},i1=lh;function a1(){return a1=i1||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},a1.apply(this,arguments)}function s1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u1(e,t,n[t])}))}return e}function c1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var f1=ZK,p1=YK,d1=U$,h1=RG,g1=gZ,y1=KQ,v1=WQ,m1=ZQ,b1=vK,w1=t,x1=Iq,_1=$q,C1=$K,S1=dV,O1=o1,k1=Qq,E1=QH,j1=rV,A1=QW,T1=GU,M1=TW.isBrowser("IE"),P1=!M1,D1={edit:y1,composite:d1,drag:g1,cut:null,render:null},R1=!1,I1=function(e){function t(){return e.apply(this,arguments)||this}l1(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(w1.Component),N1=function(e){function t(t){var n;return u1(c1(n=e.call(this,t)||this),"_blockSelectEvents",void 0),u1(c1(n),"_clipboard",void 0),u1(c1(n),"_handler",void 0),u1(c1(n),"_dragCount",void 0),u1(c1(n),"_internalDrag",void 0),u1(c1(n),"_editorKey",void 0),u1(c1(n),"_placeholderAccessibilityID",void 0),u1(c1(n),"_latestEditorState",void 0),u1(c1(n),"_latestCommittedEditorState",void 0),u1(c1(n),"_pendingStateFromBeforeInput",void 0),u1(c1(n),"_onBeforeInput",void 0),u1(c1(n),"_onBlur",void 0),u1(c1(n),"_onCharacterData",void 0),u1(c1(n),"_onCompositionEnd",void 0),u1(c1(n),"_onCompositionStart",void 0),u1(c1(n),"_onCopy",void 0),u1(c1(n),"_onCut",void 0),u1(c1(n),"_onDragEnd",void 0),u1(c1(n),"_onDragOver",void 0),u1(c1(n),"_onDragStart",void 0),u1(c1(n),"_onDrop",void 0),u1(c1(n),"_onInput",void 0),u1(c1(n),"_onFocus",void 0),u1(c1(n),"_onKeyDown",void 0),u1(c1(n),"_onKeyPress",void 0),u1(c1(n),"_onKeyUp",void 0),u1(c1(n),"_onMouseDown",void 0),u1(c1(n),"_onMouseUp",void 0),u1(c1(n),"_onPaste",void 0),u1(c1(n),"_onSelect",void 0),u1(c1(n),"editor",void 0),u1(c1(n),"editorContainer",void 0),u1(c1(n),"focus",void 0),u1(c1(n),"blur",void 0),u1(c1(n),"setMode",void 0),u1(c1(n),"exitCurrentMode",void 0),u1(c1(n),"restoreEditorDOM",void 0),u1(c1(n),"setClipboard",void 0),u1(c1(n),"getClipboard",void 0),u1(c1(n),"getEditorKey",void 0),u1(c1(n),"update",void 0),u1(c1(n),"onDragEnter",void 0),u1(c1(n),"onDragLeave",void 0),u1(c1(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),u1(c1(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=_1.getScrollParent(o),a=e||k1(i),s=a.x,c=a.y;A1(o)||("production"!==process.env.NODE_ENV?j1(!1,"editorNode is not an HTMLElement"):j1(!1)),o.focus(),i===window?window.scrollTo(s,c):x1.setTop(i,c),r||n.update(b1.forceSelection(t,t.getSelection()))}})),u1(c1(n),"blur",(function(){var e=n.editor;e&&(A1(e)||("production"!==process.env.NODE_ENV?j1(!1,"editorNode is not an HTMLElement"):j1(!1)),e.blur())})),u1(c1(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=s1({},D1.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=s1({},D1,{edit:a});n._handler=s[e]})),u1(c1(n),"exitCurrentMode",(function(){n.setMode("edit")})),u1(c1(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),u1(c1(n),"setClipboard",(function(e){n._clipboard=e})),u1(c1(n),"getClipboard",(function(){return n._clipboard})),u1(c1(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),u1(c1(n),"onDragEnter",(function(){n._dragCount++})),u1(c1(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||S1(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}l1(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(v1?v1((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:T1(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return w1.createElement(m1,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=C1({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",d="combobox"===p?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:s1({},p1,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return w1.createElement("div",{className:f},this._renderPlaceholder(),w1.createElement("div",{className:C1("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},w1.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:d,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:C1({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:p,spellCheck:P1&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},w1.createElement(I1,{editor:this,editorState:a}),w1.createElement(h1,a1({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!R1&&E1("draft_ods_enabled")&&(R1=!0),this.setMode("edit"),M1&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):s.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(w1.Component);u1(N1,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:f1,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O1,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var L1=N1,B1={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},F1=B1,z1=rY.strlen;var V1=rY,H1=vz,U1=function(e,t){return e===t},K1=function(e){return!!e},W1=[];var $1=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return H1(o,U1,K1,(function(t,o){var i=e.getText();r.push({offset:V1.strlen(i.slice(0,t)),length:V1.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(W1,n.toJS())};function q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G1=Mz,Z1=$z,Y1=B1,X1=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:z1(i.slice(0,r)),length:z1(i.slice(r,o)),key:Number(t[F1.stringify(a)])})})),n},J1=$1,Q1=rV,e0=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:J1(e),entityRanges:X1(e,t),data:e.getData().toObject()}},t0=function(e,t,n,r){if(e instanceof G1)n.push(e0(e,t));else{e instanceof Z1||("production"!==process.env.NODE_ENV?Q1(!1,"block is not a BlockNode"):Q1(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){q1(e,t,n[t])}))}return e}({},e0(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},n0=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=Y1.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),t0(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(Y1.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function r0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o0(e,t,n[t])}))}return e}function o0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i0=dV,a0=rV,s0=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c0={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?a0(!1,"Invalid raw state"):a0(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?a0(!1,"Invalid tree raw block"):a0(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=r0({},e);s0(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r0({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,r0({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=s0(e),o=e.depth||0,i=r0({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:i0(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),r0({},e,{blocks:t})}},u0=sY,l0={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&u0(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&u0(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&u0(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&u0(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&u0(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&u0(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&u0(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&u0(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&u0(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},f0=l0,p0=yz,d0=oz.List;var h0=function(e,t){var n=e.map((function(e,n){var r=t[n];return p0.create({style:e,entity:r})}));return d0(n)},g0=rY.substr;var y0=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=g0(e,0,t.offset).length,o=r+g0(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},v0=rY,m0=oz.OrderedSet,b0=v0.substr,w0=m0();var x0=function(e,t){var n=Array(e.length).fill(w0);return t&&t.forEach((function(t){for(var r=b0(e,0,t.offset).length,o=r+b0(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function _0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){C0(e,t,n[t])}))}return e}function C0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S0=Mz,O0=$z,k0=CU,E0=YH,j0=c0,A0=f0,T0=JH,M0=h0,P0=y0,D0=x0,R0=dV,I0=oz,N0=rV,L0=QH("draft_tree_data_support"),B0=I0.List,F0=I0.Map,z0=I0.OrderedMap,V0=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||R0(),data:F0(o),characterList:H0(e,t)}},H0=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return M0(D0(n,o||[]),P0(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return _0({},e,{key:t[e.key]})}))))},U0=function(e){return _0({},e,{key:e.key||R0()})},K0=function(e,t,n){var r=t.map((function(e){return _0({},e,{parentRef:n})}));return e.concat(r.reverse())},W0=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=L0&&!n?j0.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!L0)return function(e,t){return z0(e.map((function(e){var n=new S0(V0(e,t));return[n.getKey(),n]})))}(n?j0.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(U0).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?N0(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):N0(!1));var i=r.children.map(U0),a=new O0(_0({},V0(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:B0(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=K0([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?N0(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):N0(!1));break}var d=c.children.map(U0),h=new O0(_0({},V0(c,t),{parent:u.getKey(),children:B0(d.map((function(e){return e.key}))),prevSibling:0===f?null:l.get(f-1),nextSibling:f===l.size-1?null:l.get(f+1)}));n=n.set(h.getKey(),h),s=K0(s,d,h)}return n}),z0())}(r,t);return"production"!==process.env.NODE_ENV&&(A0.isValidTree(o)||("production"!==process.env.NODE_ENV?N0(!1,"Should be a valid tree"):N0(!1))),o},$0=VY;var q0=function(e){var t=$0(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},G0=q0;var Z0=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=G0(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},Y0={Editor:L1,EditorBlock:DG,EditorState:vK,CompositeDecorator:KK,Entity:YH,EntityInstance:zH,BlockMapBuilder:az,CharacterMetadata:yz,ContentBlock:Mz,ContentState:CU,RawDraftContentState:{},SelectionState:JH,AtomicBlockUtils:VK,KeyBindingUtil:PY,Modifier:CH,RichUtils:dQ,DefaultDraftBlockRenderMap:ZK,DefaultDraftInlineStyle:YK,convertFromHTML:$J,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?N0(!1,"invalid RawDraftContentState"):N0(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=E0.__create(o,i,a||{})})),n}(e),n=W0(e,t),r=n.isEmpty()?new T0:T0.createEmpty(n.first().getKey());return new k0({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:n0,genKey:dV,getDefaultKeyBinding:o1,getVisibleSelectionRect:Z0};const X0="FOUND_FIELD",J0="NOT_FOUND",Q0="IMMUTABLE",e2=J.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),t2=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},n2=new Y0.CompositeDecorator([{strategy:(e,t,n)=>t2(e,t,n,X0),component:({children:t})=>e.jsx(e2,{children:t})},{strategy:(e,t,n)=>t2(e,t,n,J0),component:({children:t})=>e.jsx(e2,Object.assign({error:!0},{children:t}))}]),r2=(e,t,n)=>{const r=ut.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},o2=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=ut.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=r2(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?X0:J0,mutability:Q0,data:{id:i}}}o.text+=a}return Y0.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return Y0.EditorState.createWithContent(r,n2)},i2=(e,t=!0)=>{const n=e.getCurrentContent(),r=Y0.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=ut.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},a2=e=>{const t=i2(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},s2=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new Y0.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return Y0.EditorState.forceSelection(e,o)},c2=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:s,onFocus:c,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:p,height:d,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:S,backgroundColor:O,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P}=n,D=a(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,I]=t.useState((()=>o2(o,l,m))),{focused:N,handleFocus:L,handleBlur:B}=Nr(c,u),[F,z]=t.useState(!1),V=t.useRef(null),H=t.useRef(),U=null!=h?h:d,K=U?U-(g?0:_?29:11):void 0,W=e=>{I(e);const t=(e=>a2(e).some((e=>e.type===J0)))(e);z(t);const n=i2(e),r=e.getLastChangeType();i&&i(n,t,r)},$=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=r2(e,t,r),u=c?X0:J0,l=i.createEntity(u,Q0,{id:o}).getLastCreatedEntityKey(),f=Y0.Modifier.insertText(i,a,s,void 0,l),p=Y0.EditorState.push(n,f,"insert-characters");return Y0.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,R,m);W(t)},q=()=>{(null==V?void 0:V.current)&&V.current.focus();const e=s2(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:$,focusAtEnd:q})));t.useEffect((()=>{i2(R)!==o&&(e=>{const t=R.getSelection(),n=o2(e,l,m),r=s2(n),o=t.getHasFocus()?r:n;W(o)})(o)}),[o]),t.useEffect((()=>{H.current=l}),[]),t.useEffect((()=>{const{current:e}=H,t=ut.isEqual(e,l),n=a2(R);if(!t&&n.length>0){H.current=l;const e=o2(o,l,m);W(e)}}),[l]);return e.jsx(u2,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:p,height:d,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:Lr(o),invalid:F,textOnly:E,borderRadius:S,backgroundColor:O,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P,focused:N,disabled:C,hasLabel:!!_,hideEditor:!Lr(o)&&!!_&&!N},{children:e.jsxs(Fr,Object.assign({readOnly:v},{children:[_&&e.jsx(zr,Object.assign({filled:Lr(o),focused:N,disabled:C},{children:_})),e.jsx(Y0.Editor,Object.assign({ref:V,editorState:R,onChange:W,placeholder:f,readOnly:v,handleReturn:e=>{const t=Y0.RichUtils.insertSoftNewline(R);return e.shiftKey||!s?W(t):s(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=Y0.convertFromRaw({blocks:[o],entityMap:{}}),a=Y0.EditorState.createWithContent(i,n2).getCurrentContent().getBlockMap(),s=Y0.Modifier.replaceWithFragment(n,r,a);return Y0.EditorState.push(t,s,"insert-fragment")})(e,n);return W(r),"handled"},onFocus:L,onBlur:B},D))]}))}))})),u2=J(Br)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),l2=J.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,width:l,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:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));l2.Item=J.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const f2=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=t,d=a(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return e.jsxs(jF,Object.assign({htmlFor:n,labelRight:h,disabled:s},g,{children:[r&&e.jsx(TF,{children:r}),e.jsx(AF,Object.assign({id:n,type:"radio",checked:i,disabled:s},d)),e.jsx(an,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!s})]}))},p2=n=>{var{id:r,label:o,labelPosition:i,checked:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,g=a(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(s||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof s?s:m)}),[s,m]),e.jsxs(jF,Object.assign({htmlFor:r,labelRight:w,disabled:c},x,{children:[o&&e.jsx(TF,{children:o}),e.jsx(AF,Object.assign({id:r,type:"checkbox",checked:m,disabled:c,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(an,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!c,size:40})]}))},d2=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:s}=t,c=a(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(h2,Object.assign({as:s?void 0:"label",disabled:i,rightIcon:!!o,pill:s},c,{children:[r&&Hr(r,{marginRight:4,size:"small"}),n,o&&Hr(o,{marginLeft:4,size:"small"})]}))},h2=J.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}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),g2=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(y2,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:e=>{c?c(e):e.preventDefault()}},u,{children:n}))};g2.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,disabled:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(v2,Object.assign({rows:r,columns:o,rowGap:i,columnGap:s,disabled:c},u,{children:n}))},g2.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(m2,Object.assign({inline:n,align:r,disabled:o},{children:t})),g2.Input=Ur,g2.Dropdown=no,g2.Radio=f2,g2.Toggle=p2,g2.Checkbox=MF,g2.Label=d2;const y2=J(l2)({boxSizing:"border-box"}),v2=J(l2)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),m2=J.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"})),b2=J.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}))),w2=J.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),x2=J.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%)`}}))),_2=J.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),C2=J.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"}))),S2=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(O2,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Mr(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),O2=J.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:u})=>({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:u}))),k2=J.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}))),E2=J.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),j2=J.div({marginLeft:"auto",marginRight:8});S2.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(k2,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),S2.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:p})=>{const[d,h]=t.useState(r||i),g=e=>Mr(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!d&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:p})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(E2,Object.assign({backgroundColor:p},{children:[e.jsxs(k2,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),d||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(j2,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(an,{name:d?"chevron-up":"chevron-down",pointer:!0})}))]})),d&&y]}))};const A2=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:y}=((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||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(P2,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(an,{name:h,style:{marginRight:10},color:g}),e.jsx(D2,{children:r||p}),o&&e.jsx(an,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},T2=J.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),M2=J.div((({theme:e})=>({fontWeight:e.font.weight.default})));A2.Header=T2,A2.Body=M2;const P2=J.div((({theme:e,borderColor:t,backgroundColor:n})=>({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})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),D2=J.div({width:"100%"}),R2=J.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),I2=J.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),N2=J.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),L2=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,preventOverlayClose:l,overlayColor:f,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O})=>{const k=st(l?()=>null:c,i),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O},j=Mr(n).map((e=>e?t.cloneElement(e,{inline:d}):null)),A=e.jsx(z2,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(B2,Object.assign({ref:k,width:a,height:s,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(F2,Object.assign({inline:d},{children:e.jsx(an,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};L2.Header=J.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),L2.Text=J.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),L2.Body=J.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),L2.Footer=J.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})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const B2=J.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"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),F2=J.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),z2=J.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)"}))),V2=J.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),H2=J.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"}))),U2=J.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),K2=J.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}:{})),W2=J.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}))),$2=J.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),q2=J.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),G2=J.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),Z2=J.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),Y2=e=>e?+e:0,X2=J.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),J2=J.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`}}))),Q2=J(J2)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),e5=J(J2)((({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}))),t5=J.span((({theme:e})=>({color:e.scale6}))),n5=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u},f=(n-r)/2,p=f*Math.PI*2,d=p-p*t/100,h=n/2;return e.jsxs(r5,Object.assign({size:n},l,{children:[e.jsx(o5,{cx:h,cy:h,r:f,thickness:r}),e.jsx(i5,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:p,complete:d})]}))},r5=J.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),o5=J.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),i5=J(o5)((({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"}))),a5=J.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),s5=J.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 c5={};!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 u(e){e.parentNode&&e.parentNode.removeChild(e)}function l(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 p(e,t,n){function r(){l&&o&&i&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function d(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--,v(e)}}function y(e,t){e.c=t,v(e)}function v(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 _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(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 O(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")),l(e.f,n,r)}k(e,"inactive")}function k(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:"+_(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 _(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"},R=null;function I(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function N(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 L(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()&&N(e,n,i)),t?o()-e.A>=e.w?I()&&N(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(){L(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(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(),L(this)};var z=null;function V(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):O(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(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)O(t.a);else{t.f+=n.length,a&&(t.j=a);var c,u=[];for(c=0;c<n.length;c++){var f=n[c],p=s[f.c],d=t.a,h=f;if(d.g&&l(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),k(d,"fontloading",h),d=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;d=z?new M(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new P(r(t.g,t),r(t.h,t),t.c,f,t.s,e,p),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function W(e,t){this.c=e,this.a=t}function $(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(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")]),k(t,"fontactive",e),this.m=!0,V(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")),l(t.f,r,o)}k(t,"fontinactive",e),V(this)},H.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&&l(e.f,[e.a.c("wf","loading")]),k(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){U(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.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;d(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([])},W.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++)p(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(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={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 $(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 G(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,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(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)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(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,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(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 H(window);re.a.c.custom=function(e,t){return new W(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(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))}()}({get exports(){return c5},set exports(e){c5=e}});var u5=c5;const l5=J.div((({width:e,height:t})=>({width:e,height:t}))),f5=J.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),p5=J.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),d5=J.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),h5=J.div({display:"flex",flexDirection:"column"}),g5=J.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),y5=J.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),v5=J.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"}}})),m5=J.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),b5=J.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),w5=t.createContext({}),x5=(t,n)=>{const r="th"===n?_5:C5;return Mr(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},_5=J.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),C5=J.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),S5=J(l2)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),O5=J.tbody((({height:e})=>({height:e,overflow:"auto"}))),k5=J(l2)((({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"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),E5=J.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),j5=J(E5)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),A5=J(E5)({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}}))),T5=n=>{var{children:r,columns:o,data:i}=n,s=a(n,["children","columns","data"]);const[c,u]=t.useState(i),[l,f]=t.useState(),p=i&&"function"==typeof r?r(c):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=ut.orderBy(i,t,n)}ut.isEqual(e,c)||u(e)}),[i,l]);const d=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(w5.Provider,Object.assign({value:d},{children:e.jsx(M5,Object.assign({},s,{children:p}))}))};T5.Header=n=>{var{children:r,columns:o}=n,i=a(n,["children","columns"]);const{parentColumns:s}=t.useContext(w5),c=o||s||"equal";return e.jsx("thead",{children:e.jsx(S5,Object.assign({as:"tr",columns:c},i,{children:x5(r,"th")}))})},T5.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,u]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:p}=t.useContext(w5),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(e),p&&s){p("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||y(a)}),[]),t.useEffect((()=>{a&&u(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),e.jsxs(A5,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!d},{children:[r,d?e.jsx(an,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},T5.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(w5);return e.jsx(O5,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},T5.Row=n=>{var{children:r,columns:o,onClick:i}=n,s=a(n,["children","columns","onClick"]);const{parentColumns:c}=t.useContext(w5),u=o||c||"equal";return e.jsx(k5,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:x5(r,"td")}))},T5.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(j5,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const M5=J.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),P5=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(N5,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e.jsx(I5,Object.assign({visible:x,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},D5=J.div((({theme:e})=>({color:e.tooltip.color.default}))),R5=J.div((({theme:e})=>({color:e.tooltip.color.subtext}))),I5=J.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),N5=J.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));P5.Header=D5,P5.Body=R5;const L5="#0074F4",B5="#FF6068",F5="#FF9900",z5="#F0BB00",V5="#00C242",H5="#001D32",U5="#FFFFFF",K5={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:L5,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:rr(.95,L5),brandTint1:rr(.9,L5),brandTint2:rr(.8,L5),brandTint3:rr(.7,L5),brandTint4:rr(.6,L5),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:B5,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:rr(.95,B5),errorTint1:rr(.9,B5),errorTint2:rr(.8,B5),warning:F5,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:rr(.95,F5),warningTint1:rr(.9,F5),warningTint2:rr(.8,F5),alert:z5,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:rr(.95,z5),alertTint1:rr(.9,z5),alertTint2:rr(.8,z5),success:V5,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:rr(.95,V5),successTint1:rr(.9,V5),successTint2:rr(.8,V5),grayscale0:rr(.95,H5),grayscale1:rr(.9,H5),grayscale2:rr(.8,H5),grayscale3:rr(.7,H5),grayscale4:rr(.6,H5),grayscale5:rr(.5,H5),grayscale6:rr(.4,H5),grayscale7:rr(.3,H5),grayscale8:rr(.2,H5),grayscale9:rr(.1,H5),grayscale10:H5,contrast0:rr(.95,U5),contrast1:rr(.9,U5),contrast2:rr(.8,U5),contrast3:rr(.7,U5),contrast4:rr(.6,U5),contrast5:rr(.5,U5),contrast6:rr(.4,U5),contrast7:rr(.3,U5),contrast8:rr(.2,U5),contrast9:rr(.1,U5),contrast10:U5};var W5={color:K5,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:$5}=W5;var q5={small:{height:28,iconSize:18,font:$5.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:$5.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:$5.size.lg,padding:14,iconOnlyPadding:6}};const G5="#FFFFFF",Z5=K5.grayscale0,Y5=K5.grayscale1,X5=K5.grayscale2,J5=K5.grayscale3,Q5=K5.grayscale4,e3=K5.grayscale5,t3=K5.grayscale6,n3=K5.grayscale7,r3=K5.grayscale8,o3=K5.grayscale9,i3=K5.grayscale10,a3=Object.assign(Object.assign({},W5),{name:"light",accent:K5.brand,accentShade:K5.brandShade1,background0:G5,background1:G5,background2:G5,background3:G5,background4:G5,background5:G5,scale0:Z5,scale1:Y5,scale2:X5,scale3:J5,scale4:Q5,scale5:e3,scale6:t3,scale7:n3,scale8:r3,scale9:o3,scale10:i3,button:Object.assign(Object.assign({},q5),{primary:{color:{default:G5,hover:G5,active:G5},outlineColor:{default:i3,hover:i3,active:i3},background:{default:K5.brand,hover:K5.brandShade1,active:K5.brandShade2},outlineBackground:{default:K5.brandTint0,hover:K5.brandTint1,active:K5.brandTint2},border:{default:K5.brand,hover:K5.brandShade1,active:K5.brandShade2},divider:X5},secondary:{color:{default:i3,hover:i3,active:i3},outlineColor:{default:i3,hover:i3,active:i3},background:{default:Y5,hover:X5,active:J5},outlineBackground:{default:Y5,hover:X5,active:J5},border:{default:X5,hover:X5,active:X5},divider:X5},positive:{color:{default:G5,hover:G5,active:G5},outlineColor:{default:i3,hover:i3,active:i3},background:{default:K5.success,hover:K5.successShade1,active:K5.successShade2},outlineBackground:{default:K5.successTint0,hover:K5.successTint1,active:K5.successTint2},border:{default:K5.success,hover:K5.successShade1,active:K5.successShade2},divider:X5},negative:{color:{default:G5,hover:G5,active:G5},outlineColor:{default:i3,hover:i3,active:i3},background:{default:K5.error,hover:K5.errorShade1,active:K5.errorShade2},outlineBackground:{default:K5.errorTint0,hover:K5.errorTint1,active:K5.errorTint2},border:{default:K5.error,hover:K5.errorShade1,active:K5.errorShade2},divider:X5},caution:{color:{default:G5,hover:G5,active:G5},outlineColor:{default:i3,hover:i3,active:i3},background:{default:K5.warning,hover:K5.warningShade1,active:K5.warningShade2},outlineBackground:{default:K5.warningTint0,hover:K5.warningTint1,active:K5.warningTint2},border:{default:K5.warning,hover:K5.warningShade1,active:K5.warningShade2},divider:X5},subtle:{color:{default:K5.brand,hover:K5.brand,active:K5.brand},outlineColor:{default:K5.brand,hover:K5.brand,active:K5.brand},secondaryColor:{default:i3,hover:i3,active:i3},positiveColor:{default:K5.success,hover:K5.success,active:K5.success},negativeColor:{default:K5.error,hover:K5.error,active:K5.error},cautionColor:{default:K5.warning,hover:K5.warning,active:K5.warning},background:{default:"transparent",hover:Y5,active:X5},outlineBackground:{default:"transparent",hover:Y5,active:X5},border:{default:"transparent",hover:X5,active:X5},divider:X5},link:{color:{default:K5.brand,hover:K5.brandShade1,active:K5.brandShade2},outlineColor:{default:K5.brand,hover:K5.brandShade1,active:K5.brandShade2},secondaryColor:{default:r3,hover:o3,active:i3},positiveColor:{default:K5.success,hover:K5.successShade1,active:K5.successShade2},negativeColor:{default:K5.error,hover:K5.errorShade1,active:K5.errorShade2},cautionColor:{default:K5.warning,hover:K5.warningShade1,active:K5.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:Q5,hover:Q5,active:Q5},outlineColor:{default:Q5,hover:Q5,active:Q5},background:{default:Y5,hover:Y5,active:Y5},outlineBackground:{default:Z5,hover:Z5,active:Z5},border:{default:Y5,hover:Y5,active:Y5},divider:Y5},color:{default:G5}}),calendar:{background:{container:K5.contrast10,hover:Y5,active:K5.brand,activeHover:K5.brandShade1},color:{disabled:Q5,default:i3,active:K5.contrast10,current:K5.brand,outside:t3,weekday:r3,monthYear:r3,iconDefault:Q5,iconHover:i3}},defaultBorder:`1px solid ${Y5}`,formControl:{color:{default:r3,hover:i3,active:K5.brand,activeHover:K5.brandShade1,disabled:Q5}},input:{borderRadius:4,background:{default:Z5,hover:Y5,focused:Y5,disabled:Z5},color:{default:i3,disabled:Q5,placeholder:t3,description:t3,descriptionError:K5.error},borderColor:{default:t3,hover:r3,focused:K5.brand,disabled:Q5,error:K5.error},labelColor:{default:r3,hover:r3,filled:t3,focused:K5.brand,disabled:Q5}},menu:{background:G5},menuItem:{borderColor:K5.brand,background:{active:Z5,hover:Y5,inactive:"transparent"},color:{active:i3,hover:i3,inactive:t3}},modal:{background:K5.contrast10,color:{header:i3,body:t3}},options:{background:K5.contrast10},optionItem:{background:{active:Y5,inactive:"transparent"},color:{active:i3,inactive:i3,accent:K5.brand}},table:{color:{header:t3,body:i3},borderColor:Y5},toast:{color:i3,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:r3,info:K5.brand,success:K5.success,warning:K5.warning,error:K5.error}},toggle:{slider:K5.contrast10},tooltip:{background:"#FFF",color:{default:i3,subtext:t3}}}),s3=K5.contrast0,c3=K5.contrast1,u3=K5.contrast2,l3=K5.contrast3,f3=K5.contrast4,p3=K5.contrast5,d3=K5.contrast6,h3=K5.contrast7,g3=K5.contrast8,y3=K5.contrast9,v3=K5.contrast10,m3=K5.brandDark,b3={light:a3,dark:Object.assign(Object.assign({},W5),{name:"dark",accent:m3,accentShade:K5.brandDarkShade1,background0:K5.brandBackground0,background1:K5.brandBackground1,background2:K5.brandBackground2,background3:K5.brandBackground3,background4:K5.brandBackground4,background5:K5.brandBackground5,scale0:s3,scale1:c3,scale2:u3,scale3:l3,scale4:f3,scale5:p3,scale6:d3,scale7:h3,scale8:g3,scale9:y3,scale10:v3,button:Object.assign(Object.assign({},q5),{primary:{color:{default:v3,hover:v3,active:v3},outlineColor:{default:v3,hover:v3,active:v3},background:{default:K5.brand,hover:K5.brandShade1,active:K5.brandShade2},outlineBackground:{default:K5.brandTint0,hover:K5.brandTint1,active:K5.brandTint2},border:{default:K5.brand,hover:K5.brandShade1,active:K5.brandShade2},divider:u3},secondary:{color:{default:v3,hover:v3,active:v3},outlineColor:{default:v3,hover:v3,active:v3},background:{default:c3,hover:u3,active:l3},outlineBackground:{default:c3,hover:u3,active:l3},border:{default:u3,hover:u3,active:u3},divider:u3},positive:{color:{default:v3,hover:v3,active:v3},outlineColor:{default:v3,hover:v3,active:v3},background:{default:K5.success,hover:K5.successShade1,active:K5.successShade2},outlineBackground:{default:K5.successTint0,hover:K5.successTint1,active:K5.successTint2},border:{default:K5.success,hover:K5.successShade1,active:K5.successShade2},divider:u3},negative:{color:{default:v3,hover:v3,active:v3},outlineColor:{default:v3,hover:v3,active:v3},background:{default:K5.error,hover:K5.errorShade1,active:K5.errorShade2},outlineBackground:{default:K5.errorTint0,hover:K5.errorTint1,active:K5.errorTint2},border:{default:K5.error,hover:K5.errorShade1,active:K5.errorShade2},divider:u3},caution:{color:{default:v3,hover:v3,active:v3},outlineColor:{default:v3,hover:v3,active:v3},background:{default:K5.warning,hover:K5.warningShade1,active:K5.warningShade2},outlineBackground:{default:K5.warningTint0,hover:K5.warningTint1,active:K5.warningTint2},border:{default:K5.warning,hover:K5.warningShade1,active:K5.warningShade2},divider:u3},subtle:{color:{default:K5.brand,hover:K5.brand,active:K5.brand},outlineColor:{default:K5.brand,hover:K5.brand,active:K5.brand},secondaryColor:{default:v3,hover:v3,active:v3},positiveColor:{default:K5.success,hover:K5.success,active:K5.success},negativeColor:{default:K5.error,hover:K5.error,active:K5.error},cautionColor:{default:K5.warning,hover:K5.warning,active:K5.warning},background:{default:"transparent",hover:c3,active:u3},outlineBackground:{default:"transparent",hover:c3,active:u3},border:{default:"transparent",hover:u3,active:u3},divider:u3},link:{color:{default:K5.brandShade2,hover:K5.brandShade1,active:K5.brand},outlineColor:{default:K5.brandShade2,hover:K5.brandShade1,active:K5.brand},secondaryColor:{default:g3,hover:y3,active:v3},positiveColor:{default:K5.successShade2,hover:K5.successShade1,active:K5.success},negativeColor:{default:K5.errorShade2,hover:K5.errorShade1,active:K5.error},cautionColor:{default:K5.warningShade2,hover:K5.warningShade1,active:K5.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:f3,hover:f3,active:f3},outlineColor:{default:f3,hover:f3,active:f3},background:{default:c3,hover:c3,active:c3},outlineBackground:{default:s3,hover:s3,active:s3},border:{default:c3,hover:c3,active:c3},divider:c3},color:{default:"#FFFFFF"}}),calendar:{background:{container:K5.brandBackground3,hover:c3,active:K5.brand,activeHover:K5.brandShade1},color:{disabled:f3,default:v3,active:v3,current:m3,outside:d3,weekday:g3,monthYear:g3,iconDefault:f3,iconHover:v3}},defaultBorder:`1px solid ${c3}`,formControl:{color:{default:g3,hover:v3,active:K5.brand,activeHover:K5.brandShade1,disabled:f3}},input:{borderRadius:4,background:{default:s3,hover:c3,focused:c3,disabled:s3},color:{default:v3,disabled:f3,placeholder:d3,description:d3,descriptionError:K5.error},borderColor:{default:d3,hover:g3,focused:m3,disabled:f3,error:K5.error},labelColor:{default:g3,hover:g3,filled:d3,focused:m3,disabled:f3}},menu:{background:K5.brandBackground2},menuItem:{borderColor:K5.brand,background:{active:s3,hover:c3,inactive:"transparent"},color:{active:v3,hover:v3,inactive:d3}},modal:{background:K5.brandBackground3,color:{header:v3,body:d3}},options:{background:K5.brandBackground3},optionItem:{background:{active:c3,inactive:"transparent"},color:{active:v3,inactive:v3,accent:m3}},table:{color:{header:d3,body:v3},borderColor:c3},toast:{color:v3,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:g3,info:K5.brand,success:K5.success,warning:K5.warning,error:K5.error}},toggle:{slider:K5.brandBackground0},tooltip:{background:K5.brandBackground4,color:{default:v3,subtext:d3}}})};exports.Accordion=un,exports.Audio=_o,exports.BarChart=t=>{var{width:r,height:o,data:i,dataKey:s}=t,c=a(t,["width","height","data","dataKey"]);const{scale2:u,color:l}=n.useTheme();return e.jsxs(TL,Object.assign({},c,{children:[e.jsx(PL,{}),e.jsxs(FR,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:o,data:i},{children:[e.jsx(RP,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e.jsx(zD,{stroke:u,dataKey:"name",tickMargin:4}),e.jsx(VD,{stroke:u,tickMargin:4}),ML(),e.jsx(kD,{barSize:16,dataKey:s,fill:l.brand})]}))]}))},exports.Button=po,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[u,l]=t.useState(c),[f,p]=t.useState(c),[d,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>{const t=function(e,t){if(RL(2,arguments),"object"!==gF(t)||null===t)throw new RangeError("values parameter must be an object");var n=NL(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=hF(n,t.month)),null!=t.date&&n.setDate(DL(t.date)),null!=t.hours&&n.setHours(DL(t.hours)),null!=t.minutes&&n.setMinutes(DL(t.minutes)),null!=t.seconds&&n.setSeconds(DL(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(DL(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},v=e=>{const t=yF(("prev"===e?bF:zL)(f,{months:1}),1),n=y(t);p(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?uF(bF(e,{months:1})):yF("future"===n?zL(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?bF:zL)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){RL(1,arguments);var t=NL(e),n=t.getDay();return n}(yF(e,1)),n=cF(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=y(c),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(uF(f)),s=y(yF(f,1));let l=!1;const p=fF(e,n),d=lF(e,r);(i&&p||a&&d)&&(l=!0);const h=lF(e,o)||fF(e,s),g=GL(e,c),v=GL(e,u);return{date:sF(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(wF,Object.assign({noShadow:s},{children:[e.jsxs(xF,{children:[e.jsx(_F,{children:iF(f,"MMMM Y")}),e.jsxs(CF,{children:[e.jsx(an,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(an,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(kF,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(EF,{children:t[0]},t)))}),e.jsx(SF,{children:(null==d?void 0:d.length)&&d.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(OF,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>{return l(e=n),void o(e);var e}},{children:t}),wr())))})]}))},exports.Checkbox=MF,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=n.useTheme(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){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)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(YF,{method:w,url:C}):e.jsx(HF,Object.assign({},RF,{code:C,language:b,theme:"dark"===d?WF:$F},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(ez,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(tz,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(nz,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(GF,{content:C})]}))}))},exports.DocTable=rz,exports.DraftEditor=c2,exports.Dropdown=no,exports.Form=g2,exports.Grid=l2,exports.Icon=an,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),p=st(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const d=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),d();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>(n&&window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g))),[n,l]),n?e.jsxs(b2,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(w2,Object.assign({onClick:r},{children:e.jsx(an,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(x2,Object.assign({id:"prev",onClick:d},{children:e.jsx(an,{name:"chevron-left",size:35,color:"white"})})),e.jsx(_2,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(x2,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(an,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=C2,exports.Input=Ur,exports.InputUtils=Vr,exports.Label=d2,exports.Menu=S2,exports.Message=A2,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(N2,{children:[e.jsx(I2,{}),e.jsx(R2,Object.assign({color:n,style:r},{children:t})),e.jsx(I2,{})]}),exports.Modal=L2,exports.MultiSelect=o=>{var{children:i,options:s,items:c,listLabel:u,listText:l,itemsTitle:f,maxItems:p,placeholder:d,width:h,filter:g,restrictInput:y,disabled:v,hideItemsInfo:m,optionsParent:b,compact:w,backgroundColor:x,borderless:_,addItem:C,removeItem:S,onTextChange:O,autoFocus:k}=o,E=a(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,A]=t.useState(k||!1),[T,M]=t.useState(!1),[P,D]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),L=st((()=>A(!1)),j,b?[b,`${b} *`]:void 0),B=t.useRef(null),F=w&&!!u,z=e=>{e&&C(e)},V=e=>{D(e),O&&O(e)};t.useEffect((()=>{const{current:e}=B;e&&!j&&e.blur()}),[j]);at(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];S(t)}}),j&&!P,[c]);const H=s.filter((e=>!c.find((t=>t.id===e.id)))),U=t.useMemo((()=>`multi-select-${wr()}`),[]),K=t.useMemo((()=>`multi-select-list-${wr()}`),[]),W=p?c.length>=p:void 0,$=v||!j||W,q=()=>{const t=e.jsxs(K2,Object.assign({id:K,expanded:j,padTop:j&&c.length>0,labeled:!!u},{children:[l&&e.jsx(W2,Object.assign({expanded:j,labeled:!!u},{children:l})),i?i(j,!!v):c.map((t=>e.jsx(d2,Object.assign({pill:!0,iconRight:j&&!v?e.jsx(an,{name:"close-circle",onClick:()=>S(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx(no,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:H,fontSize:I.size.md,placeholder:v||c.length>0?" ":d||"Search...",placeholderColor:N.color.placeholder,inputRef:B,onChange:z,onTextChange:V,onError:e=>M(e),disabled:$,optionsParent:b?`#${K}`:`#${U}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?r.createPortal(t,e):t}return t};return e.jsxs(V2,Object.assign({width:h,ref:L,labeled:!!u,disabled:v,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=B;j||u||A(!0),null==t||t.focus()}},{children:[e.jsxs(H2,Object.assign({collapse:F,id:U,expanded:j&&c.length>0,error:T,labeled:!!u,backgroundColor:x,borderless:_},{children:[u?e.jsx(U2,Object.assign({collapse:F},{children:u})):q(),e.jsxs($2,{children:[p&&!m&&e.jsx(G2,{children:v&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(q2,Object.assign({error:c.length>=p},{children:c.length})),"/",p," ",f]})}),c.length>0&&e.jsx(an,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!j)}})]})]})),u&&j&&q()]}))},exports.Notification=Z2,exports.Options=Gr,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:s,width:c}=n,u=a(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(Y2(o)||1),[p,d]=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,Y2(s)||h.length),y=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);d(t),f(e),r(e)}},v=0!==p,m=p!==g.length-1;return e.jsxs(X2,Object.assign({width:c},u,{children:[e.jsx(Q2,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(an,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(Q2,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(an,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(t5,{children:"... "}):"",e.jsx(e5,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(t5,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Q2,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(an,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(Q2,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(an,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,outerRadius:i,showWhenEmpty:s}=t,c=a(t,["size","data","innerRadius","outerRadius","showWhenEmpty"]);const u=(null==r?void 0:r.length)>0,l=u?r:s?[{name:"1",value:1,color:"#999"}]:void 0,f=i||n/2-1;return e.jsx(TL,Object.assign({},c,{children:e.jsxs(zR,Object.assign({width:n,height:n},{children:[e.jsx(vT,Object.assign({dataKey:"value",data:l,innerRadius:o,outerRadius:f},{children:null==l?void 0:l.map((t=>e.jsx(iw,{fill:t.color||"#999"},t.name)))})),u&&ML()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(n5,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e.jsx(a5,Object.assign({width:o,height:i||s},d,{children:e.jsx(s5,{color:n,width:h})}))},exports.Radio=f2,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,u5.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=bo,exports.Spacer=l5,exports.Spinner=Dr,exports.Table=T5,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=p2,exports.Tooltip=P5,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,width:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(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?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(m5,{children:t.header}),e.jsx(b5,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(f5,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(p5,{children:i}),e.jsxs(d5,{children:[!u&&e.jsxs(h5,{children:[k&&e.jsx(g5,{children:v.length>0&&!s&&e.jsx(po,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(y5,{children:v.map((t=>e.jsxs(v5,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[O(t),e.jsx(an,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(h5,{children:[k&&!u&&e.jsx(g5,{children:b.length>0&&!c&&!u&&e.jsx(po,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(y5,{children:b.map((t=>e.jsxs(v5,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[O(t),e.jsx(an,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=qF,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,u=iF(n,"EEEE"),l=iF(n,"MMM d"),f=iF(n,"MMM d, y"),p=iF(n,"h:mm aaa"),d=function(e){return RL(1,arguments),pF(e,Date.now())}(n),h=function(e){return RL(1,arguments),NL(e).getTime()>Date.now()}(n),g=function(e){return RL(1,arguments),GL(e,Date.now())}(n),y=function(e){return RL(1,arguments),GL(e,dF(Date.now(),1))}(n),v=function(e){return RL(1,arguments),GL(e,LL(Date.now(),1))}(n),m=function(e,t,n){RL(2,arguments);var r=eB(e,t)/6e4;return nB(null==n?void 0:n.roundingMethod)(r)}(c,n),b=function(e,t,n){RL(2,arguments);var r=QL(e,t)/7;return nB(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.theme=b3,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,p]=t.useState(l||""),[d,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const y=()=>{null==d||d.resolve(!s||f),g()},v=()=>{null==d||d.resolve(!1),g()};at(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(L2,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e.jsx(L2.Header,{children:n}),r&&e.jsx(L2.Text,{children:r}),s&&e.jsx(L2.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(Ur,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),e.jsxs(L2.Footer,{children:[e.jsx(po,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(po,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=rn,exports.useEventListener=at,exports.useOnClickOutside=st,exports.useSelect=lt,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=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e};
211
+ var FF=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 u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&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],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||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};return r.hooks.run("before-tokenize",i),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){var t=[],n=e.head.next;for(;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,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!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,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var S=_.value;if(t.length>e.length)return;if(!(S instanceof o)){var O,k=1;if(m){if(!(O=i(x,C,e,v))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,S=e.slice(C,A),O.index-=C}else if(!(O=i(x,0,S,v)))continue;E=O.index;var M=O[0],P=S.slice(0,E),D=S.slice(E+M.length),R=C+S.length;f&&R>f.reach&&(f.reach=R);var I=_.prev;if(P&&(I=c(t,I,P),C+=P.length),u(t,I,k),_=c(t,I,new o(p,y?r.tokenize(M,y):M,b,M)),D&&c(t,_,D),k>1){var N={cause:p+","+h,reach:R};a(e,t,n,_.prev,C,N),f&&N.reach>f.reach&&(f.reach=N.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 u(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}(),zF=FF;FF.default=FF,zF.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"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},zF.languages.markup.tag.inside["attr-value"].inside.entity=zF.languages.markup.entity,zF.languages.markup.doctype.inside["internal-subset"].inside=zF.languages.markup,zF.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(zF.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:zF.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:zF.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},zF.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(zF.languages.markup.tag,"addAttribute",{value:function(e,t){zF.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:zF.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),zF.languages.html=zF.languages.markup,zF.languages.mathml=zF.languages.markup,zF.languages.svg=zF.languages.markup,zF.languages.xml=zF.languages.extend("markup",{}),zF.languages.ssml=zF.languages.xml,zF.languages.atom=zF.languages.xml,zF.languages.rss=zF.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(zF),zF.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:/[{}[\];(),.:]/},zF.languages.c=zF.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|[?:~]|[-+*/%&|^!=<>]=?/}),zF.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),zF.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},zF.languages.c.string],char:zF.languages.c.char,comment:zF.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:zF.languages.c}}}}),zF.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 zF.languages.c.boolean,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"])}(zF),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,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;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(zF),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;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("\\[(?:[^[\\]\"']|"+n.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":[n,{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}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={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|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:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(zF),zF.languages.javascript=zF.languages.extend("clike",{"class-name":[zF.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}|\?\?=?|\?\.?|[~:]/}),zF.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,zF.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:zF.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:zF.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:zF.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:zF.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:zF.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),zF.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:zF.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"}}),zF.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),zF.languages.markup&&(zF.languages.markup.tag.addInlined("script","javascript"),zF.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")),zF.languages.js=zF.languages.javascript,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}(zF),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}(zF),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;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=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(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],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(zF),zF.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:zF.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+/},zF.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"])&&"("===l(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(u,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(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 d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),zF.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(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,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 f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(zF),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}(zF),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];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(zF),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)}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 a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(zF),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(zF),zF.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},zF.languages.go=zF.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/}),zF.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete zF.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(zF),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(zF),zF.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},zF.languages.webmanifest=zF.languages.json,zF.languages.less=zF.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),zF.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),zF.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},zF.languages.objectivec=zF.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 zF.languages.objectivec["class-name"],zF.languages.objc=zF.languages.objectivec,zF.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},zF.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},zF.languages.python["string-interpolation"].inside.interpolation.inside.rest=zF.languages.python,zF.languages.py=zF.languages.python,zF.languages.reason=zF.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/}),zF.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 zF.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(zF),zF.languages.scss=zF.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),zF.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),zF.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),zF.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),zF.languages.scss.atrule.inside.rest=zF.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?: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|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)\b/i,{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,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(zF),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(zF),zF.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var VF={Prism:zF,theme:{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"}}]}};function HF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UF(){return UF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UF.apply(this,arguments)}var KF=/\r\n|\r|\n/,WF=function(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)},$F=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},qF=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=UF({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=UF({},n,{backgroundColor:null}),o};function GF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var ZF=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),HF(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?qF(e.theme,e.language):void 0;return t.themeDict=n})),HF(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=UF({},GF(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?UF({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),HF(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),HF(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=UF({},GF(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?UF({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),HF(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=$F(l,f.type),f.alias&&(l=$F(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(KF),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)WF(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return WF(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),YF="#c5a5c5",XF="#8dc891",JF={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:YF}},{types:["attr-value"],style:{color:XF}},{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:XF}},{types:["punctuation"],style:{color:XF}},{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:YF}},{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}}]},QF={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)"}}]};const ez=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},tz=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(nz,Object.assign({onClick:()=>{ez(r),i(!0)},copied:o},{children:o?e.jsx(an,{name:"check-circle",color:a.success}):e.jsx(an,{name:"copy",color:s})}))},nz=J.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),rz=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(oz,Object.assign({},i,{children:[e.jsx(iz,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(az,{children:r}),e.jsx(tz,{content:r})]}))},oz=J.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),iz=J.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),az=J.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),sz=J.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),cz=J.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),uz=J.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),lz=J.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var fz={};({get exports(){return fz},set exports(e){fz=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function S(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,I=2,N="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=N||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function V(){return{value:void 0,done:!0}}function H(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[L]);if("function"==typeof t)return t}function $(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=R,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return $(e)?new te(e):U(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?V():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function Se(){}function Oe(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?V():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?V():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new F(V);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):V()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?V():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Ce,_e),t(Se,_e),t(Oe,_e),_e.Keyed=Ce,_e.Indexed=Se,_e.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=He[e];return void 0===t&&(t=Te(e),Ve===ze&&(Ve=0,He={}),Ve++,He[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Ne&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ne)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Ne="function"==typeof WeakMap;Ne&&(Ie=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ve=0,He={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():We(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ht(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var $e,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return $e||($e=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new S);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),o.push(c)}return gt(e,t,o)}function dt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:O(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ct)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:O(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(C(a),s?void C(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ct(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return V()};var xt=v/4,_t=v/2,Ct=v/4;function St(e){var t=Rt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?Dt(0,r,y,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(St,Se),St.of=function(){return this(arguments)},St.prototype.toString=function(){return this.__toString("List [","]")},St.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},St.prototype.set=function(e,t){return It(this,e,t)},St.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},St.prototype.insert=function(e,t){return this.splice(e,0,t)},St.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},St.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},St.prototype.pop=function(){return Ft(this,0,-1)},St.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},St.prototype.shift=function(){return Ft(this,1)},St.prototype.merge=function(){return zt(this,void 0,arguments)},St.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},St.prototype.mergeDeep=function(){return zt(this,dt,arguments)},St.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},St.prototype.setSize=function(e){return Ft(this,0,e)},St.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},St.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?V():z(e,n++,t)}))},St.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},St.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},St.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=St.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Vt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Mt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(u===l)return Mt;var n=t?--l:u++;s=a(c&&c[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return At||(At=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Vt(e._capacity)?r=Nt(r,e.__ownerID,0,t,n,i):o=Nt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Nt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Nt(u,t,n-y,r,o,i);return l===u?e:((a=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(C(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Vt(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Vt(i),p=Vt(s);p>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new jt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Vt(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?Wt():Ut(e)?e:Wt().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return We(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Ht.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Wt(){return Tt||(Tt=Kt(ot(),Rt()))}function $t(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return V();var e=o.next();return r||t===R?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return V();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===I?e:z(r,c,u,e):(s=!1,V())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return V()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?V():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!$(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Ht,Ke),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},Ht.prototype.set=function(e,t){return $t(this,e,t)},Ht.prototype.remove=function(e){return $t(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Ut,Ht.prototype[h]=!0,Ht.prototype[g]=Ht.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Cn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Cn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var Sn=Cn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Nn():Tn(e)&&!l(e)?e:Nn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}Sn[g]=Sn.remove,Sn.deleteIn=Sn.removeIn=Ge.removeIn,Sn.merge=Ge.merge,Sn.mergeWith=Ge.mergeWith,Sn.mergeIn=Ge.mergeIn,Sn.mergeDeep=Ge.mergeDeep,Sn.mergeDeepWith=Ge.mergeDeepWith,Sn.mergeDeepIn=Ge.mergeDeepIn,Sn.setIn=Ge.setIn,Sn.update=Ge.update,Sn.updateIn=Ge.updateIn,Sn.withMutations=Ge.withMutations,Sn.asMutable=Ge.asMutable,Sn.asImmutable=Ge.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Ln(fn(this,e))},An.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Mn||(Mn=In(ot()))}function Ln(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Nn,Dn.__make=In,t(Ln,An),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.prototype;function Vn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Vn(Wt()))}function Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[$n])}zn[h]=!0,zn.__empty=Hn,zn.__make=Vn,t(Un,Se),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return V()}))},Un.isStack=Kn;var Wn,$n="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return Wn||(Wn=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[$n]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return St(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,ln(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Se,o.prototype),Yn(Oe,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:St,Stack:Un,Set:An,OrderedSet:Ln,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var pz=fz.OrderedMap,dz={createFromArray:function(e){return pz(e.map((function(e){return[e.getKey(),e]})))}};var hz=fz,gz=hz.Map,yz=hz.OrderedSet,vz=hz.Record,mz=yz(),bz={style:mz,entity:null},wz=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return xz;var t=gz({style:mz,entity:null}).merge(e),n=_z.get(t);if(n)return n;var o=new r(t);return _z=_z.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?yz(t):t,entity:Array.isArray(n)?yz(n):n})},r}(vz(bz)),xz=new wz,_z=gz([[gz(bz),xz]]);wz.EMPTY=xz;var Cz=wz;var Sz=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var Oz=Cz,kz=Sz,Ez=fz,jz=Ez.List,Az=Ez.Map,Tz=Ez.OrderedSet,Mz=Ez.Record,Pz=Ez.Repeat,Dz=Tz(),Rz=Mz({key:"",type:"unstyled",text:"",characterList:jz(),depth:0,data:Az()}),Iz=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=jz(Pz(Oz.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():Dz},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){kz(this.getCharacterList(),Nz,e,t)},o.findEntityRanges=function(e,t){kz(this.getCharacterList(),Lz,e,t)},r}(Rz);function Nz(e,t){return e.getStyle()===t.getStyle()}function Lz(e,t){return e.getEntity()===t.getEntity()}var Bz=Iz;var Fz=Cz,zz=Sz,Vz=fz,Hz=Vz.List,Uz=Vz.Map,Kz=Vz.OrderedSet,Wz=Vz.Record,$z=Vz.Repeat,qz=Kz(),Gz={parent:null,characterList:Hz(),data:Uz(),depth:0,key:"",text:"",type:"unstyled",children:Hz(),prevSibling:null,nextSibling:null},Zz=function(e,t){return e.getStyle()===t.getStyle()},Yz=function(e,t){return e.getEntity()===t.getEntity()},Xz=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Hz($z(Fz.EMPTY,n.length))),e},Jz=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gz;return e.call(this,Xz(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():qz},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){zz(this.getCharacterList(),Zz,e,t)},o.findEntityRanges=function(e,t){zz(this.getCharacterList(),Yz,e,t)},r}(Wz(Gz)),Qz=Jz,eV=Cz,tV=fz.Map;function nV(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(tV([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?eV.applyStyle(l,n):eV.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var rV={add:function(e,t,n){return nV(e,t,n,!0)},remove:function(e,t,n){return nV(e,t,n,!1)}},oV=Cz;var iV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,oV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},aV=fz;var sV=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(aV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return iV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},cV={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},uV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var lV=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(uV(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},fV=lV;var pV=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?fV(!1,"Entity key not found in this range."):fV(!1)),n},dV=cV,hV=pV,gV=lV;function yV(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=hV(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?gV(!1,"There should only be one entity range within this removal range."):gV(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=dV.getRemovalRange(s,c,t.getText().slice(p.start,p.end),p.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var vV=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=yV(e,t,u,o,s,!0,!0);else if(s&&c){var l=yV(e,t,u,o,s,!1,!0),f=yV(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=yV(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=yV(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},mV={},bV=Math.pow(2,24);var wV=function(){for(var e;void 0===e||mV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*bV).toString(32);return mV[e]=!0,e},xV=Qz,_V=wV,CV=fz.OrderedMap,SV=function(e){return e.first()instanceof xV?function(e){var t,n={};return CV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=_V();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return CV(e.toArray().map((function(e){var t=_V();return[t,e.set("key",t)]})))}(e)},OV=Cz,kV=Sz,EV=lV;function jV(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return kV(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?EV(!1,"Removal range must exist within character list."):EV(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,OV.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var AV=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=jV(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=jV(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},TV=SV,MV=AV,PV=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=MV(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return TV(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var DV=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},RV=dz,IV=Qz,NV=DV,LV=lV,BV=SV,FV=fz.List,zV=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:NV(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},VV=function(e,t,n,r,o,i){var a=n.first()instanceof IV,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=f.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=RV.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],FV(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},HV=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?LV(!1,"`insertFragment` should only be called with a collapsed selection state."):LV(!1));var o=e.getBlockMap(),i=BV(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof IV&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?LV(!1,"`insertFragment` should not be called when a container node is selected."):LV(!1))),1===i.size?zV(e,t,o,i.first(),a,s,r):VV(e,t,o,i,a,s)},UV=DV,KV=lV,WV=fz.Repeat;var $V=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?KV(!1,"`insertText` should only be called with a collapsed range."):KV(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:UV(c.getCharacterList(),WV(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},qV=fz.Map;var GV=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(qV([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},ZV=Qz,YV=function(e,t){if(!(e instanceof ZV))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},XV=Qz,JV=YV,QV=fz;QV.List;var eH=QV.Map,tH=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},nH=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},rH=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},oH=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},iH=function(e,t,n,r){return e.withMutations((function(o){if(tH(t.getKey(),o,(function(e){return e.merge({nextSibling:rH(e,o,r),prevSibling:oH(e,o,r)})})),tH(n.getKey(),o,(function(e){return e.merge({nextSibling:rH(e,o,r),prevSibling:oH(e,o,r)})})),nH(t.getKey(),r).forEach((function(e){return tH(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:rH(e,o,r),prevSibling:oH(e,o,r)})}))})),tH(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),tH(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:rH(e,o,r)})})),tH(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:oH(e,o,r)})})),tH(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),nH(n.getKey(),r).forEach((function(e){tH(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:rH(e,o,r),prevSibling:oH(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=JV(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?JV(o,t):null}return n}(n,r).forEach((function(e){return tH(e,o,(function(e){return e.merge({nextSibling:rH(e,o,r),prevSibling:oH(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();tH(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),tH(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){tH(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);tH(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}tH(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},aH=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},sH=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),u=r.get(a),l=c instanceof XV,f=[];if(l){var p=u.getChildKeys(),d=nH(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(nH(JV(u,r),r))}n=c===u?aH(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?eH([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(eH([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=iH(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},cH=Qz,uH=wV,lH=fz,fH=lV,pH=GV,dH=lH.List,hH=lH.Map,gH=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},yH=Cz,vH=rV,mH=sV,bH=vV,wH=PV,xH=HV,_H=$V,CH=lV,SH=GV,OH=AV,kH=sH,EH=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?fH(!1,"Selection range must be collapsed."):fH(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return pH(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=uH(),l=o instanceof cH,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:hH()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?fH(!1,"ContentBlockNode must not have children"):fH(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();gH(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:dH(i)})})),gH(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),gH(r,e,(function(e){return e.merge({nextSibling:o})})),gH(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},jH=fz.OrderedSet,AH={replaceText:function(e,t,n,r,o){var i=OH(e,t),a=kH(i,t),s=yH.create({style:r||jH(),entity:o||null});return _H(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?CH(!1,"Target range must be collapsed for `insertText`."):CH(!1)),AH.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=wH(e,t),o=AH.removeRange(e,t,"backward");return AH.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=OH(e,t),i=kH(o,t);return xH(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=bH(e.getEntityMap(),i,a,t,n);return kH(e,f)}var p=OH(e,t);return kH(p,t)},splitBlock:function(e,t){var n=OH(e,t),r=kH(n,t);return EH(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return vH.add(e,t,n)},removeInlineStyle:function(e,t,n){return vH.remove(e,t,n)},setBlockType:function(e,t,n){return SH(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return SH(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return SH(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=OH(e,t);return mH(r,t,n)}},TH=AH;var MH=function(e){return Object.keys(e).map((function(t){return e[t]}))};function PH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DH=Sz,RH=MH,IH=fz,NH=IH.List,LH=IH.Repeat,BH=IH.Record,FH=function(){return!0},zH=BH({start:null,end:null}),VH=BH({start:null,end:null,decoratorKey:null,leaves:null}),HH={generate:function(e,t,n){var r=t.getLength();if(!r)return NH.of(new VH({start:0,end:0,decoratorKey:null,leaves:NH.of(new zH({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):NH(LH(null,r)),a=t.getCharacterList();return DH(i,KH,FH,(function(e,t){o.push(new VH({start:e,end:t,decoratorKey:i.get(e),leaves:UH(a.slice(e,t).toList(),e)}))})),NH(o)},fromJS:function(e){var t=e.leaves,n=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,["leaves"]);return new VH(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){PH(e,t,n[t])}))}return e}({},n,{leaves:null!=t?NH(Array.isArray(t)?t:RH(t)).map((function(e){return zH(e)})):null}))}};function UH(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return DH(r,KH,FH,(function(e,r){n.push(new zH({start:e+t,end:r+t}))})),NH(n)}function KH(e,t){return e===t}var WH=HH;var $H=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,fz.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),qH=$H;var GH=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function ZH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YH=qH,XH=lV,JH=GH,QH=(0,fz.Map)(),eU=JH();function tU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var nU={getLastCreatedEntityKey:function(){return tU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),nU.__getLastCreatedEntityKey()},create:function(e,t,n){return tU("DraftEntity.create","contentState.createEntity"),nU.__create(e,t,n)},add:function(e){return tU("DraftEntity.add","contentState.addEntity"),nU.__add(e)},get:function(e){return tU("DraftEntity.get","contentState.getEntity"),nU.__get(e)},__getAll:function(){return QH},__loadWithEntities:function(e){QH=e,eU=JH()},mergeData:function(e,t){return tU("DraftEntity.mergeData","contentState.mergeEntityData"),nU.__mergeData(e,t)},replaceData:function(e,t){return tU("DraftEntity.replaceData","contentState.replaceEntityData"),nU.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return eU},__create:function(e,t,n){return nU.__add(new YH({type:e,mutability:t,data:n||{}}))},__add:function(e){return eU=JH(),QH=QH.set(eU,e),eU},__get:function(e){var t=QH.get(e);return t||("production"!==process.env.NODE_ENV?XH(!1,"Unknown DraftEntity key: %s.",e):XH(!1)),t},__mergeData:function(e,t){var n=nU.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZH(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return QH=QH.set(e,o),o},__replaceData:function(e,t){var n=nU.__get(e).set("data",t);return QH=QH.set(e,n),n}},rU=nU;var oU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,fz.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),iU=oU,aU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},sU=new RegExp("\r","g");var cU=function(e){return e.replace(sU,"")};function uU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lU(e,t,n[t])}))}return e}function lU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fU=dz,pU=Cz,dU=Bz,hU=Qz,gU=rU,yU=iU,vU=wV,mU=MH,bU=aU,wU=fz,xU=cU,_U=wU.List,CU=wU.Record,SU=wU.Repeat,OU=wU.Map,kU=wU.OrderedMap,EU=CU({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),jU=bU("draft_tree_data_support")?hU:dU,AU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return gU},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return gU.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return gU.__create(e,t,n),this},o.mergeEntityData=function(e,t){return gU.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return gU.__replaceData(e,t),this},o.addEntity=function(e){return gU.__add(e),this},o.getEntity=function(e){return gU.__get(e)},o.getAllEntities=function(){return gU.__getAll()},o.loadWithEntities=function(e){return gU.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=fU.createFromArray(n),i=o.isEmpty()?new yU:yU.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||gU,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),o=n.map((function(e){return e=xU(e),new jU({key:vU(),text:e,type:"unstyled",characterList:_U(SU(pU.EMPTY,e.length))})}));return r.createFromBlockArray(o)},r.fromJS=function(e){return new r(uU({},e,{blockMap:kU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new yU(e.selectionBefore),selectionAfter:new yU(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new jU(uU({},e,{data:OU(e.data),characterList:null!=t?_U((Array.isArray(t)?t:mU(t)).map((function(e){return pU.fromJS(e)}))):void 0}))},r}(EU),TU=AU,MU=lV,PU="LTR",DU=null;function RU(e){return e===PU||"RTL"===e}function IU(e){return RU(e)||("production"!==process.env.NODE_ENV?MU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):MU(!1)),e===PU?"ltr":"rtl"}function NU(e){DU=e}var LU={NEUTRAL:"NEUTRAL",LTR:PU,RTL:"RTL",isStrong:RU,getHTMLDir:IU,getHTMLDirIfDifferent:function(e,t){return RU(e)||("production"!==process.env.NODE_ENV?MU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):MU(!1)),RU(t)||("production"!==process.env.NODE_ENV?MU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):MU(!1)),e===t?null:IU(e)},setGlobalDir:NU,initGlobalDir:function(){NU(PU)},getGlobalDir:function(){return DU||this.initGlobalDir(),DU||("production"!==process.env.NODE_ENV?MU(!1,"Global direction not set."):MU(!1)),DU}},BU=LU,FU=lV,zU="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",VU="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",HU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+zU+VU+"]"),UU=new RegExp("["+zU+VU+"]");function KU(e){var t=HU.exec(e);return null==t?null:t[0]}function WU(e){var t=KU(e);return null==t?BU.NEUTRAL:UU.exec(t)?BU.RTL:BU.LTR}function $U(e,t){if(t=t||BU.NEUTRAL,!e.length)return t;var n=WU(e);return n===BU.NEUTRAL?t:n}function qU(e,t){return t||(t=BU.getGlobalDir()),BU.isStrong(t)||("production"!==process.env.NODE_ENV?FU(!1,"Fallback direction must be a strong direction"):FU(!1)),$U(e,t)}var GU={firstStrongChar:KU,firstStrongCharDir:WU,resolveBlockDir:$U,getDirection:qU,isDirectionLTR:function(e,t){return qU(e,t)===BU.LTR},isDirectionRTL:function(e,t){return qU(e,t)===BU.RTL}};function ZU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YU,XU=GU,JU=LU,QU=lV,eK=function(){function e(e){ZU(this,"_defaultDir",void 0),ZU(this,"_lastDir",void 0),e?JU.isStrong(e)||("production"!==process.env.NODE_ENV?QU(!1,"Default direction must be a strong direction (LTR or RTL)"):QU(!1)):e=JU.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=XU.getDirection(e,this._lastDir),this._lastDir},e}(),tK=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},nK=eK,rK=fz,oK=tK,iK=rK.OrderedMap;function aK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sK(e,t,n[t])}))}return e}function sK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cK=WH,uK=TU,lK={getDirectionMap:function(e,t){YU?YU.reset():YU=new nK;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return oK(YU).getDirection(e.getText())})),o=iK(n.keySeq().zip(r));return null!=t&&rK.is(t,o)?t:o}},fK=iU,pK=fz,dK=pK.OrderedSet,hK=pK.Record,gK=pK.Stack,yK=pK.OrderedMap,vK=pK.List,mK=hK({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:gK(),selection:null,treeMap:null,undoStack:gK()}),bK=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(uK.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:gK(),redoStack:gK(),decorator:n||null,selection:fK.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=aK({},e,{treeMap:xK(n,e.decorator),directionMap:lK.getDirectionMap(n)});return new t(new mK(r))},t.fromJS=function(e){return new t(new mK(aK({},e,{directionMap:null!=e.directionMap?yK(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?dK(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?uK.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?gK(e.redoStack.map((function(e){return uK.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new fK(e.selection):e.selection,treeMap:null!=e.treeMap?yK(e.treeMap).map((function(e){return vK(e).map((function(e){return cK.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?gK(e.undoStack.map((function(e){return uK.fromJS(e)}))):e.undoStack,currentContent:uK.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return cK.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):xK(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return cK.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){sK(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return CK(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return CK(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return wK(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),wK(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new fK({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=lK.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||_K(e,r)?(c=c.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(l=null);var p={currentContent:u,directionMap:i,undoStack:c,redoStack:gK(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,p)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=lK.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=lK.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function wK(e,t,n){return bK.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function xK(e,t){return e.getBlockMap().map((function(n){return cK.generate(e,n,t)})).toOrderedMap()}function _K(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function CK(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):dK()}var SK=bK,OK=Qz,kK=YV,EK=fz,jK=lV,AK=EK.OrderedMap,TK=EK.List,MK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},PK=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){MK(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),MK(l,e,(function(e){return e.merge({nextSibling:u})})),MK(u,e,(function(e){return e.merge({prevSibling:l})})),MK(p,e,(function(e){return e.merge({prevSibling:a})})),MK(d,e,(function(e){return e.merge({nextSibling:a})})),MK(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:TK(o)})})),MK(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function DK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RK(e,t,n[t])}))}return e}function RK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IK=dz,NK=Cz,LK=Bz,BK=Qz,FK=TH,zK=SK,VK=wV,HK=fz,UK=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?jK(!1,"Replacing blocks is not supported."):jK(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?jK(!1,"Block cannot be moved next to itself."):jK(!1));var a=e.getBlockMap(),s=t instanceof OK,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=kK(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),p=c.map((function(e){return[e.getKey(),e]})),d=AK();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?jK(!1,"Block cannot be moved next to itself."):jK(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?jK(!1,"Block cannot be moved next to itself."):jK(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:PK(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},KK=aU("draft_tree_data_support"),WK=KK?BK:LK,$K=HK.List,qK=HK.Repeat,GK={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=FK.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=FK.splitBlock(i,a),c=s.getSelectionAfter(),u=FK.setBlockType(s,c,"atomic"),l=NK.create({entity:t}),f={key:VK(),type:"atomic",text:n,characterList:$K(qK(l,n.length))},p={key:VK(),type:"unstyled"};KK&&(f=DK({},f,{nextSibling:p.key}),p=DK({},p,{prevSibling:f.key}));var d=[new WK(f),new WK(p)],h=IK.createFromArray(d),g=FK.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return zK.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=UK(i,t,s,r)}else{var c=FK.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=UK(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=UK(c,t,l,"after");else{var f=FK.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=UK(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return zK.push(e,h,"move-block")}};var ZK=fz.List,YK=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),ZK(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var XK=YK;function JK(e){return e.replace(/\//g,"-")}var QK=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(JK).join(" "):Array.prototype.map.call(arguments,JK).join(" ")},eW=t,tW=QK,nW=(0,fz.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:eW.createElement("ul",{className:tW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:eW.createElement("ol",{className:tW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:eW.createElement("pre",{className:tW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),rW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},oW={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",S="Browser",O="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",M="Motorola",P="Opera",D="Samsung",R="Sony",I="Xiaomi",N="Zebra",L="Facebook",B=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},F=function(e,t){return typeof e===s&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===i?e:e.substring(0,255)},H=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},U=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(F(t[n][o],e))return"?"===n?r:n}else if(F(t[n],e))return"?"===n?r:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+S]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,L],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,U,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,z]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,j],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[f,j],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,I],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,I],[l,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[l,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,M],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,M],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,A],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,A],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,R],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,R],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,C],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,_],[l,g]],[/(nexus 9)/i],[c,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,"Sharp"],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,N],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,N],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[l,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[c,[f,R],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,A],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,O+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i],[c,[f,"Sharp"],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,V],[c,V],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,N],[l,m]],[/(quest( 2)?)/i],[c,[f,L],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,U,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,U,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},$=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof $))return new $(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,H.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[d]=r,H.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,H.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,H.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,H.call(e,o,h.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>255?V(e,255):e,this},this.setUA(o),this};$.VERSION="0.7.31",$.BROWSER=B([u,p,"major"]),$.CPU=B([d]),$.DEVICE=B([c,f,l,h,g,v,y,m,b]),$.ENGINE=$.OS=B([u,p]),e.exports&&(t=e.exports=$),t.UAParser=$;var q=typeof n!==i&&(n.jQuery||n.Zepto);if(q&&!q.ua){var G=new $;q.ua=G.getResult(),q.ua.get=function(){return G.getUA()},q.ua.set=function(e){G.setUA(e);var t=G.getResult();for(var n in t)q.ua[n]=t[n]}}}("object"==typeof window?window:s)}({get exports(){return oW},set exports(e){oW=e}},oW);var iW="Unknown",aW={"Mac OS":"Mac OS X"};var sW,cW=(new oW).getResult(),uW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(cW.browser.version),lW={browserArchitecture:cW.cpu.architecture||iW,browserFullVersion:cW.browser.version||iW,browserMinorVersion:uW.minor||iW,browserName:cW.browser.name||iW,browserVersion:cW.browser.major||iW,deviceName:cW.device.model||iW,engineName:cW.engine.name||iW,engineVersion:cW.engine.version||iW,platformArchitecture:cW.cpu.architecture||iW,platformName:(sW=cW.os.name,aW[sW]||sW||iW),platformVersion:cW.os.version||iW,platformFullVersion:cW.os.version||iW},fW=lV,pW=/\./,dW=/\|\|/,hW=/\s+\-\s+/,gW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,yW=/^(\d*)(.*)/;function vW(e,t){var n=e.split(dW);return n.length>1?n.some((function(e){return jW.contains(e,t)})):function(e,t){var n=e.split(hW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?fW(!1,'the "-" operator expects exactly 2 operands'):fW(!1)),1===n.length)return mW(n[0],t);var r=n[0],o=n[1];return CW(r)&&CW(o)||("production"!==process.env.NODE_ENV?fW(!1,'operands to the "-" operator must be simple (no modifiers)'):fW(!1)),mW(">="+r,t)&&mW("<="+o,t)}(e=n[0].trim(),t)}function mW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(pW),r=xW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return bW(n,i);case"<=":return function(e,t){var n=EW(e,t);return-1===n||0===n}(n,i);case">=":return wW(n,i);case">":return function(e,t){return 1===EW(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);_W(i)&&(r[o]=i+1+"");return wW(e,n)&&bW(e,r)}(n,i);default:return function(e,t){return 0===EW(e,t)}(n,i)}}function bW(e,t){return-1===EW(e,t)}function wW(e,t){var n=EW(e,t);return 1===n||0===n}function xW(e){var t=e.split(pW),n=t[0].match(gW);return n||("production"!==process.env.NODE_ENV?fW(!1,"expected regex to match but it did not"):fW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function _W(e){return!isNaN(e)&&isFinite(e)}function CW(e){return!xW(e).modifier}function SW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function OW(e,t){var n=e.match(yW)[1],r=t.match(yW)[1],o=parseInt(n,10),i=parseInt(r,10);return _W(o)&&_W(i)&&o!==i?kW(o,i):kW(e,t)}function kW(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?fW(!1,'"a" and "b" must be of the same type'):fW(!1)),e>t?1:e<t?-1:0}function EW(e,t){for(var n=function(e,t){SW(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return SW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=OW(r[i],o[i]);if(a)return a}return 0}var jW={contains:function(e,t){return vW(e.trim(),t.trim())}},AW=jW,TW=Object.prototype.hasOwnProperty;var MW=function(e,t,n){if(!e)return null;var r={};for(var o in e)TW.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var PW=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},DW=lW,RW=AW;function IW(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,RW.contains(o,t))}function NW(e){return"Windows"===DW.platformName?e.replace(/^\s*NT/,""):e}var LW=MW({isBrowser:function(e){return IW(DW.browserName,DW.browserFullVersion,e)},isBrowserArchitecture:function(e){return IW(DW.browserArchitecture,null,e)},isDevice:function(e){return IW(DW.deviceName,null,e)},isEngine:function(e){return IW(DW.engineName,DW.engineVersion,e)},isPlatform:function(e){return IW(DW.platformName,DW.platformFullVersion,e,NW)},isPlatformArchitecture:function(e){return IW(DW.platformArchitecture,null,e)}},PW);var BW=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var FW=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},zW=FW;var VW=function e(t){if(zW(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},HW=BW,UW=VW;var KW=function(e){for(var t=e;t&&t!==HW(e).documentElement;){var n=UW(t);if(null!=n)return n;t=t.parentNode}return null};var WW=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function $W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qW=LW,GW=KW,ZW=WW,YW=lV,XW=tK,JW=fz.Map,QW={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},e$=qW.isBrowser("IE <= 11"),t$=function(){function e(e){var t=this;$W(this,"observer",void 0),$W(this,"container",void 0),$W(this,"mutations",void 0),$W(this,"onCharData",void 0),this.container=e,this.mutations=JW();var n=ZW(e);n.MutationObserver&&!e$?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?YW(!1,"Expected target to be an instance of Node"):YW(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,QW):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=JW(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return e$?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=XW(GW(e.target));this.mutations=this.mutations.set(n,t)}},e}(),n$="-",r$={encode:function(e,t,n){return e+n$+t+n$+n},decode:function(e){var t=e.split(n$).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(n$),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},o$={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},i$={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var a$=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},s$=lV,c$=a$;var u$=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?s$(!1,"Missing editorNode"):s$(!1)),c$(t.firstChild)||("production"!==process.env.NODE_ENV?s$(!1,"editorNode.firstChild is not an HTMLElement"):s$(!1)),t.firstChild},l$=r$,f$=tK;var p$=function(e,t,n,r,o){var i=f$(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=l$.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=l$.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+o:null,m=i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v;if(m)return i;var b=!1;if(s===f){var w=u.get("end"),x=d.get("end");b=g===h&&x===w?o<n:g<h}else{var _=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();b=_===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:b})},d$=KW,h$=VW,g$=p$,y$=lV,v$=FW,m$=tK;function b$(e,t,n){var r=t,o=d$(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?y$(!1,"Unknown node in selection range."):y$(!1)),e===r)&&(r=r.firstChild,v$(r)||("production"!==process.env.NODE_ENV?y$(!1,"Invalid DraftEditorContents node."):y$(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?y$(!1,"Invalid DraftEditorContents structure."):y$(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(v$(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||h$(e.firstChild));)e=e.firstChild;return e}(r);i=m$(h$(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(h$(s)){var l=function(e){for(;e.lastChild&&(v$(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||h$(e.lastChild));)e=e.lastChild;return e}(s);c=m$(h$(l)),u=w$(l)}else c=m$(o),u=w$(s);return{key:c,offset:u}}function w$(e){var t=e.textContent;return"\n"===t?0:t.length}var x$=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:g$(e,m$(d$(n)),r,m$(d$(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:m$(d$(n)),offset:r},u=b$(t,o,i)):s?(u={key:m$(d$(o)),offset:i},c=b$(t,n,r)):(c=b$(t,n,r),u=b$(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:g$(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},_$=x$;var C$=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:_$(e,t,r,o,i,a)},S$=i$,O$=SK,k$=u$,E$=C$;var j$=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();S$.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=E$(n,k$(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?O$.forceSelection(n,o):O$.acceptSelection(n,o),e.update(n))}};var A$={notEmptyKey:function(e){return null!=e&&""!=e}},T$=A$.notEmptyKey;function M$(e,t){return T$(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var P$=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:M$(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),M$(e.getEntityMap(),n)},D$=t$,R$=TH,I$=r$,N$=SK,L$=o$,B$=j$,F$=u$,z$=C$,V$=P$,H$=tK,U$=LW.isBrowser("IE"),K$=!1,W$=!1,$$=null;var q$,G$,Z$={onCompositionStart:function(e){W$=!0,function(e){$$||($$=new D$(F$(e))).start()}(e)},onCompositionEnd:function(e){K$=!1,W$=!1,setTimeout((function(){K$||Z$.resolveComposition(e)}),20)},onSelect:B$,onKeyDown:function(e,t){if(!W$)return Z$.resolveComposition(e),void e._onKeyDown(t);t.which!==L$.RIGHT&&t.which!==L$.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===L$.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!W$){var t=H$($$).stopAndFlushMutations();$$=null,K$=!0;var n=N$.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=I$.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),p=V$(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=R$.replaceText(r,f,e,d,p),n=N$.set(n,{currentContent:r})}));var o=z$(n,F$(e)).selectionState;e.restoreEditorDOM();var i=U$?N$.forceSelection(n,o):N$.acceptSelection(n,o);e.update(N$.push(i,r,"insert-characters"))}else e.update(n)}}},Y$=Z$;function X$(){if(G$)return q$;G$=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}var r=r$,o=t,i=GU,a=LU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=t.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(y,n({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(o.Component);return q$=s}function J$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eq=t,tq=lV,nq=FW,rq=LW.isBrowser("IE <= 11");var oq=function(e){var t,n;function r(t){var n;return Q$(J$(n=e.call(this,t)||this),"_forceFlag",void 0),Q$(J$(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;nq(t)||("production"!==process.env.NODE_ENV?tq(!1,"node is not an Element"):tq(!1));var r=t;return n?!function(e){return rq?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},rq?eq.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):eq.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return rq?eq.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):eq.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):eq.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(eq.Component),iq=oq,aq=FW;var sq=function(e){return!(!e||!e.ownerDocument)&&(aq(e)&&"BR"===e.nodeName)};var cq=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},uq=cq;var lq=function(e){return uq(e)&&3==e.nodeType},fq=lq;var pq=function e(t,n){return!(!t||!n)&&(t===n||!fq(t)&&(fq(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var dq=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},hq=i$,gq=pq,yq=dq,vq=BW,mq=lV,bq=FW,wq=LW.isBrowser("IE");function xq(e,t){if(!e)return"[empty]";var n=_q(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(bq(n)||("production"!==process.env.NODE_ENV?mq(!1,"Node must be an Element if it is not a text node."):mq(!1)),n.outerHTML)}function _q(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return vq(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(_q(i[a],t));return o}function Cq(e,t){for(var n=e,r=n;n;){if(bq(n)&&r.hasAttribute("contenteditable"))return xq(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function Sq(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function Oq(e,t,n,r){var o=yq();if(e.extend&&null!=t&&gq(o,t)){n>Sq(t)&&hq.logSelectionStateFailure({anonymizedDom:Cq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw hq.logSelectionStateFailure({anonymizedDom:Cq(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function kq(e,t,n,r){var o=vq(t).createRange();if(n>Sq(t)&&hq.logSelectionStateFailure({anonymizedDom:Cq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),wq)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var Eq=function(e,t,n,r,o){var i=vq(t);if(gq(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),kq(a,t,c-r,e),void Oq(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),kq(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),kq(a,t,c-r,e),Oq(a,y,v,e)}}else h&&(a.removeAllRanges(),kq(a,t,c-r,e)),g&&Oq(a,t,l-r,e)}},jq=lh;function Aq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mq,Pq,Dq=iq,Rq=t,Iq=lV,Nq=sq,Lq=Eq,Bq=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Tq(Aq(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?Iq(!1,"Missing node"):Iq(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?Iq(!1,"Missing child"):Iq(!1)),u.nodeType===Node.TEXT_NODE?c=u:Nq(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?Iq(!1,"Missing targetNode"):Iq(!1)),Lq(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?Iq(!1,"Missing leafNode"):Iq(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),jq(e,r,n)}),{});if(i){var u=i(s,t);c=jq(c,u)}return Rq.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},Rq.createElement(Dq,null,n))},r}(Rq.Component),Fq=Bq;function zq(){if(Pq)return Mq;Pq=1;var e=X$(),n=Fq,r=r$,o=t,i=QK;fz.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(y,i,t),l=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:l,selection:d?h:null,forceSelection:p,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return Mq=a}function Vq(e,t){return!!t&&(e===t.documentElement||e===t.body)}var Hq={getTop:function(e){var t=e.ownerDocument;return Vq(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;Vq(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return Vq(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;Vq(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},Uq=/-(.)/g;var Kq=function(e){return e.replace(Uq,(function(e,t){return t.toUpperCase()}))},Wq=/([A-Z])/g;var $q=function(e){return e.replace(Wq,"-$1").toLowerCase()},qq=Kq,Gq=$q;function Zq(e){return null==e?e:String(e)}var Yq=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return Zq(n.getPropertyValue(Gq(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return Zq(n.getPropertyValue(Gq(t)));if("display"===t)return"none"}return e.currentStyle?Zq("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[qq(t)]):Zq(e.style&&e.style[qq(t)])};function Xq(e,t){var n=Jq.get(e,t);return"auto"===n||"scroll"===n}var Jq={get:Yq,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Xq(e,"overflow")||Xq(e,"overflowY")||Xq(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},Qq=Jq,eG=pq;var tG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!eG(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var nG=function(e){var t=tG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},rG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var oG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:rG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},iG=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var aG=function(e){var t=oG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=iG(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function sG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function cG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function uG(){return{width:window.innerWidth||sG(),height:window.innerHeight||cG()}}uG.withoutScrollbars=function(){return{width:sG(),height:cG()}};var lG,fG,pG,dG,hG=uG;function gG(){if(fG)return lG;fG=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=zq(),s=r$,c=t,u=Hq,l=Qq,f=nG,p=aG,d=hG,h=lV,g=a$;fz.List;var y=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},m=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},b=function(e,t,n,r,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=r(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=o({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var t,w;function x(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return i(r(t=e.call.apply(e,[this].concat(o))||this),"wrapperRef",c.createRef()),t}w=e,(t=x).prototype=Object.create(w.prototype),t.prototype.constructor=t,t.__proto__=w;var _=x.prototype;return _.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return i||a},_.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=p(o);if(o===window){var a=f(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{g(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}},_.render=function(){var e=this,t=this.props,r=t.block,i=t.blockRenderMap,u=t.blockRendererFn,l=t.blockStyleFn,f=t.contentState,p=t.decorator,d=t.editorKey,h=t.editorState,g=t.customStyleFn,w=t.customStyleMap,_=t.direction,C=t.forceSelection,S=t.selection,O=t.tree,k=null;r.children.size&&(k=r.children.reduce((function(t,n){var r=s.encode(n,0,0),a=f.getBlockForKey(n),p=m(a,u),g=p.CustomComponent||x,y=v(a,i),w=y.Element,_=y.wrapperTemplate,C=b(a,d,r,l,p,null),S=o({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:r,block:a});return t.push(c.createElement(w,C,c.createElement(g,S))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(a,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(c.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":s.encode(d,0,0)},p))}(_,w,t),t}),[]));var E=r.getKey(),j=s.encode(E,0,0),A=m(r,u),T=A.CustomComponent,M=null!=T?c.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:r})):c.createElement(a,{block:r,children:k,contentState:f,customStyleFn:g,customStyleMap:w,decorator:p,direction:_,forceSelection:C,hasSelection:y(S,E),selection:S,tree:O});if(r.getParentKey())return M;var P=v(r,i).Element,D=b(r,d,j,l,A,this.wrapperRef);return c.createElement(P,D,M)},x}(c.Component);return lG=w}var yG=lh;function vG(){return vG=yG||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},vG.apply(this,arguments)}function mG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wG,xG,_G,CG,SG=Fq,OG=r$,kG=t,EG=Hq,jG=Qq,AG=GU,TG=LU,MG=QK,PG=nG,DG=aG,RG=hG,IG=lV,NG=a$,LG=tK,BG=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},FG=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bG(mG(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||BG(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=jG.getScrollParent(n),i=DG(o);if(o===window){var a=PG(n);(r=a.y+a.height-RG().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{NG(n)||("production"!==process.env.NODE_ENV?IG(!1,"blockNode is not an HTMLElement"):IG(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&EG.setTop(o,EG.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=BG(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var u=c.size-1,l=c.map((function(a,c){var l=OG.encode(n,s,c),f=a.get("start"),p=a.get("end");return kG.createElement(SG,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=LG(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=OG.encode(n,s,0),y=c.first().get("start"),v=c.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=TG.getHTMLDirIfDifferent(AG.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:y,end:v,blockKey:n,entityKey:b,offsetKey:g};return kG.createElement(d,vG({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=MG({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return kG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(kG.Component),zG=FG;var VG=aU("draft_tree_data_support")?function(){if(dG)return pG;dG=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}var r=gG(),o=r$,i=t,a=tK,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var u=c.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},_)),wrapperTemplate:C,key:x,offsetKey:o.encode(x,0,0)});var S=w.getNextSiblingKey();w=S?h.getBlockForKey(S):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return pG=s}():function(){if(CG)return _G;CG=1;var e=lh;function n(){return n=e||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},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=zG,a=r$,s=t,c=QK,u=(xG||(xG=1,wG=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),wG),l=tK,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var p=c.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),S=[],O=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,R=void 0;M&&(P=M.component,D=M.props,R=M.editable);var I=v||_.get(A),N=a.encode(A,0,0),L={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:I,forceSelection:w,offsetKey:N,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,V=j.getDepth(),H="";if(c&&(H=c(j)),"li"===z)H=u(H,f(T,V,k!==F||null===O||V>O,I));var U=P||i,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":N,key:A};void 0!==R&&(K=r({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var W=s.createElement(z,K,s.createElement(U,n({},L,{key:A})));S.push({block:W,wrapperTemplate:F,key:A,offsetKey:N}),O=F?j.getDepth():null,k=F}for(var $=[],q=0;q<S.length;){var G=S[q];if(G.wrapperTemplate){var Z=[];do{Z.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===G.wrapperTemplate);var Y=s.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);$.push(Y)}else $.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},$)},c}(s.Component);return _G=p}(),HG={isImage:function(e){return"image"===UG(e)[0]},isJpeg:function(e){var t=UG(e);return HG.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function UG(e){return e.split("/")}var KG=HG,WG=lV;var $G=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?WG(!1,"toArray: Array-like object expected"):WG(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?WG(!1,"toArray: Object needs a length property"):WG(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?WG(!1,"toArray: Object should have keys for indices"):WG(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?WG(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):WG(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function qG(e){return function(){return e}}var GG=function(){};GG.thatReturns=qG,GG.thatReturnsFalse=qG(!1),GG.thatReturnsTrue=qG(!0),GG.thatReturnsNull=qG(null),GG.thatReturnsThis=function(){return this},GG.thatReturnsArgument=function(e){return e};var ZG=GG,YG=KG,XG=$G,JG=ZG,QG=new RegExp("\r\n","g"),eZ={"text/rtf":1,"text/html":1};function tZ(e){if("file"==e.kind)return e.getAsFile()}var nZ=function(){function e(e){this.data=e,this.types=e.types?XG(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return eZ[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(QG,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!YG.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(tZ).filter(JG.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),rZ=nZ,oZ=lV,iZ=/\.textClipping$/,aZ={"text/plain":!0,"text/html":!0,"text/rtf":!0};var sZ=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!s.FileReader||e.type&&!(e.type in aZ))return void t("");if(""===e.type){var n="";return iZ.test(e.name)&&(n=e.name.replace(iZ,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?oZ(!1,'We should be calling "FileReader.readAsText" which returns a string'):oZ(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var cZ=function(e){return"handled"===e||!0===e},uZ=rZ,lZ=TH,fZ=SK,pZ=KW,dZ=BW,hZ=sZ,gZ=p$,yZ=WW,vZ=cZ,mZ=tK;var bZ={onDragEnd:function(e){e.exitCurrentMode(),wZ(e)},onDrop:function(e,t){var n=new uZ(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=dZ(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=mZ(n),r=mZ(r);var a=mZ(pZ(n));return gZ(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&vZ(e.props.handleDroppedFiles(o,i)))return;hZ(i,(function(t){t&&e.update(xZ(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&vZ(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=lZ.moveText(e.getCurrentContent(),e.getSelection(),t);return fZ.push(e,n,"insert-fragment")}(r,o)):e.update(xZ(r,o,n.getText()))),wZ(e)}}}};function wZ(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:yZ(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function xZ(e,t,n){var r=lZ.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return fZ.push(e,r,"insert-fragment")}var _Z=bZ;var CZ=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?s:self);var SZ=s.setImmediate,OZ=TH,kZ=SK,EZ=P$,jZ=cZ,AZ=CZ,TZ=tK,MZ=SZ,PZ=LW.isBrowser("Firefox");function DZ(e,t,n,r,o){var i=OZ.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return kZ.push(e,i,"insert-characters",o)}var RZ=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&jZ(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(DZ(n,r,n.getCurrentInlineStyle(),EZ(n.getCurrentContent(),n.getSelection()),!0));var s,c=DZ(n,r,n.getCurrentInlineStyle(),EZ(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=AZ(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),u=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=PZ&&("'"==s||"/"==s)),u||(u=TZ(c.getDirectionMap()).get(a)!==TZ(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=kZ.set(c,{forceSelection:!0}),void e.update(c);c=kZ.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,MZ((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},IZ=SK,NZ=pq,LZ=dq;var BZ=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&LZ(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&NZ(o,r.anchorNode)&&NZ(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(IZ.acceptSelection(i,s))}},FZ=SK;var zZ=function(e,t){e.setMode("composite"),e.update(FZ.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},VZ=PV;var HZ=function(e){var t=e.getSelection();return t.isCollapsed()?null:VZ(e.getCurrentContent(),t)},UZ=HZ;var KZ=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(UZ(e._latestEditorState))};var WZ=TH,$Z=SK,qZ=Qq,GZ=HZ,ZZ=aG,YZ=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var XZ=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(YZ(i)){var a=i;n=ZZ(qZ.getScrollParent(a))}var s=GZ(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=WZ.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return $Z.push(e,t,"remove-range")}(r))}),0)}};var JZ=function(e,t){e.setMode("drag"),t.preventDefault()};var QZ=function(e){e._internalDrag=!0,e.setMode("drag")},eY=SK,tY=LW;var nY=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),tY.isBrowser("Chrome < 60.0.3081.0")?e.update(eY.forceSelection(n,o)):e.update(eY.acceptSelection(n,o))}},rY=lV,oY=/[\uD800-\uDFFF]/;function iY(e){return 55296<=e&&e<=57343}function aY(e){return oY.test(e)}function sY(e,t){return 1+iY(e.charCodeAt(t))}function cY(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!aY(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=sY(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=sY(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=sY(e,i);return e.substring(o,i)}var uY={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=sY(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:sY,hasSurrogateUnit:aY,isCodeUnitInSurrogateRange:iY,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?rY(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):rY(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(e){if(!aY(e))return e.length;for(var t=0,n=0;n<e.length;n+=sY(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return cY(e,t=t<n?t:n,r)},substr:cY},lY=uY,fY=ZG;function pY(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var dY="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];pY.apply(void 0,[t].concat(r))}}:fY,hY=dY,gY=hY;var yY=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&gY(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},vY=TH,mY=aU("draft_tree_data_support");var bY=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(mY&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(mY)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return vY.removeRange(o,i,n)},wY=SK,xY=lY,_Y=yY,CY=bY;var SY=function(e){var t=CY(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return _Y(e,i?xY.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return wY.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},OY=TH,kY=r$,EY=SK,jY=A$.notEmptyKey,AY=KW,TY=SY,MY=tK,PY=LW.isEngine("Gecko");var DY=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,u=e._latestEditorState,l=MY(AY(r)),f=kY.decode(l),p=f.blockKey,d=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(p).getIn([d,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(p),w=b.getText().slice(y,v);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,_,C,S,O=u.getSelection(),k=O.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=jY(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=OY.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(PY)x=n.anchorOffset,_=n.focusOffset,S=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=S;else{var P=c.length-w.length;C=O.getStartOffset(),S=O.getEndOffset(),x=o?S+P:C,_=S+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:_})});e.update(EY.push(u,D,T))}else{var R=t.nativeEvent.inputType;if(R){var I=function(e,t){return"deleteContentBackward"===e?TY(t):t}(R,u);if(I!==u)return e.restoreEditorDOM(),void e.update(I)}}}},RY=o$;var IY=function(e){return e.which===RY.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},NY=IY,LY=LW.isPlatform("Mac OS X"),BY={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return LY&&e.altKey},usesMacOSHeuristics:function(){return LY},hasCommandModifier:function(e){return LY?!!e.metaKey&&!e.altKey:BY.isCtrlKeyCommand(e)},isSoftNewlineEvent:NY},FY=BY,zY=TH,VY=SK,HY=PV,UY=tK,KY=null,WY={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=UY(r),KY=HY(t,r);var s=zY.removeRange(t,r,"forward");return s===t?e:VY.push(e,s,"remove-range")},paste:function(e){if(!KY)return e;var t=zY.replaceWithFragment(e.getCurrentContent(),e.getSelection(),KY);return VY.push(e,t,"insert-fragment")}},$Y=lV;var qY=LW.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?$Y(!1,"Found an unexpected detached subtree when getting range client rects."):$Y(!1)}:function(e){return Array.from(e.getClientRects())},GY=qY,ZY=lY,YY=BW,XY=GY,JY=lV;function QY(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function eX(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var tX=function(e){e.collapsed||("production"!==process.env.NODE_ENV?JY(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):JY(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=YY(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?JY(!1,"Missing document.body"):JY(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);QY(XY(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?JY(!1,"Found unexpected detached subtree when traversing."):JY(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&ZY.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!QY(XY(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=eX(i=i.childNodes[c])}return e.setStart(r,o),e},nX=SK,rX=tX,oX=x$,iX=yY,aX=bY;var sX=function(e,t){var n=aX(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return iX(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=rX(r),oX(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:nX.push(e,n,"remove-range")},cX="['‘’]",uX="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),lX=new RegExp("^(?:"+uX+")*(?:"+cX+"|(?!"+uX+").)*(?:(?!"+uX+").)"),fX=new RegExp("(?:(?!"+uX+").)(?:"+cX+"|(?!"+uX+").)*(?:"+uX+")*$");function pX(e,t){var n=t?fX.exec(e):lX.exec(e);return n?n[0]:e}var dX={getBackward:function(e){return pX(e,!0)},getForward:function(e){return pX(e,!1)}},hX=dX,gX=SK,yX=yY,vX=bY;var mX=hY;var bX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&mX(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},wX=dX,xX=SK,_X=bX,CX=bY;var SX=TH,OX=SK;var kX=SK;var EX=SK;var jX=SK,AX=lY,TX=bX,MX=bY;var PX=TH,DX=SK,RX=PV;var IX=SK;var NX=function(e,t,n){var r=IX.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(IX.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(IX.set(r,{nativelyRenderedContent:o}))}},LX=TH,BX=SK,FX=o$,zX=WY,VX=LW,HX=cZ,UX=sX,KX=function(e){var t=vX(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return yX(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=hX.getBackward(o);return yX(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:gX.push(e,t,"remove-range")},WX=function(e){var t=CX(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=wX.getForward(o);return _X(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:xX.push(e,t,"remove-range")},$X=function(e){var t=SX.splitBlock(e.getCurrentContent(),e.getSelection());return OX.push(e,t,"split-block")},qX=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return kX.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},GX=function(e){var t=e.getSelection(),n=t.getStartKey();return EX.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},ZX=SY,YX=function(e){var t=MX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return TX(e,i?AX.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return jX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},XX=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=RX(a,r),u=PX.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=PX.replaceWithFragment(u,p,c),h=DX.push(e,d,"insert-fragment");return DX.acceptSelection(h,o)},JX=NX,QX=FY.isOptionKeyCommand,eJ=VX.isBrowser("Chrome");var tJ=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case FX.RETURN:if(t.preventDefault(),e.props.handleReturn&&HX(e.props.handleReturn(t,r)))return;break;case FX.ESC:if(t.preventDefault(),o("onEscape"))return;break;case FX.TAB:if(o("onTab"))return;break;case FX.UP:if(o("onUpArrow"))return;break;case FX.RIGHT:if(o("onRightArrow"))return;break;case FX.DOWN:if(o("onDownArrow"))return;break;case FX.LEFT:if(o("onLeftArrow"))return;break;case FX.SPACE:eJ&&QX(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!HX(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return BX.redo(t);case"delete":return YX(t);case"delete-word":return WX(t);case"backspace":return ZX(t);case"backspace-word":return KX(t);case"backspace-to-start-of-line":return UX(t,n);case"split-block":return $X(t);case"transpose-characters":return XX(t);case"move-selection-to-start-of-block":return GX(t);case"move-selection-to-end-of-block":return qX(t);case"secondary-cut":return zX.cut(t);case"secondary-paste":return zX.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else JX(t,r,e.update);else if(n===FX.SPACE&&eJ&&QX(t)){var s=LX.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(BX.push(r,s,"insert-characters"))}};var nJ=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),rJ=nJ,oJ=lV,iJ=LW.isBrowser("IE <= 9");var aJ=function(e){var t,n=null;return!iJ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?oJ(!1,"Missing doc.documentElement"):oJ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},sJ=FW;var cJ=function(e){return!(!e||!e.ownerDocument)&&(sJ(e)&&"A"===e.nodeName)},uJ=FW;var lJ,fJ=function(e){return!(!e||!e.ownerDocument)&&(uJ(e)&&"IMG"===e.nodeName)};function pJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dJ(e,t,n[t])}))}return e}function dJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hJ=Cz,gJ=Bz,yJ=Qz,vJ=nW,mJ=rU,bJ=rJ,wJ=QK,xJ=wV,_J=aJ,CJ=aU,SJ=fz,OJ=SJ.List,kJ=SJ.Map,EJ=SJ.OrderedSet,jJ=cJ,AJ=sq,TJ=a$,MJ=fJ,PJ=CJ("draft_tree_data_support"),DJ=new RegExp("\r","g"),RJ=new RegExp("\n","g"),IJ=new RegExp("^\n","g"),NJ=new RegExp("&nbsp;","g"),LJ=new RegExp("&#13;?","g"),BJ=new RegExp("&#8203;?","g"),FJ=["bold","bolder","500","600","700","800","900"],zJ=["light","lighter","normal","100","200","300","400"],VJ=["className","href","rel","target","title"],HJ=["alt","className","height","src","width"],UJ=(dJ(lJ={},wJ("public/DraftStyleDefault/depth0"),0),dJ(lJ,wJ("public/DraftStyleDefault/depth1"),1),dJ(lJ,wJ("public/DraftStyleDefault/depth2"),2),dJ(lJ,wJ("public/DraftStyleDefault/depth3"),3),dJ(lJ,wJ("public/DraftStyleDefault/depth4"),4),lJ),KJ=kJ({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),WJ=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),kJ(t)},$J=function(e){if(TJ(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},qJ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(UJ).some((function(n){e.classList.contains(n)&&(t=UJ[n])})),t},GJ=function(e){if(!jJ(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new bJ(t.href);return!0}catch(e){return!1}},ZJ=function(e){if(!MJ(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},YJ=function(e,t){if(!TJ(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){FJ.indexOf(r)>=0?e.add("BOLD"):zJ.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},XJ=function(e){return"ul"===e||"ol"===e},JJ=function(){function e(e,t){dJ(this,"characterList",OJ()),dJ(this,"currentBlockType","unstyled"),dJ(this,"currentDepth",0),dJ(this,"currentEntity",null),dJ(this,"currentText",""),dJ(this,"wrapper",null),dJ(this,"blockConfigs",[]),dJ(this,"contentBlocks",[]),dJ(this,"entityMap",mJ),dJ(this,"blockTypeMap",void 0),dJ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=OJ(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=mJ,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],EJ())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(PJ?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||xJ(),n=pJ({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:OJ(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=OJ(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||XJ(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;XJ(i)&&(this.wrapper=i,XJ(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(ZJ(o))this._addImgNode(o,t);else if(GJ(o))this._addAnchorNode(o,n,t);else{var u=t;KJ.has(i)&&(u=u.add(KJ.get(i))),u=YJ(o,u);var l=$J(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!PJ&&TJ(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=qJ(d,this.currentDepth)}var h=xJ(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=hJ.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=OJ()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(IJ,"")).replace(RJ," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){AJ(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(MJ(e)){var n=e,r={};HJ.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),CJ("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(jJ(e)){var r=e,o={};VJ.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new bJ(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=OJ(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new yJ(pJ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return OJ(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new gJ(pJ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=OJ(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),QJ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_J,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vJ,r=t(e=e.trim().replace(DJ,"").replace(NJ," ").replace(LJ,"").replace(BJ,""));if(!r)return null;var o=WJ(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new JJ(o,i).addDOMNode(r).getContentBlocks()};function eQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tQ=Bz,nQ=Qz,rQ=QJ,oQ=wV,iQ=aJ,aQ=aU,sQ=fz,cQ=cU,uQ=sQ.List,lQ=sQ.Repeat,fQ=aQ("draft_tree_data_support"),pQ=fQ?nQ:tQ,dQ={processHTML:function(e,t){return rQ(e,iQ,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=cQ(r);var i=oQ(),a={key:i,type:n,text:r,characterList:uQ(lQ(t,r.length))};if(fQ&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eQ(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new pQ(a)),e}),[])}};var hQ=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},gQ=TH,yQ=SK,vQ=hQ,mQ=tK,bQ={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return bQ.toggleInlineStyle(e,"BOLD");case"italic":return bQ.toggleInlineStyle(e,"ITALIC");case"underline":return bQ.toggleInlineStyle(e,"UNDERLINE");case"code":return bQ.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return bQ.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return bQ.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=gQ.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=yQ.push(e,t,"insert-characters");return yQ.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return yQ.push(e,a,"remove-range")}var s=bQ.tryToRemoveBlockStyle(e);return s?yQ.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=gQ.removeRange(n,a,"forward");return s!==n?yQ.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=vQ(i,r,e.shiftKey?-1:1,n);return yQ.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=mQ(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return yQ.push(e,gQ.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?bQ.toggleBlockType(e,"code-block"):bQ.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return yQ.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?gQ.removeInlineStyle(i,n,t):gQ.applyInlineStyle(i,n,t),yQ.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=gQ.applyEntity(e.getCurrentContent(),t,n);return yQ.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return gQ.setBlockType(o,t,"unstyled")}return null}},wQ=bQ,xQ=/\r\n?|\n/g;var _Q=dz,CQ=Cz,SQ=rZ,OQ=TH,kQ=dQ,EQ=SK,jQ=wQ,AQ=P$,TQ=sZ,MQ=cZ,PQ=function(e){return e.split(xQ)};function DQ(e,t,n){var r=OQ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return EQ.push(e,r.set("entityMap",n),"insert-fragment")}var RQ=function(e,t){t.preventDefault();var n=new SQ(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&MQ(e.props.handlePastedFiles(r)))return;return void TQ(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=PQ(t),i=CQ.create({style:n.getCurrentInlineStyle(),entity:AQ(n.getCurrentContent(),n.getSelection())}),a=jQ.getCurrentBlockType(n),s=kQ.processText(r,i,a),c=_Q.createFromArray(s),u=OQ.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(EQ.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!MQ(e.props.handlePastedText(a,s,c))){if(a&&(i=PQ(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(DQ(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(DQ(e._latestEditorState,f));if(s){var p=kQ.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=_Q.createFromArray(d);return void e.update(DQ(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=CQ.create({style:c.getCurrentInlineStyle(),entity:AQ(c.getCurrentContent(),c.getSelection())}),v=jQ.getCurrentBlockType(c),m=kQ.processText(i,y,v),b=_Q.createFromArray(m);e.update(DQ(e._latestEditorState,b))}}},IQ=LW,NQ=RZ,LQ=BZ,BQ=zZ,FQ=KZ,zQ=XZ,VQ=JZ,HQ=QZ,UQ=nY,KQ=DY,WQ=tJ,$Q=RQ,qQ=j$,GQ=IQ.isBrowser("Chrome"),ZQ=IQ.isBrowser("Firefox"),YQ=GQ||ZQ?qQ:function(e){},XQ={onBeforeInput:NQ,onBlur:LQ,onCompositionStart:BQ,onCopy:FQ,onCut:zQ,onDragOver:VQ,onDragStart:HQ,onFocus:UQ,onInput:KQ,onKeyDown:WQ,onPaste:$Q,onSelect:qQ,onMouseUp:YQ,onKeyUp:YQ},JQ=r.unstable_flushControlled;var QQ=t,e1=QK,t1=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=e1({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return QQ.createElement("div",{className:t},QQ.createElement("div",{className:e1("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(QQ.Component),n1=t1,r1=FY,o1=o$,i1=LW,a1=i1.isPlatform("Mac OS X"),s1=a1&&i1.isBrowser("Firefox < 29"),c1=r1.hasCommandModifier,u1=r1.isCtrlKeyCommand;function l1(e){return a1&&e.altKey||u1(e)}var f1=function(e){switch(e.keyCode){case 66:return c1(e)?"bold":null;case 68:return u1(e)?"delete":null;case 72:return u1(e)?"backspace":null;case 73:return c1(e)?"italic":null;case 74:return c1(e)?"code":null;case 75:return a1&&u1(e)?"secondary-cut":null;case 77:case 79:return u1(e)?"split-block":null;case 84:return a1&&u1(e)?"transpose-characters":null;case 85:return c1(e)?"underline":null;case 87:return a1&&u1(e)?"backspace-word":null;case 89:return u1(e)?a1?"secondary-paste":"redo":null;case 90:return function(e){return c1(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o1.RETURN:return"split-block";case o1.DELETE:return function(e){return!a1&&e.shiftKey?null:l1(e)?"delete-word":"delete"}(e);case o1.BACKSPACE:return function(e){return c1(e)&&a1?"backspace-to-start-of-line":l1(e)?"backspace-word":"backspace"}(e);case o1.LEFT:return s1&&c1(e)?"move-selection-to-start-of-block":null;case o1.RIGHT:return s1&&c1(e)?"move-selection-to-end-of-block":null;default:return null}},p1=lh;function d1(){return d1=p1||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},d1.apply(this,arguments)}function h1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y1(e,t,n[t])}))}return e}function g1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var m1=nW,b1=rW,w1=Y$,x1=VG,_1=_Z,C1=XQ,S1=JQ,O1=n1,k1=SK,E1=t,j1=Hq,A1=Qq,T1=QK,M1=wV,P1=f1,D1=aG,R1=aU,I1=lV,N1=a$,L1=tK,B1=LW.isBrowser("IE"),F1=!B1,z1={edit:C1,composite:w1,drag:_1,cut:null,render:null},V1=!1,H1=function(e){function t(){return e.apply(this,arguments)||this}v1(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(E1.Component),U1=function(e){function t(t){var n;return y1(g1(n=e.call(this,t)||this),"_blockSelectEvents",void 0),y1(g1(n),"_clipboard",void 0),y1(g1(n),"_handler",void 0),y1(g1(n),"_dragCount",void 0),y1(g1(n),"_internalDrag",void 0),y1(g1(n),"_editorKey",void 0),y1(g1(n),"_placeholderAccessibilityID",void 0),y1(g1(n),"_latestEditorState",void 0),y1(g1(n),"_latestCommittedEditorState",void 0),y1(g1(n),"_pendingStateFromBeforeInput",void 0),y1(g1(n),"_onBeforeInput",void 0),y1(g1(n),"_onBlur",void 0),y1(g1(n),"_onCharacterData",void 0),y1(g1(n),"_onCompositionEnd",void 0),y1(g1(n),"_onCompositionStart",void 0),y1(g1(n),"_onCopy",void 0),y1(g1(n),"_onCut",void 0),y1(g1(n),"_onDragEnd",void 0),y1(g1(n),"_onDragOver",void 0),y1(g1(n),"_onDragStart",void 0),y1(g1(n),"_onDrop",void 0),y1(g1(n),"_onInput",void 0),y1(g1(n),"_onFocus",void 0),y1(g1(n),"_onKeyDown",void 0),y1(g1(n),"_onKeyPress",void 0),y1(g1(n),"_onKeyUp",void 0),y1(g1(n),"_onMouseDown",void 0),y1(g1(n),"_onMouseUp",void 0),y1(g1(n),"_onPaste",void 0),y1(g1(n),"_onSelect",void 0),y1(g1(n),"editor",void 0),y1(g1(n),"editorContainer",void 0),y1(g1(n),"focus",void 0),y1(g1(n),"blur",void 0),y1(g1(n),"setMode",void 0),y1(g1(n),"exitCurrentMode",void 0),y1(g1(n),"restoreEditorDOM",void 0),y1(g1(n),"setClipboard",void 0),y1(g1(n),"getClipboard",void 0),y1(g1(n),"getEditorKey",void 0),y1(g1(n),"update",void 0),y1(g1(n),"onDragEnter",void 0),y1(g1(n),"onDragLeave",void 0),y1(g1(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),y1(g1(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=A1.getScrollParent(o),a=e||D1(i),s=a.x,c=a.y;N1(o)||("production"!==process.env.NODE_ENV?I1(!1,"editorNode is not an HTMLElement"):I1(!1)),o.focus(),i===window?window.scrollTo(s,c):j1.setTop(i,c),r||n.update(k1.forceSelection(t,t.getSelection()))}})),y1(g1(n),"blur",(function(){var e=n.editor;e&&(N1(e)||("production"!==process.env.NODE_ENV?I1(!1,"editorNode is not an HTMLElement"):I1(!1)),e.blur())})),y1(g1(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=h1({},z1.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=h1({},z1,{edit:a});n._handler=s[e]})),y1(g1(n),"exitCurrentMode",(function(){n.setMode("edit")})),y1(g1(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),y1(g1(n),"setClipboard",(function(e){n._clipboard=e})),y1(g1(n),"getClipboard",(function(){return n._clipboard})),y1(g1(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),y1(g1(n),"onDragEnter",(function(){n._dragCount++})),y1(g1(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||M1(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}v1(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(S1?S1((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:L1(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return E1.createElement(O1,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=T1({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",d="combobox"===p?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:h1({},b1,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return E1.createElement("div",{className:f},this._renderPlaceholder(),E1.createElement("div",{className:T1("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},E1.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:d,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:T1({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:p,spellCheck:F1&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},E1.createElement(H1,{editor:this,editorState:a}),E1.createElement(x1,d1({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!V1&&R1("draft_ods_enabled")&&(V1=!0),this.setMode("edit"),B1&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):s.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(E1.Component);y1(U1,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:m1,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:P1,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var K1=U1,W1={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},$1=W1,q1=lY.strlen;var G1=lY,Z1=Sz,Y1=function(e,t){return e===t},X1=function(e){return!!e},J1=[];var Q1=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return Z1(o,Y1,X1,(function(t,o){var i=e.getText();r.push({offset:G1.strlen(i.slice(0,t)),length:G1.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(J1,n.toJS())};function e0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t0=Bz,n0=Qz,r0=W1,o0=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:q1(i.slice(0,r)),length:q1(i.slice(r,o)),key:Number(t[$1.stringify(a)])})})),n},i0=Q1,a0=lV,s0=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:i0(e),entityRanges:o0(e,t),data:e.getData().toObject()}},c0=function(e,t,n,r){if(e instanceof t0)n.push(s0(e,t));else{e instanceof n0||("production"!==process.env.NODE_ENV?a0(!1,"block is not a BlockNode"):a0(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){e0(e,t,n[t])}))}return e}({},s0(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},u0=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=r0.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),c0(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(r0.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function l0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f0(e,t,n[t])}))}return e}function f0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p0=wV,d0=lV,h0=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},g0={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?d0(!1,"Invalid raw state"):d0(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?d0(!1,"Invalid tree raw block"):d0(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=l0({},e);h0(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?l0({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,l0({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=h0(e),o=e.depth||0,i=l0({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:p0(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),l0({},e,{blocks:t})}},y0=hY,v0={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&y0(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&y0(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&y0(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&y0(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&y0(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&y0(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&y0(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&y0(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&y0(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},m0=v0,b0=Cz,w0=fz.List;var x0=function(e,t){var n=e.map((function(e,n){var r=t[n];return b0.create({style:e,entity:r})}));return w0(n)},_0=lY.substr;var C0=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=_0(e,0,t.offset).length,o=r+_0(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},S0=lY,O0=fz.OrderedSet,k0=S0.substr,E0=O0();var j0=function(e,t){var n=Array(e.length).fill(E0);return t&&t.forEach((function(t){for(var r=k0(e,0,t.offset).length,o=r+k0(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function A0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){T0(e,t,n[t])}))}return e}function T0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M0=Bz,P0=Qz,D0=TU,R0=rU,I0=g0,N0=m0,L0=iU,B0=x0,F0=C0,z0=j0,V0=wV,H0=fz,U0=lV,K0=aU("draft_tree_data_support"),W0=H0.List,$0=H0.Map,q0=H0.OrderedMap,G0=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||V0(),data:$0(o),characterList:Z0(e,t)}},Z0=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return B0(z0(n,o||[]),F0(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return A0({},e,{key:t[e.key]})}))))},Y0=function(e){return A0({},e,{key:e.key||V0()})},X0=function(e,t,n){var r=t.map((function(e){return A0({},e,{parentRef:n})}));return e.concat(r.reverse())},J0=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=K0&&!n?I0.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!K0)return function(e,t){return q0(e.map((function(e){var n=new M0(G0(e,t));return[n.getKey(),n]})))}(n?I0.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(Y0).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?U0(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):U0(!1));var i=r.children.map(Y0),a=new P0(A0({},G0(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:W0(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=X0([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?U0(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):U0(!1));break}var d=c.children.map(Y0),h=new P0(A0({},G0(c,t),{parent:u.getKey(),children:W0(d.map((function(e){return e.key}))),prevSibling:0===f?null:l.get(f-1),nextSibling:f===l.size-1?null:l.get(f+1)}));n=n.set(h.getKey(),h),s=X0(s,d,h)}return n}),q0())}(r,t);return"production"!==process.env.NODE_ENV&&(N0.isValidTree(o)||("production"!==process.env.NODE_ENV?U0(!1,"Should be a valid tree"):U0(!1))),o},Q0=GY;var e2=function(e){var t=Q0(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},t2=e2;var n2=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=t2(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},r2={Editor:K1,EditorBlock:zG,EditorState:SK,CompositeDecorator:XK,Entity:rU,EntityInstance:qH,BlockMapBuilder:dz,CharacterMetadata:Cz,ContentBlock:Bz,ContentState:TU,RawDraftContentState:{},SelectionState:iU,AtomicBlockUtils:GK,KeyBindingUtil:FY,Modifier:TH,RichUtils:wQ,DefaultDraftBlockRenderMap:nW,DefaultDraftInlineStyle:rW,convertFromHTML:QJ,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?U0(!1,"invalid RawDraftContentState"):U0(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=R0.__create(o,i,a||{})})),n}(e),n=J0(e,t),r=n.isEmpty()?new L0:L0.createEmpty(n.first().getKey());return new D0({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:u0,genKey:wV,getDefaultKeyBinding:f1,getVisibleSelectionRect:n2};const o2="FOUND_FIELD",i2="NOT_FOUND",a2="IMMUTABLE",s2=J.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),c2=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},u2=new r2.CompositeDecorator([{strategy:(e,t,n)=>c2(e,t,n,o2),component:({children:t})=>e.jsx(s2,{children:t})},{strategy:(e,t,n)=>c2(e,t,n,i2),component:({children:t})=>e.jsx(s2,Object.assign({error:!0},{children:t}))}]),l2=(e,t,n)=>{const r=ut.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},f2=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=ut.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=l2(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?o2:i2,mutability:a2,data:{id:i}}}o.text+=a}return r2.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return r2.EditorState.createWithContent(r,u2)},p2=(e,t=!0)=>{const n=e.getCurrentContent(),r=r2.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=ut.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},d2=e=>{const t=p2(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},h2=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new r2.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return r2.EditorState.forceSelection(e,o)},g2=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:s,onFocus:c,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:p,height:d,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:S,backgroundColor:O,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P}=n,D=a(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,I]=t.useState((()=>f2(o,l,m))),{focused:N,handleFocus:L,handleBlur:B}=Nr(c,u),[F,z]=t.useState(!1),V=t.useRef(null),H=t.useRef(),U=null!=h?h:d,K=U?U-(g?0:_?29:11):void 0,W=e=>{I(e);const t=(e=>d2(e).some((e=>e.type===i2)))(e);z(t);const n=p2(e),r=e.getLastChangeType();i&&i(n,t,r)},$=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=l2(e,t,r),u=c?o2:i2,l=i.createEntity(u,a2,{id:o}).getLastCreatedEntityKey(),f=r2.Modifier.insertText(i,a,s,void 0,l),p=r2.EditorState.push(n,f,"insert-characters");return r2.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,R,m);W(t)},q=()=>{(null==V?void 0:V.current)&&V.current.focus();const e=h2(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:$,focusAtEnd:q})));t.useEffect((()=>{p2(R)!==o&&(e=>{const t=R.getSelection(),n=f2(e,l,m),r=h2(n),o=t.getHasFocus()?r:n;W(o)})(o)}),[o]),t.useEffect((()=>{H.current=l}),[]),t.useEffect((()=>{const{current:e}=H,t=ut.isEqual(e,l),n=d2(R);if(!t&&n.length>0){H.current=l;const e=f2(o,l,m);W(e)}}),[l]);return e.jsx(y2,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:p,height:d,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:Lr(o),invalid:F,textOnly:E,borderRadius:S,backgroundColor:O,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P,focused:N,disabled:C,hasLabel:!!_,hideEditor:!Lr(o)&&!!_&&!N},{children:e.jsxs(Fr,Object.assign({readOnly:v},{children:[_&&e.jsx(zr,Object.assign({filled:Lr(o),focused:N,disabled:C},{children:_})),e.jsx(r2.Editor,Object.assign({ref:V,editorState:R,onChange:W,placeholder:f,readOnly:v,handleReturn:e=>{const t=r2.RichUtils.insertSoftNewline(R);return e.shiftKey||!s?W(t):s(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=r2.convertFromRaw({blocks:[o],entityMap:{}}),a=r2.EditorState.createWithContent(i,u2).getCurrentContent().getBlockMap(),s=r2.Modifier.replaceWithFragment(n,r,a);return r2.EditorState.push(t,s,"insert-fragment")})(e,n);return W(r),"handled"},onFocus:L,onBlur:B},D))]}))}))})),y2=J(Br)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),v2=J.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,width:l,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:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));v2.Item=J.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const m2=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=t,d=a(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return e.jsxs(IF,Object.assign({htmlFor:n,labelRight:h,disabled:s},g,{children:[r&&e.jsx(LF,{children:r}),e.jsx(NF,Object.assign({id:n,type:"radio",checked:i,disabled:s},d)),e.jsx(an,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!s})]}))},b2=n=>{var{id:r,label:o,labelPosition:i,checked:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,g=a(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(s||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof s?s:m)}),[s,m]),e.jsxs(IF,Object.assign({htmlFor:r,labelRight:w,disabled:c},x,{children:[o&&e.jsx(LF,{children:o}),e.jsx(NF,Object.assign({id:r,type:"checkbox",checked:m,disabled:c,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(an,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!c,size:40})]}))},w2=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:s}=t,c=a(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(x2,Object.assign({as:s?void 0:"label",disabled:i,rightIcon:!!o,pill:s},c,{children:[r&&Hr(r,{marginRight:4,size:"small"}),n,o&&Hr(o,{marginLeft:4,size:"small"})]}))},x2=J.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}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),_2=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(C2,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:e=>{c?c(e):e.preventDefault()}},u,{children:n}))};_2.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,disabled:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(S2,Object.assign({rows:r,columns:o,rowGap:i,columnGap:s,disabled:c},u,{children:n}))},_2.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(O2,Object.assign({inline:n,align:r,disabled:o},{children:t})),_2.Input=Ur,_2.Dropdown=no,_2.Radio=m2,_2.Toggle=b2,_2.Checkbox=BF,_2.Label=w2;const C2=J(v2)({boxSizing:"border-box"}),S2=J(v2)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),O2=J.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"})),k2=J.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}))),E2=J.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),j2=J.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%)`}}))),A2=J.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),T2=J.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"}))),M2=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(P2,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Mr(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),P2=J.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:u})=>({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:u}))),D2=J.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}))),R2=J.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),I2=J.div({marginLeft:"auto",marginRight:8});M2.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(D2,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),M2.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:p})=>{const[d,h]=t.useState(r||i),g=e=>Mr(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!d&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:p})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(R2,Object.assign({backgroundColor:p},{children:[e.jsxs(D2,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),d||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(I2,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(an,{name:d?"chevron-up":"chevron-down",pointer:!0})}))]})),d&&y]}))};const N2=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:y}=((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||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(F2,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(an,{name:h,style:{marginRight:10},color:g}),e.jsx(z2,{children:r||p}),o&&e.jsx(an,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},L2=J.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),B2=J.div((({theme:e})=>({fontWeight:e.font.weight.default})));N2.Header=L2,N2.Body=B2;const F2=J.div((({theme:e,borderColor:t,backgroundColor:n})=>({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})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),z2=J.div({width:"100%"}),V2=J.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),H2=J.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),U2=J.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),K2=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,preventOverlayClose:l,overlayColor:f,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O})=>{const k=st(l?()=>null:c,i),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O},j=Mr(n).map((e=>e?t.cloneElement(e,{inline:d}):null)),A=e.jsx(q2,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(W2,Object.assign({ref:k,width:a,height:s,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx($2,Object.assign({inline:d},{children:e.jsx(an,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};K2.Header=J.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),K2.Text=J.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),K2.Body=J.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),K2.Footer=J.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})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const W2=J.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"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),$2=J.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),q2=J.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)"}))),G2=J.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),Z2=J.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"}))),Y2=J.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),X2=J.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}:{})),J2=J.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}))),Q2=J.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),e5=J.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),t5=J.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),n5=e=>e?+e:0,r5=J.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),o5=J.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`}}))),i5=J(o5)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),a5=J(o5)((({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}))),s5=J.span((({theme:e})=>({color:e.scale6}))),c5=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u},f=(n-r)/2,p=f*Math.PI*2,d=p-p*t/100,h=n/2;return e.jsxs(u5,Object.assign({size:n},l,{children:[e.jsx(l5,{cx:h,cy:h,r:f,thickness:r}),e.jsx(f5,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:p,complete:d})]}))},u5=J.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),l5=J.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),f5=J(l5)((({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"}))),p5=J.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),d5=J.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 h5={};!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 u(e){e.parentNode&&e.parentNode.removeChild(e)}function l(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 p(e,t,n){function r(){l&&o&&i&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function d(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--,v(e)}}function y(e,t){e.c=t,v(e)}function v(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 _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(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 O(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")),l(e.f,n,r)}k(e,"inactive")}function k(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:"+_(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 _(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"},R=null;function I(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function N(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 L(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()&&N(e,n,i)),t?o()-e.A>=e.w?I()&&N(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(){L(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(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(),L(this)};var z=null;function V(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):O(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(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)O(t.a);else{t.f+=n.length,a&&(t.j=a);var c,u=[];for(c=0;c<n.length;c++){var f=n[c],p=s[f.c],d=t.a,h=f;if(d.g&&l(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),k(d,"fontloading",h),d=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;d=z?new M(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new P(r(t.g,t),r(t.h,t),t.c,f,t.s,e,p),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function W(e,t){this.c=e,this.a=t}function $(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(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")]),k(t,"fontactive",e),this.m=!0,V(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")),l(t.f,r,o)}k(t,"fontinactive",e),V(this)},H.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&&l(e.f,[e.a.c("wf","loading")]),k(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){U(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.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;d(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([])},W.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++)p(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(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={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 $(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 G(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,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(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)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(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,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(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 H(window);re.a.c.custom=function(e,t){return new W(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(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))}()}({get exports(){return h5},set exports(e){h5=e}});var g5=h5;const y5=J.div((({width:e,height:t})=>({width:e,height:t}))),v5=J.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),m5=J.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),b5=J.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),w5=J.div({display:"flex",flexDirection:"column"}),x5=J.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),_5=J.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),C5=J.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"}}})),S5=J.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),O5=J.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),k5=t.createContext({}),E5=(t,n)=>{const r="th"===n?j5:A5;return Mr(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},j5=J.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),A5=J.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),T5=J(v2)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),M5=J.tbody((({height:e})=>({height:e,overflow:"auto"}))),P5=J(v2)((({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"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),D5=J.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),R5=J(D5)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),I5=J(D5)({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}}))),N5=n=>{var{children:r,columns:o,data:i}=n,s=a(n,["children","columns","data"]);const[c,u]=t.useState(i),[l,f]=t.useState(),p=i&&"function"==typeof r?r(c):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=ut.orderBy(i,t,n)}ut.isEqual(e,c)||u(e)}),[i,l]);const d=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(k5.Provider,Object.assign({value:d},{children:e.jsx(L5,Object.assign({},s,{children:p}))}))};N5.Header=n=>{var{children:r,columns:o}=n,i=a(n,["children","columns"]);const{parentColumns:s}=t.useContext(k5),c=o||s||"equal";return e.jsx("thead",{children:e.jsx(T5,Object.assign({as:"tr",columns:c},i,{children:E5(r,"th")}))})},N5.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,u]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:p}=t.useContext(k5),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(e),p&&s){p("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||y(a)}),[]),t.useEffect((()=>{a&&u(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),e.jsxs(I5,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!d},{children:[r,d?e.jsx(an,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},N5.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(k5);return e.jsx(M5,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},N5.Row=n=>{var{children:r,columns:o,onClick:i}=n,s=a(n,["children","columns","onClick"]);const{parentColumns:c}=t.useContext(k5),u=o||c||"equal";return e.jsx(P5,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:E5(r,"td")}))},N5.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(R5,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const L5=J.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),B5=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(H5,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e.jsx(V5,Object.assign({visible:x,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},F5=J.div((({theme:e})=>({color:e.tooltip.color.default}))),z5=J.div((({theme:e})=>({color:e.tooltip.color.subtext}))),V5=J.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),H5=J.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));B5.Header=F5,B5.Body=z5;const U5="#0074F4",K5="#FF6068",W5="#FF9900",$5="#F0BB00",q5="#00C242",G5="#001D32",Z5="#FFFFFF",Y5={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:U5,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:rr(.95,U5),brandTint1:rr(.9,U5),brandTint2:rr(.8,U5),brandTint3:rr(.7,U5),brandTint4:rr(.6,U5),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:K5,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:rr(.95,K5),errorTint1:rr(.9,K5),errorTint2:rr(.8,K5),warning:W5,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:rr(.95,W5),warningTint1:rr(.9,W5),warningTint2:rr(.8,W5),alert:$5,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:rr(.95,$5),alertTint1:rr(.9,$5),alertTint2:rr(.8,$5),success:q5,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:rr(.95,q5),successTint1:rr(.9,q5),successTint2:rr(.8,q5),grayscale0:rr(.95,G5),grayscale1:rr(.9,G5),grayscale2:rr(.8,G5),grayscale3:rr(.7,G5),grayscale4:rr(.6,G5),grayscale5:rr(.5,G5),grayscale6:rr(.4,G5),grayscale7:rr(.3,G5),grayscale8:rr(.2,G5),grayscale9:rr(.1,G5),grayscale10:G5,contrast0:rr(.95,Z5),contrast1:rr(.9,Z5),contrast2:rr(.8,Z5),contrast3:rr(.7,Z5),contrast4:rr(.6,Z5),contrast5:rr(.5,Z5),contrast6:rr(.4,Z5),contrast7:rr(.3,Z5),contrast8:rr(.2,Z5),contrast9:rr(.1,Z5),contrast10:Z5};var X5={color:Y5,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:J5}=X5;var Q5={small:{height:28,iconSize:18,font:J5.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:J5.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:J5.size.lg,padding:14,iconOnlyPadding:6}};const e3="#FFFFFF",t3=Y5.grayscale0,n3=Y5.grayscale1,r3=Y5.grayscale2,o3=Y5.grayscale3,i3=Y5.grayscale4,a3=Y5.grayscale5,s3=Y5.grayscale6,c3=Y5.grayscale7,u3=Y5.grayscale8,l3=Y5.grayscale9,f3=Y5.grayscale10,p3=Object.assign(Object.assign({},X5),{name:"light",accent:Y5.brand,accentShade:Y5.brandShade1,background0:e3,background1:e3,background2:e3,background3:e3,background4:e3,background5:e3,scale0:t3,scale1:n3,scale2:r3,scale3:o3,scale4:i3,scale5:a3,scale6:s3,scale7:c3,scale8:u3,scale9:l3,scale10:f3,button:Object.assign(Object.assign({},Q5),{primary:{color:{default:e3,hover:e3,active:e3},outlineColor:{default:f3,hover:f3,active:f3},background:{default:Y5.brand,hover:Y5.brandShade1,active:Y5.brandShade2},outlineBackground:{default:Y5.brandTint0,hover:Y5.brandTint1,active:Y5.brandTint2},border:{default:Y5.brand,hover:Y5.brandShade1,active:Y5.brandShade2},divider:r3},secondary:{color:{default:f3,hover:f3,active:f3},outlineColor:{default:f3,hover:f3,active:f3},background:{default:n3,hover:r3,active:o3},outlineBackground:{default:n3,hover:r3,active:o3},border:{default:r3,hover:r3,active:r3},divider:r3},positive:{color:{default:e3,hover:e3,active:e3},outlineColor:{default:f3,hover:f3,active:f3},background:{default:Y5.success,hover:Y5.successShade1,active:Y5.successShade2},outlineBackground:{default:Y5.successTint0,hover:Y5.successTint1,active:Y5.successTint2},border:{default:Y5.success,hover:Y5.successShade1,active:Y5.successShade2},divider:r3},negative:{color:{default:e3,hover:e3,active:e3},outlineColor:{default:f3,hover:f3,active:f3},background:{default:Y5.error,hover:Y5.errorShade1,active:Y5.errorShade2},outlineBackground:{default:Y5.errorTint0,hover:Y5.errorTint1,active:Y5.errorTint2},border:{default:Y5.error,hover:Y5.errorShade1,active:Y5.errorShade2},divider:r3},caution:{color:{default:e3,hover:e3,active:e3},outlineColor:{default:f3,hover:f3,active:f3},background:{default:Y5.warning,hover:Y5.warningShade1,active:Y5.warningShade2},outlineBackground:{default:Y5.warningTint0,hover:Y5.warningTint1,active:Y5.warningTint2},border:{default:Y5.warning,hover:Y5.warningShade1,active:Y5.warningShade2},divider:r3},subtle:{color:{default:Y5.brand,hover:Y5.brand,active:Y5.brand},outlineColor:{default:Y5.brand,hover:Y5.brand,active:Y5.brand},secondaryColor:{default:f3,hover:f3,active:f3},positiveColor:{default:Y5.success,hover:Y5.success,active:Y5.success},negativeColor:{default:Y5.error,hover:Y5.error,active:Y5.error},cautionColor:{default:Y5.warning,hover:Y5.warning,active:Y5.warning},background:{default:"transparent",hover:n3,active:r3},outlineBackground:{default:"transparent",hover:n3,active:r3},border:{default:"transparent",hover:r3,active:r3},divider:r3},link:{color:{default:Y5.brand,hover:Y5.brandShade1,active:Y5.brandShade2},outlineColor:{default:Y5.brand,hover:Y5.brandShade1,active:Y5.brandShade2},secondaryColor:{default:u3,hover:l3,active:f3},positiveColor:{default:Y5.success,hover:Y5.successShade1,active:Y5.successShade2},negativeColor:{default:Y5.error,hover:Y5.errorShade1,active:Y5.errorShade2},cautionColor:{default:Y5.warning,hover:Y5.warningShade1,active:Y5.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:i3,hover:i3,active:i3},outlineColor:{default:i3,hover:i3,active:i3},background:{default:n3,hover:n3,active:n3},outlineBackground:{default:t3,hover:t3,active:t3},border:{default:n3,hover:n3,active:n3},divider:n3},color:{default:e3}}),calendar:{background:{container:Y5.contrast10,hover:n3,active:Y5.brand,activeHover:Y5.brandShade1},color:{disabled:i3,default:f3,active:Y5.contrast10,current:Y5.brand,outside:s3,weekday:u3,monthYear:u3,iconDefault:i3,iconHover:f3}},defaultBorder:`1px solid ${n3}`,formControl:{color:{default:u3,hover:f3,active:Y5.brand,activeHover:Y5.brandShade1,disabled:i3}},input:{borderRadius:4,background:{default:t3,hover:n3,focused:n3,disabled:t3},color:{default:f3,disabled:i3,placeholder:s3,description:s3,descriptionError:Y5.error},borderColor:{default:s3,hover:u3,focused:Y5.brand,disabled:i3,error:Y5.error},labelColor:{default:u3,hover:u3,filled:s3,focused:Y5.brand,disabled:i3}},menu:{background:e3},menuItem:{borderColor:Y5.brand,background:{active:t3,hover:n3,inactive:"transparent"},color:{active:f3,hover:f3,inactive:s3}},modal:{background:Y5.contrast10,color:{header:f3,body:s3}},options:{background:Y5.contrast10},optionItem:{background:{active:n3,inactive:"transparent"},color:{active:f3,inactive:f3,accent:Y5.brand}},table:{color:{header:s3,body:f3},borderColor:n3},toast:{color:f3,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:u3,info:Y5.brand,success:Y5.success,warning:Y5.warning,error:Y5.error}},toggle:{slider:Y5.contrast10},tooltip:{background:"#FFF",color:{default:f3,subtext:s3}}}),d3=Y5.contrast0,h3=Y5.contrast1,g3=Y5.contrast2,y3=Y5.contrast3,v3=Y5.contrast4,m3=Y5.contrast5,b3=Y5.contrast6,w3=Y5.contrast7,x3=Y5.contrast8,_3=Y5.contrast9,C3=Y5.contrast10,S3=Y5.brandDark,O3={light:p3,dark:Object.assign(Object.assign({},X5),{name:"dark",accent:S3,accentShade:Y5.brandDarkShade1,background0:Y5.brandBackground0,background1:Y5.brandBackground1,background2:Y5.brandBackground2,background3:Y5.brandBackground3,background4:Y5.brandBackground4,background5:Y5.brandBackground5,scale0:d3,scale1:h3,scale2:g3,scale3:y3,scale4:v3,scale5:m3,scale6:b3,scale7:w3,scale8:x3,scale9:_3,scale10:C3,button:Object.assign(Object.assign({},Q5),{primary:{color:{default:C3,hover:C3,active:C3},outlineColor:{default:C3,hover:C3,active:C3},background:{default:Y5.brand,hover:Y5.brandShade1,active:Y5.brandShade2},outlineBackground:{default:Y5.brandTint0,hover:Y5.brandTint1,active:Y5.brandTint2},border:{default:Y5.brand,hover:Y5.brandShade1,active:Y5.brandShade2},divider:g3},secondary:{color:{default:C3,hover:C3,active:C3},outlineColor:{default:C3,hover:C3,active:C3},background:{default:h3,hover:g3,active:y3},outlineBackground:{default:h3,hover:g3,active:y3},border:{default:g3,hover:g3,active:g3},divider:g3},positive:{color:{default:C3,hover:C3,active:C3},outlineColor:{default:C3,hover:C3,active:C3},background:{default:Y5.success,hover:Y5.successShade1,active:Y5.successShade2},outlineBackground:{default:Y5.successTint0,hover:Y5.successTint1,active:Y5.successTint2},border:{default:Y5.success,hover:Y5.successShade1,active:Y5.successShade2},divider:g3},negative:{color:{default:C3,hover:C3,active:C3},outlineColor:{default:C3,hover:C3,active:C3},background:{default:Y5.error,hover:Y5.errorShade1,active:Y5.errorShade2},outlineBackground:{default:Y5.errorTint0,hover:Y5.errorTint1,active:Y5.errorTint2},border:{default:Y5.error,hover:Y5.errorShade1,active:Y5.errorShade2},divider:g3},caution:{color:{default:C3,hover:C3,active:C3},outlineColor:{default:C3,hover:C3,active:C3},background:{default:Y5.warning,hover:Y5.warningShade1,active:Y5.warningShade2},outlineBackground:{default:Y5.warningTint0,hover:Y5.warningTint1,active:Y5.warningTint2},border:{default:Y5.warning,hover:Y5.warningShade1,active:Y5.warningShade2},divider:g3},subtle:{color:{default:Y5.brand,hover:Y5.brand,active:Y5.brand},outlineColor:{default:Y5.brand,hover:Y5.brand,active:Y5.brand},secondaryColor:{default:C3,hover:C3,active:C3},positiveColor:{default:Y5.success,hover:Y5.success,active:Y5.success},negativeColor:{default:Y5.error,hover:Y5.error,active:Y5.error},cautionColor:{default:Y5.warning,hover:Y5.warning,active:Y5.warning},background:{default:"transparent",hover:h3,active:g3},outlineBackground:{default:"transparent",hover:h3,active:g3},border:{default:"transparent",hover:g3,active:g3},divider:g3},link:{color:{default:Y5.brandShade2,hover:Y5.brandShade1,active:Y5.brand},outlineColor:{default:Y5.brandShade2,hover:Y5.brandShade1,active:Y5.brand},secondaryColor:{default:x3,hover:_3,active:C3},positiveColor:{default:Y5.successShade2,hover:Y5.successShade1,active:Y5.success},negativeColor:{default:Y5.errorShade2,hover:Y5.errorShade1,active:Y5.error},cautionColor:{default:Y5.warningShade2,hover:Y5.warningShade1,active:Y5.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:v3,hover:v3,active:v3},outlineColor:{default:v3,hover:v3,active:v3},background:{default:h3,hover:h3,active:h3},outlineBackground:{default:d3,hover:d3,active:d3},border:{default:h3,hover:h3,active:h3},divider:h3},color:{default:"#FFFFFF"}}),calendar:{background:{container:Y5.brandBackground3,hover:h3,active:Y5.brand,activeHover:Y5.brandShade1},color:{disabled:v3,default:C3,active:C3,current:S3,outside:b3,weekday:x3,monthYear:x3,iconDefault:v3,iconHover:C3}},defaultBorder:`1px solid ${h3}`,formControl:{color:{default:x3,hover:C3,active:Y5.brand,activeHover:Y5.brandShade1,disabled:v3}},input:{borderRadius:4,background:{default:d3,hover:h3,focused:h3,disabled:d3},color:{default:C3,disabled:v3,placeholder:b3,description:b3,descriptionError:Y5.error},borderColor:{default:b3,hover:x3,focused:S3,disabled:v3,error:Y5.error},labelColor:{default:x3,hover:x3,filled:b3,focused:S3,disabled:v3}},menu:{background:Y5.brandBackground2},menuItem:{borderColor:Y5.brand,background:{active:d3,hover:h3,inactive:"transparent"},color:{active:C3,hover:C3,inactive:b3}},modal:{background:Y5.brandBackground3,color:{header:C3,body:b3}},options:{background:Y5.brandBackground3},optionItem:{background:{active:h3,inactive:"transparent"},color:{active:C3,inactive:C3,accent:S3}},table:{color:{header:b3,body:C3},borderColor:h3},toast:{color:C3,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:x3,info:Y5.brand,success:Y5.success,warning:Y5.warning,error:Y5.error}},toggle:{slider:Y5.brandBackground0},tooltip:{background:Y5.brandBackground4,color:{default:C3,subtext:b3}}})};exports.Accordion=un,exports.Audio=_o,exports.BarChart=t=>{var{width:r,height:o,data:i,dataKey:s,legend:c,stackData:u}=t,l=a(t,["width","height","data","dataKey","legend","stackData"]);const{scale2:f,color:p}=n.useTheme();return e.jsxs(PL,Object.assign({},l,{children:[e.jsx(ML,{}),e.jsxs(FR,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:o,data:i},{children:[e.jsx(RP,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(zD,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(VD,{stroke:f,tickMargin:4}),RL(),c&&e.jsx(Kd,{content:e.jsx(IL,{})}),u?u.map((({key:t,color:n},r)=>e.jsx(kD,{barSize:16,dataKey:t,fill:n,stackId:"stack"},`bar-${r+1}`))):e.jsx(kD,{barSize:16,dataKey:s,fill:p.brand})]}))]}))},exports.Button=po,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[u,l]=t.useState(c),[f,p]=t.useState(c),[d,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>{const t=function(e,t){if(VL(2,arguments),"object"!==_F(t)||null===t)throw new RangeError("values parameter must be an object");var n=UL(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=xF(n,t.month)),null!=t.date&&n.setDate(zL(t.date)),null!=t.hours&&n.setHours(zL(t.hours)),null!=t.minutes&&n.setMinutes(zL(t.minutes)),null!=t.seconds&&n.setSeconds(zL(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(zL(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},v=e=>{const t=CF(("prev"===e?kF:qL)(f,{months:1}),1),n=y(t);p(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?yF(kF(e,{months:1})):CF("future"===n?qL(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?kF:qL)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){VL(1,arguments);var t=UL(e),n=t.getDay();return n}(CF(e,1)),n=gF(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=y(c),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(yF(f)),s=y(CF(f,1));let l=!1;const p=mF(e,n),d=vF(e,r);(i&&p||a&&d)&&(l=!0);const h=vF(e,o)||mF(e,s),g=tB(e,c),v=tB(e,u);return{date:hF(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(EF,Object.assign({noShadow:s},{children:[e.jsxs(jF,{children:[e.jsx(AF,{children:pF(f,"MMMM Y")}),e.jsxs(TF,{children:[e.jsx(an,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(an,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(DF,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(RF,{children:t[0]},t)))}),e.jsx(MF,{children:(null==d?void 0:d.length)&&d.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(PF,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>{return l(e=n),void o(e);var e}},{children:t}),wr())))})]}))},exports.Checkbox=BF,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=n.useTheme(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){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)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(rz,{method:w,url:C}):e.jsx(ZF,Object.assign({},VF,{code:C,language:b,theme:"dark"===d?JF:QF},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(sz,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(cz,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(uz,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(tz,{content:C})]}))}))},exports.DocTable=lz,exports.DraftEditor=g2,exports.Dropdown=no,exports.Form=_2,exports.Grid=v2,exports.Icon=an,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),p=st(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const d=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),d();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,l]),n?e.jsxs(k2,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(E2,Object.assign({onClick:r},{children:e.jsx(an,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(j2,Object.assign({id:"prev",onClick:d},{children:e.jsx(an,{name:"chevron-left",size:35,color:"white"})})),e.jsx(A2,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(j2,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(an,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=T2,exports.Input=Ur,exports.InputUtils=Vr,exports.Label=w2,exports.Menu=M2,exports.Message=N2,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(U2,{children:[e.jsx(H2,{}),e.jsx(V2,Object.assign({color:n,style:r},{children:t})),e.jsx(H2,{})]}),exports.Modal=K2,exports.MultiSelect=o=>{var{children:i,options:s,items:c,listLabel:u,listText:l,itemsTitle:f,maxItems:p,placeholder:d,width:h,filter:g,restrictInput:y,disabled:v,hideItemsInfo:m,optionsParent:b,compact:w,backgroundColor:x,borderless:_,addItem:C,removeItem:S,onTextChange:O,autoFocus:k}=o,E=a(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,A]=t.useState(k||!1),[T,M]=t.useState(!1),[P,D]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),L=st((()=>A(!1)),j,b?[b,`${b} *`]:void 0),B=t.useRef(null),F=w&&!!u,z=e=>{e&&C(e)},V=e=>{D(e),O&&O(e)};t.useEffect((()=>{const{current:e}=B;e&&!j&&e.blur()}),[j]);at(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];S(t)}}),j&&!P,[c]);const H=s.filter((e=>!c.find((t=>t.id===e.id)))),U=t.useMemo((()=>`multi-select-${wr()}`),[]),K=t.useMemo((()=>`multi-select-list-${wr()}`),[]),W=p?c.length>=p:void 0,$=v||!j||W,q=()=>{const t=e.jsxs(X2,Object.assign({id:K,expanded:j,padTop:j&&c.length>0,labeled:!!u},{children:[l&&e.jsx(J2,Object.assign({expanded:j,labeled:!!u},{children:l})),i?i(j,!!v):c.map((t=>e.jsx(w2,Object.assign({pill:!0,iconRight:j&&!v?e.jsx(an,{name:"close-circle",onClick:()=>S(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx(no,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:H,fontSize:I.size.md,placeholder:v||c.length>0?" ":d||"Search...",placeholderColor:N.color.placeholder,inputRef:B,onChange:z,onTextChange:V,onError:e=>M(e),disabled:$,optionsParent:b?`#${K}`:`#${U}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?r.createPortal(t,e):t}return t};return e.jsxs(G2,Object.assign({width:h,ref:L,labeled:!!u,disabled:v,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=B;j||u||A(!0),null==t||t.focus()}},{children:[e.jsxs(Z2,Object.assign({collapse:F,id:U,expanded:j&&c.length>0,error:T,labeled:!!u,backgroundColor:x,borderless:_},{children:[u?e.jsx(Y2,Object.assign({collapse:F},{children:u})):q(),e.jsxs(Q2,{children:[p&&!m&&e.jsx(t5,{children:v&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(e5,Object.assign({error:c.length>=p},{children:c.length})),"/",p," ",f]})}),c.length>0&&e.jsx(an,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!j)}})]})]})),u&&j&&q()]}))},exports.Notification=TL,exports.Options=Gr,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:s,width:c}=n,u=a(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(n5(o)||1),[p,d]=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,n5(s)||h.length),y=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);d(t),f(e),r(e)}},v=0!==p,m=p!==g.length-1;return e.jsxs(r5,Object.assign({width:c},u,{children:[e.jsx(i5,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(an,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(i5,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(an,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(s5,{children:"... "}):"",e.jsx(a5,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(s5,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(i5,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(an,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(i5,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(an,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,outerRadius:i,showWhenEmpty:s}=t,c=a(t,["size","data","innerRadius","outerRadius","showWhenEmpty"]);const u=(null==r?void 0:r.length)>0,l=u?r:s?[{name:"1",value:1,color:"#999"}]:void 0,f=i||n/2-1;return e.jsx(PL,Object.assign({},c,{children:e.jsxs(zR,Object.assign({width:n,height:n},{children:[e.jsx(vT,Object.assign({dataKey:"value",data:l,innerRadius:o,outerRadius:f},{children:null==l?void 0:l.map((t=>e.jsx(iw,{fill:t.color||"#999"},t.name)))})),u&&RL()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(c5,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e.jsx(p5,Object.assign({width:o,height:i||s},d,{children:e.jsx(d5,{color:n,width:h})}))},exports.Radio=m2,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,g5.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=bo,exports.Spacer=y5,exports.Spinner=Dr,exports.Table=N5,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=b2,exports.Tooltip=B5,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,width:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(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?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(S5,{children:t.header}),e.jsx(O5,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(v5,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(m5,{children:i}),e.jsxs(b5,{children:[!u&&e.jsxs(w5,{children:[k&&e.jsx(x5,{children:v.length>0&&!s&&e.jsx(po,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(_5,{children:v.map((t=>e.jsxs(C5,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[O(t),e.jsx(an,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(w5,{children:[k&&!u&&e.jsx(x5,{children:b.length>0&&!c&&!u&&e.jsx(po,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(_5,{children:b.map((t=>e.jsxs(C5,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[O(t),e.jsx(an,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=ez,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,u=pF(n,"EEEE"),l=pF(n,"MMM d"),f=pF(n,"MMM d, y"),p=pF(n,"h:mm aaa"),d=function(e){return VL(1,arguments),bF(e,Date.now())}(n),h=function(e){return VL(1,arguments),UL(e).getTime()>Date.now()}(n),g=function(e){return VL(1,arguments),tB(e,Date.now())}(n),y=function(e){return VL(1,arguments),tB(e,wF(Date.now(),1))}(n),v=function(e){return VL(1,arguments),tB(e,KL(Date.now(),1))}(n),m=function(e,t,n){VL(2,arguments);var r=sB(e,t)/6e4;return uB(null==n?void 0:n.roundingMethod)(r)}(c,n),b=function(e,t,n){VL(2,arguments);var r=aB(e,t)/7;return uB(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.theme=O3,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,p]=t.useState(l||""),[d,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const y=()=>{null==d||d.resolve(!s||f),g()},v=()=>{null==d||d.resolve(!1),g()};at(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(K2,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e.jsx(K2.Header,{children:n}),r&&e.jsx(K2.Text,{children:r}),s&&e.jsx(K2.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(Ur,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),e.jsxs(K2.Footer,{children:[e.jsx(po,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(po,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=rn,exports.useEventListener=at,exports.useOnClickOutside=st,exports.useSelect=lt,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};
212
212
  //# sourceMappingURL=index.js.map