@wavv/ui 1.4.0-beta.2 → 1.4.0-beta.4
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.
package/build/esm/index.js
CHANGED
|
@@ -197,7 +197,7 @@ var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
197
197
|
38:14,
|
|
198
198
|
/*! Conditions:: INITIAL */
|
|
199
199
|
/*! Rule:: $ */
|
|
200
|
-
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 i.lexer=o,a.prototype=i,i.Parser=a,new a}();e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)}}(gv);var yv={},vv={exports:{}},mv={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}},bv=function(e,t,n,r){if(!mv.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!mv[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=mv[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(bv);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}(vv,vv.exports),Object.defineProperty(yv,"__esModule",{value:!0}),yv.flip=Ov;var wv=function(e){return e&&e.__esModule?e:{default:e}}(vv.exports);function xv(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,wv.default)(e.left,e.right,t),r=xv(n.left,t),i=xv(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(_v(r.right,i.right)?n=(0,wv.default)(r.left,i.left,t):_v(r.right,i.left)&&(n=(0,wv.default)(r.left,i.right,t)),r=xv(n.left,t),i=xv(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return Sv(i);r.type===i.type&&Cv(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(Cv(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Ov(i.operator):i.operator,xv(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:"-"===o?Ov(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,xv(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Cv(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=xv({type:"MathExpression",operator:o,left:r.left,right:i},t),xv(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=xv({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=xv({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),xv(e,t)}return e}(e,t);case"/":return function(e,t){if(!Cv(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 Cv(e.left.left.type)&&Cv(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,xv(e.left,t)):e;if(Cv(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(Cv(e.left.left.type)&&Cv(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Cv(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(Cv(e.right.left.type)&&Cv(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&&Cv(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?xv(e.value,t):e}function _v(e,t){return e.type===t.type&&e.value===t.value}function Cv(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 Ov(e){return"+"===e?"-":"+"}function Sv(e){return Cv(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Sv(e.left),e.right=Sv(e.right)),e}yv.default=xv;var kv={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=yv,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(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+="("+o(a,t)+")":u+=o(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+o(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=o(s,t)):u+=o(s,t),u;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(kv,kv.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(hv),r=gv,i=a(yv),o=a(kv.exports);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,i.default)(c,t);e.type="word",e.value=(0,o.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(Jy,Jy.exports);var Ev=St(Jy.exports);function Av(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 Tv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mv(e){return function(e){if(Array.isArray(e))return Pv(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 Pv(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 Pv(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 Pv(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 Dv={widthCache:{},cacheCount:0},Iv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Rv=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Lv=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((o=n,o.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Mv(e),["-",t.toLowerCase()]):[].concat(Mv(e),[t])}),[]).join("")),":").concat((r=n,i=e[n],Rv.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},Nv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||_g.isSsr)return{width:0,height:0};var n="".concat(e),r=Lv(t),i="".concat(n,"-").concat(r);if(Dv.widthCache[i])return Dv.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Tv(Tv({},Iv),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Dv.widthCache[i]=c,++Dv.cacheCount>2e3&&(Dv.cacheCount=0,Dv.widthCache={}),c}catch(e){return{width:0,height:0}}};function Bv(e){return Bv="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},Bv(e)}function Fv(){return Fv=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},Fv.apply(this,arguments)}function zv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hv(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 Vv(e,t){return Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vv(e,t)}function Kv(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=$v(e);if(t){var i=$v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wv(this,n)}}function Wv(e,t){return!t||"object"!==Bv(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 $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$v(e)}function qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gv(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 Gv(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 Gv(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 Zv(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 Yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){Xv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jv=/[ \f\n\r\t\v\u2028\u2029]+/,Qv=function(e){try{var t=[];return Wf(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Jv)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Nv(t,e.style).width}})),spaceWidth:e.breakAll?0:Nv(" ",e.style).width}}catch(e){return null}},em=function(e){return[{words:Wf(e)?[]:e.toString().split(Jv)}]},tm=function(e,t){if((e.width||e.scaleToFit)&&!_g.isSsr&&t){var n=Qv(e);return n?function(e,t,n,r,i){var o=Cf(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||i||s.width+a+n<r))s.words.push(o),s.width+=a+n;else{var c={words:[o],width:a};e.push(c)}return e}),[])},c=s(t);if(!o)return c;for(var u,l=function(t){var n=a.slice(0,t),i=Qv(Yv(Yv({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=s(i),c=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[c,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=qv(l(h-1),2),y=g[0],v=g[1],m=qv(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):em(e.children)}return em(e.children)},nm=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&&Vv(e,t)}(a,w);var t,n,r,o=Kv(a);function a(){var e;Uv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={},e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,a=e.scaleToFit,s=e.angle,c=e.lineHeight,u=e.capHeight,l=e.className,f=e.breakAll,p=zv(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),d=this.state.wordsByLines;if(!Of(p.x)||!Of(p.y))return null;var h,g=p.x+(Cf(t)?t:0),y=p.y+(Cf(n)?n:0);switch(o){case"start":h=Ev("calc(".concat(u,")"));break;case"middle":h=Ev("calc(".concat((d.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:h=Ev("calc(".concat(d.length-1," * -").concat(c,")"))}var v=[];if(a){var m=d[0].width,b=this.props.width;v.push("scale(".concat((Cf(b)?b/m:1)/m,")"))}return s&&v.push("rotate(".concat(s,", ").concat(g,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),i.createElement("text",Fv({},$n(p,!0),{x:g,y:y,className:zn("recharts-text",l),textAnchor:r}),d.map((function(e,t){return i.createElement("tspan",{x:g,dy:0===t?h:c,key:t},e.words.join(f?"":" "))})))}}],r=[{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:tm(e,n)}}return null}}],n&&Hv(t.prototype,n),r&&Hv(t,r),a}();function rm(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 im(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}nm.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var om={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},am=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},sm=null,cm=null,um=function e(t){if(t===sm&&xo(cm))return cm;var n=[];return g.forEach(t,(function(t){Wf(t)||(Tt.exports.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),cm=n,sm=t,n},lm=function(e,t){var n=[],r=[];return r=xo(t)?t.map((function(e){return am(e)})):[am(t)],um(e).forEach((function(e){var t=ac(e,"type.displayName")||ac(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},fm=function(e,t){var n=lm(e,t);return n&&n[0]},pm=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Cf(n)||n<=0||!Cf(r)||r<=0)},dm=["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"],hm=function e(t,n){if(t===n)return!0;var r=g.count(t);if(r!==g.count(n))return!1;if(0===r)return!0;if(1===r)return gm(xo(t)?t[0]:t,xo(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(xo(o)||xo(a)){if(!e(o,a))return!1}else if(!gm(o,a))return!1}return!0},gm=function(e,t){if(Wf(e)&&Wf(t))return!0;if(!Wf(e)&&!Wf(t)){var n=e.props||{},r=n.children,i=im(n,["children"]),o=t.props||{},a=o.children,s=im(o,["children"]);return r&&a?rm(i,s)&&hm(r,a):!r&&!a&&rm(i,s)}return!1},ym=function(e,t){var n=[],r={};return um(e).forEach((function(e,i){if(function(e){return e&&e.type&&wf(e.type)&&dm.indexOf(e.type)>=0}(e))n.push(e);else if(e){var o=am(e.type),a=t[o]||{},s=a.handler,c=a.once;if(s&&(!c||!r[o])){var u=s(e,o,i);n.push(u),r[o]=!0}}})),n},vm=fs;var mm=function(e,t){return vm(e,t)},bm=Es;var wm=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!bm(a):n(a,s)))var s=a,c=o}return c};var xm=function(e,t){return e>t},_m=wm,Cm=xm,Om=kc;var Sm=function(e){return e&&e.length?_m(e,Om,Cm):void 0};var km=function(e,t){return e<t},Em=wm,Am=km,Tm=kc;var jm=function(e){return e&&e.length?Em(e,Tm,Am):void 0},Mm=zs,Pm=zc,Dm=_h,Im=xo;var Rm=dh,Lm=function(e,t){return(Im(e)?Mm:Dm)(e,Pm(t))};var Nm,Bm=function(e,t){return Rm(Lm(e,t),1)},Fm=!0,zm="[DecimalError] ",Um=zm+"Invalid argument: ",Hm=zm+"Exponent out of range: ",Vm=Math.floor,Km=Math.pow,Wm=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$m=1e7,qm=Vm(1286742750677284.5),Gm={};function Zm(e,t){var n,r,i,o,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Fm?ob(t,f):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),o>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=u.length)<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/$m|0,c[o]%=$m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,Fm?ob(t,f):t}function Ym(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Um+e)}function Xm(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=nb(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=nb(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Gm.absoluteValue=Gm.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Gm.comparedTo=Gm.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},Gm.decimalPlaces=Gm.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},Gm.dividedBy=Gm.div=function(e){return Jm(this,new this.constructor(e))},Gm.dividedToIntegerBy=Gm.idiv=function(e){var t=this.constructor;return ob(Jm(this,new t(e),0,1),t.precision)},Gm.equals=Gm.eq=function(e){return!this.cmp(e)},Gm.exponent=function(){return eb(this)},Gm.greaterThan=Gm.gt=function(e){return this.cmp(e)>0},Gm.greaterThanOrEqualTo=Gm.gte=function(e){return this.cmp(e)>=0},Gm.isInteger=Gm.isint=function(){return this.e>this.d.length-2},Gm.isNegative=Gm.isneg=function(){return this.s<0},Gm.isPositive=Gm.ispos=function(){return this.s>0},Gm.isZero=function(){return 0===this.s},Gm.lessThan=Gm.lt=function(e){return this.cmp(e)<0},Gm.lessThanOrEqualTo=Gm.lte=function(e){return this.cmp(e)<1},Gm.logarithm=Gm.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Nm))throw Error(zm+"NaN");if(n.s<1)throw Error(zm+(n.s?"NaN":"-Infinity"));return n.eq(Nm)?new r(0):(Fm=!1,t=Jm(rb(n,o),rb(e,o),o),Fm=!0,ob(t,i))},Gm.minus=Gm.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ab(t,e):Zm(t,(e.s=-e.s,e))},Gm.modulo=Gm.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(zm+"NaN");return n.s?(Fm=!1,t=Jm(n,e,0,1).times(e),Fm=!0,n.minus(t)):ob(new r(n),i)},Gm.naturalExponential=Gm.exp=function(){return Qm(this)},Gm.naturalLogarithm=Gm.ln=function(){return rb(this)},Gm.negated=Gm.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Gm.plus=Gm.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Zm(t,e):ab(t,(e.s=-e.s,e))},Gm.precision=Gm.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Um+e);if(t=eb(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Gm.squareRoot=Gm.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zm+"NaN")}for(e=eb(s),Fm=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=Xm(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vm((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(Jm(s,o,a+2)).times(.5),Xm(o.d).slice(0,a)===(t=Xm(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(ob(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return Fm=!0,ob(r,n)},Gm.times=Gm.mul=function(e){var t,n,r,i,o,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)&&(o=p,p=d,d=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+d[r]*p[i-r-1]+t,o[i--]=s%$m|0,t=s/$m|0;o[i]=(o[i]+t)%$m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Fm?ob(e,f.precision):e},Gm.toDecimalPlaces=Gm.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Ym(e,0,1e9),void 0===t?t=r.rounding:Ym(t,0,8),ob(n,e+eb(n)+1,t))},Gm.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=sb(r,!0):(Ym(e,0,1e9),void 0===t?t=i.rounding:Ym(t,0,8),n=sb(r=ob(new i(r),e+1,t),!0,e+1)),n},Gm.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?sb(i):(Ym(e,0,1e9),void 0===t?t=o.rounding:Ym(t,0,8),n=sb((r=ob(new o(i),e+eb(i)+1,t)).abs(),!1,e+eb(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},Gm.toInteger=Gm.toint=function(){var e=this,t=e.constructor;return ob(new t(e),eb(e)+1,t.rounding)},Gm.toNumber=function(){return+this},Gm.toPower=Gm.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(Nm);if(!(s=new c(s)).s){if(e.s<1)throw Error(zm+"Infinity");return s}if(s.eq(Nm))return s;if(r=c.precision,e.eq(Nm))return ob(s,r);if(a=(t=e.e)>=(n=e.d.length-1),o=s.s,a){if((n=u<0?-u:u)<=9007199254740991){for(i=new c(Nm),t=Math.ceil(r/7+4),Fm=!1;n%2&&cb((i=i.times(s)).d,t),0!==(n=Vm(n/2));)cb((s=s.times(s)).d,t);return Fm=!0,e.s<0?new c(Nm).div(i):ob(i,r)}}else if(o<0)throw Error(zm+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Fm=!1,i=e.times(rb(s,r+12)),Fm=!0,(i=Qm(i)).s=o,i},Gm.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=sb(i,(n=eb(i))<=o.toExpNeg||n>=o.toExpPos):(Ym(e,1,1e9),void 0===t?t=o.rounding:Ym(t,0,8),r=sb(i=ob(new o(i),e,t),e<=(n=eb(i))||n<=o.toExpNeg,e)),r},Gm.toSignificantDigits=Gm.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Ym(e,1,1e9),void 0===t?t=n.rounding:Ym(t,0,8)),ob(new n(this),e,t)},Gm.toString=Gm.valueOf=Gm.val=Gm.toJSON=Gm[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=eb(e),n=e.constructor;return sb(e,t<=n.toExpNeg||t>=n.toExpPos)};var Jm=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%$m|0,r=n/$m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*$m+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==i.s?1:-1,E=r.d,A=i.d;if(!r.s)return new S(r);if(!i.s)throw Error(zm+"Division by zero");for(c=r.e-i.e,C=A.length,x=E.length,h=(d=new S(k)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(m=null==o?o=S.precision:a?o+(eb(r)-eb(i))+1:o)<0)return new S(0);if(m=m/7+2|0,u=0,1==C)for(l=0,A=A[0],m++;(u<x||l)&&m--;u++)b=l*$m+(E[u]||0),h[u]=b/A|0,l=b%A|0;else{for((l=$m/(A[0]+1)|0)>1&&(A=e(A,l),E=e(E,l),C=A.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=A.slice()).unshift(0),_=A[0],A[1]>=$m/2&&++_;do{l=0,(s=t(A,g,C,y))<0?(v=g[0],C!=y&&(v=v*$m+(g[1]||0)),(l=v/_|0)>1?(l>=$m&&(l=$m-1),1==(s=t(f=e(A,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:A,p))):(0==l&&(s=l=1),f=A.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(A,g,C,y=g.length))<1&&(l++,n(g,C<y?O:A,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,ob(d,a?o+eb(d)+1:o)}}();function Qm(e,t){var n,r,i,o,a,s=0,c=0,u=e.constructor,l=u.precision;if(eb(e)>16)throw Error(Hm+eb(e));if(!e.s)return new u(Nm);for(null==t?(Fm=!1,a=l):a=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(a+=Math.log(Km(2,c))/Math.LN10*2+5|0,n=r=i=new u(Nm),u.precision=a;;){if(r=ob(r.times(e),a),n=n.times(++s),Xm((o=i.plus(Jm(r,n,a))).d).slice(0,a)===Xm(i.d).slice(0,a)){for(;c--;)i=ob(i.times(i),a);return u.precision=l,null==t?(Fm=!0,ob(i,l)):i}i=o}}function eb(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function tb(e,t,n){if(t>e.LN10.sd())throw Fm=!0,n&&(e.precision=n),Error(zm+"LN10 precision limit exceeded");return ob(new e(e.LN10),t)}function nb(e){for(var t="";e--;)t+="0";return t}function rb(e,t){var n,r,i,o,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(zm+(p.s?"NaN":"-Infinity"));if(p.eq(Nm))return new h(0);if(null==t?(Fm=!1,u=g):u=t,p.eq(10))return null==t&&(Fm=!0),tb(h,u);if(u+=10,h.precision=u,r=(n=Xm(d)).charAt(0),o=eb(p),!(Math.abs(o)<15e14))return c=tb(h,u+2,g).times(o+""),p=rb(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(Fm=!0,ob(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Xm((p=p.times(e)).d)).charAt(0),f++;for(o=eb(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),s=a=p=Jm(p.minus(Nm),p.plus(Nm),u),l=ob(p.times(p),u),i=3;;){if(a=ob(a.times(l),u),Xm((c=s.plus(Jm(a,new h(i),u))).d).slice(0,u)===Xm(s.d).slice(0,u))return s=s.times(2),0!==o&&(s=s.plus(tb(h,u+2,g).times(o+""))),s=Jm(s,new h(f),u),h.precision=g,null==t?(Fm=!0,ob(s,g)):s;s=c,i+=2}}function ib(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=Vm(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+n)}else e.s=0,e.e=0,e.d=[0];return e}function ob(e,t,n){var r,i,o,a,s,c,u,l,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,u=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(o=f.length))return e;for(u=o=f[l],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(s=u/(o=Km(10,a-i-1))%10|0,c=t<0||void 0!==f[l+1]||u%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?u/Km(10,a-i):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(o=eb(e),f.length=1,t=t-o-1,f[0]=Km(10,(7-t%7)%7),e.e=Vm(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,o=1,l--):(f.length=l+1,o=Km(10,7-r),f[l]=i>0?(u/Km(10,a-i)%Km(10,i)|0)*o:0),c)for(;;){if(0==l){(f[0]+=o)==$m&&(f[0]=1,++e.e);break}if(f[l]+=o,f[l]!=$m)break;f[l--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+eb(e));return e}function ab(e,t){var n,r,i,o,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),Fm?ob(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>(i=Math.max(Math.ceil(d/7),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((l=(i=c.length)<(s=f.length))&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=$m-1;--c[o],c[i]+=$m}c[i]-=f[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,Fm?ob(t,d):t):new p(0)}function sb(e,t,n){var r,i=eb(e),o=Xm(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+nb(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+nb(-i-1)+o,n&&(r=n-a)>0&&(o+=nb(r))):i>=a?(o+=nb(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+nb(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=nb(r))),e.s<0?"-"+o:o}function cb(e,t){if(e.length>t)return e.length=t,!0}function ub(e){if(!e||"object"!=typeof e)throw Error(zm+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(Vm(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(Um+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Um+n+": "+r);this[n]=new this(r)}return this}var lb=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(Um+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])):ib(t,e.toString())}if("string"!=typeof e)throw Error(Um+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Wm.test(e))throw Error(Um+e);ib(t,e)}if(o.prototype=Gm,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=ub,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Nm=new lb(1);var fb=lb;function pb(e){return function(e){if(Array.isArray(e))return db(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 db(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 db(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 db(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 hb=function(e){return e},gb={"@@functional/placeholder":!0},yb=function(e){return e===gb},vb=function(e){return function t(){return 0===arguments.length||1===arguments.length&&yb(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},mb=function e(t,n){return 1===t?n:vb((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==gb})).length;return a>=t?n.apply(void 0,i):e(t-a,vb((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return yb(e)?t.shift():e}));return n.apply(void 0,pb(o).concat(t))})))}))},bb=function(e){return mb(e.length,e)},wb=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},xb=bb((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),_b=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Cb=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var Ob=bb((function(e,t,n){var r=+e;return r+n*(+t-r)})),Sb=bb((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),kb=bb((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),Eb={rangeStep:function(e,t,n){for(var r=new fb(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new fb(e).abs().log(10).toNumber())+1},interpolateNumber:Ob,uninterpolateNumber:Sb,uninterpolateTruncation:kb};function Ab(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jb(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 Tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||jb(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 jb(e,t){if(e){if("string"==typeof e)return Mb(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)?Mb(e,t):void 0}}function Mb(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 Pb(e){var t=Tb(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Db(e,t,n){if(e.lte(0))return new fb(0);var r=Eb.getDigitCount(e.toNumber()),i=new fb(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new fb(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new fb(Math.ceil(s))}function Ib(e,t,n){var r=1,i=new fb(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new fb(10).pow(Eb.getDigitCount(e)-1),i=new fb(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new fb(Math.floor(e)))}else 0===e?i=new fb(Math.floor((t-1)/2)):n||(i=new fb(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return hb;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}}(xb((function(e){return i.add(new fb(e-a).mul(r)).toNumber()})),wb);return s(0,t)}function Rb(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new fb(0),tickMin:new fb(0),tickMax:new fb(0)};var o,a=Db(new fb(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new fb(0):(o=new fb(e).add(t).div(2)).sub(new fb(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new fb(t).sub(o).div(a).toNumber()),u=s+c+1;return u>n?Rb(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new fb(s).mul(a)),tickMax:o.add(new fb(c).mul(a))})}var Lb=Cb((function(e){var t=Tb(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=Pb([n,r]),c=Tb(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Ab(wb(0,i-1).map((function(){return 1/0})))):[].concat(Ab(wb(0,i-1).map((function(){return-1/0}))),[l]);return n>r?_b(f):f}if(u===l)return Ib(u,i,o);var p=Rb(u,l,a,o),d=p.step,h=p.tickMin,g=p.tickMax,y=Eb.rangeStep(h,g.add(new fb(.1).mul(d)),d);return n>r?_b(y):y})),Nb=Cb((function(e,t){var n=Tb(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Pb([r,i]),s=Tb(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=Math.max(t,2),f=Db(new fb(u).sub(c).div(l-1),o,0),p=[].concat(Ab(Eb.rangeStep(new fb(c),new fb(u).sub(new fb(.99).mul(f)),f)),[u]);return r>i?_b(p):p}));function Bb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fb(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Bb(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function zb(e){return null===e?NaN:+e}const Ub=Fb(Bb).right;Fb(zb).center;var Hb=Math.sqrt(50),Vb=Math.sqrt(10),Kb=Math.sqrt(2);function Wb(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=$b(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,o=new Array(i=r-n+1);++s<i;)o[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,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function $b(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)}function qb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Hb?i*=10:o>=Vb?i*=5:o>=Kb&&(i*=2),t<e?-i:i}function Gb(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 i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Zb(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 i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Yb(e,t,n=0,r=e.length-1,i=Bb){for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1);Yb(e,t,Math.max(n,Math.floor(t-a*c/o+u)),Math.min(r,Math.floor(t+(o-a)*c/o+u)),i)}const o=e[t];let a=n,s=r;for(Xb(e,n,t),i(e[r],o)>0&&Xb(e,n,r);a<s;){for(Xb(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?Xb(e,n,s):(++s,Xb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Xb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Jb(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return Zb(e);if(t>=1)return Gb(e);var r,i=(r-1)*t,o=Math.floor(i),a=Gb(Yb(e,o).subarray(0,o+1));return a+(Zb(e.subarray(o+1))-a)*(i-o)}}function Qb(e,t,n=zb){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,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function ew(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function tw(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nw(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const rw=Symbol("implicit");function iw(){var e=new Map,t=[],n=[],r=rw;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==rw)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return iw(t,n).unknown(r)},tw.apply(i,arguments),i}function ow(){var e,t,n=iw().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o: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=ew(n).map((function(t){return p+e*t}));return i(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?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,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 ow(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},tw.apply(f(),arguments)}function aw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aw(t())},e}function sw(){return aw(ow.apply(null,arguments).paddingInner(1))}function cw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lw(){}var fw=1/.7,pw="\\s*([+-]?\\d+)\\s*",dw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gw=/^#([0-9a-f]{3,8})$/,yw=new RegExp("^rgb\\("+[pw,pw,pw]+"\\)$"),vw=new RegExp("^rgb\\("+[hw,hw,hw]+"\\)$"),mw=new RegExp("^rgba\\("+[pw,pw,pw,dw]+"\\)$"),bw=new RegExp("^rgba\\("+[hw,hw,hw,dw]+"\\)$"),ww=new RegExp("^hsl\\("+[dw,hw,hw]+"\\)$"),xw=new RegExp("^hsla\\("+[dw,hw,hw,dw]+"\\)$"),_w={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 Cw(){return this.rgb().formatHex()}function Ow(){return this.rgb().formatRgb()}function Sw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?kw(t):3===n?new jw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ew(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ew(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=yw.exec(e))?new jw(t[1],t[2],t[3],1):(t=vw.exec(e))?new jw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mw.exec(e))?Ew(t[1],t[2],t[3],t[4]):(t=bw.exec(e))?Ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ww.exec(e))?Iw(t[1],t[2]/100,t[3]/100,1):(t=xw.exec(e))?Iw(t[1],t[2]/100,t[3]/100,t[4]):_w.hasOwnProperty(e)?kw(_w[e]):"transparent"===e?new jw(NaN,NaN,NaN,0):null}function kw(e){return new jw(e>>16&255,e>>8&255,255&e,1)}function Ew(e,t,n,r){return r<=0&&(e=t=n=NaN),new jw(e,t,n,r)}function Aw(e){return e instanceof lw||(e=Sw(e)),e?new jw((e=e.rgb()).r,e.g,e.b,e.opacity):new jw}function Tw(e,t,n,r){return 1===arguments.length?Aw(e):new jw(e,t,n,null==r?1:r)}function jw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Mw(){return"#"+Dw(this.r)+Dw(this.g)+Dw(this.b)}function Pw(){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 Dw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Iw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lw(e,t,n,r)}function Rw(e){if(e instanceof Lw)return new Lw(e.h,e.s,e.l,e.opacity);if(e instanceof lw||(e=Sw(e)),!e)return new Lw;if(e instanceof Lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Lw(a,s,c,e.opacity)}function Lw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Nw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cw(lw,Sw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Cw,formatHex:Cw,formatHsl:function(){return Rw(this).formatHsl()},formatRgb:Ow,toString:Ow}),cw(jw,Tw,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new jw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new jw(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:Mw,formatHex:Mw,formatRgb:Pw,toString:Pw})),cw(Lw,(function(e,t,n,r){return 1===arguments.length?Rw(e):new Lw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new Lw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Lw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jw(Nw(e>=240?e-240:e+120,i,r),Nw(e,i,r),Nw(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Bw=Math.PI/180,Fw=180/Math.PI,zw=4/29,Uw=6/29,Hw=3*Uw*Uw;function Vw(e){if(e instanceof Kw)return new Kw(e.l,e.a,e.b,e.opacity);if(e instanceof Yw)return Xw(e);e instanceof jw||(e=Aw(e));var t,n,r=Gw(e.r),i=Gw(e.g),o=Gw(e.b),a=Ww((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Ww((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Ww((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Kw(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Kw(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ww(e){return e>.008856451679035631?Math.pow(e,1/3):e/Hw+zw}function $w(e){return e>Uw?e*e*e:Hw*(e-zw)}function qw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Gw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zw(e){if(e instanceof Yw)return new Yw(e.h,e.c,e.l,e.opacity);if(e instanceof Kw||(e=Vw(e)),0===e.a&&0===e.b)return new Yw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fw;return new Yw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Yw(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xw(e){if(isNaN(e.h))return new Kw(e.l,0,0,e.opacity);var t=e.h*Bw;return new Kw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}cw(Kw,(function(e,t,n,r){return 1===arguments.length?Vw(e):new Kw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Kw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Kw(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 jw(qw(3.1338561*(t=.96422*$w(t))-1.6168667*(e=1*$w(e))-.4906146*(n=.82521*$w(n))),qw(-.9787684*t+1.9161415*e+.033454*n),qw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cw(Yw,(function(e,t,n,r){return 1===arguments.length?Zw(e):new Yw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Yw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Yw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Xw(this).rgb()}}));var Jw=-.14861,Qw=1.78277,ex=-.29227,tx=-.90649,nx=1.97294,rx=nx*tx,ix=nx*Qw,ox=Qw*ex-tx*Jw;function ax(e){if(e instanceof cx)return new cx(e.h,e.s,e.l,e.opacity);e instanceof jw||(e=Aw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ox*r+rx*t-ix*n)/(ox+rx-ix),o=r-i,a=(nx*(n-i)-ex*o)/tx,s=Math.sqrt(a*a+o*o)/(nx*i*(1-i)),c=s?Math.atan2(a,o)*Fw-120:NaN;return new cx(c<0?c+360:c,s,i,e.opacity)}function sx(e,t,n,r){return 1===arguments.length?ax(e):new cx(e,t,n,null==r?1:r)}function cx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cw(cx,sx,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new cx(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new cx(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Bw,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jw(255*(t+n*(Jw*r+Qw*i)),255*(t+n*(ex*r+tx*i)),255*(t+n*(nx*r)),this.opacity)}}));var ux=e=>()=>e;function lx(e,t){return function(n){return e+n*t}}function fx(e){return 1==(e=+e)?px: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):ux(isNaN(t)?n:t)}}function px(e,t){var n=t-e;return n?lx(e,n):ux(isNaN(e)?t:e)}var dx=function e(t){var n=fx(t);function r(e,t){var r=n((e=Tw(e)).r,(t=Tw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=px(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function hx(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function gx(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=_x(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function yx(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mx(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=_x(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var bx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wx=new RegExp(bx.source,"g");function xx(e,t){var n,r,i,o=bx.lastIndex=wx.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=bx.exec(e))&&(r=wx.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:vx(n,r)})),o=wx.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),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 _x(e,t){var n,r=typeof t;return null==t||"boolean"===r?ux(t):("number"===r?vx:"string"===r?(n=Sw(t))?(t=n,dx):xx:t instanceof Sw?dx:t instanceof Date?yx:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?hx:Array.isArray(t)?gx:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mx:vx)(e,t)}function Cx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ox(e){return((e=Math.exp(e))+1/e)/2}function Sx(e){return function t(n){function r(t,r){var i=e((t=sx(t)).h,(r=sx(r)).h),o=px(t.s,r.s),a=px(t.l,r.l),s=px(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function kx(e,t){void 0===t&&(t=e,e=_x);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Ex(e){return+e}!function e(t,n,r){function i(e,i){var o,a,s=e[0],c=e[1],u=e[2],l=i[0],f=i[1],p=i[2],d=l-s,h=f-c,g=d*d+h*h;if(g<1e-12)a=Math.log(p/u)/t,o=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,o=function(e){var r=e*a,i=Ox(b),o=u/(n*y)*(i*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+o*d,c+o*h,u*i/Ox(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),Sx((function(e,t){var n=t-e;return n?lx(e,n>180||n<-180?n-360*Math.round(n/360):n):ux(isNaN(e)?t:e)})),Sx(px);var Ax=[0,1];function Tx(e){return e}function jx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Mx(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=jx(i,r),o=n(a,o)):(r=jx(r,i),o=n(o,a)),function(e){return o(r(e))}}function Px(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=jx(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Ub(e,t,1,r)-1;return o[n](i[n](t))}}function Dx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ix(){var e,t,n,r,i,o,a=Ax,s=Ax,c=_x,u=Tx;function l(){var e=Math.min(a.length,s.length);return u!==Tx&&(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?Px:Mx,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((o||(o=r(s,a.map(e),vx)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Ex),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=Cx,l()},f.clamp=function(e){return arguments.length?(u=!!e||Tx,l()):u!==Tx},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 Rx(){return Ix()(Tx,Tx)}function Lx(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 Nx(e){return(e=Lx(Math.abs(e)))?e[1]:NaN}var Bx,Fx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zx(e){if(!(t=Fx.exec(e)))throw new Error("invalid format: "+e);var t;return new Ux({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 Ux(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 Hx(e,t){var n=Lx(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}zx.prototype=Ux.prototype,Ux.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 Vx={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Hx(100*e,t),r:Hx,s:function(e,t){var n=Lx(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Bx=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Lx(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Kx(e){return e}var Wx,$x,qx,Gx=Array.prototype.map,Zx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yx(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Kx:(t=Gx.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Kx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Gx.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=zx(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):Vx[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?o:/[%p]/.test(m)?c:"",x=Vx[m],_=/[defgprs%]/.test(m);function C(e){var i,o,c,p=b,C=w;if("c"===m)C=x(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?Zx[8+Bx/3]:"")+C+(O&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(c=e.charCodeAt(i))||c>57){C=(46===c?a+e.slice(i+1):e.slice(i))+C,e=e.slice(0,i);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+C.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=p+e+C+k;break;case"=":e=p+k+e+C;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+C+k.slice(S);break;default:e=k+p+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=zx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3))),i=Math.pow(10,-r),o=Zx[8+r/3];return function(e){return n(i*e)+o}}}}function Xx(e,t,n,r){var i,o=qb(e,t,n);switch((r=zx(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3)))-Nx(Math.abs(e)))}(o,a))||(r.precision=i),qx(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nx(t)-Nx(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Nx(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return $x(r)}function Jx(e){var t=e.domain;return e.ticks=function(e){var n=t();return Wb(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Xx(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,c=o[a],u=o[s],l=10;for(u<c&&(i=c,c=u,u=i,i=a,a=s,s=i);l-- >0;){if((i=$b(c,u,n))===r)return o[a]=c,o[s]=u,t(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Qx(){var e=Rx();return e.copy=function(){return Dx(e,Qx())},tw.apply(e,arguments),Jx(e)}function e_(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function t_(e){return Math.log(e)}function n_(e){return Math.exp(e)}function r_(e){return-Math.log(-e)}function i_(e){return-Math.exp(-e)}function o_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function a_(e){return function(t){return-e(-t)}}function s_(e){var t,n,r=e(t_,n_),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?o_:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=a_(t),n=a_(n),e(r_,i_)):e(t_,n_),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],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(!(o%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<o;++l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}}else for(;p<=d;++p)for(l=o-1,u=n(p);l>=1;--l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}2*g.length<h&&(g=Wb(s,c,h))}else g=Wb(p,d,Math.min(d-p,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=$x(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(e_(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function c_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l_(e){var t=1,n=e(c_(t),u_(t));return n.constant=function(n){return arguments.length?e(c_(t=+n),u_(t)):t},Jx(n)}function f_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function p_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function d_(e){return e<0?-e*e:e*e}function h_(e){var t=e(Tx,Tx),n=1;function r(){return 1===n?e(Tx,Tx):.5===n?e(p_,d_):e(f_(n),f_(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Jx(t)}function g_(){var e=h_(Ix());return e.copy=function(){return Dx(e,g_()).exponent(e.exponent())},tw.apply(e,arguments),e}function y_(e){return Math.sign(e)*e*e}function v_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}Wx=Yx({thousands:",",grouping:[3],currency:["$",""]}),$x=Wx.format,qx=Wx.formatPrefix;var m_=new Date,b_=new Date;function w_(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return w_((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return m_.setTime(+t),b_.setTime(+r),e(m_),e(b_),Math.floor(n(m_,b_))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var x_=w_((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));x_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?w_((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):x_:null},x_.range;var __=w_((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));__.range;var C_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}));C_.range;var O_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}));O_.range;var S_=w_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5),(e=>e.getDate()-1));function k_(e){return w_((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-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}S_.range;var E_=k_(0),A_=k_(1),T_=k_(2),j_=k_(3),M_=k_(4),P_=k_(5),D_=k_(6);E_.range,A_.range,T_.range,j_.range,M_.range,P_.range,D_.range;var I_=w_((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()}));I_.range;var R_=w_((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()}));R_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((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},R_.range;var L_=w_((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}));L_.range;var N_=w_((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}));N_.range;var B_=w_((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}));function F_(e){return w_((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)/6048e5}))}B_.range;var z_=F_(0),U_=F_(1),H_=F_(2),V_=F_(3),K_=F_(4),W_=F_(5),$_=F_(6);z_.range,U_.range,H_.range,V_.range,K_.range,W_.range,$_.range;var q_=w_((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()}));q_.range;var G_=w_((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()}));function Z_(e,t,n,r,i,o){const a=[[__,1,1e3],[__,5,5e3],[__,15,15e3],[__,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Fb((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(qb(t/31536e6,n/31536e6,r));if(0===o)return x_.every(Math.max(qb(t,n,r),1));const[s,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}G_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((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},G_.range;const[Y_,X_]=Z_(G_,q_,z_,B_,N_,L_),[J_,Q_]=Z_(R_,I_,E_,S_,O_,C_);function eC(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 tC(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 nC(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rC,iC,oC,aC,sC={"-":"",_:" ",0:"0"},cC=/^\s*\d+/,uC=/^%/,lC=/[\\^$*+?|[\]().{}]/g;function fC(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function pC(e){return e.replace(lC,"\\$&")}function dC(e){return new RegExp("^(?:"+e.map(pC).join("|")+")","i")}function hC(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function gC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function mC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wC(e,t,n){var r=cC.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _C(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 CC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function OC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function EC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function AC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function TC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function MC(e,t,n){var r=cC.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function PC(e,t,n){var r=uC.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function IC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function RC(e,t){return fC(e.getDate(),t,2)}function LC(e,t){return fC(e.getHours(),t,2)}function NC(e,t){return fC(e.getHours()%12||12,t,2)}function BC(e,t){return fC(1+S_.count(R_(e),e),t,3)}function FC(e,t){return fC(e.getMilliseconds(),t,3)}function zC(e,t){return FC(e,t)+"000"}function UC(e,t){return fC(e.getMonth()+1,t,2)}function HC(e,t){return fC(e.getMinutes(),t,2)}function VC(e,t){return fC(e.getSeconds(),t,2)}function KC(e){var t=e.getDay();return 0===t?7:t}function WC(e,t){return fC(E_.count(R_(e)-1,e),t,2)}function $C(e){var t=e.getDay();return t>=4||0===t?M_(e):M_.ceil(e)}function qC(e,t){return e=$C(e),fC(M_.count(R_(e),e)+(4===R_(e).getDay()),t,2)}function GC(e){return e.getDay()}function ZC(e,t){return fC(A_.count(R_(e)-1,e),t,2)}function YC(e,t){return fC(e.getFullYear()%100,t,2)}function XC(e,t){return fC((e=$C(e)).getFullYear()%100,t,2)}function JC(e,t){return fC(e.getFullYear()%1e4,t,4)}function QC(e,t){var n=e.getDay();return fC((e=n>=4||0===n?M_(e):M_.ceil(e)).getFullYear()%1e4,t,4)}function eO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fC(t/60|0,"0",2)+fC(t%60,"0",2)}function tO(e,t){return fC(e.getUTCDate(),t,2)}function nO(e,t){return fC(e.getUTCHours(),t,2)}function rO(e,t){return fC(e.getUTCHours()%12||12,t,2)}function iO(e,t){return fC(1+B_.count(G_(e),e),t,3)}function oO(e,t){return fC(e.getUTCMilliseconds(),t,3)}function aO(e,t){return oO(e,t)+"000"}function sO(e,t){return fC(e.getUTCMonth()+1,t,2)}function cO(e,t){return fC(e.getUTCMinutes(),t,2)}function uO(e,t){return fC(e.getUTCSeconds(),t,2)}function lO(e){var t=e.getUTCDay();return 0===t?7:t}function fO(e,t){return fC(z_.count(G_(e)-1,e),t,2)}function pO(e){var t=e.getUTCDay();return t>=4||0===t?K_(e):K_.ceil(e)}function dO(e,t){return e=pO(e),fC(K_.count(G_(e),e)+(4===G_(e).getUTCDay()),t,2)}function hO(e){return e.getUTCDay()}function gO(e,t){return fC(U_.count(G_(e)-1,e),t,2)}function yO(e,t){return fC(e.getUTCFullYear()%100,t,2)}function vO(e,t){return fC((e=pO(e)).getUTCFullYear()%100,t,2)}function mO(e,t){return fC(e.getUTCFullYear()%1e4,t,4)}function bO(e,t){var n=e.getUTCDay();return fC((e=n>=4||0===n?K_(e):K_.ceil(e)).getUTCFullYear()%1e4,t,4)}function wO(){return"+0000"}function xO(){return"%"}function _O(e){return+e}function CO(e){return Math.floor(+e/1e3)}!function(e){rC=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=dC(i),l=hC(i),f=dC(o),p=hC(o),d=dC(a),h=hC(a),g=dC(s),y=hC(s),v=dC(c),m=hC(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:RC,e:RC,f:zC,g:XC,G:QC,H:LC,I:NC,j:BC,L:FC,m:UC,M:HC,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:_O,s:CO,S:VC,u:KC,U:WC,V:qC,w:GC,W:ZC,x:null,X:null,y:YC,Y:JC,Z:eO,"%":xO},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:tO,e:tO,f:aO,g:vO,G:bO,H:nO,I:rO,j:iO,L:oO,m:sO,M:cO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:_O,s:CO,S:uO,u:lO,U:fO,V:dO,w:hO,W:gO,x:null,X:null,y:yO,Y:mO,Z:wO,"%":xO},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:SC,e:SC,f:MC,g:xC,G:wC,H:EC,I:EC,j:kC,L:jC,m:OC,M:AC,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:CC,Q:DC,s:IC,S:TC,u:yC,U:vC,V:mC,w:gC,W:bC,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:xC,Y:wC,Z:_C,"%":PC};function _(e,t){return function(n){var r,i,o,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(i=sC[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=nC(1900,void 0,1);if(O(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=tC(nC(o.y,0,1))).getUTCDay(),r=i>4||0===i?U_.ceil(r):U_(r),r=B_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=eC(nC(o.y,0,1))).getDay(),r=i>4||0===i?A_.ceil(r):A_(r),r=S_.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?tC(nC(o.y,0,1)).getUTCDay():eC(nC(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,tC(o)):eC(o)}}function O(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in sC?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),iC=rC.format,rC.parse,oC=rC.utcFormat,aC=rC.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function OO(e){return new Date(e)}function SO(e){return e instanceof Date?+e:+new Date(+e)}function kO(e,t,n,r,i,o,a,s,c,u){var l=Rx(),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:o(e)<e?y:r(e)<e?i(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,SO)):p().map(OO)},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(e_(n,e)):l},l.copy=function(){return Dx(l,kO(e,t,n,r,i,o,a,s,c,u))},l}function EO(){var e,t,n,r,i,o=0,a=1,s=Tx,c=!1;function u(t){return null==t||isNaN(t=+t)?i: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(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,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(_x),u.rangeRound=l(Cx),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function AO(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function TO(){var e=h_(EO());return e.copy=function(){return AO(e,TO()).exponent(e.exponent())},nw.apply(e,arguments)}function jO(){var e,t,n,r,i,o,a,s=0,c=.5,u=1,l=1,f=Tx,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(l*e<l*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=kx(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=o(s=+s),t=o(c=+c),n=o(u=+u),r=e===t?0:.5/(t-e),i=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(_x),d.rangeRound=h(Cx),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function MO(){var e=h_(jO());return e.copy=function(){return AO(e,MO()).exponent(e.exponent())},nw.apply(e,arguments)}Date.prototype.toISOString||oC("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||aC("%Y-%m-%dT%H:%M:%S.%LZ");var PO=Object.freeze({__proto__:null,scaleBand:ow,scalePoint:sw,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,Ex),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,Ex):[0,1],Jx(r)},scaleLinear:Qx,scaleLog:function e(){var t=s_(Ix()).domain([1,10]);return t.copy=function(){return Dx(t,e()).base(t.base())},tw.apply(t,arguments),t},scaleSymlog:function e(){var t=l_(Ix());return t.copy=function(){return Dx(t,e()).constant(t.constant())},tw.apply(t,arguments)},scaleOrdinal:iw,scaleImplicit:rw,scalePow:g_,scaleSqrt:function(){return g_.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=Rx(),r=[0,1],i=!1;function o(e){var r=v_(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(y_(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,Ex)).map(y_)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},tw.apply(o,arguments),Jx(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=Qb(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Ub(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[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(Bb),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[Ub(o,e,0,i)]:t}function c(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+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?(i=(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,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},tw.apply(Jx(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[Ub(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(o,arguments)},scaleTime:function(){return tw.apply(kO(J_,Q_,R_,I_,E_,S_,O_,C_,__,iC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return tw.apply(kO(Y_,X_,G_,q_,z_,B_,N_,L_,__,oC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=Jx(EO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleSequentialLog:function e(){var t=s_(EO()).domain([1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleSequentialPow:TO,scaleSequentialSqrt:function(){return TO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=l_(EO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=Tx;function r(e){if(null!=e&&!isNaN(e=+e))return n((Ub(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(Bb),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)=>Jb(t,r/e)))},r.copy=function(){return e(n).domain(t)},nw.apply(r,arguments)},scaleDiverging:function e(){var t=Jx(jO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleDivergingLog:function e(){var t=s_(jO()).domain([.1,1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleDivergingPow:MO,scaleDivergingSqrt:function(){return MO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=l_(jO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},tickFormat:Xx});function DO(e){return function(e){if(Array.isArray(e))return IO(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 IO(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 IO(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 IO(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 RO(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 LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RO(Object(n),!0).forEach((function(t){NO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BO(e,t,n){return Wf(e)||Wf(t)?n:Of(t)?ac(e,t,n):br(t)?t(e):n}function FO(e,t,n,r){var i=Bm(e,(function(e){return BO(e,t)}));if("number"===n){var o=i.filter((function(e){return Cf(e)||parseFloat(e)}));return o.length?[jm(o),Sm(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Wf(e)})):i).map((function(e){return Of(e)||e instanceof Date?e:""}))}var zO=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},UO=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=fm(n,Kf.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.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,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:zO(t),value:i||r,payload:t.props}})),LO(LO(LO({},a.props),Kf.getWithHeight(a,i)),{},{payload:t,item:a})):null},HO=function(e,t,n,r,i){var o=t.props.children,a=lm(o,"ErrorBar").filter((function(e){return function(e,t,n){return!!Wf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,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=BO(t,n,0),i=xo(r)?[jm(r),Sm(r)]:[r,r],o=s.reduce((function(e,n){var r=BO(t,n,0),o=i[0]-Math.abs(xo(r)?r[0]:r),a=i[1]+Math.abs(xo(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},VO=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&HO(e,t,o,r)||FO(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.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}),[])},KO=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},WO=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},$O=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType?2*xf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.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:i?i[e]:e,index:t,offset:c}}))},qO=function(e,t,n){var r;return br(n)?r=n:br(t)&&(r=t),br(e)||r?function(t,n,i,o){br(e)&&e(t,n,i,o),br(r)&&r(t,n,i,o)}:null},GO=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:ow(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Qx(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:sw(),realScaleType:"point"}:"category"===i?{scale:ow(),realScaleType:"band"}:{scale:Qx(),realScaleType:"linear"};if(wf(r)){var s="scale".concat(Ru(r));return{scale:(PO[s]||sw)(),realScaleType:PO[s]?s:"point"}}return br(r)?{scale:r}:{scale:sw(),realScaleType:"point"}},ZO=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},YO=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},XO=function(e,t){if(!t||2!==t.length||!Cf(t[0])||!Cf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Cf(e[0])||e[0]<n)&&(i[0]=n),(!Cf(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},JO={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=yf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}Fl(e,t)}},none:Fl,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Fl(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++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]=o,c&&(o-=u/c)}n[a-1][1]+=n[a-1][0]=o,Fl(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 i=0,o=0;o<t;++o){var a=yf(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},QO=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Uu([]),t=zl,n=Fl,r=Ul;function i(i){var o,a,s=Array.from(e.apply(this,arguments),Hl),c=s.length,u=-1;for(const e of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=Ku(t(s));o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Uu(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Uu(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?zl:"function"==typeof e?e:Uu(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Fl:e,i):n},i}().keys(r).value((function(e,t){return+BO(e,t,0)})).order(zl).offset(JO[n]);return i(e)},eS=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var c=e.domain();if(!c.length)return null;var u=Lb(c,i,a);return e.domain(function(e,t){return"number"===t?[jm(e),Sm(e)]:e}(u,r)),{niceTicks:u}}if(i&&"number"===r){var l=e.domain();return{niceTicks:Nb(l,i,a)}}return null},tS=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wf(i[t.dataKey])){var s=jf(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=BO(i,Wf(a)?t.dataKey:a);return Wf(c)?null:t.scale(c)},nS=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=BO(o,t.dataKey,t.domain[a]);return Wf(s)?null:t.scale(s)-i/2+r},rS=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},iS=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[jm(t.concat([e[0]]).filter(Cf)),Sm(t.concat([e[1]]).filter(Cf))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},oS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sS=function(e,t,n){if(br(e))return e(t,n);if(!xo(e))return t;var r=[];if(Cf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oS.test(e[0])){var i=+oS.exec(e[0])[1];r[0]=t[0]-i}else br(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Cf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(aS.test(e[1])){var o=+aS.exec(e[1])[1];r[1]=t[1]+o}else br(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cS=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 i=sg(t,(function(e){return e.coordinate})),o=1/0,a=1,s=i.length;a<s;a++){var c=i[a],u=i[a-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},uS=function(e,t,n){return e&&e.length?mm(e,ac(n,"type.defaultProps.domain"))?t:e:t},lS=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return LO(LO({},$n(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:zO(e),value:BO(t,r),type:s,payload:t,chartType:c})};function fS(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 pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fS(Object(n),!0).forEach((function(t){dS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gS(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 gS(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 gS(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 yS=Math.PI/180,vS=function(e){return 180*e/Math.PI},mS=function(e,t,n,r){return{x:e+Math.cos(-yS*r)*n,y:t+Math.sin(-yS*r)*n}},bS=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},wS=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ef(e.cx,o,o/2),l=Ef(e.cy,a,a/2),f=bS(o,a,n),p=Ef(e.innerRadius,f,0),d=Ef(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Wf(a.range))"angleAxis"===r?o=[s,c]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var g=hS(o=a.range,2);s=g[0],c=g[1]}var y=GO(a,i),v=y.realScaleType,m=y.scale;m.domain(f).range(o),ZO(m);var b=eS(m,pS(pS({},a),{},{realScaleType:v})),w=pS(pS(pS({},a),b),{},{range:o,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return pS(pS({},e),{},dS({},n,w))}),{})},xS=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,c=Math.acos(s);return r>o&&(c=2*Math.PI-c),{radius:a,angle:vS(c),angleInRadian:c}},_S=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},CS=function(e,t){var n=e.x,r=e.y,i=xS({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,c=t.outerRadius;if(o<s||o>c)return!1;if(0===o)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(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?pS(pS({},t),{},{radius:o,angle:_S(d,t)}):null};function OS(e){return function(e){if(Array.isArray(e))return SS(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 SS(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 SS(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 SS(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 kS(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 ES(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kS(Object(n),!0).forEach((function(t){AS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TS(){return TS=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},TS.apply(this,arguments)}var jS=function(e,t,n){var r,o,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 xf(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(r=g+w*c,o=v):"insideEnd"===a?(r=y-w*c,o=!v):"end"===a&&(r=y+w*c,o=v),o=b<=0?o:!o;var x=mS(f,p,m,r),_=mS(f,p,m,r+359*(o?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),O=Wf(e.id)?kf("recharts-radial-line-"):e.id;return i.createElement("text",TS({},n,{dominantBaseline:"central",className:zn("recharts-radial-bar-label",u)}),i.createElement("defs",null,i.createElement("path",{id:O,d:C})),i.createElement("textPath",{xlinkHref:"#".concat(O)},t))};function MS(e){var t,n=e.viewBox,r=e.position,o=e.value,s=e.children,u=e.content,l=e.className,f=void 0===l?"":l,p=e.textBreakAll;if(!n||Wf(o)&&Wf(s)&&!v(u)&&!br(u))return null;if(v(u))return c(u,e);if(br(u)){if(v(t=a(u,e)))return t}else t=function(e){var t=e.value,n=e.formatter,r=Wf(e.children)?t:e.children;return br(n)?n(r):r}(e);var d=function(e){return Cf(e.cx)}(n),h=$n(e,!0);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return jS(e,t,h);var g=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,c=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===r){var l=mS(o,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=mS(o,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,i=e.position,o=t,a=o.x,s=o.y,c=o.width,u=o.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"===i)return ES(ES({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===i)return ES(ES({},{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"===i){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return ES(ES({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===i){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return ES(ES({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===i?ES({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===i?ES({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===i?ES({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?ES({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?ES({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===i?ES({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===i?ES({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===i?ES({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Un(i)&&(Cf(i.x)||_f(i.x))&&(Cf(i.y)||_f(i.y))?ES({x:a+Ef(i.x,c),y:s+Ef(i.y,u),textAnchor:"end",verticalAnchor:"end"},w):ES({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return i.createElement(nm,TS({className:zn("recharts-label",f)},h,g,{breakAll:p}),t)}MS.displayName="Label",MS.defaultProps={offset:5};var PS=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=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(Cf(h)&&Cf(g)){if(Cf(l)&&Cf(f))return{x:l,y:f,width:h,height:g};if(Cf(p)&&Cf(d))return{x:p,y:d,width:h,height:g}}return Cf(l)&&Cf(f)?{x:l,y:f,width:0,height:0}:Cf(t)&&Cf(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},DS=function(e,t){return e?!0===e?i.createElement(MS,{key:"label-implicit",viewBox:t}):Of(e)?i.createElement(MS,{key:"label-implicit",viewBox:t,value:e}):v(e)?e.type===MS?c(e,{key:"label-implicit",viewBox:t}):i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):br(e)?i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):Un(e)?i.createElement(MS,TS({viewBox:t},e,{key:"label-implicit"})):null:null};MS.parseViewBox=PS,MS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=PS(e),o=lm(r,MS.displayName).map((function(e,n){return c(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return o;var a=DS(e.label,t||i);return[a].concat(OS(o))};var IS=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function RS(e){return function(e){if(Array.isArray(e))return LS(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 LS(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 LS(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 LS(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 NS(){return NS=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},NS.apply(this,arguments)}function BS(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 FS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BS(Object(n),!0).forEach((function(t){zS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function US(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var HS={valueAccessor:function(e){return xo(e.value)?IS(e.value):e.value}};function VS(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,s=e.textBreakAll,c=US(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?i.createElement(er,{className:"recharts-label-list"},t.map((function(e,t){var u=Wf(r)?n(e,t):BO(e&&e.payload,r),l=Wf(a)?{}:{id:"".concat(a,"-").concat(t)};return i.createElement(MS,NS({},$n(e,!0),c,l,{parentViewBox:e.parentViewBox,index:t,value:u,textBreakAll:s,viewBox:MS.parseViewBox(Wf(o)?e:FS(FS({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function KS(e,t){return e?!0===e?i.createElement(VS,{key:"labelList-implicit",data:t}):i.isValidElement(e)||br(e)?i.createElement(VS,{key:"labelList-implicit",data:t,content:e}):Un(e)?i.createElement(VS,NS({data:t},e,{key:"labelList-implicit"})):null:null}function WS(e){return WS="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},WS(e)}function $S(){return $S=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},$S.apply(this,arguments)}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(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 ZS(e,t){return ZS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZS(e,t)}function YS(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=JS(e);if(t){var i=JS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return XS(this,n)}}function XS(e,t){return!t||"object"!==WS(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 JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JS(e)}VS.displayName="LabelList",VS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lm(r,VS.displayName).map((function(e,n){return c(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var o=KS(e.label,t);return[o].concat(RS(i))},VS.defaultProps=HS;var QS=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/yS,f=c?i:i+o*l,p=c?i-o*l:i;return{center:mS(t,n,u,f),circleTangency:mS(t,n,r,f),lineTangency:mS(t,n,u*Math.cos(l*yS),p),theta:l}},ek=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),s=o+a,c=mS(t,n,i,o),u=mS(t,n,i,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=mS(t,n,r,o),p=mS(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(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},tk=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&&ZS(e,t)}(a,m);var t,n,r,o=YS(a);function a(){return qS(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(o<r||u===l)return null;var p,d=zn("recharts-sector",f),h=o-r,g=Ef(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,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=xf(u-c),f=QS({cx:t,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=QS({cx:t,cy:n,radius:i,angle:u,sign:-l,cornerRadius:o,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(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):ek({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=QS({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=QS({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,A=S.theta,T=s?Math.abs(c-u):Math.abs(c-u)-O-A;if(T<0&&0===o)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):ek({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:l}),i.createElement("path",$S({},$n(this.props,!0),{className:d,d:p}))}}],n&&GS(t.prototype,n),r&&GS(t,r),a}();function nk(e){return nk="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},nk(e)}function rk(){return rk=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},rk.apply(this,arguments)}function ik(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 ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ik(Object(n),!0).forEach((function(t){ak(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ak(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(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 uk(e,t){return uk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uk(e,t)}function lk(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=pk(e);if(t){var i=pk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fk(this,n)}}function fk(e,t){return!t||"object"!==nk(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 pk(e){return pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pk(e)}tk.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var dk={curveBasisClosed:function(e){return new vl(e)},curveBasisOpen:function(e){return new ml(e)},curveBasis:function(e){return new yl(e)},curveLinearClosed:function(e){return new Al(e)},curveLinear:$u,curveMonotoneX:function(e){return new Dl(e)},curveMonotoneY:function(e){return new Il(e)},curveNatural:function(e){return new Ll(e)},curveStep:function(e){return new Bl(e,.5)},curveStepAfter:function(e){return new Bl(e,1)},curveStepBefore:function(e){return new Bl(e,0)}},hk=function(e){return e.x===+e.x&&e.y===+e.y},gk=function(e){return e.x},yk=function(e){return e.y},vk=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&&uk(e,t)}(a,m);var t,n,r,o=lk(a);function a(){return sk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,s=function(e,t){if(br(e))return e;var n="curve".concat(Ru(e));return"curveMonotone"===n&&t?dk["".concat(n).concat("vertical"===t?"Y":"X")]:dk[n]||$u}(n,o),c=a?r.filter((function(e){return hk(e)})):r;if(xo(i)){var u=a?i.filter((function(e){return hk(e)})):i,l=c.map((function(e,t){return ok(ok({},e),{},{base:u[t]})}));return(e="vertical"===o?Yu().y(yk).x1(gk).x0((function(e){return e.base.x})):Yu().x(gk).y1(yk).y0((function(e){return e.base.y}))).defined(hk).curve(s),e(l)}return(e="vertical"===o&&Cf(i)?Yu().y(yk).x1(gk).x0(i):Cf(i)?Yu().x(gk).y1(yk).y0(i):Zu().x(gk).y(yk)).defined(hk).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return i.createElement("path",rk({},$n(this.props),qn(this.props),{className:zn("recharts-curve",t),d:a,ref:o}))}}],n&&ck(t.prototype,n),r&&ck(t,r),a}();function mk(e){return mk="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},mk(e)}function bk(){return bk=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},bk.apply(this,arguments)}function wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xk(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 _k(e,t){return _k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_k(e,t)}function Ck(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=Sk(e);if(t){var i=Sk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ok(this,n)}}function Ok(e,t){return!t||"object"!==mk(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 Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sk(e)}vk.defaultProps={type:"linear",points:[],connectNulls:!1};var kk=function(e,t,n,r,i){var o,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&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),o+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),o+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),o+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="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 o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Ek=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(i,i+a),u=Math.max(i,i+a),l=Math.min(o,o+s),f=Math.max(o,o+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},Ak=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&&_k(e,t)}(a,m);var t,n,r,o=Ck(a);function a(){var e;wk(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{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,t=this.props,n=t.x,r=t.y,o=t.width,a=t.height,s=t.radius,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||0===o||0===a)return null;var y=zn("recharts-rectangle",c);return g?i.createElement(Cd,{canBegin:u>0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return i.createElement(Cd,{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},i.createElement("path",bk({},$n(e.props,!0),{className:y,d:kk(o,a,n,r,s),ref:function(t){e.node=t}})))})):i.createElement("path",bk({},$n(this.props,!0),{className:y,d:kk(n,r,o,a,s)}))}}],n&&xk(t.prototype,n),r&&xk(t,r),a}();function Tk(e){return Tk="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},Tk(e)}function jk(){return jk=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},jk.apply(this,arguments)}function Mk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dk(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 Ik(e,t){return Ik=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ik(e,t)}function Rk(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=Nk(e);if(t){var i=Nk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Lk(this,n)}}function Lk(e,t){return!t||"object"!==Tk(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 Nk(e){return Nk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nk(e)}function Bk(e){return function(e){if(Array.isArray(e))return Fk(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 Fk(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 Fk(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 Fk(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}Ak.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var zk=function(e){return e&&e.x===+e.x&&e.y===+e.y},Uk=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){zk(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),zk(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(Bk(e),Bk(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},Hk=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&&Ik(e,t)}(a,m);var t,n,r,o=Rk(a);function a(){return Pk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,a=Mk(e,["points","className","baseLinePoints","connectNulls"]);if(!t||!t.length)return null;var s=zn("recharts-polygon",n);if(r&&r.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=Uk(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Uk(t.reverse(),n).slice(1))}(t,r,o);return i.createElement("g",{className:s},i.createElement("path",jk({},$n(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(t,o)})):null,c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(r,o)})):null)}var l=Uk(t,o);return i.createElement("path",jk({},$n(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&Dk(t.prototype,n),r&&Dk(t,r),a}();function Vk(e){return Vk="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},Vk(e)}function Kk(){return Kk=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},Kk.apply(this,arguments)}function Wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $k(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 qk(e,t){return qk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qk(e,t)}function Gk(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=Yk(e);if(t){var i=Yk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Zk(this,n)}}function Zk(e,t){return!t||"object"!==Vk(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 Yk(e){return Yk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yk(e)}var Xk=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&&qk(e,t)}(a,m);var t,n,r,o=Gk(a);function a(){return Wk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,a=zn("recharts-dot",o);return t===+t&&n===+n&&r===+r?i.createElement("circle",Kk({},$n(this.props),qn(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&$k(t.prototype,n),r&&$k(t,r),a}();function Jk(e){return Jk="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},Jk(e)}function Qk(){return Qk=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},Qk.apply(this,arguments)}function eE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tE(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 nE(e,t){return nE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nE(e,t)}function rE(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=oE(e);if(t){var i=oE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return iE(this,n)}}function iE(e,t){return!t||"object"!==Jk(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 oE(e){return oE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oE(e)}var aE=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&&nE(e,t)}(a,m);var t,n,r,o=rE(a);function a(){return eE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,s=e.top,c=e.left,u=e.className;return Cf(t)&&Cf(n)&&Cf(r)&&Cf(o)&&Cf(s)&&Cf(c)?i.createElement("path",Qk({},$n(this.props,!0),{className:zn("recharts-cross",u),d:a.getPath(t,n,r,o,s,c)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],n&&tE(t.prototype,n),r&&tE(t,r),a}();aE.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var sE=wm,cE=zc,uE=km;var lE=function(e,t){return e&&e.length?sE(e,cE(t),uE):void 0},fE=wm,pE=xm,dE=zc;var hE=function(e,t){return e&&e.length?fE(e,dE(t),pE):void 0};function gE(e){return gE="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},gE(e)}function yE(){return yE=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},yE.apply(this,arguments)}function vE(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 mE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vE(Object(n),!0).forEach((function(t){bE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wE(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CE(e,t){return CE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},CE(e,t)}function OE(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=kE(e);if(t){var i=kE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return SE(this,n)}}function SE(e,t){return!t||"object"!==gE(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 kE(e){return kE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kE(e)}var EE=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&&CE(e,t)}(a,m);var t,n,r,o=OE(a);function a(){return xE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return mS(i,o,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,i=e.ticks,o=hE(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:lE(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,a=e.axisLine,s=wE(e,["cx","cy","angle","ticks","axisLine"]),c=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=mS(t,n,c[0],r),l=mS(t,n,c[1],r),f=mE(mE(mE({},$n(s)),{},{fill:"none"},$n(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return i.createElement("line",yE({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,s=t.tickFormatter,c=t.stroke,u=wE(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=$n(u),p=$n(r),d=n.map((function(t,n){var u=e.getTickValueCoord(t),d=mE(mE(mE(mE({textAnchor:l,transform:"rotate(".concat(90-o,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:n},u),{},{payload:t});return i.createElement(er,yE({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?i.createElement(er,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),MS.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,yE({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&_E(t.prototype,n),r&&_E(t,r),a}();function AE(e){return AE="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},AE(e)}function TE(){return TE=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},TE.apply(this,arguments)}function jE(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 ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(n),!0).forEach((function(t){PE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IE(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 RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function LE(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=BE(e);if(t){var i=BE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(e,t){return!t||"object"!==AE(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 BE(e){return BE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BE(e)}EE.displayName="PolarRadiusAxis",EE.axisType="radiusAxis",EE.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 FE=Math.PI/180,zE=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&&RE(e,t)}(a,m);var t,n,r,o=LE(a);function a(){return DE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,s=mS(n,r,i,e.coordinate),c=mS(n,r,i+("inner"===o?-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*FE);return n>1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,a=e.axisLineType,s=ME(ME({},$n(this.props)),{},{fill:"none"},$n(o));if("circle"===a)return i.createElement(Xk,TE({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var c=this.props.ticks.map((function(e){return mS(t,n,r,e.coordinate)}));return i.createElement(Hk,TE({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,s=t.tickFormatter,c=t.stroke,u=$n(this.props),l=$n(r),f=ME(ME({},u),{},{fill:"none"},$n(o)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),d=ME(ME(ME({textAnchor:e.getTickTextAnchor(t)},u),{},{stroke:"none",fill:c},l),{},{index:n,payload:t,x:p.x2,y:p.y2});return i.createElement(er,TE({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),o&&i.createElement("line",TE({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:i.createElement(er,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,TE({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&IE(t.prototype,n),r&&IE(t,r),a}();zE.displayName="PolarAngleAxis",zE.axisType="angleAxis",zE.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 UE=ya(Object.getPrototypeOf,Object),HE=yr,VE=UE,KE=Io,WE=Function.prototype,$E=Object.prototype,qE=WE.toString,GE=$E.hasOwnProperty,ZE=qE.call(Object);var YE=function(e){if(!KE(e)||"[object Object]"!=HE(e))return!1;var t=VE(e);if(null===t)return!0;var n=GE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qE.call(n)==ZE};function XE(e){return XE="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},XE(e)}function JE(){return JE=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},JE.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 eA(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){tA(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 tA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nA(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 rA(e,t){return rA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rA(e,t)}function iA(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=aA(e);if(t){var i=aA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oA(this,n)}}function oA(e,t){return!t||"object"!==XE(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 aA(e){return aA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aA(e)}var sA=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&&rA(e,t)}(a,m);var t,n,r,o=iA(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=o.call(this,e)).state=void 0,t.id=kf("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),br(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),br(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},t}return t=a,n=[{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 t=this.props,n=t.label,r=t.labelLine,o=t.dataKey,s=t.valueKey,c=$n(this.props),u=$n(n),l=$n(r),f=n&&n.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,d=mS(e.cx,e.cy,e.outerRadius+f,p),h=eA(eA(eA(eA({},c),e),{},{stroke:"none"},u),{},{index:t,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=eA(eA(eA(eA({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[mS(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=o;return Wf(o)&&Wf(s)?y="value":Wf(o)&&(y=s),i.createElement(er,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,BO(e,y)))}));return i.createElement(er,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,s=n.inactiveShape;return e.map((function(e,n){var c=s&&t.hasActiveIndex()?s:null,u=t.isActiveIndex(n)?r:c,l=eA(eA({},e),{},{stroke:o?e.fill:e.stroke});return i.createElement(er,JE({className:"recharts-pie-sector"},Gn(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],i=t>0?ac(e,"paddingAngle",0):0;if(n){var s=Tf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=eA(eA({},e),{},{startAngle:a+i,endAngle:a+s(r)+i});o.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Tf(0,u-f)(r),d=eA(eA({},e),{},{startAngle:a+i,endAngle:a+p+i});o.push(d),a=d.endAngle}})),i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,a=e.cx,s=e.cy,c=e.innerRadius,u=e.outerRadius,l=e.isAnimationActive,f=this.state.isAnimationFinished;if(t||!n||!n.length||!Cf(a)||!Cf(s)||!Cf(c)||!Cf(u))return null;var p=zn("recharts-pie",r);return i.createElement(er,{className:p},this.renderSectors(),o&&this.renderLabels(n),MS.renderCallByParent(this.props,null,!1),(!l||f)&&VS.renderCallByParent(this.props,n,!1))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(vk,JE({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(i.isValidElement(e))return i.cloneElement(e,t);var r=n;return br(e)&&(r=e(t),i.isValidElement(r))?r:i.createElement(nm,JE({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(tk,JE({},t,e)):i.createElement(tk,t)}}],n&&nA(t.prototype,n),r&&nA(t,r),a}();sA.displayName="Pie",sA.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:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},sA.parseDeltaAngle=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),360)},sA.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return eA(eA(eA({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return eA(eA({},i),e.props)})):[]},sA.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=bS(i,o);return{cx:r+Ef(e.props.cx,i,i/2),cy:n+Ef(e.props.cy,o,o/2),innerRadius:Ef(e.props.innerRadius,a,0),outerRadius:Ef(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},sA.getComposedData=function(e){var t=e.item,n=e.offset,r=sA.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,c=i.paddingAngle,u=i.dataKey,l=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=sA.parseCoordinateOfPie(t,n),g=sA.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Wf(u)&&Wf(f)?(Gy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Wf(u)&&(Gy(!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!==BO(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=BO(t,v,0);return e+(Cf(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=BO(e,v,0),i=BO(e,l,t),s=(Cf(r)?r:0)/_,u=(n=t?b.endAngle+xf(g)*c*(0!==r?1:0):a)+xf(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:i,value:r,payload:e,dataKey:v,type:p}],w=mS(h.cx,h.cy,y,f);return b=eA(eA(eA({percent:s,cornerRadius:o,name:i,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:BO(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:xf(g)*c})})));return eA(eA({},h),{},{sectors:m,data:r})};var cA={exports:{}};var uA=function(e){return e&&e.length?e[0]:void 0},lA=St(cA.exports=uA);function fA(e){return fA="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},fA(e)}function pA(){return pA=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},pA.apply(this,arguments)}function dA(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 hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dA(Object(n),!0).forEach((function(t){gA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(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 mA(e,t){return mA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mA(e,t)}function bA(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=xA(e);if(t){var i=xA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wA(this,n)}}function wA(e,t){return!t||"object"!==fA(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 xA(e){return xA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xA(e)}var _A=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&&mA(e,t)}(a,m);var t,n,r,o=bA(a);function a(){var e;yA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(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 t=a,n=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,o=$n(this.props),s=$n(n),c=e.map((function(e,t){var i=hA(hA(hA({key:"dot-".concat(t),r:3},o),s),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,i)}));return i.createElement(er,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,o=n.dot,a=n.isRange,s=n.baseLinePoints,c=n.connectNulls;return t=i.isValidElement(r)?i.cloneElement(r,hA(hA({},this.props),{},{points:e})):br(r)?r(hA(hA({},this.props),{},{points:e})):i.createElement(Hk,pA({},$n(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i.createElement(er,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,i=u&&u.length/n.length,o=n.map((function(e,t){var n=u&&u[Math.floor(t*i)];if(n){var o=Tf(n.x,e.x),a=Tf(n.y,e.y);return hA(hA({},e),{},{x:o(r),y:a(r)})}var s=Tf(e.cx,e.x),c=Tf(e.cy,e.y);return hA(hA({},e),{},{x:s(r),y:c(r)})}));return e.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&mm(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,o=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,s=zn("recharts-radar",n);return i.createElement(er,{className:s},this.renderPolygon(),(!o||a)&&VS.renderCallByParent(this.props,r))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,pA({},t,{className:"recharts-radar-dot"}))}}],n&&vA(t.prototype,n),r&&vA(t,r),a}();function CA(e){return CA="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},CA(e)}function OA(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 SA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(n),!0).forEach((function(t){kA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AA(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 jA(e,t){return jA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jA(e,t)}function MA(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=DA(e);if(t){var i=DA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return PA(this,n)}}function PA(e,t){return!t||"object"!==CA(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 DA(e){return DA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},DA(e)}_A.displayName="Radar",_A.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_A.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=BO(e,n.dataKey,r),f=BO(e,i),p=n.scale(l)+(o||0),d=xo(f)?IS(f):f,h=Wf(d)?void 0:t.scale(d);xo(f)&&f.length>=2&&(c=!0),u.push(hA(hA({},mS(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(xo(e.value)){var n=lA(e.value),r=Wf(n)?void 0:t.scale(n);l.push(hA(hA({},e),{},{radius:r},mS(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}};var IA=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&&jA(e,t)}(a,m);var t,n,r,o=MA(a);function a(){var e;AA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return xf(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,s=n.cornerRadius,c=EA(n,["shape","activeShape","activeIndex","cornerRadius"]),u=$n(c);return e.map((function(e,n){var l=SA(SA(SA(SA({},u),{},{cornerRadius:s},e),Gn(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===o?i:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.startAngle,e.startAngle),o=Tf(n.endAngle,e.endAngle);return SA(SA({},e),{},{startAngle:i(r),endAngle:o(r)})}var a=e.endAngle,s=e.startAngle,c=Tf(s,a);return SA(SA({},e),{},{endAngle:c(r)})}));return i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=$n(this.props.background);return e.map((function(e,i){e.value;var o=e.background,s=EA(e,["value","background"]);if(!o)return null;var c=SA(SA(SA(SA(SA({cornerRadius:n},s),{},{fill:"#eee"},o),r),Gn(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.background,a=e.isAnimationActive;if(t||!n||!n.length)return null;var s=this.state.isAnimationFinished,c=zn("recharts-area",r);return i.createElement(er,{className:c},o&&i.createElement(er,{className:"recharts-radial-bar-background"},this.renderBackground(n)),i.createElement(er,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&VS.renderCallByParent(SA(SA({},this.props),{},{clockWise:this.getDeltaAngle()<0}),n))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(tk,t)}}],n&&TA(t.prototype,n),r&&TA(t,r),a}();IA.displayName="RadialBar",IA.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},IA.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=YO(l,t);if(!d)return null;var h=o.cx,g=o.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?o:r,x=u?w.scale.domain():null,_=rS({numericAxis:w}),C=lm(m,Zy.displayName);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=XO(u[p+s],x):(l=BO(e,c),xo(l)||(l=[_,l])),"radial"===y){v=nS({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:s}),O=o.scale(l[1]),w=o.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=xf(k||b)*(Math.abs(b)-Math.abs(k));S={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]),O=(w=nS({axis:o,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+=xf(E||b)*(Math.abs(b)-Math.abs(E))}return SA(SA(SA(SA({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:O},C&&C[s]&&C[s].props),{},{tooltipPayload:[lS(t,e)],tooltipPosition:mS(h,g,(v+m)/2,(w+O)/2)})})),layout:y}};var RA=Math.ceil,LA=Math.max;var NA=Zg;var BA=function(e){return e?Infinity===(e=NA(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},FA=function(e,t,n,r){for(var i=-1,o=LA(RA((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},zA=rg,UA=BA;var HA=function(e){return function(t,n,r){return r&&"number"!=typeof r&&zA(t,n,r)&&(n=r=void 0),t=UA(t),void 0===n?(n=t,t=0):n=UA(n),r=void 0===r?t<n?1:-1:UA(r),FA(t,n,r,e)}}();function VA(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 KA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VA(Object(n),!0).forEach((function(t){WA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WA(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=["Webkit","Moz","O","ms"];function qA(e){return qA="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},qA(e)}function GA(){return GA=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},GA.apply(this,arguments)}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(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 QA(e,t){return QA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QA(e,t)}function eT(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=rT(e);if(t){var i=rT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tT(this,n)}}function tT(e,t){return!t||"object"!==qA(t)&&"function"!=typeof t?nT(e):t}function nT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rT(e)}var iT=function(e){return e.changedTouches&&!!e.changedTouches.length},oT=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&&QA(e,t)}(a,m);var t,n,r,o=eT(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=o.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=iT(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(nT(t),"startX"),endX:t.handleTravellerDragStart.bind(nT(t),"endX")},t.state={},t}return t=a,n=[{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,i=this.props,o=i.gap,s=i.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%o,endIndex:f===s?s:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=BO(n[e],i,e);return br(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,c=o.travellerWidth,u=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-i,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=iT(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,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],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[i]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((XA(t={},i,s+y),XA(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?m%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:m%d==0)||o>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,s=e.stroke;return i.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,s=e.children,c=e.padding,u=g.only(s);return u?i.cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,s=n.height,c=n.traveller,u=Math.max(e,this.props.x),l=YA(YA({},$n(this.props)),{},{x:u,y:r,width:o,height:s});return i.createElement(er,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,s=n.travellerWidth,c=Math.min(e,t)+s,u=Math.max(Math.abs(t-e)-s,0);return i.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:r,width:u,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return i.createElement(er,{className:"recharts-brush-texts"},i.createElement(nm,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(nm,GA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=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(!t||!t.length||!Cf(o)||!Cf(a)||!Cf(s)||!Cf(c)||s<=0||c<=0)return null;var y=zn("recharts-brush",n),v=1===i.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=$A.reduce((function(e,r){return KA(KA({},e),{},WA({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return i.createElement(er,{className:y,onMouseMove:this.handleDrag,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())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,s=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return YA({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=sw().domain(HA(0,s)).range([i,i+o-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:i,travellerWidth:o,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,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 i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],n&&JA(t.prototype,n),r&&JA(t,r),a}();oT.displayName="Brush",oT.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 aT=bh;var sT=no,cT=zc,uT=function(e,t){var n;return aT(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},lT=xo,fT=rg;var pT=function(e,t,n){var r=lT(e)?sT:uT;return n&&fT(e,t,n)&&(t=void 0),r(e,cT(t))},dT=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var hT=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},gT=bh;var yT=hT,vT=function(e,t){var n=!0;return gT(e,(function(e,r,i){return n=!!t(e,r,i)})),n},mT=zc,bT=xo,wT=rg;var xT=function(e,t,n){var r=bT(e)?yT:vT;return n&&wT(e,t,n)&&(t=void 0),r(e,mT(t))},_T=Vh;var CT=function(e,t,n){"__proto__"==t&&_T?_T(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},OT=CT,ST=vh,kT=zc;var ET=function(e,t){var n={};return t=kT(t),ST(e,(function(e,r,i){OT(n,r,t(e,r,i))})),n};function AT(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 TT(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 jT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TT(Object(n),!0).forEach((function(t){MT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PT=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!fm(c,"Bar");return u.reduce((function(o,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],O=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(S[t-1]||0),O))}));var k=O/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var A=Ef(e.barCategoryGap,k*E),T=k*E/2;c=T-A-(T-A)/E*A}}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 j=GO(g,i,f),M=j.scale,P=j.realScaleType;M.domain(v).range(u),ZO(M);var D=eS(M,jT(jT({},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 I=jT(jT(jT({},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 I.bandSize=cS(I,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*I.width):l[_]+=(h?-1:1)*I.height,jT(jT({},o),{},MT({},a,I))}),{})},DT=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},IT=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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}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&&AT(t.prototype,n),r&&AT(t,r),e}();IT.EPS=1e-4;var RT=function(e){var t=Object.keys(e).reduce((function(t,n){return jT(jT({},t),{},MT({},n,IT.create(e[n])))}),{});return jT(jT({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return ET(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return xT(e,(function(e,n){return t[n].isInRange(e)}))}})};function LT(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 NT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LT(Object(n),!0).forEach((function(t){BT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zT(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 zT(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 zT(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 UT(){return UT=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},UT.apply(this,arguments)}function HT(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;Gy(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,s=o.y,c=o.width,u=o.height,l=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:l});if(dT(i,"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=i.x,y=i.xAxis.orientation,v=e.x.apply(g,{position:l});if(dT(i,"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=i.segment.map((function(t){return e.apply(t,{position:l})}));return dT(i,"discard")&&pT(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(RT({x:o.scale,y:a.scale}),Of(t),Of(n),r&&2===r.length,e);if(!f)return null;var p=FT(f,2),d=p[0],h=d.x,g=d.y,y=p[1],v=y.x,m=y.y,b=NT(NT({clipPath:dT(e,"hidden")?"url(#".concat(l,")"):void 0},$n(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return i.createElement(er,{className:zn("recharts-reference-line",c)},function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement("line",UT({},t,{className:"recharts-reference-line-line"}))}(s,b),MS.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return DT({x:t,y:n},{x:r,y:i})}({x1:h,y1:g,x2:v,y2:m})))}function VT(){return VT=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},VT.apply(this,arguments)}function KT(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 WT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KT(Object(n),!0).forEach((function(t){$T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}HT.displayName="ReferenceLine",HT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function qT(e){var t=e.x,n=e.y,r=e.r,o=e.alwaysShow,a=e.clipPathId,s=Of(t),c=Of(n);if(Gy(void 0===o,'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,i=e.yAxis,o=RT({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return dT(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=WT(WT({clipPath:dT(e,"hidden")?"url(#".concat(a,")"):void 0},$n(e,!0)),{},{cx:l,cy:f});return i.createElement(er,{className:zn("recharts-reference-dot",d)},qT.renderDot(p,h),MS.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function GT(){return GT=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},GT.apply(this,arguments)}function ZT(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 YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qT.displayName="ReferenceDot",qT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},qT.renderDot=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,VT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function JT(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Gy(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Of(t),l=Of(n),f=Of(r),p=Of(o),d=e.shape;if(!(u||l||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,c=i.y2,u=i.xAxis,l=i.yAxis;if(!u||!l)return null;var f=RT({x:u.scale,y:l.scale}),p={x:e?f.x.apply(o,{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!dT(i,"discard")||f.isInRange(p)&&f.isInRange(d)?DT(p,d):null}(u,l,f,p,e);if(!h&&!d)return null;var g=dT(e,"hidden")?"url(#".concat(c,")"):void 0;return i.createElement(er,{className:zn("recharts-reference-area",a)},JT.renderRect(d,YT(YT({clipPath:g},$n(e,!0)),h)),MS.renderCallByParent(e,h))}function QT(e){return QT="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},QT(e)}function ej(){return ej=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},ej.apply(this,arguments)}function tj(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 nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oj(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 aj(e,t){return aj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aj(e,t)}function sj(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=uj(e);if(t){var i=uj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==QT(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 uj(e){return uj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uj(e)}JT.displayName="ReferenceArea",JT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},JT.renderRect=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,GT({},t,{className:"recharts-reference-area-rect"}))};var 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&&aj(e,t)}(a,w);var t,n,r,o=sj(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=o.call(this,e)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=ij(e,["viewBox"]),i=this.props,o=i.viewBox,a=ij(i,["viewBox"]);return!rm(n,o)||!rm(r,a)||!rm(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,i,o,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=Cf(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=u+ +!h*f)-y*v)-y*g,o=m;break;case"left":r=i=e.coordinate,o=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=i=e.coordinate,o=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(i=u+ +h*f)+y*v)+y*g,o=m}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,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,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=nj(nj(nj({},$n(this.props)),$n(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=nj(nj({},u),{},{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f=+("left"===a&&!s||"right"===a&&s);u=nj(nj({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return i.createElement("line",ej({},u,{className:zn("recharts-cartesian-axis-line",ac(c,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,o=this.props,s=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,f=o.unit,p=a.getTicks(nj(nj({},this.props),{},{ticks:e}),t,n),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=$n(this.props),y=$n(u),v=nj(nj({},g),{},{fill:"none"},$n(s)),m=p.map((function(e,t){var n=r.getTickLineCoord(e),o=n.line,m=n.tick,b=nj(nj(nj(nj({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:l});return i.createElement(er,ej({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Gn(r.props,e,t)),s&&i.createElement("line",ej({},v,o,{className:zn("recharts-cartesian-axis-tick-line",ac(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(br(l)?l(e.value,t):e.value).concat(f||"")))}));return i.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,l=ij(c,["ticks"]),f=u;return br(a)&&(f=u&&u.length>0?a(this.props):a(l)),r<=0||o<=0||!f||!f.length?null:i.createElement(er,{className:zn("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),MS.renderCallByParent(this.props))}}],r=[{key:"getTicks",value:function(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return i&&i.length&&r?Cf(u)||_g.isSsr?a.getNumberIntervalTicks(i,"number"==typeof u&&Cf(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:i,tickFormatter:l,viewBox:o,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,i=e.ticks,o=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=(i||[]).slice(),m=u&&"width"===y?Nv(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?xf(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=i[b-1],_=br(o)?o(x.value,b-1):x.value,C=Nv(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*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]=nj(nj({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],A=br(o)?o(E.value,k):E.value,T=Nv(A,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var j=w*(E.coordinate-w*T/2-n);v[k]=E=nj(nj({},E),{},{tickCoord:j<0?E.coordinate-j*w:E.coordinate})}else v[k]=E=nj(nj({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*T/2-n)>=0&&w*(E.tickCoord+w*T/2-r)<=0&&(n=E.tickCoord+w*(T/2+c),v[k]=nj(nj({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Nv(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?xf(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],_=br(i)?i(x.value,m-w-1):x.value,C=Nv(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=nj(nj({},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]=nj(nj({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,ej({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&oj(t.prototype,n),r&&oj(t,r),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){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hj(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 gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hj(Object(n),!0).forEach((function(t){yj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mj(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 bj(e,t){return bj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bj(e,t)}function wj(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 i=_j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xj(this,n)}}function xj(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 _j(e){return _j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_j(e)}lj.displayName="CartesianAxis",lj.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 Cj=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&&bj(e,t)}(a,m);var t,n,r,o=wj(a);function a(){return vj(this,a),o.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,s=n.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,s=n.vertical;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:o+s-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:a,width:l,height:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:a+c-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),y:Math.round(e+a-a),x:o,height:l,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,a=t.width,s=t.height;return i.createElement("rect",{x:r,y:o,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=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(!Cf(r)||r<=0||!Cf(o)||o<=0||!Cf(t)||t!==+t||!Cf(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!br(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!br(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),i.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,s=t.y2,c=t.key,u=dj(t,["x1","y1","x2","y2","key"]);n=i.createElement("line",pj({},$n(u),{x1:r,y1:o,x2:a,y2:s,fill:"none",key:c}))}return n}}],n&&mj(t.prototype,n),r&&mj(t,r),a}();function Oj(){return Oj=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},Oj.apply(this,arguments)}function Sj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kj(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 kj(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 kj(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 Ej(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Aj(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=Ej(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=$n(l),p=a.map((function(e,a){var l=s(e,o),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=Sj(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=c.scale,x=d+t,_=x+r,C=x-r,O=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:C}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:_,x2:O,y2:C})}else if("horizontal"===n){var k=u.scale,E=p+t,A=E-r,T=E+r,j=k(h-y),M=k(h+v);m.push({x1:A,y1:M,x2:T,y2:M}),m.push({x1:E,y1:j,x2:E,y2:M}),m.push({x1:A,y1:j,x2:T,y2:j})}return i.createElement(er,Oj({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,t){return i.createElement("line",Oj({},e,{key:"line-".concat(t)}))})))}));return i.createElement(er,{className:"recharts-errorBars"},p)}function Tj(e){return Tj="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},Tj(e)}function jj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mj(){return Mj=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},Mj.apply(this,arguments)}function Pj(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 Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pj(Object(n),!0).forEach((function(t){Ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rj(e){return function(e){if(Array.isArray(e))return Lj(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 Lj(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 Lj(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 Lj(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 Nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bj(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 Fj(e,t){return Fj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fj(e,t)}function zj(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=Hj(e);if(t){var i=Hj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uj(this,n)}}function Uj(e,t){return!t||"object"!==Tj(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 Hj(e){return Hj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hj(e)}Cj.displayName="CartesianGrid",Cj.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},Aj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Aj.displayName="ErrorBar";var Vj=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&&Fj(e,t)}(a,m);var t,n,r,o=zj(a);function a(){var e;Nj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[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})),i=Math.floor(e/r),o=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>o){c=[].concat(Rj(n.slice(0,u)),[o-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(Rj(a.repeat(n,i)),Rj(c),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=kf("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 t=a,n=[{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,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e.payload,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,s=n.dataKey,c=$n(this.props),u=$n(r,!0),l=o.map((function(e,t){var n=Dj(Dj(Dj({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(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.createElement(er,Mj({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,s=o.layout,c=o.connectNulls;o.ref;var u=jj(o,["type","layout","connectNulls","ref"]),l=Dj(Dj(Dj({},$n(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:s,connectNulls:c});return i.createElement(vk,Mj({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.animateNewValues,d=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return i.createElement(Cd,{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(r){var i=r.t;if(y){var s=y.length/o.length,c=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=Tf(r.x,e.x),a=Tf(r.y,e.y);return Dj(Dj({},e),{},{x:o(i),y:a(i)})}if(p){var c=Tf(2*d,e.x),u=Tf(h/2,e.y);return Dj(Dj({},e),{},{x:c(i),y:u(i)})}return Dj(Dj({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(c,e,t)}var u,l=Tf(0,v)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!mm(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=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(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-line",o),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||n)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{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(Rj(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(Rj(r),Rj(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=zn("recharts-line-dot",e?e.className:"");n=i.createElement(Xk,Mj({},t,{className:r}))}return n}}],n&&Bj(t.prototype,n),r&&Bj(t,r),a}();function Kj(e){return Kj="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},Kj(e)}function Wj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $j(){return $j=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},$j.apply(this,arguments)}function qj(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 Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(n),!0).forEach((function(t){Zj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zj(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 Xj(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 Jj(e,t){return Jj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jj(e,t)}function Qj(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=tM(e);if(t){var i=tM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eM(this,n)}}function eM(e,t){return!t||"object"!==Kj(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 tM(e){return tM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tM(e)}Vj.displayName="Line",Vj.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_g.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},Vj.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return Dj({points:c.map((function(e,t){var c=BO(e,a);return"horizontal"===l?{x:tS({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:Wf(c)?null:r.scale(c),value:c,payload:e}:{x:Wf(c)?null:n.scale(c),y:tS({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)};var nM=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&&Jj(e,t)}(a,m);var t,n,r,o=Qj(a);function a(){var e;Yj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!0},e.id=kf("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var o=this.props,s=o.dot,c=o.points,u=o.dataKey,l=$n(this.props),f=$n(s,!0),p=c.map((function(e,t){var n=Gj(Gj(Gj({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(t,")"):null};return i.createElement(er,$j({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.y||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.y||0}))),u)),Cf(u)?i.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.x||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.x||0}))),u)),Cf(u)?i.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(o?parseInt("".concat(o),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,t,n,r){var o=this.props,a=o.layout,s=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var f=Wj(o,["layout","type","stroke","connectNulls","isRange","ref"]);return i.createElement(er,{clipPath:n?"url(#clipPath-".concat(r,")"):null},i.createElement(vk,$j({},$n(f,!0),{points:e,connectNulls:u,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.baseLine,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return i.createElement(Cd,{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(r){var s=r.t;if(d){var c,u=d.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e}));return c=Cf(a)&&"number"==typeof a?Tf(h,a)(s):Wf(a)||yf(a)?Tf(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e})),n.renderAreaStatically(l,c,e,t)}return i.createElement(er,null,i.createElement("defs",null,i.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),i.createElement(er,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return o&&r&&r.length&&(!s&&u>0||!mm(s,r)||!mm(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=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(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-area",o),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{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}}],n&&Xj(t.prototype,n),r&&Xj(t,r),a}();function rM(e){return rM="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},rM(e)}function iM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oM(){return oM=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},oM.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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(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 fM(e,t){return fM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fM(e,t)}function pM(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 i=hM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dM(this,n)}}function dM(e,t){return!t||"object"!==rM(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 hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hM(e)}nM.displayName="Area",nM.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nM.getBaseValue=function(e,t,n,r){var i=e.layout,o=t.props.baseValue;if(Cf(o)&&"number"==typeof o)return o;var a="horizontal"===i?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"===o?u:"dataMax"===o||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===o?s[0]:"dataMax"===o?s[1]:s[0]},nM.getComposedData=function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=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=nM.getBaseValue(n,r,i,o),v=!1,m=p.map((function(e,t){var n,r=BO(e,u);g?n=l[f+t]:xo(n=r)?v=!0:n=[y,n];var p=Wf(n[1])||g&&Wf(r);return"horizontal"===h?{x:tS({axis:i,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:tS({axis:o,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:Wf(ac(e,"value[0]"))||Wf(ac(e,"y"))?null:o.scale(ac(e,"value[0]"))}:{x:Wf(ac(e,"value[0]"))?null:i.scale(ac(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(y):i.scale(y),Gj({points:m,baseLine:t,layout:h,isRange:v},d)},nM.renderDotItem=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,$j({},t,{className:"recharts-area-dot"}))};var gM=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&&fM(e,t)}(a,m);var t,n,r,o=pM(a);function a(){var e;uM(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.id=kf("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 t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=$n(this.props);return e&&e.map((function(e,o){var s=sM(sM(sM({},r),e),{},{index:o});return i.createElement(er,oM({className:"recharts-bar-rectangle"},Gn(t.props,e,o),{key:"rectangle-".concat(o)}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,c=t.animationEasing,u=t.animationId,l=this.state.prevData;return i.createElement(Cd,{begin:a,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,a=n.map((function(e,t){var n=l&&l[t];if(n){var i=Tf(n.x,e.x),a=Tf(n.y,e.y),s=Tf(n.width,e.width),c=Tf(n.height,e.height);return sM(sM({},e),{},{x:i(o),y:a(o),width:s(o),height:c(o)})}if("horizontal"===r){var u=Tf(0,e.height)(o);return sM(sM({},e),{},{y:e.y+e.height-u,height:u})}var f=Tf(0,e.width)(o);return sM(sM({},e),{},{width:f})}));return i.createElement(er,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&&mm(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=$n(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=iM(t,["value","background"]);if(!i)return null;var s=sM(sM(sM(sM(sM({},o),{},{fill:"#eee"},i),n),Gn(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,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;var c="vertical"===o?t[0].height/2:t[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=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(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-bar",r),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,v=Wf(d)?this.id:d;return i.createElement(er,{className:g},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:s,y:c,width:u,height:l}))):null,i.createElement(er,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&VS.renderCallByParent(this.props,n))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,t)}}],n&&lM(t.prototype,n),r&&lM(t,r),a}();gM.displayName="Bar",gM.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},gM.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=YO(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:o,w=u?b.scale.domain():null,x=rS({numericAxis:b}),_=lm(v,Zy.displayName),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=XO(u[l+t],w):(r=BO(e,y),xo(r)||(r=[x,r])),"horizontal"===h){if(f=nS({axis:o,ticks:s,bandSize:i,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=xf(v||m)*(Math.abs(m)-Math.abs(v));p-=C,v+=C}}else f=o.scale(r[0]),p=nS({axis:a,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),g=o.scale(r[1])-o.scale(r[0]),v=d.size,b={x:o.x,y:p,width:o.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=xf(g||m)*(Math.abs(m)-Math.abs(g)));return sM(sM(sM({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[lS(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return sM({data:C,layout:h},p)};var yM=function(){return null};function vM(e){return vM="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},vM(e)}function mM(){return mM=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},mM.apply(this,arguments)}function bM(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 wM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(n),!0).forEach((function(t){xM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CM(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 OM(e,t){return OM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OM(e,t)}function SM(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=EM(e);if(t){var i=EM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kM(this,n)}}function kM(e,t){return!t||"object"!==vM(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 EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},EM(e)}yM.displayName="ZAxis",yM.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var AM=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&&OM(e,t)}(a,m);var t,n,r,o=SM(a);function a(){var e;_M(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=kf("recharts-scatter-"),e}return t=a,n=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,s=n.activeIndex,c=$n(this.props);return e.map((function(e,n){var u=wM(wM({key:"symbol-".concat(n)},c),e);return i.createElement(er,mM({className:"recharts-scatter-symbol"},Gn(t.props,e,n),{key:"symbol-".concat(n)}),a.renderSymbolItem(s===n?o:r,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.cx,e.cx),o=Tf(n.cy,e.cy),a=Tf(n.size,e.size);return wM(wM({},e),{},{cx:i(r),cy:o(r),size:a(r)})}var s=Tf(0,e.size);return wM(wM({},e),{},{size:s(r)})}));return i.createElement(er,null,e.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.children,a=lm(o,Aj.displayName);if(!a)return null;function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:BO(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:BO(e,t)}}return a.map((function(e,o){var a=e.props.direction;return i.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:s})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,o=n.line,a=n.lineType,s=n.lineJointType,c=$n(this.props),u=$n(o);if("joint"===a)e=r.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,i=0,o=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,i+=c*u,o+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),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=wM(wM(wM({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return t=i.isValidElement(o)?i.cloneElement(o,y):br(o)?o(y):i.createElement(vk,mM({},y,{type:s})),i.createElement(er,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,o=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(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-scatter",o),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Wf(p)?this.id:p;return i.createElement(er,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:c,y:u,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),i.createElement(er,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&VS.renderCallByParent(this.props,n))}}],r=[{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,t){var n;return i.isValidElement(e)?n=i.cloneElement(e,t):br(e)?n=e(t):"string"==typeof e&&(n=i.createElement(Ql,mM({},t,{type:e}))),n}}],n&&CM(t.prototype,n),r&&CM(t,r),a}();AM.displayName="Scatter",AM.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},AM.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=lm(i.props.children,Zy.displayName),f=Wf(t.dataKey)?i.props.dataKey:t.dataKey,p=Wf(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:yM.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=o.map((function(e,o){var c=BO(e,f),h=BO(e,p),m=!Wf(d)&&BO(e,d)||"-",b=[{name:Wf(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Wf(n.dataKey)?i.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=tS({axis:t,ticks:a,bandSize:y,entry:e,index:o,dataKey:f}),x=tS({axis:n,ticks:s,bandSize:v,entry:e,index:o,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return wM(wM({},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[o]&&l[o].props)}));return wM({points:m},c)};var TM=function(){return null};TM.displayName="XAxis",TM.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 jM=function(){return null};jM.displayName="YAxis",jM.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 MM=zc,PM=Oa,DM=Aa;var IM=function(e){return function(t,n,r){var i=Object(t);if(!PM(t)){var o=MM(n);t=DM(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},RM=BA;var LM=Uc,NM=zc,BM=function(e){var t=RM(e),n=t%1;return t==t?n?t-n:t:0},FM=Math.max;var zM=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:BM(n);return i<0&&(i=FM(r+i,0)),LM(e,NM(t),i)},UM=IM(zM),HM=ty,VM=Un;var KM=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return VM(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),HM(e,t,{leading:r,maxWait:t,trailing:i})},WM=yr,$M=Io;var qM=function(e){return!0===e||!1===e||$M(e)&&"[object Boolean]"==WM(e)},GM=function(e,t,n,r,i){var o=lm(e,HT.displayName),a=lm(e,qT.displayName),s=o.concat(a),c=lm(e,JT.displayName),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&dT(t.props,"extendDomain")&&Cf(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&&dT(t.props,"extendDomain")&&Cf(t.props[p])&&Cf(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Cf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ZM={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||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,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},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 i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].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,i,o,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,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,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,i);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 o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}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}(ZM);var YM=new(0,ZM.exports);YM.setMaxListeners&&YM.setMaxListeners(10);var XM="recharts.syncMouseEvents";function JM(e){return JM="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},JM(e)}function QM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||uP(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 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){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nP(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 rP(e,t){return rP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rP(e,t)}function iP(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=sP(e);if(t){var i=sP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oP(this,n)}}function oP(e,t){return!t||"object"!==JM(t)&&"function"!=typeof t?aP(e):t}function aP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(e){return sP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sP(e)}function cP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uP(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 uP(e,t){if(e){if("string"==typeof e)return lP(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)?lP(e,t):void 0}}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 fP(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 pP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hP={xAxis:["bottom","top"],yAxis:["left","right"]},gP={x:0,y:0},yP=Number.isFinite?Number.isFinite:isFinite,vP="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,mP="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,bP=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(cP(e),cP(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&&Cf(i)&&Cf(o)?e.slice(i,o+1):[]},wP=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=bP(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,s=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=jf(void 0===s?a:s,o.dataKey,r):i=s&&s[n]||a[n];return i?[].concat(cP(e),[lS(t,i)]):e}),[])},xP=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,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,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.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(xf(l-u)!==xf(f-l)){var d=[];if(xf(f-l)===xf(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]){o=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){o=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){o=n[b].index;break}}else o=0;return o}(o,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=wP(e,t,u,l),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return pP(pP(pP({},r),mS(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,c=r.angle;return pP(pP(pP({},r),mS(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return gP}(n,a,u,i);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},_P=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=KO(u,i),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[o],x=bP(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===w})),dataStartIndex:s,dataEndIndex:c}),_=x.length;if(!t[w]){var C,O,S;if(g){if(C=FO(x,g,h),"category"===h&&p){var k=function(e){if(!xo(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?(O=C,C=HA(0,_)):v||(C=uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(cP(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Wf(e)})):uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wf(t)?e:[].concat(cP(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,i){var o=t.map((function(t){return HO(e,t,n,i,r)})).filter((function(e){return!Wf(e)}));return o&&o.length?o.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[o]===w&&!e.props.hide})),g,i,u);E&&(C=E)}!p||"number"!==h&&"auto"===m||(S=FO(x,g,"category"))}else C=p?HA(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:iS(a[w].stackGroups,s,c):VO(x,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,u,!0);if("number"===h)C=GM(l,C,w,i,b),n.props.domain&&(C=sS(n.props.domain,C,y));else if("category"===h&&n.props.domain){var A=n.props.domain;C.every((function(e){return A.indexOf(e)>=0}))&&(C=A)}return pP(pP({},t),{},dP({},w,pP(pP({},n.props),{},{axisType:i,domain:C,categoricalDomain:S,duplicateDomain:O,originalDomain:n.props.domain,isCategorical:p,layout:u})))}return t}),{});return d},CP=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=lm(u,i),p={};return f&&f.length?p=_P(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=bP(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=KO(u,i),h=-1;return n.reduce((function(e,t){var g,y=t.props[o];return e[y]?e:(h++,d?g=HA(0,p):a&&a[y]&&a[y].hasStack?(g=iS(a[y].stackGroups,s,c),g=GM(l,g,y,i)):(g=sS(r.defaultProps.domain,VO(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=GM(l,g,y,i)),pP(pP({},e),{},dP({},y,pP(pP({axisType:i},r.defaultProps),{},{hide:!0,orientation:ac(hP,"".concat(i,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:d,layout:u}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},OP=function(e){var t=e.children,n=e.defaultShowTooltip,r=fm(t,oT.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Wf(n)&&n}},SP=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"}},kP=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=fm(u,oT.displayName),p=fm(u,Kf.displayName),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,ac(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=pP(pP({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||oT.defaultProps.height),p&&t&&(g=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),c=UO({children:i,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Cf(e[f])&&(u=LO(LO({},e),{},NO({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Cf(e[p])&&(u=LO(LO({},e),{},NO({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),pP(pP({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},EP=function(e){var t,n,r=e.chartName,o=e.GraphicalChild,s=e.defaultTooltipEventType,u=void 0===s?"axis":s,l=e.validateTooltipEventTypes,f=void 0===l?["axis"]:l,p=e.axisComponents,d=e.legendContent,h=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,l=e.barGap,f=e.barCategoryGap,d=e.maxBarSize,h=SP(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=am(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 i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var c=r[o[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 am(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];i[v]||(i[v]=[]),i[v].push({item:g[0],stackList:g.slice(1),barSize:Wf(y)?t:y})}}return i}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=bP(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")],O=p.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=o&&o[a];return pP(pP({},e),{},(dP(i={},r.axisType,s),dP(i,"".concat(r.axisType,"Ticks"),$O(s)),i))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Of(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[_].stackGroups),A=am(n.type).indexOf("Bar")>=0,T=cS(S,k),j=[];if(A){var M,P,D=Wf(x)?d:x,I=null!==(M=null!==(P=cS(S,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;j=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var c,u=Ef(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/s,p=o.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=o.reduce((function(e,t){var n=[].concat(DO(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=Ef(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=o.reduce((function(e,t,n){var r=[].concat(DO(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:l,barCategoryGap:f,bandSize:I!==T?I:T,sizeList:m[C],maxBarSize:D}),I!==T&&(j=j.map((function(e){return pP(pP({},e),{},{position:pP(pP({},e.position),{},{offset:e.position.offset-I/2})})})))}var R,L,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:pP(pP({},B(pP(pP({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:T,barPosition:j,offset:i,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(c)},dP(R,g,O[g]),dP(R,y,O[y]),dP(R,"animationId",o),R)),childIndex:(L=n,N=e.children,um(N).indexOf(L)),item:n})})),b},m=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!pm({props:n}))return null;var c=n.children,u=n.layout,l=n.stackOffset,f=n.data,d=n.reverseStackOrder,g=SP(u),v=g.numericAxisName,m=g.cateAxisName,b=lm(c,o),w=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Of(o)){var c=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[o]=c}else s.stackGroups[kf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return LO(LO({},e),{},NO({},a,s))}),{});return Object.keys(a).reduce((function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,o){var a=s.stackGroups[o];return LO(LO({},t),{},NO({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:QO(e,a.items,i)}))}),{})),LO(LO({},t),{},NO({},o,s))}),{})}(f,b,"".concat(v,"Id"),"".concat(m,"Id"),l,d),x=p.reduce((function(e,t){var r="".concat(t.axisType,"Map");return pP(pP({},e),{},dP({},r,CP(n,pP(pP({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=kP(pP(pP({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=h(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Af(S),{tooltipTicks:O=$O(C,!1,!0),orderedTooltipTicks:sg(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:cS(C,O)}),E=y(n,pP(pP({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return pP(pP({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return n=t=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&&rP(e,t)}(l,w);var t,n,o,s=iP(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!Wf(t.deferId)&&mP&&mP(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(pP({legendBBox:e},m({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},pP(pP({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=vP&&vP(t.applySyncEvent.bind(aP(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return pP({dataStartIndex:n,dataEndIndex:r},m({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?pP(pP({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&br(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),br(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=function(e){var t=e&&e.type;return t&&om[t]?om[t]:null}(e),r=ac(t.props,"".concat(n));n&&br(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;br(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;br(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return $O(e,!0)},t.renderCursor=function(e){var n=t.state,i=n.isTooltipActive,o=n.activeCoordinate,s=n.activePayload,u=n.offset,l=n.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==f)return null;var p,d=t.props.layout,h=vk;if("ScatterChart"===r)p=o,h=aE;else if("BarChart"===r)p=t.getCursorRectangle(),h=Ak;else if("radial"===d){var g=t.getCursorPoints(),y=g.cx,m=g.cy,b=g.radius;p={cx:y,cy:m,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:b,outerRadius:b},h=tk}else p={points:t.getCursorPoints()},h=vk;var w=e.key||"_recharts-cursor",x=pP(pP(pP(pP({stroke:"#ccc",pointerEvents:"none"},u),p),$n(e.props.cursor)),{},{payload:s,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return v(e.props.cursor)?c(e.props.cursor,x):a(h,x)},t.renderPolarAxis=function(e,n,r){var i=ac(e,"type.axisType"),o=ac(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return c(e,pP(pP({},o),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:$O(o,!0)}))},t.renderXAxis=function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)},t.renderYAxis=function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,s=a.width,u=a.height,l=Af(r),f=UM(i,(function(e){return xT(e.domain,yP)}))||Af(i),p=e.props||{};return c(e,{key:e.key||"grid",x:Cf(p.x)?p.x:o.left,y:Cf(p.y)?p.y:o.top,width:Cf(p.width)?p.width:o.width,height:Cf(p.height)?p.height:o.height,xAxis:l,yAxis:f,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,s=a.radiusAxisMap,u=a.angleAxisMap,l=Af(s),f=Af(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return c(e,{polarAngles:xo(i)?i:$O(f,!0).map((function(e){return e.coordinate})),polarRadius:xo(o)?o:$O(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},s=i-(a.left||0)-(a.right||0),u=UO({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!u)return null;var l=u.item,f=tP(u,["item"]);return c(l,pP(pP({},f),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=fm(e,Rg.displayName);if(!n)return null;var r=t.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,u=r.offset;return c(n,{viewBox:pP(pP({},u),{},{x:u.left,y:u.top}),active:i,label:s,payload:i?a:[],coordinate:o})},t.renderBrush=function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return c(e,{key:e.key||"_recharts-brush",onChange:qO(t.handleBrushChange,null,e.props.onChange),data:i,x:Cf(e.props.x)?e.props.x:a.left,y:Cf(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Cf(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var i=aP(t).clipPathId,o=t.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return c(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[f],yAxis:s[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=pP(pP({index:i,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:zO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},$n(u)),qn(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,pP(pP({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,f=a.activeLabel,p=t.props.children,d=fm(p,Rg.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&s&&d&&b&&l>=0,x={};"axis"!==o&&d&&"click"===d.props.trigger?x={onClick:qO(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:qO(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:qO(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=c(e,pP(pP({},i.props),x));if(w){var C,O;if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=jf(g,S,f),O=y&&v&&jf(v,S,f)}else C=g[l],O=y&&v&&v[l];if(!Wf(C))return[_].concat(cP(t.renderActivePoints({item:i,activePoint:C,basePoint:O,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},t.renderCustomized=function(e,n,r){return c(e,pP(pP({key:"recharts-customized-".concat(r)},t.props),t.state))},t.uniqueChartId=Wf(e.id)?kf("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=KM(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=l,n=[{key:"componentDidMount",value:function(){Wf(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Wf(e.syncId)&&!Wf(this.props.syncId)&&this.addListener(),!Wf(e.syncId)&&Wf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Wf(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=fm(this.props.children,Rg.displayName);if(e&&qM(e.props.shared)){var t=e.props.shared?"axis":"item";return f.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,i=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})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=Af(s).scale,l=Af(c).scale,f=u&&u.invert?u.invert(i.chartX):null,p=l&&l.invert?l.invert(i.chartY):null;return pP(pP({},i),{},{xValue:f,yValue:p})}var d=xP(this.state,this.props.data,this.props.layout,o);return d?pP(pP({},i),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Wf(a.cx)||!Wf(a.cy)){if("centric"!==i){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[mS(c,u,l,f),mS(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=mS(d,h,g,v),b=mS(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 i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Af(o);return CS({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=fm(e,Rg.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}),pP(pP({},qn(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){YM.on(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners+1)}},{key:"removeListener",value:function(){YM.removeListener(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Wf(t)||YM.emit(XM,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Wf(e.dataStartIndex)&&Wf(e.dataEndIndex))if(Wf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,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=pP(pP({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),y=Math.min(c,h.y+h.height),v=p[u]&&p[u].value,b=wP(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:gP;this.setState(pP(pP({},e),{},{activeLabel:v,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(pP({dataStartIndex:o,dataEndIndex:a},m({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===am(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,a=o.width,s=o.height;return i.createElement(lj,eP({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return i.createElement("defs",null,i.createElement("clipPath",{id:e},i.createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.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 i=t[n],o=i.props,a=i.item,s=am(a.type);if("Bar"===s){var c=(o.data||[]).find((function(t){return Ek(e,t)}));if(c)return{graphicalItem:i,payload:c}}else if("RadialBar"===s){var u=(o.data||[]).find((function(t){return CS(e,t)}));if(u)return{graphicalItem:i,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!pm(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,a=t.height,s=t.style,c=t.compact,u=t.title,l=t.desc,f=tP(t,["children","className","width","height","style","compact","title","desc"]),p=$n(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 i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d));var h=this.parseEventsOfWrapper();return i.createElement("div",eP({className:zn("recharts-wrapper",r),style:pP({position:"relative",cursor:"default",width:o,height:a},s)},h,{ref:function(t){e.container=t}}),i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d)),this.renderLegend(),this.renderTooltip())}}],n&&nP(t.prototype,n),o&&nP(t,o),l}(),t.displayName=r,t.defaultProps=pP({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g),t.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(Wf(t.updateId)){var u=OP(e);return pP(pP(pP({},u),{},{updateId:0},m(pP(pP({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!rm(c,t.prevMargin)){var l=OP(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=pP(pP({},xP(t,n,a)),{},{updateId:t.updateId+1}),d=pP(pP(pP({},l),f),p);return pP(pP(pP({},d),m(pP({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!hm(r,t.prevChildren)){var h=!Wf(n)?t.updateId:t.updateId+1;return pP(pP({updateId:h},m(pP(pP({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},t.renderActiveDot=function(e,t){var n;return n=v(e)?c(e,t):br(e)?e(t):i.createElement(Xk,t),i.createElement(er,{className:"recharts-active-dot",key:t.key},n)},n};EP({chartName:"LineChart",GraphicalChild:Vj,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT});var AP=EP({chartName:"BarChart",GraphicalChild:gM,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),TP=EP({chartName:"PieChart",GraphicalChild:sA,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var jP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},MP=CT,PP=xr,DP=Object.prototype.hasOwnProperty;var IP=function(e,t,n){var r=e[t];DP.call(e,t)&&PP(r,n)&&(void 0!==n||t in e)||MP(e,t,n)},RP=IP,LP=CT;var NP=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?LP(n,s,c):RP(n,s,c)}return n},BP=NP,FP=Aa;var zP=function(e,t){return e&&BP(t,FP(t),e)};var UP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},HP=Un,VP=ga,KP=UP,WP=Object.prototype.hasOwnProperty;var $P=function(e){if(!HP(e))return KP(e);var t=VP(e),n=[];for(var r in e)("constructor"!=r||!t&&WP.call(e,r))&&n.push(r);return n},qP=da,GP=$P,ZP=Oa;var YP=function(e){return ZP(e)?qP(e,!0):GP(e)},XP=NP,JP=YP;var QP=function(e,t){return e&&XP(t,JP(t),e)},eD={exports:{}};!function(e,t){var n=ir,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.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}}(eD,eD.exports);var tD=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},nD=NP,rD=Po;var iD=function(e,t){return nD(e,rD(e),t)},oD=wo,aD=UE,sD=Po,cD=ko,uD=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oD(t,sD(e)),e=aD(e);return t}:cD,lD=NP,fD=uD;var pD=function(e,t){return lD(e,fD(e),t)},dD=Oo,hD=uD,gD=YP;var yD=function(e){return dD(e,gD,hD)},vD=Object.prototype.hasOwnProperty;var mD=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vD.call(e,"index")&&(n.index=e.index,n.input=e.input),n},bD=co;var wD=function(e){var t=new e.constructor(e.byteLength);return new bD(t).set(new bD(e)),t},xD=wD;var _D=function(e,t){var n=t?xD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},CD=/\w*$/;var OD=function(e){var t=new e.constructor(e.source,CD.exec(e));return t.lastIndex=e.lastIndex,t},SD=or?or.prototype:void 0,kD=SD?SD.valueOf:void 0;var ED=wD;var AD=wD,TD=_D,jD=OD,MD=function(e){return kD?Object(kD.call(e)):{}},PD=function(e,t){var n=t?ED(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var DD=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return AD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return TD(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 PD(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 jD(e);case"[object Symbol]":return MD(e)}},ID=Un,RD=Object.create,LD=function(){function e(){}return function(t){if(!ID(t))return{};if(RD)return RD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ND=LD,BD=UE,FD=ga;var zD=function(e){return"function"!=typeof e.constructor||FD(e)?{}:ND(BD(e))},UD=Ja,HD=Io;var VD=function(e){return HD(e)&&"[object Map]"==UD(e)},KD=Qo,WD=ea.exports,$D=WD&&WD.isMap,qD=$D?KD($D):VD,GD=Ja,ZD=Io;var YD=function(e){return ZD(e)&&"[object Set]"==GD(e)},XD=Qo,JD=ea.exports,QD=JD&&JD.isSet,eI=QD?XD(QD):YD,tI=Yi,nI=jP,rI=IP,iI=zP,oI=QP,aI=eD.exports,sI=tD,cI=iD,uI=pD,lI=Pa,fI=yD,pI=Ja,dI=mD,hI=DD,gI=zD,yI=xo,vI=Vo.exports,mI=qD,bI=Un,wI=eI,xI=Aa,_I=YP,CI={};CI["[object Arguments]"]=CI["[object Array]"]=CI["[object ArrayBuffer]"]=CI["[object DataView]"]=CI["[object Boolean]"]=CI["[object Date]"]=CI["[object Float32Array]"]=CI["[object Float64Array]"]=CI["[object Int8Array]"]=CI["[object Int16Array]"]=CI["[object Int32Array]"]=CI["[object Map]"]=CI["[object Number]"]=CI["[object Object]"]=CI["[object RegExp]"]=CI["[object Set]"]=CI["[object String]"]=CI["[object Symbol]"]=CI["[object Uint8Array]"]=CI["[object Uint8ClampedArray]"]=CI["[object Uint16Array]"]=CI["[object Uint32Array]"]=!0,CI["[object Error]"]=CI["[object Function]"]=CI["[object WeakMap]"]=!1;var OI=function e(t,n,r,i,o,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!bI(t))return t;var f=yI(t);if(f){if(s=dI(t),!c)return sI(t,s)}else{var p=pI(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(vI(t))return aI(t,c);if("[object Object]"==p||"[object Arguments]"==p||d&&!o){if(s=u||d?{}:gI(t),!c)return u?uI(t,oI(s,t)):cI(t,iI(s,t))}else{if(!CI[p])return o?t:{};s=hI(t,p,c)}}a||(a=new tI);var h=a.get(t);if(h)return h;a.set(t,s),wI(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):mI(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=f?void 0:(l?u?fI:lI:u?_I:xI)(t);return nI(g||t,(function(i,o){g&&(i=t[o=i]),rI(s,o,e(i,n,r,o,t,a))})),s},SI=ic,kI=uu;var EI=function(e,t){return t.length<2?e:SI(e,kI(t,0,-1))},AI=Qs,TI=IS,jI=EI,MI=tc;var PI=function(e,t){return t=AI(t,e),null==(e=jI(e,t))||delete e[MI(TI(t))]},DI=YE;var II=dh;var RI=function(e){return(null==e?0:e.length)?II(e,1):[]},LI=RI,NI=zh,BI=Zh;var FI=zs,zI=OI,UI=PI,HI=Qs,VI=NP,KI=function(e){return DI(e)?void 0:e},WI=yD,$I=function(e){return BI(NI(e,void 0,LI),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=FI(t,(function(t){return t=HI(t,e),r||(r=t.length>1),t})),VI(e,WI(e),n),r&&(n=zI(n,7,KI));for(var i=t.length;i--;)UI(n,t[i]);return n})),qI=$I;function GI(e){return GI="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},GI(e)}function ZI(){return ZI=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},ZI.apply(this,arguments)}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XI(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 JI(e,t){return JI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},JI(e,t)}function QI(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=tR(e);if(t){var i=tR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eR(this,n)}}function eR(e,t){return!t||"object"!==GI(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 tR(e){return tR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tR(e)}Math.sqrt(5),_g.isSsr,_g.isSsr,EP({chartName:"RadarChart",GraphicalChild:_A,axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ScatterChart",GraphicalChild:AM,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT}),EP({chartName:"AreaChart",GraphicalChild:nM,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),EP({chartName:"RadialBarChart",GraphicalChild:IA,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ComposedChart",GraphicalChild:[Vj,nM,gM,AM],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT});var nR=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},rR=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&&JI(e,t)}(a,m);var t,n,r,o=QI(a);function a(){var e;YI(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{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,t=this.props,n=t.x,r=t.y,o=t.upperWidth,a=t.lowerWidth,s=t.height,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||s!==+s||0===o&&0===a||0===s)return null;var g=zn("recharts-trapezoid",c);return h?i.createElement(Cd,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:o,lowerWidth:a,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,a=t.x,s=t.y;return i.createElement(Cd,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},i.createElement("path",ZI({},$n(e.props,!0),{className:g,d:nR(a,s,n,r,o),ref:function(t){e.node=t}})))})):i.createElement("g",null,i.createElement("path",ZI({},$n(this.props,!0),{className:g,d:nR(n,r,o,a,s)})))}}],n&&XI(t.prototype,n),r&&XI(t,r),a}();function iR(e){return iR="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},iR(e)}function oR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aR(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 aR(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 aR(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 sR(){return sR=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},sR.apply(this,arguments)}function cR(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 uR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(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 dR(e,t){return dR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dR(e,t)}function hR(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=yR(e);if(t){var i=yR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gR(this,n)}}function gR(e,t){return!t||"object"!==iR(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 yR(e){return yR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yR(e)}rR.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var vR=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&&dR(e,t)}(a,m);var t,n,r,o=hR(a);function a(){var e;fR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{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 t=this,n=this.props.activeShape;return e.map((function(e,r){var o=t.isActiveIndex(r)?n:null,s=uR(uR({},e),{},{stroke:e.stroke});return i.createElement(er,sR({className:"recharts-funnel-trapezoid"},Gn(t.props,e,r),{key:"trapezoid-".concat(r)}),a.renderTrapezoidItem(o,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevTrapezoids;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.x,e.x),o=Tf(n.y,e.y),a=Tf(n.upperWidth,e.upperWidth),s=Tf(n.lowerWidth,e.lowerWidth),c=Tf(n.height,e.height);return uR(uR({},e),{},{x:i(r),y:o(r),upperWidth:a(r),lowerWidth:s(r),height:c(r)})}var l=Tf(e.x+e.upperWidth/2,e.x),f=Tf(e.y+e.height/2,e.y),p=Tf(0,e.upperWidth),d=Tf(0,e.lowerWidth),h=Tf(0,e.height);return uR(uR({},e),{},{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:d(r),height:h(r)})}));return i.createElement(er,null,e.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,o=e.isAnimationActive,a=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var s=zn("recharts-trapezoids",r);return i.createElement(er,{className:s},this.renderTrapezoids(),(!o||a)&&VS.renderCallByParent(this.props,n))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(rR,sR({},t,e)):i.createElement(rR,t)}}],n&&pR(t.prototype,n),r&&pR(t,r),a}();vR.displayName="Funnel",vR.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},vR.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return uR(uR(uR({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return uR(uR({},i),e.props)})):[]},vR.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,s=t.top,c=t.bottom,u=i,l=r;return hf(n)?l=n:wf(n)&&(l=l*parseFloat(n)/100),{realWidth:l-o-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(i-u)/2}},vR.getComposedData=function(e){var t=e.item,n=e.offset,r=vR.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,s=i.tooltipType,c=i.lastShapeType,u=i.reversed,l=n.left,f=n.top,p=vR.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 BO(e,o,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,i=BO(e,o,0),u=BO(e,a,t),p=i;if(t!==m-1)(n=BO(r[t+1],o,0))instanceof Array&&(n=oR(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=oR(i,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,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:o,type:s}],k={x:x+C/2,y:_+b/2};return uR(uR({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},qI(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-O)/4,y:_,width:Math.abs(C-O)/2+Math.min(C,O),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return uR(uR({},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:uR(uR({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:uR(uR({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},EP({chartName:"FunnelChart",GraphicalChild:vR,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const mR=()=>e(k,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),bR=n=>{var{width:r,height:i,data:o,dataKey:a}=n,s=T(n,["width","height","data","dataKey"]);const{scale2:c,color:u}=S();return t(wR,Object.assign({},s,{style:{border:"1px solid"}},{children:[e(mR,{}),t(AP,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:i,data:o},{children:[e(Cj,{stroke:c,strokeDasharray:"3 5",vertical:!1}),e(TM,{stroke:c,dataKey:"name",tickMargin:4}),e(jM,{stroke:c,tickMargin:4}),e(Rg,{}),e(gM,{barSize:16,dataKey:a,fill:u.brand})]}))]}))},wR=de.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));function xR(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 _R(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CR(e){_R(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function OR(e,t){_R(2,arguments);var n=CR(e),r=xR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function SR(e,t){_R(2,arguments);var n=CR(e),r=xR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function kR(e,t){if(_R(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?xR(t.years):0,r=t.months?xR(t.months):0,i=t.weeks?xR(t.weeks):0,o=t.days?xR(t.days):0,a=t.hours?xR(t.hours):0,s=t.minutes?xR(t.minutes):0,c=t.seconds?xR(t.seconds):0,u=CR(e),l=r||n?SR(u,r+12*n):u,f=o||i?OR(l,o+7*i):l,p=s+60*a,d=c+60*p,h=1e3*d,g=new Date(f.getTime()+h);return g}function ER(e,t){_R(2,arguments);var n=CR(e).getTime(),r=xR(t);return new Date(n+r)}var AR={};function TR(){return AR}function jR(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 MR(e){_R(1,arguments);var t=CR(e);return t.setHours(0,0,0,0),t}function PR(e,t){_R(2,arguments);var n=MR(e),r=MR(t),i=n.getTime()-jR(n),o=r.getTime()-jR(r);return Math.round((i-o)/864e5)}function DR(e,t){_R(2,arguments);var n=MR(e),r=MR(t);return n.getTime()===r.getTime()}function IR(e){return _R(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function RR(e){if(_R(1,arguments),!IR(e)&&"number"!=typeof e)return!1;var t=CR(e);return!isNaN(Number(t))}function LR(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 NR(e,t){_R(2,arguments);var n=CR(e),r=CR(t),i=LR(n,r),o=Math.abs(PR(n,r));n.setDate(n.getDate()-i*o);var a=Number(LR(n,r)===-i),s=i*(o-a);return 0===s?0:s}function BR(e,t){return _R(2,arguments),CR(e).getTime()-CR(t).getTime()}var FR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function zR(e){return e?FR[e]:FR.trunc}function UR(e,t){_R(2,arguments);var n=xR(t);return ER(e,-n)}function HR(e){_R(1,arguments);var t=1,n=CR(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function VR(e){_R(1,arguments);var t=CR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=HR(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=HR(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function KR(e){_R(1,arguments);var t=VR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=HR(n);return r}function WR(e){_R(1,arguments);var t=CR(e),n=HR(t).getTime()-KR(t).getTime();return Math.round(n/6048e5)+1}function $R(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=TR(),f=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i: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=CR(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 qR(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=CR(e),f=l.getUTCFullYear(),p=TR(),d=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i: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=$R(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=$R(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function GR(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=TR(),f=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i: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=qR(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=$R(d,t);return h}function ZR(e,t){_R(1,arguments);var n=CR(e),r=$R(n,t).getTime()-GR(n,t).getTime();return Math.round(r/6048e5)+1}function YR(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var XR=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return YR("yy"===t?r%100:r,t.length)},JR=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):YR(n+1,2)},QR=function(e,t){return YR(e.getUTCDate(),t.length)},eL=function(e,t){return YR(e.getUTCHours()%12||12,t.length)},tL=function(e,t){return YR(e.getUTCHours(),t.length)},nL=function(e,t){return YR(e.getUTCMinutes(),t.length)},rL=function(e,t){return YR(e.getUTCSeconds(),t.length)},iL=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return YR(Math.floor(r*Math.pow(10,n-3)),t.length)},oL="midnight",aL="noon",sL="morning",cL="afternoon",uL="evening",lL="night",fL={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return XR(e,t)},Y:function(e,t,n,r){var i=qR(e,r),o=i>0?i:1-i;return"YY"===t?YR(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):YR(o,t.length)},R:function(e,t){return YR(VR(e),t.length)},u:function(e,t){return YR(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 YR(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 YR(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 JR(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 YR(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=ZR(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):YR(i,t.length)},I:function(e,t,n){var r=WR(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):YR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):QR(e,t)},D:function(e,t,n){var r=function(e){_R(1,arguments);var t=CR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):YR(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return YR(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return YR(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return YR(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?aL:0===i?oL:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?uL:i>=12?cL:i>=4?sL:lL,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 eL(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tL(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):YR(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):YR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):nL(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):rL(e,t)},S:function(e,t){return iL(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return dL(i);case"XXXX":case"XX":return hL(i);default:return hL(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return dL(i);case"xxxx":case"xx":return hL(i);default:return hL(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pL(i,":");default:return"GMT"+hL(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pL(i,":");default:return"GMT"+hL(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return YR(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return YR((r._originalDate||e).getTime(),t.length)}};function pL(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+YR(o,2)}function dL(e,t){return e%60==0?(e>0?"-":"+")+YR(Math.abs(e)/60,2):hL(e,t)}function hL(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+YR(Math.floor(i/60),2)+n+YR(i%60,2)}var gL=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"})}},yL=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"})}},vL={p:yL,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return gL(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",gL(i,t)).replace("{{time}}",yL(o,t))}},mL=["D","DD"],bL=["YY","YYYY"];function wL(e){return-1!==mL.indexOf(e)}function xL(e){return-1!==bL.indexOf(e)}function _L(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 CL={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 OL(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 SL={date:OL({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:OL({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:OL({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function EL(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}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 AL={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:EL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:EL({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:EL({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:EL({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:EL({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 TL(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?ML(c,(function(e){return e.test(s)})):jL(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 jL(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ML(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var PL,DL={ordinalNumber:(PL={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(PL.matchPattern);if(!n)return null;var r=n[0],i=e.match(PL.parsePattern);if(!i)return null;var o=PL.valueCallback?PL.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:TL({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:TL({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:TL({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:TL({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:TL({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"})},IL={code:"en-US",formatDistance:function(e,t,n){var r,i=CL[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:SL,formatRelative:function(e,t,n,r){return kL[e]},localize:AL,match:DL,options:{weekStartsOn:0,firstWeekContainsDate:1}},RL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NL=/^'([^]*?)'?$/,BL=/''/g,FL=/[a-zA-Z]/;function zL(e,t,n){var r,i,o,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;_R(2,arguments);var x=String(t),_=TR(),C=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:_.locale)&&void 0!==r?r:IL,O=xR(null!==(o=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!==o?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=xR(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(!(S>=0&&S<=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=CR(e);if(!RR(k))throw new RangeError("Invalid time value");var E=jR(k),A=UR(k,E),T={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},j=x.match(LL).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,vL[t])(e,C.formatLong):e})).join("").match(RL).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return UL(r);var o=fL[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!xL(r)||_L(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!wL(r)||_L(r,t,String(e)),o(A,r,C.localize,T);if(i.match(FL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return j}function UL(e){var t=e.match(NL);return t?t[1].replace(BL,"'"):e}function HL(e){_R(1,arguments);var t=CR(e),n=t.getDate();return n}function VL(e){_R(1,arguments);var t=CR(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function KL(e){_R(1,arguments);var t=CR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function WL(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getTime()>r.getTime()}function $L(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getTime()<r.getTime()}function qL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class GL extends class{constructor(){qL(this,"priority",void 0),qL(this,"subPriority",0)}validate(e,t){return!0}}{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}function ZL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class YL{constructor(){ZL(this,"incompatibleTokens",void 0),ZL(this,"priority",void 0),ZL(this,"subPriority",void 0)}run(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new GL(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}function XL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JL=/^(1[0-2]|0?\d)/,QL=/^(3[0-1]|[0-2]?\d)/,eN=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,tN=/^(5[0-3]|[0-4]?\d)/,nN=/^(2[0-3]|[0-1]?\d)/,rN=/^(2[0-4]|[0-1]?\d)/,iN=/^(1[0-1]|0?\d)/,oN=/^(1[0-2]|0?\d)/,aN=/^[0-5]?\d/,sN=/^[0-5]?\d/,cN=/^\d/,uN=/^\d{1,2}/,lN=/^\d{1,3}/,fN=/^\d{1,4}/,pN=/^-?\d+/,dN=/^-?\d/,hN=/^-?\d{1,2}/,gN=/^-?\d{1,3}/,yN=/^-?\d{1,4}/,vN=/^([+-])(\d{2})(\d{2})?|Z/,mN=/^([+-])(\d{2})(\d{2})|Z/,bN=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,wN=/^([+-])(\d{2}):(\d{2})|Z/,xN=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function _N(e,t){return e?{value:t(e.value),rest:e.rest}:e}function CN(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ON(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function SN(e){return CN(pN,e)}function kN(e,t){switch(e){case 1:return CN(cN,t);case 2:return CN(uN,t);case 3:return CN(lN,t);case 4:return CN(fN,t);default:return CN(new RegExp("^\\d{1,"+e+"}"),t)}}function EN(e,t){switch(e){case 1:return CN(dN,t);case 2:return CN(hN,t);case 3:return CN(gN,t);case 4:return CN(yN,t);default:return CN(new RegExp("^-?\\d{1,"+e+"}"),t)}}function AN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function TN(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function jN(e){return e%400==0||e%4==0&&e%100!=0}function MN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HN=[31,28,31,30,31,30,31,31,30,31,30,31],VN=[31,29,31,30,31,30,31,31,30,31,30,31];function KN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WN(e,t,n){var r,i,o,a,s,c,u,l;_R(2,arguments);var f=TR(),p=xR(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==i?i:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=CR(e),h=xR(t),g=d.getUTCDay(),y=h%7,v=(y+7)%7,m=(v<p?7:0)+h-g;return d.setUTCDate(d.getUTCDate()+m),d}function $N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getFullYear()===r.getFullYear()}function fB(e,t){_R(2,arguments);var n=xR(t);return OR(e,-n)}function pB(e,t){_R(2,arguments);var n=CR(e),r=xR(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=VL(a);return n.setMonth(r,Math.min(o,s)),n}function dB(e,t){_R(2,arguments);var n=CR(e),r=xR(t);return n.setDate(r),n}function hB(e,t){_R(2,arguments);var n=xR(t);return SR(e,-n)}function gB(e,t){if(_R(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?xR(t.years):0,r=t.months?xR(t.months):0,i=t.weeks?xR(t.weeks):0,o=t.days?xR(t.days):0,a=t.hours?xR(t.hours):0,s=t.minutes?xR(t.minutes):0,c=t.seconds?xR(t.seconds):0,u=hB(e,r+12*n),l=fB(u,o+7*i),f=s+60*a,p=c+60*f,d=1e3*p,h=new Date(l.getTime()-d);return h}new class extends YL{constructor(){super(...arguments),XL(this,"priority",140),XL(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),MN(this,"priority",130),MN(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return _N(kN(4,e),r);case"yo":return _N(n.ordinalNumber(e,{unit:"year"}),r);default:return _N(kN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=TN(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),PN(this,"priority",130),PN(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return _N(kN(4,e),r);case"Yo":return _N(n.ordinalNumber(e,{unit:"year"}),r);default:return _N(kN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var i=qR(e,r);if(n.isTwoDigitYear){var o=TN(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$R(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$R(e,r)}},new class extends YL{constructor(){super(...arguments),DN(this,"priority",130),DN(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return EN("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),HR(r)}},new class extends YL{constructor(){super(...arguments),IN(this,"priority",130),IN(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return EN("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),RN(this,"priority",120),RN(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return kN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),LN(this,"priority",120),LN(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return kN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),NN(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),NN(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return _N(CN(JL,e),r);case"MM":return _N(kN(2,e),r);case"Mo":return _N(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),BN(this,"priority",110),BN(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return _N(CN(JL,e),r);case"LL":return _N(kN(2,e),r);case"Lo":return _N(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),FN(this,"priority",100),FN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return CN(tN,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return $R(function(e,t,n){_R(2,arguments);var r=CR(e),i=xR(t),o=ZR(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},new class extends YL{constructor(){super(...arguments),zN(this,"priority",100),zN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return CN(tN,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return HR(function(e,t){_R(2,arguments);var n=CR(e),r=xR(t),i=WR(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}},new class extends YL{constructor(){super(...arguments),UN(this,"priority",90),UN(this,"subPriority",1),UN(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return CN(QL,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return kN(t.length,e)}}validate(e,t){var n=jN(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=VN[r]:t>=1&&t<=HN[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),KN(this,"priority",90),KN(this,"subpriority",1),KN(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return CN(eN,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return kN(t.length,e)}}validate(e,t){return jN(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),$N(this,"priority",90),$N(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),qN(this,"priority",90),qN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return _N(kN(t.length,e),i);case"eo":return _N(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),GN(this,"priority",90),GN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return _N(kN(t.length,e),i);case"co":return _N(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),ZN(this,"priority",90),ZN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return kN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return _N(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return _N(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return _N(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return _N(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){_R(2,arguments);var n=xR(t);n%7==0&&(n-=7);var r=1,i=CR(e),o=i.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+a),i}(e,n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),YN(this,"priority",80),YN(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),XN(this,"priority",80),XN(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),JN(this,"priority",80),JN(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),QN(this,"priority",70),QN(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return CN(oN,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),eB(this,"priority",70),eB(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return CN(nN,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},new class extends YL{constructor(){super(...arguments),tB(this,"priority",70),tB(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return CN(iN,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},new class extends YL{constructor(){super(...arguments),nB(this,"priority",70),nB(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return CN(rN,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},new class extends YL{constructor(){super(...arguments),rB(this,"priority",60),rB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return CN(aN,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},new class extends YL{constructor(){super(...arguments),iB(this,"priority",50),iB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return CN(sN,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},new class extends YL{constructor(){super(...arguments),oB(this,"priority",30),oB(this,"incompatibleTokens",["t","T"])}parse(e,t){return _N(kN(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},new class extends YL{constructor(){super(...arguments),aB(this,"priority",10),aB(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return ON(vN,e);case"XX":return ON(mN,e);case"XXXX":return ON(bN,e);case"XXXXX":return ON(xN,e);default:return ON(wN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends YL{constructor(){super(...arguments),sB(this,"priority",10),sB(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return ON(vN,e);case"xx":return ON(mN,e);case"xxxx":return ON(bN,e);case"xxxxx":return ON(xN,e);default:return ON(wN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends YL{constructor(){super(...arguments),cB(this,"priority",40),cB(this,"incompatibleTokens","*")}parse(e){return SN(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},new class extends YL{constructor(){super(...arguments),uB(this,"priority",20),uB(this,"incompatibleTokens","*")}parse(e){return SN(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}};const yB=({date:n,onChange:r,preventPast:i,preventFuture:o,noShadow:a})=>{const{current:s}=f(n||new Date),[c,l]=u(s),[p,d]=u(s),[g,y]=u(),{calendar:v}=S(),m=e=>{const t=function(e,t){if(_R(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=CR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=pB(n,t.month)),null!=t.date&&n.setDate(xR(t.date)),null!=t.hours&&n.setHours(xR(t.hours)),null!=t.minutes&&n.setMinutes(xR(t.minutes)),null!=t.seconds&&n.setSeconds(xR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(xR(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},b=e=>{const t=dB(("prev"===e?gB:kR)(p,{months:1}),1),n=m(t);d(n)},w=(e,t,n)=>{const r="past"===n;let i;i="past"===n?KL(gB(e,{months:1})):dB("future"===n?kR(e,{months:1}):e,1);const o=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?gB:kR)(i,{days:e}),a=m(n);o[t](a)}return o},x=e=>{const t=function(e){return _R(1,arguments),CR(e).getDay()}(dB(e,1)),n=VL(e),r=42-(n+t),a=w(e,t,"past"),u=w(e,r,"future");return[...a,...w(e,n,"present"),...u].map((e=>{const t=m(s),n=i instanceof Date?m(i):t,r=o instanceof Date?m(o):t,a=m(KL(p)),u=m(dB(p,1));let l=!1;const f=$L(e,n),d=WL(e,r);(i&&f||o&&d)&&(l=!0);const h=WL(e,a)||$L(e,u),g=DR(e,s),y=DR(e,c);return{date:HL(e),fullDate:e,current:g,disabled:l,outside:h,active:y}}))};h((()=>{const e=x(p);y(e)}),[c,p]);return t(vB,Object.assign({noShadow:a},{children:[t(mB,{children:[e(bB,{children:zL(p,"MMMM Y")}),t(wB,{children:[e(xt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>b("prev"),hoverColor:v.color.iconHover}),e(xt,{name:"chevron-right",pointer:!0,onClick:()=>b("next"),hoverColor:v.color.iconHover})]})]}),e(CB,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e(OB,{children:t[0]},t)))}),e(xB,{children:(null==g?void 0:g.length)&&g.map((({date:t,fullDate:n,disabled:i,current:o,outside:a,active:s})=>e(_B,Object.assign({disabled:i,current:o,outside:a,active:s,onClick:()=>(e=>{l(e),r(e)})(n)},{children:t}),vt())))})]}))},vB=de.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"}))),mB=de.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),bB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),wB=de.div({display:"flex"}),xB=de.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),_B=de.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:i})=>({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:i?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"}})),CB=de.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),OB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),SB=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),kB=de.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`}}}))),EB=de.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),AB=n=>{var{id:r,label:i,labelPosition:o,checked:a,partial:s,disabled:c,onChange:l,margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v}=n,m=T(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=u("checkbox-off"),[x,_]=u(a||!1),C=f(null),O="right"===o,S={margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v};return h((()=>{w(s?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,s]),h((()=>{_("boolean"==typeof a?a:x)}),[a,x]),t(SB,Object.assign({htmlFor:r,labelRight:O,disabled:c},S,{children:[i&&e(EB,{children:i}),e(kB,Object.assign({ref:C,id:r,type:"checkbox",checked:s?!x:x,disabled:c,onChange:()=>{const e=!!s||!x;_(e),l(e),(null==C?void 0:C.current)&&(C.current.indeterminate=!!s)}},m)),e(xt,{name:b,marginLeft:i&&!O?8:0,marginRight:i&&O?8:0,pointer:!c})]}))};
|
|
200
|
+
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 i.lexer=o,a.prototype=i,i.Parser=a,new a}();e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)}}(gv);var yv={},vv={exports:{}},mv={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}},bv=function(e,t,n,r){if(!mv.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!mv[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=mv[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(bv);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}(vv,vv.exports),Object.defineProperty(yv,"__esModule",{value:!0}),yv.flip=Ov;var wv=function(e){return e&&e.__esModule?e:{default:e}}(vv.exports);function xv(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,wv.default)(e.left,e.right,t),r=xv(n.left,t),i=xv(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(_v(r.right,i.right)?n=(0,wv.default)(r.left,i.left,t):_v(r.right,i.left)&&(n=(0,wv.default)(r.left,i.right,t)),r=xv(n.left,t),i=xv(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return Sv(i);r.type===i.type&&Cv(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(Cv(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Ov(i.operator):i.operator,xv(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:"-"===o?Ov(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,xv(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Cv(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=xv({type:"MathExpression",operator:o,left:r.left,right:i},t),xv(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=xv({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=xv({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),xv(e,t)}return e}(e,t);case"/":return function(e,t){if(!Cv(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 Cv(e.left.left.type)&&Cv(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,xv(e.left,t)):e;if(Cv(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(Cv(e.left.left.type)&&Cv(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Cv(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(Cv(e.right.left.type)&&Cv(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&&Cv(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?xv(e.value,t):e}function _v(e,t){return e.type===t.type&&e.value===t.value}function Cv(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 Ov(e){return"+"===e?"-":"+"}function Sv(e){return Cv(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Sv(e.left),e.right=Sv(e.right)),e}yv.default=xv;var kv={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=yv,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(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+="("+o(a,t)+")":u+=o(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+o(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=o(s,t)):u+=o(s,t),u;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(kv,kv.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(hv),r=gv,i=a(yv),o=a(kv.exports);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,i.default)(c,t);e.type="word",e.value=(0,o.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(Jy,Jy.exports);var Ev=St(Jy.exports);function Av(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 Tv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mv(e){return function(e){if(Array.isArray(e))return Pv(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 Pv(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 Pv(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 Pv(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 Dv={widthCache:{},cacheCount:0},Iv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Rv=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Lv=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((o=n,o.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Mv(e),["-",t.toLowerCase()]):[].concat(Mv(e),[t])}),[]).join("")),":").concat((r=n,i=e[n],Rv.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},Nv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||_g.isSsr)return{width:0,height:0};var n="".concat(e),r=Lv(t),i="".concat(n,"-").concat(r);if(Dv.widthCache[i])return Dv.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Tv(Tv({},Iv),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Dv.widthCache[i]=c,++Dv.cacheCount>2e3&&(Dv.cacheCount=0,Dv.widthCache={}),c}catch(e){return{width:0,height:0}}};function Bv(e){return Bv="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},Bv(e)}function Fv(){return Fv=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},Fv.apply(this,arguments)}function zv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hv(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 Vv(e,t){return Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vv(e,t)}function Kv(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=$v(e);if(t){var i=$v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wv(this,n)}}function Wv(e,t){return!t||"object"!==Bv(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 $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$v(e)}function qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gv(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 Gv(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 Gv(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 Zv(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 Yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){Xv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jv=/[ \f\n\r\t\v\u2028\u2029]+/,Qv=function(e){try{var t=[];return Wf(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Jv)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Nv(t,e.style).width}})),spaceWidth:e.breakAll?0:Nv(" ",e.style).width}}catch(e){return null}},em=function(e){return[{words:Wf(e)?[]:e.toString().split(Jv)}]},tm=function(e,t){if((e.width||e.scaleToFit)&&!_g.isSsr&&t){var n=Qv(e);return n?function(e,t,n,r,i){var o=Cf(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||i||s.width+a+n<r))s.words.push(o),s.width+=a+n;else{var c={words:[o],width:a};e.push(c)}return e}),[])},c=s(t);if(!o)return c;for(var u,l=function(t){var n=a.slice(0,t),i=Qv(Yv(Yv({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=s(i),c=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[c,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=qv(l(h-1),2),y=g[0],v=g[1],m=qv(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):em(e.children)}return em(e.children)},nm=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&&Vv(e,t)}(a,w);var t,n,r,o=Kv(a);function a(){var e;Uv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={},e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,a=e.scaleToFit,s=e.angle,c=e.lineHeight,u=e.capHeight,l=e.className,f=e.breakAll,p=zv(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),d=this.state.wordsByLines;if(!Of(p.x)||!Of(p.y))return null;var h,g=p.x+(Cf(t)?t:0),y=p.y+(Cf(n)?n:0);switch(o){case"start":h=Ev("calc(".concat(u,")"));break;case"middle":h=Ev("calc(".concat((d.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:h=Ev("calc(".concat(d.length-1," * -").concat(c,")"))}var v=[];if(a){var m=d[0].width,b=this.props.width;v.push("scale(".concat((Cf(b)?b/m:1)/m,")"))}return s&&v.push("rotate(".concat(s,", ").concat(g,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),i.createElement("text",Fv({},$n(p,!0),{x:g,y:y,className:zn("recharts-text",l),textAnchor:r}),d.map((function(e,t){return i.createElement("tspan",{x:g,dy:0===t?h:c,key:t},e.words.join(f?"":" "))})))}}],r=[{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:tm(e,n)}}return null}}],n&&Hv(t.prototype,n),r&&Hv(t,r),a}();function rm(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 im(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}nm.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var om={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},am=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},sm=null,cm=null,um=function e(t){if(t===sm&&xo(cm))return cm;var n=[];return g.forEach(t,(function(t){Wf(t)||(Tt.exports.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),cm=n,sm=t,n},lm=function(e,t){var n=[],r=[];return r=xo(t)?t.map((function(e){return am(e)})):[am(t)],um(e).forEach((function(e){var t=ac(e,"type.displayName")||ac(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},fm=function(e,t){var n=lm(e,t);return n&&n[0]},pm=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Cf(n)||n<=0||!Cf(r)||r<=0)},dm=["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"],hm=function e(t,n){if(t===n)return!0;var r=g.count(t);if(r!==g.count(n))return!1;if(0===r)return!0;if(1===r)return gm(xo(t)?t[0]:t,xo(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(xo(o)||xo(a)){if(!e(o,a))return!1}else if(!gm(o,a))return!1}return!0},gm=function(e,t){if(Wf(e)&&Wf(t))return!0;if(!Wf(e)&&!Wf(t)){var n=e.props||{},r=n.children,i=im(n,["children"]),o=t.props||{},a=o.children,s=im(o,["children"]);return r&&a?rm(i,s)&&hm(r,a):!r&&!a&&rm(i,s)}return!1},ym=function(e,t){var n=[],r={};return um(e).forEach((function(e,i){if(function(e){return e&&e.type&&wf(e.type)&&dm.indexOf(e.type)>=0}(e))n.push(e);else if(e){var o=am(e.type),a=t[o]||{},s=a.handler,c=a.once;if(s&&(!c||!r[o])){var u=s(e,o,i);n.push(u),r[o]=!0}}})),n},vm=fs;var mm=function(e,t){return vm(e,t)},bm=Es;var wm=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!bm(a):n(a,s)))var s=a,c=o}return c};var xm=function(e,t){return e>t},_m=wm,Cm=xm,Om=kc;var Sm=function(e){return e&&e.length?_m(e,Om,Cm):void 0};var km=function(e,t){return e<t},Em=wm,Am=km,Tm=kc;var jm=function(e){return e&&e.length?Em(e,Tm,Am):void 0},Mm=zs,Pm=zc,Dm=_h,Im=xo;var Rm=dh,Lm=function(e,t){return(Im(e)?Mm:Dm)(e,Pm(t))};var Nm,Bm=function(e,t){return Rm(Lm(e,t),1)},Fm=!0,zm="[DecimalError] ",Um=zm+"Invalid argument: ",Hm=zm+"Exponent out of range: ",Vm=Math.floor,Km=Math.pow,Wm=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$m=1e7,qm=Vm(1286742750677284.5),Gm={};function Zm(e,t){var n,r,i,o,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Fm?ob(t,f):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),o>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=u.length)<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/$m|0,c[o]%=$m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,Fm?ob(t,f):t}function Ym(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Um+e)}function Xm(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=nb(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=nb(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Gm.absoluteValue=Gm.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Gm.comparedTo=Gm.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},Gm.decimalPlaces=Gm.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},Gm.dividedBy=Gm.div=function(e){return Jm(this,new this.constructor(e))},Gm.dividedToIntegerBy=Gm.idiv=function(e){var t=this.constructor;return ob(Jm(this,new t(e),0,1),t.precision)},Gm.equals=Gm.eq=function(e){return!this.cmp(e)},Gm.exponent=function(){return eb(this)},Gm.greaterThan=Gm.gt=function(e){return this.cmp(e)>0},Gm.greaterThanOrEqualTo=Gm.gte=function(e){return this.cmp(e)>=0},Gm.isInteger=Gm.isint=function(){return this.e>this.d.length-2},Gm.isNegative=Gm.isneg=function(){return this.s<0},Gm.isPositive=Gm.ispos=function(){return this.s>0},Gm.isZero=function(){return 0===this.s},Gm.lessThan=Gm.lt=function(e){return this.cmp(e)<0},Gm.lessThanOrEqualTo=Gm.lte=function(e){return this.cmp(e)<1},Gm.logarithm=Gm.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Nm))throw Error(zm+"NaN");if(n.s<1)throw Error(zm+(n.s?"NaN":"-Infinity"));return n.eq(Nm)?new r(0):(Fm=!1,t=Jm(rb(n,o),rb(e,o),o),Fm=!0,ob(t,i))},Gm.minus=Gm.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ab(t,e):Zm(t,(e.s=-e.s,e))},Gm.modulo=Gm.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(zm+"NaN");return n.s?(Fm=!1,t=Jm(n,e,0,1).times(e),Fm=!0,n.minus(t)):ob(new r(n),i)},Gm.naturalExponential=Gm.exp=function(){return Qm(this)},Gm.naturalLogarithm=Gm.ln=function(){return rb(this)},Gm.negated=Gm.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Gm.plus=Gm.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Zm(t,e):ab(t,(e.s=-e.s,e))},Gm.precision=Gm.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Um+e);if(t=eb(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Gm.squareRoot=Gm.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zm+"NaN")}for(e=eb(s),Fm=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=Xm(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vm((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(Jm(s,o,a+2)).times(.5),Xm(o.d).slice(0,a)===(t=Xm(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(ob(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return Fm=!0,ob(r,n)},Gm.times=Gm.mul=function(e){var t,n,r,i,o,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)&&(o=p,p=d,d=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+d[r]*p[i-r-1]+t,o[i--]=s%$m|0,t=s/$m|0;o[i]=(o[i]+t)%$m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Fm?ob(e,f.precision):e},Gm.toDecimalPlaces=Gm.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Ym(e,0,1e9),void 0===t?t=r.rounding:Ym(t,0,8),ob(n,e+eb(n)+1,t))},Gm.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=sb(r,!0):(Ym(e,0,1e9),void 0===t?t=i.rounding:Ym(t,0,8),n=sb(r=ob(new i(r),e+1,t),!0,e+1)),n},Gm.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?sb(i):(Ym(e,0,1e9),void 0===t?t=o.rounding:Ym(t,0,8),n=sb((r=ob(new o(i),e+eb(i)+1,t)).abs(),!1,e+eb(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},Gm.toInteger=Gm.toint=function(){var e=this,t=e.constructor;return ob(new t(e),eb(e)+1,t.rounding)},Gm.toNumber=function(){return+this},Gm.toPower=Gm.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(Nm);if(!(s=new c(s)).s){if(e.s<1)throw Error(zm+"Infinity");return s}if(s.eq(Nm))return s;if(r=c.precision,e.eq(Nm))return ob(s,r);if(a=(t=e.e)>=(n=e.d.length-1),o=s.s,a){if((n=u<0?-u:u)<=9007199254740991){for(i=new c(Nm),t=Math.ceil(r/7+4),Fm=!1;n%2&&cb((i=i.times(s)).d,t),0!==(n=Vm(n/2));)cb((s=s.times(s)).d,t);return Fm=!0,e.s<0?new c(Nm).div(i):ob(i,r)}}else if(o<0)throw Error(zm+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Fm=!1,i=e.times(rb(s,r+12)),Fm=!0,(i=Qm(i)).s=o,i},Gm.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=sb(i,(n=eb(i))<=o.toExpNeg||n>=o.toExpPos):(Ym(e,1,1e9),void 0===t?t=o.rounding:Ym(t,0,8),r=sb(i=ob(new o(i),e,t),e<=(n=eb(i))||n<=o.toExpNeg,e)),r},Gm.toSignificantDigits=Gm.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Ym(e,1,1e9),void 0===t?t=n.rounding:Ym(t,0,8)),ob(new n(this),e,t)},Gm.toString=Gm.valueOf=Gm.val=Gm.toJSON=Gm[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=eb(e),n=e.constructor;return sb(e,t<=n.toExpNeg||t>=n.toExpPos)};var Jm=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%$m|0,r=n/$m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*$m+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==i.s?1:-1,E=r.d,A=i.d;if(!r.s)return new S(r);if(!i.s)throw Error(zm+"Division by zero");for(c=r.e-i.e,C=A.length,x=E.length,h=(d=new S(k)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(m=null==o?o=S.precision:a?o+(eb(r)-eb(i))+1:o)<0)return new S(0);if(m=m/7+2|0,u=0,1==C)for(l=0,A=A[0],m++;(u<x||l)&&m--;u++)b=l*$m+(E[u]||0),h[u]=b/A|0,l=b%A|0;else{for((l=$m/(A[0]+1)|0)>1&&(A=e(A,l),E=e(E,l),C=A.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=A.slice()).unshift(0),_=A[0],A[1]>=$m/2&&++_;do{l=0,(s=t(A,g,C,y))<0?(v=g[0],C!=y&&(v=v*$m+(g[1]||0)),(l=v/_|0)>1?(l>=$m&&(l=$m-1),1==(s=t(f=e(A,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:A,p))):(0==l&&(s=l=1),f=A.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(A,g,C,y=g.length))<1&&(l++,n(g,C<y?O:A,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,ob(d,a?o+eb(d)+1:o)}}();function Qm(e,t){var n,r,i,o,a,s=0,c=0,u=e.constructor,l=u.precision;if(eb(e)>16)throw Error(Hm+eb(e));if(!e.s)return new u(Nm);for(null==t?(Fm=!1,a=l):a=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(a+=Math.log(Km(2,c))/Math.LN10*2+5|0,n=r=i=new u(Nm),u.precision=a;;){if(r=ob(r.times(e),a),n=n.times(++s),Xm((o=i.plus(Jm(r,n,a))).d).slice(0,a)===Xm(i.d).slice(0,a)){for(;c--;)i=ob(i.times(i),a);return u.precision=l,null==t?(Fm=!0,ob(i,l)):i}i=o}}function eb(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function tb(e,t,n){if(t>e.LN10.sd())throw Fm=!0,n&&(e.precision=n),Error(zm+"LN10 precision limit exceeded");return ob(new e(e.LN10),t)}function nb(e){for(var t="";e--;)t+="0";return t}function rb(e,t){var n,r,i,o,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(zm+(p.s?"NaN":"-Infinity"));if(p.eq(Nm))return new h(0);if(null==t?(Fm=!1,u=g):u=t,p.eq(10))return null==t&&(Fm=!0),tb(h,u);if(u+=10,h.precision=u,r=(n=Xm(d)).charAt(0),o=eb(p),!(Math.abs(o)<15e14))return c=tb(h,u+2,g).times(o+""),p=rb(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(Fm=!0,ob(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Xm((p=p.times(e)).d)).charAt(0),f++;for(o=eb(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),s=a=p=Jm(p.minus(Nm),p.plus(Nm),u),l=ob(p.times(p),u),i=3;;){if(a=ob(a.times(l),u),Xm((c=s.plus(Jm(a,new h(i),u))).d).slice(0,u)===Xm(s.d).slice(0,u))return s=s.times(2),0!==o&&(s=s.plus(tb(h,u+2,g).times(o+""))),s=Jm(s,new h(f),u),h.precision=g,null==t?(Fm=!0,ob(s,g)):s;s=c,i+=2}}function ib(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=Vm(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+n)}else e.s=0,e.e=0,e.d=[0];return e}function ob(e,t,n){var r,i,o,a,s,c,u,l,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,u=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(o=f.length))return e;for(u=o=f[l],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(s=u/(o=Km(10,a-i-1))%10|0,c=t<0||void 0!==f[l+1]||u%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?u/Km(10,a-i):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(o=eb(e),f.length=1,t=t-o-1,f[0]=Km(10,(7-t%7)%7),e.e=Vm(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,o=1,l--):(f.length=l+1,o=Km(10,7-r),f[l]=i>0?(u/Km(10,a-i)%Km(10,i)|0)*o:0),c)for(;;){if(0==l){(f[0]+=o)==$m&&(f[0]=1,++e.e);break}if(f[l]+=o,f[l]!=$m)break;f[l--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+eb(e));return e}function ab(e,t){var n,r,i,o,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),Fm?ob(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>(i=Math.max(Math.ceil(d/7),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((l=(i=c.length)<(s=f.length))&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=$m-1;--c[o],c[i]+=$m}c[i]-=f[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,Fm?ob(t,d):t):new p(0)}function sb(e,t,n){var r,i=eb(e),o=Xm(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+nb(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+nb(-i-1)+o,n&&(r=n-a)>0&&(o+=nb(r))):i>=a?(o+=nb(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+nb(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=nb(r))),e.s<0?"-"+o:o}function cb(e,t){if(e.length>t)return e.length=t,!0}function ub(e){if(!e||"object"!=typeof e)throw Error(zm+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(Vm(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(Um+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Um+n+": "+r);this[n]=new this(r)}return this}var lb=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(Um+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])):ib(t,e.toString())}if("string"!=typeof e)throw Error(Um+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Wm.test(e))throw Error(Um+e);ib(t,e)}if(o.prototype=Gm,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=ub,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Nm=new lb(1);var fb=lb;function pb(e){return function(e){if(Array.isArray(e))return db(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 db(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 db(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 db(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 hb=function(e){return e},gb={"@@functional/placeholder":!0},yb=function(e){return e===gb},vb=function(e){return function t(){return 0===arguments.length||1===arguments.length&&yb(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},mb=function e(t,n){return 1===t?n:vb((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==gb})).length;return a>=t?n.apply(void 0,i):e(t-a,vb((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return yb(e)?t.shift():e}));return n.apply(void 0,pb(o).concat(t))})))}))},bb=function(e){return mb(e.length,e)},wb=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},xb=bb((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),_b=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Cb=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var Ob=bb((function(e,t,n){var r=+e;return r+n*(+t-r)})),Sb=bb((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),kb=bb((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),Eb={rangeStep:function(e,t,n){for(var r=new fb(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new fb(e).abs().log(10).toNumber())+1},interpolateNumber:Ob,uninterpolateNumber:Sb,uninterpolateTruncation:kb};function Ab(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jb(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 Tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||jb(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 jb(e,t){if(e){if("string"==typeof e)return Mb(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)?Mb(e,t):void 0}}function Mb(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 Pb(e){var t=Tb(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Db(e,t,n){if(e.lte(0))return new fb(0);var r=Eb.getDigitCount(e.toNumber()),i=new fb(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new fb(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new fb(Math.ceil(s))}function Ib(e,t,n){var r=1,i=new fb(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new fb(10).pow(Eb.getDigitCount(e)-1),i=new fb(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new fb(Math.floor(e)))}else 0===e?i=new fb(Math.floor((t-1)/2)):n||(i=new fb(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return hb;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}}(xb((function(e){return i.add(new fb(e-a).mul(r)).toNumber()})),wb);return s(0,t)}function Rb(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new fb(0),tickMin:new fb(0),tickMax:new fb(0)};var o,a=Db(new fb(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new fb(0):(o=new fb(e).add(t).div(2)).sub(new fb(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new fb(t).sub(o).div(a).toNumber()),u=s+c+1;return u>n?Rb(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new fb(s).mul(a)),tickMax:o.add(new fb(c).mul(a))})}var Lb=Cb((function(e){var t=Tb(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=Pb([n,r]),c=Tb(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Ab(wb(0,i-1).map((function(){return 1/0})))):[].concat(Ab(wb(0,i-1).map((function(){return-1/0}))),[l]);return n>r?_b(f):f}if(u===l)return Ib(u,i,o);var p=Rb(u,l,a,o),d=p.step,h=p.tickMin,g=p.tickMax,y=Eb.rangeStep(h,g.add(new fb(.1).mul(d)),d);return n>r?_b(y):y})),Nb=Cb((function(e,t){var n=Tb(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Pb([r,i]),s=Tb(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=Math.max(t,2),f=Db(new fb(u).sub(c).div(l-1),o,0),p=[].concat(Ab(Eb.rangeStep(new fb(c),new fb(u).sub(new fb(.99).mul(f)),f)),[u]);return r>i?_b(p):p}));function Bb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fb(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Bb(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function zb(e){return null===e?NaN:+e}const Ub=Fb(Bb).right;Fb(zb).center;var Hb=Math.sqrt(50),Vb=Math.sqrt(10),Kb=Math.sqrt(2);function Wb(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=$b(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,o=new Array(i=r-n+1);++s<i;)o[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,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function $b(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)}function qb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Hb?i*=10:o>=Vb?i*=5:o>=Kb&&(i*=2),t<e?-i:i}function Gb(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 i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Zb(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 i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Yb(e,t,n=0,r=e.length-1,i=Bb){for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1);Yb(e,t,Math.max(n,Math.floor(t-a*c/o+u)),Math.min(r,Math.floor(t+(o-a)*c/o+u)),i)}const o=e[t];let a=n,s=r;for(Xb(e,n,t),i(e[r],o)>0&&Xb(e,n,r);a<s;){for(Xb(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?Xb(e,n,s):(++s,Xb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Xb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Jb(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return Zb(e);if(t>=1)return Gb(e);var r,i=(r-1)*t,o=Math.floor(i),a=Gb(Yb(e,o).subarray(0,o+1));return a+(Zb(e.subarray(o+1))-a)*(i-o)}}function Qb(e,t,n=zb){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,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function ew(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function tw(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nw(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const rw=Symbol("implicit");function iw(){var e=new Map,t=[],n=[],r=rw;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==rw)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return iw(t,n).unknown(r)},tw.apply(i,arguments),i}function ow(){var e,t,n=iw().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o: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=ew(n).map((function(t){return p+e*t}));return i(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?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,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 ow(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},tw.apply(f(),arguments)}function aw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aw(t())},e}function sw(){return aw(ow.apply(null,arguments).paddingInner(1))}function cw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lw(){}var fw=1/.7,pw="\\s*([+-]?\\d+)\\s*",dw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gw=/^#([0-9a-f]{3,8})$/,yw=new RegExp("^rgb\\("+[pw,pw,pw]+"\\)$"),vw=new RegExp("^rgb\\("+[hw,hw,hw]+"\\)$"),mw=new RegExp("^rgba\\("+[pw,pw,pw,dw]+"\\)$"),bw=new RegExp("^rgba\\("+[hw,hw,hw,dw]+"\\)$"),ww=new RegExp("^hsl\\("+[dw,hw,hw]+"\\)$"),xw=new RegExp("^hsla\\("+[dw,hw,hw,dw]+"\\)$"),_w={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 Cw(){return this.rgb().formatHex()}function Ow(){return this.rgb().formatRgb()}function Sw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?kw(t):3===n?new jw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ew(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ew(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=yw.exec(e))?new jw(t[1],t[2],t[3],1):(t=vw.exec(e))?new jw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mw.exec(e))?Ew(t[1],t[2],t[3],t[4]):(t=bw.exec(e))?Ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ww.exec(e))?Iw(t[1],t[2]/100,t[3]/100,1):(t=xw.exec(e))?Iw(t[1],t[2]/100,t[3]/100,t[4]):_w.hasOwnProperty(e)?kw(_w[e]):"transparent"===e?new jw(NaN,NaN,NaN,0):null}function kw(e){return new jw(e>>16&255,e>>8&255,255&e,1)}function Ew(e,t,n,r){return r<=0&&(e=t=n=NaN),new jw(e,t,n,r)}function Aw(e){return e instanceof lw||(e=Sw(e)),e?new jw((e=e.rgb()).r,e.g,e.b,e.opacity):new jw}function Tw(e,t,n,r){return 1===arguments.length?Aw(e):new jw(e,t,n,null==r?1:r)}function jw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Mw(){return"#"+Dw(this.r)+Dw(this.g)+Dw(this.b)}function Pw(){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 Dw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Iw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lw(e,t,n,r)}function Rw(e){if(e instanceof Lw)return new Lw(e.h,e.s,e.l,e.opacity);if(e instanceof lw||(e=Sw(e)),!e)return new Lw;if(e instanceof Lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Lw(a,s,c,e.opacity)}function Lw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Nw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cw(lw,Sw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Cw,formatHex:Cw,formatHsl:function(){return Rw(this).formatHsl()},formatRgb:Ow,toString:Ow}),cw(jw,Tw,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new jw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new jw(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:Mw,formatHex:Mw,formatRgb:Pw,toString:Pw})),cw(Lw,(function(e,t,n,r){return 1===arguments.length?Rw(e):new Lw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new Lw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Lw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jw(Nw(e>=240?e-240:e+120,i,r),Nw(e,i,r),Nw(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Bw=Math.PI/180,Fw=180/Math.PI,zw=4/29,Uw=6/29,Hw=3*Uw*Uw;function Vw(e){if(e instanceof Kw)return new Kw(e.l,e.a,e.b,e.opacity);if(e instanceof Yw)return Xw(e);e instanceof jw||(e=Aw(e));var t,n,r=Gw(e.r),i=Gw(e.g),o=Gw(e.b),a=Ww((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Ww((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Ww((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Kw(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Kw(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ww(e){return e>.008856451679035631?Math.pow(e,1/3):e/Hw+zw}function $w(e){return e>Uw?e*e*e:Hw*(e-zw)}function qw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Gw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zw(e){if(e instanceof Yw)return new Yw(e.h,e.c,e.l,e.opacity);if(e instanceof Kw||(e=Vw(e)),0===e.a&&0===e.b)return new Yw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fw;return new Yw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Yw(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xw(e){if(isNaN(e.h))return new Kw(e.l,0,0,e.opacity);var t=e.h*Bw;return new Kw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}cw(Kw,(function(e,t,n,r){return 1===arguments.length?Vw(e):new Kw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Kw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Kw(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 jw(qw(3.1338561*(t=.96422*$w(t))-1.6168667*(e=1*$w(e))-.4906146*(n=.82521*$w(n))),qw(-.9787684*t+1.9161415*e+.033454*n),qw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cw(Yw,(function(e,t,n,r){return 1===arguments.length?Zw(e):new Yw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Yw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Yw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Xw(this).rgb()}}));var Jw=-.14861,Qw=1.78277,ex=-.29227,tx=-.90649,nx=1.97294,rx=nx*tx,ix=nx*Qw,ox=Qw*ex-tx*Jw;function ax(e){if(e instanceof cx)return new cx(e.h,e.s,e.l,e.opacity);e instanceof jw||(e=Aw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ox*r+rx*t-ix*n)/(ox+rx-ix),o=r-i,a=(nx*(n-i)-ex*o)/tx,s=Math.sqrt(a*a+o*o)/(nx*i*(1-i)),c=s?Math.atan2(a,o)*Fw-120:NaN;return new cx(c<0?c+360:c,s,i,e.opacity)}function sx(e,t,n,r){return 1===arguments.length?ax(e):new cx(e,t,n,null==r?1:r)}function cx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cw(cx,sx,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new cx(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new cx(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Bw,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jw(255*(t+n*(Jw*r+Qw*i)),255*(t+n*(ex*r+tx*i)),255*(t+n*(nx*r)),this.opacity)}}));var ux=e=>()=>e;function lx(e,t){return function(n){return e+n*t}}function fx(e){return 1==(e=+e)?px: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):ux(isNaN(t)?n:t)}}function px(e,t){var n=t-e;return n?lx(e,n):ux(isNaN(e)?t:e)}var dx=function e(t){var n=fx(t);function r(e,t){var r=n((e=Tw(e)).r,(t=Tw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=px(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function hx(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function gx(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=_x(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function yx(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mx(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=_x(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var bx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wx=new RegExp(bx.source,"g");function xx(e,t){var n,r,i,o=bx.lastIndex=wx.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=bx.exec(e))&&(r=wx.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:vx(n,r)})),o=wx.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),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 _x(e,t){var n,r=typeof t;return null==t||"boolean"===r?ux(t):("number"===r?vx:"string"===r?(n=Sw(t))?(t=n,dx):xx:t instanceof Sw?dx:t instanceof Date?yx:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?hx:Array.isArray(t)?gx:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mx:vx)(e,t)}function Cx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ox(e){return((e=Math.exp(e))+1/e)/2}function Sx(e){return function t(n){function r(t,r){var i=e((t=sx(t)).h,(r=sx(r)).h),o=px(t.s,r.s),a=px(t.l,r.l),s=px(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function kx(e,t){void 0===t&&(t=e,e=_x);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Ex(e){return+e}!function e(t,n,r){function i(e,i){var o,a,s=e[0],c=e[1],u=e[2],l=i[0],f=i[1],p=i[2],d=l-s,h=f-c,g=d*d+h*h;if(g<1e-12)a=Math.log(p/u)/t,o=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,o=function(e){var r=e*a,i=Ox(b),o=u/(n*y)*(i*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+o*d,c+o*h,u*i/Ox(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),Sx((function(e,t){var n=t-e;return n?lx(e,n>180||n<-180?n-360*Math.round(n/360):n):ux(isNaN(e)?t:e)})),Sx(px);var Ax=[0,1];function Tx(e){return e}function jx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Mx(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=jx(i,r),o=n(a,o)):(r=jx(r,i),o=n(o,a)),function(e){return o(r(e))}}function Px(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=jx(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Ub(e,t,1,r)-1;return o[n](i[n](t))}}function Dx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ix(){var e,t,n,r,i,o,a=Ax,s=Ax,c=_x,u=Tx;function l(){var e=Math.min(a.length,s.length);return u!==Tx&&(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?Px:Mx,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((o||(o=r(s,a.map(e),vx)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Ex),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=Cx,l()},f.clamp=function(e){return arguments.length?(u=!!e||Tx,l()):u!==Tx},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 Rx(){return Ix()(Tx,Tx)}function Lx(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 Nx(e){return(e=Lx(Math.abs(e)))?e[1]:NaN}var Bx,Fx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zx(e){if(!(t=Fx.exec(e)))throw new Error("invalid format: "+e);var t;return new Ux({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 Ux(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 Hx(e,t){var n=Lx(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}zx.prototype=Ux.prototype,Ux.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 Vx={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Hx(100*e,t),r:Hx,s:function(e,t){var n=Lx(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Bx=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Lx(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Kx(e){return e}var Wx,$x,qx,Gx=Array.prototype.map,Zx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yx(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Kx:(t=Gx.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Kx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Gx.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=zx(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):Vx[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?o:/[%p]/.test(m)?c:"",x=Vx[m],_=/[defgprs%]/.test(m);function C(e){var i,o,c,p=b,C=w;if("c"===m)C=x(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?Zx[8+Bx/3]:"")+C+(O&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(c=e.charCodeAt(i))||c>57){C=(46===c?a+e.slice(i+1):e.slice(i))+C,e=e.slice(0,i);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+C.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=p+e+C+k;break;case"=":e=p+k+e+C;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+C+k.slice(S);break;default:e=k+p+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=zx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3))),i=Math.pow(10,-r),o=Zx[8+r/3];return function(e){return n(i*e)+o}}}}function Xx(e,t,n,r){var i,o=qb(e,t,n);switch((r=zx(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3)))-Nx(Math.abs(e)))}(o,a))||(r.precision=i),qx(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nx(t)-Nx(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Nx(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return $x(r)}function Jx(e){var t=e.domain;return e.ticks=function(e){var n=t();return Wb(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Xx(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,c=o[a],u=o[s],l=10;for(u<c&&(i=c,c=u,u=i,i=a,a=s,s=i);l-- >0;){if((i=$b(c,u,n))===r)return o[a]=c,o[s]=u,t(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Qx(){var e=Rx();return e.copy=function(){return Dx(e,Qx())},tw.apply(e,arguments),Jx(e)}function e_(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function t_(e){return Math.log(e)}function n_(e){return Math.exp(e)}function r_(e){return-Math.log(-e)}function i_(e){return-Math.exp(-e)}function o_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function a_(e){return function(t){return-e(-t)}}function s_(e){var t,n,r=e(t_,n_),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?o_:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=a_(t),n=a_(n),e(r_,i_)):e(t_,n_),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],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(!(o%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<o;++l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}}else for(;p<=d;++p)for(l=o-1,u=n(p);l>=1;--l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}2*g.length<h&&(g=Wb(s,c,h))}else g=Wb(p,d,Math.min(d-p,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=$x(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(e_(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function c_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l_(e){var t=1,n=e(c_(t),u_(t));return n.constant=function(n){return arguments.length?e(c_(t=+n),u_(t)):t},Jx(n)}function f_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function p_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function d_(e){return e<0?-e*e:e*e}function h_(e){var t=e(Tx,Tx),n=1;function r(){return 1===n?e(Tx,Tx):.5===n?e(p_,d_):e(f_(n),f_(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Jx(t)}function g_(){var e=h_(Ix());return e.copy=function(){return Dx(e,g_()).exponent(e.exponent())},tw.apply(e,arguments),e}function y_(e){return Math.sign(e)*e*e}function v_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}Wx=Yx({thousands:",",grouping:[3],currency:["$",""]}),$x=Wx.format,qx=Wx.formatPrefix;var m_=new Date,b_=new Date;function w_(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return w_((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return m_.setTime(+t),b_.setTime(+r),e(m_),e(b_),Math.floor(n(m_,b_))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var x_=w_((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));x_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?w_((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):x_:null},x_.range;var __=w_((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));__.range;var C_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}));C_.range;var O_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}));O_.range;var S_=w_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5),(e=>e.getDate()-1));function k_(e){return w_((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-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}S_.range;var E_=k_(0),A_=k_(1),T_=k_(2),j_=k_(3),M_=k_(4),P_=k_(5),D_=k_(6);E_.range,A_.range,T_.range,j_.range,M_.range,P_.range,D_.range;var I_=w_((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()}));I_.range;var R_=w_((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()}));R_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((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},R_.range;var L_=w_((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}));L_.range;var N_=w_((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}));N_.range;var B_=w_((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}));function F_(e){return w_((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)/6048e5}))}B_.range;var z_=F_(0),U_=F_(1),H_=F_(2),V_=F_(3),K_=F_(4),W_=F_(5),$_=F_(6);z_.range,U_.range,H_.range,V_.range,K_.range,W_.range,$_.range;var q_=w_((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()}));q_.range;var G_=w_((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()}));function Z_(e,t,n,r,i,o){const a=[[__,1,1e3],[__,5,5e3],[__,15,15e3],[__,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Fb((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(qb(t/31536e6,n/31536e6,r));if(0===o)return x_.every(Math.max(qb(t,n,r),1));const[s,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}G_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((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},G_.range;const[Y_,X_]=Z_(G_,q_,z_,B_,N_,L_),[J_,Q_]=Z_(R_,I_,E_,S_,O_,C_);function eC(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 tC(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 nC(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rC,iC,oC,aC,sC={"-":"",_:" ",0:"0"},cC=/^\s*\d+/,uC=/^%/,lC=/[\\^$*+?|[\]().{}]/g;function fC(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function pC(e){return e.replace(lC,"\\$&")}function dC(e){return new RegExp("^(?:"+e.map(pC).join("|")+")","i")}function hC(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function gC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function mC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wC(e,t,n){var r=cC.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _C(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 CC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function OC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function EC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function AC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function TC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function MC(e,t,n){var r=cC.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function PC(e,t,n){var r=uC.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function IC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function RC(e,t){return fC(e.getDate(),t,2)}function LC(e,t){return fC(e.getHours(),t,2)}function NC(e,t){return fC(e.getHours()%12||12,t,2)}function BC(e,t){return fC(1+S_.count(R_(e),e),t,3)}function FC(e,t){return fC(e.getMilliseconds(),t,3)}function zC(e,t){return FC(e,t)+"000"}function UC(e,t){return fC(e.getMonth()+1,t,2)}function HC(e,t){return fC(e.getMinutes(),t,2)}function VC(e,t){return fC(e.getSeconds(),t,2)}function KC(e){var t=e.getDay();return 0===t?7:t}function WC(e,t){return fC(E_.count(R_(e)-1,e),t,2)}function $C(e){var t=e.getDay();return t>=4||0===t?M_(e):M_.ceil(e)}function qC(e,t){return e=$C(e),fC(M_.count(R_(e),e)+(4===R_(e).getDay()),t,2)}function GC(e){return e.getDay()}function ZC(e,t){return fC(A_.count(R_(e)-1,e),t,2)}function YC(e,t){return fC(e.getFullYear()%100,t,2)}function XC(e,t){return fC((e=$C(e)).getFullYear()%100,t,2)}function JC(e,t){return fC(e.getFullYear()%1e4,t,4)}function QC(e,t){var n=e.getDay();return fC((e=n>=4||0===n?M_(e):M_.ceil(e)).getFullYear()%1e4,t,4)}function eO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fC(t/60|0,"0",2)+fC(t%60,"0",2)}function tO(e,t){return fC(e.getUTCDate(),t,2)}function nO(e,t){return fC(e.getUTCHours(),t,2)}function rO(e,t){return fC(e.getUTCHours()%12||12,t,2)}function iO(e,t){return fC(1+B_.count(G_(e),e),t,3)}function oO(e,t){return fC(e.getUTCMilliseconds(),t,3)}function aO(e,t){return oO(e,t)+"000"}function sO(e,t){return fC(e.getUTCMonth()+1,t,2)}function cO(e,t){return fC(e.getUTCMinutes(),t,2)}function uO(e,t){return fC(e.getUTCSeconds(),t,2)}function lO(e){var t=e.getUTCDay();return 0===t?7:t}function fO(e,t){return fC(z_.count(G_(e)-1,e),t,2)}function pO(e){var t=e.getUTCDay();return t>=4||0===t?K_(e):K_.ceil(e)}function dO(e,t){return e=pO(e),fC(K_.count(G_(e),e)+(4===G_(e).getUTCDay()),t,2)}function hO(e){return e.getUTCDay()}function gO(e,t){return fC(U_.count(G_(e)-1,e),t,2)}function yO(e,t){return fC(e.getUTCFullYear()%100,t,2)}function vO(e,t){return fC((e=pO(e)).getUTCFullYear()%100,t,2)}function mO(e,t){return fC(e.getUTCFullYear()%1e4,t,4)}function bO(e,t){var n=e.getUTCDay();return fC((e=n>=4||0===n?K_(e):K_.ceil(e)).getUTCFullYear()%1e4,t,4)}function wO(){return"+0000"}function xO(){return"%"}function _O(e){return+e}function CO(e){return Math.floor(+e/1e3)}!function(e){rC=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=dC(i),l=hC(i),f=dC(o),p=hC(o),d=dC(a),h=hC(a),g=dC(s),y=hC(s),v=dC(c),m=hC(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:RC,e:RC,f:zC,g:XC,G:QC,H:LC,I:NC,j:BC,L:FC,m:UC,M:HC,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:_O,s:CO,S:VC,u:KC,U:WC,V:qC,w:GC,W:ZC,x:null,X:null,y:YC,Y:JC,Z:eO,"%":xO},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:tO,e:tO,f:aO,g:vO,G:bO,H:nO,I:rO,j:iO,L:oO,m:sO,M:cO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:_O,s:CO,S:uO,u:lO,U:fO,V:dO,w:hO,W:gO,x:null,X:null,y:yO,Y:mO,Z:wO,"%":xO},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:SC,e:SC,f:MC,g:xC,G:wC,H:EC,I:EC,j:kC,L:jC,m:OC,M:AC,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:CC,Q:DC,s:IC,S:TC,u:yC,U:vC,V:mC,w:gC,W:bC,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:xC,Y:wC,Z:_C,"%":PC};function _(e,t){return function(n){var r,i,o,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(i=sC[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=nC(1900,void 0,1);if(O(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=tC(nC(o.y,0,1))).getUTCDay(),r=i>4||0===i?U_.ceil(r):U_(r),r=B_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=eC(nC(o.y,0,1))).getDay(),r=i>4||0===i?A_.ceil(r):A_(r),r=S_.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?tC(nC(o.y,0,1)).getUTCDay():eC(nC(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,tC(o)):eC(o)}}function O(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in sC?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),iC=rC.format,rC.parse,oC=rC.utcFormat,aC=rC.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function OO(e){return new Date(e)}function SO(e){return e instanceof Date?+e:+new Date(+e)}function kO(e,t,n,r,i,o,a,s,c,u){var l=Rx(),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:o(e)<e?y:r(e)<e?i(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,SO)):p().map(OO)},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(e_(n,e)):l},l.copy=function(){return Dx(l,kO(e,t,n,r,i,o,a,s,c,u))},l}function EO(){var e,t,n,r,i,o=0,a=1,s=Tx,c=!1;function u(t){return null==t||isNaN(t=+t)?i: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(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,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(_x),u.rangeRound=l(Cx),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function AO(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function TO(){var e=h_(EO());return e.copy=function(){return AO(e,TO()).exponent(e.exponent())},nw.apply(e,arguments)}function jO(){var e,t,n,r,i,o,a,s=0,c=.5,u=1,l=1,f=Tx,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(l*e<l*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=kx(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=o(s=+s),t=o(c=+c),n=o(u=+u),r=e===t?0:.5/(t-e),i=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(_x),d.rangeRound=h(Cx),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function MO(){var e=h_(jO());return e.copy=function(){return AO(e,MO()).exponent(e.exponent())},nw.apply(e,arguments)}Date.prototype.toISOString||oC("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||aC("%Y-%m-%dT%H:%M:%S.%LZ");var PO=Object.freeze({__proto__:null,scaleBand:ow,scalePoint:sw,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,Ex),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,Ex):[0,1],Jx(r)},scaleLinear:Qx,scaleLog:function e(){var t=s_(Ix()).domain([1,10]);return t.copy=function(){return Dx(t,e()).base(t.base())},tw.apply(t,arguments),t},scaleSymlog:function e(){var t=l_(Ix());return t.copy=function(){return Dx(t,e()).constant(t.constant())},tw.apply(t,arguments)},scaleOrdinal:iw,scaleImplicit:rw,scalePow:g_,scaleSqrt:function(){return g_.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=Rx(),r=[0,1],i=!1;function o(e){var r=v_(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(y_(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,Ex)).map(y_)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},tw.apply(o,arguments),Jx(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=Qb(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Ub(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[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(Bb),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[Ub(o,e,0,i)]:t}function c(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+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?(i=(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,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},tw.apply(Jx(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[Ub(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(o,arguments)},scaleTime:function(){return tw.apply(kO(J_,Q_,R_,I_,E_,S_,O_,C_,__,iC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return tw.apply(kO(Y_,X_,G_,q_,z_,B_,N_,L_,__,oC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=Jx(EO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleSequentialLog:function e(){var t=s_(EO()).domain([1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleSequentialPow:TO,scaleSequentialSqrt:function(){return TO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=l_(EO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=Tx;function r(e){if(null!=e&&!isNaN(e=+e))return n((Ub(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(Bb),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)=>Jb(t,r/e)))},r.copy=function(){return e(n).domain(t)},nw.apply(r,arguments)},scaleDiverging:function e(){var t=Jx(jO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleDivergingLog:function e(){var t=s_(jO()).domain([.1,1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleDivergingPow:MO,scaleDivergingSqrt:function(){return MO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=l_(jO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},tickFormat:Xx});function DO(e){return function(e){if(Array.isArray(e))return IO(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 IO(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 IO(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 IO(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 RO(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 LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RO(Object(n),!0).forEach((function(t){NO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BO(e,t,n){return Wf(e)||Wf(t)?n:Of(t)?ac(e,t,n):br(t)?t(e):n}function FO(e,t,n,r){var i=Bm(e,(function(e){return BO(e,t)}));if("number"===n){var o=i.filter((function(e){return Cf(e)||parseFloat(e)}));return o.length?[jm(o),Sm(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Wf(e)})):i).map((function(e){return Of(e)||e instanceof Date?e:""}))}var zO=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},UO=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=fm(n,Kf.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.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,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:zO(t),value:i||r,payload:t.props}})),LO(LO(LO({},a.props),Kf.getWithHeight(a,i)),{},{payload:t,item:a})):null},HO=function(e,t,n,r,i){var o=t.props.children,a=lm(o,"ErrorBar").filter((function(e){return function(e,t,n){return!!Wf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,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=BO(t,n,0),i=xo(r)?[jm(r),Sm(r)]:[r,r],o=s.reduce((function(e,n){var r=BO(t,n,0),o=i[0]-Math.abs(xo(r)?r[0]:r),a=i[1]+Math.abs(xo(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},VO=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&HO(e,t,o,r)||FO(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.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}),[])},KO=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},WO=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},$O=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType?2*xf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.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:i?i[e]:e,index:t,offset:c}}))},qO=function(e,t,n){var r;return br(n)?r=n:br(t)&&(r=t),br(e)||r?function(t,n,i,o){br(e)&&e(t,n,i,o),br(r)&&r(t,n,i,o)}:null},GO=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:ow(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Qx(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:sw(),realScaleType:"point"}:"category"===i?{scale:ow(),realScaleType:"band"}:{scale:Qx(),realScaleType:"linear"};if(wf(r)){var s="scale".concat(Ru(r));return{scale:(PO[s]||sw)(),realScaleType:PO[s]?s:"point"}}return br(r)?{scale:r}:{scale:sw(),realScaleType:"point"}},ZO=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},YO=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},XO=function(e,t){if(!t||2!==t.length||!Cf(t[0])||!Cf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Cf(e[0])||e[0]<n)&&(i[0]=n),(!Cf(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},JO={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=yf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}Fl(e,t)}},none:Fl,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Fl(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++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]=o,c&&(o-=u/c)}n[a-1][1]+=n[a-1][0]=o,Fl(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 i=0,o=0;o<t;++o){var a=yf(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},QO=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Uu([]),t=zl,n=Fl,r=Ul;function i(i){var o,a,s=Array.from(e.apply(this,arguments),Hl),c=s.length,u=-1;for(const e of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=Ku(t(s));o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Uu(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Uu(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?zl:"function"==typeof e?e:Uu(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Fl:e,i):n},i}().keys(r).value((function(e,t){return+BO(e,t,0)})).order(zl).offset(JO[n]);return i(e)},eS=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var c=e.domain();if(!c.length)return null;var u=Lb(c,i,a);return e.domain(function(e,t){return"number"===t?[jm(e),Sm(e)]:e}(u,r)),{niceTicks:u}}if(i&&"number"===r){var l=e.domain();return{niceTicks:Nb(l,i,a)}}return null},tS=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wf(i[t.dataKey])){var s=jf(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=BO(i,Wf(a)?t.dataKey:a);return Wf(c)?null:t.scale(c)},nS=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=BO(o,t.dataKey,t.domain[a]);return Wf(s)?null:t.scale(s)-i/2+r},rS=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},iS=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[jm(t.concat([e[0]]).filter(Cf)),Sm(t.concat([e[1]]).filter(Cf))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},oS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sS=function(e,t,n){if(br(e))return e(t,n);if(!xo(e))return t;var r=[];if(Cf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oS.test(e[0])){var i=+oS.exec(e[0])[1];r[0]=t[0]-i}else br(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Cf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(aS.test(e[1])){var o=+aS.exec(e[1])[1];r[1]=t[1]+o}else br(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cS=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 i=sg(t,(function(e){return e.coordinate})),o=1/0,a=1,s=i.length;a<s;a++){var c=i[a],u=i[a-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},uS=function(e,t,n){return e&&e.length?mm(e,ac(n,"type.defaultProps.domain"))?t:e:t},lS=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return LO(LO({},$n(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:zO(e),value:BO(t,r),type:s,payload:t,chartType:c})};function fS(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 pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fS(Object(n),!0).forEach((function(t){dS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gS(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 gS(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 gS(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 yS=Math.PI/180,vS=function(e){return 180*e/Math.PI},mS=function(e,t,n,r){return{x:e+Math.cos(-yS*r)*n,y:t+Math.sin(-yS*r)*n}},bS=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},wS=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ef(e.cx,o,o/2),l=Ef(e.cy,a,a/2),f=bS(o,a,n),p=Ef(e.innerRadius,f,0),d=Ef(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Wf(a.range))"angleAxis"===r?o=[s,c]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var g=hS(o=a.range,2);s=g[0],c=g[1]}var y=GO(a,i),v=y.realScaleType,m=y.scale;m.domain(f).range(o),ZO(m);var b=eS(m,pS(pS({},a),{},{realScaleType:v})),w=pS(pS(pS({},a),b),{},{range:o,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return pS(pS({},e),{},dS({},n,w))}),{})},xS=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,c=Math.acos(s);return r>o&&(c=2*Math.PI-c),{radius:a,angle:vS(c),angleInRadian:c}},_S=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},CS=function(e,t){var n=e.x,r=e.y,i=xS({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,c=t.outerRadius;if(o<s||o>c)return!1;if(0===o)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(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?pS(pS({},t),{},{radius:o,angle:_S(d,t)}):null};function OS(e){return function(e){if(Array.isArray(e))return SS(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 SS(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 SS(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 SS(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 kS(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 ES(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kS(Object(n),!0).forEach((function(t){AS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TS(){return TS=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},TS.apply(this,arguments)}var jS=function(e,t,n){var r,o,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 xf(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(r=g+w*c,o=v):"insideEnd"===a?(r=y-w*c,o=!v):"end"===a&&(r=y+w*c,o=v),o=b<=0?o:!o;var x=mS(f,p,m,r),_=mS(f,p,m,r+359*(o?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),O=Wf(e.id)?kf("recharts-radial-line-"):e.id;return i.createElement("text",TS({},n,{dominantBaseline:"central",className:zn("recharts-radial-bar-label",u)}),i.createElement("defs",null,i.createElement("path",{id:O,d:C})),i.createElement("textPath",{xlinkHref:"#".concat(O)},t))};function MS(e){var t,n=e.viewBox,r=e.position,o=e.value,s=e.children,u=e.content,l=e.className,f=void 0===l?"":l,p=e.textBreakAll;if(!n||Wf(o)&&Wf(s)&&!v(u)&&!br(u))return null;if(v(u))return c(u,e);if(br(u)){if(v(t=a(u,e)))return t}else t=function(e){var t=e.value,n=e.formatter,r=Wf(e.children)?t:e.children;return br(n)?n(r):r}(e);var d=function(e){return Cf(e.cx)}(n),h=$n(e,!0);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return jS(e,t,h);var g=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,c=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===r){var l=mS(o,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=mS(o,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,i=e.position,o=t,a=o.x,s=o.y,c=o.width,u=o.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"===i)return ES(ES({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===i)return ES(ES({},{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"===i){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return ES(ES({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===i){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return ES(ES({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===i?ES({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===i?ES({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===i?ES({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?ES({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?ES({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===i?ES({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===i?ES({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===i?ES({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Un(i)&&(Cf(i.x)||_f(i.x))&&(Cf(i.y)||_f(i.y))?ES({x:a+Ef(i.x,c),y:s+Ef(i.y,u),textAnchor:"end",verticalAnchor:"end"},w):ES({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return i.createElement(nm,TS({className:zn("recharts-label",f)},h,g,{breakAll:p}),t)}MS.displayName="Label",MS.defaultProps={offset:5};var PS=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=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(Cf(h)&&Cf(g)){if(Cf(l)&&Cf(f))return{x:l,y:f,width:h,height:g};if(Cf(p)&&Cf(d))return{x:p,y:d,width:h,height:g}}return Cf(l)&&Cf(f)?{x:l,y:f,width:0,height:0}:Cf(t)&&Cf(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},DS=function(e,t){return e?!0===e?i.createElement(MS,{key:"label-implicit",viewBox:t}):Of(e)?i.createElement(MS,{key:"label-implicit",viewBox:t,value:e}):v(e)?e.type===MS?c(e,{key:"label-implicit",viewBox:t}):i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):br(e)?i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):Un(e)?i.createElement(MS,TS({viewBox:t},e,{key:"label-implicit"})):null:null};MS.parseViewBox=PS,MS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=PS(e),o=lm(r,MS.displayName).map((function(e,n){return c(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return o;var a=DS(e.label,t||i);return[a].concat(OS(o))};var IS=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function RS(e){return function(e){if(Array.isArray(e))return LS(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 LS(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 LS(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 LS(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 NS(){return NS=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},NS.apply(this,arguments)}function BS(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 FS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BS(Object(n),!0).forEach((function(t){zS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function US(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var HS={valueAccessor:function(e){return xo(e.value)?IS(e.value):e.value}};function VS(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,s=e.textBreakAll,c=US(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?i.createElement(er,{className:"recharts-label-list"},t.map((function(e,t){var u=Wf(r)?n(e,t):BO(e&&e.payload,r),l=Wf(a)?{}:{id:"".concat(a,"-").concat(t)};return i.createElement(MS,NS({},$n(e,!0),c,l,{parentViewBox:e.parentViewBox,index:t,value:u,textBreakAll:s,viewBox:MS.parseViewBox(Wf(o)?e:FS(FS({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function KS(e,t){return e?!0===e?i.createElement(VS,{key:"labelList-implicit",data:t}):i.isValidElement(e)||br(e)?i.createElement(VS,{key:"labelList-implicit",data:t,content:e}):Un(e)?i.createElement(VS,NS({data:t},e,{key:"labelList-implicit"})):null:null}function WS(e){return WS="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},WS(e)}function $S(){return $S=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},$S.apply(this,arguments)}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(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 ZS(e,t){return ZS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZS(e,t)}function YS(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=JS(e);if(t){var i=JS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return XS(this,n)}}function XS(e,t){return!t||"object"!==WS(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 JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JS(e)}VS.displayName="LabelList",VS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lm(r,VS.displayName).map((function(e,n){return c(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var o=KS(e.label,t);return[o].concat(RS(i))},VS.defaultProps=HS;var QS=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/yS,f=c?i:i+o*l,p=c?i-o*l:i;return{center:mS(t,n,u,f),circleTangency:mS(t,n,r,f),lineTangency:mS(t,n,u*Math.cos(l*yS),p),theta:l}},ek=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),s=o+a,c=mS(t,n,i,o),u=mS(t,n,i,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=mS(t,n,r,o),p=mS(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(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},tk=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&&ZS(e,t)}(a,m);var t,n,r,o=YS(a);function a(){return qS(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(o<r||u===l)return null;var p,d=zn("recharts-sector",f),h=o-r,g=Ef(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,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=xf(u-c),f=QS({cx:t,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=QS({cx:t,cy:n,radius:i,angle:u,sign:-l,cornerRadius:o,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(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):ek({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=QS({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=QS({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,A=S.theta,T=s?Math.abs(c-u):Math.abs(c-u)-O-A;if(T<0&&0===o)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):ek({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:l}),i.createElement("path",$S({},$n(this.props,!0),{className:d,d:p}))}}],n&&GS(t.prototype,n),r&&GS(t,r),a}();function nk(e){return nk="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},nk(e)}function rk(){return rk=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},rk.apply(this,arguments)}function ik(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 ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ik(Object(n),!0).forEach((function(t){ak(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ak(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(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 uk(e,t){return uk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uk(e,t)}function lk(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=pk(e);if(t){var i=pk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fk(this,n)}}function fk(e,t){return!t||"object"!==nk(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 pk(e){return pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pk(e)}tk.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var dk={curveBasisClosed:function(e){return new vl(e)},curveBasisOpen:function(e){return new ml(e)},curveBasis:function(e){return new yl(e)},curveLinearClosed:function(e){return new Al(e)},curveLinear:$u,curveMonotoneX:function(e){return new Dl(e)},curveMonotoneY:function(e){return new Il(e)},curveNatural:function(e){return new Ll(e)},curveStep:function(e){return new Bl(e,.5)},curveStepAfter:function(e){return new Bl(e,1)},curveStepBefore:function(e){return new Bl(e,0)}},hk=function(e){return e.x===+e.x&&e.y===+e.y},gk=function(e){return e.x},yk=function(e){return e.y},vk=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&&uk(e,t)}(a,m);var t,n,r,o=lk(a);function a(){return sk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,s=function(e,t){if(br(e))return e;var n="curve".concat(Ru(e));return"curveMonotone"===n&&t?dk["".concat(n).concat("vertical"===t?"Y":"X")]:dk[n]||$u}(n,o),c=a?r.filter((function(e){return hk(e)})):r;if(xo(i)){var u=a?i.filter((function(e){return hk(e)})):i,l=c.map((function(e,t){return ok(ok({},e),{},{base:u[t]})}));return(e="vertical"===o?Yu().y(yk).x1(gk).x0((function(e){return e.base.x})):Yu().x(gk).y1(yk).y0((function(e){return e.base.y}))).defined(hk).curve(s),e(l)}return(e="vertical"===o&&Cf(i)?Yu().y(yk).x1(gk).x0(i):Cf(i)?Yu().x(gk).y1(yk).y0(i):Zu().x(gk).y(yk)).defined(hk).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return i.createElement("path",rk({},$n(this.props),qn(this.props),{className:zn("recharts-curve",t),d:a,ref:o}))}}],n&&ck(t.prototype,n),r&&ck(t,r),a}();function mk(e){return mk="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},mk(e)}function bk(){return bk=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},bk.apply(this,arguments)}function wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xk(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 _k(e,t){return _k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_k(e,t)}function Ck(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=Sk(e);if(t){var i=Sk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ok(this,n)}}function Ok(e,t){return!t||"object"!==mk(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 Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sk(e)}vk.defaultProps={type:"linear",points:[],connectNulls:!1};var kk=function(e,t,n,r,i){var o,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&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),o+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),o+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),o+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="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 o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Ek=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(i,i+a),u=Math.max(i,i+a),l=Math.min(o,o+s),f=Math.max(o,o+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},Ak=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&&_k(e,t)}(a,m);var t,n,r,o=Ck(a);function a(){var e;wk(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{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,t=this.props,n=t.x,r=t.y,o=t.width,a=t.height,s=t.radius,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||0===o||0===a)return null;var y=zn("recharts-rectangle",c);return g?i.createElement(Cd,{canBegin:u>0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return i.createElement(Cd,{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},i.createElement("path",bk({},$n(e.props,!0),{className:y,d:kk(o,a,n,r,s),ref:function(t){e.node=t}})))})):i.createElement("path",bk({},$n(this.props,!0),{className:y,d:kk(n,r,o,a,s)}))}}],n&&xk(t.prototype,n),r&&xk(t,r),a}();function Tk(e){return Tk="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},Tk(e)}function jk(){return jk=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},jk.apply(this,arguments)}function Mk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dk(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 Ik(e,t){return Ik=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ik(e,t)}function Rk(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=Nk(e);if(t){var i=Nk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Lk(this,n)}}function Lk(e,t){return!t||"object"!==Tk(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 Nk(e){return Nk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nk(e)}function Bk(e){return function(e){if(Array.isArray(e))return Fk(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 Fk(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 Fk(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 Fk(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}Ak.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var zk=function(e){return e&&e.x===+e.x&&e.y===+e.y},Uk=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){zk(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),zk(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(Bk(e),Bk(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},Hk=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&&Ik(e,t)}(a,m);var t,n,r,o=Rk(a);function a(){return Pk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,a=Mk(e,["points","className","baseLinePoints","connectNulls"]);if(!t||!t.length)return null;var s=zn("recharts-polygon",n);if(r&&r.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=Uk(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Uk(t.reverse(),n).slice(1))}(t,r,o);return i.createElement("g",{className:s},i.createElement("path",jk({},$n(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(t,o)})):null,c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(r,o)})):null)}var l=Uk(t,o);return i.createElement("path",jk({},$n(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&Dk(t.prototype,n),r&&Dk(t,r),a}();function Vk(e){return Vk="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},Vk(e)}function Kk(){return Kk=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},Kk.apply(this,arguments)}function Wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $k(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 qk(e,t){return qk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qk(e,t)}function Gk(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=Yk(e);if(t){var i=Yk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Zk(this,n)}}function Zk(e,t){return!t||"object"!==Vk(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 Yk(e){return Yk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yk(e)}var Xk=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&&qk(e,t)}(a,m);var t,n,r,o=Gk(a);function a(){return Wk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,a=zn("recharts-dot",o);return t===+t&&n===+n&&r===+r?i.createElement("circle",Kk({},$n(this.props),qn(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&$k(t.prototype,n),r&&$k(t,r),a}();function Jk(e){return Jk="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},Jk(e)}function Qk(){return Qk=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},Qk.apply(this,arguments)}function eE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tE(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 nE(e,t){return nE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nE(e,t)}function rE(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=oE(e);if(t){var i=oE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return iE(this,n)}}function iE(e,t){return!t||"object"!==Jk(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 oE(e){return oE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oE(e)}var aE=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&&nE(e,t)}(a,m);var t,n,r,o=rE(a);function a(){return eE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,s=e.top,c=e.left,u=e.className;return Cf(t)&&Cf(n)&&Cf(r)&&Cf(o)&&Cf(s)&&Cf(c)?i.createElement("path",Qk({},$n(this.props,!0),{className:zn("recharts-cross",u),d:a.getPath(t,n,r,o,s,c)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],n&&tE(t.prototype,n),r&&tE(t,r),a}();aE.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var sE=wm,cE=zc,uE=km;var lE=function(e,t){return e&&e.length?sE(e,cE(t),uE):void 0},fE=wm,pE=xm,dE=zc;var hE=function(e,t){return e&&e.length?fE(e,dE(t),pE):void 0};function gE(e){return gE="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},gE(e)}function yE(){return yE=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},yE.apply(this,arguments)}function vE(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 mE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vE(Object(n),!0).forEach((function(t){bE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wE(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CE(e,t){return CE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},CE(e,t)}function OE(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=kE(e);if(t){var i=kE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return SE(this,n)}}function SE(e,t){return!t||"object"!==gE(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 kE(e){return kE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kE(e)}var EE=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&&CE(e,t)}(a,m);var t,n,r,o=OE(a);function a(){return xE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return mS(i,o,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,i=e.ticks,o=hE(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:lE(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,a=e.axisLine,s=wE(e,["cx","cy","angle","ticks","axisLine"]),c=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=mS(t,n,c[0],r),l=mS(t,n,c[1],r),f=mE(mE(mE({},$n(s)),{},{fill:"none"},$n(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return i.createElement("line",yE({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,s=t.tickFormatter,c=t.stroke,u=wE(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=$n(u),p=$n(r),d=n.map((function(t,n){var u=e.getTickValueCoord(t),d=mE(mE(mE(mE({textAnchor:l,transform:"rotate(".concat(90-o,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:n},u),{},{payload:t});return i.createElement(er,yE({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?i.createElement(er,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),MS.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,yE({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&_E(t.prototype,n),r&&_E(t,r),a}();function AE(e){return AE="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},AE(e)}function TE(){return TE=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},TE.apply(this,arguments)}function jE(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 ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(n),!0).forEach((function(t){PE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IE(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 RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function LE(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=BE(e);if(t){var i=BE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(e,t){return!t||"object"!==AE(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 BE(e){return BE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BE(e)}EE.displayName="PolarRadiusAxis",EE.axisType="radiusAxis",EE.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 FE=Math.PI/180,zE=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&&RE(e,t)}(a,m);var t,n,r,o=LE(a);function a(){return DE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,s=mS(n,r,i,e.coordinate),c=mS(n,r,i+("inner"===o?-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*FE);return n>1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,a=e.axisLineType,s=ME(ME({},$n(this.props)),{},{fill:"none"},$n(o));if("circle"===a)return i.createElement(Xk,TE({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var c=this.props.ticks.map((function(e){return mS(t,n,r,e.coordinate)}));return i.createElement(Hk,TE({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,s=t.tickFormatter,c=t.stroke,u=$n(this.props),l=$n(r),f=ME(ME({},u),{},{fill:"none"},$n(o)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),d=ME(ME(ME({textAnchor:e.getTickTextAnchor(t)},u),{},{stroke:"none",fill:c},l),{},{index:n,payload:t,x:p.x2,y:p.y2});return i.createElement(er,TE({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),o&&i.createElement("line",TE({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:i.createElement(er,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,TE({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&IE(t.prototype,n),r&&IE(t,r),a}();zE.displayName="PolarAngleAxis",zE.axisType="angleAxis",zE.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 UE=ya(Object.getPrototypeOf,Object),HE=yr,VE=UE,KE=Io,WE=Function.prototype,$E=Object.prototype,qE=WE.toString,GE=$E.hasOwnProperty,ZE=qE.call(Object);var YE=function(e){if(!KE(e)||"[object Object]"!=HE(e))return!1;var t=VE(e);if(null===t)return!0;var n=GE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qE.call(n)==ZE};function XE(e){return XE="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},XE(e)}function JE(){return JE=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},JE.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 eA(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){tA(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 tA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nA(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 rA(e,t){return rA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rA(e,t)}function iA(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=aA(e);if(t){var i=aA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oA(this,n)}}function oA(e,t){return!t||"object"!==XE(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 aA(e){return aA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aA(e)}var sA=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&&rA(e,t)}(a,m);var t,n,r,o=iA(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=o.call(this,e)).state=void 0,t.id=kf("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),br(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),br(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},t}return t=a,n=[{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 t=this.props,n=t.label,r=t.labelLine,o=t.dataKey,s=t.valueKey,c=$n(this.props),u=$n(n),l=$n(r),f=n&&n.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,d=mS(e.cx,e.cy,e.outerRadius+f,p),h=eA(eA(eA(eA({},c),e),{},{stroke:"none"},u),{},{index:t,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=eA(eA(eA(eA({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[mS(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=o;return Wf(o)&&Wf(s)?y="value":Wf(o)&&(y=s),i.createElement(er,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,BO(e,y)))}));return i.createElement(er,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,s=n.inactiveShape;return e.map((function(e,n){var c=s&&t.hasActiveIndex()?s:null,u=t.isActiveIndex(n)?r:c,l=eA(eA({},e),{},{stroke:o?e.fill:e.stroke});return i.createElement(er,JE({className:"recharts-pie-sector"},Gn(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],i=t>0?ac(e,"paddingAngle",0):0;if(n){var s=Tf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=eA(eA({},e),{},{startAngle:a+i,endAngle:a+s(r)+i});o.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Tf(0,u-f)(r),d=eA(eA({},e),{},{startAngle:a+i,endAngle:a+p+i});o.push(d),a=d.endAngle}})),i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,a=e.cx,s=e.cy,c=e.innerRadius,u=e.outerRadius,l=e.isAnimationActive,f=this.state.isAnimationFinished;if(t||!n||!n.length||!Cf(a)||!Cf(s)||!Cf(c)||!Cf(u))return null;var p=zn("recharts-pie",r);return i.createElement(er,{className:p},this.renderSectors(),o&&this.renderLabels(n),MS.renderCallByParent(this.props,null,!1),(!l||f)&&VS.renderCallByParent(this.props,n,!1))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(vk,JE({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(i.isValidElement(e))return i.cloneElement(e,t);var r=n;return br(e)&&(r=e(t),i.isValidElement(r))?r:i.createElement(nm,JE({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(tk,JE({},t,e)):i.createElement(tk,t)}}],n&&nA(t.prototype,n),r&&nA(t,r),a}();sA.displayName="Pie",sA.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:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},sA.parseDeltaAngle=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),360)},sA.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return eA(eA(eA({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return eA(eA({},i),e.props)})):[]},sA.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=bS(i,o);return{cx:r+Ef(e.props.cx,i,i/2),cy:n+Ef(e.props.cy,o,o/2),innerRadius:Ef(e.props.innerRadius,a,0),outerRadius:Ef(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},sA.getComposedData=function(e){var t=e.item,n=e.offset,r=sA.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,c=i.paddingAngle,u=i.dataKey,l=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=sA.parseCoordinateOfPie(t,n),g=sA.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Wf(u)&&Wf(f)?(Gy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Wf(u)&&(Gy(!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!==BO(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=BO(t,v,0);return e+(Cf(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=BO(e,v,0),i=BO(e,l,t),s=(Cf(r)?r:0)/_,u=(n=t?b.endAngle+xf(g)*c*(0!==r?1:0):a)+xf(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:i,value:r,payload:e,dataKey:v,type:p}],w=mS(h.cx,h.cy,y,f);return b=eA(eA(eA({percent:s,cornerRadius:o,name:i,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:BO(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:xf(g)*c})})));return eA(eA({},h),{},{sectors:m,data:r})};var cA={exports:{}};var uA=function(e){return e&&e.length?e[0]:void 0},lA=St(cA.exports=uA);function fA(e){return fA="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},fA(e)}function pA(){return pA=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},pA.apply(this,arguments)}function dA(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 hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dA(Object(n),!0).forEach((function(t){gA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(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 mA(e,t){return mA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mA(e,t)}function bA(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=xA(e);if(t){var i=xA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wA(this,n)}}function wA(e,t){return!t||"object"!==fA(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 xA(e){return xA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xA(e)}var _A=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&&mA(e,t)}(a,m);var t,n,r,o=bA(a);function a(){var e;yA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(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 t=a,n=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,o=$n(this.props),s=$n(n),c=e.map((function(e,t){var i=hA(hA(hA({key:"dot-".concat(t),r:3},o),s),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,i)}));return i.createElement(er,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,o=n.dot,a=n.isRange,s=n.baseLinePoints,c=n.connectNulls;return t=i.isValidElement(r)?i.cloneElement(r,hA(hA({},this.props),{},{points:e})):br(r)?r(hA(hA({},this.props),{},{points:e})):i.createElement(Hk,pA({},$n(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i.createElement(er,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,i=u&&u.length/n.length,o=n.map((function(e,t){var n=u&&u[Math.floor(t*i)];if(n){var o=Tf(n.x,e.x),a=Tf(n.y,e.y);return hA(hA({},e),{},{x:o(r),y:a(r)})}var s=Tf(e.cx,e.x),c=Tf(e.cy,e.y);return hA(hA({},e),{},{x:s(r),y:c(r)})}));return e.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&mm(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,o=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,s=zn("recharts-radar",n);return i.createElement(er,{className:s},this.renderPolygon(),(!o||a)&&VS.renderCallByParent(this.props,r))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,pA({},t,{className:"recharts-radar-dot"}))}}],n&&vA(t.prototype,n),r&&vA(t,r),a}();function CA(e){return CA="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},CA(e)}function OA(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 SA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(n),!0).forEach((function(t){kA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AA(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 jA(e,t){return jA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jA(e,t)}function MA(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=DA(e);if(t){var i=DA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return PA(this,n)}}function PA(e,t){return!t||"object"!==CA(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 DA(e){return DA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},DA(e)}_A.displayName="Radar",_A.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_A.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=BO(e,n.dataKey,r),f=BO(e,i),p=n.scale(l)+(o||0),d=xo(f)?IS(f):f,h=Wf(d)?void 0:t.scale(d);xo(f)&&f.length>=2&&(c=!0),u.push(hA(hA({},mS(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(xo(e.value)){var n=lA(e.value),r=Wf(n)?void 0:t.scale(n);l.push(hA(hA({},e),{},{radius:r},mS(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}};var IA=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&&jA(e,t)}(a,m);var t,n,r,o=MA(a);function a(){var e;AA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return xf(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,s=n.cornerRadius,c=EA(n,["shape","activeShape","activeIndex","cornerRadius"]),u=$n(c);return e.map((function(e,n){var l=SA(SA(SA(SA({},u),{},{cornerRadius:s},e),Gn(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===o?i:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.startAngle,e.startAngle),o=Tf(n.endAngle,e.endAngle);return SA(SA({},e),{},{startAngle:i(r),endAngle:o(r)})}var a=e.endAngle,s=e.startAngle,c=Tf(s,a);return SA(SA({},e),{},{endAngle:c(r)})}));return i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=$n(this.props.background);return e.map((function(e,i){e.value;var o=e.background,s=EA(e,["value","background"]);if(!o)return null;var c=SA(SA(SA(SA(SA({cornerRadius:n},s),{},{fill:"#eee"},o),r),Gn(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.background,a=e.isAnimationActive;if(t||!n||!n.length)return null;var s=this.state.isAnimationFinished,c=zn("recharts-area",r);return i.createElement(er,{className:c},o&&i.createElement(er,{className:"recharts-radial-bar-background"},this.renderBackground(n)),i.createElement(er,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&VS.renderCallByParent(SA(SA({},this.props),{},{clockWise:this.getDeltaAngle()<0}),n))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(tk,t)}}],n&&TA(t.prototype,n),r&&TA(t,r),a}();IA.displayName="RadialBar",IA.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},IA.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=YO(l,t);if(!d)return null;var h=o.cx,g=o.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?o:r,x=u?w.scale.domain():null,_=rS({numericAxis:w}),C=lm(m,Zy.displayName);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=XO(u[p+s],x):(l=BO(e,c),xo(l)||(l=[_,l])),"radial"===y){v=nS({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:s}),O=o.scale(l[1]),w=o.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=xf(k||b)*(Math.abs(b)-Math.abs(k));S={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]),O=(w=nS({axis:o,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+=xf(E||b)*(Math.abs(b)-Math.abs(E))}return SA(SA(SA(SA({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:O},C&&C[s]&&C[s].props),{},{tooltipPayload:[lS(t,e)],tooltipPosition:mS(h,g,(v+m)/2,(w+O)/2)})})),layout:y}};var RA=Math.ceil,LA=Math.max;var NA=Zg;var BA=function(e){return e?Infinity===(e=NA(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},FA=function(e,t,n,r){for(var i=-1,o=LA(RA((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},zA=rg,UA=BA;var HA=function(e){return function(t,n,r){return r&&"number"!=typeof r&&zA(t,n,r)&&(n=r=void 0),t=UA(t),void 0===n?(n=t,t=0):n=UA(n),r=void 0===r?t<n?1:-1:UA(r),FA(t,n,r,e)}}();function VA(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 KA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VA(Object(n),!0).forEach((function(t){WA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WA(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=["Webkit","Moz","O","ms"];function qA(e){return qA="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},qA(e)}function GA(){return GA=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},GA.apply(this,arguments)}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(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 QA(e,t){return QA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QA(e,t)}function eT(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=rT(e);if(t){var i=rT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tT(this,n)}}function tT(e,t){return!t||"object"!==qA(t)&&"function"!=typeof t?nT(e):t}function nT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rT(e)}var iT=function(e){return e.changedTouches&&!!e.changedTouches.length},oT=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&&QA(e,t)}(a,m);var t,n,r,o=eT(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=o.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=iT(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(nT(t),"startX"),endX:t.handleTravellerDragStart.bind(nT(t),"endX")},t.state={},t}return t=a,n=[{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,i=this.props,o=i.gap,s=i.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%o,endIndex:f===s?s:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=BO(n[e],i,e);return br(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,c=o.travellerWidth,u=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-i,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=iT(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,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],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[i]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((XA(t={},i,s+y),XA(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?m%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:m%d==0)||o>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,s=e.stroke;return i.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,s=e.children,c=e.padding,u=g.only(s);return u?i.cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,s=n.height,c=n.traveller,u=Math.max(e,this.props.x),l=YA(YA({},$n(this.props)),{},{x:u,y:r,width:o,height:s});return i.createElement(er,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,s=n.travellerWidth,c=Math.min(e,t)+s,u=Math.max(Math.abs(t-e)-s,0);return i.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:r,width:u,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return i.createElement(er,{className:"recharts-brush-texts"},i.createElement(nm,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(nm,GA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=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(!t||!t.length||!Cf(o)||!Cf(a)||!Cf(s)||!Cf(c)||s<=0||c<=0)return null;var y=zn("recharts-brush",n),v=1===i.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=$A.reduce((function(e,r){return KA(KA({},e),{},WA({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return i.createElement(er,{className:y,onMouseMove:this.handleDrag,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())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,s=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return YA({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=sw().domain(HA(0,s)).range([i,i+o-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:i,travellerWidth:o,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,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 i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],n&&JA(t.prototype,n),r&&JA(t,r),a}();oT.displayName="Brush",oT.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 aT=bh;var sT=no,cT=zc,uT=function(e,t){var n;return aT(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},lT=xo,fT=rg;var pT=function(e,t,n){var r=lT(e)?sT:uT;return n&&fT(e,t,n)&&(t=void 0),r(e,cT(t))},dT=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var hT=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},gT=bh;var yT=hT,vT=function(e,t){var n=!0;return gT(e,(function(e,r,i){return n=!!t(e,r,i)})),n},mT=zc,bT=xo,wT=rg;var xT=function(e,t,n){var r=bT(e)?yT:vT;return n&&wT(e,t,n)&&(t=void 0),r(e,mT(t))},_T=Vh;var CT=function(e,t,n){"__proto__"==t&&_T?_T(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},OT=CT,ST=vh,kT=zc;var ET=function(e,t){var n={};return t=kT(t),ST(e,(function(e,r,i){OT(n,r,t(e,r,i))})),n};function AT(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 TT(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 jT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TT(Object(n),!0).forEach((function(t){MT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PT=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!fm(c,"Bar");return u.reduce((function(o,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],O=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(S[t-1]||0),O))}));var k=O/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var A=Ef(e.barCategoryGap,k*E),T=k*E/2;c=T-A-(T-A)/E*A}}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 j=GO(g,i,f),M=j.scale,P=j.realScaleType;M.domain(v).range(u),ZO(M);var D=eS(M,jT(jT({},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 I=jT(jT(jT({},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 I.bandSize=cS(I,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*I.width):l[_]+=(h?-1:1)*I.height,jT(jT({},o),{},MT({},a,I))}),{})},DT=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},IT=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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}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&&AT(t.prototype,n),r&&AT(t,r),e}();IT.EPS=1e-4;var RT=function(e){var t=Object.keys(e).reduce((function(t,n){return jT(jT({},t),{},MT({},n,IT.create(e[n])))}),{});return jT(jT({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return ET(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return xT(e,(function(e,n){return t[n].isInRange(e)}))}})};function LT(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 NT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LT(Object(n),!0).forEach((function(t){BT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zT(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 zT(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 zT(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 UT(){return UT=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},UT.apply(this,arguments)}function HT(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;Gy(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,s=o.y,c=o.width,u=o.height,l=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:l});if(dT(i,"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=i.x,y=i.xAxis.orientation,v=e.x.apply(g,{position:l});if(dT(i,"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=i.segment.map((function(t){return e.apply(t,{position:l})}));return dT(i,"discard")&&pT(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(RT({x:o.scale,y:a.scale}),Of(t),Of(n),r&&2===r.length,e);if(!f)return null;var p=FT(f,2),d=p[0],h=d.x,g=d.y,y=p[1],v=y.x,m=y.y,b=NT(NT({clipPath:dT(e,"hidden")?"url(#".concat(l,")"):void 0},$n(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return i.createElement(er,{className:zn("recharts-reference-line",c)},function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement("line",UT({},t,{className:"recharts-reference-line-line"}))}(s,b),MS.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return DT({x:t,y:n},{x:r,y:i})}({x1:h,y1:g,x2:v,y2:m})))}function VT(){return VT=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},VT.apply(this,arguments)}function KT(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 WT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KT(Object(n),!0).forEach((function(t){$T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}HT.displayName="ReferenceLine",HT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function qT(e){var t=e.x,n=e.y,r=e.r,o=e.alwaysShow,a=e.clipPathId,s=Of(t),c=Of(n);if(Gy(void 0===o,'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,i=e.yAxis,o=RT({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return dT(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=WT(WT({clipPath:dT(e,"hidden")?"url(#".concat(a,")"):void 0},$n(e,!0)),{},{cx:l,cy:f});return i.createElement(er,{className:zn("recharts-reference-dot",d)},qT.renderDot(p,h),MS.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function GT(){return GT=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},GT.apply(this,arguments)}function ZT(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 YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qT.displayName="ReferenceDot",qT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},qT.renderDot=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,VT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function JT(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Gy(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Of(t),l=Of(n),f=Of(r),p=Of(o),d=e.shape;if(!(u||l||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,c=i.y2,u=i.xAxis,l=i.yAxis;if(!u||!l)return null;var f=RT({x:u.scale,y:l.scale}),p={x:e?f.x.apply(o,{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!dT(i,"discard")||f.isInRange(p)&&f.isInRange(d)?DT(p,d):null}(u,l,f,p,e);if(!h&&!d)return null;var g=dT(e,"hidden")?"url(#".concat(c,")"):void 0;return i.createElement(er,{className:zn("recharts-reference-area",a)},JT.renderRect(d,YT(YT({clipPath:g},$n(e,!0)),h)),MS.renderCallByParent(e,h))}function QT(e){return QT="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},QT(e)}function ej(){return ej=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},ej.apply(this,arguments)}function tj(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 nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oj(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 aj(e,t){return aj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aj(e,t)}function sj(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=uj(e);if(t){var i=uj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==QT(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 uj(e){return uj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uj(e)}JT.displayName="ReferenceArea",JT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},JT.renderRect=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,GT({},t,{className:"recharts-reference-area-rect"}))};var 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&&aj(e,t)}(a,w);var t,n,r,o=sj(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=o.call(this,e)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=ij(e,["viewBox"]),i=this.props,o=i.viewBox,a=ij(i,["viewBox"]);return!rm(n,o)||!rm(r,a)||!rm(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,i,o,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=Cf(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=u+ +!h*f)-y*v)-y*g,o=m;break;case"left":r=i=e.coordinate,o=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=i=e.coordinate,o=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(i=u+ +h*f)+y*v)+y*g,o=m}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,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,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=nj(nj(nj({},$n(this.props)),$n(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=nj(nj({},u),{},{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f=+("left"===a&&!s||"right"===a&&s);u=nj(nj({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return i.createElement("line",ej({},u,{className:zn("recharts-cartesian-axis-line",ac(c,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,o=this.props,s=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,f=o.unit,p=a.getTicks(nj(nj({},this.props),{},{ticks:e}),t,n),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=$n(this.props),y=$n(u),v=nj(nj({},g),{},{fill:"none"},$n(s)),m=p.map((function(e,t){var n=r.getTickLineCoord(e),o=n.line,m=n.tick,b=nj(nj(nj(nj({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:l});return i.createElement(er,ej({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Gn(r.props,e,t)),s&&i.createElement("line",ej({},v,o,{className:zn("recharts-cartesian-axis-tick-line",ac(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(br(l)?l(e.value,t):e.value).concat(f||"")))}));return i.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,l=ij(c,["ticks"]),f=u;return br(a)&&(f=u&&u.length>0?a(this.props):a(l)),r<=0||o<=0||!f||!f.length?null:i.createElement(er,{className:zn("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),MS.renderCallByParent(this.props))}}],r=[{key:"getTicks",value:function(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return i&&i.length&&r?Cf(u)||_g.isSsr?a.getNumberIntervalTicks(i,"number"==typeof u&&Cf(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:i,tickFormatter:l,viewBox:o,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,i=e.ticks,o=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=(i||[]).slice(),m=u&&"width"===y?Nv(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?xf(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=i[b-1],_=br(o)?o(x.value,b-1):x.value,C=Nv(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*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]=nj(nj({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],A=br(o)?o(E.value,k):E.value,T=Nv(A,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var j=w*(E.coordinate-w*T/2-n);v[k]=E=nj(nj({},E),{},{tickCoord:j<0?E.coordinate-j*w:E.coordinate})}else v[k]=E=nj(nj({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*T/2-n)>=0&&w*(E.tickCoord+w*T/2-r)<=0&&(n=E.tickCoord+w*(T/2+c),v[k]=nj(nj({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Nv(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?xf(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],_=br(i)?i(x.value,m-w-1):x.value,C=Nv(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=nj(nj({},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]=nj(nj({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,ej({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&oj(t.prototype,n),r&&oj(t,r),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){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hj(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 gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hj(Object(n),!0).forEach((function(t){yj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mj(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 bj(e,t){return bj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bj(e,t)}function wj(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 i=_j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xj(this,n)}}function xj(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 _j(e){return _j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_j(e)}lj.displayName="CartesianAxis",lj.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 Cj=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&&bj(e,t)}(a,m);var t,n,r,o=wj(a);function a(){return vj(this,a),o.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,s=n.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,s=n.vertical;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:o+s-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:a,width:l,height:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:a+c-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),y:Math.round(e+a-a),x:o,height:l,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,a=t.width,s=t.height;return i.createElement("rect",{x:r,y:o,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=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(!Cf(r)||r<=0||!Cf(o)||o<=0||!Cf(t)||t!==+t||!Cf(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!br(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!br(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),i.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,s=t.y2,c=t.key,u=dj(t,["x1","y1","x2","y2","key"]);n=i.createElement("line",pj({},$n(u),{x1:r,y1:o,x2:a,y2:s,fill:"none",key:c}))}return n}}],n&&mj(t.prototype,n),r&&mj(t,r),a}();function Oj(){return Oj=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},Oj.apply(this,arguments)}function Sj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kj(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 kj(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 kj(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 Ej(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Aj(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=Ej(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=$n(l),p=a.map((function(e,a){var l=s(e,o),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=Sj(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=c.scale,x=d+t,_=x+r,C=x-r,O=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:C}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:_,x2:O,y2:C})}else if("horizontal"===n){var k=u.scale,E=p+t,A=E-r,T=E+r,j=k(h-y),M=k(h+v);m.push({x1:A,y1:M,x2:T,y2:M}),m.push({x1:E,y1:j,x2:E,y2:M}),m.push({x1:A,y1:j,x2:T,y2:j})}return i.createElement(er,Oj({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,t){return i.createElement("line",Oj({},e,{key:"line-".concat(t)}))})))}));return i.createElement(er,{className:"recharts-errorBars"},p)}function Tj(e){return Tj="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},Tj(e)}function jj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mj(){return Mj=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},Mj.apply(this,arguments)}function Pj(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 Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pj(Object(n),!0).forEach((function(t){Ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rj(e){return function(e){if(Array.isArray(e))return Lj(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 Lj(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 Lj(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 Lj(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 Nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bj(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 Fj(e,t){return Fj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fj(e,t)}function zj(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=Hj(e);if(t){var i=Hj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uj(this,n)}}function Uj(e,t){return!t||"object"!==Tj(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 Hj(e){return Hj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hj(e)}Cj.displayName="CartesianGrid",Cj.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},Aj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Aj.displayName="ErrorBar";var Vj=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&&Fj(e,t)}(a,m);var t,n,r,o=zj(a);function a(){var e;Nj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[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})),i=Math.floor(e/r),o=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>o){c=[].concat(Rj(n.slice(0,u)),[o-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(Rj(a.repeat(n,i)),Rj(c),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=kf("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 t=a,n=[{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,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e.payload,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,s=n.dataKey,c=$n(this.props),u=$n(r,!0),l=o.map((function(e,t){var n=Dj(Dj(Dj({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(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.createElement(er,Mj({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,s=o.layout,c=o.connectNulls;o.ref;var u=jj(o,["type","layout","connectNulls","ref"]),l=Dj(Dj(Dj({},$n(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:s,connectNulls:c});return i.createElement(vk,Mj({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.animateNewValues,d=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return i.createElement(Cd,{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(r){var i=r.t;if(y){var s=y.length/o.length,c=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=Tf(r.x,e.x),a=Tf(r.y,e.y);return Dj(Dj({},e),{},{x:o(i),y:a(i)})}if(p){var c=Tf(2*d,e.x),u=Tf(h/2,e.y);return Dj(Dj({},e),{},{x:c(i),y:u(i)})}return Dj(Dj({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(c,e,t)}var u,l=Tf(0,v)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!mm(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=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(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-line",o),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||n)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{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(Rj(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(Rj(r),Rj(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=zn("recharts-line-dot",e?e.className:"");n=i.createElement(Xk,Mj({},t,{className:r}))}return n}}],n&&Bj(t.prototype,n),r&&Bj(t,r),a}();function Kj(e){return Kj="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},Kj(e)}function Wj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $j(){return $j=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},$j.apply(this,arguments)}function qj(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 Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(n),!0).forEach((function(t){Zj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zj(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 Xj(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 Jj(e,t){return Jj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jj(e,t)}function Qj(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=tM(e);if(t){var i=tM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eM(this,n)}}function eM(e,t){return!t||"object"!==Kj(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 tM(e){return tM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tM(e)}Vj.displayName="Line",Vj.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_g.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},Vj.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return Dj({points:c.map((function(e,t){var c=BO(e,a);return"horizontal"===l?{x:tS({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:Wf(c)?null:r.scale(c),value:c,payload:e}:{x:Wf(c)?null:n.scale(c),y:tS({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)};var nM=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&&Jj(e,t)}(a,m);var t,n,r,o=Qj(a);function a(){var e;Yj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!0},e.id=kf("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var o=this.props,s=o.dot,c=o.points,u=o.dataKey,l=$n(this.props),f=$n(s,!0),p=c.map((function(e,t){var n=Gj(Gj(Gj({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(t,")"):null};return i.createElement(er,$j({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.y||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.y||0}))),u)),Cf(u)?i.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.x||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.x||0}))),u)),Cf(u)?i.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(o?parseInt("".concat(o),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,t,n,r){var o=this.props,a=o.layout,s=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var f=Wj(o,["layout","type","stroke","connectNulls","isRange","ref"]);return i.createElement(er,{clipPath:n?"url(#clipPath-".concat(r,")"):null},i.createElement(vk,$j({},$n(f,!0),{points:e,connectNulls:u,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.baseLine,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return i.createElement(Cd,{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(r){var s=r.t;if(d){var c,u=d.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e}));return c=Cf(a)&&"number"==typeof a?Tf(h,a)(s):Wf(a)||yf(a)?Tf(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e})),n.renderAreaStatically(l,c,e,t)}return i.createElement(er,null,i.createElement("defs",null,i.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),i.createElement(er,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return o&&r&&r.length&&(!s&&u>0||!mm(s,r)||!mm(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=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(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-area",o),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{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}}],n&&Xj(t.prototype,n),r&&Xj(t,r),a}();function rM(e){return rM="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},rM(e)}function iM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oM(){return oM=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},oM.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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(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 fM(e,t){return fM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fM(e,t)}function pM(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 i=hM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dM(this,n)}}function dM(e,t){return!t||"object"!==rM(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 hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hM(e)}nM.displayName="Area",nM.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nM.getBaseValue=function(e,t,n,r){var i=e.layout,o=t.props.baseValue;if(Cf(o)&&"number"==typeof o)return o;var a="horizontal"===i?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"===o?u:"dataMax"===o||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===o?s[0]:"dataMax"===o?s[1]:s[0]},nM.getComposedData=function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=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=nM.getBaseValue(n,r,i,o),v=!1,m=p.map((function(e,t){var n,r=BO(e,u);g?n=l[f+t]:xo(n=r)?v=!0:n=[y,n];var p=Wf(n[1])||g&&Wf(r);return"horizontal"===h?{x:tS({axis:i,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:tS({axis:o,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:Wf(ac(e,"value[0]"))||Wf(ac(e,"y"))?null:o.scale(ac(e,"value[0]"))}:{x:Wf(ac(e,"value[0]"))?null:i.scale(ac(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(y):i.scale(y),Gj({points:m,baseLine:t,layout:h,isRange:v},d)},nM.renderDotItem=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,$j({},t,{className:"recharts-area-dot"}))};var gM=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&&fM(e,t)}(a,m);var t,n,r,o=pM(a);function a(){var e;uM(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.id=kf("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 t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=$n(this.props);return e&&e.map((function(e,o){var s=sM(sM(sM({},r),e),{},{index:o});return i.createElement(er,oM({className:"recharts-bar-rectangle"},Gn(t.props,e,o),{key:"rectangle-".concat(o)}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,c=t.animationEasing,u=t.animationId,l=this.state.prevData;return i.createElement(Cd,{begin:a,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,a=n.map((function(e,t){var n=l&&l[t];if(n){var i=Tf(n.x,e.x),a=Tf(n.y,e.y),s=Tf(n.width,e.width),c=Tf(n.height,e.height);return sM(sM({},e),{},{x:i(o),y:a(o),width:s(o),height:c(o)})}if("horizontal"===r){var u=Tf(0,e.height)(o);return sM(sM({},e),{},{y:e.y+e.height-u,height:u})}var f=Tf(0,e.width)(o);return sM(sM({},e),{},{width:f})}));return i.createElement(er,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&&mm(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=$n(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=iM(t,["value","background"]);if(!i)return null;var s=sM(sM(sM(sM(sM({},o),{},{fill:"#eee"},i),n),Gn(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,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;var c="vertical"===o?t[0].height/2:t[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=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(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-bar",r),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,v=Wf(d)?this.id:d;return i.createElement(er,{className:g},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:s,y:c,width:u,height:l}))):null,i.createElement(er,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&VS.renderCallByParent(this.props,n))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,t)}}],n&&lM(t.prototype,n),r&&lM(t,r),a}();gM.displayName="Bar",gM.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},gM.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=YO(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:o,w=u?b.scale.domain():null,x=rS({numericAxis:b}),_=lm(v,Zy.displayName),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=XO(u[l+t],w):(r=BO(e,y),xo(r)||(r=[x,r])),"horizontal"===h){if(f=nS({axis:o,ticks:s,bandSize:i,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=xf(v||m)*(Math.abs(m)-Math.abs(v));p-=C,v+=C}}else f=o.scale(r[0]),p=nS({axis:a,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),g=o.scale(r[1])-o.scale(r[0]),v=d.size,b={x:o.x,y:p,width:o.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=xf(g||m)*(Math.abs(m)-Math.abs(g)));return sM(sM(sM({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[lS(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return sM({data:C,layout:h},p)};var yM=function(){return null};function vM(e){return vM="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},vM(e)}function mM(){return mM=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},mM.apply(this,arguments)}function bM(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 wM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(n),!0).forEach((function(t){xM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CM(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 OM(e,t){return OM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OM(e,t)}function SM(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=EM(e);if(t){var i=EM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kM(this,n)}}function kM(e,t){return!t||"object"!==vM(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 EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},EM(e)}yM.displayName="ZAxis",yM.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var AM=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&&OM(e,t)}(a,m);var t,n,r,o=SM(a);function a(){var e;_M(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=kf("recharts-scatter-"),e}return t=a,n=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,s=n.activeIndex,c=$n(this.props);return e.map((function(e,n){var u=wM(wM({key:"symbol-".concat(n)},c),e);return i.createElement(er,mM({className:"recharts-scatter-symbol"},Gn(t.props,e,n),{key:"symbol-".concat(n)}),a.renderSymbolItem(s===n?o:r,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.cx,e.cx),o=Tf(n.cy,e.cy),a=Tf(n.size,e.size);return wM(wM({},e),{},{cx:i(r),cy:o(r),size:a(r)})}var s=Tf(0,e.size);return wM(wM({},e),{},{size:s(r)})}));return i.createElement(er,null,e.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.children,a=lm(o,Aj.displayName);if(!a)return null;function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:BO(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:BO(e,t)}}return a.map((function(e,o){var a=e.props.direction;return i.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:s})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,o=n.line,a=n.lineType,s=n.lineJointType,c=$n(this.props),u=$n(o);if("joint"===a)e=r.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,i=0,o=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,i+=c*u,o+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),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=wM(wM(wM({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return t=i.isValidElement(o)?i.cloneElement(o,y):br(o)?o(y):i.createElement(vk,mM({},y,{type:s})),i.createElement(er,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,o=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(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-scatter",o),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Wf(p)?this.id:p;return i.createElement(er,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:c,y:u,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),i.createElement(er,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&VS.renderCallByParent(this.props,n))}}],r=[{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,t){var n;return i.isValidElement(e)?n=i.cloneElement(e,t):br(e)?n=e(t):"string"==typeof e&&(n=i.createElement(Ql,mM({},t,{type:e}))),n}}],n&&CM(t.prototype,n),r&&CM(t,r),a}();AM.displayName="Scatter",AM.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},AM.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=lm(i.props.children,Zy.displayName),f=Wf(t.dataKey)?i.props.dataKey:t.dataKey,p=Wf(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:yM.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=o.map((function(e,o){var c=BO(e,f),h=BO(e,p),m=!Wf(d)&&BO(e,d)||"-",b=[{name:Wf(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Wf(n.dataKey)?i.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=tS({axis:t,ticks:a,bandSize:y,entry:e,index:o,dataKey:f}),x=tS({axis:n,ticks:s,bandSize:v,entry:e,index:o,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return wM(wM({},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[o]&&l[o].props)}));return wM({points:m},c)};var TM=function(){return null};TM.displayName="XAxis",TM.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 jM=function(){return null};jM.displayName="YAxis",jM.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 MM=zc,PM=Oa,DM=Aa;var IM=function(e){return function(t,n,r){var i=Object(t);if(!PM(t)){var o=MM(n);t=DM(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},RM=BA;var LM=Uc,NM=zc,BM=function(e){var t=RM(e),n=t%1;return t==t?n?t-n:t:0},FM=Math.max;var zM=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:BM(n);return i<0&&(i=FM(r+i,0)),LM(e,NM(t),i)},UM=IM(zM),HM=ty,VM=Un;var KM=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return VM(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),HM(e,t,{leading:r,maxWait:t,trailing:i})},WM=yr,$M=Io;var qM=function(e){return!0===e||!1===e||$M(e)&&"[object Boolean]"==WM(e)},GM=function(e,t,n,r,i){var o=lm(e,HT.displayName),a=lm(e,qT.displayName),s=o.concat(a),c=lm(e,JT.displayName),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&dT(t.props,"extendDomain")&&Cf(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&&dT(t.props,"extendDomain")&&Cf(t.props[p])&&Cf(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Cf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ZM={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||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,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},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 i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].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,i,o,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,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,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,i);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 o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}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}(ZM);var YM=new(0,ZM.exports);YM.setMaxListeners&&YM.setMaxListeners(10);var XM="recharts.syncMouseEvents";function JM(e){return JM="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},JM(e)}function QM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||uP(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 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){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nP(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 rP(e,t){return rP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rP(e,t)}function iP(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=sP(e);if(t){var i=sP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oP(this,n)}}function oP(e,t){return!t||"object"!==JM(t)&&"function"!=typeof t?aP(e):t}function aP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(e){return sP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sP(e)}function cP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uP(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 uP(e,t){if(e){if("string"==typeof e)return lP(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)?lP(e,t):void 0}}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 fP(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 pP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hP={xAxis:["bottom","top"],yAxis:["left","right"]},gP={x:0,y:0},yP=Number.isFinite?Number.isFinite:isFinite,vP="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,mP="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,bP=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(cP(e),cP(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&&Cf(i)&&Cf(o)?e.slice(i,o+1):[]},wP=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=bP(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,s=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=jf(void 0===s?a:s,o.dataKey,r):i=s&&s[n]||a[n];return i?[].concat(cP(e),[lS(t,i)]):e}),[])},xP=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,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,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.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(xf(l-u)!==xf(f-l)){var d=[];if(xf(f-l)===xf(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]){o=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){o=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){o=n[b].index;break}}else o=0;return o}(o,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=wP(e,t,u,l),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return pP(pP(pP({},r),mS(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,c=r.angle;return pP(pP(pP({},r),mS(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return gP}(n,a,u,i);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},_P=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=KO(u,i),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[o],x=bP(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===w})),dataStartIndex:s,dataEndIndex:c}),_=x.length;if(!t[w]){var C,O,S;if(g){if(C=FO(x,g,h),"category"===h&&p){var k=function(e){if(!xo(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?(O=C,C=HA(0,_)):v||(C=uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(cP(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Wf(e)})):uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wf(t)?e:[].concat(cP(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,i){var o=t.map((function(t){return HO(e,t,n,i,r)})).filter((function(e){return!Wf(e)}));return o&&o.length?o.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[o]===w&&!e.props.hide})),g,i,u);E&&(C=E)}!p||"number"!==h&&"auto"===m||(S=FO(x,g,"category"))}else C=p?HA(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:iS(a[w].stackGroups,s,c):VO(x,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,u,!0);if("number"===h)C=GM(l,C,w,i,b),n.props.domain&&(C=sS(n.props.domain,C,y));else if("category"===h&&n.props.domain){var A=n.props.domain;C.every((function(e){return A.indexOf(e)>=0}))&&(C=A)}return pP(pP({},t),{},dP({},w,pP(pP({},n.props),{},{axisType:i,domain:C,categoricalDomain:S,duplicateDomain:O,originalDomain:n.props.domain,isCategorical:p,layout:u})))}return t}),{});return d},CP=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=lm(u,i),p={};return f&&f.length?p=_P(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=bP(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=KO(u,i),h=-1;return n.reduce((function(e,t){var g,y=t.props[o];return e[y]?e:(h++,d?g=HA(0,p):a&&a[y]&&a[y].hasStack?(g=iS(a[y].stackGroups,s,c),g=GM(l,g,y,i)):(g=sS(r.defaultProps.domain,VO(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=GM(l,g,y,i)),pP(pP({},e),{},dP({},y,pP(pP({axisType:i},r.defaultProps),{},{hide:!0,orientation:ac(hP,"".concat(i,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:d,layout:u}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},OP=function(e){var t=e.children,n=e.defaultShowTooltip,r=fm(t,oT.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Wf(n)&&n}},SP=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"}},kP=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=fm(u,oT.displayName),p=fm(u,Kf.displayName),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,ac(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=pP(pP({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||oT.defaultProps.height),p&&t&&(g=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),c=UO({children:i,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Cf(e[f])&&(u=LO(LO({},e),{},NO({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Cf(e[p])&&(u=LO(LO({},e),{},NO({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),pP(pP({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},EP=function(e){var t,n,r=e.chartName,o=e.GraphicalChild,s=e.defaultTooltipEventType,u=void 0===s?"axis":s,l=e.validateTooltipEventTypes,f=void 0===l?["axis"]:l,p=e.axisComponents,d=e.legendContent,h=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,l=e.barGap,f=e.barCategoryGap,d=e.maxBarSize,h=SP(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=am(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 i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var c=r[o[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 am(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];i[v]||(i[v]=[]),i[v].push({item:g[0],stackList:g.slice(1),barSize:Wf(y)?t:y})}}return i}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=bP(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")],O=p.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=o&&o[a];return pP(pP({},e),{},(dP(i={},r.axisType,s),dP(i,"".concat(r.axisType,"Ticks"),$O(s)),i))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Of(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[_].stackGroups),A=am(n.type).indexOf("Bar")>=0,T=cS(S,k),j=[];if(A){var M,P,D=Wf(x)?d:x,I=null!==(M=null!==(P=cS(S,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;j=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var c,u=Ef(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/s,p=o.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=o.reduce((function(e,t){var n=[].concat(DO(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=Ef(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=o.reduce((function(e,t,n){var r=[].concat(DO(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:l,barCategoryGap:f,bandSize:I!==T?I:T,sizeList:m[C],maxBarSize:D}),I!==T&&(j=j.map((function(e){return pP(pP({},e),{},{position:pP(pP({},e.position),{},{offset:e.position.offset-I/2})})})))}var R,L,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:pP(pP({},B(pP(pP({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:T,barPosition:j,offset:i,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(c)},dP(R,g,O[g]),dP(R,y,O[y]),dP(R,"animationId",o),R)),childIndex:(L=n,N=e.children,um(N).indexOf(L)),item:n})})),b},m=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!pm({props:n}))return null;var c=n.children,u=n.layout,l=n.stackOffset,f=n.data,d=n.reverseStackOrder,g=SP(u),v=g.numericAxisName,m=g.cateAxisName,b=lm(c,o),w=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Of(o)){var c=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[o]=c}else s.stackGroups[kf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return LO(LO({},e),{},NO({},a,s))}),{});return Object.keys(a).reduce((function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,o){var a=s.stackGroups[o];return LO(LO({},t),{},NO({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:QO(e,a.items,i)}))}),{})),LO(LO({},t),{},NO({},o,s))}),{})}(f,b,"".concat(v,"Id"),"".concat(m,"Id"),l,d),x=p.reduce((function(e,t){var r="".concat(t.axisType,"Map");return pP(pP({},e),{},dP({},r,CP(n,pP(pP({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=kP(pP(pP({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=h(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Af(S),{tooltipTicks:O=$O(C,!1,!0),orderedTooltipTicks:sg(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:cS(C,O)}),E=y(n,pP(pP({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return pP(pP({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return n=t=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&&rP(e,t)}(l,w);var t,n,o,s=iP(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!Wf(t.deferId)&&mP&&mP(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(pP({legendBBox:e},m({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},pP(pP({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=vP&&vP(t.applySyncEvent.bind(aP(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return pP({dataStartIndex:n,dataEndIndex:r},m({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?pP(pP({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&br(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),br(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=function(e){var t=e&&e.type;return t&&om[t]?om[t]:null}(e),r=ac(t.props,"".concat(n));n&&br(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;br(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;br(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return $O(e,!0)},t.renderCursor=function(e){var n=t.state,i=n.isTooltipActive,o=n.activeCoordinate,s=n.activePayload,u=n.offset,l=n.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==f)return null;var p,d=t.props.layout,h=vk;if("ScatterChart"===r)p=o,h=aE;else if("BarChart"===r)p=t.getCursorRectangle(),h=Ak;else if("radial"===d){var g=t.getCursorPoints(),y=g.cx,m=g.cy,b=g.radius;p={cx:y,cy:m,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:b,outerRadius:b},h=tk}else p={points:t.getCursorPoints()},h=vk;var w=e.key||"_recharts-cursor",x=pP(pP(pP(pP({stroke:"#ccc",pointerEvents:"none"},u),p),$n(e.props.cursor)),{},{payload:s,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return v(e.props.cursor)?c(e.props.cursor,x):a(h,x)},t.renderPolarAxis=function(e,n,r){var i=ac(e,"type.axisType"),o=ac(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return c(e,pP(pP({},o),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:$O(o,!0)}))},t.renderXAxis=function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)},t.renderYAxis=function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,s=a.width,u=a.height,l=Af(r),f=UM(i,(function(e){return xT(e.domain,yP)}))||Af(i),p=e.props||{};return c(e,{key:e.key||"grid",x:Cf(p.x)?p.x:o.left,y:Cf(p.y)?p.y:o.top,width:Cf(p.width)?p.width:o.width,height:Cf(p.height)?p.height:o.height,xAxis:l,yAxis:f,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,s=a.radiusAxisMap,u=a.angleAxisMap,l=Af(s),f=Af(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return c(e,{polarAngles:xo(i)?i:$O(f,!0).map((function(e){return e.coordinate})),polarRadius:xo(o)?o:$O(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},s=i-(a.left||0)-(a.right||0),u=UO({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!u)return null;var l=u.item,f=tP(u,["item"]);return c(l,pP(pP({},f),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=fm(e,Rg.displayName);if(!n)return null;var r=t.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,u=r.offset;return c(n,{viewBox:pP(pP({},u),{},{x:u.left,y:u.top}),active:i,label:s,payload:i?a:[],coordinate:o})},t.renderBrush=function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return c(e,{key:e.key||"_recharts-brush",onChange:qO(t.handleBrushChange,null,e.props.onChange),data:i,x:Cf(e.props.x)?e.props.x:a.left,y:Cf(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Cf(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var i=aP(t).clipPathId,o=t.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return c(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[f],yAxis:s[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=pP(pP({index:i,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:zO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},$n(u)),qn(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,pP(pP({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,f=a.activeLabel,p=t.props.children,d=fm(p,Rg.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&s&&d&&b&&l>=0,x={};"axis"!==o&&d&&"click"===d.props.trigger?x={onClick:qO(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:qO(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:qO(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=c(e,pP(pP({},i.props),x));if(w){var C,O;if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=jf(g,S,f),O=y&&v&&jf(v,S,f)}else C=g[l],O=y&&v&&v[l];if(!Wf(C))return[_].concat(cP(t.renderActivePoints({item:i,activePoint:C,basePoint:O,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},t.renderCustomized=function(e,n,r){return c(e,pP(pP({key:"recharts-customized-".concat(r)},t.props),t.state))},t.uniqueChartId=Wf(e.id)?kf("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=KM(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=l,n=[{key:"componentDidMount",value:function(){Wf(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Wf(e.syncId)&&!Wf(this.props.syncId)&&this.addListener(),!Wf(e.syncId)&&Wf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Wf(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=fm(this.props.children,Rg.displayName);if(e&&qM(e.props.shared)){var t=e.props.shared?"axis":"item";return f.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,i=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})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=Af(s).scale,l=Af(c).scale,f=u&&u.invert?u.invert(i.chartX):null,p=l&&l.invert?l.invert(i.chartY):null;return pP(pP({},i),{},{xValue:f,yValue:p})}var d=xP(this.state,this.props.data,this.props.layout,o);return d?pP(pP({},i),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Wf(a.cx)||!Wf(a.cy)){if("centric"!==i){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[mS(c,u,l,f),mS(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=mS(d,h,g,v),b=mS(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 i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Af(o);return CS({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=fm(e,Rg.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}),pP(pP({},qn(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){YM.on(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners+1)}},{key:"removeListener",value:function(){YM.removeListener(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Wf(t)||YM.emit(XM,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Wf(e.dataStartIndex)&&Wf(e.dataEndIndex))if(Wf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,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=pP(pP({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),y=Math.min(c,h.y+h.height),v=p[u]&&p[u].value,b=wP(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:gP;this.setState(pP(pP({},e),{},{activeLabel:v,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(pP({dataStartIndex:o,dataEndIndex:a},m({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===am(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,a=o.width,s=o.height;return i.createElement(lj,eP({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return i.createElement("defs",null,i.createElement("clipPath",{id:e},i.createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.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 i=t[n],o=i.props,a=i.item,s=am(a.type);if("Bar"===s){var c=(o.data||[]).find((function(t){return Ek(e,t)}));if(c)return{graphicalItem:i,payload:c}}else if("RadialBar"===s){var u=(o.data||[]).find((function(t){return CS(e,t)}));if(u)return{graphicalItem:i,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!pm(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,a=t.height,s=t.style,c=t.compact,u=t.title,l=t.desc,f=tP(t,["children","className","width","height","style","compact","title","desc"]),p=$n(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 i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d));var h=this.parseEventsOfWrapper();return i.createElement("div",eP({className:zn("recharts-wrapper",r),style:pP({position:"relative",cursor:"default",width:o,height:a},s)},h,{ref:function(t){e.container=t}}),i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d)),this.renderLegend(),this.renderTooltip())}}],n&&nP(t.prototype,n),o&&nP(t,o),l}(),t.displayName=r,t.defaultProps=pP({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g),t.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(Wf(t.updateId)){var u=OP(e);return pP(pP(pP({},u),{},{updateId:0},m(pP(pP({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!rm(c,t.prevMargin)){var l=OP(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=pP(pP({},xP(t,n,a)),{},{updateId:t.updateId+1}),d=pP(pP(pP({},l),f),p);return pP(pP(pP({},d),m(pP({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!hm(r,t.prevChildren)){var h=!Wf(n)?t.updateId:t.updateId+1;return pP(pP({updateId:h},m(pP(pP({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},t.renderActiveDot=function(e,t){var n;return n=v(e)?c(e,t):br(e)?e(t):i.createElement(Xk,t),i.createElement(er,{className:"recharts-active-dot",key:t.key},n)},n};EP({chartName:"LineChart",GraphicalChild:Vj,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT});var AP=EP({chartName:"BarChart",GraphicalChild:gM,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),TP=EP({chartName:"PieChart",GraphicalChild:sA,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var jP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},MP=CT,PP=xr,DP=Object.prototype.hasOwnProperty;var IP=function(e,t,n){var r=e[t];DP.call(e,t)&&PP(r,n)&&(void 0!==n||t in e)||MP(e,t,n)},RP=IP,LP=CT;var NP=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?LP(n,s,c):RP(n,s,c)}return n},BP=NP,FP=Aa;var zP=function(e,t){return e&&BP(t,FP(t),e)};var UP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},HP=Un,VP=ga,KP=UP,WP=Object.prototype.hasOwnProperty;var $P=function(e){if(!HP(e))return KP(e);var t=VP(e),n=[];for(var r in e)("constructor"!=r||!t&&WP.call(e,r))&&n.push(r);return n},qP=da,GP=$P,ZP=Oa;var YP=function(e){return ZP(e)?qP(e,!0):GP(e)},XP=NP,JP=YP;var QP=function(e,t){return e&&XP(t,JP(t),e)},eD={exports:{}};!function(e,t){var n=ir,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.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}}(eD,eD.exports);var tD=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},nD=NP,rD=Po;var iD=function(e,t){return nD(e,rD(e),t)},oD=wo,aD=UE,sD=Po,cD=ko,uD=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oD(t,sD(e)),e=aD(e);return t}:cD,lD=NP,fD=uD;var pD=function(e,t){return lD(e,fD(e),t)},dD=Oo,hD=uD,gD=YP;var yD=function(e){return dD(e,gD,hD)},vD=Object.prototype.hasOwnProperty;var mD=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vD.call(e,"index")&&(n.index=e.index,n.input=e.input),n},bD=co;var wD=function(e){var t=new e.constructor(e.byteLength);return new bD(t).set(new bD(e)),t},xD=wD;var _D=function(e,t){var n=t?xD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},CD=/\w*$/;var OD=function(e){var t=new e.constructor(e.source,CD.exec(e));return t.lastIndex=e.lastIndex,t},SD=or?or.prototype:void 0,kD=SD?SD.valueOf:void 0;var ED=wD;var AD=wD,TD=_D,jD=OD,MD=function(e){return kD?Object(kD.call(e)):{}},PD=function(e,t){var n=t?ED(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var DD=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return AD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return TD(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 PD(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 jD(e);case"[object Symbol]":return MD(e)}},ID=Un,RD=Object.create,LD=function(){function e(){}return function(t){if(!ID(t))return{};if(RD)return RD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ND=LD,BD=UE,FD=ga;var zD=function(e){return"function"!=typeof e.constructor||FD(e)?{}:ND(BD(e))},UD=Ja,HD=Io;var VD=function(e){return HD(e)&&"[object Map]"==UD(e)},KD=Qo,WD=ea.exports,$D=WD&&WD.isMap,qD=$D?KD($D):VD,GD=Ja,ZD=Io;var YD=function(e){return ZD(e)&&"[object Set]"==GD(e)},XD=Qo,JD=ea.exports,QD=JD&&JD.isSet,eI=QD?XD(QD):YD,tI=Yi,nI=jP,rI=IP,iI=zP,oI=QP,aI=eD.exports,sI=tD,cI=iD,uI=pD,lI=Pa,fI=yD,pI=Ja,dI=mD,hI=DD,gI=zD,yI=xo,vI=Vo.exports,mI=qD,bI=Un,wI=eI,xI=Aa,_I=YP,CI={};CI["[object Arguments]"]=CI["[object Array]"]=CI["[object ArrayBuffer]"]=CI["[object DataView]"]=CI["[object Boolean]"]=CI["[object Date]"]=CI["[object Float32Array]"]=CI["[object Float64Array]"]=CI["[object Int8Array]"]=CI["[object Int16Array]"]=CI["[object Int32Array]"]=CI["[object Map]"]=CI["[object Number]"]=CI["[object Object]"]=CI["[object RegExp]"]=CI["[object Set]"]=CI["[object String]"]=CI["[object Symbol]"]=CI["[object Uint8Array]"]=CI["[object Uint8ClampedArray]"]=CI["[object Uint16Array]"]=CI["[object Uint32Array]"]=!0,CI["[object Error]"]=CI["[object Function]"]=CI["[object WeakMap]"]=!1;var OI=function e(t,n,r,i,o,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!bI(t))return t;var f=yI(t);if(f){if(s=dI(t),!c)return sI(t,s)}else{var p=pI(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(vI(t))return aI(t,c);if("[object Object]"==p||"[object Arguments]"==p||d&&!o){if(s=u||d?{}:gI(t),!c)return u?uI(t,oI(s,t)):cI(t,iI(s,t))}else{if(!CI[p])return o?t:{};s=hI(t,p,c)}}a||(a=new tI);var h=a.get(t);if(h)return h;a.set(t,s),wI(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):mI(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=f?void 0:(l?u?fI:lI:u?_I:xI)(t);return nI(g||t,(function(i,o){g&&(i=t[o=i]),rI(s,o,e(i,n,r,o,t,a))})),s},SI=ic,kI=uu;var EI=function(e,t){return t.length<2?e:SI(e,kI(t,0,-1))},AI=Qs,TI=IS,jI=EI,MI=tc;var PI=function(e,t){return t=AI(t,e),null==(e=jI(e,t))||delete e[MI(TI(t))]},DI=YE;var II=dh;var RI=function(e){return(null==e?0:e.length)?II(e,1):[]},LI=RI,NI=zh,BI=Zh;var FI=zs,zI=OI,UI=PI,HI=Qs,VI=NP,KI=function(e){return DI(e)?void 0:e},WI=yD,$I=function(e){return BI(NI(e,void 0,LI),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=FI(t,(function(t){return t=HI(t,e),r||(r=t.length>1),t})),VI(e,WI(e),n),r&&(n=zI(n,7,KI));for(var i=t.length;i--;)UI(n,t[i]);return n})),qI=$I;function GI(e){return GI="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},GI(e)}function ZI(){return ZI=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},ZI.apply(this,arguments)}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XI(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 JI(e,t){return JI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},JI(e,t)}function QI(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=tR(e);if(t){var i=tR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eR(this,n)}}function eR(e,t){return!t||"object"!==GI(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 tR(e){return tR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tR(e)}Math.sqrt(5),_g.isSsr,_g.isSsr,EP({chartName:"RadarChart",GraphicalChild:_A,axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ScatterChart",GraphicalChild:AM,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT}),EP({chartName:"AreaChart",GraphicalChild:nM,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),EP({chartName:"RadialBarChart",GraphicalChild:IA,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ComposedChart",GraphicalChild:[Vj,nM,gM,AM],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT});var nR=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},rR=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&&JI(e,t)}(a,m);var t,n,r,o=QI(a);function a(){var e;YI(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{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,t=this.props,n=t.x,r=t.y,o=t.upperWidth,a=t.lowerWidth,s=t.height,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||s!==+s||0===o&&0===a||0===s)return null;var g=zn("recharts-trapezoid",c);return h?i.createElement(Cd,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:o,lowerWidth:a,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,a=t.x,s=t.y;return i.createElement(Cd,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},i.createElement("path",ZI({},$n(e.props,!0),{className:g,d:nR(a,s,n,r,o),ref:function(t){e.node=t}})))})):i.createElement("g",null,i.createElement("path",ZI({},$n(this.props,!0),{className:g,d:nR(n,r,o,a,s)})))}}],n&&XI(t.prototype,n),r&&XI(t,r),a}();function iR(e){return iR="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},iR(e)}function oR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aR(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 aR(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 aR(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 sR(){return sR=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},sR.apply(this,arguments)}function cR(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 uR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(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 dR(e,t){return dR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dR(e,t)}function hR(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=yR(e);if(t){var i=yR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gR(this,n)}}function gR(e,t){return!t||"object"!==iR(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 yR(e){return yR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yR(e)}rR.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var vR=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&&dR(e,t)}(a,m);var t,n,r,o=hR(a);function a(){var e;fR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{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 t=this,n=this.props.activeShape;return e.map((function(e,r){var o=t.isActiveIndex(r)?n:null,s=uR(uR({},e),{},{stroke:e.stroke});return i.createElement(er,sR({className:"recharts-funnel-trapezoid"},Gn(t.props,e,r),{key:"trapezoid-".concat(r)}),a.renderTrapezoidItem(o,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevTrapezoids;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.x,e.x),o=Tf(n.y,e.y),a=Tf(n.upperWidth,e.upperWidth),s=Tf(n.lowerWidth,e.lowerWidth),c=Tf(n.height,e.height);return uR(uR({},e),{},{x:i(r),y:o(r),upperWidth:a(r),lowerWidth:s(r),height:c(r)})}var l=Tf(e.x+e.upperWidth/2,e.x),f=Tf(e.y+e.height/2,e.y),p=Tf(0,e.upperWidth),d=Tf(0,e.lowerWidth),h=Tf(0,e.height);return uR(uR({},e),{},{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:d(r),height:h(r)})}));return i.createElement(er,null,e.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,o=e.isAnimationActive,a=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var s=zn("recharts-trapezoids",r);return i.createElement(er,{className:s},this.renderTrapezoids(),(!o||a)&&VS.renderCallByParent(this.props,n))}}],r=[{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,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(rR,sR({},t,e)):i.createElement(rR,t)}}],n&&pR(t.prototype,n),r&&pR(t,r),a}();vR.displayName="Funnel",vR.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},vR.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return uR(uR(uR({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return uR(uR({},i),e.props)})):[]},vR.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,s=t.top,c=t.bottom,u=i,l=r;return hf(n)?l=n:wf(n)&&(l=l*parseFloat(n)/100),{realWidth:l-o-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(i-u)/2}},vR.getComposedData=function(e){var t=e.item,n=e.offset,r=vR.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,s=i.tooltipType,c=i.lastShapeType,u=i.reversed,l=n.left,f=n.top,p=vR.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 BO(e,o,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,i=BO(e,o,0),u=BO(e,a,t),p=i;if(t!==m-1)(n=BO(r[t+1],o,0))instanceof Array&&(n=oR(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=oR(i,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,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:o,type:s}],k={x:x+C/2,y:_+b/2};return uR(uR({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},qI(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-O)/4,y:_,width:Math.abs(C-O)/2+Math.min(C,O),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return uR(uR({},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:uR(uR({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:uR(uR({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},EP({chartName:"FunnelChart",GraphicalChild:vR,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const mR=de.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),bR=()=>{const{tooltip:t,elevation1:n}=S();return e(Rg,{wrapperStyle:{outline:"none",boxShadow:n},contentStyle:{background:t.background,border:"none",borderRadius:4,padding:16},labelStyle:{color:t.color.subtext},itemStyle:{color:t.color.default,textTransform:"capitalize"},cursor:!1})},wR=()=>e(k,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),xR=n=>{var{width:r,height:i,data:o,dataKey:a}=n,s=T(n,["width","height","data","dataKey"]);const{scale2:c,color:u}=S();return t(mR,Object.assign({},s,{children:[e(wR,{}),t(AP,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:i,data:o},{children:[e(Cj,{stroke:c,strokeDasharray:"3 5",vertical:!1}),e(TM,{stroke:c,dataKey:"name",tickMargin:4}),e(jM,{stroke:c,tickMargin:4}),bR(),e(gM,{barSize:16,dataKey:a,fill:u.brand})]}))]}))};function _R(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 CR(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function OR(e){CR(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function SR(e,t){CR(2,arguments);var n=OR(e),r=_R(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function kR(e,t){CR(2,arguments);var n=OR(e),r=_R(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function ER(e,t){if(CR(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?_R(t.years):0,r=t.months?_R(t.months):0,i=t.weeks?_R(t.weeks):0,o=t.days?_R(t.days):0,a=t.hours?_R(t.hours):0,s=t.minutes?_R(t.minutes):0,c=t.seconds?_R(t.seconds):0,u=OR(e),l=r||n?kR(u,r+12*n):u,f=o||i?SR(l,o+7*i):l,p=s+60*a,d=c+60*p,h=1e3*d,g=new Date(f.getTime()+h);return g}function AR(e,t){CR(2,arguments);var n=OR(e).getTime(),r=_R(t);return new Date(n+r)}var TR={};function jR(){return TR}function MR(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 PR(e){CR(1,arguments);var t=OR(e);return t.setHours(0,0,0,0),t}function DR(e,t){CR(2,arguments);var n=PR(e),r=PR(t),i=n.getTime()-MR(n),o=r.getTime()-MR(r);return Math.round((i-o)/864e5)}function IR(e,t){CR(2,arguments);var n=PR(e),r=PR(t);return n.getTime()===r.getTime()}function RR(e){return CR(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function LR(e){if(CR(1,arguments),!RR(e)&&"number"!=typeof e)return!1;var t=OR(e);return!isNaN(Number(t))}function NR(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 BR(e,t){CR(2,arguments);var n=OR(e),r=OR(t),i=NR(n,r),o=Math.abs(DR(n,r));n.setDate(n.getDate()-i*o);var a=Number(NR(n,r)===-i),s=i*(o-a);return 0===s?0:s}function FR(e,t){return CR(2,arguments),OR(e).getTime()-OR(t).getTime()}var zR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function UR(e){return e?zR[e]:zR.trunc}function HR(e,t){CR(2,arguments);var n=_R(t);return AR(e,-n)}function VR(e){CR(1,arguments);var t=1,n=OR(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function KR(e){CR(1,arguments);var t=OR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=VR(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=VR(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function WR(e){CR(1,arguments);var t=KR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=VR(n);return r}function $R(e){CR(1,arguments);var t=OR(e),n=VR(t).getTime()-WR(t).getTime();return Math.round(n/6048e5)+1}function qR(e,t){var n,r,i,o,a,s,c,u;CR(1,arguments);var l=jR(),f=_R(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i: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=OR(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 GR(e,t){var n,r,i,o,a,s,c,u;CR(1,arguments);var l=OR(e),f=l.getUTCFullYear(),p=jR(),d=_R(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i: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=qR(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=qR(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function ZR(e,t){var n,r,i,o,a,s,c,u;CR(1,arguments);var l=jR(),f=_R(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i: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=GR(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=qR(d,t);return h}function YR(e,t){CR(1,arguments);var n=OR(e),r=qR(n,t).getTime()-ZR(n,t).getTime();return Math.round(r/6048e5)+1}function XR(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var JR=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return XR("yy"===t?r%100:r,t.length)},QR=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):XR(n+1,2)},eL=function(e,t){return XR(e.getUTCDate(),t.length)},tL=function(e,t){return XR(e.getUTCHours()%12||12,t.length)},nL=function(e,t){return XR(e.getUTCHours(),t.length)},rL=function(e,t){return XR(e.getUTCMinutes(),t.length)},iL=function(e,t){return XR(e.getUTCSeconds(),t.length)},oL=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return XR(Math.floor(r*Math.pow(10,n-3)),t.length)},aL="midnight",sL="noon",cL="morning",uL="afternoon",lL="evening",fL="night",pL={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return JR(e,t)},Y:function(e,t,n,r){var i=GR(e,r),o=i>0?i:1-i;return"YY"===t?XR(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):XR(o,t.length)},R:function(e,t){return XR(KR(e),t.length)},u:function(e,t){return XR(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 XR(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 XR(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 QR(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 XR(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=YR(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):XR(i,t.length)},I:function(e,t,n){var r=$R(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):XR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):eL(e,t)},D:function(e,t,n){var r=function(e){CR(1,arguments);var t=OR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):XR(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return XR(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return XR(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return XR(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?sL:0===i?aL:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?lL:i>=12?uL:i>=4?cL:fL,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 tL(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):nL(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):XR(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):XR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):rL(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):iL(e,t)},S:function(e,t){return oL(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return hL(i);case"XXXX":case"XX":return gL(i);default:return gL(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return hL(i);case"xxxx":case"xx":return gL(i);default:return gL(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dL(i,":");default:return"GMT"+gL(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dL(i,":");default:return"GMT"+gL(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return XR(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return XR((r._originalDate||e).getTime(),t.length)}};function dL(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+XR(o,2)}function hL(e,t){return e%60==0?(e>0?"-":"+")+XR(Math.abs(e)/60,2):gL(e,t)}function gL(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+XR(Math.floor(i/60),2)+n+XR(i%60,2)}var yL=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"})}},vL=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"})}},mL={p:vL,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return yL(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",yL(i,t)).replace("{{time}}",vL(o,t))}},bL=["D","DD"],wL=["YY","YYYY"];function xL(e){return-1!==bL.indexOf(e)}function _L(e){return-1!==wL.indexOf(e)}function CL(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 OL={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 SL(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 kL={date:SL({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:SL({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:SL({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},EL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function AL(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}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 TL={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:AL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:AL({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:AL({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:AL({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:AL({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 jL(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?PL(c,(function(e){return e.test(s)})):ML(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 ML(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function PL(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var DL,IL={ordinalNumber:(DL={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(DL.matchPattern);if(!n)return null;var r=n[0],i=e.match(DL.parsePattern);if(!i)return null;var o=DL.valueCallback?DL.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:jL({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:jL({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:jL({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:jL({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:jL({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"})},RL={code:"en-US",formatDistance:function(e,t,n){var r,i=OL[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:kL,formatRelative:function(e,t,n,r){return EL[e]},localize:TL,match:IL,options:{weekStartsOn:0,firstWeekContainsDate:1}},LL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BL=/^'([^]*?)'?$/,FL=/''/g,zL=/[a-zA-Z]/;function UL(e,t,n){var r,i,o,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;CR(2,arguments);var x=String(t),_=jR(),C=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:_.locale)&&void 0!==r?r:RL,O=_R(null!==(o=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!==o?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=_R(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(!(S>=0&&S<=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=OR(e);if(!LR(k))throw new RangeError("Invalid time value");var E=MR(k),A=HR(k,E),T={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},j=x.match(NL).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,mL[t])(e,C.formatLong):e})).join("").match(LL).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return HL(r);var o=pL[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!_L(r)||CL(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!xL(r)||CL(r,t,String(e)),o(A,r,C.localize,T);if(i.match(zL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return j}function HL(e){var t=e.match(BL);return t?t[1].replace(FL,"'"):e}function VL(e){CR(1,arguments);var t=OR(e),n=t.getDate();return n}function KL(e){CR(1,arguments);var t=OR(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function WL(e){CR(1,arguments);var t=OR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function $L(e,t){CR(2,arguments);var n=OR(e),r=OR(t);return n.getTime()>r.getTime()}function qL(e,t){CR(2,arguments);var n=OR(e),r=OR(t);return n.getTime()<r.getTime()}function GL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ZL extends class{constructor(){GL(this,"priority",void 0),GL(this,"subPriority",0)}validate(e,t){return!0}}{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}function YL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class XL{constructor(){YL(this,"incompatibleTokens",void 0),YL(this,"priority",void 0),YL(this,"subPriority",void 0)}run(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new ZL(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}function JL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QL=/^(1[0-2]|0?\d)/,eN=/^(3[0-1]|[0-2]?\d)/,tN=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,nN=/^(5[0-3]|[0-4]?\d)/,rN=/^(2[0-3]|[0-1]?\d)/,iN=/^(2[0-4]|[0-1]?\d)/,oN=/^(1[0-1]|0?\d)/,aN=/^(1[0-2]|0?\d)/,sN=/^[0-5]?\d/,cN=/^[0-5]?\d/,uN=/^\d/,lN=/^\d{1,2}/,fN=/^\d{1,3}/,pN=/^\d{1,4}/,dN=/^-?\d+/,hN=/^-?\d/,gN=/^-?\d{1,2}/,yN=/^-?\d{1,3}/,vN=/^-?\d{1,4}/,mN=/^([+-])(\d{2})(\d{2})?|Z/,bN=/^([+-])(\d{2})(\d{2})|Z/,wN=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,xN=/^([+-])(\d{2}):(\d{2})|Z/,_N=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function CN(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ON(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function SN(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function kN(e){return ON(dN,e)}function EN(e,t){switch(e){case 1:return ON(uN,t);case 2:return ON(lN,t);case 3:return ON(fN,t);case 4:return ON(pN,t);default:return ON(new RegExp("^\\d{1,"+e+"}"),t)}}function AN(e,t){switch(e){case 1:return ON(hN,t);case 2:return ON(gN,t);case 3:return ON(yN,t);case 4:return ON(vN,t);default:return ON(new RegExp("^-?\\d{1,"+e+"}"),t)}}function TN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function jN(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function MN(e){return e%400==0||e%4==0&&e%100!=0}function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VN=[31,28,31,30,31,30,31,31,30,31,30,31],KN=[31,29,31,30,31,30,31,31,30,31,30,31];function WN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e,t,n){var r,i,o,a,s,c,u,l;CR(2,arguments);var f=jR(),p=_R(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==i?i:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=OR(e),h=_R(t),g=d.getUTCDay(),y=h%7,v=(y+7)%7,m=(v<p?7:0)+h-g;return d.setUTCDate(d.getUTCDate()+m),d}function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e,t){CR(2,arguments);var n=OR(e),r=OR(t);return n.getFullYear()===r.getFullYear()}function pB(e,t){CR(2,arguments);var n=_R(t);return SR(e,-n)}function dB(e,t){CR(2,arguments);var n=OR(e),r=_R(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=KL(a);return n.setMonth(r,Math.min(o,s)),n}function hB(e,t){CR(2,arguments);var n=OR(e),r=_R(t);return n.setDate(r),n}function gB(e,t){CR(2,arguments);var n=_R(t);return kR(e,-n)}function yB(e,t){if(CR(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?_R(t.years):0,r=t.months?_R(t.months):0,i=t.weeks?_R(t.weeks):0,o=t.days?_R(t.days):0,a=t.hours?_R(t.hours):0,s=t.minutes?_R(t.minutes):0,c=t.seconds?_R(t.seconds):0,u=gB(e,r+12*n),l=pB(u,o+7*i),f=s+60*a,p=c+60*f,d=1e3*p,h=new Date(l.getTime()-d);return h}new class extends XL{constructor(){super(...arguments),JL(this,"priority",140),JL(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),PN(this,"priority",130),PN(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return CN(EN(4,e),r);case"yo":return CN(n.ordinalNumber(e,{unit:"year"}),r);default:return CN(EN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=jN(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),DN(this,"priority",130),DN(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return CN(EN(4,e),r);case"Yo":return CN(n.ordinalNumber(e,{unit:"year"}),r);default:return CN(EN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var i=GR(e,r);if(n.isTwoDigitYear){var o=jN(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),qR(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),qR(e,r)}},new class extends XL{constructor(){super(...arguments),IN(this,"priority",130),IN(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return AN("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),VR(r)}},new class extends XL{constructor(){super(...arguments),RN(this,"priority",130),RN(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return AN("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),LN(this,"priority",120),LN(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return EN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),NN(this,"priority",120),NN(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return EN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),BN(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),BN(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return CN(ON(QL,e),r);case"MM":return CN(EN(2,e),r);case"Mo":return CN(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),FN(this,"priority",110),FN(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return CN(ON(QL,e),r);case"LL":return CN(EN(2,e),r);case"Lo":return CN(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),zN(this,"priority",100),zN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return ON(nN,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return EN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return qR(function(e,t,n){CR(2,arguments);var r=OR(e),i=_R(t),o=YR(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},new class extends XL{constructor(){super(...arguments),UN(this,"priority",100),UN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return ON(nN,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return EN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return VR(function(e,t){CR(2,arguments);var n=OR(e),r=_R(t),i=$R(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}},new class extends XL{constructor(){super(...arguments),HN(this,"priority",90),HN(this,"subPriority",1),HN(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return ON(eN,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return EN(t.length,e)}}validate(e,t){var n=MN(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=KN[r]:t>=1&&t<=VN[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),WN(this,"priority",90),WN(this,"subpriority",1),WN(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return ON(tN,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return EN(t.length,e)}}validate(e,t){return MN(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),qN(this,"priority",90),qN(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=$N(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),GN(this,"priority",90),GN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return CN(EN(t.length,e),i);case"eo":return CN(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=$N(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),ZN(this,"priority",90),ZN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return CN(EN(t.length,e),i);case"co":return CN(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=$N(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),YN(this,"priority",90),YN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return EN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return CN(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return CN(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return CN(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return CN(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){CR(2,arguments);var n=_R(t);n%7==0&&(n-=7);var r=1,i=OR(e),o=i.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+a),i}(e,n),e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),XN(this,"priority",80),XN(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(TN(n),0,0,0),e}},new class extends XL{constructor(){super(...arguments),JN(this,"priority",80),JN(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(TN(n),0,0,0),e}},new class extends XL{constructor(){super(...arguments),QN(this,"priority",80),QN(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(TN(n),0,0,0),e}},new class extends XL{constructor(){super(...arguments),eB(this,"priority",70),eB(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return ON(aN,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return EN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},new class extends XL{constructor(){super(...arguments),tB(this,"priority",70),tB(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return ON(rN,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return EN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},new class extends XL{constructor(){super(...arguments),nB(this,"priority",70),nB(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return ON(oN,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return EN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},new class extends XL{constructor(){super(...arguments),rB(this,"priority",70),rB(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return ON(iN,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return EN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},new class extends XL{constructor(){super(...arguments),iB(this,"priority",60),iB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return ON(sN,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return EN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},new class extends XL{constructor(){super(...arguments),oB(this,"priority",50),oB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return ON(cN,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return EN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},new class extends XL{constructor(){super(...arguments),aB(this,"priority",30),aB(this,"incompatibleTokens",["t","T"])}parse(e,t){return CN(EN(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},new class extends XL{constructor(){super(...arguments),sB(this,"priority",10),sB(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return SN(mN,e);case"XX":return SN(bN,e);case"XXXX":return SN(wN,e);case"XXXXX":return SN(_N,e);default:return SN(xN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends XL{constructor(){super(...arguments),cB(this,"priority",10),cB(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return SN(mN,e);case"xx":return SN(bN,e);case"xxxx":return SN(wN,e);case"xxxxx":return SN(_N,e);default:return SN(xN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends XL{constructor(){super(...arguments),uB(this,"priority",40),uB(this,"incompatibleTokens","*")}parse(e){return kN(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},new class extends XL{constructor(){super(...arguments),lB(this,"priority",20),lB(this,"incompatibleTokens","*")}parse(e){return kN(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}};const vB=({date:n,onChange:r,preventPast:i,preventFuture:o,noShadow:a})=>{const{current:s}=f(n||new Date),[c,l]=u(s),[p,d]=u(s),[g,y]=u(),{calendar:v}=S(),m=e=>{const t=function(e,t){if(CR(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=OR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=dB(n,t.month)),null!=t.date&&n.setDate(_R(t.date)),null!=t.hours&&n.setHours(_R(t.hours)),null!=t.minutes&&n.setMinutes(_R(t.minutes)),null!=t.seconds&&n.setSeconds(_R(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(_R(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},b=e=>{const t=hB(("prev"===e?yB:ER)(p,{months:1}),1),n=m(t);d(n)},w=(e,t,n)=>{const r="past"===n;let i;i="past"===n?WL(yB(e,{months:1})):hB("future"===n?ER(e,{months:1}):e,1);const o=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?yB:ER)(i,{days:e}),a=m(n);o[t](a)}return o},x=e=>{const t=function(e){return CR(1,arguments),OR(e).getDay()}(hB(e,1)),n=KL(e),r=42-(n+t),a=w(e,t,"past"),u=w(e,r,"future");return[...a,...w(e,n,"present"),...u].map((e=>{const t=m(s),n=i instanceof Date?m(i):t,r=o instanceof Date?m(o):t,a=m(WL(p)),u=m(hB(p,1));let l=!1;const f=qL(e,n),d=$L(e,r);(i&&f||o&&d)&&(l=!0);const h=$L(e,a)||qL(e,u),g=IR(e,s),y=IR(e,c);return{date:VL(e),fullDate:e,current:g,disabled:l,outside:h,active:y}}))};h((()=>{const e=x(p);y(e)}),[c,p]);return t(mB,Object.assign({noShadow:a},{children:[t(bB,{children:[e(wB,{children:UL(p,"MMMM Y")}),t(xB,{children:[e(xt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>b("prev"),hoverColor:v.color.iconHover}),e(xt,{name:"chevron-right",pointer:!0,onClick:()=>b("next"),hoverColor:v.color.iconHover})]})]}),e(OB,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e(SB,{children:t[0]},t)))}),e(_B,{children:(null==g?void 0:g.length)&&g.map((({date:t,fullDate:n,disabled:i,current:o,outside:a,active:s})=>e(CB,Object.assign({disabled:i,current:o,outside:a,active:s,onClick:()=>(e=>{l(e),r(e)})(n)},{children:t}),vt())))})]}))},mB=de.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"}))),bB=de.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),wB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),xB=de.div({display:"flex"}),_B=de.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),CB=de.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:i})=>({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:i?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"}})),OB=de.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),SB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),kB=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),EB=de.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`}}}))),AB=de.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),TB=n=>{var{id:r,label:i,labelPosition:o,checked:a,partial:s,disabled:c,onChange:l,margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v}=n,m=T(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=u("checkbox-off"),[x,_]=u(a||!1),C=f(null),O="right"===o,S={margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v};return h((()=>{w(s?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,s]),h((()=>{_("boolean"==typeof a?a:x)}),[a,x]),t(kB,Object.assign({htmlFor:r,labelRight:O,disabled:c},S,{children:[i&&e(AB,{children:i}),e(EB,Object.assign({ref:C,id:r,type:"checkbox",checked:s?!x:x,disabled:c,onChange:()=>{const e=!!s||!x;_(e),l(e),(null==C?void 0:C.current)&&(C.current.indeterminate=!!s)}},m)),e(xt,{name:b,marginLeft:i&&!O?8:0,marginRight:i&&O?8:0,pointer:!c})]}))};
|
|
201
201
|
/**
|
|
202
202
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
203
203
|
*
|
|
@@ -206,5 +206,5 @@ var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
206
206
|
* @namespace
|
|
207
207
|
* @public
|
|
208
208
|
*/
|
|
209
|
-
var TB=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").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 i,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var a in i={},n[o]=i,t)t.hasOwnProperty(a)&&(i[a]=e(t[a],n));return i;case"Array":return o=r.util.objId(t),n[o]?n[o]:(i=[],n[o]=i,t.forEach((function(t,r){i[r]=e(t,n)})),i);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 i=e.classList;if(i.contains(t))return!0;if(i.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 i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var o=(i=i||r.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=i[e];return i[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,i,o){o=o||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],i||s);var c=t[s],u=r.util.type(c);"Object"!==u||o[a(c)]?"Array"!==u||o[a(c)]||(o[a(c)]=!0,e(c,n,s,o)):(o[a(c)]=!0,e(c,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",o),o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),i.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return c(i,i.head,e),a(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},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 i,o=0;i=n[o++];)i(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}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 O=_.value;if(t.length>e.length)return;if(!(O instanceof i)){var S,k=1;if(m){if(!(S=o(x,C,e,v))||S.index>=e.length)break;var E=S.index,A=S.index+S[0].length,T=C;for(T+=_.value.length;E>=T;)T+=(_=_.next).value.length;if(C=T-=_.value.length,_.value instanceof i)continue;for(var j=_;j!==t.tail&&(T<A||"string"==typeof j.value);j=j.next)k++,T+=j.value.length;k--,O=e.slice(C,T),S.index-=C}else if(!(S=o(x,0,O,v)))continue;E=S.index;var M=S[0],P=O.slice(0,E),D=O.slice(E+M.length),I=C+O.length;f&&I>f.reach&&(f.reach=I);var R=_.prev;if(P&&(R=c(t,R,P),C+=P.length),u(t,R,k),_=c(t,R,new i(p,y?r.tokenize(M,y):M,b,M)),D&&c(t,_,D),k>1){var L={cause:p+","+h,reach:I};a(e,t,n,_.prev,C,L),f&&L.reach>f.reach&&(f.reach=L.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,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}return i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var o={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(o.classes,a):o.classes.push(a)),r.hooks.run("wrap",o);var s="";for(var c in o.attributes)s+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}(),jB=TB;TB.default=TB,jB.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]},jB.languages.markup.tag.inside["attr-value"].inside.entity=jB.languages.markup.entity,jB.languages.markup.doctype.inside["internal-subset"].inside=jB.languages.markup,jB.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(jB.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:jB.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:jB.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},jB.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(jB.languages.markup.tag,"addAttribute",{value:function(e,t){jB.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:jB.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),jB.languages.html=jB.languages.markup,jB.languages.mathml=jB.languages.markup,jB.languages.svg=jB.languages.markup,jB.languages.xml=jB.languages.extend("markup",{}),jB.languages.ssml=jB.languages.xml,jB.languages.atom=jB.languages.xml,jB.languages.rss=jB.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 i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(jB),jB.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:/[{}[\];(),.:]/},jB.languages.c=jB.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|[?:~]|[-+*/%&|^!=<>]=?/}),jB.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),jB.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},jB.languages.c.string],char:jB.languages.c.char,comment:jB.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:jB.languages.c}}}}),jB.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 jB.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"])}(jB),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"))}(jB),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},i={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:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(jB),jB.languages.javascript=jB.languages.extend("clike",{"class-name":[jB.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}|\?\?=?|\?\.?|[~:]/}),jB.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,jB.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:jB.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:jB.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:jB.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:jB.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:jB.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),jB.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:jB.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"}}),jB.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),jB.languages.markup&&(jB.languages.markup.tag.addInlined("script","javascript"),jB.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")),jB.languages.js=jB.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}(jB),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\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})),o=/"(?:[^"\\\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"(?:"+i+"|"+o+")"}))),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(o),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}(jB),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,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \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("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),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 i=t[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var s=o.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(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var o=t.classes[r],u=/language-(.+)/.exec(o);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}(jB),jB.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:jB.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+/},jB.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 i=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),i.push(a.content))}n=o+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),i.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&i.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 i=1,o=n;o<t.length;o++){var a=t[o],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))i++;else if(r.test(s)&&0===--i)return o}return-1}function d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),jB.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,i=r.inside["interpolation-punctuation"],o=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 i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function u(t){var n={};n["interpolation-punctuation"]=i;var o=e.tokenize(t,n);if(3===o.length){var a=[1,1];a.push.apply(a,c(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,a)}return new e.Token("interpolation",o,r.alias,t)}function l(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),a=0,l={},f=c(i.map((function(e){if("string"==typeof e)return e;for(var n,i=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=i,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 i=p[a],o="string"==typeof r?r:r.content,s=o.indexOf(i);if(-1!==s){++a;var c=o.substring(0,s),f=u(l[i]),d=o.substring(s+i.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,i=n.length;r<i;r++){var o=n[r];if("string"!=typeof o){var a=o.content;if(Array.isArray(a))if("template-string"===o.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)}))}(jB),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}(jB),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 i=n[r],o=e.languages.javascript[i];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[i]={pattern:o});var a=o.inside||{};o.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(jB),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\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:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<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 i=t[r],o=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(i);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)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(jB),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],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,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})}(jB),jB.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},jB.languages.go=jB.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/}),jB.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete jB.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,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof o&&!o(e))return e;for(var i,s=a.length;-1!==n.code.indexOf(i=t(r,s));)++s;return a[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(i>=o.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=o[i],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++i;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)}}}})}(jB),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}(jB),jB.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"}},jB.languages.webmanifest=jB.languages.json,jB.languages.less=jB.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:/[+\-*\/]/}),jB.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),jB.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:/[:;(){}]/},jB.languages.objectivec=jB.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 jB.languages.objectivec["class-name"],jB.languages.objc=jB.languages.objectivec,jB.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/},jB.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://,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:/[{}[\];(),.:]/},jB.languages.python["string-interpolation"].inside.interpolation.inside.rest=jB.languages.python,jB.languages.py=jB.languages.python,jB.languages.reason=jB.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/}),jB.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 jB.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}})}(jB),jB.languages.scss=jB.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]+\}/}}}),jB.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}]}),jB.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),jB.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}}),jB.languages.scss.atrule.inside.rest=jB.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:/[{}()\[\];:.]/}}(jB),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}(jB),jB.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 MB={Prism:jB,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 PB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DB(){return DB=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},DB.apply(this,arguments)}var IB=/\r\n|\r|\n/,RB=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)},LB=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},NB=function(e,t){var n=e.plain,r=Object.create(null),i=e.styles.reduce((function(e,n){var r=n.languages,i=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=DB({},e[t],i);e[t]=n})),e}),r);return i.root=n,i.plain=DB({},n,{backgroundColor:null}),i};function BB(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 FB=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),PB(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?NB(e.theme,e.language):void 0;return t.themeDict=n})),PB(this,"getLineProps",(function(e){var n=e.key,r=e.className,i=e.style,o=DB({},BB(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(o.style=a.plain),void 0!==i&&(o.style=void 0!==o.style?DB({},o.style,i):i),void 0!==n&&(o.key=n),r&&(o.className+=" "+r),o})),PB(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,i=n.length,o=t.getThemeDict(t.props);if(void 0!==o){if(1===i&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===i&&!r)return o[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return o[e]}));return Object.assign.apply(Object,[a].concat(s))}})),PB(this,"getTokenProps",(function(e){var n=e.key,r=e.className,i=e.style,o=e.token,a=DB({},BB(e,["key","className","style","token"]),{className:"token "+o.types.join(" "),children:o.content,style:t.getStyleForToken(o),key:void 0});return void 0!==i&&(a.style=void 0!==a.style?DB({},a.style,i):i),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),PB(this,"tokenize",(function(e,t,n,r){var i={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",i);var o=i.tokens=e.tokenize(i.code,i.grammar,i.language);return e.hooks.run("after-tokenize",i),o}))}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,i=e.children,o=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],i=[e.length],o=0,a=0,s=[],c=[s];a>-1;){for(;(o=r[a]++)<i[a];){var u=void 0,l=t[a],f=n[a][o];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=LB(l,f.type),f.alias&&(l=LB(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(IB),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)RB(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),i.push(u.length)}a--,t.pop(),n.pop(),r.pop(),i.pop()}return RB(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return i({tokens:s,className:"prism-code language-"+n,style:void 0!==o?o.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(w),zB="#c5a5c5",UB="#8dc891",HB={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:zB}},{types:["attr-value"],style:{color:UB}},{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:UB}},{types:["punctuation"],style:{color:UB}},{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:zB}},{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}}]},VB={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 KB=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,i=!1;"object"==typeof t&&(r=t.time,i=!!t.lowercase);const o="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,u=zL(n,"EEEE"),l=zL(n,"MMM d"),f=zL(n,"MMM d, y"),p=zL(n,"h:mm aaa"),d=function(e){return _R(1,arguments),lB(e,Date.now())}(n),h=function(e){return _R(1,arguments),CR(e).getTime()>Date.now()}(n),g=function(e){return _R(1,arguments),DR(e,Date.now())}(n),y=function(e){return _R(1,arguments),DR(e,fB(Date.now(),1))}(n),v=function(e){return _R(1,arguments),DR(e,OR(Date.now(),1))}(n),m=function(e,t,n){_R(2,arguments);var r=BR(e,t)/6e4;return zR(null==n?void 0:n.roundingMethod)(r)}(c,n),b=function(e,t,n){_R(2,arguments);var r=NR(e,t)/7;return zR(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(i){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(o)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}`)},WB=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},$B=({content:t})=>{const[n,r]=u(!1),{color:i,scale10:o}=S();h((()=>{n&&setTimeout((()=>{r(!1)}),2e3)}),[n]);return e(qB,Object.assign({onClick:()=>{WB(t),r(!0)},copied:n},{children:e(xt,n?{name:"check-circle",color:i.success}:{name:"copy",color:o})}))},qB=de.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}}))),GB=({method:n,url:r})=>{const i=S(),o=((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}}})(n.toUpperCase(),i);return t(ZB,Object.assign({},o,{children:[e(YB,Object.assign({backgroundColor:o.borderColor},{children:n.toUpperCase()})),e(XB,{children:r}),e($B,{content:r})]}))},ZB=de.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}))),YB=de.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),XB=de.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),JB=({children:n,code:r,className:i,lang:o,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=S(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||o||"",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),i=parseInt(n);return r<i?cn.range(r,i+1):cn.rangeRight(i,r+1)}return null})),n=t.flat();return cn.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==n?void 0:n.trim())||"";return"rest"===b?e(GB,{method:w,url:C}):e(FB,Object.assign({},MB,{code:C,language:b,theme:"dark"===d?HB:VB},{children:({className:n,style:r,tokens:i,getLineProps:o,getTokenProps:a})=>t(QB,Object.assign({className:n,style:Object.assign({},r)},h,{"data-testid":"code"},{children:[i.map(((n,r,i)=>t(eF,Object.assign({},o({line:n,key:r}),{highlight:_(r+1)},{children:[i.length>1&&!x&&e(tF,{children:r+1}),n.map(((t,n)=>e("span",Object.assign({},a({token:t,key:n})),t.content)))]})))),e($B,{content:C})]}))}))},QB=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),eF=de.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),tF=de.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),nF=de.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 rF={exports:{}},iF=(rF.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 i(e){return c(e)?e:Z(e)}function o(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(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=i,n.Set=o;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 O(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(A)),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 A(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(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,I=1,R=2,L="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=L||N;function F(e){this.next=e}function z(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function U(){return{value:void 0,done:!0}}function H(e){return!!W(e)}function V(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&&(L&&e[L]||e[N]);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=I,F.ENTRIES=R,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=oe,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 ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new ie(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):V(e)?new ie(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-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 i=e._cache;if(i){var o=i.length-1,a=0;return new F((function(){var e=i[n?o-a:a];return a++>o?U():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 i=r.next().value;return i&&ve(i[1],e)&&(n||ve(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):i?!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 Oe(){}function Se(){}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,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new F((function(){return i>r?U():z(e,i,n[t?r-i++:i++])}))},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,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new F((function(){var a=r[t?i-o:o];return o++>i?U():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(V(n))for(var i;!(i=n.next()).done&&!1!==e(i.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(!V(n))return new F(U);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(ie,Z),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new F((function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return z(e,i,r[i++])}))},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 T(e,t,n)?this:new be(this._value,M(t,n)-j(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):U()}))},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 T(e,t,this.size)?this:(e=j(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,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new F((function(){var a=i;return i+=t?-r:r,o>n?U():z(e,o++,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(Oe,_e),t(Se,_e),_e.Keyed=Ce,_e.Indexed=Oe,_e.Set=Se;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 Ae(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?Te(e):je(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return je(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){var t=He[e];return void 0===t&&(t=je(e),Ue===ze&&(Ue=0,He={}),Ue++,He[e]=t),t}function je(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(Le&&void 0!==(t=Re.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=Ie(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Le)Re.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 Ie(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Le="function"==typeof WeakMap;Le&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ue=0,He={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?it():We(e)&&!l(e)?e:it().withMutations((function(t){var n=r(e);Ve(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 ot(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return ot(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):it()},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,it(),(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,it(),(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 O)},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 i=Object.create(Ge);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function it(){return $e||($e=rt(0))}function ot(e,t,n){var r,i;if(e._root){var o=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(i,r):it()}function at(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===b?e:(C(s),C(a),new Qe(t,r,[i,o]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var o,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,i)]:(o=new Qe(t,r,i),a<s?[e,o]:[o,e]))}function ut(e,t,n,r){e||(e=new O);for(var i=new Qe(e,Ae(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function lt(e,t,n,r){for(var i=0,o=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&&(i|=c,a[o++]=l)}return new Ye(e,i,a)}function ft(e,t,n,r,i){for(var o=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Xe(e,o+1,a)}function pt(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),i.push(c)}return gt(e,t,i)}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 i=e(t,n,r);return ve(t,i)?t:i}}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)},i=0;i<n.length;i++)n[i].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var i=e===b,o=t.next();if(o.done){var a=i?n:e,s=r(a);return s===a?e:s}we(i||e&&e.set,"invalid keyPath");var c=o.value,u=i?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(i?it():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 i=r?e:S(e);return i[t]=n,i}function bt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ve(n,i[o][0]))return i[o][1];return r},Ze.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===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]===i:s)return this;if(C(a),(s||!f)&&C(o),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,i);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var i=1<<((0===e?t:t>>>e)&m),o=this.bitmap;return 0==(o&i)?r:this.nodes[vt(o&i-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&i===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,i,o,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=Ae(n));var i=(0===e?t:t>>>e)&m,o=this.nodes[i];return o?o.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=i===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,i,o,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 i=this.entries,o=0,a=i.length;o<a;o++)if(ve(n,i[o][0]))return i[o][1];return r},Je.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=i===b;if(n!==this.keyHash)return s?this:(C(a),C(o),ct(this,e,t,n,[r,i]));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]===i:s)return this;if(C(a),(s||!f)&&C(o),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),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,i,o,a){var s=i===b,c=ve(r,this.entry[0]);return(c?i===this.entry[1]:s)?this:(C(a),s?void C(o):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Qe(e,this.keyHash,[r,i]):(C(o),ct(this,e,t,Ae(r),[r,i])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.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,i=t.index++;if(r.entry){if(0===i)return tt(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return tt(e,o.entry);t=this._stack=nt(o,t)}continue}t=this._stack=this._stack.__prev}return U()};var xt=v/4,_t=v/2,Ct=v/4;function Ot(e){var t=It();if(null==e)return t;if(St(e))return e;var n=i(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?Dt(0,r,y,null,new At(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function St(e){return!(!e||!e[kt])}t(Ot,Oe),Ot.of=function(){return this(arguments)},Ot.prototype.toString=function(){return this.__toString("List [","]")},Ot.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},Ot.prototype.set=function(e,t){return Rt(this,e,t)},Ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ot.prototype.insert=function(e,t){return this.splice(e,0,t)},Ot.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):It()},Ot.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])}))},Ot.prototype.pop=function(){return Ft(this,0,-1)},Ot.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])}))},Ot.prototype.shift=function(){return Ft(this,1)},Ot.prototype.merge=function(){return zt(this,void 0,arguments)},Ot.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},Ot.prototype.mergeDeep=function(){return zt(this,dt,arguments)},Ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},Ot.prototype.setSize=function(e){return Ft(this,0,e)},Ot.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:Ft(this,j(e,n),M(t,n))},Ot.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?U():z(e,n++,t)}))},Ot.prototype.__iterate=function(e,t){for(var n,r=0,i=Pt(this,t);(n=i())!==Mt&&!1!==e(n,r++,this););return r},Ot.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)},Ot.isList=St;var kt="@@__IMMUTABLE_LIST__@@",Et=Ot.prototype;function At(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,At.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 At([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-y,n))===a&&o)return this}if(o&&!i)return this;var s=Nt(this,e);if(!o)for(var c=0;c<r;c++)s.array[c]=void 0;return i&&(s.array[r]=i),s},At.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&m;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-y,n))===o&&i===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Tt,jt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,i=Ut(r),o=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===i?o&&o.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,i,o){var s,c=e&&e.array,u=o>n?0:n-o>>i,l=1+(r-o>>i);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],i-y,o+(n<<i))}}}}function Dt(e,t,n,r,i,o,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=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function It(){return Tt||(Tt=Dt(0,0,y))}function Rt(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,i=e._root,o=_(x);return t>=Ut(e._capacity)?r=Lt(r,e.__ownerID,0,t,n,o):i=Lt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,i,r):e}function Lt(e,t,n,r,i,o){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===i)return e;if(n>0){var u=e&&e.array[s],l=Lt(u,t,n-y,r,i,o);return l===u?e:((a=Nt(e,t)).array[s]=l,a)}return c&&e.array[s]===i?e:(C(o),a=Nt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new At(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ut(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 O,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new At(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Ut(o),p=Ut(s);p>=1<<c+y;)u=new At(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new At([],r):d;if(d&&p>f&&a<o&&d.array.length){for(var g=u=Nt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<o&&(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>i||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>i&&(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=[],o=0,s=0;s<n.length;s++){var c=n[s],u=i(c);u.size>o&&(o=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return o>e.size&&(e=e.setSize(o)),gt(e,t,r)}function Ut(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?Wt():Vt(e)?e:Wt().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return We(e)&&l(e)}function Kt(e,t,n,r){var i=Object.create(Ht.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Wt(){return jt||(jt=Kt(it(),It()))}function $t(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Kt(r,i)}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===R){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===I?D:I,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,i){var o=e.get(r,b);return o===b?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(R,i);return new F((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),i)}))},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 i=bn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,c){if(t.call(n,e,o,c))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(R,o),s=0;return new F((function(){for(;;){var o=a.next();if(o.done)return o;var c=o.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(i,r?u:s++,l,o)}}))},i}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),i=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=mn(e);return i.map((function(t){return gn(e,o(t))}))}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,i))return e;var o=j(t,i),a=M(n,i);if(o!=o||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-o;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&oe(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=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++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<o;)i.next();if(++c>s)return U();var e=i.next();return r||t===I?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,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(R,i),s=!0;return new F((function(){if(!s)return U();var e=a.next();if(e.done)return e;var i=e.value,c=i[0],u=i[1];return t.call(n,u,c,o)?r===R?e:z(r,c,u,e):(s=!1,U())}))},r}function an(e,t,n,r){var i=bn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,c=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return c++,i(e,r?o:c-1,a)})),c},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(R,o),c=!0,u=0;return new F((function(){var e,o,l;do{if((e=s.next()).done)return r||i===I?e:z(i,u++,i===D?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],c&&(c=t.call(n,l,o,a))}while(c);return i===R?e:z(i,o,l,e)}))},i}function sn(e,t){var n=s(e),i=[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===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||c(e)&&c(o))return o}var u=new te(i);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.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,i){var o=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,i){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?i:o++,l)&&(s=!0),!s}),i)}return c(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],c=0;return new F((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return U()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,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 i=this,o=0;return e.__iterate((function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(I,r),a=0;return new F((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?z(n,a++,t):z(n,a++,i.value,i)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?G(o):c(e)?Z(o):Y(o)}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 i=bn(e);return i.size=new te(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(I,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),K(i?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?U():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function gn(e,t){return oe(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),k(e)}function mn(e){return s(e)?r:c(e)?i:o}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(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);En(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ke(o)},i=r.prototype=Object.create(On);return i.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=Vt,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(i){return e(i,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(I,t),r=t?vn(this):0;return new F((function(){var i=n.next();return i.done?i:z(e,t?--r:r++,i.value,i)}))},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(I,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(I,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(I,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var i=a(r);return z(e,i?r.get(0):r[0],i?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=Sn(this,it()))},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:Sn(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:Sn(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?Sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var On=Cn.prototype;function Sn(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(An.bind(void 0,e))}catch(e){}}function An(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 Tn(e){return null==e?Ln():jn(e)&&!l(e)?e:Ln().withMutations((function(t){var n=o(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function jn(e){return!(!e||!e[Pn])}On[g]=On.remove,On.deleteIn=On.removeIn=Ge.removeIn,On.merge=Ge.merge,On.mergeWith=Ge.mergeWith,On.mergeIn=Ge.mergeIn,On.mergeDeep=Ge.mergeDeep,On.mergeDeepWith=Ge.mergeDeepWith,On.mergeDeepIn=Ge.mergeDeepIn,On.setIn=Ge.setIn,On.update=Ge.update,On.updateIn=Ge.updateIn,On.withMutations=Ge.withMutations,On.asMutable=Ge.asMutable,On.asImmutable=Ge.asImmutable,t(Tn,Se),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("Set {","}")},Tn.prototype.has=function(e){return this._map.has(e)},Tn.prototype.add=function(e){return In(this,this._map.set(e,!0))},Tn.prototype.remove=function(e){return In(this,this._map.remove(e))},Tn.prototype.clear=function(){return In(this,this._map.clear())},Tn.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++)o(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Tn.prototype.merge=function(){return this.union.apply(this,arguments)},Tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Tn.prototype.sort=function(e){return Nn(fn(this,e))},Tn.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},Tn.prototype.wasAltered=function(){return this._map.wasAltered()},Tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Tn.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)},Tn.isSet=jn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=Tn.prototype;function In(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 Rn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ln(){return Mn||(Mn=Rn(it()))}function Nn(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=o(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return jn(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=Ln,Dn.__make=Rn,t(Nn,Tn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function Un(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=Un(Wt()))}function Vn(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=Un,t(Vn,Oe),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.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)},Vn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ve(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)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.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()},Vn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=j(e,this.size);if(M(t,this.size)!==this.size)return Oe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Gn(r,i)},Vn.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)},Vn.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},Vn.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 U()}))},Vn.isStack=Kn;var Wn,$n="@@__IMMUTABLE_STACK__@@",qn=Vn.prototype;function Gn(e,t,n,r){var i=Object.create(qn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}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(){Ve(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(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return Tn(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 Vn(s(this)?this.valueSeq():this)},toList:function(){return Ot(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(R)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))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,i,o){if(e.call(t,r,i,o))return n=[i,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(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,i;return Ve(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,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(I)},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(A)},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,i=_n(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,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):or)},minBy:function(e,t){return pn(this,t?nr(t):or,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(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,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 ir(){return S(arguments)}function or(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,i=e.__iterate(n?t?function(e,t){r=31*r+cr(Ae(e),Ae(t))|0}:function(e,t){r=r+cr(Ae(e),Ae(t))|0}:t?function(e){r=31*r+Ae(e)|0}:function(e){r=r+Ae(e)|0});return sr(i,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}return Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(i,{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=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(S(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(S(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,ir,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),i.prototype[d]=!0,i.prototype[h]=!0,Yn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,i.prototype),Yn(Y,o.prototype),Yn(Ce,r.prototype),Yn(Oe,i.prototype),Yn(Se,o.prototype),{Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:Ot,Stack:Vn,Set:Tn,OrderedSet:Nn,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de}}()).OrderedMap,oF={createFromArray:function(e){return iF(e.map((function(e){return[e.getKey(),e]})))}};var aF=rF.exports,sF=aF.Map,cF=aF.OrderedSet,uF=aF.Record,lF=cF(),fF={style:lF,entity:null},pF=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 i=r.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.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 dF;var t=sF({style:lF,entity:null}).merge(e),n=hF.get(t);if(n)return n;var i=new r(t);return hF=hF.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?cF(t):t,entity:Array.isArray(n)?cF(n):n})},r}(uF(fF)),dF=new pF,hF=sF([[sF(fF),dF]]);pF.EMPTY=dF;var gF=pF;var yF=function(e,t,n,r){if(e.size){var i=0;e.reduce((function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o})),n(e.last())&&r(i,e.count())}};var vF=gF,mF=yF,bF=rF.exports,wF=bF.List,xF=bF.Map,_F=bF.OrderedSet,CF=bF.Record,OF=bF.Repeat,SF=_F(),kF=CF({key:"",type:"unstyled",text:"",characterList:wF(),depth:0,data:xF()}),EF=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=wF(OF(vF.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():SF},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.findStyleRanges=function(e,t){mF(this.getCharacterList(),AF,e,t)},i.findEntityRanges=function(e,t){mF(this.getCharacterList(),TF,e,t)},r}(kF);function AF(e,t){return e.getStyle()===t.getStyle()}function TF(e,t){return e.getEntity()===t.getEntity()}var jF=EF;var MF=gF,PF=yF,DF=rF.exports,IF=DF.List,RF=DF.Map,LF=DF.OrderedSet,NF=DF.Record,BF=DF.Repeat,FF=LF(),zF={parent:null,characterList:IF(),data:RF(),depth:0,key:"",text:"",type:"unstyled",children:IF(),prevSibling:null,nextSibling:null},UF=function(e,t){return e.getStyle()===t.getStyle()},HF=function(e,t){return e.getEntity()===t.getEntity()},VF=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=IF(BF(MF.EMPTY,n.length))),e},KF=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zF;return e.call(this,VF(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():FF},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(e,t){PF(this.getCharacterList(),UF,e,t)},i.findEntityRanges=function(e,t){PF(this.getCharacterList(),HF,e,t)},r}(NF(zF)),WF=KF,$F=gF,qF=rF.exports.Map;function GF(e,t,n,r){var i=e.getBlockMap(),o=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=i.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===s})).concat(qF([[s,i.get(s)]])).map((function(e,t){var i,u;o===s?(i=a,u=c):(i=t===o?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();i<u;)l=f.get(i),f=f.set(i,r?$F.applyStyle(l,n):$F.removeStyle(l,n)),i++;return e.set("characterList",f)}));return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var ZF={add:function(e,t,n){return GF(e,t,n,!0)},remove:function(e,t,n){return GF(e,t,n,!1)}},YF=gF;var XF=function(e,t,n,r){for(var i=t,o=e.getCharacterList();i<n;)o=o.set(i,YF.applyEntity(o.get(i),r)),i++;return e.set("characterList",o)},JF=rF.exports;var QF=function(e,t,n){var r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(JF.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===i?o:0,c=t===a?s:e.getLength();return XF(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},ez={getRemovalRange:function(e,t,n,r,i){var o=n.split(" ");o=o.map((function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<o.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<o.length;l++){if(e<(a=s+o[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"===i?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},tz="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var nz=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(tz(t),!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw o.framesToPop=1,o}},rz=nz;var iz=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?rz(!1,"Entity key not found in this range."):rz(!1)),n},oz=ez,az=iz,sz=nz;function cz(e,t,n,r,i,o,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(i).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=az(t,i).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?sz(!1,"There should only be one entity range within this removal range."):sz(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});o||(a?c=p.end:s=p.start);var d=oz.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 uz=function(e,t,n,r,i){var o=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(o),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=cz(e,t,u,i,s,!0,!0);else if(s&&c){var l=cz(e,t,u,i,s,!1,!0),f=cz(e,n,u,i,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=cz(e,t,u,i,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=cz(e,n,u,i,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},lz={},fz=Math.pow(2,24);var pz=function(){for(var e;void 0===e||lz.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*fz).toString(32);return lz[e]=!0,e},dz=WF,hz=pz,gz=rF.exports.OrderedMap,yz=function(e){return e.first()instanceof dz?function(e){var t,n={};return gz(e.withMutations((function(e){e.forEach((function(r,i){var o=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=hz();if(n[o]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([o,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([o,"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([o,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([o,"prevSibling"],n[t.getKey()])),t=e.get(o);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([o,"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 gz(e.toArray().map((function(e){var t=hz();return[t,e.set("key",t)]})))}(e)},vz=gF,mz=yF,bz=nz;function wz(e,t,n){var r=t.getCharacterList(),i=n>0?r.get(n-1):void 0,o=n<r.count()?r.get(n):void 0,a=i?i.getEntity():void 0,s=o?o.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return mz(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?bz(!1,"Removal range must exist within character list."):bz(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,vz.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var xz=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),a=t.getStartOffset(),s=n.get(o),c=wz(r,s,a);c!==s&&(i[o]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);o===u&&(f=c);var p=wz(r,f,l);return p!==f&&(i[u]=p),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)},_z=yz,Cz=xz,Oz=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=t.getEndKey(),o=t.getEndOffset(),a=Cz(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(i)+1;return _z(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===i?e.merge({text:a.slice(r,o),characterList:s.slice(r,o)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===i?e.merge({text:a.slice(0,o),characterList:s.slice(0,o)}):e})))};var Sz=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 i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r},kz=oF,Ez=WF,Az=Sz,Tz=nz,jz=yz,Mz=rF.exports.List,Pz=function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(i),c=s.getText(),u=s.getCharacterList(),l=i,f=o+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,o)+r.getText()+c.slice(o),characterList:Az(u,r.getCharacterList(),o),type:d,data:p});return e.merge({blockMap:n.set(i,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},Dz=function(e,t,n,r,i,o){var a=n.first()instanceof Ez,s=[],c=r.size,u=n.get(i),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===i?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.slice(0,t),a=i.slice(0,t),s=n.first();return e.merge({text:o+s.getText(),characterList:a.concat(s.getCharacterList()),type:o?e.getType():s.getType(),data:s.getData()})}(e,o,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(),i=e.getCharacterList(),o=r.length,a=r.slice(t,o),s=i.slice(t,o),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,o,r))):s.push(e)}));var g=kz.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var i=n.getKey(),o=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var o=r.getNextSiblingKey();if(!o)break;i.push(o),r=t.get(o)}return i}(r,e),u=c[c.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],i)),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(i)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],Mz(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},Iz=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?Tz(!1,"`insertFragment` should only be called with a collapsed selection state."):Tz(!1));var i=e.getBlockMap(),o=jz(n),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a);return c instanceof Ez&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Tz(!1,"`insertFragment` should not be called when a container node is selected."):Tz(!1))),1===o.size?Pz(e,t,i,o.first(),a,s,r):Dz(e,t,i,o,a,s)},Rz=Sz,Lz=nz,Nz=rF.exports.Repeat;var Bz=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?Lz(!1,"`insertText` should only be called with a collapsed range."):Lz(!1));var i=null;if(null!=n&&(i=n.length),null==i||0===i)return e;var o=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:Rz(c.getCharacterList(),Nz(r,i).toList(),s)}),f=s+i;return e.merge({blockMap:o.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},Fz=rF.exports.Map;var zz=function(e,t,n){var r=t.getStartKey(),i=t.getEndKey(),o=e.getBlockMap(),a=o.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===i})).concat(Fz([[i,o.get(i)]])).map(n);return e.merge({blockMap:o.merge(a),selectionBefore:t,selectionAfter:t})},Uz=WF,Hz=function(e,t){if(!(e instanceof Uz))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var i=t.get(r);i&&!i.getNextSiblingKey();){var o=i.getParentKey();i=o?t.get(o):null}return i?i.getNextSiblingKey():null},Vz=WF,Kz=Hz,Wz=rF.exports;Wz.List;var $z=Wz.Map,qz=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Gz=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},Zz=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},Yz=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},Xz=function(e,t,n,r){return e.withMutations((function(i){if(qz(t.getKey(),i,(function(e){return e.merge({nextSibling:Zz(e,i,r),prevSibling:Yz(e,i,r)})})),qz(n.getKey(),i,(function(e){return e.merge({nextSibling:Zz(e,i,r),prevSibling:Yz(e,i,r)})})),Gz(t.getKey(),r).forEach((function(e){return qz(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:Zz(e,i,r),prevSibling:Yz(e,i,r)})}))})),qz(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),qz(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:Zz(e,i,r)})})),qz(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:Yz(e,i,r)})})),qz(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Gz(n.getKey(),r).forEach((function(e){qz(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:Zz(e,i,r),prevSibling:Yz(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=Kz(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?Kz(i,t):null}return n}(n,r).forEach((function(e){return qz(e,i,(function(e){return e.merge({nextSibling:Zz(e,i,r),prevSibling:Yz(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var o=t.getPrevSiblingKey();qz(n.getKey(),i,(function(e){return e.merge({prevSibling:o})})),qz(o,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=o?e.get(o):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){qz(e,i,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);qz(s,i,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}qz(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Jz=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),i=e.slice(n);e=r.concat(i).toList()}return e},Qz=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(i),u=r.get(a),l=c instanceof Vz,f=[];if(l){var p=u.getChildKeys(),d=Gz(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(Gz(Kz(u,r),r))}n=c===u?Jz(c.getCharacterList(),o,s):c.getCharacterList().slice(0,o).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,o)+u.getText().slice(s),characterList:n}),g=l&&0===o&&0===s&&u.getParentKey()===i&&null==u.getPrevSiblingKey()?$z([[i,null]]):r.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat($z([[a,null]])).map((function(e,t){return t===i?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=Xz(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1})})},eU=WF,tU=pz,nU=rF.exports,rU=nz,iU=zz,oU=nU.List,aU=nU.Map,sU=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},cU=gF,uU=ZF,lU=QF,fU=uz,pU=Oz,dU=Iz,hU=Bz,gU=nz,yU=zz,vU=xz,mU=Qz,bU=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?rU(!1,"Selection range must be collapsed."):rU(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),i=r.get(n),o=i.getText();if(!o){var a=i.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return iU(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=i.getCharacterList(),u=tU(),l=i instanceof eU,f=i.merge({text:o.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:o.slice(s),characterList:c.slice(s),data:aU()}),d=r.toSeq().takeUntil((function(e){return e===i})),h=r.toSeq().skipUntil((function(e){return e===i})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(i.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?rU(!1,"ContentBlockNode must not have children"):rU(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),i=n.getKey();sU(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,o=t.toArray();return o.splice(n,0,i),e.merge({children:oU(o)})})),sU(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:i})})),sU(r,e,(function(e){return e.merge({nextSibling:i})})),sU(i,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})})},wU=rF.exports.OrderedSet,xU={replaceText:function(e,t,n,r,i){var o=vU(e,t),a=mU(o,t),s=cU.create({style:r||wU(),entity:i||null});return hU(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,i){return t.isCollapsed()||("production"!==process.env.NODE_ENV?gU(!1,"Target range must be collapsed for `insertText`."):gU(!1)),xU.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=pU(e,t),i=xU.removeRange(e,t,"backward");return xU.replaceWithFragment(i,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=vU(e,t),o=mU(i,t);return dU(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,i,o,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),i=t.getFocusKey(),o=e.getBlockForKey(r),a=e.getBlockForKey(i);var s=t.getStartOffset(),c=t.getEndOffset(),u=o.getEntityAt(s),l=a.getEntityAt(c-1);if(r===i&&u&&u===l){var f=fU(e.getEntityMap(),o,a,t,n);return mU(e,f)}var p=vU(e,t);return mU(p,t)},splitBlock:function(e,t){var n=vU(e,t),r=mU(n,t);return bU(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return uU.add(e,t,n)},removeInlineStyle:function(e,t,n){return uU.remove(e,t,n)},setBlockType:function(e,t,n){return yU(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return yU(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return yU(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=vU(e,t);return lU(r,t,n)}},_U=xU;var CU=function(e){return Object.keys(e).map((function(t){return e[t]}))};function OU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SU=yF,kU=CU,EU=rF.exports,AU=EU.List,TU=EU.Repeat,jU=EU.Record,MU=function(){return!0},PU=jU({start:null,end:null}),DU=jU({start:null,end:null,decoratorKey:null,leaves:null}),IU={generate:function(e,t,n){var r=t.getLength();if(!r)return AU.of(new DU({start:0,end:0,decoratorKey:null,leaves:AU.of(new PU({start:0,end:0}))}));var i=[],o=n?n.getDecorations(t,e):AU(TU(null,r)),a=t.getCharacterList();return SU(o,LU,MU,(function(e,t){i.push(new DU({start:e,end:t,decoratorKey:o.get(e),leaves:RU(a.slice(e,t).toList(),e)}))})),AU(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["leaves"]);return new DU(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){OU(e,t,n[t])}))}return e}({},n,{leaves:null!=t?AU(Array.isArray(t)?t:kU(t)).map((function(e){return PU(e)})):null}))}};function RU(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return SU(r,LU,MU,(function(e,r){n.push(new PU({start:e+t,end:r+t}))})),AU(n)}function LU(e,t){return e===t}var NU=IU;var BU=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 i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}((0,rF.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),FU=BU;var zU=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 UU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HU=FU,VU=nz,KU=zU,WU=(0,rF.exports.Map)(),$U=KU();function qU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var GU={getLastCreatedEntityKey:function(){return qU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),GU.__getLastCreatedEntityKey()},create:function(e,t,n){return qU("DraftEntity.create","contentState.createEntity"),GU.__create(e,t,n)},add:function(e){return qU("DraftEntity.add","contentState.addEntity"),GU.__add(e)},get:function(e){return qU("DraftEntity.get","contentState.getEntity"),GU.__get(e)},__getAll:function(){return WU},__loadWithEntities:function(e){WU=e,$U=KU()},mergeData:function(e,t){return qU("DraftEntity.mergeData","contentState.mergeEntityData"),GU.__mergeData(e,t)},replaceData:function(e,t){return qU("DraftEntity.replaceData","contentState.replaceEntityData"),GU.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return $U},__create:function(e,t,n){return GU.__add(new HU({type:e,mutability:t,data:n||{}}))},__add:function(e){return $U=KU(),WU=WU.set($U,e),$U},__get:function(e){var t=WU.get(e);return t||("production"!==process.env.NODE_ENV?VU(!1,"Unknown DraftEntity key: %s.",e):VU(!1)),t},__mergeData:function(e,t){var n=GU.__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){UU(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",r);return WU=WU.set(e,i),i},__replaceData:function(e,t){var n=GU.__get(e).set("data",t);return WU=WU.set(e,n),n}},ZU=GU;var YU=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 i=r.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=n||t<=a&&a<=n}if(e!==r&&e!==i)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.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,rF.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),XU=YU,JU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},QU=new RegExp("\r","g");var eH=function(e){return e.replace(QU,"")};function tH(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){nH(e,t,n[t])}))}return e}function nH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rH=oF,iH=gF,oH=jF,aH=WF,sH=ZU,cH=XU,uH=pz,lH=CU,fH=JU,pH=rF.exports,dH=eH,hH=pH.List,gH=pH.Record,yH=pH.Repeat,vH=pH.Map,mH=pH.OrderedMap,bH=gH({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),wH=fH("draft_tree_data_support")?aH:oH,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 i=r.prototype;return i.getEntityMap=function(){return sH},i.getBlockMap=function(){return this.get("blockMap")},i.getSelectionBefore=function(){return this.get("selectionBefore")},i.getSelectionAfter=function(){return this.get("selectionAfter")},i.getBlockForKey=function(e){return this.getBlockMap().get(e)},i.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},i.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},i.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},i.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},i.getBlocksAsArray=function(){return this.getBlockMap().toArray()},i.getFirstBlock=function(){return this.getBlockMap().first()},i.getLastBlock=function(){return this.getBlockMap().last()},i.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},i.getLastCreatedEntityKey=function(){return sH.__getLastCreatedEntityKey()},i.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},i.createEntity=function(e,t,n){return sH.__create(e,t,n),this},i.mergeEntityData=function(e,t){return sH.__mergeData(e,t),this},i.replaceEntityData=function(e,t){return sH.__replaceData(e,t),this},i.addEntity=function(e){return sH.__add(e),this},i.getEntity=function(e){return sH.__get(e)},i.getAllEntities=function(){return sH.__getAll()},i.loadWithEntities=function(e){return sH.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,i=rH.createFromArray(n),o=i.isEmpty()?new cH:cH.createEmpty(i.first().getKey());return new r({blockMap:i,entityMap:t||sH,selectionBefore:o,selectionAfter:o})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),i=n.map((function(e){return e=dH(e),new wH({key:uH(),text:e,type:"unstyled",characterList:hH(yH(iH.EMPTY,e.length))})}));return r.createFromBlockArray(i)},r.fromJS=function(e){return new r(tH({},e,{blockMap:mH(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new cH(e.selectionBefore),selectionAfter:new cH(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new wH(tH({},e,{data:vH(e.data),characterList:null!=t?hH((Array.isArray(t)?t:lH(t)).map((function(e){return iH.fromJS(e)}))):void 0}))},r}(bH),_H=xH,CH=nz,OH=null;function SH(e){return"LTR"===e||"RTL"===e}function kH(e){return SH(e)||("production"!==process.env.NODE_ENV?CH(!1,"`dir` must be a strong direction to be converted to HTML Direction"):CH(!1)),"LTR"===e?"ltr":"rtl"}function EH(e){OH=e}var AH={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:SH,getHTMLDir:kH,getHTMLDirIfDifferent:function(e,t){return SH(e)||("production"!==process.env.NODE_ENV?CH(!1,"`dir` must be a strong direction to be converted to HTML Direction"):CH(!1)),SH(t)||("production"!==process.env.NODE_ENV?CH(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):CH(!1)),e===t?null:kH(e)},setGlobalDir:EH,initGlobalDir:function(){EH("LTR")},getGlobalDir:function(){return OH||this.initGlobalDir(),OH||("production"!==process.env.NODE_ENV?CH(!1,"Global direction not set."):CH(!1)),OH}},TH=AH,jH=nz,MH="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",PH="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",DH=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+MH+PH+"]"),IH=new RegExp("["+MH+PH+"]");function RH(e){var t=DH.exec(e);return null==t?null:t[0]}function LH(e){var t=RH(e);return null==t?TH.NEUTRAL:IH.exec(t)?TH.RTL:TH.LTR}function NH(e,t){if(t=t||TH.NEUTRAL,!e.length)return t;var n=LH(e);return n===TH.NEUTRAL?t:n}function BH(e,t){return t||(t=TH.getGlobalDir()),TH.isStrong(t)||("production"!==process.env.NODE_ENV?jH(!1,"Fallback direction must be a strong direction"):jH(!1)),NH(e,t)}var FH={firstStrongChar:RH,firstStrongCharDir:LH,resolveBlockDir:NH,getDirection:BH,isDirectionLTR:function(e,t){return BH(e,t)===TH.LTR},isDirectionRTL:function(e,t){return BH(e,t)===TH.RTL}};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 UH,HH=FH,VH=AH,KH=nz,WH=function(){function e(e){zH(this,"_defaultDir",void 0),zH(this,"_lastDir",void 0),e?VH.isStrong(e)||("production"!==process.env.NODE_ENV?KH(!1,"Default direction must be a strong direction (LTR or RTL)"):KH(!1)):e=VH.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=HH.getDirection(e,this._lastDir),this._lastDir},e}(),$H=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},qH=WH,GH=rF.exports,ZH=$H,YH=GH.OrderedMap;function XH(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){JH(e,t,n[t])}))}return e}function JH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QH=NU,eV=_H,tV={getDirectionMap:function(e,t){UH?UH.reset():UH=new qH;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return ZH(UH).getDirection(e.getText())})),i=YH(n.keySeq().zip(r));return null!=t&&GH.is(t,i)?t:i}},nV=XU,rV=rF.exports,iV=rV.OrderedSet,oV=rV.Record,aV=rV.Stack,sV=rV.OrderedMap,cV=rV.List,uV=oV({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:aV(),selection:null,treeMap:null,undoStack:aV()}),lV=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(eV.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:aV(),redoStack:aV(),decorator:n||null,selection:nV.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=XH({},e,{treeMap:pV(n,e.decorator),directionMap:tV.getDirectionMap(n)});return new t(new uV(r))},t.fromJS=function(e){return new t(new uV(XH({},e,{directionMap:null!=e.directionMap?sV(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?iV(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?eV.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?aV(e.redoStack.map((function(e){return eV.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new nV(e.selection):e.selection,treeMap:null!=e.treeMap?sV(e.treeMap).map((function(e){return cV(e).map((function(e){return QH.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?aV(e.undoStack.map((function(e){return eV.fromJS(e)}))):e.undoStack,currentContent:eV.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var o=n.currentContent||e.getCurrentContent();if(i!==r){var a,s=t.get("treeMap");return a=i&&r?function(e,t,n,r,i){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)})).map((function(t){return QH.generate(e,t,r)})))}(o,o.getBlockMap(),s,i,r):pV(o,i),void t.merge({decorator:i,treeMap:a,nativelyRenderedContent:null})}o!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),o=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==o.get(t)})).map((function(e){return QH.generate(i,e,r)})))}(e,o.getBlockMap(),o.getEntityMap(),i)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){JH(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(),i=e.getBlockForKey(n);if(r>0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return hV(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r<i.getLength())return i.getInlineStyleAt(r);if(r>0)return i.getInlineStyleAt(r-1);return hV(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 fV(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),fV(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new nV({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var o=tV.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||dV(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:o,undoStack:c,redoStack:aV(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,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 i=e.getCurrentContent(),o=tV.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=tV.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function fV(e,t,n){return lV.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function pV(e,t){return e.getBlockMap().map((function(n){return QH.generate(e,n,t)})).toOrderedMap()}function dV(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function hV(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):iV()}var gV=lV,yV=WF,vV=Hz,mV=rF.exports,bV=nz,wV=mV.OrderedMap,xV=mV.List,_V=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},CV=function(e,t,n,r,i){if(!i)return e;var o="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=o?n.getNextSiblingKey():s,d=o?s:n.getPrevSiblingKey();return e.withMutations((function(e){_V(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),_V(l,e,(function(e){return e.merge({nextSibling:u})})),_V(u,e,(function(e){return e.merge({prevSibling:l})})),_V(p,e,(function(e){return e.merge({prevSibling:a})})),_V(d,e,(function(e){return e.merge({nextSibling:a})})),_V(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=o?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,a),e.merge({children:xV(i)})})),_V(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function OV(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){SV(e,t,n[t])}))}return e}function SV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kV=oF,EV=gF,AV=jF,TV=WF,jV=_U,MV=gV,PV=pz,DV=rF.exports,IV=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?bV(!1,"Replacing blocks is not supported."):bV(!1));var i=n.getKey(),o=t.getKey();o===i&&("production"!==process.env.NODE_ENV?bV(!1,"Block cannot be moved next to itself."):bV(!1));var a=e.getBlockMap(),s=t instanceof yV,c=[t],u=a.delete(o);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=vV(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===o})).takeWhile((function(e){var t=e.getKey(),i=t===o,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||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=wV();if("before"===r){var h=e.getBlockBefore(i);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?bV(!1,"Block cannot be moved next to itself."):bV(!1)),d=l.concat([].concat(p,[[i,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(i);g&&g.getKey()===o&&("production"!==process.env.NODE_ENV?bV(!1,"Block cannot be moved next to itself."):bV(!1)),d=l.concat([[i,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:CV(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:o,focusKey:o})})},RV=JU("draft_tree_data_support"),LV=RV?TV:AV,NV=DV.List,BV=DV.Repeat,FV={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),i=e.getSelection(),o=jV.removeRange(r,i,"backward"),a=o.getSelectionAfter(),s=jV.splitBlock(o,a),c=s.getSelectionAfter(),u=jV.setBlockType(s,c,"atomic"),l=EV.create({entity:t}),f={key:PV(),type:"atomic",text:n,characterList:NV(BV(l,n.length))},p={key:PV(),type:"unstyled"};RV&&(f=OV({},f,{nextSibling:p.key}),p=OV({},p,{prevSibling:f.key}));var d=[new LV(f),new LV(p)],h=kV.createFromArray(d),g=jV.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:i,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return MV.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,o=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=IV(o,t,s,r)}else{var c=jV.removeRange(o,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())i=IV(c,t,l,"before");else if(u.getEndOffset()===l.getLength())i=IV(c,t,l,"after");else{var f=jV.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());i=IV(f,t,d,"before")}}var h=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return MV.push(e,h,"move-block")}};var zV=rF.exports.List,UV=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,i){var o=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 i=t;i<n;i++)e[i]=r}(n,e,t,i+"."+o),o++)}),t)})),zV(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 HV=UV;function VV(e){return e.replace(/\//g,"-")}var KV=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(VV).join(" "):Array.prototype.map.call(arguments,VV).join(" ")},WV=i,$V=KV,qV=(0,rF.exports.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:WV.createElement("ul",{className:$V("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:WV.createElement("ol",{className:$V("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:WV.createElement("pre",{className:$V("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),GV={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},ZV={exports:{}};!function(e,t){!function(n,r){var i="function",o="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",O="Firefox",S="Google",k="Huawei",E="LG",A="Microsoft",T="Motorola",j="Opera",M="Samsung",P="Sony",D="Xiaomi",I="Zebra",R="Facebook",L=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===s&&-1!==B(t).indexOf(B(e))},B=function(e){return e.toLowerCase()},F=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===o?e:e.substring(0,255)},z=function(e,t){for(var n,o,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=o=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++o],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||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 i=0;i<t[n].length;i++)if(N(t[n][i],e))return"?"===n?r:n}else if(N(t[n],e))return"?"===n?r:n;return e},H={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"},V={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,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,j]],[/(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,"UCBrowser"]],[/\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 Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],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,R],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,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(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,"Firefox 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,B]],[/((?: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/,"",B]],[/(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,B]]],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,M],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,M],[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,k],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[f,k],[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,D],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,D],[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,T],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,T],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,E],[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,E],[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,S],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,S],[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,P],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,P],[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,A],[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,A],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,I],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,I],[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,P],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,A],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,M],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,E],[l,v]],[/(apple) ?tv/i],[f,[c,"Apple TV"],[l,v]],[/crkey/i],[[c,"Chromecast"],[f,S],[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,F],[c,F],[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,S],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,I],[l,m]],[/(quest( 2)?)/i],[c,[f,R],[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,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,U,H]],[/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,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(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]]},K=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof K))return new K(e,t).getResult();var i=e||(typeof n!==o&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),c=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}(V,t):V;return this.getBrowser=function(){var e,t={};return t.name=r,t.version=r,z.call(t,i,c.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e.architecture=r,z.call(e,i,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=r,e.model=r,e.type=r,z.call(e,i,c.device),e},this.getEngine=function(){var e={};return e.name=r,e.version=r,z.call(e,i,c.engine),e},this.getOS=function(){var e={};return e.name=r,e.version=r,z.call(e,i,c.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 i},this.setUA=function(e){return i=typeof e===s&&e.length>255?F(e,255):e,this},this.setUA(i),this};K.VERSION="0.7.31",K.BROWSER=L([u,p,"major"]),K.CPU=L([d]),K.DEVICE=L([c,f,l,h,g,v,y,m,b]),K.ENGINE=K.OS=L([u,p]),e.exports&&(t=e.exports=K),t.UAParser=K;var W=typeof n!==o&&(n.jQuery||n.Zepto);if(W&&!W.ua){var $=new K;W.ua=$.getResult(),W.ua.get=function(){return $.getUA()},W.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:Ot)}(ZV,ZV.exports);var YV="Unknown",XV={"Mac OS":"Mac OS X"};var JV,QV=(new(0,ZV.exports)).getResult(),eK=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(QV.browser.version),tK={browserArchitecture:QV.cpu.architecture||YV,browserFullVersion:QV.browser.version||YV,browserMinorVersion:eK.minor||YV,browserName:QV.browser.name||YV,browserVersion:QV.browser.major||YV,deviceName:QV.device.model||YV,engineName:QV.engine.name||YV,engineVersion:QV.engine.version||YV,platformArchitecture:QV.cpu.architecture||YV,platformName:(JV=QV.os.name,XV[JV]||JV||YV),platformVersion:QV.os.version||YV,platformFullVersion:QV.os.version||YV},nK=nz,rK=/\./,iK=/\|\|/,oK=/\s+\-\s+/,aK=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,sK=/^(\d*)(.*)/;function cK(e,t){var n=e.split(iK);return n.length>1?n.some((function(e){return bK.contains(e,t)})):function(e,t){var n=e.split(oK);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?nK(!1,'the "-" operator expects exactly 2 operands'):nK(!1)),1===n.length)return uK(n[0],t);var r=n[0],i=n[1];return hK(r)&&hK(i)||("production"!==process.env.NODE_ENV?nK(!1,'operands to the "-" operator must be simple (no modifiers)'):nK(!1)),uK(">="+r,t)&&uK("<="+i,t)}(e=n[0].trim(),t)}function uK(e,t){if(""===(e=e.trim()))return!0;var n=t.split(rK),r=pK(e),i=r.modifier,o=r.rangeComponents;switch(i){case"<":return lK(n,o);case"<=":return function(e,t){var n=mK(e,t);return-1===n||0===n}(n,o);case">=":return fK(n,o);case">":return function(e,t){return 1===mK(e,t)}(n,o);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);dK(o)&&(r[i]=o+1+"");return fK(e,n)&&lK(e,r)}(n,o);default:return function(e,t){return 0===mK(e,t)}(n,o)}}function lK(e,t){return-1===mK(e,t)}function fK(e,t){var n=mK(e,t);return 1===n||0===n}function pK(e){var t=e.split(rK),n=t[0].match(aK);return n||("production"!==process.env.NODE_ENV?nK(!1,"expected regex to match but it did not"):nK(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function dK(e){return!isNaN(e)&&isFinite(e)}function hK(e){return!pK(e).modifier}function gK(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function yK(e,t){var n=e.match(sK)[1],r=t.match(sK)[1],i=parseInt(n,10),o=parseInt(r,10);return dK(i)&&dK(o)&&i!==o?vK(i,o):vK(e,t)}function vK(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?nK(!1,'"a" and "b" must be of the same type'):nK(!1)),e>t?1:e<t?-1:0}function mK(e,t){for(var n=function(e,t){gK(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 i=n;i<e.length;i++)e[i]="0"}return gK(t,e.length),[e,t]}(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=yK(r[o],i[o]);if(a)return a}return 0}var bK={contains:function(e,t){return cK(e.trim(),t.trim())}},wK=bK,xK=Object.prototype.hasOwnProperty;var _K=function(e,t,n){if(!e)return null;var r={};for(var i in e)xK.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r};var CK=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},OK=tK,SK=wK;function kK(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,SK.contains(i,t))}function EK(e){return"Windows"===OK.platformName?e.replace(/^\s*NT/,""):e}var AK=_K({isBrowser:function(e){return kK(OK.browserName,OK.browserFullVersion,e)},isBrowserArchitecture:function(e){return kK(OK.browserArchitecture,null,e)},isDevice:function(e){return kK(OK.deviceName,null,e)},isEngine:function(e){return kK(OK.engineName,OK.engineVersion,e)},isPlatform:function(e){return kK(OK.platformName,OK.platformFullVersion,e,EK)},isPlatformArchitecture:function(e){return kK(OK.platformArchitecture,null,e)}},CK);var TK=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var jK=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},MK=jK;var PK=function e(t){if(MK(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<n.childNodes.length;i++){var o=e(n.childNodes[i]);if(o)return o}}return null},DK=TK,IK=PK;var RK=function(e){for(var t=e;t&&t!==DK(e).documentElement;){var n=IK(t);if(null!=n)return n;t=t.parentNode}return null};var LK=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function NK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BK=AK,FK=RK,zK=LK,UK=nz,HK=$H,VK=rF.exports.Map,KK={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},WK=BK.isBrowser("IE <= 11"),$K=function(){function e(e){var t=this;NK(this,"observer",void 0),NK(this,"container",void 0),NK(this,"mutations",void 0),NK(this,"onCharData",void 0),this.container=e,this.mutations=VK();var n=zK(e);n.MutationObserver&&!WK?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?UK(!1,"Expected target to be an instance of Node"):UK(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,KK):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=VK(),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 WK?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=HK(FK(e.target));this.mutations=this.mutations.set(n,t)}},e}(),qK={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-").reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join("-"),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},GK={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},ZK={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var YK=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},XK=nz,JK=YK;var QK=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?XK(!1,"Missing editorNode"):XK(!1)),JK(t.firstChild)||("production"!==process.env.NODE_ENV?XK(!1,"editorNode.firstChild is not an HTMLElement"):XK(!1)),t.firstChild},eW=qK,tW=$H;var nW=function(e,t,n,r,i){var o=tW(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),o;var a=eW.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=eW.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()),o;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+i:null,m=o.getAnchorKey()===s&&o.getAnchorOffset()===y&&o.getFocusKey()===f&&o.getFocusOffset()===v;if(m)return o;var b=!1;if(s===f){var w=u.get("end"),x=d.get("end");b=g===h&&x===w?i<n:g<h}else{var _=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();b=_===f}return o.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:b})},rW=RK,iW=PK,oW=nW,aW=nz,sW=jK,cW=$H;function uW(e,t,n){var r=t,i=rW(r);(null!=i||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?aW(!1,"Unknown node in selection range."):aW(!1)),e===r)&&(r=r.firstChild,sW(r)||("production"!==process.env.NODE_ENV?aW(!1,"Invalid DraftEditorContents node."):aW(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?aW(!1,"Invalid DraftEditorContents structure."):aW(!1)),n>0&&(n=r.childNodes.length));if(0===n){var o=null;if(null!=i)o=i;else{var a=function(e){for(;e.firstChild&&(sW(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||iW(e.firstChild));)e=e.firstChild;return e}(r);o=cW(iW(a))}return{key:o,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(iW(s)){var l=function(e){for(;e.lastChild&&(sW(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||iW(e.lastChild));)e=e.lastChild;return e}(s);c=cW(iW(l)),u=lW(l)}else c=cW(i),u=lW(s);return{key:c,offset:u}}function lW(e){var t=e.textContent;return"\n"===t?0:t.length}var fW=function(e,t,n,r,i,o){var a=n.nodeType===Node.TEXT_NODE,s=i.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:oW(e,cW(rW(n)),r,cW(rW(i)),o),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:cW(rW(n)),offset:r},u=uW(t,i,o)):s?(u={key:cW(rW(i)),offset:o},c=uW(t,n,r)):(c=uW(t,n,r),u=uW(t,i,o),n===i&&r===o&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:oW(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},pW=fW;var dW=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,i=n.anchorOffset,o=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==o?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:pW(e,t,r,i,o,a)},hW=ZK,gW=gV,yW=QK,vW=dW;var mW=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();hW.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=vW(n,yW(e)),i=r.selectionState;i!==n.getSelection()&&(n=r.needsRecovery?gW.forceSelection(n,i):gW.acceptSelection(n,i),e.update(n))}};var bW={notEmptyKey:function(e){return null!=e&&""!=e}},wW=bW.notEmptyKey;function xW(e,t){return wW(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var _W=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:xW(e.getEntityMap(),n):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return n=a===s.getLength()?null:s.getEntityAt(a),xW(e.getEntityMap(),n)},CW=$K,OW=_U,SW=qK,kW=gV,EW=GK,AW=mW,TW=QK,jW=dW,MW=_W,PW=$H,DW=AK.isBrowser("IE"),IW=!1,RW=!1,LW=null;var NW,BW,FW={onCompositionStart:function(e){RW=!0,function(e){LW||(LW=new CW(TW(e))).start()}(e)},onCompositionEnd:function(e){IW=!1,RW=!1,setTimeout((function(){IW||FW.resolveComposition(e)}),20)},onSelect:AW,onKeyDown:function(e,t){if(!RW)return FW.resolveComposition(e),void e._onKeyDown(t);t.which!==EW.RIGHT&&t.which!==EW.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===EW.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!RW){var t=PW(LW).stopAndFlushMutations();LW=null,IW=!0;var n=kW.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var i=SW.decode(t),o=i.blockKey,a=i.decoratorKey,s=i.leafKey,c=n.getBlockTree(o).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:o,focusKey:o,anchorOffset:u,focusOffset:l,isBackward:!1}),p=MW(r,f),d=r.getBlockForKey(o).getInlineStyleAt(u);r=OW.replaceText(r,f,e,d,p),n=kW.set(n,{currentContent:r})}));var i=jW(n,TW(e)).selectionState;e.restoreEditorDOM();var o=DW?kW.forceSelection(n,i):kW.acceptSelection(n,i);e.update(kW.push(o,r,"insert-characters"))}else e.update(n)}}},zW=FW;function UW(){if(BW)return NW;BW=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}var n=qK,r=i,o=FH,a=AH,s=function(e){var i,s;function c(){return e.apply(this,arguments)||this}return s=e,(i=c).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s,c.prototype.render=function(){var e=this.props,i=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=i.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=n.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(o.getDirection(b),f);return r.createElement(y,t({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:i.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(r.Component);return NW=s}function HW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KW=i,WW=nz,$W=jK,qW=AK.isBrowser("IE <= 11");var GW=function(e){var t,n;function r(t){var n;return VW(HW(n=e.call(this,t)||this),"_forceFlag",void 0),VW(HW(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 i=r.prototype;return i.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;$W(t)||("production"!==process.env.NODE_ENV?WW(!1,"node is not an Element"):WW(!1));var r=t;return n?!function(e){return qW?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},i.componentDidMount=function(){this._forceFlag=!this._forceFlag},i.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},i.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},qW?KW.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):KW.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return qW?KW.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):KW.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):KW.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(KW.Component),ZW=GW,YW=jK;var XW=function(e){return!(!e||!e.ownerDocument)&&(YW(e)&&"BR"===e.nodeName)};var JW=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))},QW=JW;var e$=function(e){return QW(e)&&3==e.nodeType},t$=e$;var n$=function e(t,n){return!(!t||!n)&&(t===n||!t$(t)&&(t$(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var r$=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}},i$=ZK,o$=n$,a$=r$,s$=TK,c$=nz,u$=jK,l$=AK.isBrowser("IE");function f$(e,t){if(!e)return"[empty]";var n=p$(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(u$(n)||("production"!==process.env.NODE_ENV?c$(!1,"Node must be an Element if it is not a text node."):c$(!1)),n.outerHTML)}function p$(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return s$(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var o=e.childNodes,a=0;a<o.length;a++)i.appendChild(p$(o[a],t));return i}function d$(e,t){for(var n=e,r=n;n;){if(u$(n)&&r.hasAttribute("contenteditable"))return f$(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function h$(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function g$(e,t,n,r){var i=a$();if(e.extend&&null!=t&&o$(i,t)){n>h$(t)&&i$.logSelectionStateFailure({anonymizedDom:d$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var o=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw i$.logSelectionStateFailure({anonymizedDom:d$(t,(function(t){var n=[];return t===i&&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:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:o,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 y$(e,t,n,r){var i=s$(t).createRange();if(n>h$(t)&&i$.logSelectionStateFailure({anonymizedDom:d$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),i.setStart(t,n),l$)try{e.addRange(i)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(i)}var v$=function(e,t,n,r,i){var o=s$(t);if(o$(o.documentElement,t)){var a=o.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&&i>=c,g=u===n&&r<=l&&i>=l;if(h&&g)return a.removeAllRanges(),y$(a,t,c-r,e),void g$(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),y$(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),y$(a,t,c-r,e),g$(a,y,v,e)}}else h&&(a.removeAllRanges(),y$(a,t,c-r,e)),g&&g$(a,t,l-r,e)}},m$=sp;function b$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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 x$,_$,C$=ZW,O$=i,S$=nz,k$=XW,E$=v$,A$=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return w$(b$(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 i=r.prototype;return i._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,i=t.text,o=n.getKey(),a=r+i.length;if(e.hasEdgeWithin(o,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?S$(!1,"Missing node"):S$(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?S$(!1,"Missing child"):S$(!1)),u.nodeType===Node.TEXT_NODE?c=u:k$(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?S$(!1,"Missing targetNode"):S$(!1)),E$(e,c,o,r,a)}}},i.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?S$(!1,"Missing leafNode"):S$(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},i.componentDidUpdate=function(){this._setSelection()},i.componentDidMount=function(){this._setSelection()},i.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,i=r.customStyleMap,o=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=i[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),m$(e,r,n)}),{});if(o){var u=o(s,t);c=m$(c,u)}return O$.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},O$.createElement(C$,null,n))},r}(O$.Component),T$=A$;function j$(){if(_$)return x$;_$=1;var e=UW(),t=T$,n=qK,r=i,o=KV;rF.exports.List;var a=function(i){var a,s;function c(){return i.apply(this,arguments)||this}return s=i,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var i=this.props,a=i.block,s=i.contentState,c=i.customStyleFn,u=i.customStyleMap,l=i.decorator,f=i.direction,p=i.forceSelection,d=i.hasSelection,h=i.selection,g=i.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(i,o){var g=i.get("decoratorKey"),b=i.get("leaves"),w=b.size-1,x=b.map((function(e,i){var s=n.encode(y,o,i),l=e.get("start"),f=e.get("end");return r.createElement(t,{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&&i===w})})).toArray();return g&&l?r.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:i,text:v,key:o}):x})).toArray();return r.createElement("div",{"data-offset-key":n.encode(y,0,0),className:o({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(r.Component);return x$=a}function M$(e,t){return!!t&&(e===t.documentElement||e===t.body)}var P$={getTop:function(e){var t=e.ownerDocument;return M$(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;M$(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return M$(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;M$(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},D$=/-(.)/g;var I$=function(e){return e.replace(D$,(function(e,t){return t.toUpperCase()}))},R$=/([A-Z])/g;var L$=function(e){return e.replace(R$,"-$1").toLowerCase()},N$=I$,B$=L$;function F$(e){return null==e?e:String(e)}var z$=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return F$(n.getPropertyValue(B$(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return F$(n.getPropertyValue(B$(t)));if("display"===t)return"none"}return e.currentStyle?F$("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[N$(t)]):F$(e.style&&e.style[N$(t)])};function U$(e,t){var n=H$.get(e,t);return"auto"===n||"scroll"===n}var H$={get:z$,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(U$(e,"overflow")||U$(e,"overflowY")||U$(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},V$=H$,K$=n$;var W$=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!K$(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 $$=function(e){var t=W$(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},q$="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var G$=function(e){return(e=e||document).scrollingElement?e.scrollingElement:q$||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Z$=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 Y$=function(e){var t=G$(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Z$(e),r=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-r.clientWidth,o=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,o)),n};function X$(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function J$(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function Q$(){return{width:window.innerWidth||X$(),height:window.innerHeight||J$()}}Q$.withoutScrollbars=function(){return{width:X$(),height:J$()}};var eq,tq,nq,rq,iq=Q$;function oq(){if(tq)return eq;tq=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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 a=j$(),s=qK,c=i,u=P$,l=V$,f=$$,p=Y$,d=iq,h=nz,g=YK;rF.exports.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,i,o,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=i(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=r({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var i,w;function x(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o(n(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",c.createRef()),t}w=e,(i=x).prototype=Object.create(w.prototype),i.prototype.constructor=i,i.__proto__=w;var _=x.prototype;return _.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,o=!n.getChildKeys().isEmpty(),a=n!==e.block||i!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return o||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,i=l.getScrollParent(n),o=p(i);if(i===window){var a=f(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(o.x,o.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-(i.offsetHeight+o.y))>0&&u.setTop(i,u.getTop(i)+r+10)}}}},_.render=function(){var e=this,n=this.props,i=n.block,o=n.blockRenderMap,u=n.blockRendererFn,l=n.blockStyleFn,f=n.contentState,p=n.decorator,d=n.editorKey,h=n.editorState,g=n.customStyleFn,w=n.customStyleMap,_=n.direction,C=n.forceSelection,O=n.selection,S=n.tree,k=null;i.children.size&&(k=i.children.reduce((function(t,n){var i=s.encode(n,0,0),a=f.getBlockForKey(n),p=m(a,u),g=p.CustomComponent||x,y=v(a,o),w=y.Element,_=y.wrapperTemplate,C=b(a,d,i,l,p,null),O=r({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:i,block:a});return t.push(c.createElement(w,C,c.createElement(g,O))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(a,f)||function(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){o=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(o)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=i.getKey(),A=s.encode(E,0,0),T=m(i,u),j=T.CustomComponent,M=null!=j?c.createElement(j,t({},this.props,{tree:h.getBlockTree(E),blockProps:T.customProps,offsetKey:A,block:i})):c.createElement(a,{block:i,children:k,contentState:f,customStyleFn:g,customStyleMap:w,decorator:p,direction:_,forceSelection:C,hasSelection:y(O,E),selection:O,tree:S});if(i.getParentKey())return M;var P=v(i,o).Element,D=b(i,d,A,l,T,this.wrapperRef);return c.createElement(P,D,M)},x}(c.Component);return eq=w}var aq=sp;function sq(){return sq=aq||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},sq.apply(this,arguments)}function cq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lq,fq,pq,dq,hq=T$,gq=qK,yq=i,vq=P$,mq=V$,bq=FH,wq=AH,xq=KV,_q=$$,Cq=Y$,Oq=iq,Sq=nz,kq=YK,Eq=$H,Aq=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},Tq=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return uq(cq(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 i=r.prototype;return i.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||Aq(e.selection,e.block.getKey())&&e.forceSelection},i.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,i=mq.getScrollParent(n),o=Cq(i);if(i===window){var a=_q(n);(r=a.y+a.height-Oq().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{kq(n)||("production"!==process.env.NODE_ENV?Sq(!1,"blockNode is not an HTMLElement"):Sq(!1)),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&vq.setTop(i,vq.getTop(i)+r+10)}}}}},i._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),i=this.props.tree.size-1,o=Aq(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=gq.encode(n,s,c),f=a.get("start"),p=a.get("end");return yq.createElement(hq,{key:l,offsetKey:l,block:t,start:f,selection:o?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===i&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=Eq(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=gq.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=wq.getHTMLDirIfDifferent(bq.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 yq.createElement(d,sq({},h,x,{key:g}),l)})).toArray()},i.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=xq({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return yq.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},r}(yq.Component),jq=Tq;var Mq=JU("draft_tree_data_support")?function(){if(rq)return nq;rq=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}var n=oq(),r=qK,o=i,a=$H,s=function(e){var i,s;function c(){return e.apply(this,arguments)||this}s=e,(i=c).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__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(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return i!==o||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,i=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:i,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=(i.get(w.getType())||i.get("unstyled")).wrapper;b.push({block:o.createElement(n,t({key:x},_)),wrapperTemplate:C,key:x,offsetKey:r.encode(x,0,0)});var O=w.getNextSiblingKey();w=O?h.getBlockForKey(O):null}for(var S=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var A=[];do{A.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var T=o.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},A);S.push(T)}else S.push(E.block),k++}return o.createElement("div",{"data-contents":"true"},S)},c}(o.Component);return nq=s}():function(){if(dq)return pq;dq=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=jq,a=qK,s=i,c=KV,u=(fq||(fq=1,lq=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var i=arguments[r];i&&(t=(t?t+" ":"")+i)}return t}),lq),l=$H,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 r,i;function c(){return e.apply(this,arguments)||this}i=e,(r=c).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;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(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return i!==o||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,r=e.blockRenderMap,i=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(),O=[],S=null,k=null,E=0;E<C.length;E++){var A=C[E],T=A.getKey(),j=A.getType(),M=i(A),P=void 0,D=void 0,I=void 0;M&&(P=M.component,D=M.props,I=M.editable);var R=v||_.get(T),L=a.encode(T,0,0),N={contentState:m,block:A,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:R,forceSelection:w,offsetKey:L,preventScroll:y,selection:b,tree:h.getBlockTree(T)},B=r.get(j)||r.get("unstyled"),F=B.wrapper,z=B.element||r.get("unstyled").element,U=A.getDepth(),H="";if(c&&(H=c(A)),"li"===z)H=u(H,f(j,U,k!==F||null===S||U>S,R));var V=P||o,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":L,key:T};void 0!==I&&(K=n({},K,{contentEditable:I,suppressContentEditableWarning:!0}));var W=s.createElement(z,K,s.createElement(V,t({},N,{key:T})));O.push({block:W,wrapperTemplate:F,key:T,offsetKey:L}),S=F?A.getDepth():null,k=F}for(var $=[],q=0;q<O.length;){var G=O[q];if(G.wrapperTemplate){var Z=[];do{Z.push(O[q].block),q++}while(q<O.length&&O[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 pq=p}(),Pq={isImage:function(e){return"image"===Dq(e)[0]},isJpeg:function(e){var t=Dq(e);return Pq.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function Dq(e){return e.split("/")}var Iq=Pq,Rq=nz;var Lq=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?Rq(!1,"toArray: Array-like object expected"):Rq(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?Rq(!1,"toArray: Object needs a length property"):Rq(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?Rq(!1,"toArray: Object should have keys for indices"):Rq(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?Rq(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):Rq(!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 Nq(e){return function(){return e}}var Bq=function(){};Bq.thatReturns=Nq,Bq.thatReturnsFalse=Nq(!1),Bq.thatReturnsTrue=Nq(!0),Bq.thatReturnsNull=Nq(null),Bq.thatReturnsThis=function(){return this},Bq.thatReturnsArgument=function(e){return e};var Fq=Bq,zq=Iq,Uq=Lq,Hq=Fq,Vq=new RegExp("\r\n","g"),Kq={"text/rtf":1,"text/html":1};function Wq(e){if("file"==e.kind)return e.getAsFile()}var $q=function(){function e(e){this.data=e,this.types=e.types?Uq(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return Kq[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(Vq,"\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(!zq.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(Wq).filter(Hq.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),qq=$q,Gq=nz,Zq=/\.textClipping$/,Yq={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Xq=function(e,t){var n=0,r=[];e.forEach((function(i){!function(e,t){if(!Ot.FileReader||e.type&&!(e.type in Yq))return void t("");if(""===e.type){var n="";return Zq.test(e.name)&&(n=e.name.replace(Zq,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Gq(!1,'We should be calling "FileReader.readAsText" which returns a string'):Gq(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(i,(function(i){n++,i&&r.push(i.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Jq=function(e){return"handled"===e||!0===e},Qq=qq,eG=_U,tG=gV,nG=RK,rG=TK,iG=Xq,oG=nW,aG=LK,sG=Jq,cG=$H;function uG(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:aG(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function lG(e,t,n){var r=eG.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return tG.push(e,r,"insert-fragment")}var fG={onDragEnd:function(e){e.exitCurrentMode(),uG(e)},onDrop:function(e,t){var n=new Qq(t.nativeEvent.dataTransfer),r=e._latestEditorState,i=function(e,t){var n=null,r=null,i=rG(e.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=cG(n),r=cG(r);var a=cG(nG(n));return oG(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=i){var o=n.getFiles();if(o.length>0){if(e.props.handleDroppedFiles&&sG(e.props.handleDroppedFiles(i,o)))return;iG(o,(function(t){t&&e.update(lG(r,i,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&sG(e.props.handleDrop(i,n,a))||(e._internalDrag?e.update(function(e,t){var n=eG.moveText(e.getCurrentContent(),e.getSelection(),t);return tG.push(e,n,"insert-fragment")}(r,i)):e.update(lG(r,i,n.getText()))),uG(e)}}}};var pG=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some((function(e){return i===e.get("start")?(o=!0,!0):i<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return i===t&&(o=!0,!0)}))})),o};!function(e,t){if(!e.setImmediate){var n,r,i,o,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?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){i.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)}:(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(o+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 i={callback:e,args:t};return c[s]=i,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?Ot:self);var dG=Ot.setImmediate,hG=_U,gG=gV,yG=_W,vG=Jq,mG=pG,bG=$H,wG=dG,xG=AK.isBrowser("Firefox");function _G(e,t,n,r,i){var o=hG.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return gG.push(e,o,"insert-characters",i)}var CG=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&&vG(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),o=i.getStartOffset(),a=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(_G(n,r,n.getCurrentInlineStyle(),yG(n.getCurrentContent(),n.getSelection()),!0));var s,c=_G(n,r,n.getCurrentInlineStyle(),yG(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=mG(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],i=t.get("start"),a=i+(i>=o?r.length:0),s=t.get("end"),c=s+(s>=o?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-i}))}if(u||(s=r,u=xG&&("'"==s||"/"==s)),u||(u=bG(c.getDirectionMap()).get(a)!==bG(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=gG.set(c,{forceSelection:!0}),void e.update(c);c=gG.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,wG((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},OG=gV,SG=n$,kG=r$;var EG=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&kG(n)===n.body){var r=n.defaultView.getSelection(),i=e.editor;1===r.rangeCount&&SG(i,r.anchorNode)&&SG(i,r.focusNode)&&r.removeAllRanges()}var o=e._latestEditorState,a=o.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(OG.acceptSelection(o,s))}},AG=gV;var TG=function(e,t){e.setMode("composite"),e.update(AG.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},jG=Oz;var MG=function(e){var t=e.getSelection();return t.isCollapsed()?null:jG(e.getCurrentContent(),t)},PG=MG;var DG=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(PG(e._latestEditorState))};var IG=_U,RG=gV,LG=V$,NG=MG,BG=Y$,FG=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 zG=function(e,t){var n,r=e._latestEditorState,i=r.getSelection(),o=t.target;if(i.isCollapsed())t.preventDefault();else{if(FG(o)){var a=o;n=BG(LG.getScrollParent(a))}var s=NG(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=IG.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return RG.push(e,t,"remove-range")}(r))}),0)}};var UG=function(e,t){e.setMode("drag"),t.preventDefault()};var HG=function(e){e._internalDrag=!0,e.setMode("drag")},VG=gV,KG=AK;var WG=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var i=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),KG.isBrowser("Chrome < 60.0.3081.0")?e.update(VG.forceSelection(n,i)):e.update(VG.acceptSelection(n,i))}},$G=nz,qG=/[\uD800-\uDFFF]/;function GG(e){return 55296<=e&&e<=57343}function ZG(e){return qG.test(e)}function YG(e,t){return 1+GG(e.charCodeAt(t))}function XG(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!ZG(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var i=0;if(t>0){for(;t>0&&i<r;t--)i+=YG(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=YG(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=YG(e,o);return e.substring(i,o)}var JG={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=YG(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:YG,hasSurrogateUnit:ZG,isCodeUnitInSurrogateRange:GG,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?$G(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):$G(!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(!ZG(e))return e.length;for(var t=0,n=0;n<e.length;n+=YG(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 XG(e,t=t<n?t:n,r)},substr:XG},QG=JG,eZ=Fq;function tZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}}var nZ="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),i=2;i<n;i++)r[i-2]=arguments[i];tZ.apply(void 0,[t].concat(r))}}:eZ,rZ=nZ,iZ=rZ;var oZ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&iZ(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var c=r.getKeyBefore(i);if(null==c)a=i;else a=c,s=r.getBlockForKey(c).getText().length}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},aZ=_U,sZ=JU("draft_tree_data_support");var cZ=function(e,t,n){var r=e.getSelection(),i=e.getCurrentContent(),o=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=i.getBlockForKey(a);if(sZ&&"forward"===n&&a!==s)return i;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i;if(sZ)if(r.getAnchorOffset()===i.getBlockForKey(a).getLength()){var u=i.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return i}}else if(e.isSelectionAtStartOfContent())return i;if((o=t(e))===r)return i}return aZ.removeRange(i,o,n)},uZ=gV,lZ=QG,fZ=oZ,pZ=cZ;var dZ=function(e){var t=pZ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),o=n.getBlockForKey(r).getText()[i-1];return fZ(e,o?lZ.getUTF16Length(o,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return uZ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},hZ=_U,gZ=qK,yZ=gV,vZ=bW.notEmptyKey,mZ=RK,bZ=dZ,wZ=$H,xZ=AK.isEngine("Gecko");var _Z=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,i=n.isCollapsed,o=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!o){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=wZ(mZ(r)),f=gZ.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,O,S=u.getSelection(),k=S.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),A=vZ(E)?m.getEntity(E):null,T="MUTABLE"===(null!=A?A.getMutability():null),j=T?"spellcheck-change":"apply-entity",M=hZ.replaceText(m,k,c,b.getInlineStyleAt(y),T?b.getEntityAt(y):null);if(xZ)x=n.anchorOffset,_=n.focusOffset,O=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=O;else{var P=c.length-w.length;C=S.getStartOffset(),O=S.getEndOffset(),x=i?O+P:C,_=O+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(yZ.push(u,D,j))}else{var I=t.nativeEvent.inputType;if(I){var R=function(e,t){return"deleteContentBackward"===e?bZ(t):t}(I,u);if(R!==u)return e.restoreEditorDOM(),void e.update(R)}}}},CZ=GK;var OZ=function(e){return e.which===CZ.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},SZ=AK.isPlatform("Mac OS X"),kZ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return SZ&&e.altKey},usesMacOSHeuristics:function(){return SZ},hasCommandModifier:function(e){return SZ?!!e.metaKey&&!e.altKey:kZ.isCtrlKeyCommand(e)},isSoftNewlineEvent:OZ},EZ=kZ,AZ=_U,TZ=gV,jZ=Oz,MZ=$H,PZ=null,DZ={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var i=n.getAnchorKey(),o=t.getBlockForKey(i).getLength();if(o===n.getAnchorOffset()){var a=t.getKeyAfter(i);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",o)}else r=n;r=MZ(r),PZ=jZ(t,r);var s=AZ.removeRange(t,r,"forward");return s===t?e:TZ.push(e,s,"remove-range")},paste:function(e){if(!PZ)return e;var t=AZ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),PZ);return TZ.push(e,t,"insert-fragment")}},IZ=nz;var RZ=AK.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o,a=Array.from(t.getClientRects());if(n.push(a),i)return n.reverse(),(o=[]).concat.apply(o,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?IZ(!1,"Found an unexpected detached subtree when getting range client rects."):IZ(!1)}:function(e){return Array.from(e.getClientRects())},LZ=RZ,NZ=QG,BZ=TK,FZ=LZ,zZ=nz;function UZ(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-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),i=Math.max(i,s.top),o=Math.max(o,s.bottom))}return i<=r&&i-n<t&&o-r<t}function HZ(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 VZ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?zZ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):zZ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=BZ(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 i=n.body;i||("production"!==process.env.NODE_ENV?zZ(!1,"Missing document.body"):zZ(!1)),i.appendChild(r);var o=r.getBoundingClientRect();return i.removeChild(r),o.height}(t),r=e.endContainer,i=e.endOffset;for(e.setStart(e.startContainer,0);UZ(FZ(e),n)&&(r=e.startContainer,i=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?zZ(!1,"Found unexpected detached subtree when traversing."):zZ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var o=r,a=i-1;;){for(var s=o.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&NZ.isSurrogatePair(s,c-1))){if(e.setStart(o,c),!UZ(FZ(e),n))break;r=o,i=c}if(-1===c||0===o.childNodes.length)break;a=HZ(o=o.childNodes[c])}return e.setStart(r,i),e},KZ=gV,WZ=VZ,$Z=fW,qZ=oZ,GZ=cZ;var ZZ=function(e,t){var n=GZ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return qZ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=WZ(r),$Z(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:KZ.push(e,n,"remove-range")},YZ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),XZ=new RegExp("^(?:"+YZ+")*(?:['‘’]|(?!"+YZ+").)*(?:(?!"+YZ+").)"),JZ=new RegExp("(?:(?!"+YZ+").)(?:['‘’]|(?!"+YZ+").)*(?:"+YZ+")*$");function QZ(e,t){var n=t?JZ.exec(e):XZ.exec(e);return n?n[0]:e}var eY={getBackward:function(e){return QZ(e,!0)},getForward:function(e){return QZ(e,!1)}},tY=eY,nY=gV,rY=oZ,iY=cZ;var oY=rZ;var aY=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&oY(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,i=n.getStartKey(),o=n.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),r=0):r=o+t,n.merge({focusKey:s,focusOffset:r})},sY=eY,cY=gV,uY=aY,lY=cZ;var fY=_U,pY=gV;var dY=gV;var hY=gV;var gY=gV,yY=QG,vY=aY,mY=cZ;var bY=_U,wY=gV,xY=Oz;var _Y=gV;var CY=_U,OY=gV,SY=GK,kY=DZ,EY=AK,AY=Jq,TY=ZZ,jY=function(e){var t=iY(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return rY(e,1);var r=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),o=tY.getBackward(i);return rY(e,o.length||1)}),"backward");return t===e.getCurrentContent()?e:nY.push(e,t,"remove-range")},MY=function(e){var t=lY(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(r).getText().slice(n),o=sY.getForward(i);return uY(e,o.length||1)}),"forward");return t===e.getCurrentContent()?e:cY.push(e,t,"remove-range")},PY=function(e){var t=fY.splitBlock(e.getCurrentContent(),e.getSelection());return pY.push(e,t,"split-block")},DY=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return dY.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},IY=function(e){var t=e.getSelection(),n=t.getStartKey();return hY.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},RY=dZ,LY=function(e){var t=mY(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),o=n.getBlockForKey(r).getText()[i];return vY(e,o?yY.getUTF16Length(o,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return gY.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},NY=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,i,o=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(o).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),i=t):i=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=xY(a,r),u=bY.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=bY.replaceWithFragment(u,p,c),h=wY.push(e,d,"insert-fragment");return wY.acceptSelection(h,i)},BY=function(e,t,n){var r=_Y.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(_Y.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var i=r.getCurrentContent();n(_Y.set(r,{nativelyRenderedContent:i}))}},FY=EZ.isOptionKeyCommand,zY=EY.isBrowser("Chrome");var UY=function(e,t){var n=t.which,r=e._latestEditorState;function i(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case SY.RETURN:if(t.preventDefault(),e.props.handleReturn&&AY(e.props.handleReturn(t,r)))return;break;case SY.ESC:if(t.preventDefault(),i("onEscape"))return;break;case SY.TAB:if(i("onTab"))return;break;case SY.UP:if(i("onUpArrow"))return;break;case SY.RIGHT:if(i("onRightArrow"))return;break;case SY.DOWN:if(i("onDownArrow"))return;break;case SY.LEFT:if(i("onLeftArrow"))return;break;case SY.SPACE:zY&&FY(t)&&t.preventDefault()}var o=e.props.keyBindingFn(t);if(null!=o&&""!==o)if("undo"!==o){if(t.preventDefault(),!e.props.handleKeyCommand||!AY(e.props.handleKeyCommand(o,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return OY.redo(t);case"delete":return LY(t);case"delete-word":return MY(t);case"backspace":return RY(t);case"backspace-word":return jY(t);case"backspace-to-start-of-line":return TY(t,n);case"split-block":return PY(t);case"transpose-characters":return NY(t);case"move-selection-to-start-of-block":return IY(t);case"move-selection-to-end-of-block":return DY(t);case"secondary-cut":return kY.cut(t);case"secondary-paste":return kY.paste(t);default:return t}}(o,r,t);a!==r&&e.update(a)}}else BY(t,r,e.update);else if(n===SY.SPACE&&zY&&FY(t)){var s=CY.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(OY.push(r,s,"insert-characters"))}};var HY=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}(),VY=HY,KY=nz,WY=AK.isBrowser("IE <= 9");var $Y=function(e){var t,n=null;return!WY&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?KY(!1,"Missing doc.documentElement"):KY(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},qY=jK;var GY=function(e){return!(!e||!e.ownerDocument)&&(qY(e)&&"A"===e.nodeName)},ZY=jK;var YY,XY=function(e){return!(!e||!e.ownerDocument)&&(ZY(e)&&"IMG"===e.nodeName)};function JY(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){QY(e,t,n[t])}))}return e}function QY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eX=gF,tX=jF,nX=WF,rX=qV,iX=ZU,oX=VY,aX=KV,sX=pz,cX=$Y,uX=JU,lX=rF.exports,fX=lX.List,pX=lX.Map,dX=lX.OrderedSet,hX=GY,gX=XW,yX=YK,vX=XY,mX=uX("draft_tree_data_support"),bX=new RegExp("\r","g"),wX=new RegExp("\n","g"),xX=new RegExp("^\n","g"),_X=new RegExp(" ","g"),CX=new RegExp(" ?","g"),OX=new RegExp("​?","g"),SX=["bold","bolder","500","600","700","800","900"],kX=["light","lighter","normal","100","200","300","400"],EX=["className","href","rel","target","title"],AX=["alt","className","height","src","width"],TX=(QY(YY={},aX("public/DraftStyleDefault/depth0"),0),QY(YY,aX("public/DraftStyleDefault/depth1"),1),QY(YY,aX("public/DraftStyleDefault/depth2"),2),QY(YY,aX("public/DraftStyleDefault/depth3"),3),QY(YY,aX("public/DraftStyleDefault/depth4"),4),YY),jX=pX({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),MX=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)}))})),pX(t)},PX=function(e){if(yX(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},DX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(TX).some((function(n){e.classList.contains(n)&&(t=TX[n])})),t},IX=function(e){if(!hX(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 oX(t.href);return!0}catch(e){return!1}},RX=function(e){if(!vX(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},LX=function(e,t){if(!yX(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations((function(e){SX.indexOf(r)>=0?e.add("BOLD"):kX.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},NX=function(e){return"ul"===e||"ol"===e},BX=function(){function e(e,t){QY(this,"characterList",fX()),QY(this,"currentBlockType","unstyled"),QY(this,"currentDepth",0),QY(this,"currentEntity",null),QY(this,"currentText",""),QY(this,"wrapper",null),QY(this,"blockConfigs",[]),QY(this,"contentBlocks",[]),QY(this,"entityMap",iX),QY(this,"blockTypeMap",void 0),QY(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=fX(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=iX,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],dX())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(mX?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||sX(),n=JY({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:fX(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=fX(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.nodeName.toLowerCase();if("body"===o||NX(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;NX(o)&&(this.wrapper=o,NX(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(o);if(void 0===c)if("#text"!==o)if("br"!==o)if(RX(i))this._addImgNode(i,t);else if(IX(i))this._addAnchorNode(i,n,t);else{var u=t;jX.has(o)&&(u=u.add(jX.get(o))),u=LX(i,u);var l=PX(i);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),u))}else this._addBreakNode(i,t);else this._addTextNode(i,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(o,this.wrapper)||c[0]||"unstyled"),!mX&&yX(i)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=i;this.currentDepth=DX(d,this.currentDepth)}var h=sX(),g=this._toBlockConfigs(Array.from(i.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=eX.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=fX()):(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(xX,"")).replace(wX," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){gX(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(vX(e)){var n=e,r={};AX.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),uX("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(hX(e)){var r=e,i={};EX.forEach((function(e){var t=r.getAttribute(e);t&&(i[e]=t)})),i.url=new oX(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),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 i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=fX(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new nX(JY({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return fX(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,i=n.characterList;t.contentBlocks.push(new tX(JY({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=fX(),i=0;i<=t;i++){var o=e[i];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),FX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cX,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rX,r=t(e=e.trim().replace(bX,"").replace(_X," ").replace(CX,"").replace(OX,""));if(!r)return null;var i=MX(n),o=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new BX(i,o).addDOMNode(r).getContentBlocks()};function zX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UX=jF,HX=WF,VX=FX,KX=pz,WX=$Y,$X=JU,qX=rF.exports,GX=eH,ZX=qX.List,YX=qX.Repeat,XX=$X("draft_tree_data_support"),JX=XX?HX:UX,QX={processHTML:function(e,t){return VX(e,WX,t)},processText:function(e,t,n){return e.reduce((function(e,r,i){r=GX(r);var o=KX(),a={key:o,type:n,text:r,characterList:ZX(YX(t,r.length))};if(XX&&0!==i){var s=i-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){zX(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:o})).getKey()})}return e.push(new JX(a)),e}),[])}};var eJ=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===o})).concat([[o,a.get(o)]]).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})},tJ=_U,nJ=gV,rJ=eJ,iJ=$H,oJ={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 oJ.toggleInlineStyle(e,"BOLD");case"italic":return oJ.toggleInlineStyle(e,"ITALIC");case"underline":return oJ.toggleInlineStyle(e,"UNDERLINE");case"code":return oJ.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return oJ.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return oJ.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=tJ.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=nJ.push(e,t,"insert-characters");return nJ.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(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var o=n.getBlockMap().delete(i.getKey()),a=n.merge({blockMap:o,selectionAfter:t});if(a!==n)return nJ.push(e,a,"remove-range")}var s=oJ.tryToRemoveBlockStyle(e);return s?nJ.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(),i=n.getBlockForKey(r).getLength();if(t.getStartOffset()<i)return null;var o=n.getBlockAfter(r);if(!o||"atomic"!==o.getType())return null;var a=t.merge({focusKey:o.getKey(),focusOffset:o.getLength()}),s=tJ.removeRange(n,a,"forward");return s!==n?nJ.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),i=r.getAnchorKey();if(i!==r.getFocusKey())return t;var o=t.getCurrentContent(),a=o.getBlockForKey(i),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=rJ(o,r,e.shiftKey?-1:1,n);return nJ.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),i=n.getEndKey(),o=e.getCurrentContent(),a=n;if(r!==i&&0===n.getEndOffset()){var s=iJ(o.getBlockBefore(i));i=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:i,focusOffset:s.getLength(),isBackward:!1})}var c=o.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==i})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=o.getBlockForKey(r).getType()===t?"unstyled":t;return nJ.push(e,tJ.setBlockType(o,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?oJ.toggleBlockType(e,"code-block"):oJ.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return nJ.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var i,o=e.getCurrentContent();return i=r.has(t)?tJ.removeInlineStyle(o,n,t):tJ.applyInlineStyle(o,n,t),nJ.push(e,i,"change-inline-style")},toggleLink:function(e,t,n){var r=tJ.applyEntity(e.getCurrentContent(),t,n);return nJ.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),i=e.getCurrentContent(),o=i.getBlockForKey(r).getType(),a=i.getBlockBefore(r);if("code-block"===o&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==o)return tJ.setBlockType(i,t,"unstyled")}return null}},aJ=oJ,sJ=/\r\n?|\n/g;var cJ=oF,uJ=gF,lJ=qq,fJ=_U,pJ=QX,dJ=gV,hJ=aJ,gJ=_W,yJ=Xq,vJ=Jq,mJ=function(e){return e.split(sJ)};function bJ(e,t,n){var r=fJ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return dJ.push(e,r.set("entityMap",n),"insert-fragment")}var wJ=AK,xJ=CG,_J=EG,CJ=TG,OJ=DG,SJ=zG,kJ=UG,EJ=HG,AJ=WG,TJ=_Z,jJ=UY,MJ=function(e,t){t.preventDefault();var n=new lJ(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),i=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&vJ(e.props.handlePastedFiles(r)))return;return void yJ(r,(function(t){if(t=t||i){var n=e._latestEditorState,r=mJ(t),o=uJ.create({style:n.getCurrentInlineStyle(),entity:gJ(n.getCurrentContent(),n.getSelection())}),a=hJ.getCurrentBlockType(n),s=pJ.processText(r,o,a),c=cJ.createFromArray(s),u=fJ.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(dJ.push(n,u,"insert-fragment"))}}))}}var o=[],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||!vJ(e.props.handlePastedText(a,s,c))){if(a&&(o=mJ(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===o.length&&1===f.size&&f.first().getText()===a)return void e.update(bJ(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]}))}(o,f))return void e.update(bJ(e._latestEditorState,f));if(s){var p=pJ.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=cJ.createFromArray(d);return void e.update(bJ(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(o.length){var y=uJ.create({style:c.getCurrentInlineStyle(),entity:gJ(c.getCurrentContent(),c.getSelection())}),v=hJ.getCurrentBlockType(c),m=pJ.processText(o,y,v),b=cJ.createFromArray(m);e.update(bJ(e._latestEditorState,b))}}},PJ=mW,DJ=wJ.isBrowser("Chrome"),IJ=wJ.isBrowser("Firefox"),RJ=DJ||IJ?PJ:function(e){},LJ={onBeforeInput:xJ,onBlur:_J,onCompositionStart:CJ,onCopy:OJ,onCut:SJ,onDragOver:kJ,onDragStart:EJ,onFocus:AJ,onInput:TJ,onKeyDown:jJ,onPaste:MJ,onSelect:PJ,onMouseUp:RJ,onKeyUp:RJ},NJ=E.unstable_flushControlled;var BJ=i,FJ=KV,zJ=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 i=r.prototype;return i.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},i.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=FJ({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return BJ.createElement("div",{className:t},BJ.createElement("div",{className:FJ("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(BJ.Component),UJ=zJ,HJ=EZ,VJ=GK,KJ=AK,WJ=KJ.isPlatform("Mac OS X"),$J=WJ&&KJ.isBrowser("Firefox < 29"),qJ=HJ.hasCommandModifier,GJ=HJ.isCtrlKeyCommand;function ZJ(e){return WJ&&e.altKey||GJ(e)}var YJ=function(e){switch(e.keyCode){case 66:return qJ(e)?"bold":null;case 68:return GJ(e)?"delete":null;case 72:return GJ(e)?"backspace":null;case 73:return qJ(e)?"italic":null;case 74:return qJ(e)?"code":null;case 75:return WJ&&GJ(e)?"secondary-cut":null;case 77:case 79:return GJ(e)?"split-block":null;case 84:return WJ&&GJ(e)?"transpose-characters":null;case 85:return qJ(e)?"underline":null;case 87:return WJ&&GJ(e)?"backspace-word":null;case 89:return GJ(e)?WJ?"secondary-paste":"redo":null;case 90:return function(e){return qJ(e)?e.shiftKey?"redo":"undo":null}(e)||null;case VJ.RETURN:return"split-block";case VJ.DELETE:return function(e){return!WJ&&e.shiftKey?null:ZJ(e)?"delete-word":"delete"}(e);case VJ.BACKSPACE:return function(e){return qJ(e)&&WJ?"backspace-to-start-of-line":ZJ(e)?"backspace-word":"backspace"}(e);case VJ.LEFT:return $J&&qJ(e)?"move-selection-to-start-of-block":null;case VJ.RIGHT:return $J&&qJ(e)?"move-selection-to-end-of-block":null;default:return null}},XJ=sp;function JJ(){return JJ=XJ||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 QJ(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){tQ(e,t,n[t])}))}return e}function eQ(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}function nQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var rQ=qV,iQ=GV,oQ=zW,aQ=Mq,sQ=fG,cQ=LJ,uQ=NJ,lQ=UJ,fQ=gV,pQ=i,dQ=P$,hQ=V$,gQ=KV,yQ=pz,vQ=YJ,mQ=Y$,bQ=JU,wQ=nz,xQ=YK,_Q=$H,CQ=AK.isBrowser("IE"),OQ=!CQ,SQ={edit:cQ,composite:oQ,drag:sQ,cut:null,render:null},kQ=!1,EQ=function(e){function t(){return e.apply(this,arguments)||this}nQ(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}(pQ.Component),AQ=function(e){function t(t){var n;return tQ(eQ(n=e.call(this,t)||this),"_blockSelectEvents",void 0),tQ(eQ(n),"_clipboard",void 0),tQ(eQ(n),"_handler",void 0),tQ(eQ(n),"_dragCount",void 0),tQ(eQ(n),"_internalDrag",void 0),tQ(eQ(n),"_editorKey",void 0),tQ(eQ(n),"_placeholderAccessibilityID",void 0),tQ(eQ(n),"_latestEditorState",void 0),tQ(eQ(n),"_latestCommittedEditorState",void 0),tQ(eQ(n),"_pendingStateFromBeforeInput",void 0),tQ(eQ(n),"_onBeforeInput",void 0),tQ(eQ(n),"_onBlur",void 0),tQ(eQ(n),"_onCharacterData",void 0),tQ(eQ(n),"_onCompositionEnd",void 0),tQ(eQ(n),"_onCompositionStart",void 0),tQ(eQ(n),"_onCopy",void 0),tQ(eQ(n),"_onCut",void 0),tQ(eQ(n),"_onDragEnd",void 0),tQ(eQ(n),"_onDragOver",void 0),tQ(eQ(n),"_onDragStart",void 0),tQ(eQ(n),"_onDrop",void 0),tQ(eQ(n),"_onInput",void 0),tQ(eQ(n),"_onFocus",void 0),tQ(eQ(n),"_onKeyDown",void 0),tQ(eQ(n),"_onKeyPress",void 0),tQ(eQ(n),"_onKeyUp",void 0),tQ(eQ(n),"_onMouseDown",void 0),tQ(eQ(n),"_onMouseUp",void 0),tQ(eQ(n),"_onPaste",void 0),tQ(eQ(n),"_onSelect",void 0),tQ(eQ(n),"editor",void 0),tQ(eQ(n),"editorContainer",void 0),tQ(eQ(n),"focus",void 0),tQ(eQ(n),"blur",void 0),tQ(eQ(n),"setMode",void 0),tQ(eQ(n),"exitCurrentMode",void 0),tQ(eQ(n),"restoreEditorDOM",void 0),tQ(eQ(n),"setClipboard",void 0),tQ(eQ(n),"getClipboard",void 0),tQ(eQ(n),"getEditorKey",void 0),tQ(eQ(n),"update",void 0),tQ(eQ(n),"onDragEnter",void 0),tQ(eQ(n),"onDragLeave",void 0),tQ(eQ(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),tQ(eQ(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),i=n.editor;if(i){var o=hQ.getScrollParent(i),a=e||mQ(o),s=a.x,c=a.y;xQ(i)||("production"!==process.env.NODE_ENV?wQ(!1,"editorNode is not an HTMLElement"):wQ(!1)),i.focus(),o===window?window.scrollTo(s,c):dQ.setTop(o,c),r||n.update(fQ.forceSelection(t,t.getSelection()))}})),tQ(eQ(n),"blur",(function(){var e=n.editor;e&&(xQ(e)||("production"!==process.env.NODE_ENV?wQ(!1,"editorNode is not an HTMLElement"):wQ(!1)),e.blur())})),tQ(eQ(n),"setMode",(function(e){var t=n.props,r=t.onPaste,i=t.onCut,o=t.onCopy,a=QJ({},SQ.edit);r&&(a.onPaste=r),i&&(a.onCut=i),o&&(a.onCopy=o);var s=QJ({},SQ,{edit:a});n._handler=s[e]})),tQ(eQ(n),"exitCurrentMode",(function(){n.setMode("edit")})),tQ(eQ(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),tQ(eQ(n),"setClipboard",(function(e){n._clipboard=e})),tQ(eQ(n),"getClipboard",(function(){return n._clipboard})),tQ(eQ(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),tQ(eQ(n),"onDragEnter",(function(){n._dragCount++})),tQ(eQ(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||yQ(),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}nQ(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&&(uQ?uQ((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:_Q(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return pQ.createElement(lQ,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,i=e.customStyleFn,o=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=gQ({"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:QJ({},iQ,o),customStyleFn:i,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return pQ.createElement("div",{className:f},this._renderPlaceholder(),pQ.createElement("div",{className:gQ("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},pQ.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:gQ({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:OQ&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},pQ.createElement(EQ,{editor:this,editorState:a}),pQ.createElement(aQ,JJ({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!kQ&&bQ("draft_ods_enabled")&&(kQ=!0),this.setMode("edit"),CQ&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Ot.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(pQ.Component);tQ(AQ,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:rQ,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:vQ,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var TQ=AQ,jQ={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},MQ=jQ,PQ=QG.strlen;var DQ=QG,IQ=yF,RQ=function(e,t){return e===t},LQ=function(e){return!!e},NQ=[];var BQ=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=[],i=t.map((function(e){return e.has(n)})).toList();return IQ(i,RQ,LQ,(function(t,i){var o=e.getText();r.push({offset:DQ.strlen(o.slice(0,t)),length:DQ.strlen(o.slice(t,i)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(NQ,n.toJS())};function FQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zQ=jF,UQ=WF,HQ=jQ,VQ=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,i){var o=e.getText(),a=e.getEntityAt(r);n.push({offset:PQ(o.slice(0,r)),length:PQ(o.slice(r,i)),key:Number(t[MQ.stringify(a)])})})),n},KQ=BQ,WQ=nz,$Q=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:KQ(e),entityRanges:VQ(e,t),data:e.getData().toObject()}},qQ=function(e,t,n,r){if(e instanceof zQ)n.push($Q(e,t));else{e instanceof UQ||("production"!==process.env.NODE_ENV?WQ(!1,"block is not a BlockNode"):WQ(!1));var i=e.getParentKey(),o=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){FQ(e,t,n[t])}))}return e}({},$Q(e,t),{children:[]});i?r[i].children.push(o):n.push(o)}},GQ=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],i={},o={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),i=HQ.stringify(r);o[i]||(o[i]=r,n[i]="".concat(a),a++)})),qQ(e,n,r,i)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,i={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(HQ.unstringify(t));i[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:i}}(e,t),t};function ZQ(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){YQ(e,t,n[t])}))}return e}function YQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XQ=pz,JQ=nz,QQ=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},e1={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?JQ(!1,"Invalid raw state"):JQ(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||("production"!==process.env.NODE_ENV?JQ(!1,"Invalid tree raw block"):JQ(!1)),n=n.concat([].concat(i.reverse()))}}(t,(function(e){var t=ZQ({},e);QQ(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?ZQ({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,ZQ({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=QQ(e),i=e.depth||0,o=ZQ({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===i)t.push(o);else if(null==a||a.depth<i-1){var s={key:XQ(),text:"",depth:i-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===i?t.push(s):null!=a&&a.children.push(s),s.children.push(o)}else if(a.depth===i-1)a.children.push(o);else{for(;null!=a&&a.depth>=i;)n.shift(),a=n[0];i>0?a.children.push(o):t.push(o)}}else t.push(o)})),ZQ({},e,{blocks:t})}},t1=rZ,n1={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&&t1(!0,"Tree is missing parent -> child pointer on %s",n),!1;var i=e.getChildKeys().map((function(e){return t.get(e)}));if(!i.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&t1(!0,"Tree is missing child -> parent pointer on %s",n),!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&t1(!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&&t1(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==o&&o===a?("production"!==process.env.NODE_ENV&&t1(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&t1(!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&&t1(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),i=[];null!=r;){var o=e.get(r),a=o.getChildKeys(),s=o.getNextSiblingKey();if(a.size>0){null!=s&&i.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&&t1(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&t1(!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)}},r1=n1,i1=gF,o1=rF.exports.List;var a1=function(e,t){var n=e.map((function(e,n){var r=t[n];return i1.create({style:e,entity:r})}));return o1(n)},s1=QG.substr;var c1=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=s1(e,0,t.offset).length,i=r+s1(e,t.offset,t.length).length,o=r;o<i;o++)n[o]=t.key})),n},u1=QG,l1=rF.exports.OrderedSet,f1=u1.substr,p1=l1();var d1=function(e,t){var n=Array(e.length).fill(p1);return t&&t.forEach((function(t){for(var r=f1(e,0,t.offset).length,i=r+f1(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++})),n};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){g1(e,t,n[t])}))}return e}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y1=jF,v1=WF,m1=_H,b1=ZU,w1=e1,x1=r1,_1=XU,C1=a1,O1=c1,S1=d1,k1=pz,E1=rF.exports,A1=nz,T1=JU("draft_tree_data_support"),j1=E1.List,M1=E1.Map,P1=E1.OrderedMap,D1=function(e,t){var n=e.key,r=e.type,i=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||k1(),data:M1(i),characterList:I1(e,t)}},I1=function(e,t){var n=e.text,r=e.entityRanges,i=e.inlineStyleRanges,o=r||[];return C1(S1(n,i||[]),O1(n,o.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return h1({},e,{key:t[e.key]})}))))},R1=function(e){return h1({},e,{key:e.key||k1()})},L1=function(e,t,n){var r=t.map((function(e){return h1({},e,{parentRef:n})}));return e.concat(r.reverse())},N1=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=T1&&!n?w1.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!T1)return function(e,t){return P1(e.map((function(e){var n=new y1(D1(e,t));return[n.getKey(),n]})))}(n?w1.fromRawTreeStateToRawState(e).blocks:r,t);var i=function(e,t){return e.map(R1).reduce((function(n,r,i){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?A1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):A1(!1));var o=r.children.map(R1),a=new v1(h1({},D1(r,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:j1(o.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=L1([],o,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?A1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):A1(!1));break}var d=c.children.map(R1),h=new v1(h1({},D1(c,t),{parent:u.getKey(),children:j1(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=L1(s,d,h)}return n}),P1())}(r,t);return"production"!==process.env.NODE_ENV&&(x1.isValidTree(i)||("production"!==process.env.NODE_ENV?A1(!1,"Should be a valid tree"):A1(!1))),i},B1=LZ;var F1=function(e){var t=B1(e),n=0,r=0,i=0,o=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,i=a.bottom,o=a.left}else{var s=t[0];n=s.top,r=s.right,i=s.bottom,o=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),i=Math.max(i,u.bottom),o=Math.min(o,u.left))}}return{top:n,right:r,bottom:i,left:o,width:r-o,height:i-n}},z1=F1;var U1=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=z1(n),i=r.top,o=r.right,a=r.bottom,s=r.left;return 0===i&&0===o&&0===a&&0===s?null:r},H1={Editor:TQ,EditorBlock:jq,EditorState:gV,CompositeDecorator:HV,Entity:ZU,EntityInstance:FU,BlockMapBuilder:oF,CharacterMetadata:gF,ContentBlock:jF,ContentState:_H,RawDraftContentState:{},SelectionState:XU,AtomicBlockUtils:FV,KeyBindingUtil:EZ,Modifier:_U,RichUtils:aJ,DefaultDraftBlockRenderMap:qV,DefaultDraftInlineStyle:GV,convertFromHTML:FX,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?A1(!1,"invalid RawDraftContentState"):A1(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],i=r.type,o=r.mutability,a=r.data;n[e]=b1.__create(i,o,a||{})})),n}(e),n=N1(e,t),r=n.isEmpty()?new _1:_1.createEmpty(n.first().getKey());return new m1({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:GQ,genKey:pz,getDefaultKeyBinding:YJ,getVisibleSelectionRect:U1};const V1=de.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),K1=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},W1=new H1.CompositeDecorator([{strategy:(e,t,n)=>K1(e,t,n,"FOUND_FIELD"),component:({children:t})=>e(V1,{children:t})},{strategy:(e,t,n)=>K1(e,t,n,"NOT_FOUND"),component:({children:t})=>e(V1,Object.assign({error:!0},{children:t}))}]),$1=(e,t,n)=>{const r=cn.find(t,{id:e.id}),i=t.every((e=>!e.value)),o=t.some((e=>e.value));let a=!0,s="";r?i?a=!0:!n&&!o||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!i?(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}},q1=(e,t,n)=>{const r=((e,t,n)=>{const r={},i={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},o=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<o.length;e++){let a=o[e];if(a.startsWith("<<")){const o=a.replace(/<<|>>/g,""),s=cn.find(t||[],{id:o})||{id:o,label:""},{label:c,isValid:u}=$1(s,t||[],n);a=c,i.entityRanges.push({key:e,offset:i.text.length,length:a.length}),r[e]={type:u?"FOUND_FIELD":"NOT_FOUND",mutability:"IMMUTABLE",data:{id:o}}}i.text+=a}return H1.convertFromRaw({blocks:[i],entityMap:r})})(e,t,n);return H1.EditorState.createWithContent(r,W1)},G1=(e,t=!0)=>{const n=e.getCurrentContent(),r=H1.convertToRaw(n);return t?(i=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let o=0;return n.forEach((({key:e,offset:n,length:a})=>{n>o&&r.push(t.substr(o,n-o));const s=cn.get(i,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),o=n+a})),r.push(t.substr(o)),r.join("")})).join(" "):r;var i},Z1=e=>{const t=G1(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},Y1=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),i=new H1.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return H1.EditorState.forceSelection(e,i)},X1=l(((n,r)=>{var{value:i,onChange:o,onEnterKey:a,onFocus:s,onBlur:c,mergeFields:l=[],placeholder:p="Text here...",width:g,height:y,maxHeight:v,borderless:m=!1,noPadding:b=!1,readOnly:w=!1,displayMergedValues:x=!1,color:_,overflow:C,clampLines:O,label:S,disabled:k,borderRadius:E,backgroundColor:A,fontSize:j,textOnly:M,margin:P,marginLeft:D,marginRight:I,marginTop:R,marginBottom:L}=n,N=T(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[B,F]=u((()=>q1(i,l,x))),{focused:z,handleFocus:U,handleBlur:H}=Ut(s,c),[V,K]=u(!1),W=f(null),$=f(),q=null!=v?v:y,G=q?q-(m?0:S?29:11):void 0,Z=e=>{F(e);const t=(e=>Z1(e).some((e=>"NOT_FOUND"===e.type)))(e);K(t);const n=G1(e);o&&o(n,t)},Y=e=>{const t=((e,t,n,r)=>{const{id:i}=e,o=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=$1(e,t,r),u=c?"FOUND_FIELD":"NOT_FOUND",l=o.createEntity(u,"IMMUTABLE",{id:i}).getLastCreatedEntityKey(),f=H1.Modifier.insertText(o,a,s,void 0,l),p=H1.EditorState.push(n,f,"insert-characters");return H1.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,B,x);Z(t)},X=()=>{(null==W?void 0:W.current)&&W.current.focus();const e=Y1(B);F(e)};d(r,(()=>({insertField:Y,focusAtEnd:X})));h((()=>{G1(B)!==i&&(e=>{const t=B.getSelection(),n=q1(e,l,x),r=Y1(n),i=t.getHasFocus()?r:n;Z(i)})(i)}),[i]),h((()=>{$.current=l}),[]),h((()=>{const{current:e}=$,t=cn.isEqual(e,l),n=Z1(B);if(!t&&n.length>0){$.current=l;const e=q1(i,l,x);Z(e)}}),[l]);return e(J1,Object.assign({onClick:e=>{w||e.stopPropagation();B.getSelection().getHasFocus()||X()},width:g,height:y,editorMaxHeight:G,borderless:m||M,noPadding:b||M,readOnly:w,color:_,overflow:C,clampLines:O,filled:Ht(i),invalid:V,textOnly:M,borderRadius:E,backgroundColor:A,fontSize:j,margin:P,marginLeft:D,marginRight:I,marginTop:R,marginBottom:L,focused:z,disabled:k,hasLabel:!!S,hideEditor:!Ht(i)&&!!S&&!z},{children:t(Kt,Object.assign({readOnly:w},{children:[S&&e(Wt,Object.assign({filled:Ht(i),focused:z,disabled:k},{children:S})),e(H1.Editor,Object.assign({ref:W,editorState:B,onChange:Z,placeholder:p,readOnly:w,handleReturn:e=>{const t=H1.RichUtils.insertSoftNewline(B);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),i={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},o=H1.convertFromRaw({blocks:[i],entityMap:{}}),a=H1.EditorState.createWithContent(o,W1).getCurrentContent().getBlockMap(),s=H1.Modifier.replaceWithFragment(n,r,a);return H1.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:U,onBlur:H},N))]}))}))})),J1=de(Vt)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:i,color:o})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:o||e.input.color.default,cursor:i?"inherit":"text","&:hover":{backgroundColor:i?e.input.background.default:void 0,borderBottom:i?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:i?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:i,clampLines:o,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:i||"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:o,overflow:o?"hidden":i||"auto",display:o?"-webkit-box":void 0,WebkitBoxOrient:o?"vertical":void 0,wordBreak:o?"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}}})),Q1=de.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:i,template:o,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:i,gridTemplate:o,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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));Q1.Item=de.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:i,columnEnd:o,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:i,gridColumnEnd:o,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));const e0=n=>{var{id:r,label:i,labelPosition:o,checked:a,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=n,d=T(n,["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 t(SB,Object.assign({htmlFor:r,labelRight:h,disabled:s},g,{children:[i&&e(EB,{children:i}),e(kB,Object.assign({id:r,type:"radio",checked:a,disabled:s},d)),e(xt,{name:"radio-button",marginLeft:i&&!h?8:0,marginRight:i&&h?8:0,pointer:!s})]}))},t0=n=>{var{id:r,label:i,labelPosition:o,checked:a,disabled:s,onChange:c,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:g}=n,y=T(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=u("toggle-off"),[b,w]=u(a||!1),x="right"===o,_={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:g};return h((()=>{m(b?"toggle-on":"toggle-off")}),[b]),h((()=>{w("boolean"==typeof a?a:b)}),[a,b]),t(SB,Object.assign({htmlFor:r,labelRight:x,disabled:s},_,{children:[i&&e(EB,{children:i}),e(kB,Object.assign({id:r,type:"checkbox",checked:b,disabled:s,onChange:()=>{const e=!b;w(e),c(e)}},y)),e(xt,{name:v,marginLeft:i&&!x?8:0,marginRight:i&&x?8:0,pointer:!s,size:40})]}))},n0=e=>{var{children:n,iconLeft:r,iconRight:i,disabled:o,pill:a}=e,s=T(e,["children","iconLeft","iconRight","disabled","pill"]);return t(r0,Object.assign({as:a?void 0:"label",disabled:o,rightIcon:!!i,pill:a},s,{children:[r&&qt(r,{marginRight:4,size:"small"}),n,i&&qt(i,{marginLeft:4,size:"small"})]}))},r0=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),i0=t=>{var{children:n,rows:r,columns:i,rowGap:o,columnGap:a,onSubmit:s}=t,c=T(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(o0,Object.assign({as:"form",rows:r,columns:i,rowGap:o,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},c,{children:n}))};i0.Group=t=>{var{children:n,rows:r,columns:i,rowGap:o,columnGap:a,disabled:s}=t,c=T(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(a0,Object.assign({rows:r,columns:i,rowGap:o,columnGap:a,disabled:s},c,{children:n}))},i0.Field=({children:t,inline:n,align:r,disabled:i})=>e(s0,Object.assign({inline:n,align:r,disabled:i},{children:t})),i0.Input=Gt,i0.Dropdown=gn,i0.Radio=e0,i0.Toggle=t0,i0.Checkbox=AB,i0.Label=n0;const o0=de(Q1)({boxSizing:"border-box"}),a0=de(Q1)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),s0=de.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"})),c0=({visible:n,close:r,images:i,startIndex:o,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[f,p]=u(o),d=rn(r,n,["#prev","#next","#prev *","#next *"]);h((()=>{p(o)}),[o]);const g=()=>p(f>0?f-1:i.length-1),y=()=>f<i.length-1?p(f+1):p(0),v=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),g();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),y();break;case"Escape":e.preventDefault(),r()}};return h((()=>(n&&window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v))),[n,f]),n?t(u0,Object.assign({opacity:l,prevNext:i.length>1},{children:[e(l0,Object.assign({onClick:r},{children:e(xt,{name:"close",size:25,color:"white"})})),i.length>1&&e(f0,Object.assign({id:"prev",onClick:g},{children:e(xt,{name:"chevron-left",size:35,color:"white"})})),e(p0,{ref:d,src:i[f],alt:a,maxWidth:s,maxHeight:c}),i.length>1&&e(f0,Object.assign({next:!0,id:"next",onClick:y},{children:e(xt,{name:"chevron-right",size:35,color:"white"})}))]})):null},u0=de.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}))),l0=de.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),f0=de.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%)`}}))),p0=de.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),d0=de.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"}))),h0=({vertical:t,width:n,height:r,padding:i,paddingTop:o,paddingBottom:a,paddingLeft:s,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(g0,Object.assign({vertical:t,width:n,height:r,padding:i,paddingTop:o,paddingBottom:a,paddingLeft:s,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?Lt(w).map((e=>e?c(e,{vertical:t,backgroundColor:b}):null)):null})),g0=de.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:i,paddingTop:o,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:o,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:i})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:i,borderRight:o,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:i?e:void 0,borderRight:o?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}))),y0=de.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:i,disabled:o,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:i?"4px solid transparent":void 0,borderLeftColor:i&&r?n.borderColor:void 0,borderBottom:i?void 0:"4px solid transparent",borderBottomColor:!i&&r?n.borderColor:void 0,cursor:o?"not-allowed":"pointer",fontSize:t.size.lg,padding:i?`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}))),v0=de.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),m0=de.div({marginLeft:"auto",marginRight:8});h0.Item=({vertical:t,selected:n,disabled:r,contentPosition:i,onClick:o,id:a,children:s,indent:c=1})=>e(y0,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:i,onClick:o,id:a,role:"menuitem",indent:c},{children:s})),h0.Group=({label:n,defaultOpen:r,vertical:o,selected:a,disabled:s,contentPosition:l,onClick:f,id:p,children:d,indent:h=1,backgroundColor:g})=>{const[y,v]=u(r||a),m=e=>Lt(e).map((e=>{if(i.isValidElement(e)){const t=e;return t.props.selected&&!y&&v(!0),Array.isArray(t.props.children)&&m(t.props.children),c(e,{vertical:o,indent:h+1,backgroundColor:g})}return null})),b=m(d),w=()=>v((e=>!e));return t(v0,Object.assign({backgroundColor:g},{children:[t(y0,Object.assign({vertical:o,selected:a||!1,disabled:s,contentPosition:l,onClick:e=>{f?(f(e),y||w()):w()},id:p,role:"menuitem",indent:h},{children:[n,e(m0,Object.assign({onClick:e=>{e.stopPropagation(),w()}},{children:e(xt,{name:y?"chevron-up":"chevron-down",pointer:!0})}))]})),y&&b]}))};const b0=({type:n,content:r,closeIcon:i,onClose:o,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=S(),{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}}})(n||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return t(_0,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:i},v,{children:[e(xt,{name:h,style:{marginRight:10},color:g}),e(C0,{children:r||p}),i&&e(xt,{name:"close",onClick:o,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},w0=de.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),x0=de.div((({theme:e})=>({fontWeight:e.font.weight.default})));b0.Header=w0,b0.Body=x0;const _0=de.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:i,marginLeft:o})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:i,marginLeft:o}))),C0=de.div({width:"100%"}),O0=({text:n,color:r,style:i})=>t(E0,{children:[e(k0,{}),e(S0,Object.assign({color:r,style:i},{children:n})),e(k0,{})]}),S0=de.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),k0=de.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),E0=de.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),A0=({children:n,rootSelector:r,visible:i,width:o,height:a,onClose:s,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:O,paddingLeft:S})=>{const k=rn(l?()=>null:s,i),A={padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S},T=Lt(n).map((e=>e?c(e,{inline:d}):null)),j=e(M0,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:t(T0,Object.assign({ref:k,width:o,height:a,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},A,{children:[T,u&&e(j0,Object.assign({inline:d},{children:e(xt,{name:"close",onClick:s,pointer:!0})}))]}))})),M=document.querySelector(r||"#root");return i&&M?E.createPortal(j,M):null};A0.Header=de.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),A0.Text=de.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),A0.Body=de.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),A0.Footer=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));const T0=de.div((({theme:e,width:t,height:n,backgroundColor:r,small:i})=>({display:"flex",flexDirection:i?"row":"column",alignItems:i?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:i?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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),j0=de.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),M0=de.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:i,bottom:o,right:a,left:s})=>({position:"absolute",top:i||(s||o||a?void 0:0),left:s||(i||o||a?void 0:0),bottom:o,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)"}))),P0=r=>{var{children:i,options:o,items:a,listLabel:s,listText:c,itemsTitle:l,maxItems:p,placeholder:d,width:g,filter:v,restrictInput:m,disabled:b,optionsParent:w,compact:x,backgroundColor:_,borderless:C,addItem:O,removeItem:k,onTextChange:A,autoFocus:j}=r,M=T(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[P,D]=u(j||!1),[I,R]=u(!1),[L,N]=u(""),{color:B,font:F,input:z}=S(),U=rn((()=>D(!1)),P,w?[w,`${w} *`]:void 0),H=f(null),V=x&&!!s,K=e=>{e&&O(e)},W=e=>{N(e),A&&A(e)};h((()=>{const{current:e}=H;e&&!P&&e.blur()}),[P]);nn(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:i}=e;if(!(n||r||i)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];k(t)}}),P&&!L,[a]);const $=o.filter((e=>!a.find((t=>t.id===e.id)))),q=y((()=>`multi-select-${vt()}`),[]),G=y((()=>`multi-select-list-${vt()}`),[]),Z=p?a.length>=p:void 0,Y=b||!P||Z,X=()=>{const n=t(L0,Object.assign({id:G,expanded:P,padTop:P&&a.length>0,labeled:!!s},{children:[c&&e(N0,Object.assign({expanded:P,labeled:!!s},{children:c})),i?i(P,!!b):a.map((t=>e(n0,Object.assign({pill:!0,iconRight:P&&!b?e(xt,{name:"close-circle",onClick:()=>k(t),pointer:!0}):void 0,disabled:b},{children:t.label}),t.id))),e(gn,Object.assign({},M,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:m,options:$,fontSize:F.size.md,placeholder:b||a.length>0?" ":d||"Search...",placeholderColor:z.color.placeholder,inputRef:H,onChange:K,onTextChange:W,onError:e=>R(e),disabled:Y,optionsParent:w?`#${G}`:`#${q}`,autoFocus:j}))]}));if(w){const e=document.querySelector(w);return e?E.createPortal(n,e):n}return n};return t(D0,Object.assign({width:g,ref:U,labeled:!!s,disabled:b,collapse:V,onClick:e=>{e.stopPropagation();const{current:t}=H;P||s||D(!0),null==t||t.focus()}},{children:[t(I0,Object.assign({collapse:V,id:q,expanded:P&&a.length>0,error:I,labeled:!!s,backgroundColor:_,borderless:C},{children:[s?e(R0,Object.assign({collapse:V},{children:s})):X(),t(B0,{children:[p&&e(z0,{children:t(n,b&&l?{children:[a.length," ",l]}:{children:[e(F0,Object.assign({error:a.length>=p},{children:a.length})),"/",p," ",l]})}),a.length>0&&e(xt,{name:P?"chevron-up":"chevron-down",color:B.brand,pointer:!0,onClick:e=>{e.stopPropagation(),D(!P)}})]})]})),s&&P&&X()]}))},D0=de.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),I0=de.div((({theme:e,expanded:t,error:n,labeled:r,collapse:i,backgroundColor:o,borderless:a})=>({display:"grid",gridTemplateColumns:i?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:o||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),R0=de.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),L0=de.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}:{})),N0=de.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}))),B0=de.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),F0=de.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),z0=de.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),U0=de.div((({theme:e,color:t,size:n,position:r,top:i,bottom:o,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:i,bottom:o,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})),H0=e=>e?+e:0,V0=n=>{var{onPageNav:r,page:i,totalPages:o,maxVisibleNumbers:a,width:c}=n,l=T(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[f,p]=u(H0(i)||1),[d,h]=u(0),g=function(e,t,n=1){let r=t?e:0;const i=t||e,o=[];for(;r<=i;)o.push(r),r+=n;return o}(1,o),y=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(g,H0(a)||g.length),v=e=>{if(e>=1&&e<=o){const t=(e=>{for(let t=0;t<y.length;t++)if(y[t].includes(e))return t;return-1})(e);h(t),p(e),r(e)}},m=0!==d,b=d!==y.length-1;return t(K0,Object.assign({width:c},l,{children:[e($0,Object.assign({disabled:1===f,onClick:()=>v(1)},{children:e(xt,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e($0,Object.assign({disabled:1===f,onClick:()=>v(f-1)},{children:e(xt,{name:"chevron-left",title:"prev",inheritColor:!0})})),y[d].map(((n,r,i)=>t(s,{children:[0===r&&m?e(G0,{children:"... "}):"",e(q0,Object.assign({selected:n===f,onClick:()=>v(n)},{children:n})),r===i.length-1&&b?e(G0,{children:" ..."}):""]},`pageIndex-${n}`))),e($0,Object.assign({disabled:f===o,onClick:()=>v(f+1)},{children:e(xt,{name:"chevron-right",title:"next",inheritColor:!0})})),e($0,Object.assign({disabled:f===o,onClick:()=>v(o)},{children:e(xt,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},K0=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),W0=de.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`}}))),$0=de(W0)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),q0=de(W0)((({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}))),G0=de.span((({theme:e})=>({color:e.scale6}))),Z0=n=>{var{size:r=200,data:i,innerRadius:o,outerRadius:a}=n,s=T(n,["size","data","innerRadius","outerRadius"]);const c=a||r/2-1;return e(Y0,Object.assign({},s,{children:t(TP,Object.assign({width:r,height:r},{children:[e(sA,Object.assign({dataKey:"value",data:i,innerRadius:o,outerRadius:c},{children:i.map((t=>e(Zy,{fill:t.color||"#999"},t.name)))})),e(Rg,{})]}))}))},Y0=de.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),X0=({percent:n,size:r=24,thickness:i=2,color:o,margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l})=>{const f={margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l},p=(r-i)/2,d=p*Math.PI*2,h=d-d*n/100,g=r/2;return t(J0,Object.assign({size:r},f,{children:[e(Q0,{cx:g,cy:g,r:p,thickness:i}),e(e2,{color:o,cx:g,cy:g,r:p,thickness:i,transform:`rotate(-90 ${g} ${g})`,circ:d,complete:h})]}))},J0=de.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),Q0=de.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),e2=de(Q0)((({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"}))),t2=({percent:t,color:n,circle:r,width:i,height:o,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(X0,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e(n2,Object.assign({width:i,height:o||s},d,{children:e(r2,{color:n,width:h})}))},n2=de.div((({theme:e,width:t,height:n,margin:r,marginTop:i,marginBottom:o,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:i,marginBottom:o,marginRight:a,marginLeft:s}))),r2=de.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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('/* 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 i2={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,i,o){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var i=Date.now||function(){return+new Date};function o(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 i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));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+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){l&&i&&o&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,u=null,l=n||null;a?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){i=!0,r()}),0),c(e,"head",t)}function d(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=s(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),o}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 O(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 S(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 A(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function T(e){c(e.c,"body",e.a)}function j(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,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function P(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),e=j(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=j(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=j(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=j(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,T(this.g),T(this.h),T(this.j),T(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=i(),r=new Promise((function(r,o){!function a(){i()-n>=t.f?o():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(){o()}))}()})),o=null,a=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},I=null;function R(){if(null===I){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);I=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return I}function L(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=n===e.f.serif&&o===e.f["sans-serif"])||(t=R()&&L(e,n,o)),t?i()-e.A>=e.w?R()&&L(e,n,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){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=i(),N(this)};var z=null;function U(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")):S(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function V(e,t,n,i,o){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,s=i||{};if(0===n.length&&a)S(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,U(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=[],i=[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,i)}k(t,"fontinactive",e),U(this)},H.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=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,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c);var o=new F(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,o,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(o["__mti_fntLst"+r]){var n,i=o["__mti_fntLst"+r](),a=[];if(i)for(var s=0;s<i.length;s++){var c=i[s].fontfamily;null!=i[s].fontStyle&&null!=i[s].fontWeight?(n=i[s].fontStyle+i[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,i=n.a.version;if(r){var o=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(i?"?v="+i:""),(function(i){i?e([]):(o["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},W.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=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=i.length;t<n;t++)if((r=i[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,o)}))};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),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new G(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["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&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Z[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new b(i,o[r]))}}(o),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(o.a,o.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=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new b(o,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 i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];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 ie={load:r(re.load,re)};e.exports?e.exports=ie:(window.WebFont=ie,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(i2);var o2=i2.exports;const a2=({families:t,fontFamily:n})=>(h((()=>{var e;e=t,o2.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(k,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),s2=()=>{const{scale1:t}=S();return e(k,{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`}}})},c2=()=>{const{font:t,toast:n}=S();return e(k,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},u2=de.div((({width:e,height:t})=>({width:e,height:t}))),l2=({items:n,onChange:r,beforeItemChange:i,listTitle:o,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:p,margin:d,marginTop:g,marginBottom:y,marginRight:v,marginLeft:m})=>{const b=f(),[w,x]=u([]),[_,C]=u([]),O={margin:d,marginTop:g,marginBottom:y,marginRight:v,marginLeft:m},S=e=>{const t=Object.assign({},e);return delete t.selected,t};h((()=>{if(!cn.isEqual(n,b.current)){b.current=n;const e=n.filter((e=>e.selected)).map(S),t=n.filter((e=>!e.selected)).map(S);C(e),x(t)}}),[n,b]),h((()=>{r(_)}),[_]);const k=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?C:x;(n?x:C)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);i?i(e,t,n):n()},E=e=>{const t="select"===e?x:C,n="select"===e?w:_;("select"===e?C:x)((e=>[...e,...n])),t([])},A=n=>t("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[n.leftElement||null,n.header&&n.body?t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(m2,{children:n.header}),e(b2,{children:n.body})]})):n.label,n.rightElement&&e("div",Object.assign({style:{marginLeft:"auto"}},{children:n.rightElement}))]})),T=!(s&&c);return t(f2,Object.assign({width:p,readOnly:l},O,{children:[o&&e(p2,{children:o}),t(d2,{children:[!l&&t(h2,{children:[T&&e(g2,{children:w.length>0&&!s&&e(Sn,Object.assign({small:!0,outline:!0,onClick:()=>E("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e(y2,{children:w.map((n=>t(v2,Object.assign({onClick:()=>k(n,"select"),color:n.color},{children:[A(n),e(xt,{name:"chevron-right"})]}),n.id)))})]}),t(h2,{children:[T&&!l&&e(g2,{children:_.length>0&&!c&&!l&&e(Sn,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>E("remove"),icon:"arrow-left"},{children:"All"}))}),l&&0===_.length?e("div",{children:a}):e(y2,{children:_.map((n=>t(v2,Object.assign({onClick:()=>k(n,"remove"),color:n.color},{children:[A(n),e(xt,{name:"chevron-left"})]}),n.id)))})]})]})]}))},f2=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),p2=de.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),d2=de.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),h2=de.div({display:"flex",flexDirection:"column"}),g2=de.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),y2=de.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),v2=de.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"}}})),m2=de.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),b2=de.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),w2=x({}),x2=(t,n)=>{const r="th"===n?_2:C2;return Lt(t).map(((t,i)=>t?e(r,{children:t},`${n}${i+1}`):null))},_2=de.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),C2=de.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),O2=de(Q1)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),S2=de.tbody((({height:e})=>({height:e,overflow:"auto"}))),k2=de(Q1)((({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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),E2=de.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),A2=de(E2)((({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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),T2=de(E2)({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}}))),j2=t=>{var{children:n,columns:r,data:i}=t,o=T(t,["children","columns","data"]);const[a,s]=u(i),[c,l]=u(),f=i&&"function"==typeof n?n(a):n;h((()=>{let e=i;if(c){const{key:t,dir:n}=c;e=cn.orderBy(i,t,n)}cn.isEqual(e,a)||s(e)}),[i,c]);const p=y((()=>({activeColumn:c,setActiveColumn:l,parentColumns:r})),[c,l,r]);return e(w2.Provider,Object.assign({value:p},{children:e(M2,Object.assign({},o,{children:f}))}))};j2.Header=t=>{var{children:n,columns:r}=t,i=T(t,["children","columns"]);const{parentColumns:a}=o(w2),s=r||a||"equal";return e("thead",{children:e(O2,Object.assign({as:"tr",columns:s},i,{children:x2(n,"th")}))})},j2.HeaderCell=({children:n,onClick:r,contentPosition:i,sorted:a,sortKey:s})=>{const[c,l]=u(a||"inactive"),{color:f}=S(),{activeColumn:p,setActiveColumn:d}=o(w2),g=s||a,y="desc"===c?"arrow-down":"arrow-up",v="asc"===c||"desc"===c,m=e=>{if(l(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return h((()=>{!s||"asc"!==a&&"desc"!==a||m(a)}),[]),h((()=>{a&&l(a)}),[a]),h((()=>{const e=!p&&a;s&&p&&p.key!==s&&"inactive"!==c&&!e&&l("inactive")}),[p,c]),t(T2,Object.assign({onClick:e=>{s?m("inactive"===c?"asc":"asc"===c?"desc":"inactive"):r&&r(e)},contentPosition:i,active:v,sorting:!!g},{children:[n,g?e(xt,{name:y,marginLeft:8,size:"small",color:v?f.brand:void 0,inheritColor:!v}):null]}))},j2.Body=({children:t,height:n})=>{const{parentColumns:r}=o(w2);return e(S2,Object.assign({height:n},{children:g.map(t,(e=>e?c(e,{parentColumns:r}):null))}))},j2.Row=t=>{var{children:n,columns:r,onClick:i}=t,a=T(t,["children","columns","onClick"]);const{parentColumns:s}=o(w2),c=r||s||"equal";return e(k2,Object.assign({as:"tr",columns:c,onClick:i,hoverEffect:!!i},a,{children:x2(n,"td")}))},j2.Column=({children:t,contentPosition:n,defaultValue:r,padding:i,paddingTop:o,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:i,paddingTop:o,paddingBottom:a,paddingRight:s,paddingLeft:c};return e(A2,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const M2=de.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),P2=({trigger:n,on:r="hover",children:i,content:o,style:a,position:s,offsetY:c,offsetArrowX:l,offsetX:f,containerWidth:p,width:d,maxWidth:h,textAlign:g,disabled:y,id:v,afterShow:m,afterHide:b,bgColor:w,color:x})=>{const[_,C]=u(!1),O=e=>{C(e),m&&e&&m(),b&&!e&&b()},S=e=>{if(!y)switch(e.type){case"mouseover":r&&"hover"!==r||O(!0);break;case"mouseleave":r&&"hover"!==r||O(!1);break;case"click":"click"===r&&O(!_)}};return t(L2,Object.assign({width:p,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e(R2,Object.assign({visible:_,position:s,offsetY:c,offsetX:f,offsetArrowX:l,width:d,maxWidth:h,textAlign:g,id:v,bgColor:w,textColor:x},{children:o||i})),n]}))},D2=de.div((({theme:e})=>({color:e.tooltip.color.default}))),I2=de.div((({theme:e})=>({color:e.tooltip.color.subtext}))),R2=de.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:i,textColor:o})=>{const{tooltip:a,font:s}=e,c=a.background,u=i||c;return{backgroundColor:u,boxShadow:e.elevation1,color:o||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[i,o]=e.split(" ");let a={},s={};switch(i){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)"},o){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},o){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"}))),L2=de.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));P2.Header=D2,P2.Body=I2;const N2="#0074F4",B2="#001D32",F2="#FFFFFF",z2={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:N2,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:tt(.95,N2),brandTint1:tt(.9,N2),brandTint2:tt(.8,N2),brandTint3:tt(.7,N2),brandTint4:tt(.6,N2),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:"#FF6068",errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:tt(.95,"#FF6068"),errorTint1:tt(.9,"#FF6068"),errorTint2:tt(.8,"#FF6068"),warning:"#FF9900",warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:tt(.95,"#FF9900"),warningTint1:tt(.9,"#FF9900"),warningTint2:tt(.8,"#FF9900"),alert:"#F0BB00",alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:tt(.95,"#F0BB00"),alertTint1:tt(.9,"#F0BB00"),alertTint2:tt(.8,"#F0BB00"),success:"#00C242",successShade1:"#00AF3B",successShade2:"#009B35",successTint0:tt(.95,"#00C242"),successTint1:tt(.9,"#00C242"),successTint2:tt(.8,"#00C242"),grayscale0:tt(.95,B2),grayscale1:tt(.9,B2),grayscale2:tt(.8,B2),grayscale3:tt(.7,B2),grayscale4:tt(.6,B2),grayscale5:tt(.5,B2),grayscale6:tt(.4,B2),grayscale7:tt(.3,B2),grayscale8:tt(.2,B2),grayscale9:tt(.1,B2),grayscale10:B2,contrast0:tt(.95,F2),contrast1:tt(.9,F2),contrast2:tt(.8,F2),contrast3:tt(.7,F2),contrast4:tt(.6,F2),contrast5:tt(.5,F2),contrast6:tt(.4,F2),contrast7:tt(.3,F2),contrast8:tt(.2,F2),contrast9:tt(.1,F2),contrast10:F2};var U2={color:z2,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:H2}=U2;var V2={small:{height:28,iconSize:20,font:H2.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:H2.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:H2.size.lg,padding:14,iconOnlyPadding:6}};const K2="#FFFFFF",W2=z2.grayscale0,$2=z2.grayscale1,q2=z2.grayscale2,G2=z2.grayscale3,Z2=z2.grayscale4,Y2=z2.grayscale5,X2=z2.grayscale6,J2=z2.grayscale7,Q2=z2.grayscale8,e5=z2.grayscale9,t5=z2.grayscale10,n5=Object.assign(Object.assign({},U2),{name:"light",accent:z2.brand,accentShade:z2.brandShade1,background0:K2,background1:K2,background2:K2,background3:K2,background4:K2,background5:K2,scale0:W2,scale1:$2,scale2:q2,scale3:G2,scale4:Z2,scale5:Y2,scale6:X2,scale7:J2,scale8:Q2,scale9:e5,scale10:t5,button:Object.assign(Object.assign({},V2),{primary:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},outlineBackground:{default:z2.brandTint0,hover:z2.brandTint1,active:z2.brandTint2},border:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},divider:q2},secondary:{color:{default:t5,hover:t5,active:t5},outlineColor:{default:t5,hover:t5,active:t5},background:{default:$2,hover:q2,active:G2},outlineBackground:{default:$2,hover:q2,active:G2},border:{default:q2,hover:q2,active:q2},divider:q2},positive:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},outlineBackground:{default:z2.successTint0,hover:z2.successTint1,active:z2.successTint2},border:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},divider:q2},negative:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},outlineBackground:{default:z2.errorTint0,hover:z2.errorTint1,active:z2.errorTint2},border:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},divider:q2},caution:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},outlineBackground:{default:z2.warningTint0,hover:z2.warningTint1,active:z2.warningTint2},border:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},divider:q2},subtle:{color:{default:z2.brand,hover:z2.brand,active:z2.brand},outlineColor:{default:z2.brand,hover:z2.brand,active:z2.brand},secondaryColor:{default:t5,hover:t5,active:t5},positiveColor:{default:z2.success,hover:z2.success,active:z2.success},negativeColor:{default:z2.error,hover:z2.error,active:z2.error},cautionColor:{default:z2.warning,hover:z2.warning,active:z2.warning},background:{default:"transparent",hover:$2,active:q2},outlineBackground:{default:"transparent",hover:$2,active:q2},border:{default:"transparent",hover:q2,active:q2},divider:q2},link:{color:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},outlineColor:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},secondaryColor:{default:Q2,hover:e5,active:t5},positiveColor:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},negativeColor:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},cautionColor:{default:z2.warning,hover:z2.warningShade1,active:z2.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:Z2,hover:Z2,active:Z2},outlineColor:{default:Z2,hover:Z2,active:Z2},background:{default:$2,hover:$2,active:$2},outlineBackground:{default:W2,hover:W2,active:W2},border:{default:$2,hover:$2,active:$2},divider:$2},color:{default:K2}}),calendar:{background:{container:z2.contrast10,hover:$2,active:z2.brand,activeHover:z2.brandShade1},color:{disabled:Z2,default:t5,active:z2.contrast10,current:z2.brand,outside:X2,weekday:Q2,monthYear:Q2,iconDefault:Z2,iconHover:t5}},defaultBorder:`1px solid ${$2}`,formControl:{color:{default:Q2,hover:t5,active:z2.brand,activeHover:z2.brandShade1,disabled:Z2}},input:{borderRadius:4,background:{default:W2,hover:$2,focused:$2,disabled:W2},color:{default:t5,disabled:Z2,placeholder:X2,description:X2,descriptionError:z2.error},borderColor:{default:X2,hover:Q2,focused:z2.brand,disabled:Z2,error:z2.error},labelColor:{default:Q2,hover:Q2,filled:X2,focused:z2.brand,disabled:Z2}},menu:{background:K2},menuItem:{borderColor:z2.brand,background:{active:W2,hover:$2,inactive:"transparent"},color:{active:t5,hover:t5,inactive:X2}},modal:{background:z2.contrast10,color:{header:t5,body:X2}},options:{background:z2.contrast10},optionItem:{background:{active:$2,inactive:"transparent"},color:{active:t5,inactive:t5,accent:z2.brand}},table:{color:{header:X2,body:t5},borderColor:$2},toast:{color:t5,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Q2,info:z2.brand,success:z2.success,warning:z2.warning,error:z2.error}},toggle:{slider:z2.contrast10},tooltip:{background:"#FFF",color:{default:t5,subtext:X2}}}),r5=z2.contrast0,i5=z2.contrast1,o5=z2.contrast2,a5=z2.contrast3,s5=z2.contrast4,c5=z2.contrast5,u5=z2.contrast6,l5=z2.contrast7,f5=z2.contrast8,p5=z2.contrast9,d5=z2.contrast10,h5=z2.brandDark,g5={light:n5,dark:Object.assign(Object.assign({},U2),{name:"dark",accent:h5,accentShade:z2.brandDarkShade1,background0:z2.brandBackground0,background1:z2.brandBackground1,background2:z2.brandBackground2,background3:z2.brandBackground3,background4:z2.brandBackground4,background5:z2.brandBackground5,scale0:r5,scale1:i5,scale2:o5,scale3:a5,scale4:s5,scale5:c5,scale6:u5,scale7:l5,scale8:f5,scale9:p5,scale10:d5,button:Object.assign(Object.assign({},V2),{primary:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},outlineBackground:{default:z2.brandTint0,hover:z2.brandTint1,active:z2.brandTint2},border:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},divider:o5},secondary:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:i5,hover:o5,active:a5},outlineBackground:{default:i5,hover:o5,active:a5},border:{default:o5,hover:o5,active:o5},divider:o5},positive:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},outlineBackground:{default:z2.successTint0,hover:z2.successTint1,active:z2.successTint2},border:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},divider:o5},negative:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},outlineBackground:{default:z2.errorTint0,hover:z2.errorTint1,active:z2.errorTint2},border:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},divider:o5},caution:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},outlineBackground:{default:z2.warningTint0,hover:z2.warningTint1,active:z2.warningTint2},border:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},divider:o5},subtle:{color:{default:z2.brand,hover:z2.brand,active:z2.brand},outlineColor:{default:z2.brand,hover:z2.brand,active:z2.brand},secondaryColor:{default:d5,hover:d5,active:d5},positiveColor:{default:z2.success,hover:z2.success,active:z2.success},negativeColor:{default:z2.error,hover:z2.error,active:z2.error},cautionColor:{default:z2.warning,hover:z2.warning,active:z2.warning},background:{default:"transparent",hover:i5,active:o5},outlineBackground:{default:"transparent",hover:i5,active:o5},border:{default:"transparent",hover:o5,active:o5},divider:o5},link:{color:{default:z2.brandShade2,hover:z2.brandShade1,active:z2.brand},outlineColor:{default:z2.brandShade2,hover:z2.brandShade1,active:z2.brand},secondaryColor:{default:f5,hover:p5,active:d5},positiveColor:{default:z2.successShade2,hover:z2.successShade1,active:z2.success},negativeColor:{default:z2.errorShade2,hover:z2.errorShade1,active:z2.error},cautionColor:{default:z2.warningShade2,hover:z2.warningShade1,active:z2.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:s5,hover:s5,active:s5},outlineColor:{default:s5,hover:s5,active:s5},background:{default:i5,hover:i5,active:i5},outlineBackground:{default:r5,hover:r5,active:r5},border:{default:i5,hover:i5,active:i5},divider:i5},color:{default:"#FFFFFF"}}),calendar:{background:{container:z2.brandBackground3,hover:i5,active:z2.brand,activeHover:z2.brandShade1},color:{disabled:s5,default:d5,active:d5,current:h5,outside:u5,weekday:f5,monthYear:f5,iconDefault:s5,iconHover:d5}},defaultBorder:`1px solid ${i5}`,formControl:{color:{default:f5,hover:d5,active:z2.brand,activeHover:z2.brandShade1,disabled:s5}},input:{borderRadius:4,background:{default:r5,hover:i5,focused:i5,disabled:r5},color:{default:d5,disabled:s5,placeholder:u5,description:u5,descriptionError:z2.error},borderColor:{default:u5,hover:f5,focused:h5,disabled:s5,error:z2.error},labelColor:{default:f5,hover:f5,filled:u5,focused:h5,disabled:s5}},menu:{background:z2.brandBackground2},menuItem:{borderColor:z2.brand,background:{active:r5,hover:i5,inactive:"transparent"},color:{active:d5,hover:d5,inactive:u5}},modal:{background:z2.brandBackground3,color:{header:d5,body:u5}},options:{background:z2.brandBackground3},optionItem:{background:{active:i5,inactive:"transparent"},color:{active:d5,inactive:d5,accent:h5}},table:{color:{header:u5,body:d5},borderColor:i5},toast:{color:d5,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:f5,info:z2.brand,success:z2.success,warning:z2.warning,error:z2.error}},toggle:{slider:z2.brandBackground0},tooltip:{background:z2.brandBackground4,color:{default:d5,subtext:u5}}})},y5=({header:n,text:r,cancelText:i="Cancel",confirmText:o="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:f})=>{const[p,d]=u(f||""),[h,g]=u(null),y=()=>{g(null),d("")},v=()=>{null==h||h.resolve(!s||p),y()},m=()=>{null==h||h.resolve(!1),y()};nn(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":m()}}),!!h,[p]);return[()=>new Promise((e=>{g({resolve:e})})),()=>t(A0,Object.assign({visible:!!h,onClose:y,width:400},{children:[n&&e(A0.Header,{children:n}),r&&e(A0.Text,{children:r}),s&&e(A0.Body,Object.assign({marginTop:4,marginBottom:8},{children:e(Gt,{autoFocus:!0,label:c,placeholder:l,value:p,onChange:({target:e})=>d(e.value)})})),t(A0.Footer,{children:[e(Sn,Object.assign({secondary:!0,marginRight:8,onClick:m},{children:i})),e(Sn,Object.assign({negative:a,onClick:v},{children:o}))]})]}))]};export{In as Audio,bR as BarChart,Sn as Button,yB as Calendar,AB as Checkbox,JB as Code,nF as DocTable,X1 as DraftEditor,gn as Dropdown,i0 as Form,Q1 as Grid,xt as Icon,c0 as ImageViewer,d0 as InlineCode,Gt as Input,$t as InputUtils,n0 as Label,h0 as Menu,b0 as Message,O0 as MessageHr,A0 as Modal,P0 as MultiSelect,U0 as Notification,Qt as Options,V0 as Pagination,Z0 as PieChart,t2 as Progress,e0 as Radio,a2 as ResetStyles,s2 as ScrollbarStyles,Mn as Slider,u2 as Spacer,Bt as Spinner,j2 as Table,c2 as ToastStyles,t0 as Toggle,P2 as Tooltip,l2 as TransferList,WB as copyToClipboard,KB as formatDate,g5 as theme,y5 as useConfirm,nn as useEventListener,rn as useOnClickOutside,un as useSelect,an as useSelectAll,on as useWindowSize};
|
|
209
|
+
var jB=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").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 i,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var a in i={},n[o]=i,t)t.hasOwnProperty(a)&&(i[a]=e(t[a],n));return i;case"Array":return o=r.util.objId(t),n[o]?n[o]:(i=[],n[o]=i,t.forEach((function(t,r){i[r]=e(t,n)})),i);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 i=e.classList;if(i.contains(t))return!0;if(i.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 i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var o=(i=i||r.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=i[e];return i[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,i,o){o=o||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],i||s);var c=t[s],u=r.util.type(c);"Object"!==u||o[a(c)]?"Array"!==u||o[a(c)]||(o[a(c)]=!0,e(c,n,s,o)):(o[a(c)]=!0,e(c,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",o),o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),i.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return c(i,i.head,e),a(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},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 i,o=0;i=n[o++];)i(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}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 O=_.value;if(t.length>e.length)return;if(!(O instanceof i)){var S,k=1;if(m){if(!(S=o(x,C,e,v))||S.index>=e.length)break;var E=S.index,A=S.index+S[0].length,T=C;for(T+=_.value.length;E>=T;)T+=(_=_.next).value.length;if(C=T-=_.value.length,_.value instanceof i)continue;for(var j=_;j!==t.tail&&(T<A||"string"==typeof j.value);j=j.next)k++,T+=j.value.length;k--,O=e.slice(C,T),S.index-=C}else if(!(S=o(x,0,O,v)))continue;E=S.index;var M=S[0],P=O.slice(0,E),D=O.slice(E+M.length),I=C+O.length;f&&I>f.reach&&(f.reach=I);var R=_.prev;if(P&&(R=c(t,R,P),C+=P.length),u(t,R,k),_=c(t,R,new i(p,y?r.tokenize(M,y):M,b,M)),D&&c(t,_,D),k>1){var L={cause:p+","+h,reach:I};a(e,t,n,_.prev,C,L),f&&L.reach>f.reach&&(f.reach=L.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,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}return i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var o={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(o.classes,a):o.classes.push(a)),r.hooks.run("wrap",o);var s="";for(var c in o.attributes)s+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}(),MB=jB;jB.default=jB,MB.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]},MB.languages.markup.tag.inside["attr-value"].inside.entity=MB.languages.markup.entity,MB.languages.markup.doctype.inside["internal-subset"].inside=MB.languages.markup,MB.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(MB.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:MB.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:MB.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},MB.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(MB.languages.markup.tag,"addAttribute",{value:function(e,t){MB.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:MB.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),MB.languages.html=MB.languages.markup,MB.languages.mathml=MB.languages.markup,MB.languages.svg=MB.languages.markup,MB.languages.xml=MB.languages.extend("markup",{}),MB.languages.ssml=MB.languages.xml,MB.languages.atom=MB.languages.xml,MB.languages.rss=MB.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 i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(MB),MB.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:/[{}[\];(),.:]/},MB.languages.c=MB.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|[?:~]|[-+*/%&|^!=<>]=?/}),MB.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),MB.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},MB.languages.c.string],char:MB.languages.c.char,comment:MB.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:MB.languages.c}}}}),MB.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 MB.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"])}(MB),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"))}(MB),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},i={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:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(MB),MB.languages.javascript=MB.languages.extend("clike",{"class-name":[MB.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}|\?\?=?|\?\.?|[~:]/}),MB.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,MB.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:MB.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:MB.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:MB.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:MB.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:MB.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),MB.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:MB.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"}}),MB.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),MB.languages.markup&&(MB.languages.markup.tag.addInlined("script","javascript"),MB.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")),MB.languages.js=MB.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}(MB),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\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})),o=/"(?:[^"\\\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"(?:"+i+"|"+o+")"}))),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(o),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}(MB),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,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \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("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),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 i=t[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var s=o.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(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var o=t.classes[r],u=/language-(.+)/.exec(o);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}(MB),MB.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:MB.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+/},MB.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 i=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),i.push(a.content))}n=o+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),i.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&i.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 i=1,o=n;o<t.length;o++){var a=t[o],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))i++;else if(r.test(s)&&0===--i)return o}return-1}function d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),MB.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,i=r.inside["interpolation-punctuation"],o=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 i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function u(t){var n={};n["interpolation-punctuation"]=i;var o=e.tokenize(t,n);if(3===o.length){var a=[1,1];a.push.apply(a,c(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,a)}return new e.Token("interpolation",o,r.alias,t)}function l(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),a=0,l={},f=c(i.map((function(e){if("string"==typeof e)return e;for(var n,i=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=i,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 i=p[a],o="string"==typeof r?r:r.content,s=o.indexOf(i);if(-1!==s){++a;var c=o.substring(0,s),f=u(l[i]),d=o.substring(s+i.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,i=n.length;r<i;r++){var o=n[r];if("string"!=typeof o){var a=o.content;if(Array.isArray(a))if("template-string"===o.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)}))}(MB),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}(MB),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 i=n[r],o=e.languages.javascript[i];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[i]={pattern:o});var a=o.inside||{};o.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(MB),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\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:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<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 i=t[r],o=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(i);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)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(MB),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],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,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})}(MB),MB.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},MB.languages.go=MB.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/}),MB.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete MB.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,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof o&&!o(e))return e;for(var i,s=a.length;-1!==n.code.indexOf(i=t(r,s));)++s;return a[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(i>=o.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=o[i],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++i;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)}}}})}(MB),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}(MB),MB.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"}},MB.languages.webmanifest=MB.languages.json,MB.languages.less=MB.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:/[+\-*\/]/}),MB.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),MB.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:/[:;(){}]/},MB.languages.objectivec=MB.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 MB.languages.objectivec["class-name"],MB.languages.objc=MB.languages.objectivec,MB.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/},MB.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://,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:/[{}[\];(),.:]/},MB.languages.python["string-interpolation"].inside.interpolation.inside.rest=MB.languages.python,MB.languages.py=MB.languages.python,MB.languages.reason=MB.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/}),MB.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 MB.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}})}(MB),MB.languages.scss=MB.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]+\}/}}}),MB.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}]}),MB.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),MB.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}}),MB.languages.scss.atrule.inside.rest=MB.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:/[{}()\[\];:.]/}}(MB),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}(MB),MB.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 PB={Prism:MB,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 DB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IB(){return IB=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},IB.apply(this,arguments)}var RB=/\r\n|\r|\n/,LB=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)},NB=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},BB=function(e,t){var n=e.plain,r=Object.create(null),i=e.styles.reduce((function(e,n){var r=n.languages,i=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=IB({},e[t],i);e[t]=n})),e}),r);return i.root=n,i.plain=IB({},n,{backgroundColor:null}),i};function FB(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 zB=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),DB(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?BB(e.theme,e.language):void 0;return t.themeDict=n})),DB(this,"getLineProps",(function(e){var n=e.key,r=e.className,i=e.style,o=IB({},FB(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(o.style=a.plain),void 0!==i&&(o.style=void 0!==o.style?IB({},o.style,i):i),void 0!==n&&(o.key=n),r&&(o.className+=" "+r),o})),DB(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,i=n.length,o=t.getThemeDict(t.props);if(void 0!==o){if(1===i&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===i&&!r)return o[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return o[e]}));return Object.assign.apply(Object,[a].concat(s))}})),DB(this,"getTokenProps",(function(e){var n=e.key,r=e.className,i=e.style,o=e.token,a=IB({},FB(e,["key","className","style","token"]),{className:"token "+o.types.join(" "),children:o.content,style:t.getStyleForToken(o),key:void 0});return void 0!==i&&(a.style=void 0!==a.style?IB({},a.style,i):i),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),DB(this,"tokenize",(function(e,t,n,r){var i={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",i);var o=i.tokens=e.tokenize(i.code,i.grammar,i.language);return e.hooks.run("after-tokenize",i),o}))}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,i=e.children,o=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],i=[e.length],o=0,a=0,s=[],c=[s];a>-1;){for(;(o=r[a]++)<i[a];){var u=void 0,l=t[a],f=n[a][o];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=NB(l,f.type),f.alias&&(l=NB(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(RB),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)LB(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),i.push(u.length)}a--,t.pop(),n.pop(),r.pop(),i.pop()}return LB(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return i({tokens:s,className:"prism-code language-"+n,style:void 0!==o?o.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(w),UB="#c5a5c5",HB="#8dc891",VB={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:UB}},{types:["attr-value"],style:{color:HB}},{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:HB}},{types:["punctuation"],style:{color:HB}},{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:UB}},{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}}]},KB={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 WB=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,i=!1;"object"==typeof t&&(r=t.time,i=!!t.lowercase);const o="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,u=UL(n,"EEEE"),l=UL(n,"MMM d"),f=UL(n,"MMM d, y"),p=UL(n,"h:mm aaa"),d=function(e){return CR(1,arguments),fB(e,Date.now())}(n),h=function(e){return CR(1,arguments),OR(e).getTime()>Date.now()}(n),g=function(e){return CR(1,arguments),IR(e,Date.now())}(n),y=function(e){return CR(1,arguments),IR(e,pB(Date.now(),1))}(n),v=function(e){return CR(1,arguments),IR(e,SR(Date.now(),1))}(n),m=function(e,t,n){CR(2,arguments);var r=FR(e,t)/6e4;return UR(null==n?void 0:n.roundingMethod)(r)}(c,n),b=function(e,t,n){CR(2,arguments);var r=BR(e,t)/7;return UR(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(i){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(o)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}`)},$B=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},qB=({content:t})=>{const[n,r]=u(!1),{color:i,scale10:o}=S();h((()=>{n&&setTimeout((()=>{r(!1)}),2e3)}),[n]);return e(GB,Object.assign({onClick:()=>{$B(t),r(!0)},copied:n},{children:e(xt,n?{name:"check-circle",color:i.success}:{name:"copy",color:o})}))},GB=de.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}}))),ZB=({method:n,url:r})=>{const i=S(),o=((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}}})(n.toUpperCase(),i);return t(YB,Object.assign({},o,{children:[e(XB,Object.assign({backgroundColor:o.borderColor},{children:n.toUpperCase()})),e(JB,{children:r}),e(qB,{content:r})]}))},YB=de.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}))),XB=de.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),JB=de.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),QB=({children:n,code:r,className:i,lang:o,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=S(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||o||"",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),i=parseInt(n);return r<i?cn.range(r,i+1):cn.rangeRight(i,r+1)}return null})),n=t.flat();return cn.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==n?void 0:n.trim())||"";return"rest"===b?e(ZB,{method:w,url:C}):e(zB,Object.assign({},PB,{code:C,language:b,theme:"dark"===d?VB:KB},{children:({className:n,style:r,tokens:i,getLineProps:o,getTokenProps:a})=>t(eF,Object.assign({className:n,style:Object.assign({},r)},h,{"data-testid":"code"},{children:[i.map(((n,r,i)=>t(tF,Object.assign({},o({line:n,key:r}),{highlight:_(r+1)},{children:[i.length>1&&!x&&e(nF,{children:r+1}),n.map(((t,n)=>e("span",Object.assign({},a({token:t,key:n})),t.content)))]})))),e(qB,{content:C})]}))}))},eF=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),tF=de.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),nF=de.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),rF=de.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 iF={exports:{}},oF=(iF.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 i(e){return c(e)?e:Z(e)}function o(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(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=i,n.Set=o;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 O(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(A)),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 A(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(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,I=1,R=2,L="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=L||N;function F(e){this.next=e}function z(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function U(){return{value:void 0,done:!0}}function H(e){return!!W(e)}function V(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&&(L&&e[L]||e[N]);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=I,F.ENTRIES=R,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=oe,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 ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new ie(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):V(e)?new ie(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-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 i=e._cache;if(i){var o=i.length-1,a=0;return new F((function(){var e=i[n?o-a:a];return a++>o?U():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 i=r.next().value;return i&&ve(i[1],e)&&(n||ve(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):i?!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 Oe(){}function Se(){}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,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new F((function(){return i>r?U():z(e,i,n[t?r-i++:i++])}))},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,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new F((function(){var a=r[t?i-o:o];return o++>i?U():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(V(n))for(var i;!(i=n.next()).done&&!1!==e(i.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(!V(n))return new F(U);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(ie,Z),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new F((function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return z(e,i,r[i++])}))},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 T(e,t,n)?this:new be(this._value,M(t,n)-j(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):U()}))},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 T(e,t,this.size)?this:(e=j(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,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new F((function(){var a=i;return i+=t?-r:r,o>n?U():z(e,o++,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(Oe,_e),t(Se,_e),_e.Keyed=Ce,_e.Indexed=Oe,_e.Set=Se;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 Ae(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?Te(e):je(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return je(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){var t=He[e];return void 0===t&&(t=je(e),Ue===ze&&(Ue=0,He={}),Ue++,He[e]=t),t}function je(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(Le&&void 0!==(t=Re.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=Ie(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Le)Re.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 Ie(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Le="function"==typeof WeakMap;Le&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ue=0,He={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?it():We(e)&&!l(e)?e:it().withMutations((function(t){var n=r(e);Ve(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 ot(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return ot(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):it()},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,it(),(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,it(),(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 O)},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 i=Object.create(Ge);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function it(){return $e||($e=rt(0))}function ot(e,t,n){var r,i;if(e._root){var o=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(i,r):it()}function at(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===b?e:(C(s),C(a),new Qe(t,r,[i,o]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var o,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,i)]:(o=new Qe(t,r,i),a<s?[e,o]:[o,e]))}function ut(e,t,n,r){e||(e=new O);for(var i=new Qe(e,Ae(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function lt(e,t,n,r){for(var i=0,o=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&&(i|=c,a[o++]=l)}return new Ye(e,i,a)}function ft(e,t,n,r,i){for(var o=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Xe(e,o+1,a)}function pt(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),i.push(c)}return gt(e,t,i)}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 i=e(t,n,r);return ve(t,i)?t:i}}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)},i=0;i<n.length;i++)n[i].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var i=e===b,o=t.next();if(o.done){var a=i?n:e,s=r(a);return s===a?e:s}we(i||e&&e.set,"invalid keyPath");var c=o.value,u=i?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(i?it():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 i=r?e:S(e);return i[t]=n,i}function bt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ve(n,i[o][0]))return i[o][1];return r},Ze.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===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]===i:s)return this;if(C(a),(s||!f)&&C(o),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,i);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var i=1<<((0===e?t:t>>>e)&m),o=this.bitmap;return 0==(o&i)?r:this.nodes[vt(o&i-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&i===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,i,o,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=Ae(n));var i=(0===e?t:t>>>e)&m,o=this.nodes[i];return o?o.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=i===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,i,o,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 i=this.entries,o=0,a=i.length;o<a;o++)if(ve(n,i[o][0]))return i[o][1];return r},Je.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=i===b;if(n!==this.keyHash)return s?this:(C(a),C(o),ct(this,e,t,n,[r,i]));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]===i:s)return this;if(C(a),(s||!f)&&C(o),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),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,i,o,a){var s=i===b,c=ve(r,this.entry[0]);return(c?i===this.entry[1]:s)?this:(C(a),s?void C(o):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Qe(e,this.keyHash,[r,i]):(C(o),ct(this,e,t,Ae(r),[r,i])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.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,i=t.index++;if(r.entry){if(0===i)return tt(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return tt(e,o.entry);t=this._stack=nt(o,t)}continue}t=this._stack=this._stack.__prev}return U()};var xt=v/4,_t=v/2,Ct=v/4;function Ot(e){var t=It();if(null==e)return t;if(St(e))return e;var n=i(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?Dt(0,r,y,null,new At(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function St(e){return!(!e||!e[kt])}t(Ot,Oe),Ot.of=function(){return this(arguments)},Ot.prototype.toString=function(){return this.__toString("List [","]")},Ot.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},Ot.prototype.set=function(e,t){return Rt(this,e,t)},Ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ot.prototype.insert=function(e,t){return this.splice(e,0,t)},Ot.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):It()},Ot.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])}))},Ot.prototype.pop=function(){return Ft(this,0,-1)},Ot.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])}))},Ot.prototype.shift=function(){return Ft(this,1)},Ot.prototype.merge=function(){return zt(this,void 0,arguments)},Ot.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},Ot.prototype.mergeDeep=function(){return zt(this,dt,arguments)},Ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},Ot.prototype.setSize=function(e){return Ft(this,0,e)},Ot.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:Ft(this,j(e,n),M(t,n))},Ot.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?U():z(e,n++,t)}))},Ot.prototype.__iterate=function(e,t){for(var n,r=0,i=Pt(this,t);(n=i())!==Mt&&!1!==e(n,r++,this););return r},Ot.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)},Ot.isList=St;var kt="@@__IMMUTABLE_LIST__@@",Et=Ot.prototype;function At(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,At.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 At([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-y,n))===a&&o)return this}if(o&&!i)return this;var s=Nt(this,e);if(!o)for(var c=0;c<r;c++)s.array[c]=void 0;return i&&(s.array[r]=i),s},At.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&m;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-y,n))===o&&i===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Tt,jt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,i=Ut(r),o=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===i?o&&o.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,i,o){var s,c=e&&e.array,u=o>n?0:n-o>>i,l=1+(r-o>>i);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],i-y,o+(n<<i))}}}}function Dt(e,t,n,r,i,o,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=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function It(){return Tt||(Tt=Dt(0,0,y))}function Rt(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,i=e._root,o=_(x);return t>=Ut(e._capacity)?r=Lt(r,e.__ownerID,0,t,n,o):i=Lt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,i,r):e}function Lt(e,t,n,r,i,o){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===i)return e;if(n>0){var u=e&&e.array[s],l=Lt(u,t,n-y,r,i,o);return l===u?e:((a=Nt(e,t)).array[s]=l,a)}return c&&e.array[s]===i?e:(C(o),a=Nt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new At(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ut(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 O,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new At(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Ut(o),p=Ut(s);p>=1<<c+y;)u=new At(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new At([],r):d;if(d&&p>f&&a<o&&d.array.length){for(var g=u=Nt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<o&&(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>i||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>i&&(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=[],o=0,s=0;s<n.length;s++){var c=n[s],u=i(c);u.size>o&&(o=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return o>e.size&&(e=e.setSize(o)),gt(e,t,r)}function Ut(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?Wt():Vt(e)?e:Wt().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return We(e)&&l(e)}function Kt(e,t,n,r){var i=Object.create(Ht.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Wt(){return jt||(jt=Kt(it(),It()))}function $t(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Kt(r,i)}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===R){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===I?D:I,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,i){var o=e.get(r,b);return o===b?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(R,i);return new F((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),i)}))},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 i=bn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,c){if(t.call(n,e,o,c))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(R,o),s=0;return new F((function(){for(;;){var o=a.next();if(o.done)return o;var c=o.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(i,r?u:s++,l,o)}}))},i}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),i=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=mn(e);return i.map((function(t){return gn(e,o(t))}))}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,i))return e;var o=j(t,i),a=M(n,i);if(o!=o||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-o;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&oe(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=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++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<o;)i.next();if(++c>s)return U();var e=i.next();return r||t===I?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,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(R,i),s=!0;return new F((function(){if(!s)return U();var e=a.next();if(e.done)return e;var i=e.value,c=i[0],u=i[1];return t.call(n,u,c,o)?r===R?e:z(r,c,u,e):(s=!1,U())}))},r}function an(e,t,n,r){var i=bn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,c=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return c++,i(e,r?o:c-1,a)})),c},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(R,o),c=!0,u=0;return new F((function(){var e,o,l;do{if((e=s.next()).done)return r||i===I?e:z(i,u++,i===D?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],c&&(c=t.call(n,l,o,a))}while(c);return i===R?e:z(i,o,l,e)}))},i}function sn(e,t){var n=s(e),i=[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===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||c(e)&&c(o))return o}var u=new te(i);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.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,i){var o=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,i){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?i:o++,l)&&(s=!0),!s}),i)}return c(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],c=0;return new F((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return U()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,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 i=this,o=0;return e.__iterate((function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(I,r),a=0;return new F((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?z(n,a++,t):z(n,a++,i.value,i)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?G(o):c(e)?Z(o):Y(o)}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 i=bn(e);return i.size=new te(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(I,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),K(i?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?U():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function gn(e,t){return oe(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),k(e)}function mn(e){return s(e)?r:c(e)?i:o}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(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);En(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ke(o)},i=r.prototype=Object.create(On);return i.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=Vt,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(i){return e(i,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(I,t),r=t?vn(this):0;return new F((function(){var i=n.next();return i.done?i:z(e,t?--r:r++,i.value,i)}))},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(I,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(I,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(I,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var i=a(r);return z(e,i?r.get(0):r[0],i?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=Sn(this,it()))},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:Sn(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:Sn(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?Sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var On=Cn.prototype;function Sn(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(An.bind(void 0,e))}catch(e){}}function An(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 Tn(e){return null==e?Ln():jn(e)&&!l(e)?e:Ln().withMutations((function(t){var n=o(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function jn(e){return!(!e||!e[Pn])}On[g]=On.remove,On.deleteIn=On.removeIn=Ge.removeIn,On.merge=Ge.merge,On.mergeWith=Ge.mergeWith,On.mergeIn=Ge.mergeIn,On.mergeDeep=Ge.mergeDeep,On.mergeDeepWith=Ge.mergeDeepWith,On.mergeDeepIn=Ge.mergeDeepIn,On.setIn=Ge.setIn,On.update=Ge.update,On.updateIn=Ge.updateIn,On.withMutations=Ge.withMutations,On.asMutable=Ge.asMutable,On.asImmutable=Ge.asImmutable,t(Tn,Se),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("Set {","}")},Tn.prototype.has=function(e){return this._map.has(e)},Tn.prototype.add=function(e){return In(this,this._map.set(e,!0))},Tn.prototype.remove=function(e){return In(this,this._map.remove(e))},Tn.prototype.clear=function(){return In(this,this._map.clear())},Tn.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++)o(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Tn.prototype.merge=function(){return this.union.apply(this,arguments)},Tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Tn.prototype.sort=function(e){return Nn(fn(this,e))},Tn.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},Tn.prototype.wasAltered=function(){return this._map.wasAltered()},Tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Tn.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)},Tn.isSet=jn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=Tn.prototype;function In(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 Rn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ln(){return Mn||(Mn=Rn(it()))}function Nn(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=o(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return jn(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=Ln,Dn.__make=Rn,t(Nn,Tn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function Un(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=Un(Wt()))}function Vn(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=Un,t(Vn,Oe),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.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)},Vn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ve(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)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.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()},Vn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=j(e,this.size);if(M(t,this.size)!==this.size)return Oe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Gn(r,i)},Vn.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)},Vn.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},Vn.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 U()}))},Vn.isStack=Kn;var Wn,$n="@@__IMMUTABLE_STACK__@@",qn=Vn.prototype;function Gn(e,t,n,r){var i=Object.create(qn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}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(){Ve(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(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return Tn(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 Vn(s(this)?this.valueSeq():this)},toList:function(){return Ot(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(R)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))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,i,o){if(e.call(t,r,i,o))return n=[i,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(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,i;return Ve(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,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(I)},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(A)},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,i=_n(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,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):or)},minBy:function(e,t){return pn(this,t?nr(t):or,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(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,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 ir(){return S(arguments)}function or(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,i=e.__iterate(n?t?function(e,t){r=31*r+cr(Ae(e),Ae(t))|0}:function(e,t){r=r+cr(Ae(e),Ae(t))|0}:t?function(e){r=31*r+Ae(e)|0}:function(e){r=r+Ae(e)|0});return sr(i,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}return Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(i,{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=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(S(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(S(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,ir,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),i.prototype[d]=!0,i.prototype[h]=!0,Yn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,i.prototype),Yn(Y,o.prototype),Yn(Ce,r.prototype),Yn(Oe,i.prototype),Yn(Se,o.prototype),{Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:Ot,Stack:Vn,Set:Tn,OrderedSet:Nn,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de}}()).OrderedMap,aF={createFromArray:function(e){return oF(e.map((function(e){return[e.getKey(),e]})))}};var sF=iF.exports,cF=sF.Map,uF=sF.OrderedSet,lF=sF.Record,fF=uF(),pF={style:fF,entity:null},dF=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 i=r.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.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 hF;var t=cF({style:fF,entity:null}).merge(e),n=gF.get(t);if(n)return n;var i=new r(t);return gF=gF.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?uF(t):t,entity:Array.isArray(n)?uF(n):n})},r}(lF(pF)),hF=new dF,gF=cF([[cF(pF),hF]]);dF.EMPTY=hF;var yF=dF;var vF=function(e,t,n,r){if(e.size){var i=0;e.reduce((function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o})),n(e.last())&&r(i,e.count())}};var mF=yF,bF=vF,wF=iF.exports,xF=wF.List,_F=wF.Map,CF=wF.OrderedSet,OF=wF.Record,SF=wF.Repeat,kF=CF(),EF=OF({key:"",type:"unstyled",text:"",characterList:xF(),depth:0,data:_F()}),AF=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=xF(SF(mF.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():kF},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.findStyleRanges=function(e,t){bF(this.getCharacterList(),TF,e,t)},i.findEntityRanges=function(e,t){bF(this.getCharacterList(),jF,e,t)},r}(EF);function TF(e,t){return e.getStyle()===t.getStyle()}function jF(e,t){return e.getEntity()===t.getEntity()}var MF=AF;var PF=yF,DF=vF,IF=iF.exports,RF=IF.List,LF=IF.Map,NF=IF.OrderedSet,BF=IF.Record,FF=IF.Repeat,zF=NF(),UF={parent:null,characterList:RF(),data:LF(),depth:0,key:"",text:"",type:"unstyled",children:RF(),prevSibling:null,nextSibling:null},HF=function(e,t){return e.getStyle()===t.getStyle()},VF=function(e,t){return e.getEntity()===t.getEntity()},KF=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=RF(FF(PF.EMPTY,n.length))),e},WF=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:UF;return e.call(this,KF(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():zF},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(e,t){DF(this.getCharacterList(),HF,e,t)},i.findEntityRanges=function(e,t){DF(this.getCharacterList(),VF,e,t)},r}(BF(UF)),$F=WF,qF=yF,GF=iF.exports.Map;function ZF(e,t,n,r){var i=e.getBlockMap(),o=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=i.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===s})).concat(GF([[s,i.get(s)]])).map((function(e,t){var i,u;o===s?(i=a,u=c):(i=t===o?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();i<u;)l=f.get(i),f=f.set(i,r?qF.applyStyle(l,n):qF.removeStyle(l,n)),i++;return e.set("characterList",f)}));return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var YF={add:function(e,t,n){return ZF(e,t,n,!0)},remove:function(e,t,n){return ZF(e,t,n,!1)}},XF=yF;var JF=function(e,t,n,r){for(var i=t,o=e.getCharacterList();i<n;)o=o.set(i,XF.applyEntity(o.get(i),r)),i++;return e.set("characterList",o)},QF=iF.exports;var ez=function(e,t,n){var r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(QF.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===i?o:0,c=t===a?s:e.getLength();return JF(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},tz={getRemovalRange:function(e,t,n,r,i){var o=n.split(" ");o=o.map((function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<o.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<o.length;l++){if(e<(a=s+o[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"===i?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},nz="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var rz=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(nz(t),!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw o.framesToPop=1,o}},iz=rz;var oz=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?iz(!1,"Entity key not found in this range."):iz(!1)),n},az=tz,sz=oz,cz=rz;function uz(e,t,n,r,i,o,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(i).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=sz(t,i).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?cz(!1,"There should only be one entity range within this removal range."):cz(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});o||(a?c=p.end:s=p.start);var d=az.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 lz=function(e,t,n,r,i){var o=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(o),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=uz(e,t,u,i,s,!0,!0);else if(s&&c){var l=uz(e,t,u,i,s,!1,!0),f=uz(e,n,u,i,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=uz(e,t,u,i,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=uz(e,n,u,i,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},fz={},pz=Math.pow(2,24);var dz=function(){for(var e;void 0===e||fz.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*pz).toString(32);return fz[e]=!0,e},hz=$F,gz=dz,yz=iF.exports.OrderedMap,vz=function(e){return e.first()instanceof hz?function(e){var t,n={};return yz(e.withMutations((function(e){e.forEach((function(r,i){var o=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=gz();if(n[o]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([o,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([o,"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([o,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([o,"prevSibling"],n[t.getKey()])),t=e.get(o);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([o,"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 yz(e.toArray().map((function(e){var t=gz();return[t,e.set("key",t)]})))}(e)},mz=yF,bz=vF,wz=rz;function xz(e,t,n){var r=t.getCharacterList(),i=n>0?r.get(n-1):void 0,o=n<r.count()?r.get(n):void 0,a=i?i.getEntity():void 0,s=o?o.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return bz(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?wz(!1,"Removal range must exist within character list."):wz(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,mz.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var _z=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),a=t.getStartOffset(),s=n.get(o),c=xz(r,s,a);c!==s&&(i[o]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);o===u&&(f=c);var p=xz(r,f,l);return p!==f&&(i[u]=p),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)},Cz=vz,Oz=_z,Sz=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=t.getEndKey(),o=t.getEndOffset(),a=Oz(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(i)+1;return Cz(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===i?e.merge({text:a.slice(r,o),characterList:s.slice(r,o)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===i?e.merge({text:a.slice(0,o),characterList:s.slice(0,o)}):e})))};var kz=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 i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r},Ez=aF,Az=$F,Tz=kz,jz=rz,Mz=vz,Pz=iF.exports.List,Dz=function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(i),c=s.getText(),u=s.getCharacterList(),l=i,f=o+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,o)+r.getText()+c.slice(o),characterList:Tz(u,r.getCharacterList(),o),type:d,data:p});return e.merge({blockMap:n.set(i,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},Iz=function(e,t,n,r,i,o){var a=n.first()instanceof Az,s=[],c=r.size,u=n.get(i),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===i?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.slice(0,t),a=i.slice(0,t),s=n.first();return e.merge({text:o+s.getText(),characterList:a.concat(s.getCharacterList()),type:o?e.getType():s.getType(),data:s.getData()})}(e,o,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(),i=e.getCharacterList(),o=r.length,a=r.slice(t,o),s=i.slice(t,o),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,o,r))):s.push(e)}));var g=Ez.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var i=n.getKey(),o=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var o=r.getNextSiblingKey();if(!o)break;i.push(o),r=t.get(o)}return i}(r,e),u=c[c.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],i)),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(i)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],Pz(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},Rz=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?jz(!1,"`insertFragment` should only be called with a collapsed selection state."):jz(!1));var i=e.getBlockMap(),o=Mz(n),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a);return c instanceof Az&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?jz(!1,"`insertFragment` should not be called when a container node is selected."):jz(!1))),1===o.size?Dz(e,t,i,o.first(),a,s,r):Iz(e,t,i,o,a,s)},Lz=kz,Nz=rz,Bz=iF.exports.Repeat;var Fz=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?Nz(!1,"`insertText` should only be called with a collapsed range."):Nz(!1));var i=null;if(null!=n&&(i=n.length),null==i||0===i)return e;var o=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:Lz(c.getCharacterList(),Bz(r,i).toList(),s)}),f=s+i;return e.merge({blockMap:o.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},zz=iF.exports.Map;var Uz=function(e,t,n){var r=t.getStartKey(),i=t.getEndKey(),o=e.getBlockMap(),a=o.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===i})).concat(zz([[i,o.get(i)]])).map(n);return e.merge({blockMap:o.merge(a),selectionBefore:t,selectionAfter:t})},Hz=$F,Vz=function(e,t){if(!(e instanceof Hz))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var i=t.get(r);i&&!i.getNextSiblingKey();){var o=i.getParentKey();i=o?t.get(o):null}return i?i.getNextSiblingKey():null},Kz=$F,Wz=Vz,$z=iF.exports;$z.List;var qz=$z.Map,Gz=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Zz=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},Yz=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},Xz=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},Jz=function(e,t,n,r){return e.withMutations((function(i){if(Gz(t.getKey(),i,(function(e){return e.merge({nextSibling:Yz(e,i,r),prevSibling:Xz(e,i,r)})})),Gz(n.getKey(),i,(function(e){return e.merge({nextSibling:Yz(e,i,r),prevSibling:Xz(e,i,r)})})),Zz(t.getKey(),r).forEach((function(e){return Gz(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:Yz(e,i,r),prevSibling:Xz(e,i,r)})}))})),Gz(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),Gz(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:Yz(e,i,r)})})),Gz(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:Xz(e,i,r)})})),Gz(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Zz(n.getKey(),r).forEach((function(e){Gz(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:Yz(e,i,r),prevSibling:Xz(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=Wz(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?Wz(i,t):null}return n}(n,r).forEach((function(e){return Gz(e,i,(function(e){return e.merge({nextSibling:Yz(e,i,r),prevSibling:Xz(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var o=t.getPrevSiblingKey();Gz(n.getKey(),i,(function(e){return e.merge({prevSibling:o})})),Gz(o,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=o?e.get(o):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){Gz(e,i,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);Gz(s,i,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}Gz(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Qz=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),i=e.slice(n);e=r.concat(i).toList()}return e},eU=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(i),u=r.get(a),l=c instanceof Kz,f=[];if(l){var p=u.getChildKeys(),d=Zz(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(Zz(Wz(u,r),r))}n=c===u?Qz(c.getCharacterList(),o,s):c.getCharacterList().slice(0,o).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,o)+u.getText().slice(s),characterList:n}),g=l&&0===o&&0===s&&u.getParentKey()===i&&null==u.getPrevSiblingKey()?qz([[i,null]]):r.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(qz([[a,null]])).map((function(e,t){return t===i?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=Jz(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1})})},tU=$F,nU=dz,rU=iF.exports,iU=rz,oU=Uz,aU=rU.List,sU=rU.Map,cU=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},uU=yF,lU=YF,fU=ez,pU=lz,dU=Sz,hU=Rz,gU=Fz,yU=rz,vU=Uz,mU=_z,bU=eU,wU=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?iU(!1,"Selection range must be collapsed."):iU(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),i=r.get(n),o=i.getText();if(!o){var a=i.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return oU(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=i.getCharacterList(),u=nU(),l=i instanceof tU,f=i.merge({text:o.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:o.slice(s),characterList:c.slice(s),data:sU()}),d=r.toSeq().takeUntil((function(e){return e===i})),h=r.toSeq().skipUntil((function(e){return e===i})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(i.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?iU(!1,"ContentBlockNode must not have children"):iU(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),i=n.getKey();cU(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,o=t.toArray();return o.splice(n,0,i),e.merge({children:aU(o)})})),cU(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:i})})),cU(r,e,(function(e){return e.merge({nextSibling:i})})),cU(i,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})})},xU=iF.exports.OrderedSet,_U={replaceText:function(e,t,n,r,i){var o=mU(e,t),a=bU(o,t),s=uU.create({style:r||xU(),entity:i||null});return gU(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,i){return t.isCollapsed()||("production"!==process.env.NODE_ENV?yU(!1,"Target range must be collapsed for `insertText`."):yU(!1)),_U.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=dU(e,t),i=_U.removeRange(e,t,"backward");return _U.replaceWithFragment(i,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=mU(e,t),o=bU(i,t);return hU(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,i,o,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),i=t.getFocusKey(),o=e.getBlockForKey(r),a=e.getBlockForKey(i);var s=t.getStartOffset(),c=t.getEndOffset(),u=o.getEntityAt(s),l=a.getEntityAt(c-1);if(r===i&&u&&u===l){var f=pU(e.getEntityMap(),o,a,t,n);return bU(e,f)}var p=mU(e,t);return bU(p,t)},splitBlock:function(e,t){var n=mU(e,t),r=bU(n,t);return wU(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return lU.add(e,t,n)},removeInlineStyle:function(e,t,n){return lU.remove(e,t,n)},setBlockType:function(e,t,n){return vU(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return vU(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return vU(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=mU(e,t);return fU(r,t,n)}},CU=_U;var OU=function(e){return Object.keys(e).map((function(t){return e[t]}))};function SU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU=vF,EU=OU,AU=iF.exports,TU=AU.List,jU=AU.Repeat,MU=AU.Record,PU=function(){return!0},DU=MU({start:null,end:null}),IU=MU({start:null,end:null,decoratorKey:null,leaves:null}),RU={generate:function(e,t,n){var r=t.getLength();if(!r)return TU.of(new IU({start:0,end:0,decoratorKey:null,leaves:TU.of(new DU({start:0,end:0}))}));var i=[],o=n?n.getDecorations(t,e):TU(jU(null,r)),a=t.getCharacterList();return kU(o,NU,PU,(function(e,t){i.push(new IU({start:e,end:t,decoratorKey:o.get(e),leaves:LU(a.slice(e,t).toList(),e)}))})),TU(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["leaves"]);return new IU(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){SU(e,t,n[t])}))}return e}({},n,{leaves:null!=t?TU(Array.isArray(t)?t:EU(t)).map((function(e){return DU(e)})):null}))}};function LU(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return kU(r,NU,PU,(function(e,r){n.push(new DU({start:e+t,end:r+t}))})),TU(n)}function NU(e,t){return e===t}var BU=RU;var FU=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 i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}((0,iF.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),zU=FU;var UU=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 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 VU=zU,KU=rz,WU=UU,$U=(0,iF.exports.Map)(),qU=WU();function GU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var ZU={getLastCreatedEntityKey:function(){return GU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),ZU.__getLastCreatedEntityKey()},create:function(e,t,n){return GU("DraftEntity.create","contentState.createEntity"),ZU.__create(e,t,n)},add:function(e){return GU("DraftEntity.add","contentState.addEntity"),ZU.__add(e)},get:function(e){return GU("DraftEntity.get","contentState.getEntity"),ZU.__get(e)},__getAll:function(){return $U},__loadWithEntities:function(e){$U=e,qU=WU()},mergeData:function(e,t){return GU("DraftEntity.mergeData","contentState.mergeEntityData"),ZU.__mergeData(e,t)},replaceData:function(e,t){return GU("DraftEntity.replaceData","contentState.replaceEntityData"),ZU.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return qU},__create:function(e,t,n){return ZU.__add(new VU({type:e,mutability:t,data:n||{}}))},__add:function(e){return qU=WU(),$U=$U.set(qU,e),qU},__get:function(e){var t=$U.get(e);return t||("production"!==process.env.NODE_ENV?KU(!1,"Unknown DraftEntity key: %s.",e):KU(!1)),t},__mergeData:function(e,t){var n=ZU.__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){HU(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",r);return $U=$U.set(e,i),i},__replaceData:function(e,t){var n=ZU.__get(e).set("data",t);return $U=$U.set(e,n),n}},YU=ZU;var XU=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 i=r.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=n||t<=a&&a<=n}if(e!==r&&e!==i)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.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,iF.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),JU=XU,QU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},eH=new RegExp("\r","g");var tH=function(e){return e.replace(eH,"")};function nH(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){rH(e,t,n[t])}))}return e}function rH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iH=aF,oH=yF,aH=MF,sH=$F,cH=YU,uH=JU,lH=dz,fH=OU,pH=QU,dH=iF.exports,hH=tH,gH=dH.List,yH=dH.Record,vH=dH.Repeat,mH=dH.Map,bH=dH.OrderedMap,wH=yH({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),xH=pH("draft_tree_data_support")?sH:aH,_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 i=r.prototype;return i.getEntityMap=function(){return cH},i.getBlockMap=function(){return this.get("blockMap")},i.getSelectionBefore=function(){return this.get("selectionBefore")},i.getSelectionAfter=function(){return this.get("selectionAfter")},i.getBlockForKey=function(e){return this.getBlockMap().get(e)},i.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},i.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},i.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},i.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},i.getBlocksAsArray=function(){return this.getBlockMap().toArray()},i.getFirstBlock=function(){return this.getBlockMap().first()},i.getLastBlock=function(){return this.getBlockMap().last()},i.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},i.getLastCreatedEntityKey=function(){return cH.__getLastCreatedEntityKey()},i.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},i.createEntity=function(e,t,n){return cH.__create(e,t,n),this},i.mergeEntityData=function(e,t){return cH.__mergeData(e,t),this},i.replaceEntityData=function(e,t){return cH.__replaceData(e,t),this},i.addEntity=function(e){return cH.__add(e),this},i.getEntity=function(e){return cH.__get(e)},i.getAllEntities=function(){return cH.__getAll()},i.loadWithEntities=function(e){return cH.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,i=iH.createFromArray(n),o=i.isEmpty()?new uH:uH.createEmpty(i.first().getKey());return new r({blockMap:i,entityMap:t||cH,selectionBefore:o,selectionAfter:o})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),i=n.map((function(e){return e=hH(e),new xH({key:lH(),text:e,type:"unstyled",characterList:gH(vH(oH.EMPTY,e.length))})}));return r.createFromBlockArray(i)},r.fromJS=function(e){return new r(nH({},e,{blockMap:bH(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new uH(e.selectionBefore),selectionAfter:new uH(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new xH(nH({},e,{data:mH(e.data),characterList:null!=t?gH((Array.isArray(t)?t:fH(t)).map((function(e){return oH.fromJS(e)}))):void 0}))},r}(wH),CH=_H,OH=rz,SH=null;function kH(e){return"LTR"===e||"RTL"===e}function EH(e){return kH(e)||("production"!==process.env.NODE_ENV?OH(!1,"`dir` must be a strong direction to be converted to HTML Direction"):OH(!1)),"LTR"===e?"ltr":"rtl"}function AH(e){SH=e}var TH={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:kH,getHTMLDir:EH,getHTMLDirIfDifferent:function(e,t){return kH(e)||("production"!==process.env.NODE_ENV?OH(!1,"`dir` must be a strong direction to be converted to HTML Direction"):OH(!1)),kH(t)||("production"!==process.env.NODE_ENV?OH(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):OH(!1)),e===t?null:EH(e)},setGlobalDir:AH,initGlobalDir:function(){AH("LTR")},getGlobalDir:function(){return SH||this.initGlobalDir(),SH||("production"!==process.env.NODE_ENV?OH(!1,"Global direction not set."):OH(!1)),SH}},jH=TH,MH=rz,PH="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",DH="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",IH=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+PH+DH+"]"),RH=new RegExp("["+PH+DH+"]");function LH(e){var t=IH.exec(e);return null==t?null:t[0]}function NH(e){var t=LH(e);return null==t?jH.NEUTRAL:RH.exec(t)?jH.RTL:jH.LTR}function BH(e,t){if(t=t||jH.NEUTRAL,!e.length)return t;var n=NH(e);return n===jH.NEUTRAL?t:n}function FH(e,t){return t||(t=jH.getGlobalDir()),jH.isStrong(t)||("production"!==process.env.NODE_ENV?MH(!1,"Fallback direction must be a strong direction"):MH(!1)),BH(e,t)}var zH={firstStrongChar:LH,firstStrongCharDir:NH,resolveBlockDir:BH,getDirection:FH,isDirectionLTR:function(e,t){return FH(e,t)===jH.LTR},isDirectionRTL:function(e,t){return FH(e,t)===jH.RTL}};function UH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HH,VH=zH,KH=TH,WH=rz,$H=function(){function e(e){UH(this,"_defaultDir",void 0),UH(this,"_lastDir",void 0),e?KH.isStrong(e)||("production"!==process.env.NODE_ENV?WH(!1,"Default direction must be a strong direction (LTR or RTL)"):WH(!1)):e=KH.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=VH.getDirection(e,this._lastDir),this._lastDir},e}(),qH=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},GH=$H,ZH=iF.exports,YH=qH,XH=ZH.OrderedMap;function JH(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){QH(e,t,n[t])}))}return e}function QH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eV=BU,tV=CH,nV={getDirectionMap:function(e,t){HH?HH.reset():HH=new GH;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return YH(HH).getDirection(e.getText())})),i=XH(n.keySeq().zip(r));return null!=t&&ZH.is(t,i)?t:i}},rV=JU,iV=iF.exports,oV=iV.OrderedSet,aV=iV.Record,sV=iV.Stack,cV=iV.OrderedMap,uV=iV.List,lV=aV({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:sV(),selection:null,treeMap:null,undoStack:sV()}),fV=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(tV.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:sV(),redoStack:sV(),decorator:n||null,selection:rV.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=JH({},e,{treeMap:dV(n,e.decorator),directionMap:nV.getDirectionMap(n)});return new t(new lV(r))},t.fromJS=function(e){return new t(new lV(JH({},e,{directionMap:null!=e.directionMap?cV(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?oV(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?tV.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?sV(e.redoStack.map((function(e){return tV.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new rV(e.selection):e.selection,treeMap:null!=e.treeMap?cV(e.treeMap).map((function(e){return uV(e).map((function(e){return eV.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?sV(e.undoStack.map((function(e){return tV.fromJS(e)}))):e.undoStack,currentContent:tV.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var o=n.currentContent||e.getCurrentContent();if(i!==r){var a,s=t.get("treeMap");return a=i&&r?function(e,t,n,r,i){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)})).map((function(t){return eV.generate(e,t,r)})))}(o,o.getBlockMap(),s,i,r):dV(o,i),void t.merge({decorator:i,treeMap:a,nativelyRenderedContent:null})}o!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),o=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==o.get(t)})).map((function(e){return eV.generate(i,e,r)})))}(e,o.getBlockMap(),o.getEntityMap(),i)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){QH(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(),i=e.getBlockForKey(n);if(r>0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return gV(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r<i.getLength())return i.getInlineStyleAt(r);if(r>0)return i.getInlineStyleAt(r-1);return gV(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 pV(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),pV(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new rV({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var o=nV.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||hV(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:o,undoStack:c,redoStack:sV(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,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 i=e.getCurrentContent(),o=nV.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=nV.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function pV(e,t,n){return fV.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function dV(e,t){return e.getBlockMap().map((function(n){return eV.generate(e,n,t)})).toOrderedMap()}function hV(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function gV(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):oV()}var yV=fV,vV=$F,mV=Vz,bV=iF.exports,wV=rz,xV=bV.OrderedMap,_V=bV.List,CV=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},OV=function(e,t,n,r,i){if(!i)return e;var o="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=o?n.getNextSiblingKey():s,d=o?s:n.getPrevSiblingKey();return e.withMutations((function(e){CV(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),CV(l,e,(function(e){return e.merge({nextSibling:u})})),CV(u,e,(function(e){return e.merge({prevSibling:l})})),CV(p,e,(function(e){return e.merge({prevSibling:a})})),CV(d,e,(function(e){return e.merge({nextSibling:a})})),CV(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=o?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,a),e.merge({children:_V(i)})})),CV(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function SV(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){kV(e,t,n[t])}))}return e}function kV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EV=aF,AV=yF,TV=MF,jV=$F,MV=CU,PV=yV,DV=dz,IV=iF.exports,RV=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?wV(!1,"Replacing blocks is not supported."):wV(!1));var i=n.getKey(),o=t.getKey();o===i&&("production"!==process.env.NODE_ENV?wV(!1,"Block cannot be moved next to itself."):wV(!1));var a=e.getBlockMap(),s=t instanceof vV,c=[t],u=a.delete(o);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=mV(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===o})).takeWhile((function(e){var t=e.getKey(),i=t===o,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||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=xV();if("before"===r){var h=e.getBlockBefore(i);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?wV(!1,"Block cannot be moved next to itself."):wV(!1)),d=l.concat([].concat(p,[[i,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(i);g&&g.getKey()===o&&("production"!==process.env.NODE_ENV?wV(!1,"Block cannot be moved next to itself."):wV(!1)),d=l.concat([[i,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:OV(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:o,focusKey:o})})},LV=QU("draft_tree_data_support"),NV=LV?jV:TV,BV=IV.List,FV=IV.Repeat,zV={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),i=e.getSelection(),o=MV.removeRange(r,i,"backward"),a=o.getSelectionAfter(),s=MV.splitBlock(o,a),c=s.getSelectionAfter(),u=MV.setBlockType(s,c,"atomic"),l=AV.create({entity:t}),f={key:DV(),type:"atomic",text:n,characterList:BV(FV(l,n.length))},p={key:DV(),type:"unstyled"};LV&&(f=SV({},f,{nextSibling:p.key}),p=SV({},p,{prevSibling:f.key}));var d=[new NV(f),new NV(p)],h=EV.createFromArray(d),g=MV.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:i,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return PV.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,o=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=RV(o,t,s,r)}else{var c=MV.removeRange(o,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())i=RV(c,t,l,"before");else if(u.getEndOffset()===l.getLength())i=RV(c,t,l,"after");else{var f=MV.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());i=RV(f,t,d,"before")}}var h=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return PV.push(e,h,"move-block")}};var UV=iF.exports.List,HV=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,i){var o=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 i=t;i<n;i++)e[i]=r}(n,e,t,i+"."+o),o++)}),t)})),UV(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 VV=HV;function KV(e){return e.replace(/\//g,"-")}var WV=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(KV).join(" "):Array.prototype.map.call(arguments,KV).join(" ")},$V=i,qV=WV,GV=(0,iF.exports.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:$V.createElement("ul",{className:qV("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:$V.createElement("ol",{className:qV("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:$V.createElement("pre",{className:qV("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),ZV={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},YV={exports:{}};!function(e,t){!function(n,r){var i="function",o="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",O="Firefox",S="Google",k="Huawei",E="LG",A="Microsoft",T="Motorola",j="Opera",M="Samsung",P="Sony",D="Xiaomi",I="Zebra",R="Facebook",L=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===s&&-1!==B(t).indexOf(B(e))},B=function(e){return e.toLowerCase()},F=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===o?e:e.substring(0,255)},z=function(e,t){for(var n,o,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=o=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++o],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||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 i=0;i<t[n].length;i++)if(N(t[n][i],e))return"?"===n?r:n}else if(N(t[n],e))return"?"===n?r:n;return e},H={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"},V={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,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,j]],[/(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,"UCBrowser"]],[/\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 Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],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,R],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,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(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,"Firefox 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,B]],[/((?: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/,"",B]],[/(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,B]]],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,M],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,M],[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,k],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[f,k],[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,D],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,D],[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,T],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,T],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,E],[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,E],[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,S],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,S],[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,P],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,P],[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,A],[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,A],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,I],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,I],[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,P],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,A],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,M],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,E],[l,v]],[/(apple) ?tv/i],[f,[c,"Apple TV"],[l,v]],[/crkey/i],[[c,"Chromecast"],[f,S],[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,F],[c,F],[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,S],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,I],[l,m]],[/(quest( 2)?)/i],[c,[f,R],[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,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,U,H]],[/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,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(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]]},K=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof K))return new K(e,t).getResult();var i=e||(typeof n!==o&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),c=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}(V,t):V;return this.getBrowser=function(){var e,t={};return t.name=r,t.version=r,z.call(t,i,c.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e.architecture=r,z.call(e,i,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=r,e.model=r,e.type=r,z.call(e,i,c.device),e},this.getEngine=function(){var e={};return e.name=r,e.version=r,z.call(e,i,c.engine),e},this.getOS=function(){var e={};return e.name=r,e.version=r,z.call(e,i,c.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 i},this.setUA=function(e){return i=typeof e===s&&e.length>255?F(e,255):e,this},this.setUA(i),this};K.VERSION="0.7.31",K.BROWSER=L([u,p,"major"]),K.CPU=L([d]),K.DEVICE=L([c,f,l,h,g,v,y,m,b]),K.ENGINE=K.OS=L([u,p]),e.exports&&(t=e.exports=K),t.UAParser=K;var W=typeof n!==o&&(n.jQuery||n.Zepto);if(W&&!W.ua){var $=new K;W.ua=$.getResult(),W.ua.get=function(){return $.getUA()},W.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:Ot)}(YV,YV.exports);var XV="Unknown",JV={"Mac OS":"Mac OS X"};var QV,eK=(new(0,YV.exports)).getResult(),tK=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(eK.browser.version),nK={browserArchitecture:eK.cpu.architecture||XV,browserFullVersion:eK.browser.version||XV,browserMinorVersion:tK.minor||XV,browserName:eK.browser.name||XV,browserVersion:eK.browser.major||XV,deviceName:eK.device.model||XV,engineName:eK.engine.name||XV,engineVersion:eK.engine.version||XV,platformArchitecture:eK.cpu.architecture||XV,platformName:(QV=eK.os.name,JV[QV]||QV||XV),platformVersion:eK.os.version||XV,platformFullVersion:eK.os.version||XV},rK=rz,iK=/\./,oK=/\|\|/,aK=/\s+\-\s+/,sK=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,cK=/^(\d*)(.*)/;function uK(e,t){var n=e.split(oK);return n.length>1?n.some((function(e){return wK.contains(e,t)})):function(e,t){var n=e.split(aK);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?rK(!1,'the "-" operator expects exactly 2 operands'):rK(!1)),1===n.length)return lK(n[0],t);var r=n[0],i=n[1];return gK(r)&&gK(i)||("production"!==process.env.NODE_ENV?rK(!1,'operands to the "-" operator must be simple (no modifiers)'):rK(!1)),lK(">="+r,t)&&lK("<="+i,t)}(e=n[0].trim(),t)}function lK(e,t){if(""===(e=e.trim()))return!0;var n=t.split(iK),r=dK(e),i=r.modifier,o=r.rangeComponents;switch(i){case"<":return fK(n,o);case"<=":return function(e,t){var n=bK(e,t);return-1===n||0===n}(n,o);case">=":return pK(n,o);case">":return function(e,t){return 1===bK(e,t)}(n,o);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);hK(o)&&(r[i]=o+1+"");return pK(e,n)&&fK(e,r)}(n,o);default:return function(e,t){return 0===bK(e,t)}(n,o)}}function fK(e,t){return-1===bK(e,t)}function pK(e,t){var n=bK(e,t);return 1===n||0===n}function dK(e){var t=e.split(iK),n=t[0].match(sK);return n||("production"!==process.env.NODE_ENV?rK(!1,"expected regex to match but it did not"):rK(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function hK(e){return!isNaN(e)&&isFinite(e)}function gK(e){return!dK(e).modifier}function yK(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function vK(e,t){var n=e.match(cK)[1],r=t.match(cK)[1],i=parseInt(n,10),o=parseInt(r,10);return hK(i)&&hK(o)&&i!==o?mK(i,o):mK(e,t)}function mK(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?rK(!1,'"a" and "b" must be of the same type'):rK(!1)),e>t?1:e<t?-1:0}function bK(e,t){for(var n=function(e,t){yK(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 i=n;i<e.length;i++)e[i]="0"}return yK(t,e.length),[e,t]}(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=vK(r[o],i[o]);if(a)return a}return 0}var wK={contains:function(e,t){return uK(e.trim(),t.trim())}},xK=wK,_K=Object.prototype.hasOwnProperty;var CK=function(e,t,n){if(!e)return null;var r={};for(var i in e)_K.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r};var OK=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},SK=nK,kK=xK;function EK(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,kK.contains(i,t))}function AK(e){return"Windows"===SK.platformName?e.replace(/^\s*NT/,""):e}var TK=CK({isBrowser:function(e){return EK(SK.browserName,SK.browserFullVersion,e)},isBrowserArchitecture:function(e){return EK(SK.browserArchitecture,null,e)},isDevice:function(e){return EK(SK.deviceName,null,e)},isEngine:function(e){return EK(SK.engineName,SK.engineVersion,e)},isPlatform:function(e){return EK(SK.platformName,SK.platformFullVersion,e,AK)},isPlatformArchitecture:function(e){return EK(SK.platformArchitecture,null,e)}},OK);var jK=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var MK=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},PK=MK;var DK=function e(t){if(PK(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<n.childNodes.length;i++){var o=e(n.childNodes[i]);if(o)return o}}return null},IK=jK,RK=DK;var LK=function(e){for(var t=e;t&&t!==IK(e).documentElement;){var n=RK(t);if(null!=n)return n;t=t.parentNode}return null};var NK=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function BK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FK=TK,zK=LK,UK=NK,HK=rz,VK=qH,KK=iF.exports.Map,WK={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},$K=FK.isBrowser("IE <= 11"),qK=function(){function e(e){var t=this;BK(this,"observer",void 0),BK(this,"container",void 0),BK(this,"mutations",void 0),BK(this,"onCharData",void 0),this.container=e,this.mutations=KK();var n=UK(e);n.MutationObserver&&!$K?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?HK(!1,"Expected target to be an instance of Node"):HK(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,WK):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=KK(),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 $K?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=VK(zK(e.target));this.mutations=this.mutations.set(n,t)}},e}(),GK={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-").reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join("-"),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},ZK={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},YK={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var XK=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},JK=rz,QK=XK;var eW=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?JK(!1,"Missing editorNode"):JK(!1)),QK(t.firstChild)||("production"!==process.env.NODE_ENV?JK(!1,"editorNode.firstChild is not an HTMLElement"):JK(!1)),t.firstChild},tW=GK,nW=qH;var rW=function(e,t,n,r,i){var o=nW(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),o;var a=tW.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=tW.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()),o;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+i:null,m=o.getAnchorKey()===s&&o.getAnchorOffset()===y&&o.getFocusKey()===f&&o.getFocusOffset()===v;if(m)return o;var b=!1;if(s===f){var w=u.get("end"),x=d.get("end");b=g===h&&x===w?i<n:g<h}else{var _=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();b=_===f}return o.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:b})},iW=LK,oW=DK,aW=rW,sW=rz,cW=MK,uW=qH;function lW(e,t,n){var r=t,i=iW(r);(null!=i||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?sW(!1,"Unknown node in selection range."):sW(!1)),e===r)&&(r=r.firstChild,cW(r)||("production"!==process.env.NODE_ENV?sW(!1,"Invalid DraftEditorContents node."):sW(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?sW(!1,"Invalid DraftEditorContents structure."):sW(!1)),n>0&&(n=r.childNodes.length));if(0===n){var o=null;if(null!=i)o=i;else{var a=function(e){for(;e.firstChild&&(cW(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||oW(e.firstChild));)e=e.firstChild;return e}(r);o=uW(oW(a))}return{key:o,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(oW(s)){var l=function(e){for(;e.lastChild&&(cW(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||oW(e.lastChild));)e=e.lastChild;return e}(s);c=uW(oW(l)),u=fW(l)}else c=uW(i),u=fW(s);return{key:c,offset:u}}function fW(e){var t=e.textContent;return"\n"===t?0:t.length}var pW=function(e,t,n,r,i,o){var a=n.nodeType===Node.TEXT_NODE,s=i.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:aW(e,uW(iW(n)),r,uW(iW(i)),o),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:uW(iW(n)),offset:r},u=lW(t,i,o)):s?(u={key:uW(iW(i)),offset:o},c=lW(t,n,r)):(c=lW(t,n,r),u=lW(t,i,o),n===i&&r===o&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:aW(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},dW=pW;var hW=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,i=n.anchorOffset,o=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==o?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:dW(e,t,r,i,o,a)},gW=YK,yW=yV,vW=eW,mW=hW;var bW=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();gW.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=mW(n,vW(e)),i=r.selectionState;i!==n.getSelection()&&(n=r.needsRecovery?yW.forceSelection(n,i):yW.acceptSelection(n,i),e.update(n))}};var wW={notEmptyKey:function(e){return null!=e&&""!=e}},xW=wW.notEmptyKey;function _W(e,t){return xW(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var CW=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:_W(e.getEntityMap(),n):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return n=a===s.getLength()?null:s.getEntityAt(a),_W(e.getEntityMap(),n)},OW=qK,SW=CU,kW=GK,EW=yV,AW=ZK,TW=bW,jW=eW,MW=hW,PW=CW,DW=qH,IW=TK.isBrowser("IE"),RW=!1,LW=!1,NW=null;var BW,FW,zW={onCompositionStart:function(e){LW=!0,function(e){NW||(NW=new OW(jW(e))).start()}(e)},onCompositionEnd:function(e){RW=!1,LW=!1,setTimeout((function(){RW||zW.resolveComposition(e)}),20)},onSelect:TW,onKeyDown:function(e,t){if(!LW)return zW.resolveComposition(e),void e._onKeyDown(t);t.which!==AW.RIGHT&&t.which!==AW.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===AW.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!LW){var t=DW(NW).stopAndFlushMutations();NW=null,RW=!0;var n=EW.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var i=kW.decode(t),o=i.blockKey,a=i.decoratorKey,s=i.leafKey,c=n.getBlockTree(o).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:o,focusKey:o,anchorOffset:u,focusOffset:l,isBackward:!1}),p=PW(r,f),d=r.getBlockForKey(o).getInlineStyleAt(u);r=SW.replaceText(r,f,e,d,p),n=EW.set(n,{currentContent:r})}));var i=MW(n,jW(e)).selectionState;e.restoreEditorDOM();var o=IW?EW.forceSelection(n,i):EW.acceptSelection(n,i);e.update(EW.push(o,r,"insert-characters"))}else e.update(n)}}},UW=zW;function HW(){if(FW)return BW;FW=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}var n=GK,r=i,o=zH,a=TH,s=function(e){var i,s;function c(){return e.apply(this,arguments)||this}return s=e,(i=c).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s,c.prototype.render=function(){var e=this.props,i=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=i.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=n.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(o.getDirection(b),f);return r.createElement(y,t({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:i.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(r.Component);return BW=s}function VW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WW=i,$W=rz,qW=MK,GW=TK.isBrowser("IE <= 11");var ZW=function(e){var t,n;function r(t){var n;return KW(VW(n=e.call(this,t)||this),"_forceFlag",void 0),KW(VW(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 i=r.prototype;return i.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;qW(t)||("production"!==process.env.NODE_ENV?$W(!1,"node is not an Element"):$W(!1));var r=t;return n?!function(e){return GW?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},i.componentDidMount=function(){this._forceFlag=!this._forceFlag},i.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},i.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},GW?WW.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):WW.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return GW?WW.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):WW.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):WW.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(WW.Component),YW=ZW,XW=MK;var JW=function(e){return!(!e||!e.ownerDocument)&&(XW(e)&&"BR"===e.nodeName)};var QW=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))},e$=QW;var t$=function(e){return e$(e)&&3==e.nodeType},n$=t$;var r$=function e(t,n){return!(!t||!n)&&(t===n||!n$(t)&&(n$(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var i$=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}},o$=YK,a$=r$,s$=i$,c$=jK,u$=rz,l$=MK,f$=TK.isBrowser("IE");function p$(e,t){if(!e)return"[empty]";var n=d$(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l$(n)||("production"!==process.env.NODE_ENV?u$(!1,"Node must be an Element if it is not a text node."):u$(!1)),n.outerHTML)}function d$(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return c$(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var o=e.childNodes,a=0;a<o.length;a++)i.appendChild(d$(o[a],t));return i}function h$(e,t){for(var n=e,r=n;n;){if(l$(n)&&r.hasAttribute("contenteditable"))return p$(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function g$(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function y$(e,t,n,r){var i=s$();if(e.extend&&null!=t&&a$(i,t)){n>g$(t)&&o$.logSelectionStateFailure({anonymizedDom:h$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var o=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o$.logSelectionStateFailure({anonymizedDom:h$(t,(function(t){var n=[];return t===i&&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:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:o,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 v$(e,t,n,r){var i=c$(t).createRange();if(n>g$(t)&&o$.logSelectionStateFailure({anonymizedDom:h$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),i.setStart(t,n),f$)try{e.addRange(i)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(i)}var m$=function(e,t,n,r,i){var o=c$(t);if(a$(o.documentElement,t)){var a=o.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&&i>=c,g=u===n&&r<=l&&i>=l;if(h&&g)return a.removeAllRanges(),v$(a,t,c-r,e),void y$(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),v$(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),v$(a,t,c-r,e),y$(a,y,v,e)}}else h&&(a.removeAllRanges(),v$(a,t,c-r,e)),g&&y$(a,t,l-r,e)}},b$=sp;function w$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _$,C$,O$=YW,S$=i,k$=rz,E$=JW,A$=m$,T$=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return x$(w$(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 i=r.prototype;return i._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,i=t.text,o=n.getKey(),a=r+i.length;if(e.hasEdgeWithin(o,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?k$(!1,"Missing node"):k$(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?k$(!1,"Missing child"):k$(!1)),u.nodeType===Node.TEXT_NODE?c=u:E$(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?k$(!1,"Missing targetNode"):k$(!1)),A$(e,c,o,r,a)}}},i.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?k$(!1,"Missing leafNode"):k$(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},i.componentDidUpdate=function(){this._setSelection()},i.componentDidMount=function(){this._setSelection()},i.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,i=r.customStyleMap,o=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=i[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),b$(e,r,n)}),{});if(o){var u=o(s,t);c=b$(c,u)}return S$.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},S$.createElement(O$,null,n))},r}(S$.Component),j$=T$;function M$(){if(C$)return _$;C$=1;var e=HW(),t=j$,n=GK,r=i,o=WV;iF.exports.List;var a=function(i){var a,s;function c(){return i.apply(this,arguments)||this}return s=i,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var i=this.props,a=i.block,s=i.contentState,c=i.customStyleFn,u=i.customStyleMap,l=i.decorator,f=i.direction,p=i.forceSelection,d=i.hasSelection,h=i.selection,g=i.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(i,o){var g=i.get("decoratorKey"),b=i.get("leaves"),w=b.size-1,x=b.map((function(e,i){var s=n.encode(y,o,i),l=e.get("start"),f=e.get("end");return r.createElement(t,{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&&i===w})})).toArray();return g&&l?r.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:i,text:v,key:o}):x})).toArray();return r.createElement("div",{"data-offset-key":n.encode(y,0,0),className:o({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(r.Component);return _$=a}function P$(e,t){return!!t&&(e===t.documentElement||e===t.body)}var D$={getTop:function(e){var t=e.ownerDocument;return P$(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;P$(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return P$(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;P$(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},I$=/-(.)/g;var R$=function(e){return e.replace(I$,(function(e,t){return t.toUpperCase()}))},L$=/([A-Z])/g;var N$=function(e){return e.replace(L$,"-$1").toLowerCase()},B$=R$,F$=N$;function z$(e){return null==e?e:String(e)}var U$=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return z$(n.getPropertyValue(F$(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return z$(n.getPropertyValue(F$(t)));if("display"===t)return"none"}return e.currentStyle?z$("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[B$(t)]):z$(e.style&&e.style[B$(t)])};function H$(e,t){var n=V$.get(e,t);return"auto"===n||"scroll"===n}var V$={get:U$,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(H$(e,"overflow")||H$(e,"overflowY")||H$(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},K$=V$,W$=r$;var $$=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!W$(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 q$=function(e){var t=$$(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},G$="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Z$=function(e){return(e=e||document).scrollingElement?e.scrollingElement:G$||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Y$=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 X$=function(e){var t=Z$(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Y$(e),r=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-r.clientWidth,o=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,o)),n};function J$(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function Q$(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function eq(){return{width:window.innerWidth||J$(),height:window.innerHeight||Q$()}}eq.withoutScrollbars=function(){return{width:J$(),height:Q$()}};var tq,nq,rq,iq,oq=eq;function aq(){if(nq)return tq;nq=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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 a=M$(),s=GK,c=i,u=D$,l=K$,f=q$,p=X$,d=oq,h=rz,g=XK;iF.exports.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,i,o,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=i(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=r({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var i,w;function x(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o(n(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",c.createRef()),t}w=e,(i=x).prototype=Object.create(w.prototype),i.prototype.constructor=i,i.__proto__=w;var _=x.prototype;return _.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,o=!n.getChildKeys().isEmpty(),a=n!==e.block||i!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return o||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,i=l.getScrollParent(n),o=p(i);if(i===window){var a=f(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(o.x,o.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-(i.offsetHeight+o.y))>0&&u.setTop(i,u.getTop(i)+r+10)}}}},_.render=function(){var e=this,n=this.props,i=n.block,o=n.blockRenderMap,u=n.blockRendererFn,l=n.blockStyleFn,f=n.contentState,p=n.decorator,d=n.editorKey,h=n.editorState,g=n.customStyleFn,w=n.customStyleMap,_=n.direction,C=n.forceSelection,O=n.selection,S=n.tree,k=null;i.children.size&&(k=i.children.reduce((function(t,n){var i=s.encode(n,0,0),a=f.getBlockForKey(n),p=m(a,u),g=p.CustomComponent||x,y=v(a,o),w=y.Element,_=y.wrapperTemplate,C=b(a,d,i,l,p,null),O=r({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:i,block:a});return t.push(c.createElement(w,C,c.createElement(g,O))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(a,f)||function(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){o=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(o)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=i.getKey(),A=s.encode(E,0,0),T=m(i,u),j=T.CustomComponent,M=null!=j?c.createElement(j,t({},this.props,{tree:h.getBlockTree(E),blockProps:T.customProps,offsetKey:A,block:i})):c.createElement(a,{block:i,children:k,contentState:f,customStyleFn:g,customStyleMap:w,decorator:p,direction:_,forceSelection:C,hasSelection:y(O,E),selection:O,tree:S});if(i.getParentKey())return M;var P=v(i,o).Element,D=b(i,d,A,l,T,this.wrapperRef);return c.createElement(P,D,M)},x}(c.Component);return tq=w}var sq=sp;function cq(){return cq=sq||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},cq.apply(this,arguments)}function uq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fq,pq,dq,hq,gq=j$,yq=GK,vq=i,mq=D$,bq=K$,wq=zH,xq=TH,_q=WV,Cq=q$,Oq=X$,Sq=oq,kq=rz,Eq=XK,Aq=qH,Tq=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},jq=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return lq(uq(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 i=r.prototype;return i.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||Tq(e.selection,e.block.getKey())&&e.forceSelection},i.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,i=bq.getScrollParent(n),o=Oq(i);if(i===window){var a=Cq(n);(r=a.y+a.height-Sq().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{Eq(n)||("production"!==process.env.NODE_ENV?kq(!1,"blockNode is not an HTMLElement"):kq(!1)),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&mq.setTop(i,mq.getTop(i)+r+10)}}}}},i._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),i=this.props.tree.size-1,o=Tq(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=yq.encode(n,s,c),f=a.get("start"),p=a.get("end");return vq.createElement(gq,{key:l,offsetKey:l,block:t,start:f,selection:o?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===i&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=Aq(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=yq.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=xq.getHTMLDirIfDifferent(wq.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 vq.createElement(d,cq({},h,x,{key:g}),l)})).toArray()},i.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=_q({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return vq.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},r}(vq.Component),Mq=jq;var Pq=QU("draft_tree_data_support")?function(){if(iq)return rq;iq=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}var n=aq(),r=GK,o=i,a=qH,s=function(e){var i,s;function c(){return e.apply(this,arguments)||this}s=e,(i=c).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__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(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return i!==o||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,i=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:i,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=(i.get(w.getType())||i.get("unstyled")).wrapper;b.push({block:o.createElement(n,t({key:x},_)),wrapperTemplate:C,key:x,offsetKey:r.encode(x,0,0)});var O=w.getNextSiblingKey();w=O?h.getBlockForKey(O):null}for(var S=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var A=[];do{A.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var T=o.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},A);S.push(T)}else S.push(E.block),k++}return o.createElement("div",{"data-contents":"true"},S)},c}(o.Component);return rq=s}():function(){if(hq)return dq;hq=1;var e=sp;function t(){return t=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},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Mq,a=GK,s=i,c=WV,u=(pq||(pq=1,fq=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var i=arguments[r];i&&(t=(t?t+" ":"")+i)}return t}),fq),l=qH,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 r,i;function c(){return e.apply(this,arguments)||this}i=e,(r=c).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;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(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return i!==o||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,r=e.blockRenderMap,i=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(),O=[],S=null,k=null,E=0;E<C.length;E++){var A=C[E],T=A.getKey(),j=A.getType(),M=i(A),P=void 0,D=void 0,I=void 0;M&&(P=M.component,D=M.props,I=M.editable);var R=v||_.get(T),L=a.encode(T,0,0),N={contentState:m,block:A,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:R,forceSelection:w,offsetKey:L,preventScroll:y,selection:b,tree:h.getBlockTree(T)},B=r.get(j)||r.get("unstyled"),F=B.wrapper,z=B.element||r.get("unstyled").element,U=A.getDepth(),H="";if(c&&(H=c(A)),"li"===z)H=u(H,f(j,U,k!==F||null===S||U>S,R));var V=P||o,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":L,key:T};void 0!==I&&(K=n({},K,{contentEditable:I,suppressContentEditableWarning:!0}));var W=s.createElement(z,K,s.createElement(V,t({},N,{key:T})));O.push({block:W,wrapperTemplate:F,key:T,offsetKey:L}),S=F?A.getDepth():null,k=F}for(var $=[],q=0;q<O.length;){var G=O[q];if(G.wrapperTemplate){var Z=[];do{Z.push(O[q].block),q++}while(q<O.length&&O[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 dq=p}(),Dq={isImage:function(e){return"image"===Iq(e)[0]},isJpeg:function(e){var t=Iq(e);return Dq.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function Iq(e){return e.split("/")}var Rq=Dq,Lq=rz;var Nq=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?Lq(!1,"toArray: Array-like object expected"):Lq(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?Lq(!1,"toArray: Object needs a length property"):Lq(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?Lq(!1,"toArray: Object should have keys for indices"):Lq(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?Lq(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):Lq(!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 Bq(e){return function(){return e}}var Fq=function(){};Fq.thatReturns=Bq,Fq.thatReturnsFalse=Bq(!1),Fq.thatReturnsTrue=Bq(!0),Fq.thatReturnsNull=Bq(null),Fq.thatReturnsThis=function(){return this},Fq.thatReturnsArgument=function(e){return e};var zq=Fq,Uq=Rq,Hq=Nq,Vq=zq,Kq=new RegExp("\r\n","g"),Wq={"text/rtf":1,"text/html":1};function $q(e){if("file"==e.kind)return e.getAsFile()}var qq=function(){function e(e){this.data=e,this.types=e.types?Hq(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return Wq[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(Kq,"\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(!Uq.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($q).filter(Vq.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),Gq=qq,Zq=rz,Yq=/\.textClipping$/,Xq={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Jq=function(e,t){var n=0,r=[];e.forEach((function(i){!function(e,t){if(!Ot.FileReader||e.type&&!(e.type in Xq))return void t("");if(""===e.type){var n="";return Yq.test(e.name)&&(n=e.name.replace(Yq,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Zq(!1,'We should be calling "FileReader.readAsText" which returns a string'):Zq(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(i,(function(i){n++,i&&r.push(i.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Qq=function(e){return"handled"===e||!0===e},eG=Gq,tG=CU,nG=yV,rG=LK,iG=jK,oG=Jq,aG=rW,sG=NK,cG=Qq,uG=qH;function lG(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:sG(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function fG(e,t,n){var r=tG.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return nG.push(e,r,"insert-fragment")}var pG={onDragEnd:function(e){e.exitCurrentMode(),lG(e)},onDrop:function(e,t){var n=new eG(t.nativeEvent.dataTransfer),r=e._latestEditorState,i=function(e,t){var n=null,r=null,i=iG(e.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=uG(n),r=uG(r);var a=uG(rG(n));return aG(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=i){var o=n.getFiles();if(o.length>0){if(e.props.handleDroppedFiles&&cG(e.props.handleDroppedFiles(i,o)))return;oG(o,(function(t){t&&e.update(fG(r,i,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&cG(e.props.handleDrop(i,n,a))||(e._internalDrag?e.update(function(e,t){var n=tG.moveText(e.getCurrentContent(),e.getSelection(),t);return nG.push(e,n,"insert-fragment")}(r,i)):e.update(fG(r,i,n.getText()))),lG(e)}}}};var dG=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some((function(e){return i===e.get("start")?(o=!0,!0):i<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return i===t&&(o=!0,!0)}))})),o};!function(e,t){if(!e.setImmediate){var n,r,i,o,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?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){i.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)}:(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(o+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 i={callback:e,args:t};return c[s]=i,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?Ot:self);var hG=Ot.setImmediate,gG=CU,yG=yV,vG=CW,mG=Qq,bG=dG,wG=qH,xG=hG,_G=TK.isBrowser("Firefox");function CG(e,t,n,r,i){var o=gG.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return yG.push(e,o,"insert-characters",i)}var OG=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&&mG(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),o=i.getStartOffset(),a=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(CG(n,r,n.getCurrentInlineStyle(),vG(n.getCurrentContent(),n.getSelection()),!0));var s,c=CG(n,r,n.getCurrentInlineStyle(),vG(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=bG(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],i=t.get("start"),a=i+(i>=o?r.length:0),s=t.get("end"),c=s+(s>=o?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-i}))}if(u||(s=r,u=_G&&("'"==s||"/"==s)),u||(u=wG(c.getDirectionMap()).get(a)!==wG(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=yG.set(c,{forceSelection:!0}),void e.update(c);c=yG.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,xG((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},SG=yV,kG=r$,EG=i$;var AG=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&EG(n)===n.body){var r=n.defaultView.getSelection(),i=e.editor;1===r.rangeCount&&kG(i,r.anchorNode)&&kG(i,r.focusNode)&&r.removeAllRanges()}var o=e._latestEditorState,a=o.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(SG.acceptSelection(o,s))}},TG=yV;var jG=function(e,t){e.setMode("composite"),e.update(TG.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},MG=Sz;var PG=function(e){var t=e.getSelection();return t.isCollapsed()?null:MG(e.getCurrentContent(),t)},DG=PG;var IG=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(DG(e._latestEditorState))};var RG=CU,LG=yV,NG=K$,BG=PG,FG=X$,zG=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 UG=function(e,t){var n,r=e._latestEditorState,i=r.getSelection(),o=t.target;if(i.isCollapsed())t.preventDefault();else{if(zG(o)){var a=o;n=FG(NG.getScrollParent(a))}var s=BG(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=RG.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return LG.push(e,t,"remove-range")}(r))}),0)}};var HG=function(e,t){e.setMode("drag"),t.preventDefault()};var VG=function(e){e._internalDrag=!0,e.setMode("drag")},KG=yV,WG=TK;var $G=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var i=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),WG.isBrowser("Chrome < 60.0.3081.0")?e.update(KG.forceSelection(n,i)):e.update(KG.acceptSelection(n,i))}},qG=rz,GG=/[\uD800-\uDFFF]/;function ZG(e){return 55296<=e&&e<=57343}function YG(e){return GG.test(e)}function XG(e,t){return 1+ZG(e.charCodeAt(t))}function JG(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!YG(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var i=0;if(t>0){for(;t>0&&i<r;t--)i+=XG(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=XG(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=XG(e,o);return e.substring(i,o)}var QG={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=XG(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:XG,hasSurrogateUnit:YG,isCodeUnitInSurrogateRange:ZG,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?qG(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):qG(!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(!YG(e))return e.length;for(var t=0,n=0;n<e.length;n+=XG(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 JG(e,t=t<n?t:n,r)},substr:JG},eZ=QG,tZ=zq;function nZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}}var rZ="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),i=2;i<n;i++)r[i-2]=arguments[i];nZ.apply(void 0,[t].concat(r))}}:tZ,iZ=rZ,oZ=iZ;var aZ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&oZ(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var c=r.getKeyBefore(i);if(null==c)a=i;else a=c,s=r.getBlockForKey(c).getText().length}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},sZ=CU,cZ=QU("draft_tree_data_support");var uZ=function(e,t,n){var r=e.getSelection(),i=e.getCurrentContent(),o=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=i.getBlockForKey(a);if(cZ&&"forward"===n&&a!==s)return i;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i;if(cZ)if(r.getAnchorOffset()===i.getBlockForKey(a).getLength()){var u=i.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return i}}else if(e.isSelectionAtStartOfContent())return i;if((o=t(e))===r)return i}return sZ.removeRange(i,o,n)},lZ=yV,fZ=eZ,pZ=aZ,dZ=uZ;var hZ=function(e){var t=dZ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),o=n.getBlockForKey(r).getText()[i-1];return pZ(e,o?fZ.getUTF16Length(o,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return lZ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},gZ=CU,yZ=GK,vZ=yV,mZ=wW.notEmptyKey,bZ=LK,wZ=hZ,xZ=qH,_Z=TK.isEngine("Gecko");var CZ=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,i=n.isCollapsed,o=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!o){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=xZ(bZ(r)),f=yZ.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,O,S=u.getSelection(),k=S.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),A=mZ(E)?m.getEntity(E):null,T="MUTABLE"===(null!=A?A.getMutability():null),j=T?"spellcheck-change":"apply-entity",M=gZ.replaceText(m,k,c,b.getInlineStyleAt(y),T?b.getEntityAt(y):null);if(_Z)x=n.anchorOffset,_=n.focusOffset,O=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=O;else{var P=c.length-w.length;C=S.getStartOffset(),O=S.getEndOffset(),x=i?O+P:C,_=O+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(vZ.push(u,D,j))}else{var I=t.nativeEvent.inputType;if(I){var R=function(e,t){return"deleteContentBackward"===e?wZ(t):t}(I,u);if(R!==u)return e.restoreEditorDOM(),void e.update(R)}}}},OZ=ZK;var SZ=function(e){return e.which===OZ.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},kZ=TK.isPlatform("Mac OS X"),EZ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return kZ&&e.altKey},usesMacOSHeuristics:function(){return kZ},hasCommandModifier:function(e){return kZ?!!e.metaKey&&!e.altKey:EZ.isCtrlKeyCommand(e)},isSoftNewlineEvent:SZ},AZ=EZ,TZ=CU,jZ=yV,MZ=Sz,PZ=qH,DZ=null,IZ={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var i=n.getAnchorKey(),o=t.getBlockForKey(i).getLength();if(o===n.getAnchorOffset()){var a=t.getKeyAfter(i);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",o)}else r=n;r=PZ(r),DZ=MZ(t,r);var s=TZ.removeRange(t,r,"forward");return s===t?e:jZ.push(e,s,"remove-range")},paste:function(e){if(!DZ)return e;var t=TZ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),DZ);return jZ.push(e,t,"insert-fragment")}},RZ=rz;var LZ=TK.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o,a=Array.from(t.getClientRects());if(n.push(a),i)return n.reverse(),(o=[]).concat.apply(o,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?RZ(!1,"Found an unexpected detached subtree when getting range client rects."):RZ(!1)}:function(e){return Array.from(e.getClientRects())},NZ=LZ,BZ=eZ,FZ=jK,zZ=NZ,UZ=rz;function HZ(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-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),i=Math.max(i,s.top),o=Math.max(o,s.bottom))}return i<=r&&i-n<t&&o-r<t}function VZ(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 KZ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?UZ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):UZ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=FZ(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 i=n.body;i||("production"!==process.env.NODE_ENV?UZ(!1,"Missing document.body"):UZ(!1)),i.appendChild(r);var o=r.getBoundingClientRect();return i.removeChild(r),o.height}(t),r=e.endContainer,i=e.endOffset;for(e.setStart(e.startContainer,0);HZ(zZ(e),n)&&(r=e.startContainer,i=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?UZ(!1,"Found unexpected detached subtree when traversing."):UZ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var o=r,a=i-1;;){for(var s=o.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&BZ.isSurrogatePair(s,c-1))){if(e.setStart(o,c),!HZ(zZ(e),n))break;r=o,i=c}if(-1===c||0===o.childNodes.length)break;a=VZ(o=o.childNodes[c])}return e.setStart(r,i),e},WZ=yV,$Z=KZ,qZ=pW,GZ=aZ,ZZ=uZ;var YZ=function(e,t){var n=ZZ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return GZ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=$Z(r),qZ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:WZ.push(e,n,"remove-range")},XZ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),JZ=new RegExp("^(?:"+XZ+")*(?:['‘’]|(?!"+XZ+").)*(?:(?!"+XZ+").)"),QZ=new RegExp("(?:(?!"+XZ+").)(?:['‘’]|(?!"+XZ+").)*(?:"+XZ+")*$");function eY(e,t){var n=t?QZ.exec(e):JZ.exec(e);return n?n[0]:e}var tY={getBackward:function(e){return eY(e,!0)},getForward:function(e){return eY(e,!1)}},nY=tY,rY=yV,iY=aZ,oY=uZ;var aY=iZ;var sY=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&aY(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,i=n.getStartKey(),o=n.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),r=0):r=o+t,n.merge({focusKey:s,focusOffset:r})},cY=tY,uY=yV,lY=sY,fY=uZ;var pY=CU,dY=yV;var hY=yV;var gY=yV;var yY=yV,vY=eZ,mY=sY,bY=uZ;var wY=CU,xY=yV,_Y=Sz;var CY=yV;var OY=CU,SY=yV,kY=ZK,EY=IZ,AY=TK,TY=Qq,jY=YZ,MY=function(e){var t=oY(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return iY(e,1);var r=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),o=nY.getBackward(i);return iY(e,o.length||1)}),"backward");return t===e.getCurrentContent()?e:rY.push(e,t,"remove-range")},PY=function(e){var t=fY(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(r).getText().slice(n),o=cY.getForward(i);return lY(e,o.length||1)}),"forward");return t===e.getCurrentContent()?e:uY.push(e,t,"remove-range")},DY=function(e){var t=pY.splitBlock(e.getCurrentContent(),e.getSelection());return dY.push(e,t,"split-block")},IY=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return hY.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},RY=function(e){var t=e.getSelection(),n=t.getStartKey();return gY.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},LY=hZ,NY=function(e){var t=bY(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),o=n.getBlockForKey(r).getText()[i];return mY(e,o?vY.getUTF16Length(o,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return yY.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},BY=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,i,o=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(o).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),i=t):i=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=_Y(a,r),u=wY.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=wY.replaceWithFragment(u,p,c),h=xY.push(e,d,"insert-fragment");return xY.acceptSelection(h,i)},FY=function(e,t,n){var r=CY.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(CY.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var i=r.getCurrentContent();n(CY.set(r,{nativelyRenderedContent:i}))}},zY=AZ.isOptionKeyCommand,UY=AY.isBrowser("Chrome");var HY=function(e,t){var n=t.which,r=e._latestEditorState;function i(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case kY.RETURN:if(t.preventDefault(),e.props.handleReturn&&TY(e.props.handleReturn(t,r)))return;break;case kY.ESC:if(t.preventDefault(),i("onEscape"))return;break;case kY.TAB:if(i("onTab"))return;break;case kY.UP:if(i("onUpArrow"))return;break;case kY.RIGHT:if(i("onRightArrow"))return;break;case kY.DOWN:if(i("onDownArrow"))return;break;case kY.LEFT:if(i("onLeftArrow"))return;break;case kY.SPACE:UY&&zY(t)&&t.preventDefault()}var o=e.props.keyBindingFn(t);if(null!=o&&""!==o)if("undo"!==o){if(t.preventDefault(),!e.props.handleKeyCommand||!TY(e.props.handleKeyCommand(o,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return SY.redo(t);case"delete":return NY(t);case"delete-word":return PY(t);case"backspace":return LY(t);case"backspace-word":return MY(t);case"backspace-to-start-of-line":return jY(t,n);case"split-block":return DY(t);case"transpose-characters":return BY(t);case"move-selection-to-start-of-block":return RY(t);case"move-selection-to-end-of-block":return IY(t);case"secondary-cut":return EY.cut(t);case"secondary-paste":return EY.paste(t);default:return t}}(o,r,t);a!==r&&e.update(a)}}else FY(t,r,e.update);else if(n===kY.SPACE&&UY&&zY(t)){var s=OY.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(SY.push(r,s,"insert-characters"))}};var VY=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}(),KY=VY,WY=rz,$Y=TK.isBrowser("IE <= 9");var qY=function(e){var t,n=null;return!$Y&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?WY(!1,"Missing doc.documentElement"):WY(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},GY=MK;var ZY=function(e){return!(!e||!e.ownerDocument)&&(GY(e)&&"A"===e.nodeName)},YY=MK;var XY,JY=function(e){return!(!e||!e.ownerDocument)&&(YY(e)&&"IMG"===e.nodeName)};function QY(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){eX(e,t,n[t])}))}return e}function eX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tX=yF,nX=MF,rX=$F,iX=GV,oX=YU,aX=KY,sX=WV,cX=dz,uX=qY,lX=QU,fX=iF.exports,pX=fX.List,dX=fX.Map,hX=fX.OrderedSet,gX=ZY,yX=JW,vX=XK,mX=JY,bX=lX("draft_tree_data_support"),wX=new RegExp("\r","g"),xX=new RegExp("\n","g"),_X=new RegExp("^\n","g"),CX=new RegExp(" ","g"),OX=new RegExp(" ?","g"),SX=new RegExp("​?","g"),kX=["bold","bolder","500","600","700","800","900"],EX=["light","lighter","normal","100","200","300","400"],AX=["className","href","rel","target","title"],TX=["alt","className","height","src","width"],jX=(eX(XY={},sX("public/DraftStyleDefault/depth0"),0),eX(XY,sX("public/DraftStyleDefault/depth1"),1),eX(XY,sX("public/DraftStyleDefault/depth2"),2),eX(XY,sX("public/DraftStyleDefault/depth3"),3),eX(XY,sX("public/DraftStyleDefault/depth4"),4),XY),MX=dX({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),PX=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)}))})),dX(t)},DX=function(e){if(vX(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},IX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(jX).some((function(n){e.classList.contains(n)&&(t=jX[n])})),t},RX=function(e){if(!gX(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 aX(t.href);return!0}catch(e){return!1}},LX=function(e){if(!mX(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},NX=function(e,t){if(!vX(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations((function(e){kX.indexOf(r)>=0?e.add("BOLD"):EX.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},BX=function(e){return"ul"===e||"ol"===e},FX=function(){function e(e,t){eX(this,"characterList",pX()),eX(this,"currentBlockType","unstyled"),eX(this,"currentDepth",0),eX(this,"currentEntity",null),eX(this,"currentText",""),eX(this,"wrapper",null),eX(this,"blockConfigs",[]),eX(this,"contentBlocks",[]),eX(this,"entityMap",oX),eX(this,"blockTypeMap",void 0),eX(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=pX(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=oX,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],hX())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(bX?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||cX(),n=QY({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:pX(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=pX(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.nodeName.toLowerCase();if("body"===o||BX(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;BX(o)&&(this.wrapper=o,BX(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(o);if(void 0===c)if("#text"!==o)if("br"!==o)if(LX(i))this._addImgNode(i,t);else if(RX(i))this._addAnchorNode(i,n,t);else{var u=t;MX.has(o)&&(u=u.add(MX.get(o))),u=NX(i,u);var l=DX(i);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),u))}else this._addBreakNode(i,t);else this._addTextNode(i,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(o,this.wrapper)||c[0]||"unstyled"),!bX&&vX(i)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=i;this.currentDepth=IX(d,this.currentDepth)}var h=cX(),g=this._toBlockConfigs(Array.from(i.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=tX.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=pX()):(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(_X,"")).replace(xX," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){yX(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(mX(e)){var n=e,r={};TX.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),lX("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(gX(e)){var r=e,i={};AX.forEach((function(e){var t=r.getAttribute(e);t&&(i[e]=t)})),i.url=new aX(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),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 i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=pX(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new rX(QY({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return pX(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,i=n.characterList;t.contentBlocks.push(new nX(QY({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=pX(),i=0;i<=t;i++){var o=e[i];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),zX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uX,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:iX,r=t(e=e.trim().replace(wX,"").replace(CX," ").replace(OX,"").replace(SX,""));if(!r)return null;var i=PX(n),o=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new FX(i,o).addDOMNode(r).getContentBlocks()};function UX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HX=MF,VX=$F,KX=zX,WX=dz,$X=qY,qX=QU,GX=iF.exports,ZX=tH,YX=GX.List,XX=GX.Repeat,JX=qX("draft_tree_data_support"),QX=JX?VX:HX,eJ={processHTML:function(e,t){return KX(e,$X,t)},processText:function(e,t,n){return e.reduce((function(e,r,i){r=ZX(r);var o=WX(),a={key:o,type:n,text:r,characterList:YX(XX(t,r.length))};if(JX&&0!==i){var s=i-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){UX(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:o})).getKey()})}return e.push(new QX(a)),e}),[])}};var tJ=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===o})).concat([[o,a.get(o)]]).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})},nJ=CU,rJ=yV,iJ=tJ,oJ=qH,aJ={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 aJ.toggleInlineStyle(e,"BOLD");case"italic":return aJ.toggleInlineStyle(e,"ITALIC");case"underline":return aJ.toggleInlineStyle(e,"UNDERLINE");case"code":return aJ.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return aJ.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return aJ.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=nJ.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=rJ.push(e,t,"insert-characters");return rJ.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(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var o=n.getBlockMap().delete(i.getKey()),a=n.merge({blockMap:o,selectionAfter:t});if(a!==n)return rJ.push(e,a,"remove-range")}var s=aJ.tryToRemoveBlockStyle(e);return s?rJ.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(),i=n.getBlockForKey(r).getLength();if(t.getStartOffset()<i)return null;var o=n.getBlockAfter(r);if(!o||"atomic"!==o.getType())return null;var a=t.merge({focusKey:o.getKey(),focusOffset:o.getLength()}),s=nJ.removeRange(n,a,"forward");return s!==n?rJ.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),i=r.getAnchorKey();if(i!==r.getFocusKey())return t;var o=t.getCurrentContent(),a=o.getBlockForKey(i),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=iJ(o,r,e.shiftKey?-1:1,n);return rJ.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),i=n.getEndKey(),o=e.getCurrentContent(),a=n;if(r!==i&&0===n.getEndOffset()){var s=oJ(o.getBlockBefore(i));i=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:i,focusOffset:s.getLength(),isBackward:!1})}var c=o.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==i})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=o.getBlockForKey(r).getType()===t?"unstyled":t;return rJ.push(e,nJ.setBlockType(o,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?aJ.toggleBlockType(e,"code-block"):aJ.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return rJ.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var i,o=e.getCurrentContent();return i=r.has(t)?nJ.removeInlineStyle(o,n,t):nJ.applyInlineStyle(o,n,t),rJ.push(e,i,"change-inline-style")},toggleLink:function(e,t,n){var r=nJ.applyEntity(e.getCurrentContent(),t,n);return rJ.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),i=e.getCurrentContent(),o=i.getBlockForKey(r).getType(),a=i.getBlockBefore(r);if("code-block"===o&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==o)return nJ.setBlockType(i,t,"unstyled")}return null}},sJ=aJ,cJ=/\r\n?|\n/g;var uJ=aF,lJ=yF,fJ=Gq,pJ=CU,dJ=eJ,hJ=yV,gJ=sJ,yJ=CW,vJ=Jq,mJ=Qq,bJ=function(e){return e.split(cJ)};function wJ(e,t,n){var r=pJ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return hJ.push(e,r.set("entityMap",n),"insert-fragment")}var xJ=TK,_J=OG,CJ=AG,OJ=jG,SJ=IG,kJ=UG,EJ=HG,AJ=VG,TJ=$G,jJ=CZ,MJ=HY,PJ=function(e,t){t.preventDefault();var n=new fJ(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),i=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&mJ(e.props.handlePastedFiles(r)))return;return void vJ(r,(function(t){if(t=t||i){var n=e._latestEditorState,r=bJ(t),o=lJ.create({style:n.getCurrentInlineStyle(),entity:yJ(n.getCurrentContent(),n.getSelection())}),a=gJ.getCurrentBlockType(n),s=dJ.processText(r,o,a),c=uJ.createFromArray(s),u=pJ.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(hJ.push(n,u,"insert-fragment"))}}))}}var o=[],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||!mJ(e.props.handlePastedText(a,s,c))){if(a&&(o=bJ(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===o.length&&1===f.size&&f.first().getText()===a)return void e.update(wJ(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]}))}(o,f))return void e.update(wJ(e._latestEditorState,f));if(s){var p=dJ.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=uJ.createFromArray(d);return void e.update(wJ(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(o.length){var y=lJ.create({style:c.getCurrentInlineStyle(),entity:yJ(c.getCurrentContent(),c.getSelection())}),v=gJ.getCurrentBlockType(c),m=dJ.processText(o,y,v),b=uJ.createFromArray(m);e.update(wJ(e._latestEditorState,b))}}},DJ=bW,IJ=xJ.isBrowser("Chrome"),RJ=xJ.isBrowser("Firefox"),LJ=IJ||RJ?DJ:function(e){},NJ={onBeforeInput:_J,onBlur:CJ,onCompositionStart:OJ,onCopy:SJ,onCut:kJ,onDragOver:EJ,onDragStart:AJ,onFocus:TJ,onInput:jJ,onKeyDown:MJ,onPaste:PJ,onSelect:DJ,onMouseUp:LJ,onKeyUp:LJ},BJ=E.unstable_flushControlled;var FJ=i,zJ=WV,UJ=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 i=r.prototype;return i.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},i.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=zJ({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return FJ.createElement("div",{className:t},FJ.createElement("div",{className:zJ("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(FJ.Component),HJ=UJ,VJ=AZ,KJ=ZK,WJ=TK,$J=WJ.isPlatform("Mac OS X"),qJ=$J&&WJ.isBrowser("Firefox < 29"),GJ=VJ.hasCommandModifier,ZJ=VJ.isCtrlKeyCommand;function YJ(e){return $J&&e.altKey||ZJ(e)}var XJ=function(e){switch(e.keyCode){case 66:return GJ(e)?"bold":null;case 68:return ZJ(e)?"delete":null;case 72:return ZJ(e)?"backspace":null;case 73:return GJ(e)?"italic":null;case 74:return GJ(e)?"code":null;case 75:return $J&&ZJ(e)?"secondary-cut":null;case 77:case 79:return ZJ(e)?"split-block":null;case 84:return $J&&ZJ(e)?"transpose-characters":null;case 85:return GJ(e)?"underline":null;case 87:return $J&&ZJ(e)?"backspace-word":null;case 89:return ZJ(e)?$J?"secondary-paste":"redo":null;case 90:return function(e){return GJ(e)?e.shiftKey?"redo":"undo":null}(e)||null;case KJ.RETURN:return"split-block";case KJ.DELETE:return function(e){return!$J&&e.shiftKey?null:YJ(e)?"delete-word":"delete"}(e);case KJ.BACKSPACE:return function(e){return GJ(e)&&$J?"backspace-to-start-of-line":YJ(e)?"backspace-word":"backspace"}(e);case KJ.LEFT:return qJ&&GJ(e)?"move-selection-to-start-of-block":null;case KJ.RIGHT:return qJ&&GJ(e)?"move-selection-to-end-of-block":null;default:return null}},JJ=sp;function QJ(){return QJ=JJ||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 eQ(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){nQ(e,t,n[t])}))}return e}function tQ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var iQ=GV,oQ=ZV,aQ=UW,sQ=Pq,cQ=pG,uQ=NJ,lQ=BJ,fQ=HJ,pQ=yV,dQ=i,hQ=D$,gQ=K$,yQ=WV,vQ=dz,mQ=XJ,bQ=X$,wQ=QU,xQ=rz,_Q=XK,CQ=qH,OQ=TK.isBrowser("IE"),SQ=!OQ,kQ={edit:uQ,composite:aQ,drag:cQ,cut:null,render:null},EQ=!1,AQ=function(e){function t(){return e.apply(this,arguments)||this}rQ(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}(dQ.Component),TQ=function(e){function t(t){var n;return nQ(tQ(n=e.call(this,t)||this),"_blockSelectEvents",void 0),nQ(tQ(n),"_clipboard",void 0),nQ(tQ(n),"_handler",void 0),nQ(tQ(n),"_dragCount",void 0),nQ(tQ(n),"_internalDrag",void 0),nQ(tQ(n),"_editorKey",void 0),nQ(tQ(n),"_placeholderAccessibilityID",void 0),nQ(tQ(n),"_latestEditorState",void 0),nQ(tQ(n),"_latestCommittedEditorState",void 0),nQ(tQ(n),"_pendingStateFromBeforeInput",void 0),nQ(tQ(n),"_onBeforeInput",void 0),nQ(tQ(n),"_onBlur",void 0),nQ(tQ(n),"_onCharacterData",void 0),nQ(tQ(n),"_onCompositionEnd",void 0),nQ(tQ(n),"_onCompositionStart",void 0),nQ(tQ(n),"_onCopy",void 0),nQ(tQ(n),"_onCut",void 0),nQ(tQ(n),"_onDragEnd",void 0),nQ(tQ(n),"_onDragOver",void 0),nQ(tQ(n),"_onDragStart",void 0),nQ(tQ(n),"_onDrop",void 0),nQ(tQ(n),"_onInput",void 0),nQ(tQ(n),"_onFocus",void 0),nQ(tQ(n),"_onKeyDown",void 0),nQ(tQ(n),"_onKeyPress",void 0),nQ(tQ(n),"_onKeyUp",void 0),nQ(tQ(n),"_onMouseDown",void 0),nQ(tQ(n),"_onMouseUp",void 0),nQ(tQ(n),"_onPaste",void 0),nQ(tQ(n),"_onSelect",void 0),nQ(tQ(n),"editor",void 0),nQ(tQ(n),"editorContainer",void 0),nQ(tQ(n),"focus",void 0),nQ(tQ(n),"blur",void 0),nQ(tQ(n),"setMode",void 0),nQ(tQ(n),"exitCurrentMode",void 0),nQ(tQ(n),"restoreEditorDOM",void 0),nQ(tQ(n),"setClipboard",void 0),nQ(tQ(n),"getClipboard",void 0),nQ(tQ(n),"getEditorKey",void 0),nQ(tQ(n),"update",void 0),nQ(tQ(n),"onDragEnter",void 0),nQ(tQ(n),"onDragLeave",void 0),nQ(tQ(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),nQ(tQ(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),i=n.editor;if(i){var o=gQ.getScrollParent(i),a=e||bQ(o),s=a.x,c=a.y;_Q(i)||("production"!==process.env.NODE_ENV?xQ(!1,"editorNode is not an HTMLElement"):xQ(!1)),i.focus(),o===window?window.scrollTo(s,c):hQ.setTop(o,c),r||n.update(pQ.forceSelection(t,t.getSelection()))}})),nQ(tQ(n),"blur",(function(){var e=n.editor;e&&(_Q(e)||("production"!==process.env.NODE_ENV?xQ(!1,"editorNode is not an HTMLElement"):xQ(!1)),e.blur())})),nQ(tQ(n),"setMode",(function(e){var t=n.props,r=t.onPaste,i=t.onCut,o=t.onCopy,a=eQ({},kQ.edit);r&&(a.onPaste=r),i&&(a.onCut=i),o&&(a.onCopy=o);var s=eQ({},kQ,{edit:a});n._handler=s[e]})),nQ(tQ(n),"exitCurrentMode",(function(){n.setMode("edit")})),nQ(tQ(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),nQ(tQ(n),"setClipboard",(function(e){n._clipboard=e})),nQ(tQ(n),"getClipboard",(function(){return n._clipboard})),nQ(tQ(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),nQ(tQ(n),"onDragEnter",(function(){n._dragCount++})),nQ(tQ(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||vQ(),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}rQ(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&&(lQ?lQ((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:CQ(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return dQ.createElement(fQ,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,i=e.customStyleFn,o=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=yQ({"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:eQ({},oQ,o),customStyleFn:i,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return dQ.createElement("div",{className:f},this._renderPlaceholder(),dQ.createElement("div",{className:yQ("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},dQ.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:yQ({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:SQ&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},dQ.createElement(AQ,{editor:this,editorState:a}),dQ.createElement(sQ,QJ({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!EQ&&wQ("draft_ods_enabled")&&(EQ=!0),this.setMode("edit"),OQ&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Ot.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(dQ.Component);nQ(TQ,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:iQ,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:mQ,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var jQ=TQ,MQ={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},PQ=MQ,DQ=eZ.strlen;var IQ=eZ,RQ=vF,LQ=function(e,t){return e===t},NQ=function(e){return!!e},BQ=[];var FQ=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=[],i=t.map((function(e){return e.has(n)})).toList();return RQ(i,LQ,NQ,(function(t,i){var o=e.getText();r.push({offset:IQ.strlen(o.slice(0,t)),length:IQ.strlen(o.slice(t,i)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(BQ,n.toJS())};function zQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UQ=MF,HQ=$F,VQ=MQ,KQ=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,i){var o=e.getText(),a=e.getEntityAt(r);n.push({offset:DQ(o.slice(0,r)),length:DQ(o.slice(r,i)),key:Number(t[PQ.stringify(a)])})})),n},WQ=FQ,$Q=rz,qQ=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:WQ(e),entityRanges:KQ(e,t),data:e.getData().toObject()}},GQ=function(e,t,n,r){if(e instanceof UQ)n.push(qQ(e,t));else{e instanceof HQ||("production"!==process.env.NODE_ENV?$Q(!1,"block is not a BlockNode"):$Q(!1));var i=e.getParentKey(),o=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){zQ(e,t,n[t])}))}return e}({},qQ(e,t),{children:[]});i?r[i].children.push(o):n.push(o)}},ZQ=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],i={},o={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),i=VQ.stringify(r);o[i]||(o[i]=r,n[i]="".concat(a),a++)})),GQ(e,n,r,i)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,i={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(VQ.unstringify(t));i[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:i}}(e,t),t};function YQ(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){XQ(e,t,n[t])}))}return e}function XQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JQ=dz,QQ=rz,e1=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},t1={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?QQ(!1,"Invalid raw state"):QQ(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||("production"!==process.env.NODE_ENV?QQ(!1,"Invalid tree raw block"):QQ(!1)),n=n.concat([].concat(i.reverse()))}}(t,(function(e){var t=YQ({},e);e1(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?YQ({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,YQ({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=e1(e),i=e.depth||0,o=YQ({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===i)t.push(o);else if(null==a||a.depth<i-1){var s={key:JQ(),text:"",depth:i-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===i?t.push(s):null!=a&&a.children.push(s),s.children.push(o)}else if(a.depth===i-1)a.children.push(o);else{for(;null!=a&&a.depth>=i;)n.shift(),a=n[0];i>0?a.children.push(o):t.push(o)}}else t.push(o)})),YQ({},e,{blocks:t})}},n1=iZ,r1={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&&n1(!0,"Tree is missing parent -> child pointer on %s",n),!1;var i=e.getChildKeys().map((function(e){return t.get(e)}));if(!i.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&n1(!0,"Tree is missing child -> parent pointer on %s",n),!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&n1(!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&&n1(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==o&&o===a?("production"!==process.env.NODE_ENV&&n1(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&n1(!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&&n1(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),i=[];null!=r;){var o=e.get(r),a=o.getChildKeys(),s=o.getNextSiblingKey();if(a.size>0){null!=s&&i.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&&n1(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&n1(!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)}},i1=r1,o1=yF,a1=iF.exports.List;var s1=function(e,t){var n=e.map((function(e,n){var r=t[n];return o1.create({style:e,entity:r})}));return a1(n)},c1=eZ.substr;var u1=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=c1(e,0,t.offset).length,i=r+c1(e,t.offset,t.length).length,o=r;o<i;o++)n[o]=t.key})),n},l1=eZ,f1=iF.exports.OrderedSet,p1=l1.substr,d1=f1();var h1=function(e,t){var n=Array(e.length).fill(d1);return t&&t.forEach((function(t){for(var r=p1(e,0,t.offset).length,i=r+p1(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++})),n};function g1(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 y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v1=MF,m1=$F,b1=CH,w1=YU,x1=t1,_1=i1,C1=JU,O1=s1,S1=u1,k1=h1,E1=dz,A1=iF.exports,T1=rz,j1=QU("draft_tree_data_support"),M1=A1.List,P1=A1.Map,D1=A1.OrderedMap,I1=function(e,t){var n=e.key,r=e.type,i=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||E1(),data:P1(i),characterList:R1(e,t)}},R1=function(e,t){var n=e.text,r=e.entityRanges,i=e.inlineStyleRanges,o=r||[];return O1(k1(n,i||[]),S1(n,o.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return g1({},e,{key:t[e.key]})}))))},L1=function(e){return g1({},e,{key:e.key||E1()})},N1=function(e,t,n){var r=t.map((function(e){return g1({},e,{parentRef:n})}));return e.concat(r.reverse())},B1=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=j1&&!n?x1.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!j1)return function(e,t){return D1(e.map((function(e){var n=new v1(I1(e,t));return[n.getKey(),n]})))}(n?x1.fromRawTreeStateToRawState(e).blocks:r,t);var i=function(e,t){return e.map(L1).reduce((function(n,r,i){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?T1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):T1(!1));var o=r.children.map(L1),a=new m1(g1({},I1(r,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:M1(o.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=N1([],o,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?T1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):T1(!1));break}var d=c.children.map(L1),h=new m1(g1({},I1(c,t),{parent:u.getKey(),children:M1(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=N1(s,d,h)}return n}),D1())}(r,t);return"production"!==process.env.NODE_ENV&&(_1.isValidTree(i)||("production"!==process.env.NODE_ENV?T1(!1,"Should be a valid tree"):T1(!1))),i},F1=NZ;var z1=function(e){var t=F1(e),n=0,r=0,i=0,o=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,i=a.bottom,o=a.left}else{var s=t[0];n=s.top,r=s.right,i=s.bottom,o=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),i=Math.max(i,u.bottom),o=Math.min(o,u.left))}}return{top:n,right:r,bottom:i,left:o,width:r-o,height:i-n}},U1=z1;var H1=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=U1(n),i=r.top,o=r.right,a=r.bottom,s=r.left;return 0===i&&0===o&&0===a&&0===s?null:r},V1={Editor:jQ,EditorBlock:Mq,EditorState:yV,CompositeDecorator:VV,Entity:YU,EntityInstance:zU,BlockMapBuilder:aF,CharacterMetadata:yF,ContentBlock:MF,ContentState:CH,RawDraftContentState:{},SelectionState:JU,AtomicBlockUtils:zV,KeyBindingUtil:AZ,Modifier:CU,RichUtils:sJ,DefaultDraftBlockRenderMap:GV,DefaultDraftInlineStyle:ZV,convertFromHTML:zX,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?T1(!1,"invalid RawDraftContentState"):T1(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],i=r.type,o=r.mutability,a=r.data;n[e]=w1.__create(i,o,a||{})})),n}(e),n=B1(e,t),r=n.isEmpty()?new C1:C1.createEmpty(n.first().getKey());return new b1({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:ZQ,genKey:dz,getDefaultKeyBinding:XJ,getVisibleSelectionRect:H1};const K1=de.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),W1=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},$1=new V1.CompositeDecorator([{strategy:(e,t,n)=>W1(e,t,n,"FOUND_FIELD"),component:({children:t})=>e(K1,{children:t})},{strategy:(e,t,n)=>W1(e,t,n,"NOT_FOUND"),component:({children:t})=>e(K1,Object.assign({error:!0},{children:t}))}]),q1=(e,t,n)=>{const r=cn.find(t,{id:e.id}),i=t.every((e=>!e.value)),o=t.some((e=>e.value));let a=!0,s="";r?i?a=!0:!n&&!o||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!i?(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}},G1=(e,t,n)=>{const r=((e,t,n)=>{const r={},i={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},o=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<o.length;e++){let a=o[e];if(a.startsWith("<<")){const o=a.replace(/<<|>>/g,""),s=cn.find(t||[],{id:o})||{id:o,label:""},{label:c,isValid:u}=q1(s,t||[],n);a=c,i.entityRanges.push({key:e,offset:i.text.length,length:a.length}),r[e]={type:u?"FOUND_FIELD":"NOT_FOUND",mutability:"IMMUTABLE",data:{id:o}}}i.text+=a}return V1.convertFromRaw({blocks:[i],entityMap:r})})(e,t,n);return V1.EditorState.createWithContent(r,$1)},Z1=(e,t=!0)=>{const n=e.getCurrentContent(),r=V1.convertToRaw(n);return t?(i=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let o=0;return n.forEach((({key:e,offset:n,length:a})=>{n>o&&r.push(t.substr(o,n-o));const s=cn.get(i,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),o=n+a})),r.push(t.substr(o)),r.join("")})).join(" "):r;var i},Y1=e=>{const t=Z1(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},X1=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),i=new V1.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return V1.EditorState.forceSelection(e,i)},J1=l(((n,r)=>{var{value:i,onChange:o,onEnterKey:a,onFocus:s,onBlur:c,mergeFields:l=[],placeholder:p="Text here...",width:g,height:y,maxHeight:v,borderless:m=!1,noPadding:b=!1,readOnly:w=!1,displayMergedValues:x=!1,color:_,overflow:C,clampLines:O,label:S,disabled:k,borderRadius:E,backgroundColor:A,fontSize:j,textOnly:M,margin:P,marginLeft:D,marginRight:I,marginTop:R,marginBottom:L}=n,N=T(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[B,F]=u((()=>G1(i,l,x))),{focused:z,handleFocus:U,handleBlur:H}=Ut(s,c),[V,K]=u(!1),W=f(null),$=f(),q=null!=v?v:y,G=q?q-(m?0:S?29:11):void 0,Z=e=>{F(e);const t=(e=>Y1(e).some((e=>"NOT_FOUND"===e.type)))(e);K(t);const n=Z1(e);o&&o(n,t)},Y=e=>{const t=((e,t,n,r)=>{const{id:i}=e,o=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=q1(e,t,r),u=c?"FOUND_FIELD":"NOT_FOUND",l=o.createEntity(u,"IMMUTABLE",{id:i}).getLastCreatedEntityKey(),f=V1.Modifier.insertText(o,a,s,void 0,l),p=V1.EditorState.push(n,f,"insert-characters");return V1.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,B,x);Z(t)},X=()=>{(null==W?void 0:W.current)&&W.current.focus();const e=X1(B);F(e)};d(r,(()=>({insertField:Y,focusAtEnd:X})));h((()=>{Z1(B)!==i&&(e=>{const t=B.getSelection(),n=G1(e,l,x),r=X1(n),i=t.getHasFocus()?r:n;Z(i)})(i)}),[i]),h((()=>{$.current=l}),[]),h((()=>{const{current:e}=$,t=cn.isEqual(e,l),n=Y1(B);if(!t&&n.length>0){$.current=l;const e=G1(i,l,x);Z(e)}}),[l]);return e(Q1,Object.assign({onClick:e=>{w||e.stopPropagation();B.getSelection().getHasFocus()||X()},width:g,height:y,editorMaxHeight:G,borderless:m||M,noPadding:b||M,readOnly:w,color:_,overflow:C,clampLines:O,filled:Ht(i),invalid:V,textOnly:M,borderRadius:E,backgroundColor:A,fontSize:j,margin:P,marginLeft:D,marginRight:I,marginTop:R,marginBottom:L,focused:z,disabled:k,hasLabel:!!S,hideEditor:!Ht(i)&&!!S&&!z},{children:t(Kt,Object.assign({readOnly:w},{children:[S&&e(Wt,Object.assign({filled:Ht(i),focused:z,disabled:k},{children:S})),e(V1.Editor,Object.assign({ref:W,editorState:B,onChange:Z,placeholder:p,readOnly:w,handleReturn:e=>{const t=V1.RichUtils.insertSoftNewline(B);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),i={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},o=V1.convertFromRaw({blocks:[i],entityMap:{}}),a=V1.EditorState.createWithContent(o,$1).getCurrentContent().getBlockMap(),s=V1.Modifier.replaceWithFragment(n,r,a);return V1.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:U,onBlur:H},N))]}))}))})),Q1=de(Vt)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:i,color:o})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:o||e.input.color.default,cursor:i?"inherit":"text","&:hover":{backgroundColor:i?e.input.background.default:void 0,borderBottom:i?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:i?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:i,clampLines:o,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:i||"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:o,overflow:o?"hidden":i||"auto",display:o?"-webkit-box":void 0,WebkitBoxOrient:o?"vertical":void 0,wordBreak:o?"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}}})),e0=de.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:i,template:o,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:i,gridTemplate:o,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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));e0.Item=de.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:i,columnEnd:o,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:i,gridColumnEnd:o,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));const t0=n=>{var{id:r,label:i,labelPosition:o,checked:a,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=n,d=T(n,["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 t(kB,Object.assign({htmlFor:r,labelRight:h,disabled:s},g,{children:[i&&e(AB,{children:i}),e(EB,Object.assign({id:r,type:"radio",checked:a,disabled:s},d)),e(xt,{name:"radio-button",marginLeft:i&&!h?8:0,marginRight:i&&h?8:0,pointer:!s})]}))},n0=n=>{var{id:r,label:i,labelPosition:o,checked:a,disabled:s,onChange:c,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:g}=n,y=T(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=u("toggle-off"),[b,w]=u(a||!1),x="right"===o,_={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:g};return h((()=>{m(b?"toggle-on":"toggle-off")}),[b]),h((()=>{w("boolean"==typeof a?a:b)}),[a,b]),t(kB,Object.assign({htmlFor:r,labelRight:x,disabled:s},_,{children:[i&&e(AB,{children:i}),e(EB,Object.assign({id:r,type:"checkbox",checked:b,disabled:s,onChange:()=>{const e=!b;w(e),c(e)}},y)),e(xt,{name:v,marginLeft:i&&!x?8:0,marginRight:i&&x?8:0,pointer:!s,size:40})]}))},r0=e=>{var{children:n,iconLeft:r,iconRight:i,disabled:o,pill:a}=e,s=T(e,["children","iconLeft","iconRight","disabled","pill"]);return t(i0,Object.assign({as:a?void 0:"label",disabled:o,rightIcon:!!i,pill:a},s,{children:[r&&qt(r,{marginRight:4,size:"small"}),n,i&&qt(i,{marginLeft:4,size:"small"})]}))},i0=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),o0=t=>{var{children:n,rows:r,columns:i,rowGap:o,columnGap:a,onSubmit:s}=t,c=T(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(a0,Object.assign({as:"form",rows:r,columns:i,rowGap:o,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},c,{children:n}))};o0.Group=t=>{var{children:n,rows:r,columns:i,rowGap:o,columnGap:a,disabled:s}=t,c=T(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(s0,Object.assign({rows:r,columns:i,rowGap:o,columnGap:a,disabled:s},c,{children:n}))},o0.Field=({children:t,inline:n,align:r,disabled:i})=>e(c0,Object.assign({inline:n,align:r,disabled:i},{children:t})),o0.Input=Gt,o0.Dropdown=gn,o0.Radio=t0,o0.Toggle=n0,o0.Checkbox=TB,o0.Label=r0;const a0=de(e0)({boxSizing:"border-box"}),s0=de(e0)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),c0=de.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"})),u0=({visible:n,close:r,images:i,startIndex:o,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[f,p]=u(o),d=rn(r,n,["#prev","#next","#prev *","#next *"]);h((()=>{p(o)}),[o]);const g=()=>p(f>0?f-1:i.length-1),y=()=>f<i.length-1?p(f+1):p(0),v=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),g();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),y();break;case"Escape":e.preventDefault(),r()}};return h((()=>(n&&window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v))),[n,f]),n?t(l0,Object.assign({opacity:l,prevNext:i.length>1},{children:[e(f0,Object.assign({onClick:r},{children:e(xt,{name:"close",size:25,color:"white"})})),i.length>1&&e(p0,Object.assign({id:"prev",onClick:g},{children:e(xt,{name:"chevron-left",size:35,color:"white"})})),e(d0,{ref:d,src:i[f],alt:a,maxWidth:s,maxHeight:c}),i.length>1&&e(p0,Object.assign({next:!0,id:"next",onClick:y},{children:e(xt,{name:"chevron-right",size:35,color:"white"})}))]})):null},l0=de.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}))),f0=de.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),p0=de.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%)`}}))),d0=de.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),h0=de.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"}))),g0=({vertical:t,width:n,height:r,padding:i,paddingTop:o,paddingBottom:a,paddingLeft:s,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(y0,Object.assign({vertical:t,width:n,height:r,padding:i,paddingTop:o,paddingBottom:a,paddingLeft:s,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?Lt(w).map((e=>e?c(e,{vertical:t,backgroundColor:b}):null)):null})),y0=de.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:i,paddingTop:o,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:o,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:i})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:i,borderRight:o,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:i?e:void 0,borderRight:o?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}))),v0=de.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:i,disabled:o,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:i?"4px solid transparent":void 0,borderLeftColor:i&&r?n.borderColor:void 0,borderBottom:i?void 0:"4px solid transparent",borderBottomColor:!i&&r?n.borderColor:void 0,cursor:o?"not-allowed":"pointer",fontSize:t.size.lg,padding:i?`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}))),m0=de.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),b0=de.div({marginLeft:"auto",marginRight:8});g0.Item=({vertical:t,selected:n,disabled:r,contentPosition:i,onClick:o,id:a,children:s,indent:c=1})=>e(v0,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:i,onClick:o,id:a,role:"menuitem",indent:c},{children:s})),g0.Group=({label:n,defaultOpen:r,vertical:o,selected:a,disabled:s,contentPosition:l,onClick:f,id:p,children:d,indent:h=1,backgroundColor:g})=>{const[y,v]=u(r||a),m=e=>Lt(e).map((e=>{if(i.isValidElement(e)){const t=e;return t.props.selected&&!y&&v(!0),Array.isArray(t.props.children)&&m(t.props.children),c(e,{vertical:o,indent:h+1,backgroundColor:g})}return null})),b=m(d),w=()=>v((e=>!e));return t(m0,Object.assign({backgroundColor:g},{children:[t(v0,Object.assign({vertical:o,selected:a||!1,disabled:s,contentPosition:l,onClick:e=>{f?(f(e),y||w()):w()},id:p,role:"menuitem",indent:h},{children:[n,e(b0,Object.assign({onClick:e=>{e.stopPropagation(),w()}},{children:e(xt,{name:y?"chevron-up":"chevron-down",pointer:!0})}))]})),y&&b]}))};const w0=({type:n,content:r,closeIcon:i,onClose:o,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=S(),{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}}})(n||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return t(C0,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:i},v,{children:[e(xt,{name:h,style:{marginRight:10},color:g}),e(O0,{children:r||p}),i&&e(xt,{name:"close",onClick:o,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},x0=de.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),_0=de.div((({theme:e})=>({fontWeight:e.font.weight.default})));w0.Header=x0,w0.Body=_0;const C0=de.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:i,marginLeft:o})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:i,marginLeft:o}))),O0=de.div({width:"100%"}),S0=({text:n,color:r,style:i})=>t(A0,{children:[e(E0,{}),e(k0,Object.assign({color:r,style:i},{children:n})),e(E0,{})]}),k0=de.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),E0=de.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),A0=de.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),T0=({children:n,rootSelector:r,visible:i,width:o,height:a,onClose:s,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:O,paddingLeft:S})=>{const k=rn(l?()=>null:s,i),A={padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S},T=Lt(n).map((e=>e?c(e,{inline:d}):null)),j=e(P0,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:t(j0,Object.assign({ref:k,width:o,height:a,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},A,{children:[T,u&&e(M0,Object.assign({inline:d},{children:e(xt,{name:"close",onClick:s,pointer:!0})}))]}))})),M=document.querySelector(r||"#root");return i&&M?E.createPortal(j,M):null};T0.Header=de.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),T0.Text=de.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),T0.Body=de.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),T0.Footer=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));const j0=de.div((({theme:e,width:t,height:n,backgroundColor:r,small:i})=>({display:"flex",flexDirection:i?"row":"column",alignItems:i?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:i?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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),M0=de.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),P0=de.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:i,bottom:o,right:a,left:s})=>({position:"absolute",top:i||(s||o||a?void 0:0),left:s||(i||o||a?void 0:0),bottom:o,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)"}))),D0=r=>{var{children:i,options:o,items:a,listLabel:s,listText:c,itemsTitle:l,maxItems:p,placeholder:d,width:g,filter:v,restrictInput:m,disabled:b,optionsParent:w,compact:x,backgroundColor:_,borderless:C,addItem:O,removeItem:k,onTextChange:A,autoFocus:j}=r,M=T(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[P,D]=u(j||!1),[I,R]=u(!1),[L,N]=u(""),{color:B,font:F,input:z}=S(),U=rn((()=>D(!1)),P,w?[w,`${w} *`]:void 0),H=f(null),V=x&&!!s,K=e=>{e&&O(e)},W=e=>{N(e),A&&A(e)};h((()=>{const{current:e}=H;e&&!P&&e.blur()}),[P]);nn(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:i}=e;if(!(n||r||i)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];k(t)}}),P&&!L,[a]);const $=o.filter((e=>!a.find((t=>t.id===e.id)))),q=y((()=>`multi-select-${vt()}`),[]),G=y((()=>`multi-select-list-${vt()}`),[]),Z=p?a.length>=p:void 0,Y=b||!P||Z,X=()=>{const n=t(N0,Object.assign({id:G,expanded:P,padTop:P&&a.length>0,labeled:!!s},{children:[c&&e(B0,Object.assign({expanded:P,labeled:!!s},{children:c})),i?i(P,!!b):a.map((t=>e(r0,Object.assign({pill:!0,iconRight:P&&!b?e(xt,{name:"close-circle",onClick:()=>k(t),pointer:!0}):void 0,disabled:b},{children:t.label}),t.id))),e(gn,Object.assign({},M,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:m,options:$,fontSize:F.size.md,placeholder:b||a.length>0?" ":d||"Search...",placeholderColor:z.color.placeholder,inputRef:H,onChange:K,onTextChange:W,onError:e=>R(e),disabled:Y,optionsParent:w?`#${G}`:`#${q}`,autoFocus:j}))]}));if(w){const e=document.querySelector(w);return e?E.createPortal(n,e):n}return n};return t(I0,Object.assign({width:g,ref:U,labeled:!!s,disabled:b,collapse:V,onClick:e=>{e.stopPropagation();const{current:t}=H;P||s||D(!0),null==t||t.focus()}},{children:[t(R0,Object.assign({collapse:V,id:q,expanded:P&&a.length>0,error:I,labeled:!!s,backgroundColor:_,borderless:C},{children:[s?e(L0,Object.assign({collapse:V},{children:s})):X(),t(F0,{children:[p&&e(U0,{children:t(n,b&&l?{children:[a.length," ",l]}:{children:[e(z0,Object.assign({error:a.length>=p},{children:a.length})),"/",p," ",l]})}),a.length>0&&e(xt,{name:P?"chevron-up":"chevron-down",color:B.brand,pointer:!0,onClick:e=>{e.stopPropagation(),D(!P)}})]})]})),s&&P&&X()]}))},I0=de.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),R0=de.div((({theme:e,expanded:t,error:n,labeled:r,collapse:i,backgroundColor:o,borderless:a})=>({display:"grid",gridTemplateColumns:i?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:o||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),L0=de.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),N0=de.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}:{})),B0=de.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}))),F0=de.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),z0=de.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),U0=de.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),H0=de.div((({theme:e,color:t,size:n,position:r,top:i,bottom:o,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:i,bottom:o,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})),V0=e=>e?+e:0,K0=n=>{var{onPageNav:r,page:i,totalPages:o,maxVisibleNumbers:a,width:c}=n,l=T(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[f,p]=u(V0(i)||1),[d,h]=u(0),g=function(e,t,n=1){let r=t?e:0;const i=t||e,o=[];for(;r<=i;)o.push(r),r+=n;return o}(1,o),y=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(g,V0(a)||g.length),v=e=>{if(e>=1&&e<=o){const t=(e=>{for(let t=0;t<y.length;t++)if(y[t].includes(e))return t;return-1})(e);h(t),p(e),r(e)}},m=0!==d,b=d!==y.length-1;return t(W0,Object.assign({width:c},l,{children:[e(q0,Object.assign({disabled:1===f,onClick:()=>v(1)},{children:e(xt,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e(q0,Object.assign({disabled:1===f,onClick:()=>v(f-1)},{children:e(xt,{name:"chevron-left",title:"prev",inheritColor:!0})})),y[d].map(((n,r,i)=>t(s,{children:[0===r&&m?e(Z0,{children:"... "}):"",e(G0,Object.assign({selected:n===f,onClick:()=>v(n)},{children:n})),r===i.length-1&&b?e(Z0,{children:" ..."}):""]},`pageIndex-${n}`))),e(q0,Object.assign({disabled:f===o,onClick:()=>v(f+1)},{children:e(xt,{name:"chevron-right",title:"next",inheritColor:!0})})),e(q0,Object.assign({disabled:f===o,onClick:()=>v(o)},{children:e(xt,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},W0=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),$0=de.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`}}))),q0=de($0)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),G0=de($0)((({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}))),Z0=de.span((({theme:e})=>({color:e.scale6}))),Y0=n=>{var{size:r=200,data:i,innerRadius:o,outerRadius:a}=n,s=T(n,["size","data","innerRadius","outerRadius"]);const c=a||r/2-1;return e(mR,Object.assign({},s,{children:t(TP,Object.assign({width:r,height:r},{children:[e(sA,Object.assign({dataKey:"value",data:i,innerRadius:o,outerRadius:c},{children:i.map((t=>e(Zy,{fill:t.color||"#999"},t.name)))})),bR()]}))}))},X0=({percent:n,size:r=24,thickness:i=2,color:o,margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l})=>{const f={margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l},p=(r-i)/2,d=p*Math.PI*2,h=d-d*n/100,g=r/2;return t(J0,Object.assign({size:r},f,{children:[e(Q0,{cx:g,cy:g,r:p,thickness:i}),e(e2,{color:o,cx:g,cy:g,r:p,thickness:i,transform:`rotate(-90 ${g} ${g})`,circ:d,complete:h})]}))},J0=de.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),Q0=de.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),e2=de(Q0)((({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"}))),t2=({percent:t,color:n,circle:r,width:i,height:o,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(X0,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e(n2,Object.assign({width:i,height:o||s},d,{children:e(r2,{color:n,width:h})}))},n2=de.div((({theme:e,width:t,height:n,margin:r,marginTop:i,marginBottom:o,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:i,marginBottom:o,marginRight:a,marginLeft:s}))),r2=de.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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('/* 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 i2={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,i,o){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var i=Date.now||function(){return+new Date};function o(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 i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));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+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){l&&i&&o&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,u=null,l=n||null;a?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){i=!0,r()}),0),c(e,"head",t)}function d(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=s(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),o}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 O(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 S(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 A(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function T(e){c(e.c,"body",e.a)}function j(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,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function P(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),e=j(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=j(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=j(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=j(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,T(this.g),T(this.h),T(this.j),T(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=i(),r=new Promise((function(r,o){!function a(){i()-n>=t.f?o():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(){o()}))}()})),o=null,a=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},I=null;function R(){if(null===I){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);I=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return I}function L(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=n===e.f.serif&&o===e.f["sans-serif"])||(t=R()&&L(e,n,o)),t?i()-e.A>=e.w?R()&&L(e,n,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){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=i(),N(this)};var z=null;function U(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")):S(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function V(e,t,n,i,o){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,s=i||{};if(0===n.length&&a)S(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,U(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=[],i=[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,i)}k(t,"fontinactive",e),U(this)},H.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=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,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c);var o=new F(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,o,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(o["__mti_fntLst"+r]){var n,i=o["__mti_fntLst"+r](),a=[];if(i)for(var s=0;s<i.length;s++){var c=i[s].fontfamily;null!=i[s].fontStyle&&null!=i[s].fontWeight?(n=i[s].fontStyle+i[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,i=n.a.version;if(r){var o=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(i?"?v="+i:""),(function(i){i?e([]):(o["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},W.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=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=i.length;t<n;t++)if((r=i[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,o)}))};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),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new G(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["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&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Z[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new b(i,o[r]))}}(o),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(o.a,o.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=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new b(o,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 i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];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 ie={load:r(re.load,re)};e.exports?e.exports=ie:(window.WebFont=ie,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(i2);var o2=i2.exports;const a2=({families:t,fontFamily:n})=>(h((()=>{var e;e=t,o2.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(k,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),s2=()=>{const{scale1:t}=S();return e(k,{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`}}})},c2=()=>{const{font:t,toast:n}=S();return e(k,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},u2=de.div((({width:e,height:t})=>({width:e,height:t}))),l2=({items:n,onChange:r,beforeItemChange:i,listTitle:o,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:p,margin:d,marginTop:g,marginBottom:y,marginRight:v,marginLeft:m})=>{const b=f(),[w,x]=u([]),[_,C]=u([]),O={margin:d,marginTop:g,marginBottom:y,marginRight:v,marginLeft:m},S=e=>{const t=Object.assign({},e);return delete t.selected,t};h((()=>{if(!cn.isEqual(n,b.current)){b.current=n;const e=n.filter((e=>e.selected)).map(S),t=n.filter((e=>!e.selected)).map(S);C(e),x(t)}}),[n,b]),h((()=>{r(_)}),[_]);const k=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?C:x;(n?x:C)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);i?i(e,t,n):n()},E=e=>{const t="select"===e?x:C,n="select"===e?w:_;("select"===e?C:x)((e=>[...e,...n])),t([])},A=n=>t("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[n.leftElement||null,n.header&&n.body?t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(m2,{children:n.header}),e(b2,{children:n.body})]})):n.label,n.rightElement&&e("div",Object.assign({style:{marginLeft:"auto"}},{children:n.rightElement}))]})),T=!(s&&c);return t(f2,Object.assign({width:p,readOnly:l},O,{children:[o&&e(p2,{children:o}),t(d2,{children:[!l&&t(h2,{children:[T&&e(g2,{children:w.length>0&&!s&&e(Sn,Object.assign({small:!0,outline:!0,onClick:()=>E("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e(y2,{children:w.map((n=>t(v2,Object.assign({onClick:()=>k(n,"select"),color:n.color},{children:[A(n),e(xt,{name:"chevron-right"})]}),n.id)))})]}),t(h2,{children:[T&&!l&&e(g2,{children:_.length>0&&!c&&!l&&e(Sn,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>E("remove"),icon:"arrow-left"},{children:"All"}))}),l&&0===_.length?e("div",{children:a}):e(y2,{children:_.map((n=>t(v2,Object.assign({onClick:()=>k(n,"remove"),color:n.color},{children:[A(n),e(xt,{name:"chevron-left"})]}),n.id)))})]})]})]}))},f2=de.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:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),p2=de.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),d2=de.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),h2=de.div({display:"flex",flexDirection:"column"}),g2=de.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),y2=de.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),v2=de.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"}}})),m2=de.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),b2=de.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),w2=x({}),x2=(t,n)=>{const r="th"===n?_2:C2;return Lt(t).map(((t,i)=>t?e(r,{children:t},`${n}${i+1}`):null))},_2=de.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),C2=de.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),O2=de(e0)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),S2=de.tbody((({height:e})=>({height:e,overflow:"auto"}))),k2=de(e0)((({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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),E2=de.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),A2=de(E2)((({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:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i}))),T2=de(E2)({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}}))),j2=t=>{var{children:n,columns:r,data:i}=t,o=T(t,["children","columns","data"]);const[a,s]=u(i),[c,l]=u(),f=i&&"function"==typeof n?n(a):n;h((()=>{let e=i;if(c){const{key:t,dir:n}=c;e=cn.orderBy(i,t,n)}cn.isEqual(e,a)||s(e)}),[i,c]);const p=y((()=>({activeColumn:c,setActiveColumn:l,parentColumns:r})),[c,l,r]);return e(w2.Provider,Object.assign({value:p},{children:e(M2,Object.assign({},o,{children:f}))}))};j2.Header=t=>{var{children:n,columns:r}=t,i=T(t,["children","columns"]);const{parentColumns:a}=o(w2),s=r||a||"equal";return e("thead",{children:e(O2,Object.assign({as:"tr",columns:s},i,{children:x2(n,"th")}))})},j2.HeaderCell=({children:n,onClick:r,contentPosition:i,sorted:a,sortKey:s})=>{const[c,l]=u(a||"inactive"),{color:f}=S(),{activeColumn:p,setActiveColumn:d}=o(w2),g=s||a,y="desc"===c?"arrow-down":"arrow-up",v="asc"===c||"desc"===c,m=e=>{if(l(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return h((()=>{!s||"asc"!==a&&"desc"!==a||m(a)}),[]),h((()=>{a&&l(a)}),[a]),h((()=>{const e=!p&&a;s&&p&&p.key!==s&&"inactive"!==c&&!e&&l("inactive")}),[p,c]),t(T2,Object.assign({onClick:e=>{s?m("inactive"===c?"asc":"asc"===c?"desc":"inactive"):r&&r(e)},contentPosition:i,active:v,sorting:!!g},{children:[n,g?e(xt,{name:y,marginLeft:8,size:"small",color:v?f.brand:void 0,inheritColor:!v}):null]}))},j2.Body=({children:t,height:n})=>{const{parentColumns:r}=o(w2);return e(S2,Object.assign({height:n},{children:g.map(t,(e=>e?c(e,{parentColumns:r}):null))}))},j2.Row=t=>{var{children:n,columns:r,onClick:i}=t,a=T(t,["children","columns","onClick"]);const{parentColumns:s}=o(w2),c=r||s||"equal";return e(k2,Object.assign({as:"tr",columns:c,onClick:i,hoverEffect:!!i},a,{children:x2(n,"td")}))},j2.Column=({children:t,contentPosition:n,defaultValue:r,padding:i,paddingTop:o,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:i,paddingTop:o,paddingBottom:a,paddingRight:s,paddingLeft:c};return e(A2,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const M2=de.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:i})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),P2=({trigger:n,on:r="hover",children:i,content:o,style:a,position:s,offsetY:c,offsetArrowX:l,offsetX:f,containerWidth:p,width:d,maxWidth:h,textAlign:g,disabled:y,id:v,afterShow:m,afterHide:b,bgColor:w,color:x})=>{const[_,C]=u(!1),O=e=>{C(e),m&&e&&m(),b&&!e&&b()},S=e=>{if(!y)switch(e.type){case"mouseover":r&&"hover"!==r||O(!0);break;case"mouseleave":r&&"hover"!==r||O(!1);break;case"click":"click"===r&&O(!_)}};return t(L2,Object.assign({width:p,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e(R2,Object.assign({visible:_,position:s,offsetY:c,offsetX:f,offsetArrowX:l,width:d,maxWidth:h,textAlign:g,id:v,bgColor:w,textColor:x},{children:o||i})),n]}))},D2=de.div((({theme:e})=>({color:e.tooltip.color.default}))),I2=de.div((({theme:e})=>({color:e.tooltip.color.subtext}))),R2=de.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:i,textColor:o})=>{const{tooltip:a,font:s}=e,c=a.background,u=i||c;return{backgroundColor:u,boxShadow:e.elevation1,color:o||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[i,o]=e.split(" ");let a={},s={};switch(i){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)"},o){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},o){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"}))),L2=de.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));P2.Header=D2,P2.Body=I2;const N2="#0074F4",B2="#001D32",F2="#FFFFFF",z2={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:N2,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:tt(.95,N2),brandTint1:tt(.9,N2),brandTint2:tt(.8,N2),brandTint3:tt(.7,N2),brandTint4:tt(.6,N2),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:"#FF6068",errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:tt(.95,"#FF6068"),errorTint1:tt(.9,"#FF6068"),errorTint2:tt(.8,"#FF6068"),warning:"#FF9900",warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:tt(.95,"#FF9900"),warningTint1:tt(.9,"#FF9900"),warningTint2:tt(.8,"#FF9900"),alert:"#F0BB00",alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:tt(.95,"#F0BB00"),alertTint1:tt(.9,"#F0BB00"),alertTint2:tt(.8,"#F0BB00"),success:"#00C242",successShade1:"#00AF3B",successShade2:"#009B35",successTint0:tt(.95,"#00C242"),successTint1:tt(.9,"#00C242"),successTint2:tt(.8,"#00C242"),grayscale0:tt(.95,B2),grayscale1:tt(.9,B2),grayscale2:tt(.8,B2),grayscale3:tt(.7,B2),grayscale4:tt(.6,B2),grayscale5:tt(.5,B2),grayscale6:tt(.4,B2),grayscale7:tt(.3,B2),grayscale8:tt(.2,B2),grayscale9:tt(.1,B2),grayscale10:B2,contrast0:tt(.95,F2),contrast1:tt(.9,F2),contrast2:tt(.8,F2),contrast3:tt(.7,F2),contrast4:tt(.6,F2),contrast5:tt(.5,F2),contrast6:tt(.4,F2),contrast7:tt(.3,F2),contrast8:tt(.2,F2),contrast9:tt(.1,F2),contrast10:F2};var U2={color:z2,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:H2}=U2;var V2={small:{height:28,iconSize:20,font:H2.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:H2.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:H2.size.lg,padding:14,iconOnlyPadding:6}};const K2="#FFFFFF",W2=z2.grayscale0,$2=z2.grayscale1,q2=z2.grayscale2,G2=z2.grayscale3,Z2=z2.grayscale4,Y2=z2.grayscale5,X2=z2.grayscale6,J2=z2.grayscale7,Q2=z2.grayscale8,e5=z2.grayscale9,t5=z2.grayscale10,n5=Object.assign(Object.assign({},U2),{name:"light",accent:z2.brand,accentShade:z2.brandShade1,background0:K2,background1:K2,background2:K2,background3:K2,background4:K2,background5:K2,scale0:W2,scale1:$2,scale2:q2,scale3:G2,scale4:Z2,scale5:Y2,scale6:X2,scale7:J2,scale8:Q2,scale9:e5,scale10:t5,button:Object.assign(Object.assign({},V2),{primary:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},outlineBackground:{default:z2.brandTint0,hover:z2.brandTint1,active:z2.brandTint2},border:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},divider:q2},secondary:{color:{default:t5,hover:t5,active:t5},outlineColor:{default:t5,hover:t5,active:t5},background:{default:$2,hover:q2,active:G2},outlineBackground:{default:$2,hover:q2,active:G2},border:{default:q2,hover:q2,active:q2},divider:q2},positive:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},outlineBackground:{default:z2.successTint0,hover:z2.successTint1,active:z2.successTint2},border:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},divider:q2},negative:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},outlineBackground:{default:z2.errorTint0,hover:z2.errorTint1,active:z2.errorTint2},border:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},divider:q2},caution:{color:{default:K2,hover:K2,active:K2},outlineColor:{default:t5,hover:t5,active:t5},background:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},outlineBackground:{default:z2.warningTint0,hover:z2.warningTint1,active:z2.warningTint2},border:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},divider:q2},subtle:{color:{default:z2.brand,hover:z2.brand,active:z2.brand},outlineColor:{default:z2.brand,hover:z2.brand,active:z2.brand},secondaryColor:{default:t5,hover:t5,active:t5},positiveColor:{default:z2.success,hover:z2.success,active:z2.success},negativeColor:{default:z2.error,hover:z2.error,active:z2.error},cautionColor:{default:z2.warning,hover:z2.warning,active:z2.warning},background:{default:"transparent",hover:$2,active:q2},outlineBackground:{default:"transparent",hover:$2,active:q2},border:{default:"transparent",hover:q2,active:q2},divider:q2},link:{color:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},outlineColor:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},secondaryColor:{default:Q2,hover:e5,active:t5},positiveColor:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},negativeColor:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},cautionColor:{default:z2.warning,hover:z2.warningShade1,active:z2.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:Z2,hover:Z2,active:Z2},outlineColor:{default:Z2,hover:Z2,active:Z2},background:{default:$2,hover:$2,active:$2},outlineBackground:{default:W2,hover:W2,active:W2},border:{default:$2,hover:$2,active:$2},divider:$2},color:{default:K2}}),calendar:{background:{container:z2.contrast10,hover:$2,active:z2.brand,activeHover:z2.brandShade1},color:{disabled:Z2,default:t5,active:z2.contrast10,current:z2.brand,outside:X2,weekday:Q2,monthYear:Q2,iconDefault:Z2,iconHover:t5}},defaultBorder:`1px solid ${$2}`,formControl:{color:{default:Q2,hover:t5,active:z2.brand,activeHover:z2.brandShade1,disabled:Z2}},input:{borderRadius:4,background:{default:W2,hover:$2,focused:$2,disabled:W2},color:{default:t5,disabled:Z2,placeholder:X2,description:X2,descriptionError:z2.error},borderColor:{default:X2,hover:Q2,focused:z2.brand,disabled:Z2,error:z2.error},labelColor:{default:Q2,hover:Q2,filled:X2,focused:z2.brand,disabled:Z2}},menu:{background:K2},menuItem:{borderColor:z2.brand,background:{active:W2,hover:$2,inactive:"transparent"},color:{active:t5,hover:t5,inactive:X2}},modal:{background:z2.contrast10,color:{header:t5,body:X2}},options:{background:z2.contrast10},optionItem:{background:{active:$2,inactive:"transparent"},color:{active:t5,inactive:t5,accent:z2.brand}},table:{color:{header:X2,body:t5},borderColor:$2},toast:{color:t5,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Q2,info:z2.brand,success:z2.success,warning:z2.warning,error:z2.error}},toggle:{slider:z2.contrast10},tooltip:{background:"#FFF",color:{default:t5,subtext:X2}}}),r5=z2.contrast0,i5=z2.contrast1,o5=z2.contrast2,a5=z2.contrast3,s5=z2.contrast4,c5=z2.contrast5,u5=z2.contrast6,l5=z2.contrast7,f5=z2.contrast8,p5=z2.contrast9,d5=z2.contrast10,h5=z2.brandDark,g5={light:n5,dark:Object.assign(Object.assign({},U2),{name:"dark",accent:h5,accentShade:z2.brandDarkShade1,background0:z2.brandBackground0,background1:z2.brandBackground1,background2:z2.brandBackground2,background3:z2.brandBackground3,background4:z2.brandBackground4,background5:z2.brandBackground5,scale0:r5,scale1:i5,scale2:o5,scale3:a5,scale4:s5,scale5:c5,scale6:u5,scale7:l5,scale8:f5,scale9:p5,scale10:d5,button:Object.assign(Object.assign({},V2),{primary:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},outlineBackground:{default:z2.brandTint0,hover:z2.brandTint1,active:z2.brandTint2},border:{default:z2.brand,hover:z2.brandShade1,active:z2.brandShade2},divider:o5},secondary:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:i5,hover:o5,active:a5},outlineBackground:{default:i5,hover:o5,active:a5},border:{default:o5,hover:o5,active:o5},divider:o5},positive:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},outlineBackground:{default:z2.successTint0,hover:z2.successTint1,active:z2.successTint2},border:{default:z2.success,hover:z2.successShade1,active:z2.successShade2},divider:o5},negative:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},outlineBackground:{default:z2.errorTint0,hover:z2.errorTint1,active:z2.errorTint2},border:{default:z2.error,hover:z2.errorShade1,active:z2.errorShade2},divider:o5},caution:{color:{default:d5,hover:d5,active:d5},outlineColor:{default:d5,hover:d5,active:d5},background:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},outlineBackground:{default:z2.warningTint0,hover:z2.warningTint1,active:z2.warningTint2},border:{default:z2.warning,hover:z2.warningShade1,active:z2.warningShade2},divider:o5},subtle:{color:{default:z2.brand,hover:z2.brand,active:z2.brand},outlineColor:{default:z2.brand,hover:z2.brand,active:z2.brand},secondaryColor:{default:d5,hover:d5,active:d5},positiveColor:{default:z2.success,hover:z2.success,active:z2.success},negativeColor:{default:z2.error,hover:z2.error,active:z2.error},cautionColor:{default:z2.warning,hover:z2.warning,active:z2.warning},background:{default:"transparent",hover:i5,active:o5},outlineBackground:{default:"transparent",hover:i5,active:o5},border:{default:"transparent",hover:o5,active:o5},divider:o5},link:{color:{default:z2.brandShade2,hover:z2.brandShade1,active:z2.brand},outlineColor:{default:z2.brandShade2,hover:z2.brandShade1,active:z2.brand},secondaryColor:{default:f5,hover:p5,active:d5},positiveColor:{default:z2.successShade2,hover:z2.successShade1,active:z2.success},negativeColor:{default:z2.errorShade2,hover:z2.errorShade1,active:z2.error},cautionColor:{default:z2.warningShade2,hover:z2.warningShade1,active:z2.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:s5,hover:s5,active:s5},outlineColor:{default:s5,hover:s5,active:s5},background:{default:i5,hover:i5,active:i5},outlineBackground:{default:r5,hover:r5,active:r5},border:{default:i5,hover:i5,active:i5},divider:i5},color:{default:"#FFFFFF"}}),calendar:{background:{container:z2.brandBackground3,hover:i5,active:z2.brand,activeHover:z2.brandShade1},color:{disabled:s5,default:d5,active:d5,current:h5,outside:u5,weekday:f5,monthYear:f5,iconDefault:s5,iconHover:d5}},defaultBorder:`1px solid ${i5}`,formControl:{color:{default:f5,hover:d5,active:z2.brand,activeHover:z2.brandShade1,disabled:s5}},input:{borderRadius:4,background:{default:r5,hover:i5,focused:i5,disabled:r5},color:{default:d5,disabled:s5,placeholder:u5,description:u5,descriptionError:z2.error},borderColor:{default:u5,hover:f5,focused:h5,disabled:s5,error:z2.error},labelColor:{default:f5,hover:f5,filled:u5,focused:h5,disabled:s5}},menu:{background:z2.brandBackground2},menuItem:{borderColor:z2.brand,background:{active:r5,hover:i5,inactive:"transparent"},color:{active:d5,hover:d5,inactive:u5}},modal:{background:z2.brandBackground3,color:{header:d5,body:u5}},options:{background:z2.brandBackground3},optionItem:{background:{active:i5,inactive:"transparent"},color:{active:d5,inactive:d5,accent:h5}},table:{color:{header:u5,body:d5},borderColor:i5},toast:{color:d5,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:f5,info:z2.brand,success:z2.success,warning:z2.warning,error:z2.error}},toggle:{slider:z2.brandBackground0},tooltip:{background:z2.brandBackground4,color:{default:d5,subtext:u5}}})},y5=({header:n,text:r,cancelText:i="Cancel",confirmText:o="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:f})=>{const[p,d]=u(f||""),[h,g]=u(null),y=()=>{g(null),d("")},v=()=>{null==h||h.resolve(!s||p),y()},m=()=>{null==h||h.resolve(!1),y()};nn(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":m()}}),!!h,[p]);return[()=>new Promise((e=>{g({resolve:e})})),()=>t(T0,Object.assign({visible:!!h,onClose:y,width:400},{children:[n&&e(T0.Header,{children:n}),r&&e(T0.Text,{children:r}),s&&e(T0.Body,Object.assign({marginTop:4,marginBottom:8},{children:e(Gt,{autoFocus:!0,label:c,placeholder:l,value:p,onChange:({target:e})=>d(e.value)})})),t(T0.Footer,{children:[e(Sn,Object.assign({secondary:!0,marginRight:8,onClick:m},{children:i})),e(Sn,Object.assign({negative:a,onClick:v},{children:o}))]})]}))]};export{In as Audio,xR as BarChart,Sn as Button,vB as Calendar,TB as Checkbox,QB as Code,rF as DocTable,J1 as DraftEditor,gn as Dropdown,o0 as Form,e0 as Grid,xt as Icon,u0 as ImageViewer,h0 as InlineCode,Gt as Input,$t as InputUtils,r0 as Label,g0 as Menu,w0 as Message,S0 as MessageHr,T0 as Modal,D0 as MultiSelect,H0 as Notification,Qt as Options,K0 as Pagination,Y0 as PieChart,t2 as Progress,t0 as Radio,a2 as ResetStyles,s2 as ScrollbarStyles,Mn as Slider,u2 as Spacer,Bt as Spinner,j2 as Table,c2 as ToastStyles,n0 as Toggle,P2 as Tooltip,l2 as TransferList,$B as copyToClipboard,WB as formatDate,g5 as theme,y5 as useConfirm,nn as useEventListener,rn as useOnClickOutside,un as useSelect,an as useSelectAll,on as useWindowSize};
|
|
210
210
|
//# sourceMappingURL=index.js.map
|