@wavv/ui 1.5.4 → 1.5.6
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/cjs/index.js +2 -2
- package/build/cjs/types/components/BarChart.d.ts +19 -4
- package/build/cjs/types/components/ChartHelpers.d.ts +7 -0
- package/build/cjs/types/components/Menu.d.ts +2 -2
- package/build/esm/index.js +6 -6
- package/build/esm/types/components/BarChart.d.ts +19 -4
- package/build/esm/types/components/ChartHelpers.d.ts +7 -0
- package/build/esm/types/components/Menu.d.ts +2 -2
- package/build/index.d.ts +20 -5
- package/package.json +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -199,7 +199,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
199
199
|
38:14,
|
|
200
200
|
/*! Conditions:: INITIAL */
|
|
201
201
|
/*! Rule:: $ */
|
|
202
|
-
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();void 0!==kx&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Ex);var jx={},Ax={},Tx={get exports(){return Ax},set exports(e){Ax=e}},Px={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}},Mx=function(e,t,n,r){if(!Px.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Px[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=Px[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Mx);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}(Tx,Ax),Object.defineProperty(jx,"__esModule",{value:!0}),jx.flip=Lx;var Dx=function(e){return e&&e.__esModule?e:{default:e}}(Ax);function Rx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Dx.default)(e.left,e.right,t),r=Rx(n.left,t),o=Rx(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(Ix(r.right,o.right)?n=(0,Dx.default)(r.left,o.left,t):Ix(r.right,o.left)&&(n=(0,Dx.default)(r.left,o.right,t)),r=Rx(n.left,t),o=Rx(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return Bx(o);r.type===o.type&&Nx(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(Nx(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Rx({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?Lx(o.operator):o.operator,Rx(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Rx({type:"MathExpression",operator:"-"===i?Lx(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Rx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Nx(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Rx({type:"MathExpression",operator:i,left:r.left,right:o},t),Rx(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Rx({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Rx({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Rx(e,t)}return e}(e,t);case"/":return function(e,t){if(!Nx(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 Nx(e.left.left.type)&&Nx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Rx(e.left,t)):e;if(Nx(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(Nx(e.left.left.type)&&Nx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Nx(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(Nx(e.right.left.type)&&Nx(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&&Nx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Rx(e.value,t):e}function Ix(e,t){return e.type===t.type&&e.value===t.value}function Nx(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 Lx(e){return"+"===e?"-":"+"}function Bx(e){return Nx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Bx(e.left),e.right=Bx(e.right)),e}jx.default=Rx;var Fx={};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=jx,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}({get exports(){return Fx},set exports(e){Fx=e}},Fx),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Sx),r=Ex,o=a(jx),i=a(Fx);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(ux,cx);var zx=c(cx);function Vx(e){return Vx="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},Vx(e)}function Hx(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 Ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hx(Object(n),!0).forEach((function(t){Kx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Vx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $x(e){return function(e){if(Array.isArray(e))return Wx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wx(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 Wx(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 Wx(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 qx={widthCache:{},cacheCount:0},Gx=2e3,Zx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Yx=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Xx="recharts_measurement_span";var Jx=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat($x(e),["-",t.toLowerCase()]):[].concat($x(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],Yx.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},Qx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Kb.isSsr)return{width:0,height:0};var n="".concat(e),r=Jx(t),o="".concat(n,"-").concat(r);if(qx.widthCache[o])return qx.widthCache[o];try{var i=document.getElementById(Xx);i||((i=document.createElement("span")).setAttribute("id",Xx),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Ux(Ux({},Zx),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return qx.widthCache[o]=c,++qx.cacheCount>Gx&&(qx.cacheCount=0,qx.widthCache={}),c}catch(e){return{width:0,height:0}}},e_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function t_(e){return t_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t_(e)}function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n_.apply(this,arguments)}function r_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o_(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,h_(r.key),r)}}function i_(e,t){return i_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i_(e,t)}function a_(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=c_(e);if(t){var o=c_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===t_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s_(e)}(this,n)}}function s_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(e){return c_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c_(e)}function u_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l_(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 l_(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 l_(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 f_(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 p_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f_(Object(n),!0).forEach((function(t){d_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d_(e,t,n){return(t=h_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_(e){var t=function(e,t){if("object"!==t_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==t_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===t_(t)?t:String(t)}var g_=/[ \f\n\r\t\v\u2028\u2029]+/,y_=function(e){try{var t=[];return vs(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(g_)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Qx(t,e.style).width}})),spaceWidth:e.breakAll?0:Qx(" ",e.style).width}}catch(e){return null}},v_=function(e){return[{words:vs(e)?[]:e.toString().split(g_)}]},m_=function(e,t){if((e.width||e.scaleToFit)&&!Kb.isSsr&&t){var n=y_(e);return n?function(e,t,n,r,o){var i=ks(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=y_(p_(p_({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=u_(l(h-1),2),y=g[0],v=g[1],m=u_(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):v_(e.children)}return v_(e.children)},b_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i_(e,t)}(a,t.Component);var n,r,o,i=a_(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d_(s_(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=r_(e,e_),h=this.state.wordsByLines;if(!Es(d.x)||!Es(d.y))return null;var g,y=d.x+(ks(n)?n:0),v=d.y+(ks(r)?r:0);switch(i){case"start":g=zx("calc(".concat(l,")"));break;case"middle":g=zx("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=zx("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((ks(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",n_({},nc(d,!0),{x:y,y:v,className:To("recharts-text",f),textAnchor:o,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,n){return t.createElement("tspan",{x:y,dy:0===n?g:u,key:n},e.words.join(p?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:m_(e,n)}}return null}}],r&&o_(n.prototype,r),o&&o_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();d_(b_,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var w_=hf;var x_=function(e,t){return w_(e,t)},__=di;var C_=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!__(a):n(a,s)))var s=a,c=i}return c};var O_=function(e,t){return e>t},S_=C_,k_=O_,E_=Xf;var j_=function(e){return e&&e.length?S_(e,E_,k_):void 0};var A_=function(e,t){return e<t},T_=C_,P_=A_,M_=Xf;var D_=function(e){return e&&e.length?T_(e,M_,P_):void 0},R_=Ga,I_=lp,N_=Um,L_=ri;var B_=Rm,F_=function(e,t){return(L_(e)?R_:N_)(e,I_(t))};var z_=function(e,t){return B_(F_(e,t),1)};function V_(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function H_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function U_(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=V_,n=(t,n)=>V_(e(t),n),r=(t,n)=>e(t)-n):(t=e===V_||e===H_?e:K_,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function K_(){return 0}function $_(e){return null===e?NaN:+e}const W_=U_(V_).right;U_($_).center;class q_ extends Map{constructor(e,t=Z_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(G_(this,e))}has(e){return super.has(G_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function G_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Z_(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Y_(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const X_=Math.sqrt(50),J_=Math.sqrt(10),Q_=Math.sqrt(2);function eC(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=X_?10:i>=J_?5:i>=Q_?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?eC(e,t,2*n):[s,c,u]}function tC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?eC(t,e,n):eC(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function nC(e,t,n){return eC(e=+e,t=+t,n=+n)[2]}function rC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?nC(t,e,n):nC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function oC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function iC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function aC(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?Y_:function(e=V_){if(e===V_)return Y_;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);aC(e,t,Math.max(n,Math.floor(t-a*c/i+u)),Math.min(r,Math.floor(t+(i-a)*c/i+u)),o)}const i=e[t];let a=n,s=r;for(sC(e,n,t),o(e[r],i)>0&&sC(e,n,r);a<s;){for(sC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?sC(e,n,s):(++s,sC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cC(e,t,n=$_){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function uC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function lC(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 fC=Symbol("implicit");function pC(){var e=new q_,t=[],n=[],r=fC;function o(o){let i=e.get(o);if(void 0===i){if(r!==fC)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new q_;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return pC(t,n).unknown(r)},uC.apply(o,arguments),o}function dC(){var e,t,n=pC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return dC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},uC.apply(f(),arguments)}function hC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return hC(t())},e}function gC(){return hC(dC.apply(null,arguments).paddingInner(1))}function yC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mC(){}var bC=.7,wC=1/bC,xC="\\s*([+-]?\\d+)\\s*",_C="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",CC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OC=/^#([0-9a-f]{3,8})$/,SC=new RegExp(`^rgb\\(${xC},${xC},${xC}\\)$`),kC=new RegExp(`^rgb\\(${CC},${CC},${CC}\\)$`),EC=new RegExp(`^rgba\\(${xC},${xC},${xC},${_C}\\)$`),jC=new RegExp(`^rgba\\(${CC},${CC},${CC},${_C}\\)$`),AC=new RegExp(`^hsl\\(${_C},${CC},${CC}\\)$`),TC=new RegExp(`^hsla\\(${_C},${CC},${CC},${_C}\\)$`),PC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function MC(){return this.rgb().formatHex()}function DC(){return this.rgb().formatRgb()}function RC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?IC(t):3===n?new FC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?NC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?NC(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=SC.exec(e))?new FC(t[1],t[2],t[3],1):(t=kC.exec(e))?new FC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=EC.exec(e))?NC(t[1],t[2],t[3],t[4]):(t=jC.exec(e))?NC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AC.exec(e))?$C(t[1],t[2]/100,t[3]/100,1):(t=TC.exec(e))?$C(t[1],t[2]/100,t[3]/100,t[4]):PC.hasOwnProperty(e)?IC(PC[e]):"transparent"===e?new FC(NaN,NaN,NaN,0):null}function IC(e){return new FC(e>>16&255,e>>8&255,255&e,1)}function NC(e,t,n,r){return r<=0&&(e=t=n=NaN),new FC(e,t,n,r)}function LC(e){return e instanceof mC||(e=RC(e)),e?new FC((e=e.rgb()).r,e.g,e.b,e.opacity):new FC}function BC(e,t,n,r){return 1===arguments.length?LC(e):new FC(e,t,n,null==r?1:r)}function FC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function zC(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}`}function VC(){const e=HC(this.opacity);return`${1===e?"rgb(":"rgba("}${UC(this.r)}, ${UC(this.g)}, ${UC(this.b)}${1===e?")":`, ${e})`}`}function HC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function UC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function KC(e){return((e=UC(e))<16?"0":"")+e.toString(16)}function $C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qC(e,t,n,r)}function WC(e){if(e instanceof qC)return new qC(e.h,e.s,e.l,e.opacity);if(e instanceof mC||(e=RC(e)),!e)return new qC;if(e instanceof qC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new qC(a,s,c,e.opacity)}function qC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function GC(e){return(e=(e||0)%360)<0?e+360:e}function ZC(e){return Math.max(0,Math.min(1,e||0))}function YC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yC(mC,RC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MC,formatHex:MC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return WC(this).formatHsl()},formatRgb:DC,toString:DC}),yC(FC,BC,vC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new FC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new FC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new FC(UC(this.r),UC(this.g),UC(this.b),HC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zC,formatHex:zC,formatHex8:function(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}${KC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:VC,toString:VC})),yC(qC,(function(e,t,n,r){return 1===arguments.length?WC(e):new qC(e,t,n,null==r?1:r)}),vC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new qC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new qC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new FC(YC(e>=240?e-240:e+120,o,r),YC(e,o,r),YC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qC(GC(this.h),ZC(this.s),ZC(this.l),HC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HC(this.opacity);return`${1===e?"hsl(":"hsla("}${GC(this.h)}, ${100*ZC(this.s)}%, ${100*ZC(this.l)}%${1===e?")":`, ${e})`}`}}));const XC=Math.PI/180,JC=180/Math.PI,QC=.96422,eO=1,tO=.82521,nO=4/29,rO=6/29,oO=3*rO*rO,iO=rO*rO*rO;function aO(e){if(e instanceof sO)return new sO(e.l,e.a,e.b,e.opacity);if(e instanceof pO)return dO(e);e instanceof FC||(e=LC(e));var t,n,r=fO(e.r),o=fO(e.g),i=fO(e.b),a=cO((.2225045*r+.7168786*o+.0606169*i)/eO);return r===o&&o===i?t=n=a:(t=cO((.4360747*r+.3850649*o+.1430804*i)/QC),n=cO((.0139322*r+.0971045*o+.7141733*i)/tO)),new sO(116*a-16,500*(t-a),200*(a-n),e.opacity)}function sO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function cO(e){return e>iO?Math.pow(e,1/3):e/oO+nO}function uO(e){return e>rO?e*e*e:oO*(e-nO)}function lO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pO(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dO(e){if(isNaN(e.h))return new sO(e.l,0,0,e.opacity);var t=e.h*XC;return new sO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yC(sO,(function(e,t,n,r){return 1===arguments.length?aO(e):new sO(e,t,n,null==r?1:r)}),vC(mC,{brighter(e){return new sO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new sO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){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 FC(lO(3.1338561*(t=QC*uO(t))-1.6168667*(e=eO*uO(e))-.4906146*(n=tO*uO(n))),lO(-.9787684*t+1.9161415*e+.033454*n),lO(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),yC(pO,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof pO)return new pO(e.h,e.c,e.l,e.opacity);if(e instanceof sO||(e=aO(e)),0===e.a&&0===e.b)return new pO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*JC;return new pO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pO(e,t,n,null==r?1:r)}),vC(mC,{brighter(e){return new pO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dO(this).rgb()}}));var hO=-.14861,gO=1.78277,yO=-.29227,vO=-.90649,mO=1.97294,bO=mO*vO,wO=mO*gO,xO=gO*yO-vO*hO;function _O(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof CO)return new CO(e.h,e.s,e.l,e.opacity);e instanceof FC||(e=LC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(xO*r+bO*t-wO*n)/(xO+bO-wO),i=r-o,a=(mO*(n-o)-yO*i)/vO,s=Math.sqrt(a*a+i*i)/(mO*o*(1-o)),c=s?Math.atan2(a,i)*JC-120:NaN;return new CO(c<0?c+360:c,s,o,e.opacity)}(e):new CO(e,t,n,null==r?1:r)}function CO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yC(CO,_O,vC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new CO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new CO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*XC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new FC(255*(t+n*(hO*r+gO*o)),255*(t+n*(yO*r+vO*o)),255*(t+n*(mO*r)),this.opacity)}}));var OO=e=>()=>e;function SO(e,t){return function(n){return e+n*t}}function kO(e){return 1==(e=+e)?EO: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):OO(isNaN(t)?n:t)}}function EO(e,t){var n=t-e;return n?SO(e,n):OO(isNaN(e)?t:e)}var jO=function e(t){var n=kO(t);function r(e,t){var r=n((e=BC(e)).r,(t=BC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=EO(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function AO(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function TO(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=LO(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function PO(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function MO(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DO(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=LO(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var RO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,IO=new RegExp(RO.source,"g");function NO(e,t){var n,r,o,i=RO.lastIndex=IO.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=RO.exec(e))&&(r=IO.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:MO(n,r)})),i=IO.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function LO(e,t){var n,r=typeof t;return null==t||"boolean"===r?OO(t):("number"===r?MO:"string"===r?(n=RC(t))?(t=n,jO):NO:t instanceof RC?jO:t instanceof Date?PO:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?AO:Array.isArray(t)?TO:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?DO:MO)(e,t)}function BO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var FO=1e-12;function zO(e){return((e=Math.exp(e))+1/e)/2}function VO(e){return function t(n){function r(t,r){var o=e((t=_O(t)).h,(r=_O(r)).h),i=EO(t.s,r.s),a=EO(t.l,r.l),s=EO(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function HO(e,t){void 0===t&&(t=e,e=LO);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function UO(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<FO)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=zO(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/zO(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),VO((function(e,t){var n=t-e;return n?SO(e,n>180||n<-180?n-360*Math.round(n/360):n):OO(isNaN(e)?t:e)})),VO(EO);var KO=[0,1];function $O(e){return e}function WO(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function qO(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=WO(o,r),i=n(a,i)):(r=WO(r,o),i=n(i,a)),function(e){return i(r(e))}}function GO(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=WO(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=W_(e,t,1,r)-1;return i[n](o[n](t))}}function ZO(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function YO(){var e,t,n,r,o,i,a=KO,s=KO,c=LO,u=$O;function l(){var e=Math.min(a.length,s.length);return u!==$O&&(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?GO:qO,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),MO)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,UO),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=BO,l()},f.clamp=function(e){return arguments.length?(u=!!e||$O,l()):u!==$O},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 XO(){return YO()($O,$O)}function JO(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 QO(e){return(e=JO(Math.abs(e)))?e[1]:NaN}var eS,tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nS(e){if(!(t=tS.exec(e)))throw new Error("invalid format: "+e);var t;return new rS({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 rS(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 oS(e,t){var n=JO(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}nS.prototype=rS.prototype,rS.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 iS={"%":(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)=>oS(100*e,t),r:oS,s:function(e,t){var n=JO(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(eS=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+JO(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function aS(e){return e}var sS,cS,uS,lS=Array.prototype.map,fS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?aS:(t=lS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?aS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(lS.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=nS(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"):iS[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?c:"",x=iS[m],_=/[defgprs%]/.test(m);function C(e){var o,i,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,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?fS[8+eS/3]:"")+C+(O&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){C=(46===c?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);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=nS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(QO(t)/3))),o=Math.pow(10,-r),i=fS[8+r/3];return function(e){return n(o*e)+i}}}}function dS(e,t,n,r){var o,i=rC(e,t,n);switch((r=nS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(QO(t)/3)))-QO(Math.abs(e)))}(i,a))||(r.precision=o),uS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,QO(t)-QO(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-QO(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return cS(r)}function hS(e){var t=e.domain;return e.ticks=function(e){var n=t();return tC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return dS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=nC(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function gS(){var e=XO();return e.copy=function(){return ZO(e,gS())},uC.apply(e,arguments),hS(e)}function yS(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function vS(e){return Math.log(e)}function mS(e){return Math.exp(e)}function bS(e){return-Math.log(-e)}function wS(e){return-Math.exp(-e)}function xS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _S(e){return(t,n)=>-e(-t,n)}function CS(e){const t=e(vS,mS),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?xS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=_S(r),o=_S(o),e(bS,wS)):e(vS,mS),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),p=r(s);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<i;++u)if(l=f<0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=p;++f)for(u=i-1;u>=1;--u)if(l=f>0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<d&&(h=tC(a,s,d))}else h=tC(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=nS(n)).precision||(n.trim=!0),n=cS(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(yS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function OS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function SS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kS(e){var t=1,n=e(OS(t),SS(t));return n.constant=function(n){return arguments.length?e(OS(t=+n),SS(t)):t},hS(n)}function ES(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function AS(e){return e<0?-e*e:e*e}function TS(e){var t=e($O,$O),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e($O,$O):.5===n?e(jS,AS):e(ES(n),ES(1/n)):n},hS(t)}function PS(){var e=TS(YO());return e.copy=function(){return ZO(e,PS()).exponent(e.exponent())},uC.apply(e,arguments),e}function MS(e){return Math.sign(e)*e*e}sS=pS({thousands:",",grouping:[3],currency:["$",""]}),cS=sS.format,uS=sS.formatPrefix;const DS=new Date,RS=new Date;function IS(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>IS((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(DS.setTime(+t),RS.setTime(+r),e(DS),e(RS),Math.floor(n(DS,RS))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const NS=IS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));NS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?IS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):NS:null),NS.range;const LS=1e3,BS=60*LS,FS=60*BS,zS=24*FS,VS=7*zS,HS=30*zS,US=365*zS,KS=IS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*LS)}),((e,t)=>(t-e)/LS),(e=>e.getUTCSeconds()));KS.range;const $S=IS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LS)}),((e,t)=>{e.setTime(+e+t*BS)}),((e,t)=>(t-e)/BS),(e=>e.getMinutes()));$S.range;const WS=IS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*BS)}),((e,t)=>(t-e)/BS),(e=>e.getUTCMinutes()));WS.range;const qS=IS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LS-e.getMinutes()*BS)}),((e,t)=>{e.setTime(+e+t*FS)}),((e,t)=>(t-e)/FS),(e=>e.getHours()));qS.range;const GS=IS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*FS)}),((e,t)=>(t-e)/FS),(e=>e.getUTCHours()));GS.range;const ZS=IS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*BS)/zS),(e=>e.getDate()-1));ZS.range;const YS=IS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/zS),(e=>e.getUTCDate()-1));YS.range;const XS=IS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/zS),(e=>Math.floor(e/zS)));function JS(e){return IS((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*BS)/VS))}XS.range;const QS=JS(0),ek=JS(1),tk=JS(2),nk=JS(3),rk=JS(4),ok=JS(5),ik=JS(6);function ak(e){return IS((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/VS))}QS.range,ek.range,tk.range,nk.range,rk.range,ok.range,ik.range;const sk=ak(0),ck=ak(1),uk=ak(2),lk=ak(3),fk=ak(4),pk=ak(5),dk=ak(6);sk.range,ck.range,uk.range,lk.range,fk.range,pk.range,dk.range;const hk=IS((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));hk.range;const gk=IS((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));gk.range;const yk=IS((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));yk.every=e=>isFinite(e=Math.floor(e))&&e>0?IS((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,yk.range;const vk=IS((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function mk(e,t,n,r,o,i){const a=[[KS,1,LS],[KS,5,5*LS],[KS,15,15*LS],[KS,30,30*LS],[i,1,BS],[i,5,5*BS],[i,15,15*BS],[i,30,30*BS],[o,1,FS],[o,3,3*FS],[o,6,6*FS],[o,12,12*FS],[r,1,zS],[r,2,2*zS],[n,1,VS],[t,1,HS],[t,3,3*HS],[e,1,US]];function s(t,n,r){const o=Math.abs(n-t)/r,i=U_((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(rC(t/US,n/US,r));if(0===i)return NS.every(Math.max(rC(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}vk.every=e=>isFinite(e=Math.floor(e))&&e>0?IS((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,vk.range;const[bk,wk]=mk(vk,gk,sk,XS,GS,WS),[xk,_k]=mk(yk,hk,QS,ZS,qS,$S);function Ck(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 Ok(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 Sk(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var kk,Ek,jk,Ak,Tk={"-":"",_:" ",0:"0"},Pk=/^\s*\d+/,Mk=/^%/,Dk=/[\\^$*+?|[\]().{}]/g;function Rk(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ik(e){return e.replace(Dk,"\\$&")}function Nk(e){return new RegExp("^(?:"+e.map(Ik).join("|")+")","i")}function Lk(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Bk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Vk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Hk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Uk(e,t,n){var r=Pk.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Kk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $k(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 Wk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function qk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Gk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zk(e,t,n){var r=Pk.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Xk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Jk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=Pk.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eE(e,t,n){var r=Pk.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tE(e,t,n){var r=Mk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nE(e,t,n){var r=Pk.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=Pk.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oE(e,t){return Rk(e.getDate(),t,2)}function iE(e,t){return Rk(e.getHours(),t,2)}function aE(e,t){return Rk(e.getHours()%12||12,t,2)}function sE(e,t){return Rk(1+ZS.count(yk(e),e),t,3)}function cE(e,t){return Rk(e.getMilliseconds(),t,3)}function uE(e,t){return cE(e,t)+"000"}function lE(e,t){return Rk(e.getMonth()+1,t,2)}function fE(e,t){return Rk(e.getMinutes(),t,2)}function pE(e,t){return Rk(e.getSeconds(),t,2)}function dE(e){var t=e.getDay();return 0===t?7:t}function hE(e,t){return Rk(QS.count(yk(e)-1,e),t,2)}function gE(e){var t=e.getDay();return t>=4||0===t?rk(e):rk.ceil(e)}function yE(e,t){return e=gE(e),Rk(rk.count(yk(e),e)+(4===yk(e).getDay()),t,2)}function vE(e){return e.getDay()}function mE(e,t){return Rk(ek.count(yk(e)-1,e),t,2)}function bE(e,t){return Rk(e.getFullYear()%100,t,2)}function wE(e,t){return Rk((e=gE(e)).getFullYear()%100,t,2)}function xE(e,t){return Rk(e.getFullYear()%1e4,t,4)}function _E(e,t){var n=e.getDay();return Rk((e=n>=4||0===n?rk(e):rk.ceil(e)).getFullYear()%1e4,t,4)}function CE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rk(t/60|0,"0",2)+Rk(t%60,"0",2)}function OE(e,t){return Rk(e.getUTCDate(),t,2)}function SE(e,t){return Rk(e.getUTCHours(),t,2)}function kE(e,t){return Rk(e.getUTCHours()%12||12,t,2)}function EE(e,t){return Rk(1+YS.count(vk(e),e),t,3)}function jE(e,t){return Rk(e.getUTCMilliseconds(),t,3)}function AE(e,t){return jE(e,t)+"000"}function TE(e,t){return Rk(e.getUTCMonth()+1,t,2)}function PE(e,t){return Rk(e.getUTCMinutes(),t,2)}function ME(e,t){return Rk(e.getUTCSeconds(),t,2)}function DE(e){var t=e.getUTCDay();return 0===t?7:t}function RE(e,t){return Rk(sk.count(vk(e)-1,e),t,2)}function IE(e){var t=e.getUTCDay();return t>=4||0===t?fk(e):fk.ceil(e)}function NE(e,t){return e=IE(e),Rk(fk.count(vk(e),e)+(4===vk(e).getUTCDay()),t,2)}function LE(e){return e.getUTCDay()}function BE(e,t){return Rk(ck.count(vk(e)-1,e),t,2)}function FE(e,t){return Rk(e.getUTCFullYear()%100,t,2)}function zE(e,t){return Rk((e=IE(e)).getUTCFullYear()%100,t,2)}function VE(e,t){return Rk(e.getUTCFullYear()%1e4,t,4)}function HE(e,t){var n=e.getUTCDay();return Rk((e=n>=4||0===n?fk(e):fk.ceil(e)).getUTCFullYear()%1e4,t,4)}function UE(){return"+0000"}function KE(){return"%"}function $E(e){return+e}function WE(e){return Math.floor(+e/1e3)}!function(e){kk=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Nk(o),l=Lk(o),f=Nk(i),p=Lk(i),d=Nk(a),h=Lk(a),g=Nk(s),y=Lk(s),v=Nk(c),m=Lk(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:oE,e:oE,f:uE,g:wE,G:_E,H:iE,I:aE,j:sE,L:cE,m:lE,M:fE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:$E,s:WE,S:pE,u:dE,U:hE,V:yE,w:vE,W:mE,x:null,X:null,y:bE,Y:xE,Z:CE,"%":KE},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:OE,e:OE,f:AE,g:zE,G:HE,H:SE,I:kE,j:EE,L:jE,m:TE,M:PE,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:$E,s:WE,S:ME,u:DE,U:RE,V:NE,w:LE,W:BE,x:null,X:null,y:FE,Y:VE,Z:UE,"%":KE},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:Gk,e:Gk,f:eE,g:Kk,G:Uk,H:Yk,I:Yk,j:Zk,L:Qk,m:qk,M:Xk,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:Wk,Q:nE,s:rE,S:Jk,u:Fk,U:zk,V:Vk,w:Bk,W:Hk,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:Kk,Y:Uk,Z:$k,"%":tE};function _(e,t){return function(n){var r,o,i,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!=(o=Tk[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=Sk(1900,void 0,1);if(O(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Ok(Sk(i.y,0,1))).getUTCDay(),r=o>4||0===o?ck.ceil(r):ck(r),r=YS.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ck(Sk(i.y,0,1))).getDay(),r=o>4||0===o?ek.ceil(r):ek(r),r=ZS.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Ok(Sk(i.y,0,1)).getUTCDay():Ck(Sk(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Ok(i)):Ck(i)}}function O(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in Tk?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(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),Ek=kk.format,kk.parse,jk=kk.utcFormat,Ak=kk.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qE="%Y-%m-%dT%H:%M:%S.%LZ";function GE(e){return new Date(e)}function ZE(e){return e instanceof Date?+e:+new Date(+e)}function YE(e,t,n,r,o,i,a,s,c,u){var l=XO(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,ZE)):p().map(GE)},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(yS(n,e)):l},l.copy=function(){return ZO(l,YE(e,t,n,r,o,i,a,s,c,u))},l}function XE(){var e,t,n,r,o,i=0,a=1,s=$O,c=!1;function u(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(LO),u.rangeRound=l(BO),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function JE(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function QE(){var e=TS(XE());return e.copy=function(){return JE(e,QE()).exponent(e.exponent())},lC.apply(e,arguments)}function ej(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=$O,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=HO(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(LO),d.rangeRound=h(BO),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function tj(){var e=TS(ej());return e.copy=function(){return JE(e,tj()).exponent(e.exponent())},lC.apply(e,arguments)}Date.prototype.toISOString||jk(qE),+new Date("2000-01-01T00:00:00.000Z")||Ak(qE);var nj,rj=Object.freeze({__proto__:null,scaleBand:dC,scaleDiverging:function e(){var t=hS(ej()($O));return t.copy=function(){return JE(t,e())},lC.apply(t,arguments)},scaleDivergingLog:function e(){var t=CS(ej()).domain([.1,1,10]);return t.copy=function(){return JE(t,e()).base(t.base())},lC.apply(t,arguments)},scaleDivergingPow:tj,scaleDivergingSqrt:function(){return tj.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=kS(ej());return t.copy=function(){return JE(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,UO),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,UO):[0,1],hS(r)},scaleImplicit:fC,scaleLinear:gS,scaleLog:function e(){const t=CS(YO()).domain([1,10]);return t.copy=()=>ZO(t,e()).base(t.base()),uC.apply(t,arguments),t},scaleOrdinal:pC,scalePoint:gC,scalePow:PS,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=cC(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[W_(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(V_),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},uC.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[W_(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},uC.apply(hS(s),arguments)},scaleRadial:function e(){var t,n=XO(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(MS(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,UO)).map(MS)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},uC.apply(i,arguments),hS(i)},scaleSequential:function e(){var t=hS(XE()($O));return t.copy=function(){return JE(t,e())},lC.apply(t,arguments)},scaleSequentialLog:function e(){var t=CS(XE()).domain([1,10]);return t.copy=function(){return JE(t,e()).base(t.base())},lC.apply(t,arguments)},scaleSequentialPow:QE,scaleSequentialQuantile:function e(){var t=[],n=$O;function r(e){if(null!=e&&!isNaN(e=+e))return n((W_(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(V_),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return iC(e);if(t>=1)return oC(e);var r,o=(r-1)*t,i=Math.floor(o),a=oC(aC(e,i).subarray(0,i+1));return a+(iC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},lC.apply(r,arguments)},scaleSequentialSqrt:function(){return QE.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=kS(XE());return t.copy=function(){return JE(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleSqrt:function(){return PS.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=kS(YO());return t.copy=function(){return ZO(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[W_(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},uC.apply(i,arguments)},scaleTime:function(){return uC.apply(YE(xk,_k,yk,hk,QS,ZS,qS,$S,KS,Ek).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return uC.apply(YE(bk,wk,vk,gk,sk,YS,GS,WS,KS,jk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:dS}),oj={},ij={},aj=1e9,sj=!0,cj="[DecimalError] ",uj=cj+"Invalid argument: ",lj=cj+"Exponent out of range: ",fj=Math.floor,pj=Math.pow,dj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hj=1e7,gj=7,yj=9007199254740991,vj=fj(yj/gj),mj={};function bj(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),sj?Aj(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/gj))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/hj|0,c[i]%=hj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,sj?Aj(t,f):t}function wj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(uj+e)}function xj(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=gj-r.length)&&(i+=kj(n)),i+=r;a=e[t],(n=gj-(r=a+"").length)&&(i+=kj(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}mj.absoluteValue=mj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},mj.comparedTo=mj.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},mj.decimalPlaces=mj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*gj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},mj.dividedBy=mj.div=function(e){return _j(this,new this.constructor(e))},mj.dividedToIntegerBy=mj.idiv=function(e){var t=this.constructor;return Aj(_j(this,new t(e),0,1),t.precision)},mj.equals=mj.eq=function(e){return!this.cmp(e)},mj.exponent=function(){return Oj(this)},mj.greaterThan=mj.gt=function(e){return this.cmp(e)>0},mj.greaterThanOrEqualTo=mj.gte=function(e){return this.cmp(e)>=0},mj.isInteger=mj.isint=function(){return this.e>this.d.length-2},mj.isNegative=mj.isneg=function(){return this.s<0},mj.isPositive=mj.ispos=function(){return this.s>0},mj.isZero=function(){return 0===this.s},mj.lessThan=mj.lt=function(e){return this.cmp(e)<0},mj.lessThanOrEqualTo=mj.lte=function(e){return this.cmp(e)<1},mj.logarithm=mj.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(nj))throw Error(cj+"NaN");if(n.s<1)throw Error(cj+(n.s?"NaN":"-Infinity"));return n.eq(nj)?new r(0):(sj=!1,t=_j(Ej(n,i),Ej(e,i),i),sj=!0,Aj(t,o))},mj.minus=mj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Tj(t,e):bj(t,(e.s=-e.s,e))},mj.modulo=mj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(cj+"NaN");return n.s?(sj=!1,t=_j(n,e,0,1).times(e),sj=!0,n.minus(t)):Aj(new r(n),o)},mj.naturalExponential=mj.exp=function(){return Cj(this)},mj.naturalLogarithm=mj.ln=function(){return Ej(this)},mj.negated=mj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},mj.plus=mj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bj(t,e):Tj(t,(e.s=-e.s,e))},mj.precision=mj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(uj+e);if(t=Oj(o)+1,n=(r=o.d.length-1)*gj+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},mj.squareRoot=mj.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(cj+"NaN")}for(e=Oj(s),sj=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=xj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=fj((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(_j(s,i,a+2)).times(.5),xj(i.d).slice(0,a)===(t=xj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(Aj(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return sj=!0,Aj(r,n)},mj.times=mj.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+d[r]*p[o-r-1]+t,i[o--]=s%hj|0,t=s/hj|0;i[o]=(i[o]+t)%hj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,sj?Aj(e,f.precision):e},mj.toDecimalPlaces=mj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(wj(e,0,aj),void 0===t?t=r.rounding:wj(t,0,8),Aj(n,e+Oj(n)+1,t))},mj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=Pj(r,!0):(wj(e,0,aj),void 0===t?t=o.rounding:wj(t,0,8),n=Pj(r=Aj(new o(r),e+1,t),!0,e+1)),n},mj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?Pj(o):(wj(e,0,aj),void 0===t?t=i.rounding:wj(t,0,8),n=Pj((r=Aj(new i(o),e+Oj(o)+1,t)).abs(),!1,e+Oj(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},mj.toInteger=mj.toint=function(){var e=this,t=e.constructor;return Aj(new t(e),Oj(e)+1,t.rounding)},mj.toNumber=function(){return+this},mj.toPower=mj.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(nj);if(!(s=new c(s)).s){if(e.s<1)throw Error(cj+"Infinity");return s}if(s.eq(nj))return s;if(r=c.precision,e.eq(nj))return Aj(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=yj){for(o=new c(nj),t=Math.ceil(r/gj+4),sj=!1;n%2&&Mj((o=o.times(s)).d,t),0!==(n=fj(n/2));)Mj((s=s.times(s)).d,t);return sj=!0,e.s<0?new c(nj).div(o):Aj(o,r)}}else if(i<0)throw Error(cj+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,sj=!1,o=e.times(Ej(s,r+12)),sj=!0,(o=Cj(o)).s=i,o},mj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=Pj(o,(n=Oj(o))<=i.toExpNeg||n>=i.toExpPos):(wj(e,1,aj),void 0===t?t=i.rounding:wj(t,0,8),r=Pj(o=Aj(new i(o),e,t),e<=(n=Oj(o))||n<=i.toExpNeg,e)),r},mj.toSignificantDigits=mj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(wj(e,1,aj),void 0===t?t=n.rounding:wj(t,0,8)),Aj(new n(this),e,t)},mj.toString=mj.valueOf=mj.val=mj.toJSON=mj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Oj(e),n=e.constructor;return Pj(e,t<=n.toExpNeg||t>=n.toExpPos)};var _j=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%hj|0,r=n/hj|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*hj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(cj+"Division by zero");for(c=r.e-o.e,C=j.length,x=E.length,h=(d=new S(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=S.precision:a?i+(Oj(r)-Oj(o))+1:i)<0)return new S(0);if(m=m/gj+2|0,u=0,1==C)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*hj+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=hj/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=j.slice()).unshift(0),_=j[0],j[1]>=hj/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*hj+(g[1]||0)),(l=v/_|0)>1?(l>=hj&&(l=hj-1),1==(s=t(f=e(j,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:j,p))):(0==l&&(s=l=1),f=j.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?O:j,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,Aj(d,a?i+Oj(d)+1:i)}}();function Cj(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(Oj(e)>16)throw Error(lj+Oj(e));if(!e.s)return new u(nj);for(null==t?(sj=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(pj(2,c))/Math.LN10*2+5|0,n=r=o=new u(nj),u.precision=a;;){if(r=Aj(r.times(e),a),n=n.times(++s),xj((i=o.plus(_j(r,n,a))).d).slice(0,a)===xj(o.d).slice(0,a)){for(;c--;)o=Aj(o.times(o),a);return u.precision=l,null==t?(sj=!0,Aj(o,l)):o}o=i}}function Oj(e){for(var t=e.e*gj,n=e.d[0];n>=10;n/=10)t++;return t}function Sj(e,t,n){if(t>e.LN10.sd())throw sj=!0,n&&(e.precision=n),Error(cj+"LN10 precision limit exceeded");return Aj(new e(e.LN10),t)}function kj(e){for(var t="";e--;)t+="0";return t}function Ej(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(cj+(p.s?"NaN":"-Infinity"));if(p.eq(nj))return new h(0);if(null==t?(sj=!1,u=g):u=t,p.eq(10))return null==t&&(sj=!0),Sj(h,u);if(u+=10,h.precision=u,r=(n=xj(d)).charAt(0),i=Oj(p),!(Math.abs(i)<15e14))return c=Sj(h,u+2,g).times(i+""),p=Ej(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(sj=!0,Aj(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=xj((p=p.times(e)).d)).charAt(0),f++;for(i=Oj(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=_j(p.minus(nj),p.plus(nj),u),l=Aj(p.times(p),u),o=3;;){if(a=Aj(a.times(l),u),xj((c=s.plus(_j(a,new h(o),u))).d).slice(0,u)===xj(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(Sj(h,u+2,g).times(i+""))),s=_j(s,new h(f),u),h.precision=g,null==t?(sj=!0,Aj(s,g)):s;s=c,o+=2}}function jj(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=fj(n/gj),e.d=[],r=(n+1)%gj,n<0&&(r+=gj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=gj;r<o;)e.d.push(+t.slice(r,r+=gj));t=t.slice(r),r=gj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),sj&&(e.e>vj||e.e<-vj))throw Error(lj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Aj(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=gj,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/gj))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=gj)-gj+a}if(void 0!==n&&(s=u/(i=pj(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/pj(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=Oj(e),f.length=1,t=t-i-1,f[0]=pj(10,(gj-t%gj)%gj),e.e=fj(-t/gj)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=pj(10,gj-r),f[l]=o>0?(u/pj(10,a-o)%pj(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==hj&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=hj)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(sj&&(e.e>vj||e.e<-vj))throw Error(lj+Oj(e));return e}function Tj(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),sj?Aj(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(d/gj),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=hj-1;--c[i],c[o]+=hj}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,sj?Aj(t,d):t):new p(0)}function Pj(e,t,n){var r,o=Oj(e),i=xj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+kj(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+kj(-o-1)+i,n&&(r=n-a)>0&&(i+=kj(r))):o>=a?(i+=kj(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+kj(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=kj(r))),e.s<0?"-"+i:i}function Mj(e,t){if(e.length>t)return e.length=t,!0}function Dj(e){if(!e||"object"!=typeof e)throw Error(cj+"Object expected");var t,n,r,o=["precision",1,aj,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(fj(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(uj+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(uj+n+": "+r);this[n]=new this(r)}return this}var Rj=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(uj+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])):jj(t,e.toString())}if("string"!=typeof e)throw Error(uj+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!dj.test(e))throw Error(uj+e);jj(t,e)}if(i.prototype=mj,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=Dj,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});nj=new Rj(1);var Ij=Rj,Nj=u(Object.freeze({__proto__:null,get Decimal(){return Rj},default:Ij})),Lj={};function Bj(e){return function(e){if(Array.isArray(e))return Fj(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 Fj(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 Fj(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 Fj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Lj,"__esModule",{value:!0}),Lj.memoize=Lj.reverse=Lj.compose=Lj.map=Lj.range=Lj.curry=Lj.PLACE_HOLDER=void 0;var zj=function(e){return e},Vj={"@@functional/placeholder":!0};Lj.PLACE_HOLDER=Vj;var Hj=function(e){return e===Vj},Uj=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Hj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Kj=function(e){return function e(t,n){return 1===t?n:Uj((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==Vj})).length;return a>=t?n.apply(void 0,o):e(t-a,Uj((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return Hj(e)?t.shift():e}));return n.apply(void 0,Bj(i).concat(t))})))}))}(e.length,e)};Lj.curry=Kj;Lj.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var $j=Kj((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));Lj.map=$j;Lj.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return zj;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}};Lj.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};Lj.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var Wj={};Object.defineProperty(Wj,"__esModule",{value:!0}),Wj.default=void 0;var qj=function(e){return e&&e.__esModule?e:{default:e}}(Nj),Gj=Lj;var Zj=(0,Gj.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),Yj=(0,Gj.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),Xj=(0,Gj.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),Jj={rangeStep:function(e,t,n){for(var r=new qj.default(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new qj.default(e).abs().log(10).toNumber())+1},interpolateNumber:Zj,uninterpolateNumber:Yj,uninterpolateTruncation:Xj};Wj.default=Jj,Object.defineProperty(ij,"__esModule",{value:!0}),ij.getTickValuesFixedDomain=ij.getTickValues=ij.getNiceTickValues=void 0;var Qj=nA(Nj),eA=Lj,tA=nA(Wj);function nA(e){return e&&e.__esModule?e:{default:e}}function rA(e){return function(e){if(Array.isArray(e))return aA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||iA(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 oA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||iA(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 iA(e,t){if(e){if("string"==typeof e)return aA(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)?aA(e,t):void 0}}function aA(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 sA(e){var t=oA(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function cA(e,t,n){if(e.lte(0))return new Qj.default(0);var r=tA.default.getDigitCount(e.toNumber()),o=new Qj.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new Qj.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new Qj.default(Math.ceil(s))}function uA(e,t,n){var r=1,o=new Qj.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Qj.default(10).pow(tA.default.getDigitCount(e)-1),o=new Qj.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Qj.default(Math.floor(e)))}else 0===e?o=new Qj.default(Math.floor((t-1)/2)):n||(o=new Qj.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,eA.compose)((0,eA.map)((function(e){return o.add(new Qj.default(e-a).mul(r)).toNumber()})),eA.range);return s(0,t)}function lA(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Qj.default(0),tickMin:new Qj.default(0),tickMax:new Qj.default(0)};var i,a=cA(new Qj.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new Qj.default(0):(i=new Qj.default(e).add(t).div(2)).sub(new Qj.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new Qj.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?lA(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new Qj.default(s).mul(a)),tickMax:i.add(new Qj.default(c).mul(a))})}var fA=(0,eA.memoize)((function(e){var t=oA(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=oA(sA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat(rA((0,eA.range)(0,o-1).map((function(){return 1/0})))):[].concat(rA((0,eA.range)(0,o-1).map((function(){return-1/0}))),[u]);return n>r?(0,eA.reverse)(l):l}if(c===u)return uA(c,o,i);var f=lA(c,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,g=tA.default.rangeStep(d,h.add(new Qj.default(.1).mul(p)),p);return n>r?(0,eA.reverse)(g):g}));ij.getNiceTickValues=fA;var pA=(0,eA.memoize)((function(e){var t=oA(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=oA(sA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return uA(c,o,i);var l=cA(new Qj.default(u).sub(c).div(a-1),i,0),f=(0,eA.compose)((0,eA.map)((function(e){return new Qj.default(c).add(new Qj.default(e).mul(l)).toNumber()})),eA.range),p=f(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?(0,eA.reverse)(p):p}));ij.getTickValues=pA;var dA=(0,eA.memoize)((function(e,t){var n=oA(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=oA(sA([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),l=cA(new Qj.default(c).sub(s).div(u-1),i,0),f=[].concat(rA(tA.default.rangeStep(new Qj.default(s),new Qj.default(c).sub(new Qj.default(.99).mul(l)),l)),[c]);return r>o?(0,eA.reverse)(f):f}));ij.getTickValuesFixedDomain=dA,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=ij}(oj);var hA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gA(){return gA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gA.apply(this,arguments)}function yA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vA(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 vA(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 vA(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 mA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bA(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=mA(e,hA),f=nc(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=yA(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=d+n,_=x+o,C=x-o,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"===r){var k=u.scale,E=p+n,j=E-o,A=E+o,T=k(h-y),P=k(h+v);m.push({x1:j,y1:P,x2:A,y2:P}),m.push({x1:E,y1:T,x2:E,y2:P}),m.push({x1:j,y1:T,x2:A,y2:T})}return t.createElement(hc,gA({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",gA({},e,{key:"line-".concat(n)}))})))}));return t.createElement(hc,{className:"recharts-errorBars"},p)}function wA(e){return wA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wA(e)}function xA(e){return function(e){if(Array.isArray(e))return _A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _A(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 _A(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 _A(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 CA(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 OA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CA(Object(n),!0).forEach((function(t){SA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e,t,n){return vs(e)||vs(t)?n:Es(t)?ys(e,t,n):ni(t)?t(e):n}function EA(e,t,n,r){var o=z_(e,(function(e){return kA(e,t)}));if("number"===n){var i=o.filter((function(e){return ks(e)||parseFloat(e)}));return i.length?[D_(i),j_(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!vs(e)})):o).map((function(e){return Es(e)||e instanceof Date?e:""}))}bA.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},bA.displayName="ErrorBar";var jA=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},AA=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Xs(n,og);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:jA(t),value:o||r,payload:t.props}})),OA(OA(OA({},a.props),og.getWithHeight(a,o)),{},{payload:t,item:a})):null},TA=function(e,t,n,r,o){var i=Ys(t.props.children,bA).filter((function(e){return function(e,t,n){return!!vs(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=kA(t,n,0),o=ri(r)?[D_(r),j_(r)]:[r,r],i=a.reduce((function(e,n){var r=kA(t,n,0),i=o[0]-Math.abs(ri(r)?r[0]:r),a=o[1]+Math.abs(ri(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},PA=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&TA(e,t,i,r)||EA(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},MA=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},DA=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},RA=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType?2*Os(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},IA=function(e,t,n){var r;return ni(n)?r=n:ni(t)&&(r=t),ni(e)||r?function(t,n,o,i){ni(e)&&e(t,n,o,i),ni(r)&&r(t,n,o,i)}:null},NA=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:dC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:gS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:gC(),realScaleType:"point"}:"category"===o?{scale:dC(),realScaleType:"band"}:{scale:gS(),realScaleType:"linear"};if(ui(r)){var s="scale".concat(cd(r));return{scale:(rj[s]||gC)(),realScaleType:rj[s]?s:"point"}}return ni(r)?{scale:r}:{scale:gC(),realScaleType:"point"}},LA=1e-4,BA=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-LA,i=Math.max(r[0],r[1])+LA,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},FA=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},zA=function(e,t){if(!t||2!==t.length||!ks(t[0])||!ks(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!ks(e[0])||e[0]<n)&&(o[0]=n),(!ks(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},VA={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Cs(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}mh(e,t)}},none:mh,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}mh(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,mh(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Cs(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},HA=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=ud([]),t=bh,n=mh,r=wh;function o(o){var i,a,s=Array.from(e.apply(this,arguments),xh),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=Cd(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:ud(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ud(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?bh:"function"==typeof e?e:ud(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?mh:e,o):n},o}().keys(r).value((function(e,t){return+kA(e,t,0)})).order(bh).offset(VA[n]);return o(e)},UA=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var u=oj.getNiceTickValues(c,o,a);return e.domain([D_(u),j_(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:oj.getTickValuesFixedDomain(l,o,a)}}return null},KA=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!vs(o[t.dataKey])){var s=Ds(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=kA(o,vs(a)?t.dataKey:a);return vs(c)?null:t.scale(c)},$A=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=kA(i,t.dataKey,t.domain[a]);return vs(s)?null:t.scale(s)-o/2+r},WA=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},qA=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[D_(t.concat([e[0]]).filter(ks)),j_(t.concat([e[1]]).filter(ks))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},GA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YA=function(e,t,n){if(ni(e))return e(t,n);if(!ri(e))return t;var r=[];if(ks(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(GA.test(e[0])){var o=+GA.exec(e[0])[1];r[0]=t[0]-o}else ni(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(ks(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(ZA.test(e[1])){var i=+ZA.exec(e[1])[1];r[1]=t[1]+i}else ni(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},XA=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Tb(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},JA=function(e,t,n){return e&&e.length?x_(e,ys(n,"type.defaultProps.domain"))?t:e:t},QA=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return OA(OA({},nc(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:jA(e),value:kA(t,r),type:s,payload:t,chartType:c})};function eT(e){return eT="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},eT(e)}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 nT(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){rT(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 rT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iT(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 iT(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 iT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aT=Math.PI/180,sT=function(e){return 180*e/Math.PI},cT=function(e,t,n,r){return{x:e+Math.cos(-aT*r)*n,y:t+Math.sin(-aT*r)*n}},uT=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},lT=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ts(e.cx,i,i/2),l=Ts(e.cy,a,a/2),f=uT(i,a,n),p=Ts(e.innerRadius,f,0),d=Ts(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(vs(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=oT(i=a.range,2);s=g[0],c=g[1]}var y=NA(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),BA(m);var b=UA(m,nT(nT({},a),{},{realScaleType:v})),w=nT(nT(nT({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return nT(nT({},e),{},rT({},n,w))}),{})},fT=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:sT(c),angleInRadian:c}},pT=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},dT=function(e,t){var n=e.x,r=e.y,o=fT({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?nT(nT({},t),{},{radius:i,angle:pT(d,t)}):null};function hT(e){return hT="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},hT(e)}function gT(e){return function(e){if(Array.isArray(e))return yT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yT(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 yT(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 yT(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 vT(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 mT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vT(Object(n),!0).forEach((function(t){bT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wT(){return wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wT.apply(this,arguments)}var xT=function(e){var t=e.value,n=e.formatter,r=vs(e.children)?t:e.children;return ni(n)?n(r):r},_T=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return Os(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=v):"insideEnd"===a?(o=y-w*c,i=!v):"end"===a&&(o=y+w*c,i=v),i=b<=0?i:!i;var x=cT(f,p,m,o),_=cT(f,p,m,o+359*(i?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),O=vs(e.id)?As("recharts-radial-line-"):e.id;return t.createElement("text",wT({},r,{dominantBaseline:"central",className:To("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:O,d:C})),t.createElement("textPath",{xlinkHref:"#".concat(O)},n))},CT=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=cT(i,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=cT(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},OT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,u=i.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return mT(mT({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return mT(mT({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return mT(mT({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return mT(mT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?mT({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?mT({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?mT({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?mT({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?mT({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?mT({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?mT({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?mT({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Po(o)&&(ks(o.x)||Ss(o.x))&&(ks(o.y)||Ss(o.y))?mT({x:a+Ts(o.x,c),y:s+Ts(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):mT({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},ST=function(e){return"cx"in e&&ks(e.cx)};function kT(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,u=void 0===c?"":c,l=e.textBreakAll;if(!r||vs(i)&&vs(a)&&!t.isValidElement(s)&&!ni(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(ni(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=xT(e);var f=ST(r),p=nc(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return _T(e,n,p);var d=f?CT(e):OT(e);return t.createElement(b_,wT({className:To("recharts-label",u)},p,d,{breakAll:l}),n)}kT.displayName="Label",kT.defaultProps={offset:5};var ET=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(ks(h)&&ks(g)){if(ks(l)&&ks(f))return{x:l,y:f,width:h,height:g};if(ks(p)&&ks(d))return{x:p,y:d,width:h,height:g}}return ks(l)&&ks(f)?{x:l,y:f,width:0,height:0}:ks(t)&&ks(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},jT=function(e,n){return e?!0===e?t.createElement(kT,{key:"label-implicit",viewBox:n}):Es(e)?t.createElement(kT,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===kT?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(kT,{key:"label-implicit",content:e,viewBox:n}):ni(e)?t.createElement(kT,{key:"label-implicit",content:e,viewBox:n}):Po(e)?t.createElement(kT,wT({viewBox:n},e,{key:"label-implicit"})):null:null};kT.parseViewBox=ET,kT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=ET(e),a=Ys(o,kT).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));return r?[jT(e.label,n||i)].concat(gT(a)):a};var AT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function TT(e){return TT="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},TT(e)}var PT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function MT(e){return function(e){if(Array.isArray(e))return DT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return DT(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 DT(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 DT(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 RT(){return RT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RT.apply(this,arguments)}function IT(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?IT(Object(n),!0).forEach((function(t){LT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==TT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var FT={valueAccessor:function(e){return ri(e.value)?AT(e.value):e.value}};function zT(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=BT(e,PT);return n&&n.length?t.createElement(hc,{className:"recharts-label-list"},n.map((function(e,n){var u=vs(o)?r(e,n):kA(e&&e.payload,o),l=vs(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(kT,RT({},nc(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:kT.parseViewBox(vs(i)?e:NT(NT({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function VT(e){return VT="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},VT(e)}function HT(){return HT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HT.apply(this,arguments)}function UT(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,qT(r.key),r)}}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KT(e,t)}function $T(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=WT(e);if(t){var o=WT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WT(e){return WT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WT(e)}function qT(e){var t=function(e,t){if("object"!==VT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VT(t)?t:String(t)}zT.displayName="LabelList",zT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=Ys(e.children,zT).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(zT,{key:"labelList-implicit",data:n}):t.isValidElement(e)||ni(e)?t.createElement(zT,{key:"labelList-implicit",data:n,content:e}):Po(e)?t.createElement(zT,RT({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(MT(o)):o},zT.defaultProps=FT;var GT=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/aT,f=c?o:o+i*l,p=c?o-i*l:o;return{center:cT(t,n,u,f),circleTangency:cT(t,n,r,f),lineTangency:cT(t,n,u*Math.cos(l*aT),p),theta:l}},ZT=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Os(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=cT(t,n,o,i),u=cT(t,n,o,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=cT(t,n,r,i),p=cT(t,n,r,s);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},YT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KT(e,t)}(a,t.PureComponent);var n,r,o,i=$T(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<o||u===l)return null;var p,d=To("recharts-sector",f),h=i-o,g=Ts(a,h,0,!0);return p=g>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=Os(u-c),f=GT({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=GT({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):ZT({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=GT({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=GT({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,j=S.theta,A=s?Math.abs(c-u):Math.abs(c-u)-O-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):ZT({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",HT({},nc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&UT(n.prototype,r),o&&UT(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function XT(e){return XT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XT(e)}function JT(){return JT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JT.apply(this,arguments)}function QT(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 eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QT(Object(n),!0).forEach((function(t){iP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tP(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,aP(r.key),r)}}function nP(e,t){return nP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nP(e,t)}function rP(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=oP(e);if(t){var o=oP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function oP(e){return oP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oP(e)}function iP(e,t,n){return(t=aP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aP(e){var t=function(e,t){if("object"!==XT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XT(t)?t:String(t)}!function(e,t,n){(t=qT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(YT,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var sP={curveBasisClosed:function(e){return new Yd(e)},curveBasisOpen:function(e){return new Xd(e)},curveBasis:function(e){return new Zd(e)},curveLinearClosed:function(e){return new sh(e)},curveLinear:Sd,curveMonotoneX:function(e){return new ph(e)},curveMonotoneY:function(e){return new dh(e)},curveNatural:function(e){return new gh(e)},curveStep:function(e){return new vh(e,.5)},curveStepAfter:function(e){return new vh(e,1)},curveStepBefore:function(e){return new vh(e,0)}},cP=function(e){return e.x===+e.x&&e.y===+e.y},uP=function(e){return e.x},lP=function(e){return e.y},fP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nP(e,t)}(a,t.PureComponent);var n,r,o,i=rP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(ni(e))return e;var n="curve".concat(cd(e));return"curveMonotone"===n&&t?sP["".concat(n).concat("vertical"===t?"Y":"X")]:sP[n]||Sd}(n,i),c=a?r.filter((function(e){return cP(e)})):r;if(ri(o)){var u=a?o.filter((function(e){return cP(e)})):o,l=c.map((function(e,t){return eP(eP({},e),{},{base:u[t]})}));return(e="vertical"===i?Ad().y(lP).x1(uP).x0((function(e){return e.base.x})):Ad().x(uP).y1(lP).y0((function(e){return e.base.y}))).defined(cP).curve(s),e(l)}return(e="vertical"===i&&ks(o)?Ad().y(lP).x1(uP).x0(o):ks(o)?Ad().x(uP).y1(lP).y0(o):jd().x(uP).y(lP)).defined(cP).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",JT({},nc(this.props),zs(this.props),{className:To("recharts-curve",n),d:a,ref:i}))}}])&&tP(n.prototype,r),o&&tP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pP(e){return pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pP(e)}function dP(){return dP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dP.apply(this,arguments)}function hP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wP(r.key),r)}}function gP(e,t){return gP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gP(e,t)}function yP(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=mP(e);if(t){var o=mP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vP(e)}(this,n)}}function vP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function bP(e,t,n){return(t=wP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wP(e){var t=function(e,t){if("object"!==pP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pP(t)?t:String(t)}iP(fP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var xP=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},_P=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},CP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gP(e,t)}(a,t.PureComponent);var n,r,o,i=yP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bP(vP(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=To("recharts-rectangle",c);return g?t.createElement(jm,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:p,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(jm,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},t.createElement("path",dP({},nc(e.props,!0),{className:y,d:xP(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",dP({},nc(this.props,!0),{className:y,d:xP(r,o,i,a,s)}))}}],r&&hP(n.prototype,r),o&&hP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function OP(e){return OP="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},OP(e)}bP(CP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var SP=["points","className","baseLinePoints","connectNulls"];function kP(){return kP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kP.apply(this,arguments)}function EP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jP(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==OP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===OP(i)?i:String(i)),r)}var o,i}function AP(e,t){return AP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AP(e,t)}function TP(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=PP(e);if(t){var o=PP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===OP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function PP(e){return PP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PP(e)}function MP(e){return function(e){if(Array.isArray(e))return DP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return DP(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 DP(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 DP(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 RP=function(e){return e&&e.x===+e.x&&e.y===+e.y},IP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){RP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),RP(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(MP(e),MP(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},NP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AP(e,t)}(a,t.PureComponent);var n,r,o,i=TP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=EP(e,SP);if(!n||!n.length)return null;var s=To("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=IP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(IP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",kP({},nc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",kP({},nc(a,!0),{fill:"none",d:IP(n,i)})):null,c?t.createElement("path",kP({},nc(a,!0),{fill:"none",d:IP(o,i)})):null)}var l=IP(n,i);return t.createElement("path",kP({},nc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&jP(n.prototype,r),o&&jP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function LP(e){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LP(e)}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BP.apply(this,arguments)}function FP(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==LP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===LP(i)?i:String(i)),r)}var o,i}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zP(e,t)}function VP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HP(e);if(t){var o=HP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===LP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function HP(e){return HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HP(e)}var UP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zP(e,t)}(a,t.PureComponent);var n,r,o,i=VP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=To("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",BP({},nc(this.props),zs(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&FP(n.prototype,r),o&&FP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function KP(e){return KP="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},KP(e)}function $P(){return $P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$P.apply(this,arguments)}function WP(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,YP(r.key),r)}}function qP(e,t){return qP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qP(e,t)}function GP(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=ZP(e);if(t){var o=ZP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ZP(e){return ZP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZP(e)}function YP(e){var t=function(e,t){if("object"!==KP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KP(t)?t:String(t)}var XP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qP(e,t)}(a,t.PureComponent);var n,r,o,i=GP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return ks(n)&&ks(r)&&ks(o)&&ks(i)&&ks(s)&&ks(c)?t.createElement("path",$P({},nc(this.props,!0),{className:To("recharts-cross",u),d:a.getPath(n,r,o,i,s,c)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&WP(n.prototype,r),o&&WP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function JP(e){return JP="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},JP(e)}function QP(){return QP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QP.apply(this,arguments)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eM(Object(n),!0).forEach((function(t){aM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nM(e,t){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,sM(r.key),r)}}function rM(e,t){return rM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rM(e,t)}function oM(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=iM(e);if(t){var o=iM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function iM(e){return iM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iM(e)}function aM(e,t,n){return(t=sM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sM(e){var t=function(e,t){if("object"!==JP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JP(t)?t:String(t)}!function(e,t,n){(t=YP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(XP,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var cM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rM(e,t)}(a,t.PureComponent);var n,r,o,i=oM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.polarAngles,i="";return o.forEach((function(t,o){var a=cT(n,r,e,t);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),i+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=tM({stroke:"#ccc"},nc(this.props));return t.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e,a){var s=cT(n,r,o,e),u=cT(n,r,i,e);return t.createElement("line",QP({},c,{key:"line-".concat(a),x1:s.x,y1:s.y,x2:u.x,y2:u.y}))})))}},{key:"renderConcentricCircle",value:function(e,n,r){var o=this.props,i=o.cx,a=o.cy,s=tM(tM({stroke:"#ccc"},nc(this.props)),{},{fill:"none"},r);return t.createElement("circle",QP({},s,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:i,cy:a,r:e}))}},{key:"renderConcentricPolygon",value:function(e,n,r){var o=tM(tM({stroke:"#ccc"},nc(this.props)),{},{fill:"none"},r);return t.createElement("path",QP({},o,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,n=this.props,r=n.polarRadius,o=n.gridType;return r&&r.length?t.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(t,n){return"circle"===o?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:t.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&nM(n.prototype,r),o&&nM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();aM(cM,"displayName","PolarGrid"),aM(cM,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var uM=C_,lM=lp,fM=A_;var pM=function(e,t){return e&&e.length?uM(e,lM(t),fM):void 0},dM=C_,hM=O_,gM=lp;var yM=function(e,t){return e&&e.length?dM(e,gM(t),hM):void 0},vM=["cx","cy","angle","ticks","axisLine"],mM=["ticks","tick","angle","tickFormatter","stroke"];function bM(e){return bM="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},bM(e)}function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wM.apply(this,arguments)}function xM(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 _M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xM(Object(n),!0).forEach((function(t){jM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function OM(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,AM(r.key),r)}}function SM(e,t){return SM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SM(e,t)}function kM(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 o=EM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EM(e)}function jM(e,t,n){return(t=AM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AM(e){var t=function(e,t){if("object"!==bM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bM(t)?t:String(t)}var TM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SM(e,t)}(a,t.PureComponent);var n,r,o,i=kM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return cT(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=yM(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:pM(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=CM(e,vM),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=cT(n,r,c[0],o),l=cT(n,r,c[1],o),f=_M(_M(_M({},nc(s)),{},{fill:"none"},nc(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",wM({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,c=n.stroke,u=CM(n,mM),l=this.getTickTextAnchor(),f=nc(u),p=nc(o),d=r.map((function(n,r){var u=e.getTickValueCoord(n),d=_M(_M(_M(_M({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:r},u),{},{payload:n});return t.createElement(hc,wM({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Vs(e.props,n,r)),a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(hc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(hc,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),kT.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(b_,wM({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&OM(n.prototype,r),o&&OM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function PM(e){return PM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PM(e)}function MM(){return MM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MM.apply(this,arguments)}function DM(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 RM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DM(Object(n),!0).forEach((function(t){FM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IM(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,zM(r.key),r)}}function NM(e,t){return NM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NM(e,t)}function LM(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=BM(e);if(t){var o=BM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function BM(e){return BM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BM(e)}function FM(e,t,n){return(t=zM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zM(e){var t=function(e,t){if("object"!==PM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PM(t)?t:String(t)}jM(TM,"displayName","PolarRadiusAxis"),jM(TM,"axisType","radiusAxis"),jM(TM,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var VM=Math.PI/180,HM=1e-5,UM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NM(e,t)}(a,t.PureComponent);var n,r,o,i=LM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=cT(n,r,o,e.coordinate),c=cT(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*VM);return n>HM?"outer"===t?"start":"end":n<-HM?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=RM(RM({},nc(this.props)),{},{fill:"none"},nc(i));if("circle"===a)return t.createElement(UP,MM({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return cT(n,r,o,e.coordinate)}));return t.createElement(NP,MM({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,c=n.stroke,u=nc(this.props),l=nc(o),f=RM(RM({},u),{},{fill:"none"},nc(i)),p=r.map((function(n,r){var p=e.getTickLineCoord(n),d=RM(RM(RM({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:p.x2,y:p.y2});return t.createElement(hc,MM({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Vs(e.props,n,r)),i&&t.createElement("line",MM({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(hc,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(hc,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(b_,MM({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&IM(n.prototype,r),o&&IM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();FM(UM,"displayName","PolarAngleAxis"),FM(UM,"axisType","angleAxis"),FM(UM,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var KM=cl(Object.getPrototypeOf,Object),$M=Zo,WM=KM,qM=oi,GM="[object Object]",ZM=Function.prototype,YM=Object.prototype,XM=ZM.toString,JM=YM.hasOwnProperty,QM=XM.call(Object);var eD=function(e){if(!qM(e)||$M(e)!=GM)return!1;var t=WM(e);if(null===t)return!0;var n=JM.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&XM.call(n)==QM};function tD(e){return tD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tD(e)}function nD(){return nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nD.apply(this,arguments)}function rD(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 oD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rD(Object(n),!0).forEach((function(t){lD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iD(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,fD(r.key),r)}}function aD(e,t){return aD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aD(e,t)}function sD(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=uD(e);if(t){var o=uD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cD(e)}(this,n)}}function cD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uD(e){return uD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uD(e)}function lD(e,t,n){return(t=fD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fD(e){var t=function(e,t){if("object"!==tD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tD(t)?t:String(t)}var pD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aD(e,t)}(a,t.PureComponent);var n,r,o,i=sD(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),lD(cD(t=i.call(this,e)),"pieRef",null),lD(cD(t),"sectorRefs",[]),lD(cD(t),"id",As("recharts-pie-")),lD(cD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ni(e)&&e()})),lD(cD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ni(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,c=nc(this.props),u=nc(r),l=nc(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,d=cT(e.cx,e.cy,e.outerRadius+f,p),h=oD(oD(oD(oD({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=oD(oD(oD(oD({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[cT(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return vs(i)&&vs(s)?y="value":vs(i)&&(y=s),t.createElement(hc,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,kA(e,y)))}));return t.createElement(hc,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,s=r.inactiveShape;return e.map((function(e,r){var c=s&&n.hasActiveIndex()?s:null,u=n.isActiveIndex(r)?o:c,l=oD(oD({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(hc,nD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Vs(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=l&&l[t],r=t>0?ys(e,"paddingAngle",0):0;if(n){var s=Ms(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=oD(oD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Ms(0,u-f)(o),d=oD(oD({},e),{},{startAngle:a+r,endAngle:a+p+r});i.push(d),a=d.endAngle}})),t.createElement(hc,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,u=n.innerRadius,l=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!o||!o.length||!ks(s)||!ks(c)||!ks(u)||!ks(l))return null;var d=To("recharts-pie",i);return t.createElement(hc,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),kT.renderCallByParent(this.props,null,!1),(!f||p)&&zT.renderCallByParent(this.props,o,!1))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(fP,nD({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return ni(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(b_,nD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):eD(e)?t.createElement(YT,nD({tabIndex:-1},n,e)):t.createElement(YT,nD({tabIndex:-1},n))}}],r&&iD(n.prototype,r),o&&iD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();lD(pD,"displayName","Pie"),lD(pD,"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:!Kb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),lD(pD,"parseDeltaAngle",(function(e,t){return Os(t-e)*Math.min(Math.abs(t-e),360)})),lD(pD,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=nc(e.props),i=Ys(r,ix);return n&&n.length?n.map((function(e,t){return oD(oD(oD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return oD(oD({},o),e.props)})):[]})),lD(pD,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=uT(o,i);return{cx:r+Ts(e.props.cx,o,o/2),cy:n+Ts(e.props.cy,i,i/2),innerRadius:Ts(e.props.innerRadius,a,0),outerRadius:Ts(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),lD(pD,"getComposedData",(function(e){var t=e.item,n=e.offset,r=pD.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=pD.parseCoordinateOfPie(t,n),g=pD.parseDeltaAngle(a,s),y=Math.abs(g),v=u;vs(u)&&vs(f)?(ox(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):vs(u)&&(ox(!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!==kA(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=kA(t,v,0);return e+(ks(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=kA(e,v,0),o=kA(e,l,t),s=(ks(r)?r:0)/_,u=(n=t?b.endAngle+Os(g)*c*(0!==r?1:0):a)+Os(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=cT(h.cx,h.cy,y,f);return b=oD(oD(oD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:kA(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:Os(g)*c})})));return oD(oD({},h),{},{sectors:m,data:r})}));var dD={};var hD=function(e){return e&&e.length?e[0]:void 0};({get exports(){return dD},set exports(e){dD=e}}).exports=hD;var gD=c(dD);function yD(e){return yD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yD(e)}function vD(){return vD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vD.apply(this,arguments)}function mD(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 bD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mD(Object(n),!0).forEach((function(t){SD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wD(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,kD(r.key),r)}}function xD(e,t){return xD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xD(e,t)}function _D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=OD(e);if(t){var o=OD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CD(e)}(this,n)}}function CD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OD(e){return OD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OD(e)}function SD(e,t,n){return(t=kD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kD(e){var t=function(e,t){if("object"!==yD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yD(t)?t:String(t)}var ED=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xD(e,t)}(a,t.PureComponent);var n,r,o,i=_D(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SD(CD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),SD(CD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),SD(CD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),SD(CD(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),SD(CD(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(e){var n=this.props,r=n.dot,o=n.dataKey,i=nc(this.props),s=nc(r),c=e.map((function(e,t){var n=bD(bD(bD({key:"dot-".concat(t),r:3},i),s),{},{dataKey:o,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return t.createElement(hc,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var n,r=this.props,o=r.shape,i=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return n=t.isValidElement(o)?t.cloneElement(o,bD(bD({},this.props),{},{points:e})):ni(o)?o(bD(bD({},this.props),{},{points:e})):t.createElement(NP,vD({},nc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),t.createElement(hc,{className:"recharts-radar-polygon"},n,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,i=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var i=Ms(r.x,e.x),a=Ms(r.y,e.y);return bD(bD({},e),{},{x:i(n),y:a(n)})}var s=Ms(e.cx,e.x),c=Ms(e.cy,e.y);return bD(bD({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&x_(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.className,o=e.points,i=e.isAnimationActive;if(n||!o||!o.length)return null;var a=this.state.isAnimationFinished,s=To("recharts-radar",r);return t.createElement(hc,{className:s},this.renderPolygon(),(!i||a)&&zT.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,vD({},n,{className:"recharts-radar-dot"}))}}],r&&wD(n.prototype,r),o&&wD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();SD(ED,"displayName","Radar"),SD(ED,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),SD(ED,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=kA(e,n.dataKey,r),f=kA(e,o),p=n.scale(l)+(i||0),d=ri(f)?AT(f):f,h=vs(d)?void 0:t.scale(d);ri(f)&&f.length>=2&&(c=!0),u.push(bD(bD({},cT(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(ri(e.value)){var n=gD(e.value),r=vs(n)?void 0:t.scale(n);l.push(bD(bD({},e),{},{radius:r},cT(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}}));var jD=["shape","activeShape","activeIndex","cornerRadius"],AD=["value","background"];function TD(e){return TD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TD(e)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach((function(t){FD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RD(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,zD(r.key),r)}}function ID(e,t){return ID=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ID(e,t)}function ND(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BD(e);if(t){var o=BD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===TD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return LD(e)}(this,n)}}function LD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BD(e){return BD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BD(e)}function FD(e,t,n){return(t=zD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=function(e,t){if("object"!==TD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TD(t)?t:String(t)}var VD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ID(e,t)}(a,t.PureComponent);var n,r,o,i=ND(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return FD(LD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),FD(LD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),FD(LD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Os(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=DD(n,jD),u=nc(c);return e.map((function(e,n){var l=MD(MD(MD(MD({},u),{},{cornerRadius:s},e),Vs(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ms(n.startAngle,e.startAngle),i=Ms(n.endAngle,e.endAngle);return MD(MD({},e),{},{startAngle:r(o),endAngle:i(o)})}var a=e.endAngle,s=e.startAngle,c=Ms(s,a);return MD(MD({},e),{},{endAngle:c(o)})}));return t.createElement(hc,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=nc(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=DD(e,AD);if(!i)return null;var c=MD(MD(MD(MD(MD({cornerRadius:n},s),{},{fill:"#eee"},i),r),Vs(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.background,a=e.isAnimationActive;if(n||!r||!r.length)return null;var s=this.state.isAnimationFinished,c=To("recharts-area",o);return t.createElement(hc,{className:c},i&&t.createElement(hc,{className:"recharts-radial-bar-background"},this.renderBackground(r)),t.createElement(hc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&zT.renderCallByParent(MD({},this.props),r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(YT,n)}}],r&&RD(n.prototype,r),o&&RD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();FD(VD,"displayName","RadialBar"),FD(VD,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),FD(VD,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=FA(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=WA({numericAxis:w}),C=Ys(m,ix);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=zA(u[p+s],x):(l=kA(e,c),ri(l)||(l=[_,l])),"radial"===y){v=$A({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),O=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=Os(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=$A({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=Os(E||b)*(Math.abs(b)-Math.abs(E))}return MD(MD(MD(MD({},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:[QA(t,e)],tooltipPosition:cT(h,g,(v+m)/2,(w+O)/2)})})),layout:y}}));var HD=Math.ceil,UD=Math.max;var KD=/\s/;var $D=function(e){for(var t=e.length;t--&&KD.test(e.charAt(t)););return t},WD=$D,qD=/^\s+/;var GD=function(e){return e?e.slice(0,WD(e)+1).replace(qD,""):e},ZD=GD,YD=Po,XD=di,JD=NaN,QD=/^[-+]0x[0-9a-f]+$/i,eR=/^0b[01]+$/i,tR=/^0o[0-7]+$/i,nR=parseInt;var rR=function(e){if("number"==typeof e)return e;if(XD(e))return JD;if(YD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=YD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ZD(e);var n=eR.test(e);return n||tR.test(e)?nR(e.slice(2),n?2:8):QD.test(e)?JD:+e},oR=rR,iR=1/0,aR=17976931348623157e292;var sR=function(e){return e?(e=oR(e))===iR||e===-iR?(e<0?-1:1)*aR:e==e?e:0:0===e?e:0},cR=function(e,t,n,r){for(var o=-1,i=UD(HD((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},uR=kb,lR=sR;var fR=function(e){return function(t,n,r){return r&&"number"!=typeof r&&uR(t,n,r)&&(n=r=void 0),t=lR(t),void 0===n?(n=t,t=0):n=lR(n),r=void 0===r?t<n?1:-1:lR(r),cR(t,n,r,e)}}();function pR(e){return pR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pR(e)}function dR(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 hR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dR(Object(n),!0).forEach((function(t){gR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yR=["Webkit","Moz","O","ms"];function vR(e){return vR="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},vR(e)}function mR(){return mR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mR.apply(this,arguments)}function bR(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 wR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bR(Object(n),!0).forEach((function(t){kR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xR(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,ER(r.key),r)}}function _R(e,t){return _R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_R(e,t)}function CR(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=SR(e);if(t){var o=SR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return OR(e)}(this,n)}}function OR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SR(e){return SR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SR(e)}function kR(e,t,n){return(t=ER(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ER(e){var t=function(e,t){if("object"!==vR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vR(t)?t:String(t)}var jR=function(e){return e.changedTouches&&!!e.changedTouches.length},AR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_R(e,t)}(a,t.PureComponent);var n,r,o,i=CR(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),kR(OR(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),kR(OR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),kR(OR(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),kR(OR(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),kR(OR(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),kR(OR(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),kR(OR(t),"handleSlideDragStart",(function(e){var n=jR(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(OR(t),"startX"),endX:t.handleTravellerDragStart.bind(OR(t),"endX")},t.state={},t}return n=a,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=kA(n[e],o,e);return ni(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,u=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=jR(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((kR(t={},o,s+y),kR(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,u=t.Children.only(s);return u?t.cloneElement(u,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,s=r.height,c=r.traveller,u=Math.max(e,this.props.x),l=wR(wR({},nc(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(hc,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,u=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(hc,{className:"recharts-brush-texts"},t.createElement(b_,mR({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(b_,mR({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!ks(i)||!ks(a)||!ks(s)||!ks(c)||s<=0||c<=0)return null;var y=To("recharts-brush",r),v=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=yR.reduce((function(e,r){return hR(hR({},e),{},gR({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(hc,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return wR({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=gC().domain(fR(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&xR(n.prototype,r),o&&xR(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();kR(AR,"displayName","Brush"),kR(AR,"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 TR=zm;var PR=Rc,MR=lp,DR=function(e,t){var n;return TR(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},RR=ri,IR=kb;var NR=function(e,t,n){var r=RR(e)?PR:DR;return n&&IR(e,t,n)&&(t=void 0),r(e,MR(t))},LR=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var BR=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},FR=zm;var zR=BR,VR=function(e,t){var n=!0;return FR(e,(function(e,r,o){return n=!!t(e,r,o)})),n},HR=lp,UR=ri,KR=kb;var $R=function(e,t,n){var r=UR(e)?zR:VR;return n&&KR(e,t,n)&&(t=void 0),r(e,HR(t))},WR=lb;var qR=function(e,t,n){"__proto__"==t&&WR?WR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},GR=qR,ZR=Bm,YR=lp;var XR=function(e,t){var n={};return t=YR(t),ZR(e,(function(e,r,o){GR(n,r,t(e,r,o))})),n},JR=["value","background"];function QR(e){return QR="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},QR(e)}function eI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tI(){return tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tI.apply(this,arguments)}function nI(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 rI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(n),!0).forEach((function(t){uI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oI(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,lI(r.key),r)}}function iI(e,t){return iI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iI(e,t)}function aI(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=cI(e);if(t){var o=cI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sI(e)}(this,n)}}function sI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cI(e){return cI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cI(e)}function uI(e,t,n){return(t=lI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lI(e){var t=function(e,t){if("object"!==QR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QR(t)?t:String(t)}var fI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iI(e,t)}(a,t.PureComponent);var n,r,o,i=aI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uI(sI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),uI(sI(e),"id",As("recharts-bar-")),uI(sI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),uI(sI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props.shape,o=nc(this.props);return e&&e.map((function(e,i){var s=rI(rI(rI({},o),e),{},{index:i});return t.createElement(hc,tI({className:"recharts-bar-rectangle"},Vs(n.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(r,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,u=n.animationId,l=this.state.prevData;return t.createElement(jm,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ms(n.x,e.x),a=Ms(n.y,e.y),s=Ms(n.width,e.width),c=Ms(n.height,e.height);return rI(rI({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Ms(0,e.height)(i);return rI(rI({},e),{},{y:e.y+e.height-u,height:u})}var f=Ms(0,e.width)(i);return rI(rI({},e),{},{width:f})}));return t.createElement(hc,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&&x_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=nc(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=eI(t,JR);if(!o)return null;var s=rI(rI(rI(rI(rI({},i),{},{fill:"#eee"},o),n),Vs(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=Ys(r.children,bA);if(!c)return null;var u="vertical"===s?o[0].height/2:o[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:kA(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,f,c.map((function(e,n){return t.cloneElement(e,{key:"error-bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=To("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=vs(d)?this.id:d;return t.createElement(hc,{className:g},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:s,y:c,width:u,height:l}))):null,t.createElement(hc,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&zT.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(CP,n)}}],r&&oI(n.prototype,r),o&&oI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pI(e){return pI="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},pI(e)}function dI(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,vI(r.key),r)}}function hI(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 gI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hI(Object(n),!0).forEach((function(t){yI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yI(e,t,n){return(t=vI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vI(e){var t=function(e,t){if("object"!==pI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pI(t)?t:String(t)}uI(fI,"displayName","Bar"),uI(fI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),uI(fI,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=FA(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=WA({numericAxis:b}),_=Ys(v,ix),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=zA(u[l+t],w):(r=kA(e,y),ri(r)||(r=[x,r])),"horizontal"===h){var C,O=[a.scale(r[0]),a.scale(r[1])],S=O[0],k=O[1];f=$A({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(C=null!=k?k:S)&&void 0!==C?C:void 0,g=d.size;var E=S-k;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var j=Os(v||m)*(Math.abs(m)-Math.abs(v));p-=j,v+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],P=A[1];if(f=T,p=$A({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=P-T,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=Os(g||m)*(Math.abs(m)-Math.abs(g))}return rI(rI(rI({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[QA(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return rI({data:C,layout:h},p)}));var mI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Xs(c,fI);return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],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 j=Ts(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var T=NA(g,o,f),P=T.scale,M=T.realScaleType;P.domain(v).range(u),BA(P);var D=UA(P,gI(gI({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var R=gI(gI(gI({},g),D),{},{realScaleType:M,x:p,y:d,scale:P,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=XA(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,gI(gI({},i),{},yI({},a,R))}),{})},bI=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},wI=function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return bI({x:t,y:n},{x:r,y:o})},xI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&dI(t.prototype,n),r&&dI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();yI(xI,"EPS",1e-4);var _I=function(e){var t=Object.keys(e).reduce((function(t,n){return gI(gI({},t),{},yI({},n,xI.create(e[n])))}),{});return gI(gI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return XR(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return $R(e,(function(e,n){return t[n].isInRange(e)}))}})};function CI(e){return CI="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},CI(e)}var OI=["isFront","ifOverflow","xAxisId","yAxisId","position","fill","fillOpacity","stroke","strokeWidth"];function SI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kI(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 kI(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 kI(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 EI(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 jI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EI(Object(n),!0).forEach((function(t){AI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==CI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PI.apply(this,arguments)}var MI=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement("line",PI({},n,{className:"recharts-reference-line-line"}))},DI=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,c=i.width,u=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(LR(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(LR(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return LR(o,"discard")&&NR(b,(function(t){return!e.isInRange(t)}))?null:b}return null};function RI(e){var n=e.isFront,r=void 0!==n&&n,o=e.ifOverflow,i=void 0===o?"discard":o,a=e.xAxisId,s=void 0===a?0:a,c=e.yAxisId,u=void 0===c?0:c,l=e.position,f=void 0===l?"middle":l,p=e.fill,d=void 0===p?"none":p,h=e.fillOpacity,g=void 0===h?1:h,y=e.stroke,v=void 0===y?"#ccc":y,m=e.strokeWidth,b=jI({isFront:r,ifOverflow:i,xAxisId:s,yAxisId:u,fill:d,stroke:v,fillOpacity:g,strokeWidth:void 0===m?1:m,position:f},TI(e,OI)),w=b.x,x=b.y,_=b.segment,C=b.xAxis,O=b.yAxis,S=b.shape,k=b.className,E=b.alwaysShow,j=b.clipPathId;ox(void 0===E,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var A=_I({x:C.scale,y:O.scale}),T=Es(w),P=Es(x),M=_&&2===_.length,D=DI(A,T,P,M,b);if(!D)return null;var R=SI(D,2),I=R[0],N=I.x,L=I.y,B=R[1],F=B.x,z=B.y,V=jI(jI({clipPath:LR(b,"hidden")?"url(#".concat(j,")"):void 0},nc(b,!0)),{},{x1:N,y1:L,x2:F,y2:z});return t.createElement(hc,{className:To("recharts-reference-line",k)},MI(S,V),kT.renderCallByParent(b,wI({x1:N,y1:L,x2:F,y2:z})))}function II(e){return II="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},II(e)}function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NI.apply(this,arguments)}function LI(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 BI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LI(Object(n),!0).forEach((function(t){FI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==II(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==II(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===II(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}RI.displayName="ReferenceLine";var zI=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=_I({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return LR(e,"discard")&&!i.isInRange(a)?null:a};function VI(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Es(n),c=Es(r);if(ox(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=zI(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=BI(BI({clipPath:LR(e,"hidden")?"url(#".concat(a,")"):void 0},nc(e,!0)),{},{cx:l,cy:f});return t.createElement(hc,{className:To("recharts-reference-dot",d)},VI.renderDot(p,h),kT.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}function HI(e){return HI="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},HI(e)}VI.displayName="ReferenceDot",VI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},VI.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,NI({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};var UI=["isFront","ifOverflow","xAxisId","yAxisId","r","fill","fillOpacity","stroke","strokeWidth"];function KI(){return KI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KI.apply(this,arguments)}function $I(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 WI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$I(Object(n),!0).forEach((function(t){qI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==HI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ZI=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=_I({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!LR(o,"discard")||f.isInRange(p)&&f.isInRange(d)?bI(p,d):null};function YI(e){var n=e.isFront,r=void 0!==n&&n,o=e.ifOverflow,i=void 0===o?"discard":o,a=e.xAxisId,s=void 0===a?0:a,c=e.yAxisId,u=void 0===c?0:c,l=e.r,f=void 0===l?10:l,p=e.fill,d=void 0===p?"#ccc":p,h=e.fillOpacity,g=void 0===h?.5:h,y=e.stroke,v=void 0===y?"none":y,m=e.strokeWidth,b=WI({isFront:r,ifOverflow:i,xAxisId:s,yAxisId:u,r:f,fill:d,fillOpacity:g,stroke:v,strokeWidth:void 0===m?1:m},GI(e,UI)),w=b.x1,x=b.x2,_=b.y1,C=b.y2,O=b.className,S=b.alwaysShow,k=b.clipPathId;ox(void 0===S,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var E=Es(w),j=Es(x),A=Es(_),T=Es(C),P=b.shape;if(!(E||j||A||T||P))return null;var M=ZI(E,j,A,T,b);if(!M&&!P)return null;var D=LR(b,"hidden")?"url(#".concat(k,")"):void 0;return t.createElement(hc,{className:To("recharts-reference-area",O)},YI.renderRect(P,WI(WI({clipPath:D},nc(b,!0)),M)),kT.renderCallByParent(b,M))}YI.displayName="ReferenceArea",YI.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(CP,KI({},n,{className:"recharts-reference-area-rect"}))};var XI=["viewBox"],JI=["viewBox"],QI=["ticks"];function eN(e){return eN="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},eN(e)}function tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tN.apply(this,arguments)}function nN(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 rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iN(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,lN(r.key),r)}}function aN(e,t){return aN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aN(e,t)}function sN(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=cN(e);if(t){var o=cN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===eN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function cN(e){return cN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cN(e)}function uN(e,t,n){return(t=lN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lN(e){var t=function(e,t){if("object"!==eN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eN(t)?t:String(t)}var fN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aN(e,t)}(a,t.Component);var n,r,o,i=sN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=oN(e,XI),o=this.props,i=o.viewBox,a=oN(o,JI);return!Rs(n,i)||!Rs(r,a)||!Rs(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=ks(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*f)+y*v)+y*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=rN(rN(rN({},nc(this.props)),nc(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=rN(rN({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=rN(rN({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",tN({},u,{className:To("recharts-cartesian-axis-line",ys(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,p=a.getTicks(rN(rN({},this.props),{},{ticks:e}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=nc(this.props),y=nc(u),v=rN(rN({},g),{},{fill:"none"},nc(s)),m=p.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=rN(rN(rN(rN({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:l});return t.createElement(hc,tN({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Vs(o.props,e,n)),s&&t.createElement("line",tN({},v,i,{className:To("recharts-cartesian-axis-tick-line",ys(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(ni(l)?l(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,u=c.ticks,l=oN(c,QI),f=u;return ni(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(hc,{className:To("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),kT.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return o&&o.length&&r?ks(u)||Kb.isSsr?a.getNumberIntervalTicks(o,"number"==typeof u&&ks(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?Qx(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Os(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=ni(i)?i(x.value,b-1):x.value,C=Qx(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=rN(rN({},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]=rN(rN({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],j=ni(i)?i(E.value,k):E.value,A=Qx(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=rN(rN({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=rN(rN({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*A/2-n)>=0&&w*(E.tickCoord+w*A/2-r)<=0&&(n=E.tickCoord+w*(A/2+c),v[k]=rN(rN({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=i.x,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Qx(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Os(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],_=ni(o)?o(x.value,m-w-1):x.value,C=Qx(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=rN(rN({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=rN(rN({},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]=rN(rN({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(b_,tN({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&iN(n.prototype,r),o&&iN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();uN(fN,"displayName","CartesianAxis"),uN(fN,"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 pN=["x1","y1","x2","y2","key"];function dN(e){return dN="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},dN(e)}function hN(){return hN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hN.apply(this,arguments)}function gN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yN(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 vN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yN(Object(n),!0).forEach((function(t){_N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mN(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,CN(r.key),r)}}function bN(e,t){return bN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bN(e,t)}function wN(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=xN(e);if(t){var o=xN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xN(e){return xN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xN(e)}function _N(e,t,n){return(t=CN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CN(e){var t=function(e,t){if("object"!==dN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dN(t)?t:String(t)}var ON=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bN(e,t)}(a,t.PureComponent);var n,r,o,i=wN(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var n=this,r=this.props,o=r.x,i=r.width,s=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=vN(vN({},n.props),{},{x1:o,y1:e,x2:o+i,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var n=this,r=this.props,o=r.y,i=r.height,s=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=vN(vN({},n.props),{},{x1:e,y1:o,x2:e,y2:o+i,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:i+s-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:a+c-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:l,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,s=n.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!ks(o)||o<=0||!ks(i)||i<=0||!ks(n)||n!==+n||!ks(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!ni(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!ni(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(ni(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=gN(n,pN);r=t.createElement("line",hN({},nc(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&mN(n.prototype,r),o&&mN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();_N(ON,"displayName","CartesianGrid"),_N(ON,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var SN=["type","layout","connectNulls","ref"];function kN(e){return kN="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},kN(e)}function EN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jN(){return jN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jN.apply(this,arguments)}function AN(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 TN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PN(e){return function(e){if(Array.isArray(e))return MN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return MN(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 MN(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 MN(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 DN(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,FN(r.key),r)}}function RN(e,t){return RN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RN(e,t)}function IN(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=LN(e);if(t){var o=LN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NN(e)}(this,n)}}function NN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LN(e){return LN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LN(e)}function BN(e,t,n){return(t=FN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e){var t=function(e,t){if("object"!==kN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kN(t)?t:String(t)}var zN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RN(e,t)}(a,t.PureComponent);var n,r,o,i=IN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return BN(NN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),BN(NN(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat(PN(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(PN(a.repeat(n,o)),PN(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),BN(NN(e),"id",As("recharts-line-")),BN(NN(e),"pathRef",(function(t){e.mainCurve=t})),BN(NN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),BN(NN(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=Ys(r.children,bA);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:kA(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,l,c.map((function(e,n){return t.cloneElement(e,{key:"bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,s=r.dataKey,c=nc(this.props),u=nc(o,!0),l=i.map((function(e,t){var n=TN(TN(TN({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(o,n)})),f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,jN({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=EN(i,SN),l=TN(TN(TN({},nc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(fP,jN({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=o.animateNewValues,d=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(jm,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=Ms(r.x,e.x),a=Ms(r.y,e.y);return TN(TN({},e),{},{x:i(o),y:a(o)})}if(p){var c=Ms(2*d,e.x),u=Ms(h/2,e.y);return TN(TN({},e),{},{x:c(o),y:u(o)})}return TN(TN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Ms(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!x_(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=To("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=vs(d)?this.id:d;return t.createElement(hc,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(v,m),(g||r)&&this.renderDots(v,m),(!p||h)&&zT.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(PN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(PN(r),PN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(ni(e))r=e(n);else{var o=To("recharts-line-dot",e?e.className:"");r=t.createElement(UP,jN({},n,{className:o}))}return r}}],r&&DN(n.prototype,r),o&&DN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();BN(zN,"displayName","Line"),BN(zN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Kb.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),BN(zN,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return TN({points:c.map((function(e,t){var c=kA(e,a);return"horizontal"===l?{x:KA({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:vs(c)?null:r.scale(c),value:c,payload:e}:{x:vs(c)?null:n.scale(c),y:KA({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)}));var VN=["layout","type","stroke","connectNulls","isRange","ref"];function HN(e){return HN="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},HN(e)}function UN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KN(){return KN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KN.apply(this,arguments)}function $N(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 WN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$N(Object(n),!0).forEach((function(t){JN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qN(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,QN(r.key),r)}}function GN(e,t){return GN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GN(e,t)}function ZN(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=XN(e);if(t){var o=XN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YN(e)}(this,n)}}function YN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XN(e){return XN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XN(e)}function JN(e,t,n){return(t=QN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e){var t=function(e,t){if("object"!==HN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HN(t)?t:String(t)}var eL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GN(e,t)}(a,t.PureComponent);var n,r,o,i=ZN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return JN(YN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),JN(YN(e),"id",As("recharts-area-")),JN(YN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),JN(YN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(e,n){var r=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(r&&!o)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=nc(this.props),f=nc(s,!0),p=c.map((function(e,t){var n=WN(WN(WN({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,KN({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].x,s=o[o.length-1].x,c=e*Math.abs(a-s),u=j_(o.map((function(e){return e.y||0})));return ks(r)&&"number"==typeof r?u=Math.max(r,u):r&&ri(r)&&r.length&&(u=Math.max(j_(r.map((function(e){return e.y||0}))),u)),ks(u)?t.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].y,s=o[o.length-1].y,c=e*Math.abs(a-s),u=j_(o.map((function(e){return e.x||0})));return ks(r)&&"number"==typeof r?u=Math.max(r,u):r&&ri(r)&&r.length&&(u=Math.max(j_(r.map((function(e){return e.x||0}))),u)),ks(u)?t.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,o){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=UN(i,VN);return t.createElement(hc,{clipPath:r?"url(#clipPath-".concat(o,")"):null},t.createElement(fP,KN({},nc(f,!0),{points:e,connectNulls:u,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&t.createElement(fP,KN({},nc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&t.createElement(fP,KN({},nc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.baseLine,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return t.createElement(jm,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var s=o.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=Ms(r.x,e.x),i=Ms(r.y,e.y);return WN(WN({},e),{},{x:o(s),y:i(s)})}return e}));return c=ks(a)&&"number"==typeof a?Ms(h,a)(s):vs(a)||Cs(a)?Ms(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=Ms(r.x,e.x),i=Ms(r.y,e.y);return WN(WN({},e),{},{x:o(s),y:i(s)})}return e})),r.renderAreaStatically(l,c,e,n)}return t.createElement(hc,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(hc,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,a,e,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!x_(s,r)||!x_(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=To("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=vs(d)?this.id:d;return t.createElement(hc,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(r||g)&&this.renderDots(v,m),(!p||h)&&zT.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&qN(n.prototype,r),o&&qN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();JN(eL,"displayName","Area"),JN(eL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),JN(eL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(ks(s)&&"number"==typeof s)return s;var c="horizontal"===o?r:n,u=c.scale.domain();if("number"===c.type){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===s?u[0]:"dataMax"===s?u[1]:u[0]})),JN(eL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=eL.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=kA(e,u);g?n=l[f+t]:ri(n=r)?v=!0:n=[y,n];var p=vs(n[1])||g&&vs(r);return"horizontal"===h?{x:KA({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:KA({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:vs(ys(e,"value[0]"))||vs(ys(e,"y"))?null:i.scale(ys(e,"value[0]"))}:{x:vs(ys(e,"value[0]"))?null:o.scale(ys(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),WN({points:m,baseLine:t,layout:h,isRange:v},d)})),JN(eL,"renderDotItem",(function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,KN({},n,{className:"recharts-area-dot"}))}));var tL=function(){return null};function nL(e){return nL="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},nL(e)}function rL(){return rL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rL.apply(this,arguments)}function oL(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 iL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oL(Object(n),!0).forEach((function(t){fL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aL(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,pL(r.key),r)}}function sL(e,t){return sL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sL(e,t)}function cL(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=lL(e);if(t){var o=lL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uL(e)}(this,n)}}function uL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lL(e){return lL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lL(e)}function fL(e,t,n){return(t=pL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pL(e){var t=function(e,t){if("object"!==nL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nL(t)?t:String(t)}tL.displayName="ZAxis",tL.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var dL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sL(e,t)}(a,t.PureComponent);var n,r,o,i=cL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fL(uL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),fL(uL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),fL(uL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),fL(uL(e),"id",As("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.activeShape,s=r.activeIndex,c=nc(this.props);return e.map((function(e,r){var u=iL(iL({key:"symbol-".concat(r)},c),e);return t.createElement(hc,rL({className:"recharts-scatter-symbol"},Vs(n.props,e,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(s===r?i:o,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ms(n.cx,e.cx),i=Ms(n.cy,e.cy),a=Ms(n.size,e.size);return iL(iL({},e),{},{cx:r(o),cy:i(o),size:a(o)})}var s=Ms(0,e.size);return iL(iL({},e),{},{size:s(o)})}));return t.createElement(hc,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=Ys(e.children,bA);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:kA(e,t)}}function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:kA(e,t)}}return i.map((function(e,i){var c=e.props.direction;return t.cloneElement(e,{key:i,data:n,xAxis:r,yAxis:o,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:"x"===c?s:a})}))}},{key:"renderLine",value:function(){var e,n,r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,c=nc(this.props),u=nc(i);if("joint"===a)e=o.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(o),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=iL(iL(iL({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return n=t.isValidElement(i)?t.cloneElement(i,y):ni(i)?i(y):t.createElement(fP,rL({},y,{type:s})),t.createElement(hc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.points,o=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=To("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=vs(p)?this.id:p;return t.createElement(hc,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:c,y:u,width:l,height:f}))):null,o&&this.renderLine(),this.renderErrorBar(),t.createElement(hc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&zT.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,n){var r;return t.isValidElement(e)?r=t.cloneElement(e,n):ni(e)?r=e(n):"string"==typeof e&&(r=t.createElement(Mh,rL({},n,{type:e}))),r}}],r&&aL(n.prototype,r),o&&aL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();fL(dL,"displayName","Scatter"),fL(dL,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),fL(dL,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=Ys(o.props.children,ix),f=vs(t.dataKey)?o.props.dataKey:t.dataKey,p=vs(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:tL.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=kA(e,f),h=kA(e,p),m=!vs(d)&&kA(e,d)||"-",b=[{name:vs(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:vs(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=KA({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=KA({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return iL(iL({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return iL({points:m},c)}));var hL=function(){return null};hL.displayName="XAxis",hL.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var gL=function(){return null};gL.displayName="YAxis",gL.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var yL=lp,vL=yl,mL=wl;var bL=function(e){return function(t,n,r){var o=Object(t);if(!vL(t)){var i=yL(n);t=mL(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},wL=sR;var xL=fp,_L=lp,CL=function(e){var t=wL(e),n=t%1;return t==t?n?t-n:t:0},OL=Math.max;var SL=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:CL(n);return o<0&&(o=OL(r+o,0)),xL(e,_L(t),o)},kL=bL(SL),EL=Io,jL=Po,AL=function(){return EL.Date.now()},TL=rR,PL="Expected a function",ML=Math.max,DL=Math.min;var RL=function(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError(PL);function d(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=i}function g(){var e=AL();if(h(e))return y(e);s=setTimeout(g,function(e){var n=t-(e-c);return f?DL(n,i-(e-u)):n}(e))}function y(e){return s=void 0,p&&r?d(e):(r=o=void 0,a)}function v(){var e=AL(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),l?d(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(g,t),d(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=TL(t)||0,jL(n)&&(l=!!n.leading,i=(f="maxWait"in n)?ML(TL(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},v.flush=function(){return void 0===s?a:y(AL())},v},IL=RL,NL=Po,LL="Expected a function";var BL=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(LL);return NL(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),IL(e,t,{leading:r,maxWait:t,trailing:o})},FL=Zo,zL=oi,VL="[object Boolean]";var HL=function(e){return!0===e||!1===e||zL(e)&&FL(e)==VL};function UL(e){return function(e){if(Array.isArray(e))return KL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return KL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KL(e,t)}(e)||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 KL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $L=function(e,t,n,r,o){var i=Ys(e,RI),a=Ys(e,VI),s=[].concat(UL(i),UL(a)),c=Ys(e,YI),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&LR(t.props,"extendDomain")&&ks(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&&LR(t.props,"extendDomain")&&ks(t.props[p])&&ks(t.props[d])){var r=t.props[p],o=t.props[d];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return ks(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},WL={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return WL},set exports(e){WL=e}});var qL=new WL;qL.setMaxListeners&&qL.setMaxListeners(10);var GL="recharts.syncMouseEvents",ZL=["item"],YL=["children","className","width","height","style","compact","title","desc"];function XL(e){return XL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XL(e)}function JL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||sB(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 QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QL.apply(this,arguments)}function eB(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tB(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,pB(r.key),r)}}function nB(e,t){return nB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nB(e,t)}function rB(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=iB(e);if(t){var o=iB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oB(e)}(this,n)}}function oB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iB(e){return iB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iB(e)}function aB(e){return function(e){if(Array.isArray(e))return cB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sB(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 sB(e,t){if(e){if("string"==typeof e)return cB(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)?cB(e,t):void 0}}function cB(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 uB(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 lB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uB(Object(n),!0).forEach((function(t){fB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fB(e,t,n){return(t=pB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=function(e,t){if("object"!==XL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XL(t)?t:String(t)}var dB={xAxis:["bottom","top"],yAxis:["left","right"]},hB={x:0,y:0},gB=Number.isFinite?Number.isFinite:isFinite,yB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,vB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,mB=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(aB(e),aB(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&&ks(o)&&ks(i)?e.slice(o,i+1):[]};function bB(e){return"number"===e?[0,"auto"]:void 0}var wB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=mB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=Ds(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(aB(e),[QA(t,o)]):e}),[])},xB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var 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(Os(l-u)!==Os(f-l)){var d=[];if(Os(f-l)===Os(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){i=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=wB(e,t,u,l),p=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return lB(lB(lB({},r),cT(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return lB(lB(lB({},r),cT(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return hB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},_B=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=MA(u,o),d=n.reduce((function(t,n){var d=n.props,h=d.type,g=d.dataKey,y=d.allowDataOverflow,v=d.allowDuplicatedCategory,m=d.scale,b=d.ticks,w=n.props[i];if(t[w])return t;var x,_,C,O=mB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:c}),S=O.length;if(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&ks(r)&&ks(o))return!0}return!1}(n.props.domain,y,h)&&(x=YA(n.props.domain,null,y)),!x||0===x.length){var k,E=null!==(k=n.props.domain)&&void 0!==k?k:bB(h);if(g){if(x=EA(O,g,h),"category"===h&&p){var j=function(e){if(!ri(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}(x);v&&j?(_=x,x=fR(0,S)):v||(x=JA(E,x,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(aB(e),[t])}),[]))}else if("category"===h)x=v?x.filter((function(e){return""!==e&&!vs(e)})):JA(E,x,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||vs(t)?e:[].concat(aB(e),[t])}),[]);else if("number"===h){var A=function(e,t,n,r,o){var i=t.map((function(t){return TA(e,t,n,o,r)})).filter((function(e){return!vs(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),g,o,u);A&&(x=A)}!p||"number"!==h&&"auto"===m||(C=EA(O,g,"category"))}else x=p?fR(0,S):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:qA(a[w].stackGroups,s,c):PA(O,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,u,!0);if("number"===h)x=$L(l,x,w,o,b),E&&(x=YA(E,x,y));else if("category"===h&&E){var T=E;x.every((function(e){return T.indexOf(e)>=0}))&&(x=T)}}return lB(lB({},t),{},fB({},w,lB(lB({},n.props),{},{axisType:o,domain:x,categoricalDomain:C,duplicateDomain:_,originalDomain:n.props.domain,isCategorical:p,layout:u})))}),{});return d},CB=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=Ys(u,o),p={};return f&&f.length?p=_B(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=mB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=MA(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=bB("number");return e[y]?e:(h++,d?g=fR(0,p):a&&a[y]&&a[y].hasStack?(g=qA(a[y].stackGroups,s,c),g=$L(l,g,y,o)):(g=YA(v,PA(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=$L(l,g,y,o)),lB(lB({},e),{},fB({},y,lB(lB({axisType:o},r.defaultProps),{},{hide:!0,orientation:ys(dB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},OB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=Xs(r,AR);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!vs(o)&&o}},SB=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"}},kB=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=Xs(u,AR),p=Xs(u,og),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:lB(lB({},e),{},fB({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:lB(lB({},e),{},fB({},r,ys(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=lB(lB({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||AR.defaultProps.height),p&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=AA({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&ks(e[f])&&(u=OA(OA({},e),{},SA({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&ks(e[p])&&(u=OA(OA({},e),{},SA({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),lB(lB({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},EB=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,u=e.axisComponents,l=e.legendContent,f=e.formatAxisMap,p=e.defaultProps,d=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,l=e.layout,f=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=SB(l),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Ws(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return Ws(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:vs(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=mB(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=u.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return lB(lB({},e),{},(fB(o={},r.axisType,s),fB(o,"".concat(r.axisType,"Ticks"),RA(s)),o))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Es(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),j=Ws(n.type).indexOf("Bar")>=0,A=XA(S,k),T=[];if(j){var P,M,D=vs(x)?d:x,R=null!==(P=null!==(M=XA(S,k,!0))&&void 0!==M?M:D)&&void 0!==P?P:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,u=Ts(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(xA(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=Ts(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(xA(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:f,barCategoryGap:p,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return lB(lB({},e),{},{position:lB(lB({},e.position),{},{offset:e.position.offset-R/2})})})))}var I,N,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:lB(lB({},B(lB(lB({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(c)},fB(I,g,O[g]),fB(I,y,O[y]),fB(I,"animationId",i),I)),childIndex:(N=n,L=e.children,Zs(L).indexOf(N)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Js({props:n}))return null;var c=n.children,l=n.layout,p=n.stackOffset,h=n.data,g=n.reverseStackOrder,y=SB(l),v=y.numericAxisName,m=y.cateAxisName,b=Ys(c,o),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Es(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[As("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return OA(OA({},e),{},SA({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return OA(OA({},t),{},SA({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:HA(e,a.items,o)}))}),{})),OA(OA({},t),{},SA({},i,s))}),{})}(h,b,"".concat(v,"Id"),"".concat(m,"Id"),p,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return lB(lB({},e),{},fB({},r,CB(n,lB(lB({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=kB(lB(lB({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Ps(S),{tooltipTicks:O=RA(C,!1,!0),orderedTooltipTicks:Tb(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:XA(C,O)}),E=d(n,lB(lB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return lB(lB({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nB(e,t)}(u,t.Component);var n,o,i,s=rB(u);function u(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),fB(oB(n=s.call(this,e)),"clearDeferId",(function(){!vs(n.deferId)&&vB&&vB(n.deferId),n.deferId=null})),fB(oB(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(lB({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},lB(lB({},n.state),{},{legendBBox:e}))))}})),fB(oB(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=yB&&yB(n.applySyncEvent.bind(oB(n),r)))})),fB(oB(n),"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return lB({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),fB(oB(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=lB(lB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ni(t)&&t(o,e)}})),fB(oB(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?lB(lB({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),ni(t)&&t(o,e)})),fB(oB(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),fB(oB(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),fB(oB(n),"handleMouseMove",(function(e){e&&ni(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),fB(oB(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),ni(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),fB(oB(n),"handleOuterEvent",(function(e){var t=ac(e),r=ys(n.props,"".concat(t));t&&ni(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),fB(oB(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=lB(lB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ni(t)&&t(o,e)}})),fB(oB(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;ni(t)&&t(n.getMouseInfo(e),e)})),fB(oB(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;ni(t)&&t(n.getMouseInfo(e),e)})),fB(oB(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),fB(oB(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),fB(oB(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),fB(oB(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return DA(fN.getTicks(lB(lB(lB({},fN.defaultProps),t),{},{ticks:RA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),fB(oB(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return DA(fN.getTicks(lB(lB(lB({},fN.defaultProps),t),{},{ticks:RA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),fB(oB(n),"axesTicksGenerator",(function(e){return RA(e,!0)})),fB(oB(n),"renderCursor",(function(e){var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.offset,u=o.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==r&&"axis"!==l)return null;var f,p=n.props.layout,d=fP;if("ScatterChart"===r)f=a,d=XP;else if("BarChart"===r)f=n.getCursorRectangle(),d=CP;else if("radial"===p){var h=n.getCursorPoints(),g=h.cx,y=h.cy,v=h.radius;f={cx:g,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},d=YT}else f={points:n.getCursorPoints()},d=fP;var m=e.key||"_recharts-cursor",b=lB(lB(lB(lB({stroke:"#ccc",pointerEvents:"none"},c),f),nc(e.props.cursor)),{},{payload:s,payloadIndex:u,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(d,b)})),fB(oB(n),"renderPolarAxis",(function(e,r,o){var i=ys(e,"type.axisType"),a=ys(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,lB(lB({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:RA(s,!0)}))})),fB(oB(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),fB(oB(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),fB(oB(n),"renderGrid",(function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,u=s.height,l=Ps(o),f=kL(i,(function(e){return $R(e.domain,gB)}))||Ps(i),p=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:ks(p.x)?p.x:a.left,y:ks(p.y)?p.y:a.top,width:ks(p.width)?p.width:a.width,height:ks(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),fB(oB(n),"renderPolarGrid",(function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,u=s.angleAxisMap,l=Ps(c),f=Ps(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:ri(i)?i:RA(f,!0).map((function(e){return e.coordinate})),polarRadius:ri(a)?a:RA(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),fB(oB(n),"renderLegend",(function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},c=i-(s.left||0)-(s.right||0),u=AA({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var f=u.item,p=eB(u,ZL);return t.cloneElement(f,lB(lB({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),fB(oB(n),"renderTooltip",(function(){var e=Xs(n.props.children,rw);if(!e)return null;var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,c=r.offset;return t.cloneElement(e,{viewBox:lB(lB({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),fB(oB(n),"renderBrush",(function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,u=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:IA(n.handleBrushChange,null,e.props.onChange),data:i,x:ks(e.props.x)?e.props.x:s.left,y:ks(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:ks(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),fB(oB(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=oB(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[null!=f?f:0],yAxis:c[null!=p?p:0],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})})),fB(oB(n),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,c=t.item.props,l=c.activeDot,f=lB(lB({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:jA(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},nc(l)),zs(l));return a.push(u.renderActiveDot(l,f)),r?a.push(u.renderActiveDot(l,lB(lB({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),fB(oB(n),"renderGraphicChild",(function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,c=s.isTooltipActive,u=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,p=Xs(n.props.children,rw),d=i.props,h=d.points,g=d.isRange,y=d.baseLine,v=i.item.props,m=v.activeDot,b=!v.hide&&c&&p&&m&&l>=0,w={};"axis"!==a&&p&&"click"===p.props.trigger?w={onClick:IA(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:IA(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:IA(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,lB(lB({},i.props),w));if(b){var _,C;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());_=Ds(h,O,f),C=g&&y&&Ds(y,O,f)}else _=h[l],C=g&&y&&y[l];if(!vs(_))return[x].concat(aB(n.renderActivePoints({item:i,activePoint:_,basePoint:C,childIndex:l,isRange:g})))}return g?[x,null,null]:[x,null]})),fB(oB(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,lB(lB({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=vs(e.id)?As("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=BL(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=u,o=[{key:"componentDidMount",value:function(){vs(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){vs(e.syncId)&&!vs(this.props.syncId)&&this.addListener(),!vs(e.syncId)&&vs(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),vs(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=Xs(this.props.children,rw);if(e&&HL(e.props.shared)){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=Ps(s).scale,l=Ps(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return lB(lB({},o),{},{xValue:f,yValue:p})}var d=xB(this.state,this.props.data,this.props.layout,i);return d?lB(lB({},o),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!vs(a.cx)||!vs(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[cT(c,u,l,f),cT(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=cT(d,h,g,v),b=cT(d,h,y,v);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=Ps(i);return dT({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Xs(e,rw),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}),lB(lB({},zs(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){qL.on(GL,this.handleReceiveSyncEvent),qL.setMaxListeners&&qL._maxListeners&&qL.setMaxListeners(qL._maxListeners+1)}},{key:"removeListener",value:function(){qL.removeListener(GL,this.handleReceiveSyncEvent),qL.setMaxListeners&&qL._maxListeners&&qL.setMaxListeners(qL._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;vs(t)||qL.emit(GL,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(vs(e.dataStartIndex)&&vs(e.dataEndIndex))if(vs(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 g=lB(lB({},f),{},{x:f.left,y:f.top}),y=Math.min(s,g.x+g.width),v=Math.min(c,g.y+g.height),m=p[u]&&p[u].value,b=wB(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:hB;this.setState(lB(lB({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(lB({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===Ws(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,s=i.height;return t.createElement(fN,QL({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=JL(t,2),r=n[0],o=n[1];return lB(lB({},e),{},fB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=JL(t,2),r=n[0],o=n[1];return lB(lB({},e),{},fB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=Ws(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return _P(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return dT(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!Js(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,s=n.style,c=n.compact,u=n.title,l=n.desc,f=eB(n,YL),p=nc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return t.createElement(lc,QL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),ic(r,d));var h=this.parseEventsOfWrapper();return t.createElement("div",QL({className:To("recharts-wrapper",o),style:lB({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(lc,QL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),ic(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&tB(n.prototype,o),i&&tB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(),fB(n,"displayName",r),fB(n,"defaultProps",lB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),fB(n,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(vs(t.updateId)){var u=OB(e);return lB(lB(lB({},u),{},{updateId:0},h(lB(lB({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Rs(c,t.prevMargin)){var l=OB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=lB(lB({},xB(t,n,a)),{},{updateId:t.updateId+1}),d=lB(lB(lB({},l),f),p);return lB(lB(lB({},d),h(lB({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!rc(r,t.prevChildren)){var g=!vs(n)?t.updateId:t.updateId+1;return lB(lB({updateId:g},h(lB(lB({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),fB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,n),t.createElement(hc,{className:"recharts-active-dot",key:n.key},r)})),n};EB({chartName:"LineChart",GraphicalChild:zN,axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL}],formatAxisMap:mI});var jB=EB({chartName:"BarChart",GraphicalChild:fI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL}],formatAxisMap:mI}),AB=EB({chartName:"PieChart",GraphicalChild:pD,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:UM},{axisType:"radiusAxis",AxisComp:TM}],formatAxisMap:lT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var TB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},PB=qR,MB=ia,DB=Object.prototype.hasOwnProperty;var RB=function(e,t,n){var r=e[t];DB.call(e,t)&&MB(r,n)&&(void 0!==n||t in e)||PB(e,t,n)},IB=RB,NB=qR;var LB=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?NB(n,s,c):IB(n,s,c)}return n},BB=LB,FB=wl;var zB=function(e,t){return e&&BB(t,FB(t),e)};var VB=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},HB=Po,UB=sl,KB=VB,$B=Object.prototype.hasOwnProperty;var WB=function(e){if(!HB(e))return KB(e);var t=UB(e),n=[];for(var r in e)("constructor"!=r||!t&&$B.call(e,r))&&n.push(r);return n},qB=il,GB=WB,ZB=yl;var YB=function(e){return ZB(e)?qB(e,!0):GB(e)},XB=LB,JB=YB;var QB=function(e,t){return e&&XB(t,JB(t),e)},eF={};!function(e,t){var n=Io,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return eF},set exports(e){eF=e}},eF);var tF=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},nF=LB,rF=Cu;var oF=function(e,t){return nF(e,rF(e),t)},iF=pu,aF=KM,sF=Cu,cF=vu,uF=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)iF(t,sF(e)),e=aF(e);return t}:cF,lF=LB,fF=uF;var pF=function(e,t){return lF(e,fF(e),t)},dF=gu,hF=uF,gF=YB;var yF=function(e){return dF(e,gF,hF)},vF=Object.prototype.hasOwnProperty;var mF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vF.call(e,"index")&&(n.index=e.index,n.input=e.input),n},bF=Hc;var wF=function(e){var t=new e.constructor(e.byteLength);return new bF(t).set(new bF(e)),t},xF=wF;var _F=function(e,t){var n=t?xF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},CF=/\w*$/;var OF=function(e){var t=new e.constructor(e.source,CF.exec(e));return t.lastIndex=e.lastIndex,t},SF=No?No.prototype:void 0,kF=SF?SF.valueOf:void 0;var EF=wF;var jF=wF,AF=_F,TF=OF,PF=function(e){return kF?Object(kF.call(e)):{}},MF=function(e,t){var n=t?EF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},DF="[object Boolean]",RF="[object Date]",IF="[object Map]",NF="[object Number]",LF="[object RegExp]",BF="[object Set]",FF="[object String]",zF="[object Symbol]",VF="[object ArrayBuffer]",HF="[object DataView]",UF="[object Float32Array]",KF="[object Float64Array]",$F="[object Int8Array]",WF="[object Int16Array]",qF="[object Int32Array]",GF="[object Uint8Array]",ZF="[object Uint8ClampedArray]",YF="[object Uint16Array]",XF="[object Uint32Array]";var JF=function(e,t,n){var r=e.constructor;switch(t){case VF:return jF(e);case DF:case RF:return new r(+e);case HF:return AF(e,n);case UF:case KF:case $F:case WF:case qF:case GF:case ZF:case YF:case XF:return MF(e,n);case IF:return new r;case NF:case FF:return new r(e);case LF:return TF(e);case BF:return new r;case zF:return PF(e)}},QF=Po,ez=Object.create,tz=function(){function e(){}return function(t){if(!QF(t))return{};if(ez)return ez(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nz=tz,rz=KM,oz=sl;var iz=function(e){return"function"!=typeof e.constructor||oz(e)?{}:nz(rz(e))},az=Yl,sz=oi,cz="[object Map]";var uz=function(e){return sz(e)&&az(e)==cz},lz=Wu,fz=qu&&qu.isMap,pz=fz?lz(fz):uz,dz=Yl,hz=oi,gz="[object Set]";var yz=function(e){return hz(e)&&dz(e)==gz},vz=Wu,mz=qu&&qu.isSet,bz=mz?vz(mz):yz,wz=Ec,xz=TB,_z=RB,Cz=zB,Oz=QB,Sz=eF,kz=tF,Ez=oF,jz=pF,Az=Ol,Tz=yF,Pz=Yl,Mz=mF,Dz=JF,Rz=iz,Iz=ri,Nz=Ru,Lz=pz,Bz=Po,Fz=bz,zz=wl,Vz=YB,Hz=1,Uz=2,Kz=4,$z="[object Arguments]",Wz="[object Function]",qz="[object GeneratorFunction]",Gz="[object Object]",Zz={};Zz[$z]=Zz["[object Array]"]=Zz["[object ArrayBuffer]"]=Zz["[object DataView]"]=Zz["[object Boolean]"]=Zz["[object Date]"]=Zz["[object Float32Array]"]=Zz["[object Float64Array]"]=Zz["[object Int8Array]"]=Zz["[object Int16Array]"]=Zz["[object Int32Array]"]=Zz["[object Map]"]=Zz["[object Number]"]=Zz[Gz]=Zz["[object RegExp]"]=Zz["[object Set]"]=Zz["[object String]"]=Zz["[object Symbol]"]=Zz["[object Uint8Array]"]=Zz["[object Uint8ClampedArray]"]=Zz["[object Uint16Array]"]=Zz["[object Uint32Array]"]=!0,Zz["[object Error]"]=Zz[Wz]=Zz["[object WeakMap]"]=!1;var Yz=function e(t,n,r,o,i,a){var s,c=n&Hz,u=n&Uz,l=n&Kz;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!Bz(t))return t;var f=Iz(t);if(f){if(s=Mz(t),!c)return kz(t,s)}else{var p=Pz(t),d=p==Wz||p==qz;if(Nz(t))return Sz(t,c);if(p==Gz||p==$z||d&&!i){if(s=u||d?{}:Rz(t),!c)return u?jz(t,Oz(s,t)):Ez(t,Cz(s,t))}else{if(!Zz[p])return i?t:{};s=Dz(t,p,c)}}a||(a=new wz);var h=a.get(t);if(h)return h;a.set(t,s),Fz(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Lz(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?Tz:Az:u?Vz:zz)(t);return xz(g||t,(function(o,i){g&&(o=t[i=o]),_z(s,i,e(o,n,r,i,t,a))})),s},Xz=hs,Jz=Rp;var Qz=function(e,t){return t.length<2?e:Xz(e,Jz(t,0,-1))},eV=cs,tV=AT,nV=Qz,rV=fs;var oV=function(e,t){return t=eV(t,e),null==(e=nV(e,t))||delete e[rV(tV(t))]},iV=eD;var aV=Rm;var sV=function(e){return(null==e?0:e.length)?aV(e,1):[]},cV=sV,uV=sb,lV=mb;var fV=Ga,pV=Yz,dV=oV,hV=cs,gV=LB,yV=function(e){return iV(e)?void 0:e},vV=yF,mV=function(e){return lV(uV(e,void 0,cV),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=fV(t,(function(t){return t=hV(t,e),r||(r=t.length>1),t})),gV(e,vV(e),n),r&&(n=pV(n,7,yV));for(var o=t.length;o--;)dV(n,t[o]);return n})),bV=mV,wV=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],xV=["width","height","className","style","children","type"];function _V(e){return _V="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},_V(e)}function CV(){return CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CV.apply(this,arguments)}function OV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function SV(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,DV(r.key),r)}}function kV(e,t){return kV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kV(e,t)}function EV(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=AV(e);if(t){var o=AV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jV(e)}(this,n)}}function jV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AV(e){return AV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AV(e)}function TV(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 PV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TV(Object(n),!0).forEach((function(t){MV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MV(e,t,n){return(t=DV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DV(e){var t=function(e,t){if("object"!==_V(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_V(t)?t:String(t)}var RV="value",IV=function e(t){var n,r,o=t.depth,i=t.node,a=t.index,s=t.valueKey,c=i.children,u=o+1,l=c&&c.length?c.map((function(t,n){return e({depth:u,node:t,index:n,valueKey:s})})):null;return r=c&&c.length?l.reduce((function(e,t){return e+t[RV]}),0):Cs(i[s])||i[s]<=0?0:i[s],PV(PV({},i),{},(MV(n={children:l},RV,r),MV(n,"depth",o),MV(n,"index",a),n))},NV=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},LV=function(e,t,n,r){return t===n.width?function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.height)&&(o=n.height);for(var i,a=n.x,s=0,c=e.length;s<c;s++)(i=e[s]).x=a,i.y=n.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,n.x+n.width-a),a+=i.width;return i.width+=n.x+n.width-a,PV(PV({},n),{},{y:n.y+o,height:n.height-o})}(e,t,n,r):function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.width)&&(o=n.width);for(var i,a=n.y,s=0,c=e.length;s<c;s++)(i=e[s]).x=n.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,n.y+n.height-a),a+=i.height;return i&&(i.height+=n.y+n.height-a),PV(PV({},n),{},{x:n.x+o,width:n.width-o})}(e,t,n,r)},BV=function e(t,n){var r=t.children;if(r&&r.length){var o,i,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),s=[],c=1/0,u=Math.min(a.width,a.height),l=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[RV]*n;return PV(PV({},e),{},{area:Cs(t)||t<=0?0:t})}))}(r,a.width*a.height/t[RV]),f=l.slice();for(s.area=0;f.length>0;)s.push(o=f[0]),s.area+=o.area,(i=NV(s,u,n))<=c?(f.shift(),c=i):(s.area-=s.pop().area,a=LV(s,u,a,!1),u=Math.min(a.width,a.height),s.length=s.area=0,c=1/0);return s.length&&(a=LV(s,u,a,!0),s.length=s.area=0),PV(PV({},t),{},{children:l.map((function(t){return e(t,n)}))})}return t},FV={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},zV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kV(e,t)}(a,t.PureComponent);var n,r,o,i=EV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MV(jV(e=i.call.apply(i,[this].concat(n))),"state",PV({},FV)),MV(jV(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),MV(jV(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;Xs(n.children,rw)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;Xs(n.children,rw)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=IV({depth:0,node:PV(PV({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=BV(c,s),l=this.state.nestIndex;l.push(e),this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=IV({depth:0,node:PV(PV({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=BV(c,s);n=n.slice(0,t+1),this.setState({formatRoot:u,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(e,n,r){var o=this,i=this.props,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,d=i.colorPanel,h=this.state.isAnimationFinished,g=n.width,y=n.height,v=n.x,m=n.y,b=n.depth,w=parseInt("".concat((2*Math.random()-1)*g),10),x={};return(r||"nest"===f)&&(x={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?t.createElement(jm,{begin:s,duration:c,isActive:a,easing:u,key:"treemap-".concat(p),from:{x:v,y:m,width:g,height:y},to:{x:v,y:m,width:g,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var i=r.x,p=r.y,g=r.width,y=r.height;return t.createElement(jm,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:s,easing:u,isActive:a,duration:c},t.createElement(hc,x,b>2&&!h?null:o.constructor.renderContentItem(e,PV(PV({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!l,width:g,height:y,x:i,y:p}),f,d)))})):t.createElement(hc,x,this.constructor.renderContentItem(e,PV(PV({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:g,height:y,x:v,y:m}),f,d))}},{key:"renderNode",value:function(e,n,r){var o=this,i=this.props,a=i.content,s=i.type,c=PV(PV(PV({},nc(this.props)),n),{},{root:e}),u=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&e.depth&&"nest"===s?null:t.createElement(hc,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,c,u),n.children&&n.children.length?n.children.map((function(e,t){return o.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.nameKey,o=Xs(n,rw);if(!o)return null;var i=this.props,a=i.width,s=i.height,c=this.state,u=c.isTooltipActive,l=c.activeNode,f={x:0,y:0,width:a,height:s},p=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,d=u&&l?[{payload:l,name:kA(l,r,""),value:kA(l,RV)}]:[];return t.cloneElement(o,{viewBox:f,active:u,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var e=this,n=this.props,r=n.nameKey,o=n.nestIndexContent,i=this.state.nestIndex;return t.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(n,i){var a=ys(n,r,"root"),s=null;return t.isValidElement(o)&&(s=t.cloneElement(o,n,i)),s=ni(o)?o(n,i):a,t.createElement("div",{onClick:e.handleNestIndex.bind(e,n,i),key:"nest-index-".concat(As()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},s)})))}},{key:"render",value:function(){if(!Js(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=e.type,c=OV(e,xV),u=nc(c);return t.createElement("div",{className:To("recharts-wrapper",o),style:PV(PV({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(lc,CV({},u,{width:n,height:"nest"===s?r-30:r}),this.renderAllNodes(),tc(a)),this.renderTooltip(),"nest"===s&&this.renderNestIndex())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=IV({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=BV(n,e.aspectRatio);return PV(PV({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,n,r,o){if(t.isValidElement(e))return t.cloneElement(e,n);if(ni(e))return e(n);var i=n.x,a=n.y,s=n.width,c=n.height,u=n.index,l=null;s>10&&c>10&&n.children&&"nest"===r&&(l=t.createElement(NP,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=Qx(n.name);s>20&&c>20&&p.width<s&&p.height<c&&(f=t.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},n.name));var d=o||wV;return t.createElement("g",null,t.createElement(CP,CV({fill:n.depth<2?d[u%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},bV(n,"children"),{role:"img"})),l,f)}}],r&&SV(n.prototype,r),o&&SV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();MV(zV,"displayName","Treemap"),MV(zV,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Kb.isSsr,isUpdateAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var VV=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n},HV=lp,UV=VV;var KV=function(e,t){return e&&e.length?UV(e,HV(t)):0},$V=["width","height","className","style","children"],WV=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function qV(e){return qV="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},qV(e)}function GV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZV.apply(this,arguments)}function YV(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,oH(r.key),r)}}function XV(e,t){return XV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XV(e,t)}function JV(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=eH(e);if(t){var o=eH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QV(e)}(this,n)}}function QV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eH(e){return eH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eH(e)}function tH(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 nH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tH(Object(n),!0).forEach((function(t){rH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rH(e,t,n){return(t=oH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oH(e){var t=function(e,t){if("object"!==qV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qV(t)?t:String(t)}var iH={x:0,y:0},aH=function(e){return e.y+e.dy/2},sH=function(e){return e&&e.value||0},cH=function(e,t){return t.reduce((function(t,n){return t+sH(e[n])}),0)},uH=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+aH(i)*sH(t[r])}),0)},lH=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+aH(i)*sH(t[r])}),0)},fH=function(e,t){return e.y-t.y},pH=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o<i;o++){var a=t[r[o]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},dH=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.length;i.sort(fH);for(var s=0,c=0;c<a;c++){var u=i[c],l=s-u.y;l>0&&(u.y+=l),s=u.y+u.dy+n}s=t+n;for(var f=a-1;f>=0;f--){var p=i[f],d=p.y+p.dy+n-s;if(!(d>0))break;p.y-=d,s=p.y}}},hH=function(e,t,n,r){for(var o=0,i=t.length;o<i;o++)for(var a=t[o],s=0,c=a.length;s<c;s++){var u=a[s];if(u.sourceLinks.length){var l=cH(n,u.sourceLinks),f=uH(e,n,u.sourceLinks)/l;u.y+=(f-aH(u))*r}}},gH=function(e,t,n,r){for(var o=t.length-1;o>=0;o--)for(var i=t[o],a=0,s=i.length;a<s;a++){var c=i[a];if(c.targetLinks.length){var u=cH(n,c.targetLinks),l=lH(e,n,c.targetLinks)/u;c.y+=(l-aH(c))*r}}},yH=function(e){var t=e.data,n=e.width,r=e.height,o=e.iterations,i=e.nodeWidth,a=e.nodePadding,s=t.links,c=function(e,t,n){for(var r=e.nodes,o=e.links,i=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],o=[],i=[],a=0,s=e.length;a<s;a++){var c=e[a];c.source===t&&(o.push(c.target),i.push(a)),c.target===t&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:o}}(o,t);return nH(nH(nH({},e),n),{},{value:Math.max(cH(o,n.sourceLinks),cH(o,n.targetLinks)),depth:0})})),a=0,s=i.length;a<s;a++){var c=i[a];c.sourceNodes.length||pH(i,c)}var u=yM(i,(function(e){return e.depth})).depth;if(u>=1)for(var l=(t-n)/u,f=0,p=i.length;f<p;f++){var d=i[f];d.targetNodes.length||(d.depth=u),d.x=d.depth*l,d.dx=n}return{tree:i,maxDepth:u}}(t,n,i),u=c.tree,l=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];t[o.depth]||(t[o.depth]=[]),t[o.depth].push(o)}return t}(u),f=function(e,t,n,r){for(var o=D_(e.map((function(e){return(t-(e.length-1)*n)/KV(e,sH)}))),i=0,a=e.length;i<a;i++)for(var s=0,c=e[i].length;s<c;s++){var u=e[i][s];u.y=s,u.dy=u.value*o}return r.map((function(e){return nH(nH({},e),{},{dy:sH(e)*o})}))}(l,r,a,s);dH(l,r,a);for(var p=1,d=1;d<=o;d++)gH(u,l,f,p*=.99),dH(l,r,a),hH(u,l,f,p),dH(l,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=0,a=0;o.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),o.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var s=0,c=o.targetLinks.length;s<c;s++){var u=t[o.targetLinks[s]];u&&(u.sy=i,i+=u.dy)}for(var l=0,f=o.sourceLinks.length;l<f;l++){var p=t[o.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(u,f),{nodes:u,links:f}},vH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XV(e,t)}(a,t.PureComponent);var n,r,o,i=JV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rH(QV(e=i.call.apply(i,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,o=r.onMouseEnter,i=Xs(r.children,rw);i?this.setState((function(n){return"hover"===i.props.trigger?nH(nH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,o=r.onMouseLeave,i=Xs(r.children,rw);i?this.setState((function(e){return"hover"===i.props.trigger?nH(nH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,o=r.onClick,i=Xs(r.children,rw);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return nH(nH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return nH(nH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),o&&o(e,t,n)}},{key:"renderLinks",value:function(e,n){var r=this,o=this.props,i=o.linkCurvature,a=o.link,s=o.margin,c=ys(s,"top")||0,u=ys(s,"left")||0;return t.createElement(hc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,o){var s=e.sy,l=e.ty,f=e.dy,p=n[e.source],d=n[e.target],h=p.x+p.dx+u,g=d.x+u,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,g),v=y(i),m=y(1-i),b=nH({sourceX:h,targetX:g,sourceY:p.y+s+f/2+c,targetY:d.y+l+f/2+c,sourceControlX:v,targetControlX:m,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:o,payload:nH(nH({},e),{},{source:p,target:d})},nc(a)),w={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return t.createElement(hc,ZV({key:"link".concat(o)},w),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(e){var n=this,r=this.props,o=r.node,i=r.margin,a=ys(i,"top")||0,s=ys(i,"left")||0;return t.createElement(hc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,r){var i=e.x,c=e.y,u=e.dx,l=e.dy,f=nH(nH({},nc(o)),{},{x:i+s,y:c+a,width:u,height:l,index:r,payload:e}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return t.createElement(hc,ZV({key:"node".concat(r)},p),n.constructor.renderNodeItem(o,f))})))}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.width,o=e.height,i=e.nameKey,a=Xs(n,rw);if(!a)return null;var s,c=this.state,u=c.isTooltipActive,l=c.activeElement,f=c.activeElementType,p={x:0,y:0,width:r,height:o},d=l?(s=l,"node"===f?{x:s.x+s.width/2,y:s.y+s.height/2}:{x:(s.sourceX+s.targetX)/2,y:(s.sourceY+s.targetY)/2}):iH,h=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:kA(r,n,""),value:kA(r,"value")}];if(r.source&&r.target){var o=kA(r.source,n,""),i=kA(r.target,n,"");return[{payload:e,name:"".concat(o," - ").concat(i),value:kA(r,"value")}]}return[]}(l,f,i):[];return t.cloneElement(a,{viewBox:p,active:u,coordinate:d,label:"",payload:h})}},{key:"render",value:function(){if(!Js(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=GV(e,$V),c=this.state,u=c.links,l=c.nodes,f=nc(s);return t.createElement("div",{className:To("recharts-wrapper",o),style:nH(nH({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(lc,ZV({},f,{width:n,height:r}),tc(a),this.renderLinks(u,l),this.renderNodes(l)),this.renderTooltip())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.height,i=e.margin,a=e.iterations,s=e.nodeWidth,c=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||o!==t.prevHeight||!Rs(i,t.prevMargin)||a!==t.prevIterations||s!==t.prevNodeWidth||c!==t.prevNodePadding){var u=r-(i&&i.left||0)-(i&&i.right||0),l=o-(i&&i.top||0)-(i&&i.bottom||0),f=yH({data:n,width:u,height:l,iterations:a,nodeWidth:s,nodePadding:c}),p=f.links,d=f.nodes;return nH(nH({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:c,prevNodeWidth:s,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(ni(e))return e(n);var r=n.sourceX,o=n.sourceY,i=n.sourceControlX,a=n.targetX,s=n.targetY,c=n.targetControlX,u=n.linkWidth,l=GV(n,WV);return t.createElement("path",ZV({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(o,"\n C").concat(i,",").concat(o," ").concat(c,",").concat(s," ").concat(a,",").concat(s,"\n "),fill:"none",stroke:"#333",strokeWidth:u,strokeOpacity:"0.2"},nc(l)))}},{key:"renderNodeItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(CP,ZV({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},nc(n),{role:"img"}))}}],r&&YV(n.prototype,r),o&&YV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function mH(e){return mH="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},mH(e)}function bH(){return bH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bH.apply(this,arguments)}function wH(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,kH(r.key),r)}}function xH(e,t){return xH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xH(e,t)}function _H(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=OH(e);if(t){var o=OH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CH(e)}(this,n)}}function CH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OH(e){return OH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OH(e)}function SH(e,t,n){return(t=kH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kH(e){var t=function(e,t){if("object"!==mH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mH(t)?t:String(t)}rH(vH,"displayName","Sankey"),rH(vH,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),EB({chartName:"RadarChart",GraphicalChild:ED,axisComponents:[{axisType:"angleAxis",AxisComp:UM},{axisType:"radiusAxis",AxisComp:TM}],formatAxisMap:lT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EB({chartName:"ScatterChart",GraphicalChild:dL,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL},{axisType:"zAxis",AxisComp:tL}],formatAxisMap:mI}),EB({chartName:"AreaChart",GraphicalChild:eL,axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL}],formatAxisMap:mI}),EB({chartName:"RadialBarChart",GraphicalChild:VD,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:UM},{axisType:"radiusAxis",AxisComp:TM}],formatAxisMap:lT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EB({chartName:"ComposedChart",GraphicalChild:[zN,eL,fI,dL],axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL},{axisType:"zAxis",AxisComp:tL}],formatAxisMap:mI});var EH=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},jH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xH(e,t)}(a,t.PureComponent);var n,r,o,i=_H(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SH(CH(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.upperWidth,a=n.lowerWidth,s=n.height,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=To("recharts-trapezoid",c);return h?t.createElement(jm,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:r,y:o},to:{upperWidth:i,lowerWidth:a,height:s,x:r,y:o},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,o=n.lowerWidth,i=n.height,a=n.x,s=n.y;return t.createElement(jm,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},t.createElement("path",bH({},nc(e.props,!0),{className:g,d:EH(a,s,r,o,i),ref:function(t){e.node=t}})))})):t.createElement("g",null,t.createElement("path",bH({},nc(this.props,!0),{className:g,d:EH(r,o,i,a,s)})))}}],r&&wH(n.prototype,r),o&&wH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function AH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return TH(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 TH(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 TH(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 PH(e){return PH="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},PH(e)}function MH(){return MH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MH.apply(this,arguments)}function DH(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 RH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DH(Object(n),!0).forEach((function(t){zH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IH(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,VH(r.key),r)}}function NH(e,t){return NH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NH(e,t)}function LH(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=FH(e);if(t){var o=FH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return BH(e)}(this,n)}}function BH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FH(e){return FH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FH(e)}function zH(e,t,n){return(t=VH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VH(e){var t=function(e,t){if("object"!==PH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PH(t)?t:String(t)}SH(jH,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var HH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NH(e,t)}(a,t.PureComponent);var n,r,o,i=LH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zH(BH(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),zH(BH(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),zH(BH(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var n=this,r=this.props.activeShape;return e.map((function(e,o){var i=n.isActiveIndex(o)?r:null,s=RH(RH({},e),{},{stroke:e.stroke});return t.createElement(hc,MH({className:"recharts-funnel-trapezoid"},Vs(n.props,e,o),{key:"trapezoid-".concat(o),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,n=this.props,r=n.trapezoids,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevTrapezoids;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ms(n.x,e.x),i=Ms(n.y,e.y),a=Ms(n.upperWidth,e.upperWidth),s=Ms(n.lowerWidth,e.lowerWidth),c=Ms(n.height,e.height);return RH(RH({},e),{},{x:r(o),y:i(o),upperWidth:a(o),lowerWidth:s(o),height:c(o)})}var l=Ms(e.x+e.upperWidth/2,e.x),f=Ms(e.y+e.height/2,e.y),p=Ms(0,e.upperWidth),d=Ms(0,e.lowerWidth),h=Ms(0,e.height);return RH(RH({},e),{},{x:l(o),y:f(o),upperWidth:p(o),lowerWidth:d(o),height:h(o)})}));return t.createElement(hc,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.trapezoids,o=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var s=To("recharts-trapezoids",o);return t.createElement(hc,{className:s},this.renderTrapezoids(),(!i||a)&&zT.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):eD(e)?t.createElement(jH,MH({},n,e)):t.createElement(jH,n)}}],r&&IH(n.prototype,r),o&&IH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();zH(HH,"displayName","Funnel"),zH(HH,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Kb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),zH(HH,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,o=nc(e.props),i=Ys(r,ix);return n&&n.length?n.map((function(e,t){return RH(RH(RH({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return RH(RH({},o),e.props)})):[]})),zH(HH,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return xs(n)?l=n:ui(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}})),zH(HH,"getComposedData",(function(e){var t=e.item,n=e.offset,r=HH.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=HH.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 kA(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=kA(e,i,0),u=kA(e,a,t),p=o;if(t!==m-1)(n=kA(r[t+1],i,0))instanceof Array&&(n=AH(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=AH(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return RH(RH({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},bV(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 RH(RH({},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:RH(RH({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:RH(RH({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}})),EB({chartName:"FunnelChart",GraphicalChild:HH,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const UH=X.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),KH=()=>{const{tooltip:t,elevation1:r}=n.useTheme();return e.jsx(rw,{wrapperStyle:{outline:"none",boxShadow:r},contentStyle:{background:t.background,border:"none",borderRadius:4,padding:16},labelStyle:{color:t.color.subtext},itemStyle:{color:t.color.default,textTransform:"capitalize"},cursor:!1})},$H=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}});function WH(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 qH(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function GH(e){return GH="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},GH(e)}function ZH(e){qH(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===GH(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 YH(e,t){qH(2,arguments);var n=ZH(e),r=WH(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function XH(e,t){qH(2,arguments);var n=ZH(e),r=WH(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function JH(e){return JH="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},JH(e)}function QH(e,t){if(qH(2,arguments),!t||"object"!==JH(t))return new Date(NaN);var n=t.years?WH(t.years):0,r=t.months?WH(t.months):0,o=t.weeks?WH(t.weeks):0,i=t.days?WH(t.days):0,a=t.hours?WH(t.hours):0,s=t.minutes?WH(t.minutes):0,c=t.seconds?WH(t.seconds):0,u=ZH(e),l=r||n?XH(u,r+12*n):u,f=i||o?YH(l,i+7*o):l,p=1e3*(c+60*(s+60*a));return new Date(f.getTime()+p)}var eU={};function tU(){return eU}function nU(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 rU(e){qH(1,arguments);var t=ZH(e);return t.setHours(0,0,0,0),t}var oU=864e5;var iU=6e4;function aU(e,t){qH(2,arguments);var n=rU(e),r=rU(t);return n.getTime()===r.getTime()}function sU(e){return sU="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},sU(e)}function cU(e){if(qH(1,arguments),!function(e){return qH(1,arguments),e instanceof Date||"object"===sU(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=ZH(e);return!isNaN(Number(t))}function uU(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 lU(e,t){qH(2,arguments);var n=ZH(e),r=ZH(t),o=uU(n,r),i=Math.abs(function(e,t){qH(2,arguments);var n=rU(e),r=rU(t),o=n.getTime()-nU(n),i=r.getTime()-nU(r);return Math.round((o-i)/oU)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(uU(n,r)===-o));return 0===a?0:a}var fU={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},pU="trunc";function dU(e){return e?fU[e]:fU[pU]}function hU(e,t,n){qH(2,arguments);var r=function(e,t){return qH(2,arguments),ZH(e).getTime()-ZH(t).getTime()}(e,t)/iU;return dU(null==n?void 0:n.roundingMethod)(r)}function gU(e,t){return qH(2,arguments),function(e,t){qH(2,arguments);var n=ZH(e).getTime(),r=WH(t);return new Date(n+r)}(e,-WH(t))}var yU=864e5;function vU(e){qH(1,arguments);var t=ZH(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function mU(e){qH(1,arguments);var t=ZH(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=vU(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=vU(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var bU=6048e5;function wU(e){qH(1,arguments);var t=ZH(e),n=vU(t).getTime()-function(e){qH(1,arguments);var t=mU(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),vU(n)}(t).getTime();return Math.round(n/bU)+1}function xU(e,t){var n,r,o,i,a,s,c,u;qH(1,arguments);var l=tU(),f=WH(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ZH(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 _U(e,t){var n,r,o,i,a,s,c,u;qH(1,arguments);var l=ZH(e),f=l.getUTCFullYear(),p=tU(),d=WH(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=xU(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=xU(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}var CU=6048e5;function OU(e,t){qH(1,arguments);var n=ZH(e),r=xU(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;qH(1,arguments);var l=tU(),f=WH(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=_U(e,t),d=new Date(0);return d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0),xU(d,t)}(n,t).getTime();return Math.round(r/CU)+1}function SU(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var kU=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return SU("yy"===t?r%100:r,t.length)},EU=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):SU(n+1,2)},jU=function(e,t){return SU(e.getUTCDate(),t.length)},AU=function(e,t){return SU(e.getUTCHours()%12||12,t.length)},TU=function(e,t){return SU(e.getUTCHours(),t.length)},PU=function(e,t){return SU(e.getUTCMinutes(),t.length)},MU=function(e,t){return SU(e.getUTCSeconds(),t.length)},DU=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return SU(Math.floor(r*Math.pow(10,n-3)),t.length)},RU="midnight",IU="noon",NU="morning",LU="afternoon",BU="evening",FU="night",zU={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return kU(e,t)},Y:function(e,t,n,r){var o=_U(e,r),i=o>0?o:1-o;return"YY"===t?SU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):SU(i,t.length)},R:function(e,t){return SU(mU(e),t.length)},u:function(e,t){return SU(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 SU(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 SU(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 EU(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 SU(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=OU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):SU(o,t.length)},I:function(e,t,n){var r=wU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):SU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):jU(e,t)},D:function(e,t,n){var r=function(e){qH(1,arguments);var t=ZH(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/yU)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):SU(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return SU(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return SU(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return SU(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?IU:0===o?RU:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?BU:o>=12?LU:o>=4?NU:FU,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 AU(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):TU(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):SU(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):SU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):PU(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):MU(e,t)},S:function(e,t){return DU(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return HU(o);case"XXXX":case"XX":return UU(o);default:return UU(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return HU(o);case"xxxx":case"xx":return UU(o);default:return UU(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+VU(o,":");default:return"GMT"+UU(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+VU(o,":");default:return"GMT"+UU(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return SU(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return SU((r._originalDate||e).getTime(),t.length)}};function VU(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+SU(i,2)}function HU(e,t){return e%60==0?(e>0?"-":"+")+SU(Math.abs(e)/60,2):UU(e,t)}function UU(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+SU(Math.floor(o/60),2)+n+SU(o%60,2)}var KU=zU,$U=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"})}},WU=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"})}},qU={p:WU,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return $U(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",$U(o,t)).replace("{{time}}",WU(i,t))}},GU=qU,ZU=["D","DD"],YU=["YY","YYYY"];function XU(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 JU={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 QU(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var eK={date:QU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:QU({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:QU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tK={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function nK(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var rK={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:nK({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:nK({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:nK({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:nK({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:nK({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 oK(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var iK,aK={ordinalNumber:(iK={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(iK.matchPattern);if(!n)return null;var r=n[0],o=e.match(iK.parsePattern);if(!o)return null;var i=iK.valueCallback?iK.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:oK({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:oK({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:oK({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:oK({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:oK({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"})},sK={code:"en-US",formatDistance:function(e,t,n){var r,o=JU[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:eK,formatRelative:function(e,t,n,r){return tK[e]},localize:rK,match:aK,options:{weekStartsOn:0,firstWeekContainsDate:1}},cK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lK=/^'([^]*?)'?$/,fK=/''/g,pK=/[a-zA-Z]/;function dK(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;qH(2,arguments);var x=String(t),_=tU(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:sK,O=WH(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=WH(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=ZH(e);if(!cU(k))throw new RangeError("Invalid time value");var E=gU(k,nU(k)),j={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},A=x.match(uK).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,GU[t])(e,C.formatLong):e})).join("").match(cK).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(lK);if(!t)return e;return t[1].replace(fK,"'")}(r);var i,a=KU[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===YU.indexOf(i))||XU(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==ZU.indexOf(e)}(r)||XU(r,t,String(e)),a(E,r,C.localize,j);if(o.match(pK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function hK(e){return qH(1,arguments),ZH(e).getDate()}function gK(e){qH(1,arguments);var t=ZH(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function yK(e){qH(1,arguments);var t=ZH(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vK(e,t){qH(2,arguments);var n=ZH(e),r=ZH(t);return n.getTime()>r.getTime()}function mK(e,t){qH(2,arguments);var n=ZH(e),r=ZH(t);return n.getTime()<r.getTime()}function bK(e){return qH(1,arguments),function(e,t){qH(2,arguments);var n=ZH(e),r=ZH(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function wK(e,t){return qH(2,arguments),YH(e,-WH(t))}function xK(e){return xK="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},xK(e)}function _K(e,t){if(qH(2,arguments),"object"!==xK(t)||null===t)throw new RangeError("values parameter must be an object");var n=ZH(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){qH(2,arguments);var n=ZH(e),r=WH(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=gK(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(WH(t.date)),null!=t.hours&&n.setHours(WH(t.hours)),null!=t.minutes&&n.setMinutes(WH(t.minutes)),null!=t.seconds&&n.setSeconds(WH(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(WH(t.milliseconds)),n)}function CK(e,t){qH(2,arguments);var n=ZH(e),r=WH(t);return n.setDate(r),n}function OK(e){return OK="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},OK(e)}function SK(e,t){if(qH(2,arguments),!t||"object"!==OK(t))return new Date(NaN);var n=t.years?WH(t.years):0,r=t.months?WH(t.months):0,o=t.weeks?WH(t.weeks):0,i=t.days?WH(t.days):0,a=t.hours?WH(t.hours):0,s=t.minutes?WH(t.minutes):0,c=t.seconds?WH(t.seconds):0,u=function(e,t){return qH(2,arguments),XH(e,-WH(t))}(e,r+12*n),l=wK(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const kK=X.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"}))),EK=X.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),jK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),AK=X.div({display:"flex"}),TK=X.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),PK=X.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),MK=X.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),DK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),RK=X.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),IK=X.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`}}}))),NK=X.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),LK=n=>{var{id:r,label:o,labelPosition:i,checked:s,partial:c,disabled:u,onChange:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g}=n,y=a(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(s||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(c?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,c]),t.useEffect((()=>{w("boolean"==typeof s?s:b)}),[s,b]),e.jsxs(RK,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(NK,{children:o}),e.jsx(IK,Object.assign({ref:x,id:r,type:"checkbox",checked:c?!b:b,disabled:u,onChange:()=>{const e=!!c||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!c)}},y)),e.jsx(on,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
|
|
202
|
+
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();void 0!==kx&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Ex);var jx={},Ax={},Tx={get exports(){return Ax},set exports(e){Ax=e}},Px={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}},Mx=function(e,t,n,r){if(!Px.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Px[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=Px[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Mx);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}(Tx,Ax),Object.defineProperty(jx,"__esModule",{value:!0}),jx.flip=Lx;var Dx=function(e){return e&&e.__esModule?e:{default:e}}(Ax);function Rx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Dx.default)(e.left,e.right,t),r=Rx(n.left,t),o=Rx(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(Ix(r.right,o.right)?n=(0,Dx.default)(r.left,o.left,t):Ix(r.right,o.left)&&(n=(0,Dx.default)(r.left,o.right,t)),r=Rx(n.left,t),o=Rx(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return Bx(o);r.type===o.type&&Nx(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(Nx(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Rx({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?Lx(o.operator):o.operator,Rx(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Rx({type:"MathExpression",operator:"-"===i?Lx(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Rx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Nx(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Rx({type:"MathExpression",operator:i,left:r.left,right:o},t),Rx(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Rx({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Rx({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Rx(e,t)}return e}(e,t);case"/":return function(e,t){if(!Nx(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 Nx(e.left.left.type)&&Nx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Rx(e.left,t)):e;if(Nx(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(Nx(e.left.left.type)&&Nx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Nx(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(Nx(e.right.left.type)&&Nx(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&&Nx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Rx(e.value,t):e}function Ix(e,t){return e.type===t.type&&e.value===t.value}function Nx(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 Lx(e){return"+"===e?"-":"+"}function Bx(e){return Nx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Bx(e.left),e.right=Bx(e.right)),e}jx.default=Rx;var Fx={};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=jx,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}({get exports(){return Fx},set exports(e){Fx=e}},Fx),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Sx),r=Ex,o=a(jx),i=a(Fx);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(ux,cx);var zx=c(cx);function Vx(e){return Vx="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},Vx(e)}function Hx(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 Ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hx(Object(n),!0).forEach((function(t){Kx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Vx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $x(e){return function(e){if(Array.isArray(e))return Wx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wx(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 Wx(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 Wx(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 qx={widthCache:{},cacheCount:0},Gx=2e3,Zx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Yx=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Xx="recharts_measurement_span";var Jx=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat($x(e),["-",t.toLowerCase()]):[].concat($x(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],Yx.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},Qx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Kb.isSsr)return{width:0,height:0};var n="".concat(e),r=Jx(t),o="".concat(n,"-").concat(r);if(qx.widthCache[o])return qx.widthCache[o];try{var i=document.getElementById(Xx);i||((i=document.createElement("span")).setAttribute("id",Xx),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Ux(Ux({},Zx),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return qx.widthCache[o]=c,++qx.cacheCount>Gx&&(qx.cacheCount=0,qx.widthCache={}),c}catch(e){return{width:0,height:0}}},e_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function t_(e){return t_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t_(e)}function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n_.apply(this,arguments)}function r_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o_(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,h_(r.key),r)}}function i_(e,t){return i_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i_(e,t)}function a_(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=c_(e);if(t){var o=c_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===t_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s_(e)}(this,n)}}function s_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(e){return c_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c_(e)}function u_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l_(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 l_(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 l_(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 f_(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 p_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f_(Object(n),!0).forEach((function(t){d_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d_(e,t,n){return(t=h_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_(e){var t=function(e,t){if("object"!==t_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==t_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===t_(t)?t:String(t)}var g_=/[ \f\n\r\t\v\u2028\u2029]+/,y_=function(e){try{var t=[];return vs(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(g_)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Qx(t,e.style).width}})),spaceWidth:e.breakAll?0:Qx(" ",e.style).width}}catch(e){return null}},v_=function(e){return[{words:vs(e)?[]:e.toString().split(g_)}]},m_=function(e,t){if((e.width||e.scaleToFit)&&!Kb.isSsr&&t){var n=y_(e);return n?function(e,t,n,r,o){var i=ks(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=y_(p_(p_({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=u_(l(h-1),2),y=g[0],v=g[1],m=u_(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):v_(e.children)}return v_(e.children)},b_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i_(e,t)}(a,t.Component);var n,r,o,i=a_(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d_(s_(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=r_(e,e_),h=this.state.wordsByLines;if(!Es(d.x)||!Es(d.y))return null;var g,y=d.x+(ks(n)?n:0),v=d.y+(ks(r)?r:0);switch(i){case"start":g=zx("calc(".concat(l,")"));break;case"middle":g=zx("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=zx("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((ks(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",n_({},nc(d,!0),{x:y,y:v,className:To("recharts-text",f),textAnchor:o,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,n){return t.createElement("tspan",{x:y,dy:0===n?g:u,key:n},e.words.join(p?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:m_(e,n)}}return null}}],r&&o_(n.prototype,r),o&&o_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();d_(b_,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var w_=hf;var x_=function(e,t){return w_(e,t)},__=di;var C_=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!__(a):n(a,s)))var s=a,c=i}return c};var O_=function(e,t){return e>t},S_=C_,k_=O_,E_=Xf;var j_=function(e){return e&&e.length?S_(e,E_,k_):void 0};var A_=function(e,t){return e<t},T_=C_,P_=A_,M_=Xf;var D_=function(e){return e&&e.length?T_(e,M_,P_):void 0},R_=Ga,I_=lp,N_=Um,L_=ri;var B_=Rm,F_=function(e,t){return(L_(e)?R_:N_)(e,I_(t))};var z_=function(e,t){return B_(F_(e,t),1)};function V_(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function H_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function U_(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=V_,n=(t,n)=>V_(e(t),n),r=(t,n)=>e(t)-n):(t=e===V_||e===H_?e:K_,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function K_(){return 0}function $_(e){return null===e?NaN:+e}const W_=U_(V_).right;U_($_).center;class q_ extends Map{constructor(e,t=Z_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(G_(this,e))}has(e){return super.has(G_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function G_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Z_(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Y_(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const X_=Math.sqrt(50),J_=Math.sqrt(10),Q_=Math.sqrt(2);function eC(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=X_?10:i>=J_?5:i>=Q_?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?eC(e,t,2*n):[s,c,u]}function tC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?eC(t,e,n):eC(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function nC(e,t,n){return eC(e=+e,t=+t,n=+n)[2]}function rC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?nC(t,e,n):nC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function oC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function iC(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function aC(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?Y_:function(e=V_){if(e===V_)return Y_;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);aC(e,t,Math.max(n,Math.floor(t-a*c/i+u)),Math.min(r,Math.floor(t+(i-a)*c/i+u)),o)}const i=e[t];let a=n,s=r;for(sC(e,n,t),o(e[r],i)>0&&sC(e,n,r);a<s;){for(sC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?sC(e,n,s):(++s,sC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cC(e,t,n=$_){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function uC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function lC(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 fC=Symbol("implicit");function pC(){var e=new q_,t=[],n=[],r=fC;function o(o){let i=e.get(o);if(void 0===i){if(r!==fC)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new q_;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return pC(t,n).unknown(r)},uC.apply(o,arguments),o}function dC(){var e,t,n=pC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return dC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},uC.apply(f(),arguments)}function hC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return hC(t())},e}function gC(){return hC(dC.apply(null,arguments).paddingInner(1))}function yC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mC(){}var bC=.7,wC=1/bC,xC="\\s*([+-]?\\d+)\\s*",_C="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",CC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OC=/^#([0-9a-f]{3,8})$/,SC=new RegExp(`^rgb\\(${xC},${xC},${xC}\\)$`),kC=new RegExp(`^rgb\\(${CC},${CC},${CC}\\)$`),EC=new RegExp(`^rgba\\(${xC},${xC},${xC},${_C}\\)$`),jC=new RegExp(`^rgba\\(${CC},${CC},${CC},${_C}\\)$`),AC=new RegExp(`^hsl\\(${_C},${CC},${CC}\\)$`),TC=new RegExp(`^hsla\\(${_C},${CC},${CC},${_C}\\)$`),PC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function MC(){return this.rgb().formatHex()}function DC(){return this.rgb().formatRgb()}function RC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?IC(t):3===n?new FC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?NC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?NC(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=SC.exec(e))?new FC(t[1],t[2],t[3],1):(t=kC.exec(e))?new FC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=EC.exec(e))?NC(t[1],t[2],t[3],t[4]):(t=jC.exec(e))?NC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AC.exec(e))?$C(t[1],t[2]/100,t[3]/100,1):(t=TC.exec(e))?$C(t[1],t[2]/100,t[3]/100,t[4]):PC.hasOwnProperty(e)?IC(PC[e]):"transparent"===e?new FC(NaN,NaN,NaN,0):null}function IC(e){return new FC(e>>16&255,e>>8&255,255&e,1)}function NC(e,t,n,r){return r<=0&&(e=t=n=NaN),new FC(e,t,n,r)}function LC(e){return e instanceof mC||(e=RC(e)),e?new FC((e=e.rgb()).r,e.g,e.b,e.opacity):new FC}function BC(e,t,n,r){return 1===arguments.length?LC(e):new FC(e,t,n,null==r?1:r)}function FC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function zC(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}`}function VC(){const e=HC(this.opacity);return`${1===e?"rgb(":"rgba("}${UC(this.r)}, ${UC(this.g)}, ${UC(this.b)}${1===e?")":`, ${e})`}`}function HC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function UC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function KC(e){return((e=UC(e))<16?"0":"")+e.toString(16)}function $C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qC(e,t,n,r)}function WC(e){if(e instanceof qC)return new qC(e.h,e.s,e.l,e.opacity);if(e instanceof mC||(e=RC(e)),!e)return new qC;if(e instanceof qC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new qC(a,s,c,e.opacity)}function qC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function GC(e){return(e=(e||0)%360)<0?e+360:e}function ZC(e){return Math.max(0,Math.min(1,e||0))}function YC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yC(mC,RC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MC,formatHex:MC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return WC(this).formatHsl()},formatRgb:DC,toString:DC}),yC(FC,BC,vC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new FC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new FC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new FC(UC(this.r),UC(this.g),UC(this.b),HC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zC,formatHex:zC,formatHex8:function(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}${KC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:VC,toString:VC})),yC(qC,(function(e,t,n,r){return 1===arguments.length?WC(e):new qC(e,t,n,null==r?1:r)}),vC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new qC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new qC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new FC(YC(e>=240?e-240:e+120,o,r),YC(e,o,r),YC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qC(GC(this.h),ZC(this.s),ZC(this.l),HC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HC(this.opacity);return`${1===e?"hsl(":"hsla("}${GC(this.h)}, ${100*ZC(this.s)}%, ${100*ZC(this.l)}%${1===e?")":`, ${e})`}`}}));const XC=Math.PI/180,JC=180/Math.PI,QC=.96422,eO=1,tO=.82521,nO=4/29,rO=6/29,oO=3*rO*rO,iO=rO*rO*rO;function aO(e){if(e instanceof sO)return new sO(e.l,e.a,e.b,e.opacity);if(e instanceof pO)return dO(e);e instanceof FC||(e=LC(e));var t,n,r=fO(e.r),o=fO(e.g),i=fO(e.b),a=cO((.2225045*r+.7168786*o+.0606169*i)/eO);return r===o&&o===i?t=n=a:(t=cO((.4360747*r+.3850649*o+.1430804*i)/QC),n=cO((.0139322*r+.0971045*o+.7141733*i)/tO)),new sO(116*a-16,500*(t-a),200*(a-n),e.opacity)}function sO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function cO(e){return e>iO?Math.pow(e,1/3):e/oO+nO}function uO(e){return e>rO?e*e*e:oO*(e-nO)}function lO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pO(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dO(e){if(isNaN(e.h))return new sO(e.l,0,0,e.opacity);var t=e.h*XC;return new sO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yC(sO,(function(e,t,n,r){return 1===arguments.length?aO(e):new sO(e,t,n,null==r?1:r)}),vC(mC,{brighter(e){return new sO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new sO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){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 FC(lO(3.1338561*(t=QC*uO(t))-1.6168667*(e=eO*uO(e))-.4906146*(n=tO*uO(n))),lO(-.9787684*t+1.9161415*e+.033454*n),lO(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),yC(pO,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof pO)return new pO(e.h,e.c,e.l,e.opacity);if(e instanceof sO||(e=aO(e)),0===e.a&&0===e.b)return new pO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*JC;return new pO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pO(e,t,n,null==r?1:r)}),vC(mC,{brighter(e){return new pO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dO(this).rgb()}}));var hO=-.14861,gO=1.78277,yO=-.29227,vO=-.90649,mO=1.97294,bO=mO*vO,wO=mO*gO,xO=gO*yO-vO*hO;function _O(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof CO)return new CO(e.h,e.s,e.l,e.opacity);e instanceof FC||(e=LC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(xO*r+bO*t-wO*n)/(xO+bO-wO),i=r-o,a=(mO*(n-o)-yO*i)/vO,s=Math.sqrt(a*a+i*i)/(mO*o*(1-o)),c=s?Math.atan2(a,i)*JC-120:NaN;return new CO(c<0?c+360:c,s,o,e.opacity)}(e):new CO(e,t,n,null==r?1:r)}function CO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yC(CO,_O,vC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new CO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new CO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*XC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new FC(255*(t+n*(hO*r+gO*o)),255*(t+n*(yO*r+vO*o)),255*(t+n*(mO*r)),this.opacity)}}));var OO=e=>()=>e;function SO(e,t){return function(n){return e+n*t}}function kO(e){return 1==(e=+e)?EO: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):OO(isNaN(t)?n:t)}}function EO(e,t){var n=t-e;return n?SO(e,n):OO(isNaN(e)?t:e)}var jO=function e(t){var n=kO(t);function r(e,t){var r=n((e=BC(e)).r,(t=BC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=EO(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function AO(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function TO(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=LO(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function PO(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function MO(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DO(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=LO(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var RO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,IO=new RegExp(RO.source,"g");function NO(e,t){var n,r,o,i=RO.lastIndex=IO.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=RO.exec(e))&&(r=IO.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:MO(n,r)})),i=IO.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function LO(e,t){var n,r=typeof t;return null==t||"boolean"===r?OO(t):("number"===r?MO:"string"===r?(n=RC(t))?(t=n,jO):NO:t instanceof RC?jO:t instanceof Date?PO:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?AO:Array.isArray(t)?TO:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?DO:MO)(e,t)}function BO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var FO=1e-12;function zO(e){return((e=Math.exp(e))+1/e)/2}function VO(e){return function t(n){function r(t,r){var o=e((t=_O(t)).h,(r=_O(r)).h),i=EO(t.s,r.s),a=EO(t.l,r.l),s=EO(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function HO(e,t){void 0===t&&(t=e,e=LO);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function UO(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<FO)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=zO(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/zO(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),VO((function(e,t){var n=t-e;return n?SO(e,n>180||n<-180?n-360*Math.round(n/360):n):OO(isNaN(e)?t:e)})),VO(EO);var KO=[0,1];function $O(e){return e}function WO(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function qO(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=WO(o,r),i=n(a,i)):(r=WO(r,o),i=n(i,a)),function(e){return i(r(e))}}function GO(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=WO(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=W_(e,t,1,r)-1;return i[n](o[n](t))}}function ZO(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function YO(){var e,t,n,r,o,i,a=KO,s=KO,c=LO,u=$O;function l(){var e=Math.min(a.length,s.length);return u!==$O&&(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?GO:qO,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),MO)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,UO),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=BO,l()},f.clamp=function(e){return arguments.length?(u=!!e||$O,l()):u!==$O},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 XO(){return YO()($O,$O)}function JO(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 QO(e){return(e=JO(Math.abs(e)))?e[1]:NaN}var eS,tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nS(e){if(!(t=tS.exec(e)))throw new Error("invalid format: "+e);var t;return new rS({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 rS(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 oS(e,t){var n=JO(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}nS.prototype=rS.prototype,rS.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 iS={"%":(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)=>oS(100*e,t),r:oS,s:function(e,t){var n=JO(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(eS=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+JO(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function aS(e){return e}var sS,cS,uS,lS=Array.prototype.map,fS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?aS:(t=lS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?aS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(lS.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=nS(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"):iS[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?c:"",x=iS[m],_=/[defgprs%]/.test(m);function C(e){var o,i,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,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?fS[8+eS/3]:"")+C+(O&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){C=(46===c?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);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=nS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(QO(t)/3))),o=Math.pow(10,-r),i=fS[8+r/3];return function(e){return n(o*e)+i}}}}function dS(e,t,n,r){var o,i=rC(e,t,n);switch((r=nS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(QO(t)/3)))-QO(Math.abs(e)))}(i,a))||(r.precision=o),uS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,QO(t)-QO(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-QO(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return cS(r)}function hS(e){var t=e.domain;return e.ticks=function(e){var n=t();return tC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return dS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=nC(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function gS(){var e=XO();return e.copy=function(){return ZO(e,gS())},uC.apply(e,arguments),hS(e)}function yS(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function vS(e){return Math.log(e)}function mS(e){return Math.exp(e)}function bS(e){return-Math.log(-e)}function wS(e){return-Math.exp(-e)}function xS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _S(e){return(t,n)=>-e(-t,n)}function CS(e){const t=e(vS,mS),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?xS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=_S(r),o=_S(o),e(bS,wS)):e(vS,mS),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),p=r(s);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<i;++u)if(l=f<0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=p;++f)for(u=i-1;u>=1;--u)if(l=f>0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<d&&(h=tC(a,s,d))}else h=tC(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=nS(n)).precision||(n.trim=!0),n=cS(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(yS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function OS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function SS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kS(e){var t=1,n=e(OS(t),SS(t));return n.constant=function(n){return arguments.length?e(OS(t=+n),SS(t)):t},hS(n)}function ES(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function AS(e){return e<0?-e*e:e*e}function TS(e){var t=e($O,$O),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e($O,$O):.5===n?e(jS,AS):e(ES(n),ES(1/n)):n},hS(t)}function PS(){var e=TS(YO());return e.copy=function(){return ZO(e,PS()).exponent(e.exponent())},uC.apply(e,arguments),e}function MS(e){return Math.sign(e)*e*e}sS=pS({thousands:",",grouping:[3],currency:["$",""]}),cS=sS.format,uS=sS.formatPrefix;const DS=new Date,RS=new Date;function IS(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>IS((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(DS.setTime(+t),RS.setTime(+r),e(DS),e(RS),Math.floor(n(DS,RS))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const NS=IS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));NS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?IS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):NS:null),NS.range;const LS=1e3,BS=60*LS,FS=60*BS,zS=24*FS,VS=7*zS,HS=30*zS,US=365*zS,KS=IS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*LS)}),((e,t)=>(t-e)/LS),(e=>e.getUTCSeconds()));KS.range;const $S=IS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LS)}),((e,t)=>{e.setTime(+e+t*BS)}),((e,t)=>(t-e)/BS),(e=>e.getMinutes()));$S.range;const WS=IS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*BS)}),((e,t)=>(t-e)/BS),(e=>e.getUTCMinutes()));WS.range;const qS=IS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LS-e.getMinutes()*BS)}),((e,t)=>{e.setTime(+e+t*FS)}),((e,t)=>(t-e)/FS),(e=>e.getHours()));qS.range;const GS=IS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*FS)}),((e,t)=>(t-e)/FS),(e=>e.getUTCHours()));GS.range;const ZS=IS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*BS)/zS),(e=>e.getDate()-1));ZS.range;const YS=IS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/zS),(e=>e.getUTCDate()-1));YS.range;const XS=IS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/zS),(e=>Math.floor(e/zS)));function JS(e){return IS((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*BS)/VS))}XS.range;const QS=JS(0),ek=JS(1),tk=JS(2),nk=JS(3),rk=JS(4),ok=JS(5),ik=JS(6);function ak(e){return IS((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/VS))}QS.range,ek.range,tk.range,nk.range,rk.range,ok.range,ik.range;const sk=ak(0),ck=ak(1),uk=ak(2),lk=ak(3),fk=ak(4),pk=ak(5),dk=ak(6);sk.range,ck.range,uk.range,lk.range,fk.range,pk.range,dk.range;const hk=IS((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));hk.range;const gk=IS((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));gk.range;const yk=IS((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));yk.every=e=>isFinite(e=Math.floor(e))&&e>0?IS((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,yk.range;const vk=IS((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function mk(e,t,n,r,o,i){const a=[[KS,1,LS],[KS,5,5*LS],[KS,15,15*LS],[KS,30,30*LS],[i,1,BS],[i,5,5*BS],[i,15,15*BS],[i,30,30*BS],[o,1,FS],[o,3,3*FS],[o,6,6*FS],[o,12,12*FS],[r,1,zS],[r,2,2*zS],[n,1,VS],[t,1,HS],[t,3,3*HS],[e,1,US]];function s(t,n,r){const o=Math.abs(n-t)/r,i=U_((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(rC(t/US,n/US,r));if(0===i)return NS.every(Math.max(rC(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}vk.every=e=>isFinite(e=Math.floor(e))&&e>0?IS((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,vk.range;const[bk,wk]=mk(vk,gk,sk,XS,GS,WS),[xk,_k]=mk(yk,hk,QS,ZS,qS,$S);function Ck(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 Ok(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 Sk(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var kk,Ek,jk,Ak,Tk={"-":"",_:" ",0:"0"},Pk=/^\s*\d+/,Mk=/^%/,Dk=/[\\^$*+?|[\]().{}]/g;function Rk(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ik(e){return e.replace(Dk,"\\$&")}function Nk(e){return new RegExp("^(?:"+e.map(Ik).join("|")+")","i")}function Lk(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Bk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Vk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Hk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Uk(e,t,n){var r=Pk.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Kk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $k(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 Wk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function qk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Gk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zk(e,t,n){var r=Pk.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Xk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Jk(e,t,n){var r=Pk.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=Pk.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eE(e,t,n){var r=Pk.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tE(e,t,n){var r=Mk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nE(e,t,n){var r=Pk.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=Pk.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oE(e,t){return Rk(e.getDate(),t,2)}function iE(e,t){return Rk(e.getHours(),t,2)}function aE(e,t){return Rk(e.getHours()%12||12,t,2)}function sE(e,t){return Rk(1+ZS.count(yk(e),e),t,3)}function cE(e,t){return Rk(e.getMilliseconds(),t,3)}function uE(e,t){return cE(e,t)+"000"}function lE(e,t){return Rk(e.getMonth()+1,t,2)}function fE(e,t){return Rk(e.getMinutes(),t,2)}function pE(e,t){return Rk(e.getSeconds(),t,2)}function dE(e){var t=e.getDay();return 0===t?7:t}function hE(e,t){return Rk(QS.count(yk(e)-1,e),t,2)}function gE(e){var t=e.getDay();return t>=4||0===t?rk(e):rk.ceil(e)}function yE(e,t){return e=gE(e),Rk(rk.count(yk(e),e)+(4===yk(e).getDay()),t,2)}function vE(e){return e.getDay()}function mE(e,t){return Rk(ek.count(yk(e)-1,e),t,2)}function bE(e,t){return Rk(e.getFullYear()%100,t,2)}function wE(e,t){return Rk((e=gE(e)).getFullYear()%100,t,2)}function xE(e,t){return Rk(e.getFullYear()%1e4,t,4)}function _E(e,t){var n=e.getDay();return Rk((e=n>=4||0===n?rk(e):rk.ceil(e)).getFullYear()%1e4,t,4)}function CE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rk(t/60|0,"0",2)+Rk(t%60,"0",2)}function OE(e,t){return Rk(e.getUTCDate(),t,2)}function SE(e,t){return Rk(e.getUTCHours(),t,2)}function kE(e,t){return Rk(e.getUTCHours()%12||12,t,2)}function EE(e,t){return Rk(1+YS.count(vk(e),e),t,3)}function jE(e,t){return Rk(e.getUTCMilliseconds(),t,3)}function AE(e,t){return jE(e,t)+"000"}function TE(e,t){return Rk(e.getUTCMonth()+1,t,2)}function PE(e,t){return Rk(e.getUTCMinutes(),t,2)}function ME(e,t){return Rk(e.getUTCSeconds(),t,2)}function DE(e){var t=e.getUTCDay();return 0===t?7:t}function RE(e,t){return Rk(sk.count(vk(e)-1,e),t,2)}function IE(e){var t=e.getUTCDay();return t>=4||0===t?fk(e):fk.ceil(e)}function NE(e,t){return e=IE(e),Rk(fk.count(vk(e),e)+(4===vk(e).getUTCDay()),t,2)}function LE(e){return e.getUTCDay()}function BE(e,t){return Rk(ck.count(vk(e)-1,e),t,2)}function FE(e,t){return Rk(e.getUTCFullYear()%100,t,2)}function zE(e,t){return Rk((e=IE(e)).getUTCFullYear()%100,t,2)}function VE(e,t){return Rk(e.getUTCFullYear()%1e4,t,4)}function HE(e,t){var n=e.getUTCDay();return Rk((e=n>=4||0===n?fk(e):fk.ceil(e)).getUTCFullYear()%1e4,t,4)}function UE(){return"+0000"}function KE(){return"%"}function $E(e){return+e}function WE(e){return Math.floor(+e/1e3)}!function(e){kk=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Nk(o),l=Lk(o),f=Nk(i),p=Lk(i),d=Nk(a),h=Lk(a),g=Nk(s),y=Lk(s),v=Nk(c),m=Lk(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:oE,e:oE,f:uE,g:wE,G:_E,H:iE,I:aE,j:sE,L:cE,m:lE,M:fE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:$E,s:WE,S:pE,u:dE,U:hE,V:yE,w:vE,W:mE,x:null,X:null,y:bE,Y:xE,Z:CE,"%":KE},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:OE,e:OE,f:AE,g:zE,G:HE,H:SE,I:kE,j:EE,L:jE,m:TE,M:PE,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:$E,s:WE,S:ME,u:DE,U:RE,V:NE,w:LE,W:BE,x:null,X:null,y:FE,Y:VE,Z:UE,"%":KE},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:Gk,e:Gk,f:eE,g:Kk,G:Uk,H:Yk,I:Yk,j:Zk,L:Qk,m:qk,M:Xk,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:Wk,Q:nE,s:rE,S:Jk,u:Fk,U:zk,V:Vk,w:Bk,W:Hk,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:Kk,Y:Uk,Z:$k,"%":tE};function _(e,t){return function(n){var r,o,i,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!=(o=Tk[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=Sk(1900,void 0,1);if(O(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Ok(Sk(i.y,0,1))).getUTCDay(),r=o>4||0===o?ck.ceil(r):ck(r),r=YS.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ck(Sk(i.y,0,1))).getDay(),r=o>4||0===o?ek.ceil(r):ek(r),r=ZS.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Ok(Sk(i.y,0,1)).getUTCDay():Ck(Sk(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Ok(i)):Ck(i)}}function O(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in Tk?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(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),Ek=kk.format,kk.parse,jk=kk.utcFormat,Ak=kk.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qE="%Y-%m-%dT%H:%M:%S.%LZ";function GE(e){return new Date(e)}function ZE(e){return e instanceof Date?+e:+new Date(+e)}function YE(e,t,n,r,o,i,a,s,c,u){var l=XO(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,ZE)):p().map(GE)},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(yS(n,e)):l},l.copy=function(){return ZO(l,YE(e,t,n,r,o,i,a,s,c,u))},l}function XE(){var e,t,n,r,o,i=0,a=1,s=$O,c=!1;function u(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(LO),u.rangeRound=l(BO),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function JE(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function QE(){var e=TS(XE());return e.copy=function(){return JE(e,QE()).exponent(e.exponent())},lC.apply(e,arguments)}function ej(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=$O,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=HO(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(LO),d.rangeRound=h(BO),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function tj(){var e=TS(ej());return e.copy=function(){return JE(e,tj()).exponent(e.exponent())},lC.apply(e,arguments)}Date.prototype.toISOString||jk(qE),+new Date("2000-01-01T00:00:00.000Z")||Ak(qE);var nj,rj=Object.freeze({__proto__:null,scaleBand:dC,scaleDiverging:function e(){var t=hS(ej()($O));return t.copy=function(){return JE(t,e())},lC.apply(t,arguments)},scaleDivergingLog:function e(){var t=CS(ej()).domain([.1,1,10]);return t.copy=function(){return JE(t,e()).base(t.base())},lC.apply(t,arguments)},scaleDivergingPow:tj,scaleDivergingSqrt:function(){return tj.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=kS(ej());return t.copy=function(){return JE(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,UO),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,UO):[0,1],hS(r)},scaleImplicit:fC,scaleLinear:gS,scaleLog:function e(){const t=CS(YO()).domain([1,10]);return t.copy=()=>ZO(t,e()).base(t.base()),uC.apply(t,arguments),t},scaleOrdinal:pC,scalePoint:gC,scalePow:PS,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=cC(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[W_(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(V_),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},uC.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[W_(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},uC.apply(hS(s),arguments)},scaleRadial:function e(){var t,n=XO(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(MS(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,UO)).map(MS)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},uC.apply(i,arguments),hS(i)},scaleSequential:function e(){var t=hS(XE()($O));return t.copy=function(){return JE(t,e())},lC.apply(t,arguments)},scaleSequentialLog:function e(){var t=CS(XE()).domain([1,10]);return t.copy=function(){return JE(t,e()).base(t.base())},lC.apply(t,arguments)},scaleSequentialPow:QE,scaleSequentialQuantile:function e(){var t=[],n=$O;function r(e){if(null!=e&&!isNaN(e=+e))return n((W_(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(V_),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return iC(e);if(t>=1)return oC(e);var r,o=(r-1)*t,i=Math.floor(o),a=oC(aC(e,i).subarray(0,i+1));return a+(iC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},lC.apply(r,arguments)},scaleSequentialSqrt:function(){return QE.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=kS(XE());return t.copy=function(){return JE(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleSqrt:function(){return PS.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=kS(YO());return t.copy=function(){return ZO(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[W_(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},uC.apply(i,arguments)},scaleTime:function(){return uC.apply(YE(xk,_k,yk,hk,QS,ZS,qS,$S,KS,Ek).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return uC.apply(YE(bk,wk,vk,gk,sk,YS,GS,WS,KS,jk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:dS}),oj={},ij={},aj=1e9,sj=!0,cj="[DecimalError] ",uj=cj+"Invalid argument: ",lj=cj+"Exponent out of range: ",fj=Math.floor,pj=Math.pow,dj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hj=1e7,gj=7,yj=9007199254740991,vj=fj(yj/gj),mj={};function bj(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),sj?Aj(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/gj))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/hj|0,c[i]%=hj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,sj?Aj(t,f):t}function wj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(uj+e)}function xj(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=gj-r.length)&&(i+=kj(n)),i+=r;a=e[t],(n=gj-(r=a+"").length)&&(i+=kj(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}mj.absoluteValue=mj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},mj.comparedTo=mj.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},mj.decimalPlaces=mj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*gj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},mj.dividedBy=mj.div=function(e){return _j(this,new this.constructor(e))},mj.dividedToIntegerBy=mj.idiv=function(e){var t=this.constructor;return Aj(_j(this,new t(e),0,1),t.precision)},mj.equals=mj.eq=function(e){return!this.cmp(e)},mj.exponent=function(){return Oj(this)},mj.greaterThan=mj.gt=function(e){return this.cmp(e)>0},mj.greaterThanOrEqualTo=mj.gte=function(e){return this.cmp(e)>=0},mj.isInteger=mj.isint=function(){return this.e>this.d.length-2},mj.isNegative=mj.isneg=function(){return this.s<0},mj.isPositive=mj.ispos=function(){return this.s>0},mj.isZero=function(){return 0===this.s},mj.lessThan=mj.lt=function(e){return this.cmp(e)<0},mj.lessThanOrEqualTo=mj.lte=function(e){return this.cmp(e)<1},mj.logarithm=mj.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(nj))throw Error(cj+"NaN");if(n.s<1)throw Error(cj+(n.s?"NaN":"-Infinity"));return n.eq(nj)?new r(0):(sj=!1,t=_j(Ej(n,i),Ej(e,i),i),sj=!0,Aj(t,o))},mj.minus=mj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Tj(t,e):bj(t,(e.s=-e.s,e))},mj.modulo=mj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(cj+"NaN");return n.s?(sj=!1,t=_j(n,e,0,1).times(e),sj=!0,n.minus(t)):Aj(new r(n),o)},mj.naturalExponential=mj.exp=function(){return Cj(this)},mj.naturalLogarithm=mj.ln=function(){return Ej(this)},mj.negated=mj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},mj.plus=mj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bj(t,e):Tj(t,(e.s=-e.s,e))},mj.precision=mj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(uj+e);if(t=Oj(o)+1,n=(r=o.d.length-1)*gj+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},mj.squareRoot=mj.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(cj+"NaN")}for(e=Oj(s),sj=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=xj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=fj((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(_j(s,i,a+2)).times(.5),xj(i.d).slice(0,a)===(t=xj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(Aj(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return sj=!0,Aj(r,n)},mj.times=mj.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+d[r]*p[o-r-1]+t,i[o--]=s%hj|0,t=s/hj|0;i[o]=(i[o]+t)%hj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,sj?Aj(e,f.precision):e},mj.toDecimalPlaces=mj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(wj(e,0,aj),void 0===t?t=r.rounding:wj(t,0,8),Aj(n,e+Oj(n)+1,t))},mj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=Pj(r,!0):(wj(e,0,aj),void 0===t?t=o.rounding:wj(t,0,8),n=Pj(r=Aj(new o(r),e+1,t),!0,e+1)),n},mj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?Pj(o):(wj(e,0,aj),void 0===t?t=i.rounding:wj(t,0,8),n=Pj((r=Aj(new i(o),e+Oj(o)+1,t)).abs(),!1,e+Oj(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},mj.toInteger=mj.toint=function(){var e=this,t=e.constructor;return Aj(new t(e),Oj(e)+1,t.rounding)},mj.toNumber=function(){return+this},mj.toPower=mj.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(nj);if(!(s=new c(s)).s){if(e.s<1)throw Error(cj+"Infinity");return s}if(s.eq(nj))return s;if(r=c.precision,e.eq(nj))return Aj(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=yj){for(o=new c(nj),t=Math.ceil(r/gj+4),sj=!1;n%2&&Mj((o=o.times(s)).d,t),0!==(n=fj(n/2));)Mj((s=s.times(s)).d,t);return sj=!0,e.s<0?new c(nj).div(o):Aj(o,r)}}else if(i<0)throw Error(cj+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,sj=!1,o=e.times(Ej(s,r+12)),sj=!0,(o=Cj(o)).s=i,o},mj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=Pj(o,(n=Oj(o))<=i.toExpNeg||n>=i.toExpPos):(wj(e,1,aj),void 0===t?t=i.rounding:wj(t,0,8),r=Pj(o=Aj(new i(o),e,t),e<=(n=Oj(o))||n<=i.toExpNeg,e)),r},mj.toSignificantDigits=mj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(wj(e,1,aj),void 0===t?t=n.rounding:wj(t,0,8)),Aj(new n(this),e,t)},mj.toString=mj.valueOf=mj.val=mj.toJSON=mj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Oj(e),n=e.constructor;return Pj(e,t<=n.toExpNeg||t>=n.toExpPos)};var _j=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%hj|0,r=n/hj|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*hj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(cj+"Division by zero");for(c=r.e-o.e,C=j.length,x=E.length,h=(d=new S(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=S.precision:a?i+(Oj(r)-Oj(o))+1:i)<0)return new S(0);if(m=m/gj+2|0,u=0,1==C)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*hj+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=hj/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=j.slice()).unshift(0),_=j[0],j[1]>=hj/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*hj+(g[1]||0)),(l=v/_|0)>1?(l>=hj&&(l=hj-1),1==(s=t(f=e(j,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:j,p))):(0==l&&(s=l=1),f=j.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?O:j,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,Aj(d,a?i+Oj(d)+1:i)}}();function Cj(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(Oj(e)>16)throw Error(lj+Oj(e));if(!e.s)return new u(nj);for(null==t?(sj=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(pj(2,c))/Math.LN10*2+5|0,n=r=o=new u(nj),u.precision=a;;){if(r=Aj(r.times(e),a),n=n.times(++s),xj((i=o.plus(_j(r,n,a))).d).slice(0,a)===xj(o.d).slice(0,a)){for(;c--;)o=Aj(o.times(o),a);return u.precision=l,null==t?(sj=!0,Aj(o,l)):o}o=i}}function Oj(e){for(var t=e.e*gj,n=e.d[0];n>=10;n/=10)t++;return t}function Sj(e,t,n){if(t>e.LN10.sd())throw sj=!0,n&&(e.precision=n),Error(cj+"LN10 precision limit exceeded");return Aj(new e(e.LN10),t)}function kj(e){for(var t="";e--;)t+="0";return t}function Ej(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(cj+(p.s?"NaN":"-Infinity"));if(p.eq(nj))return new h(0);if(null==t?(sj=!1,u=g):u=t,p.eq(10))return null==t&&(sj=!0),Sj(h,u);if(u+=10,h.precision=u,r=(n=xj(d)).charAt(0),i=Oj(p),!(Math.abs(i)<15e14))return c=Sj(h,u+2,g).times(i+""),p=Ej(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(sj=!0,Aj(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=xj((p=p.times(e)).d)).charAt(0),f++;for(i=Oj(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=_j(p.minus(nj),p.plus(nj),u),l=Aj(p.times(p),u),o=3;;){if(a=Aj(a.times(l),u),xj((c=s.plus(_j(a,new h(o),u))).d).slice(0,u)===xj(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(Sj(h,u+2,g).times(i+""))),s=_j(s,new h(f),u),h.precision=g,null==t?(sj=!0,Aj(s,g)):s;s=c,o+=2}}function jj(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=fj(n/gj),e.d=[],r=(n+1)%gj,n<0&&(r+=gj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=gj;r<o;)e.d.push(+t.slice(r,r+=gj));t=t.slice(r),r=gj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),sj&&(e.e>vj||e.e<-vj))throw Error(lj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Aj(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=gj,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/gj))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=gj)-gj+a}if(void 0!==n&&(s=u/(i=pj(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/pj(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=Oj(e),f.length=1,t=t-i-1,f[0]=pj(10,(gj-t%gj)%gj),e.e=fj(-t/gj)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=pj(10,gj-r),f[l]=o>0?(u/pj(10,a-o)%pj(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==hj&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=hj)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(sj&&(e.e>vj||e.e<-vj))throw Error(lj+Oj(e));return e}function Tj(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),sj?Aj(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(d/gj),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=hj-1;--c[i],c[o]+=hj}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,sj?Aj(t,d):t):new p(0)}function Pj(e,t,n){var r,o=Oj(e),i=xj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+kj(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+kj(-o-1)+i,n&&(r=n-a)>0&&(i+=kj(r))):o>=a?(i+=kj(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+kj(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=kj(r))),e.s<0?"-"+i:i}function Mj(e,t){if(e.length>t)return e.length=t,!0}function Dj(e){if(!e||"object"!=typeof e)throw Error(cj+"Object expected");var t,n,r,o=["precision",1,aj,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(fj(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(uj+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(uj+n+": "+r);this[n]=new this(r)}return this}var Rj=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(uj+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])):jj(t,e.toString())}if("string"!=typeof e)throw Error(uj+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!dj.test(e))throw Error(uj+e);jj(t,e)}if(i.prototype=mj,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=Dj,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});nj=new Rj(1);var Ij=Rj,Nj=u(Object.freeze({__proto__:null,get Decimal(){return Rj},default:Ij})),Lj={};function Bj(e){return function(e){if(Array.isArray(e))return Fj(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 Fj(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 Fj(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 Fj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Lj,"__esModule",{value:!0}),Lj.memoize=Lj.reverse=Lj.compose=Lj.map=Lj.range=Lj.curry=Lj.PLACE_HOLDER=void 0;var zj=function(e){return e},Vj={"@@functional/placeholder":!0};Lj.PLACE_HOLDER=Vj;var Hj=function(e){return e===Vj},Uj=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Hj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Kj=function(e){return function e(t,n){return 1===t?n:Uj((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==Vj})).length;return a>=t?n.apply(void 0,o):e(t-a,Uj((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return Hj(e)?t.shift():e}));return n.apply(void 0,Bj(i).concat(t))})))}))}(e.length,e)};Lj.curry=Kj;Lj.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var $j=Kj((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));Lj.map=$j;Lj.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return zj;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}};Lj.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};Lj.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var Wj={};Object.defineProperty(Wj,"__esModule",{value:!0}),Wj.default=void 0;var qj=function(e){return e&&e.__esModule?e:{default:e}}(Nj),Gj=Lj;var Zj=(0,Gj.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),Yj=(0,Gj.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),Xj=(0,Gj.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),Jj={rangeStep:function(e,t,n){for(var r=new qj.default(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new qj.default(e).abs().log(10).toNumber())+1},interpolateNumber:Zj,uninterpolateNumber:Yj,uninterpolateTruncation:Xj};Wj.default=Jj,Object.defineProperty(ij,"__esModule",{value:!0}),ij.getTickValuesFixedDomain=ij.getTickValues=ij.getNiceTickValues=void 0;var Qj=nA(Nj),eA=Lj,tA=nA(Wj);function nA(e){return e&&e.__esModule?e:{default:e}}function rA(e){return function(e){if(Array.isArray(e))return aA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||iA(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 oA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||iA(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 iA(e,t){if(e){if("string"==typeof e)return aA(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)?aA(e,t):void 0}}function aA(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 sA(e){var t=oA(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function cA(e,t,n){if(e.lte(0))return new Qj.default(0);var r=tA.default.getDigitCount(e.toNumber()),o=new Qj.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new Qj.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new Qj.default(Math.ceil(s))}function uA(e,t,n){var r=1,o=new Qj.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Qj.default(10).pow(tA.default.getDigitCount(e)-1),o=new Qj.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Qj.default(Math.floor(e)))}else 0===e?o=new Qj.default(Math.floor((t-1)/2)):n||(o=new Qj.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,eA.compose)((0,eA.map)((function(e){return o.add(new Qj.default(e-a).mul(r)).toNumber()})),eA.range);return s(0,t)}function lA(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Qj.default(0),tickMin:new Qj.default(0),tickMax:new Qj.default(0)};var i,a=cA(new Qj.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new Qj.default(0):(i=new Qj.default(e).add(t).div(2)).sub(new Qj.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new Qj.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?lA(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new Qj.default(s).mul(a)),tickMax:i.add(new Qj.default(c).mul(a))})}var fA=(0,eA.memoize)((function(e){var t=oA(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=oA(sA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat(rA((0,eA.range)(0,o-1).map((function(){return 1/0})))):[].concat(rA((0,eA.range)(0,o-1).map((function(){return-1/0}))),[u]);return n>r?(0,eA.reverse)(l):l}if(c===u)return uA(c,o,i);var f=lA(c,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,g=tA.default.rangeStep(d,h.add(new Qj.default(.1).mul(p)),p);return n>r?(0,eA.reverse)(g):g}));ij.getNiceTickValues=fA;var pA=(0,eA.memoize)((function(e){var t=oA(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=oA(sA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return uA(c,o,i);var l=cA(new Qj.default(u).sub(c).div(a-1),i,0),f=(0,eA.compose)((0,eA.map)((function(e){return new Qj.default(c).add(new Qj.default(e).mul(l)).toNumber()})),eA.range),p=f(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?(0,eA.reverse)(p):p}));ij.getTickValues=pA;var dA=(0,eA.memoize)((function(e,t){var n=oA(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=oA(sA([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),l=cA(new Qj.default(c).sub(s).div(u-1),i,0),f=[].concat(rA(tA.default.rangeStep(new Qj.default(s),new Qj.default(c).sub(new Qj.default(.99).mul(l)),l)),[c]);return r>o?(0,eA.reverse)(f):f}));ij.getTickValuesFixedDomain=dA,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=ij}(oj);var hA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gA(){return gA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gA.apply(this,arguments)}function yA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vA(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 vA(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 vA(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 mA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bA(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=mA(e,hA),f=nc(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=yA(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=d+n,_=x+o,C=x-o,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"===r){var k=u.scale,E=p+n,j=E-o,A=E+o,T=k(h-y),P=k(h+v);m.push({x1:j,y1:P,x2:A,y2:P}),m.push({x1:E,y1:T,x2:E,y2:P}),m.push({x1:j,y1:T,x2:A,y2:T})}return t.createElement(hc,gA({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",gA({},e,{key:"line-".concat(n)}))})))}));return t.createElement(hc,{className:"recharts-errorBars"},p)}function wA(e){return wA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wA(e)}function xA(e){return function(e){if(Array.isArray(e))return _A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _A(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 _A(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 _A(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 CA(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 OA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CA(Object(n),!0).forEach((function(t){SA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e,t,n){return vs(e)||vs(t)?n:Es(t)?ys(e,t,n):ni(t)?t(e):n}function EA(e,t,n,r){var o=z_(e,(function(e){return kA(e,t)}));if("number"===n){var i=o.filter((function(e){return ks(e)||parseFloat(e)}));return i.length?[D_(i),j_(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!vs(e)})):o).map((function(e){return Es(e)||e instanceof Date?e:""}))}bA.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},bA.displayName="ErrorBar";var jA=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},AA=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Xs(n,og);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:jA(t),value:o||r,payload:t.props}})),OA(OA(OA({},a.props),og.getWithHeight(a,o)),{},{payload:t,item:a})):null},TA=function(e,t,n,r,o){var i=Ys(t.props.children,bA).filter((function(e){return function(e,t,n){return!!vs(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=kA(t,n,0),o=ri(r)?[D_(r),j_(r)]:[r,r],i=a.reduce((function(e,n){var r=kA(t,n,0),i=o[0]-Math.abs(ri(r)?r[0]:r),a=o[1]+Math.abs(ri(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},PA=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&TA(e,t,i,r)||EA(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},MA=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},DA=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},RA=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType?2*Os(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},IA=function(e,t,n){var r;return ni(n)?r=n:ni(t)&&(r=t),ni(e)||r?function(t,n,o,i){ni(e)&&e(t,n,o,i),ni(r)&&r(t,n,o,i)}:null},NA=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:dC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:gS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:gC(),realScaleType:"point"}:"category"===o?{scale:dC(),realScaleType:"band"}:{scale:gS(),realScaleType:"linear"};if(ui(r)){var s="scale".concat(cd(r));return{scale:(rj[s]||gC)(),realScaleType:rj[s]?s:"point"}}return ni(r)?{scale:r}:{scale:gC(),realScaleType:"point"}},LA=1e-4,BA=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-LA,i=Math.max(r[0],r[1])+LA,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},FA=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},zA=function(e,t){if(!t||2!==t.length||!ks(t[0])||!ks(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!ks(e[0])||e[0]<n)&&(o[0]=n),(!ks(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},VA={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Cs(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}mh(e,t)}},none:mh,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}mh(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,mh(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Cs(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},HA=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=ud([]),t=bh,n=mh,r=wh;function o(o){var i,a,s=Array.from(e.apply(this,arguments),xh),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=Cd(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:ud(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ud(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?bh:"function"==typeof e?e:ud(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?mh:e,o):n},o}().keys(r).value((function(e,t){return+kA(e,t,0)})).order(bh).offset(VA[n]);return o(e)},UA=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var u=oj.getNiceTickValues(c,o,a);return e.domain([D_(u),j_(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:oj.getTickValuesFixedDomain(l,o,a)}}return null},KA=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!vs(o[t.dataKey])){var s=Ds(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=kA(o,vs(a)?t.dataKey:a);return vs(c)?null:t.scale(c)},$A=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=kA(i,t.dataKey,t.domain[a]);return vs(s)?null:t.scale(s)-o/2+r},WA=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},qA=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[D_(t.concat([e[0]]).filter(ks)),j_(t.concat([e[1]]).filter(ks))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},GA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YA=function(e,t,n){if(ni(e))return e(t,n);if(!ri(e))return t;var r=[];if(ks(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(GA.test(e[0])){var o=+GA.exec(e[0])[1];r[0]=t[0]-o}else ni(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(ks(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(ZA.test(e[1])){var i=+ZA.exec(e[1])[1];r[1]=t[1]+i}else ni(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},XA=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Tb(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},JA=function(e,t,n){return e&&e.length?x_(e,ys(n,"type.defaultProps.domain"))?t:e:t},QA=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return OA(OA({},nc(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:jA(e),value:kA(t,r),type:s,payload:t,chartType:c})};function eT(e){return eT="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},eT(e)}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 nT(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){rT(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 rT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iT(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 iT(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 iT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aT=Math.PI/180,sT=function(e){return 180*e/Math.PI},cT=function(e,t,n,r){return{x:e+Math.cos(-aT*r)*n,y:t+Math.sin(-aT*r)*n}},uT=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},lT=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ts(e.cx,i,i/2),l=Ts(e.cy,a,a/2),f=uT(i,a,n),p=Ts(e.innerRadius,f,0),d=Ts(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(vs(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=oT(i=a.range,2);s=g[0],c=g[1]}var y=NA(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),BA(m);var b=UA(m,nT(nT({},a),{},{realScaleType:v})),w=nT(nT(nT({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return nT(nT({},e),{},rT({},n,w))}),{})},fT=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:sT(c),angleInRadian:c}},pT=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},dT=function(e,t){var n=e.x,r=e.y,o=fT({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?nT(nT({},t),{},{radius:i,angle:pT(d,t)}):null};function hT(e){return hT="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},hT(e)}function gT(e){return function(e){if(Array.isArray(e))return yT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yT(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 yT(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 yT(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 vT(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 mT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vT(Object(n),!0).forEach((function(t){bT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wT(){return wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wT.apply(this,arguments)}var xT=function(e){var t=e.value,n=e.formatter,r=vs(e.children)?t:e.children;return ni(n)?n(r):r},_T=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return Os(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=v):"insideEnd"===a?(o=y-w*c,i=!v):"end"===a&&(o=y+w*c,i=v),i=b<=0?i:!i;var x=cT(f,p,m,o),_=cT(f,p,m,o+359*(i?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),O=vs(e.id)?As("recharts-radial-line-"):e.id;return t.createElement("text",wT({},r,{dominantBaseline:"central",className:To("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:O,d:C})),t.createElement("textPath",{xlinkHref:"#".concat(O)},n))},CT=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=cT(i,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=cT(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},OT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,u=i.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return mT(mT({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return mT(mT({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return mT(mT({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return mT(mT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?mT({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?mT({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?mT({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?mT({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?mT({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?mT({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?mT({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?mT({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Po(o)&&(ks(o.x)||Ss(o.x))&&(ks(o.y)||Ss(o.y))?mT({x:a+Ts(o.x,c),y:s+Ts(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):mT({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},ST=function(e){return"cx"in e&&ks(e.cx)};function kT(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,u=void 0===c?"":c,l=e.textBreakAll;if(!r||vs(i)&&vs(a)&&!t.isValidElement(s)&&!ni(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(ni(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=xT(e);var f=ST(r),p=nc(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return _T(e,n,p);var d=f?CT(e):OT(e);return t.createElement(b_,wT({className:To("recharts-label",u)},p,d,{breakAll:l}),n)}kT.displayName="Label",kT.defaultProps={offset:5};var ET=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(ks(h)&&ks(g)){if(ks(l)&&ks(f))return{x:l,y:f,width:h,height:g};if(ks(p)&&ks(d))return{x:p,y:d,width:h,height:g}}return ks(l)&&ks(f)?{x:l,y:f,width:0,height:0}:ks(t)&&ks(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},jT=function(e,n){return e?!0===e?t.createElement(kT,{key:"label-implicit",viewBox:n}):Es(e)?t.createElement(kT,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===kT?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(kT,{key:"label-implicit",content:e,viewBox:n}):ni(e)?t.createElement(kT,{key:"label-implicit",content:e,viewBox:n}):Po(e)?t.createElement(kT,wT({viewBox:n},e,{key:"label-implicit"})):null:null};kT.parseViewBox=ET,kT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=ET(e),a=Ys(o,kT).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));return r?[jT(e.label,n||i)].concat(gT(a)):a};var AT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function TT(e){return TT="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},TT(e)}var PT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function MT(e){return function(e){if(Array.isArray(e))return DT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return DT(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 DT(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 DT(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 RT(){return RT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RT.apply(this,arguments)}function IT(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?IT(Object(n),!0).forEach((function(t){LT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==TT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var FT={valueAccessor:function(e){return ri(e.value)?AT(e.value):e.value}};function zT(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=BT(e,PT);return n&&n.length?t.createElement(hc,{className:"recharts-label-list"},n.map((function(e,n){var u=vs(o)?r(e,n):kA(e&&e.payload,o),l=vs(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(kT,RT({},nc(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:kT.parseViewBox(vs(i)?e:NT(NT({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function VT(e){return VT="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},VT(e)}function HT(){return HT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HT.apply(this,arguments)}function UT(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,qT(r.key),r)}}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KT(e,t)}function $T(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=WT(e);if(t){var o=WT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WT(e){return WT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WT(e)}function qT(e){var t=function(e,t){if("object"!==VT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VT(t)?t:String(t)}zT.displayName="LabelList",zT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=Ys(e.children,zT).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(zT,{key:"labelList-implicit",data:n}):t.isValidElement(e)||ni(e)?t.createElement(zT,{key:"labelList-implicit",data:n,content:e}):Po(e)?t.createElement(zT,RT({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(MT(o)):o},zT.defaultProps=FT;var GT=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/aT,f=c?o:o+i*l,p=c?o-i*l:o;return{center:cT(t,n,u,f),circleTangency:cT(t,n,r,f),lineTangency:cT(t,n,u*Math.cos(l*aT),p),theta:l}},ZT=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Os(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=cT(t,n,o,i),u=cT(t,n,o,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=cT(t,n,r,i),p=cT(t,n,r,s);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},YT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KT(e,t)}(a,t.PureComponent);var n,r,o,i=$T(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<o||u===l)return null;var p,d=To("recharts-sector",f),h=i-o,g=Ts(a,h,0,!0);return p=g>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=Os(u-c),f=GT({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=GT({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):ZT({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=GT({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=GT({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,j=S.theta,A=s?Math.abs(c-u):Math.abs(c-u)-O-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):ZT({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",HT({},nc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&UT(n.prototype,r),o&&UT(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function XT(e){return XT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XT(e)}function JT(){return JT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JT.apply(this,arguments)}function QT(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 eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QT(Object(n),!0).forEach((function(t){iP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tP(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,aP(r.key),r)}}function nP(e,t){return nP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nP(e,t)}function rP(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=oP(e);if(t){var o=oP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function oP(e){return oP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oP(e)}function iP(e,t,n){return(t=aP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aP(e){var t=function(e,t){if("object"!==XT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XT(t)?t:String(t)}!function(e,t,n){(t=qT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(YT,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var sP={curveBasisClosed:function(e){return new Yd(e)},curveBasisOpen:function(e){return new Xd(e)},curveBasis:function(e){return new Zd(e)},curveLinearClosed:function(e){return new sh(e)},curveLinear:Sd,curveMonotoneX:function(e){return new ph(e)},curveMonotoneY:function(e){return new dh(e)},curveNatural:function(e){return new gh(e)},curveStep:function(e){return new vh(e,.5)},curveStepAfter:function(e){return new vh(e,1)},curveStepBefore:function(e){return new vh(e,0)}},cP=function(e){return e.x===+e.x&&e.y===+e.y},uP=function(e){return e.x},lP=function(e){return e.y},fP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nP(e,t)}(a,t.PureComponent);var n,r,o,i=rP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(ni(e))return e;var n="curve".concat(cd(e));return"curveMonotone"===n&&t?sP["".concat(n).concat("vertical"===t?"Y":"X")]:sP[n]||Sd}(n,i),c=a?r.filter((function(e){return cP(e)})):r;if(ri(o)){var u=a?o.filter((function(e){return cP(e)})):o,l=c.map((function(e,t){return eP(eP({},e),{},{base:u[t]})}));return(e="vertical"===i?Ad().y(lP).x1(uP).x0((function(e){return e.base.x})):Ad().x(uP).y1(lP).y0((function(e){return e.base.y}))).defined(cP).curve(s),e(l)}return(e="vertical"===i&&ks(o)?Ad().y(lP).x1(uP).x0(o):ks(o)?Ad().x(uP).y1(lP).y0(o):jd().x(uP).y(lP)).defined(cP).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",JT({},nc(this.props),zs(this.props),{className:To("recharts-curve",n),d:a,ref:i}))}}])&&tP(n.prototype,r),o&&tP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pP(e){return pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pP(e)}function dP(){return dP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dP.apply(this,arguments)}function hP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wP(r.key),r)}}function gP(e,t){return gP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gP(e,t)}function yP(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=mP(e);if(t){var o=mP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vP(e)}(this,n)}}function vP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function bP(e,t,n){return(t=wP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wP(e){var t=function(e,t){if("object"!==pP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pP(t)?t:String(t)}iP(fP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var xP=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},_P=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},CP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gP(e,t)}(a,t.PureComponent);var n,r,o,i=yP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bP(vP(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=To("recharts-rectangle",c);return g?t.createElement(jm,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:p,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(jm,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},t.createElement("path",dP({},nc(e.props,!0),{className:y,d:xP(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",dP({},nc(this.props,!0),{className:y,d:xP(r,o,i,a,s)}))}}],r&&hP(n.prototype,r),o&&hP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function OP(e){return OP="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},OP(e)}bP(CP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var SP=["points","className","baseLinePoints","connectNulls"];function kP(){return kP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kP.apply(this,arguments)}function EP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jP(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==OP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===OP(i)?i:String(i)),r)}var o,i}function AP(e,t){return AP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AP(e,t)}function TP(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=PP(e);if(t){var o=PP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===OP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function PP(e){return PP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PP(e)}function MP(e){return function(e){if(Array.isArray(e))return DP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return DP(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 DP(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 DP(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 RP=function(e){return e&&e.x===+e.x&&e.y===+e.y},IP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){RP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),RP(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(MP(e),MP(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},NP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AP(e,t)}(a,t.PureComponent);var n,r,o,i=TP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=EP(e,SP);if(!n||!n.length)return null;var s=To("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=IP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(IP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",kP({},nc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",kP({},nc(a,!0),{fill:"none",d:IP(n,i)})):null,c?t.createElement("path",kP({},nc(a,!0),{fill:"none",d:IP(o,i)})):null)}var l=IP(n,i);return t.createElement("path",kP({},nc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&jP(n.prototype,r),o&&jP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function LP(e){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LP(e)}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BP.apply(this,arguments)}function FP(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==LP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===LP(i)?i:String(i)),r)}var o,i}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zP(e,t)}function VP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HP(e);if(t){var o=HP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===LP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function HP(e){return HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HP(e)}var UP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zP(e,t)}(a,t.PureComponent);var n,r,o,i=VP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=To("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",BP({},nc(this.props),zs(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&FP(n.prototype,r),o&&FP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function KP(e){return KP="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},KP(e)}function $P(){return $P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$P.apply(this,arguments)}function WP(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,YP(r.key),r)}}function qP(e,t){return qP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qP(e,t)}function GP(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=ZP(e);if(t){var o=ZP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ZP(e){return ZP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZP(e)}function YP(e){var t=function(e,t){if("object"!==KP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KP(t)?t:String(t)}var XP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qP(e,t)}(a,t.PureComponent);var n,r,o,i=GP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return ks(n)&&ks(r)&&ks(o)&&ks(i)&&ks(s)&&ks(c)?t.createElement("path",$P({},nc(this.props,!0),{className:To("recharts-cross",u),d:a.getPath(n,r,o,i,s,c)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&WP(n.prototype,r),o&&WP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function JP(e){return JP="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},JP(e)}function QP(){return QP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QP.apply(this,arguments)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eM(Object(n),!0).forEach((function(t){aM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nM(e,t){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,sM(r.key),r)}}function rM(e,t){return rM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rM(e,t)}function oM(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=iM(e);if(t){var o=iM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function iM(e){return iM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iM(e)}function aM(e,t,n){return(t=sM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sM(e){var t=function(e,t){if("object"!==JP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JP(t)?t:String(t)}!function(e,t,n){(t=YP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(XP,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var cM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rM(e,t)}(a,t.PureComponent);var n,r,o,i=oM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.polarAngles,i="";return o.forEach((function(t,o){var a=cT(n,r,e,t);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),i+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=tM({stroke:"#ccc"},nc(this.props));return t.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e,a){var s=cT(n,r,o,e),u=cT(n,r,i,e);return t.createElement("line",QP({},c,{key:"line-".concat(a),x1:s.x,y1:s.y,x2:u.x,y2:u.y}))})))}},{key:"renderConcentricCircle",value:function(e,n,r){var o=this.props,i=o.cx,a=o.cy,s=tM(tM({stroke:"#ccc"},nc(this.props)),{},{fill:"none"},r);return t.createElement("circle",QP({},s,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:i,cy:a,r:e}))}},{key:"renderConcentricPolygon",value:function(e,n,r){var o=tM(tM({stroke:"#ccc"},nc(this.props)),{},{fill:"none"},r);return t.createElement("path",QP({},o,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,n=this.props,r=n.polarRadius,o=n.gridType;return r&&r.length?t.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(t,n){return"circle"===o?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:t.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&nM(n.prototype,r),o&&nM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();aM(cM,"displayName","PolarGrid"),aM(cM,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var uM=C_,lM=lp,fM=A_;var pM=function(e,t){return e&&e.length?uM(e,lM(t),fM):void 0},dM=C_,hM=O_,gM=lp;var yM=function(e,t){return e&&e.length?dM(e,gM(t),hM):void 0},vM=["cx","cy","angle","ticks","axisLine"],mM=["ticks","tick","angle","tickFormatter","stroke"];function bM(e){return bM="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},bM(e)}function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wM.apply(this,arguments)}function xM(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 _M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xM(Object(n),!0).forEach((function(t){jM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function OM(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,AM(r.key),r)}}function SM(e,t){return SM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SM(e,t)}function kM(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 o=EM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EM(e)}function jM(e,t,n){return(t=AM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AM(e){var t=function(e,t){if("object"!==bM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bM(t)?t:String(t)}var TM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SM(e,t)}(a,t.PureComponent);var n,r,o,i=kM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return cT(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=yM(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:pM(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=CM(e,vM),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=cT(n,r,c[0],o),l=cT(n,r,c[1],o),f=_M(_M(_M({},nc(s)),{},{fill:"none"},nc(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",wM({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,c=n.stroke,u=CM(n,mM),l=this.getTickTextAnchor(),f=nc(u),p=nc(o),d=r.map((function(n,r){var u=e.getTickValueCoord(n),d=_M(_M(_M(_M({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:r},u),{},{payload:n});return t.createElement(hc,wM({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Vs(e.props,n,r)),a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(hc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(hc,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),kT.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(b_,wM({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&OM(n.prototype,r),o&&OM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function PM(e){return PM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PM(e)}function MM(){return MM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MM.apply(this,arguments)}function DM(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 RM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DM(Object(n),!0).forEach((function(t){FM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IM(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,zM(r.key),r)}}function NM(e,t){return NM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NM(e,t)}function LM(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=BM(e);if(t){var o=BM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function BM(e){return BM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BM(e)}function FM(e,t,n){return(t=zM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zM(e){var t=function(e,t){if("object"!==PM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PM(t)?t:String(t)}jM(TM,"displayName","PolarRadiusAxis"),jM(TM,"axisType","radiusAxis"),jM(TM,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var VM=Math.PI/180,HM=1e-5,UM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NM(e,t)}(a,t.PureComponent);var n,r,o,i=LM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=cT(n,r,o,e.coordinate),c=cT(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*VM);return n>HM?"outer"===t?"start":"end":n<-HM?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=RM(RM({},nc(this.props)),{},{fill:"none"},nc(i));if("circle"===a)return t.createElement(UP,MM({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return cT(n,r,o,e.coordinate)}));return t.createElement(NP,MM({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,c=n.stroke,u=nc(this.props),l=nc(o),f=RM(RM({},u),{},{fill:"none"},nc(i)),p=r.map((function(n,r){var p=e.getTickLineCoord(n),d=RM(RM(RM({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:p.x2,y:p.y2});return t.createElement(hc,MM({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Vs(e.props,n,r)),i&&t.createElement("line",MM({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(hc,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(hc,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(b_,MM({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&IM(n.prototype,r),o&&IM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();FM(UM,"displayName","PolarAngleAxis"),FM(UM,"axisType","angleAxis"),FM(UM,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var KM=cl(Object.getPrototypeOf,Object),$M=Zo,WM=KM,qM=oi,GM="[object Object]",ZM=Function.prototype,YM=Object.prototype,XM=ZM.toString,JM=YM.hasOwnProperty,QM=XM.call(Object);var eD=function(e){if(!qM(e)||$M(e)!=GM)return!1;var t=WM(e);if(null===t)return!0;var n=JM.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&XM.call(n)==QM};function tD(e){return tD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tD(e)}function nD(){return nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nD.apply(this,arguments)}function rD(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 oD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rD(Object(n),!0).forEach((function(t){lD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iD(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,fD(r.key),r)}}function aD(e,t){return aD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aD(e,t)}function sD(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=uD(e);if(t){var o=uD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cD(e)}(this,n)}}function cD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uD(e){return uD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uD(e)}function lD(e,t,n){return(t=fD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fD(e){var t=function(e,t){if("object"!==tD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tD(t)?t:String(t)}var pD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aD(e,t)}(a,t.PureComponent);var n,r,o,i=sD(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),lD(cD(t=i.call(this,e)),"pieRef",null),lD(cD(t),"sectorRefs",[]),lD(cD(t),"id",As("recharts-pie-")),lD(cD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ni(e)&&e()})),lD(cD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ni(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,c=nc(this.props),u=nc(r),l=nc(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,d=cT(e.cx,e.cy,e.outerRadius+f,p),h=oD(oD(oD(oD({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=oD(oD(oD(oD({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[cT(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return vs(i)&&vs(s)?y="value":vs(i)&&(y=s),t.createElement(hc,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,kA(e,y)))}));return t.createElement(hc,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,s=r.inactiveShape;return e.map((function(e,r){var c=s&&n.hasActiveIndex()?s:null,u=n.isActiveIndex(r)?o:c,l=oD(oD({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(hc,nD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Vs(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=l&&l[t],r=t>0?ys(e,"paddingAngle",0):0;if(n){var s=Ms(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=oD(oD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Ms(0,u-f)(o),d=oD(oD({},e),{},{startAngle:a+r,endAngle:a+p+r});i.push(d),a=d.endAngle}})),t.createElement(hc,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,u=n.innerRadius,l=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!o||!o.length||!ks(s)||!ks(c)||!ks(u)||!ks(l))return null;var d=To("recharts-pie",i);return t.createElement(hc,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),kT.renderCallByParent(this.props,null,!1),(!f||p)&&zT.renderCallByParent(this.props,o,!1))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(fP,nD({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return ni(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(b_,nD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):eD(e)?t.createElement(YT,nD({tabIndex:-1},n,e)):t.createElement(YT,nD({tabIndex:-1},n))}}],r&&iD(n.prototype,r),o&&iD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();lD(pD,"displayName","Pie"),lD(pD,"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:!Kb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),lD(pD,"parseDeltaAngle",(function(e,t){return Os(t-e)*Math.min(Math.abs(t-e),360)})),lD(pD,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=nc(e.props),i=Ys(r,ix);return n&&n.length?n.map((function(e,t){return oD(oD(oD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return oD(oD({},o),e.props)})):[]})),lD(pD,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=uT(o,i);return{cx:r+Ts(e.props.cx,o,o/2),cy:n+Ts(e.props.cy,i,i/2),innerRadius:Ts(e.props.innerRadius,a,0),outerRadius:Ts(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),lD(pD,"getComposedData",(function(e){var t=e.item,n=e.offset,r=pD.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=pD.parseCoordinateOfPie(t,n),g=pD.parseDeltaAngle(a,s),y=Math.abs(g),v=u;vs(u)&&vs(f)?(ox(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):vs(u)&&(ox(!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!==kA(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=kA(t,v,0);return e+(ks(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=kA(e,v,0),o=kA(e,l,t),s=(ks(r)?r:0)/_,u=(n=t?b.endAngle+Os(g)*c*(0!==r?1:0):a)+Os(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=cT(h.cx,h.cy,y,f);return b=oD(oD(oD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:kA(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:Os(g)*c})})));return oD(oD({},h),{},{sectors:m,data:r})}));var dD={};var hD=function(e){return e&&e.length?e[0]:void 0};({get exports(){return dD},set exports(e){dD=e}}).exports=hD;var gD=c(dD);function yD(e){return yD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yD(e)}function vD(){return vD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vD.apply(this,arguments)}function mD(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 bD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mD(Object(n),!0).forEach((function(t){SD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wD(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,kD(r.key),r)}}function xD(e,t){return xD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xD(e,t)}function _D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=OD(e);if(t){var o=OD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CD(e)}(this,n)}}function CD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OD(e){return OD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OD(e)}function SD(e,t,n){return(t=kD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kD(e){var t=function(e,t){if("object"!==yD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yD(t)?t:String(t)}var ED=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xD(e,t)}(a,t.PureComponent);var n,r,o,i=_D(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SD(CD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),SD(CD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),SD(CD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),SD(CD(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),SD(CD(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(e){var n=this.props,r=n.dot,o=n.dataKey,i=nc(this.props),s=nc(r),c=e.map((function(e,t){var n=bD(bD(bD({key:"dot-".concat(t),r:3},i),s),{},{dataKey:o,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return t.createElement(hc,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var n,r=this.props,o=r.shape,i=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return n=t.isValidElement(o)?t.cloneElement(o,bD(bD({},this.props),{},{points:e})):ni(o)?o(bD(bD({},this.props),{},{points:e})):t.createElement(NP,vD({},nc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),t.createElement(hc,{className:"recharts-radar-polygon"},n,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,i=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var i=Ms(r.x,e.x),a=Ms(r.y,e.y);return bD(bD({},e),{},{x:i(n),y:a(n)})}var s=Ms(e.cx,e.x),c=Ms(e.cy,e.y);return bD(bD({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&x_(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.className,o=e.points,i=e.isAnimationActive;if(n||!o||!o.length)return null;var a=this.state.isAnimationFinished,s=To("recharts-radar",r);return t.createElement(hc,{className:s},this.renderPolygon(),(!i||a)&&zT.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,vD({},n,{className:"recharts-radar-dot"}))}}],r&&wD(n.prototype,r),o&&wD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();SD(ED,"displayName","Radar"),SD(ED,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),SD(ED,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=kA(e,n.dataKey,r),f=kA(e,o),p=n.scale(l)+(i||0),d=ri(f)?AT(f):f,h=vs(d)?void 0:t.scale(d);ri(f)&&f.length>=2&&(c=!0),u.push(bD(bD({},cT(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(ri(e.value)){var n=gD(e.value),r=vs(n)?void 0:t.scale(n);l.push(bD(bD({},e),{},{radius:r},cT(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}}));var jD=["shape","activeShape","activeIndex","cornerRadius"],AD=["value","background"];function TD(e){return TD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TD(e)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach((function(t){FD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RD(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,zD(r.key),r)}}function ID(e,t){return ID=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ID(e,t)}function ND(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BD(e);if(t){var o=BD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===TD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return LD(e)}(this,n)}}function LD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BD(e){return BD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BD(e)}function FD(e,t,n){return(t=zD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=function(e,t){if("object"!==TD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TD(t)?t:String(t)}var VD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ID(e,t)}(a,t.PureComponent);var n,r,o,i=ND(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return FD(LD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),FD(LD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),FD(LD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Os(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=DD(n,jD),u=nc(c);return e.map((function(e,n){var l=MD(MD(MD(MD({},u),{},{cornerRadius:s},e),Vs(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ms(n.startAngle,e.startAngle),i=Ms(n.endAngle,e.endAngle);return MD(MD({},e),{},{startAngle:r(o),endAngle:i(o)})}var a=e.endAngle,s=e.startAngle,c=Ms(s,a);return MD(MD({},e),{},{endAngle:c(o)})}));return t.createElement(hc,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=nc(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=DD(e,AD);if(!i)return null;var c=MD(MD(MD(MD(MD({cornerRadius:n},s),{},{fill:"#eee"},i),r),Vs(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.background,a=e.isAnimationActive;if(n||!r||!r.length)return null;var s=this.state.isAnimationFinished,c=To("recharts-area",o);return t.createElement(hc,{className:c},i&&t.createElement(hc,{className:"recharts-radial-bar-background"},this.renderBackground(r)),t.createElement(hc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&zT.renderCallByParent(MD({},this.props),r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(YT,n)}}],r&&RD(n.prototype,r),o&&RD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();FD(VD,"displayName","RadialBar"),FD(VD,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),FD(VD,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=FA(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=WA({numericAxis:w}),C=Ys(m,ix);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=zA(u[p+s],x):(l=kA(e,c),ri(l)||(l=[_,l])),"radial"===y){v=$A({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),O=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=Os(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=$A({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=Os(E||b)*(Math.abs(b)-Math.abs(E))}return MD(MD(MD(MD({},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:[QA(t,e)],tooltipPosition:cT(h,g,(v+m)/2,(w+O)/2)})})),layout:y}}));var HD=Math.ceil,UD=Math.max;var KD=/\s/;var $D=function(e){for(var t=e.length;t--&&KD.test(e.charAt(t)););return t},WD=$D,qD=/^\s+/;var GD=function(e){return e?e.slice(0,WD(e)+1).replace(qD,""):e},ZD=GD,YD=Po,XD=di,JD=NaN,QD=/^[-+]0x[0-9a-f]+$/i,eR=/^0b[01]+$/i,tR=/^0o[0-7]+$/i,nR=parseInt;var rR=function(e){if("number"==typeof e)return e;if(XD(e))return JD;if(YD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=YD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ZD(e);var n=eR.test(e);return n||tR.test(e)?nR(e.slice(2),n?2:8):QD.test(e)?JD:+e},oR=rR,iR=1/0,aR=17976931348623157e292;var sR=function(e){return e?(e=oR(e))===iR||e===-iR?(e<0?-1:1)*aR:e==e?e:0:0===e?e:0},cR=function(e,t,n,r){for(var o=-1,i=UD(HD((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},uR=kb,lR=sR;var fR=function(e){return function(t,n,r){return r&&"number"!=typeof r&&uR(t,n,r)&&(n=r=void 0),t=lR(t),void 0===n?(n=t,t=0):n=lR(n),r=void 0===r?t<n?1:-1:lR(r),cR(t,n,r,e)}}();function pR(e){return pR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pR(e)}function dR(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 hR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dR(Object(n),!0).forEach((function(t){gR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yR=["Webkit","Moz","O","ms"];function vR(e){return vR="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},vR(e)}function mR(){return mR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mR.apply(this,arguments)}function bR(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 wR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bR(Object(n),!0).forEach((function(t){kR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xR(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,ER(r.key),r)}}function _R(e,t){return _R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_R(e,t)}function CR(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=SR(e);if(t){var o=SR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return OR(e)}(this,n)}}function OR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SR(e){return SR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SR(e)}function kR(e,t,n){return(t=ER(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ER(e){var t=function(e,t){if("object"!==vR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vR(t)?t:String(t)}var jR=function(e){return e.changedTouches&&!!e.changedTouches.length},AR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_R(e,t)}(a,t.PureComponent);var n,r,o,i=CR(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),kR(OR(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),kR(OR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),kR(OR(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),kR(OR(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),kR(OR(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),kR(OR(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),kR(OR(t),"handleSlideDragStart",(function(e){var n=jR(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(OR(t),"startX"),endX:t.handleTravellerDragStart.bind(OR(t),"endX")},t.state={},t}return n=a,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=kA(n[e],o,e);return ni(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,u=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=jR(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((kR(t={},o,s+y),kR(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,u=t.Children.only(s);return u?t.cloneElement(u,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,s=r.height,c=r.traveller,u=Math.max(e,this.props.x),l=wR(wR({},nc(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(hc,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,u=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(hc,{className:"recharts-brush-texts"},t.createElement(b_,mR({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(b_,mR({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!ks(i)||!ks(a)||!ks(s)||!ks(c)||s<=0||c<=0)return null;var y=To("recharts-brush",r),v=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=yR.reduce((function(e,r){return hR(hR({},e),{},gR({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(hc,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return wR({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=gC().domain(fR(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&xR(n.prototype,r),o&&xR(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();kR(AR,"displayName","Brush"),kR(AR,"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 TR=zm;var PR=Rc,MR=lp,DR=function(e,t){var n;return TR(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},RR=ri,IR=kb;var NR=function(e,t,n){var r=RR(e)?PR:DR;return n&&IR(e,t,n)&&(t=void 0),r(e,MR(t))},LR=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var BR=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},FR=zm;var zR=BR,VR=function(e,t){var n=!0;return FR(e,(function(e,r,o){return n=!!t(e,r,o)})),n},HR=lp,UR=ri,KR=kb;var $R=function(e,t,n){var r=UR(e)?zR:VR;return n&&KR(e,t,n)&&(t=void 0),r(e,HR(t))},WR=lb;var qR=function(e,t,n){"__proto__"==t&&WR?WR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},GR=qR,ZR=Bm,YR=lp;var XR=function(e,t){var n={};return t=YR(t),ZR(e,(function(e,r,o){GR(n,r,t(e,r,o))})),n},JR=["value","background"];function QR(e){return QR="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},QR(e)}function eI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tI(){return tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tI.apply(this,arguments)}function nI(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 rI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(n),!0).forEach((function(t){uI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oI(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,lI(r.key),r)}}function iI(e,t){return iI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iI(e,t)}function aI(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=cI(e);if(t){var o=cI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sI(e)}(this,n)}}function sI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cI(e){return cI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cI(e)}function uI(e,t,n){return(t=lI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lI(e){var t=function(e,t){if("object"!==QR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QR(t)?t:String(t)}var fI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iI(e,t)}(a,t.PureComponent);var n,r,o,i=aI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uI(sI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),uI(sI(e),"id",As("recharts-bar-")),uI(sI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),uI(sI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props.shape,o=nc(this.props);return e&&e.map((function(e,i){var s=rI(rI(rI({},o),e),{},{index:i});return t.createElement(hc,tI({className:"recharts-bar-rectangle"},Vs(n.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(r,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,u=n.animationId,l=this.state.prevData;return t.createElement(jm,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ms(n.x,e.x),a=Ms(n.y,e.y),s=Ms(n.width,e.width),c=Ms(n.height,e.height);return rI(rI({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Ms(0,e.height)(i);return rI(rI({},e),{},{y:e.y+e.height-u,height:u})}var f=Ms(0,e.width)(i);return rI(rI({},e),{},{width:f})}));return t.createElement(hc,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&&x_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=nc(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=eI(t,JR);if(!o)return null;var s=rI(rI(rI(rI(rI({},i),{},{fill:"#eee"},o),n),Vs(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=Ys(r.children,bA);if(!c)return null;var u="vertical"===s?o[0].height/2:o[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:kA(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,f,c.map((function(e,n){return t.cloneElement(e,{key:"error-bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=To("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=vs(d)?this.id:d;return t.createElement(hc,{className:g},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:s,y:c,width:u,height:l}))):null,t.createElement(hc,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&zT.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(CP,n)}}],r&&oI(n.prototype,r),o&&oI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pI(e){return pI="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},pI(e)}function dI(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,vI(r.key),r)}}function hI(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 gI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hI(Object(n),!0).forEach((function(t){yI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yI(e,t,n){return(t=vI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vI(e){var t=function(e,t){if("object"!==pI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pI(t)?t:String(t)}uI(fI,"displayName","Bar"),uI(fI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),uI(fI,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=FA(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=WA({numericAxis:b}),_=Ys(v,ix),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=zA(u[l+t],w):(r=kA(e,y),ri(r)||(r=[x,r])),"horizontal"===h){var C,O=[a.scale(r[0]),a.scale(r[1])],S=O[0],k=O[1];f=$A({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(C=null!=k?k:S)&&void 0!==C?C:void 0,g=d.size;var E=S-k;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var j=Os(v||m)*(Math.abs(m)-Math.abs(v));p-=j,v+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],P=A[1];if(f=T,p=$A({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=P-T,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=Os(g||m)*(Math.abs(m)-Math.abs(g))}return rI(rI(rI({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[QA(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return rI({data:C,layout:h},p)}));var mI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Xs(c,fI);return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],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 j=Ts(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var T=NA(g,o,f),P=T.scale,M=T.realScaleType;P.domain(v).range(u),BA(P);var D=UA(P,gI(gI({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var R=gI(gI(gI({},g),D),{},{realScaleType:M,x:p,y:d,scale:P,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=XA(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,gI(gI({},i),{},yI({},a,R))}),{})},bI=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},wI=function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return bI({x:t,y:n},{x:r,y:o})},xI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&dI(t.prototype,n),r&&dI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();yI(xI,"EPS",1e-4);var _I=function(e){var t=Object.keys(e).reduce((function(t,n){return gI(gI({},t),{},yI({},n,xI.create(e[n])))}),{});return gI(gI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return XR(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return $R(e,(function(e,n){return t[n].isInRange(e)}))}})};function CI(e){return CI="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},CI(e)}var OI=["isFront","ifOverflow","xAxisId","yAxisId","position","fill","fillOpacity","stroke","strokeWidth"];function SI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kI(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 kI(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 kI(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 EI(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 jI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EI(Object(n),!0).forEach((function(t){AI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==CI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PI.apply(this,arguments)}var MI=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement("line",PI({},n,{className:"recharts-reference-line-line"}))},DI=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,c=i.width,u=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(LR(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(LR(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return LR(o,"discard")&&NR(b,(function(t){return!e.isInRange(t)}))?null:b}return null};function RI(e){var n=e.isFront,r=void 0!==n&&n,o=e.ifOverflow,i=void 0===o?"discard":o,a=e.xAxisId,s=void 0===a?0:a,c=e.yAxisId,u=void 0===c?0:c,l=e.position,f=void 0===l?"middle":l,p=e.fill,d=void 0===p?"none":p,h=e.fillOpacity,g=void 0===h?1:h,y=e.stroke,v=void 0===y?"#ccc":y,m=e.strokeWidth,b=jI({isFront:r,ifOverflow:i,xAxisId:s,yAxisId:u,fill:d,stroke:v,fillOpacity:g,strokeWidth:void 0===m?1:m,position:f},TI(e,OI)),w=b.x,x=b.y,_=b.segment,C=b.xAxis,O=b.yAxis,S=b.shape,k=b.className,E=b.alwaysShow,j=b.clipPathId;ox(void 0===E,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var A=_I({x:C.scale,y:O.scale}),T=Es(w),P=Es(x),M=_&&2===_.length,D=DI(A,T,P,M,b);if(!D)return null;var R=SI(D,2),I=R[0],N=I.x,L=I.y,B=R[1],F=B.x,z=B.y,V=jI(jI({clipPath:LR(b,"hidden")?"url(#".concat(j,")"):void 0},nc(b,!0)),{},{x1:N,y1:L,x2:F,y2:z});return t.createElement(hc,{className:To("recharts-reference-line",k)},MI(S,V),kT.renderCallByParent(b,wI({x1:N,y1:L,x2:F,y2:z})))}function II(e){return II="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},II(e)}function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NI.apply(this,arguments)}function LI(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 BI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LI(Object(n),!0).forEach((function(t){FI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==II(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==II(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===II(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}RI.displayName="ReferenceLine";var zI=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=_I({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return LR(e,"discard")&&!i.isInRange(a)?null:a};function VI(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Es(n),c=Es(r);if(ox(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=zI(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=BI(BI({clipPath:LR(e,"hidden")?"url(#".concat(a,")"):void 0},nc(e,!0)),{},{cx:l,cy:f});return t.createElement(hc,{className:To("recharts-reference-dot",d)},VI.renderDot(p,h),kT.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}function HI(e){return HI="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},HI(e)}VI.displayName="ReferenceDot",VI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},VI.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,NI({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};var UI=["isFront","ifOverflow","xAxisId","yAxisId","r","fill","fillOpacity","stroke","strokeWidth"];function KI(){return KI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KI.apply(this,arguments)}function $I(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 WI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$I(Object(n),!0).forEach((function(t){qI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==HI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ZI=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=_I({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!LR(o,"discard")||f.isInRange(p)&&f.isInRange(d)?bI(p,d):null};function YI(e){var n=e.isFront,r=void 0!==n&&n,o=e.ifOverflow,i=void 0===o?"discard":o,a=e.xAxisId,s=void 0===a?0:a,c=e.yAxisId,u=void 0===c?0:c,l=e.r,f=void 0===l?10:l,p=e.fill,d=void 0===p?"#ccc":p,h=e.fillOpacity,g=void 0===h?.5:h,y=e.stroke,v=void 0===y?"none":y,m=e.strokeWidth,b=WI({isFront:r,ifOverflow:i,xAxisId:s,yAxisId:u,r:f,fill:d,fillOpacity:g,stroke:v,strokeWidth:void 0===m?1:m},GI(e,UI)),w=b.x1,x=b.x2,_=b.y1,C=b.y2,O=b.className,S=b.alwaysShow,k=b.clipPathId;ox(void 0===S,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var E=Es(w),j=Es(x),A=Es(_),T=Es(C),P=b.shape;if(!(E||j||A||T||P))return null;var M=ZI(E,j,A,T,b);if(!M&&!P)return null;var D=LR(b,"hidden")?"url(#".concat(k,")"):void 0;return t.createElement(hc,{className:To("recharts-reference-area",O)},YI.renderRect(P,WI(WI({clipPath:D},nc(b,!0)),M)),kT.renderCallByParent(b,M))}YI.displayName="ReferenceArea",YI.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(CP,KI({},n,{className:"recharts-reference-area-rect"}))};var XI=["viewBox"],JI=["viewBox"],QI=["ticks"];function eN(e){return eN="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},eN(e)}function tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tN.apply(this,arguments)}function nN(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 rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iN(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,lN(r.key),r)}}function aN(e,t){return aN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aN(e,t)}function sN(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=cN(e);if(t){var o=cN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===eN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function cN(e){return cN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cN(e)}function uN(e,t,n){return(t=lN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lN(e){var t=function(e,t){if("object"!==eN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eN(t)?t:String(t)}var fN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aN(e,t)}(a,t.Component);var n,r,o,i=sN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=oN(e,XI),o=this.props,i=o.viewBox,a=oN(o,JI);return!Rs(n,i)||!Rs(r,a)||!Rs(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=ks(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*f)+y*v)+y*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=rN(rN(rN({},nc(this.props)),nc(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=rN(rN({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=rN(rN({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",tN({},u,{className:To("recharts-cartesian-axis-line",ys(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,p=a.getTicks(rN(rN({},this.props),{},{ticks:e}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=nc(this.props),y=nc(u),v=rN(rN({},g),{},{fill:"none"},nc(s)),m=p.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=rN(rN(rN(rN({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:l});return t.createElement(hc,tN({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Vs(o.props,e,n)),s&&t.createElement("line",tN({},v,i,{className:To("recharts-cartesian-axis-tick-line",ys(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(ni(l)?l(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,u=c.ticks,l=oN(c,QI),f=u;return ni(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(hc,{className:To("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),kT.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return o&&o.length&&r?ks(u)||Kb.isSsr?a.getNumberIntervalTicks(o,"number"==typeof u&&ks(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:l,viewBox:i,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?Qx(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Os(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=ni(i)?i(x.value,b-1):x.value,C=Qx(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=rN(rN({},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]=rN(rN({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],j=ni(i)?i(E.value,k):E.value,A=Qx(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=rN(rN({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=rN(rN({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*A/2-n)>=0&&w*(E.tickCoord+w*A/2-r)<=0&&(n=E.tickCoord+w*(A/2+c),v[k]=rN(rN({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=i.x,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Qx(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Os(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],_=ni(o)?o(x.value,m-w-1):x.value,C=Qx(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=rN(rN({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=rN(rN({},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]=rN(rN({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(b_,tN({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&iN(n.prototype,r),o&&iN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();uN(fN,"displayName","CartesianAxis"),uN(fN,"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 pN=["x1","y1","x2","y2","key"];function dN(e){return dN="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},dN(e)}function hN(){return hN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hN.apply(this,arguments)}function gN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yN(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 vN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yN(Object(n),!0).forEach((function(t){_N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mN(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,CN(r.key),r)}}function bN(e,t){return bN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bN(e,t)}function wN(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=xN(e);if(t){var o=xN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xN(e){return xN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xN(e)}function _N(e,t,n){return(t=CN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CN(e){var t=function(e,t){if("object"!==dN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dN(t)?t:String(t)}var ON=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bN(e,t)}(a,t.PureComponent);var n,r,o,i=wN(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var n=this,r=this.props,o=r.x,i=r.width,s=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=vN(vN({},n.props),{},{x1:o,y1:e,x2:o+i,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var n=this,r=this.props,o=r.y,i=r.height,s=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=vN(vN({},n.props),{},{x1:e,y1:o,x2:e,y2:o+i,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:i+s-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:a+c-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:l,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,s=n.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!ks(o)||o<=0||!ks(i)||i<=0||!ks(n)||n!==+n||!ks(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!ni(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!ni(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(ni(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=gN(n,pN);r=t.createElement("line",hN({},nc(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&mN(n.prototype,r),o&&mN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();_N(ON,"displayName","CartesianGrid"),_N(ON,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var SN=["type","layout","connectNulls","ref"];function kN(e){return kN="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},kN(e)}function EN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jN(){return jN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jN.apply(this,arguments)}function AN(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 TN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PN(e){return function(e){if(Array.isArray(e))return MN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return MN(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 MN(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 MN(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 DN(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,FN(r.key),r)}}function RN(e,t){return RN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RN(e,t)}function IN(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=LN(e);if(t){var o=LN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NN(e)}(this,n)}}function NN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LN(e){return LN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LN(e)}function BN(e,t,n){return(t=FN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e){var t=function(e,t){if("object"!==kN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kN(t)?t:String(t)}var zN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RN(e,t)}(a,t.PureComponent);var n,r,o,i=IN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return BN(NN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),BN(NN(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat(PN(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(PN(a.repeat(n,o)),PN(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),BN(NN(e),"id",As("recharts-line-")),BN(NN(e),"pathRef",(function(t){e.mainCurve=t})),BN(NN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),BN(NN(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=Ys(r.children,bA);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:kA(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,l,c.map((function(e,n){return t.cloneElement(e,{key:"bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,s=r.dataKey,c=nc(this.props),u=nc(o,!0),l=i.map((function(e,t){var n=TN(TN(TN({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(o,n)})),f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,jN({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=EN(i,SN),l=TN(TN(TN({},nc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(fP,jN({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=o.animateNewValues,d=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(jm,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=Ms(r.x,e.x),a=Ms(r.y,e.y);return TN(TN({},e),{},{x:i(o),y:a(o)})}if(p){var c=Ms(2*d,e.x),u=Ms(h/2,e.y);return TN(TN({},e),{},{x:c(o),y:u(o)})}return TN(TN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Ms(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!x_(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=To("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=vs(d)?this.id:d;return t.createElement(hc,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(v,m),(g||r)&&this.renderDots(v,m),(!p||h)&&zT.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(PN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(PN(r),PN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(ni(e))r=e(n);else{var o=To("recharts-line-dot",e?e.className:"");r=t.createElement(UP,jN({},n,{className:o}))}return r}}],r&&DN(n.prototype,r),o&&DN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();BN(zN,"displayName","Line"),BN(zN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Kb.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),BN(zN,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return TN({points:c.map((function(e,t){var c=kA(e,a);return"horizontal"===l?{x:KA({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:vs(c)?null:r.scale(c),value:c,payload:e}:{x:vs(c)?null:n.scale(c),y:KA({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)}));var VN=["layout","type","stroke","connectNulls","isRange","ref"];function HN(e){return HN="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},HN(e)}function UN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KN(){return KN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KN.apply(this,arguments)}function $N(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 WN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$N(Object(n),!0).forEach((function(t){JN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qN(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,QN(r.key),r)}}function GN(e,t){return GN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GN(e,t)}function ZN(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=XN(e);if(t){var o=XN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YN(e)}(this,n)}}function YN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XN(e){return XN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XN(e)}function JN(e,t,n){return(t=QN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e){var t=function(e,t){if("object"!==HN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HN(t)?t:String(t)}var eL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GN(e,t)}(a,t.PureComponent);var n,r,o,i=ZN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return JN(YN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),JN(YN(e),"id",As("recharts-area-")),JN(YN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),JN(YN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(e,n){var r=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(r&&!o)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=nc(this.props),f=nc(s,!0),p=c.map((function(e,t){var n=WN(WN(WN({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(hc,KN({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].x,s=o[o.length-1].x,c=e*Math.abs(a-s),u=j_(o.map((function(e){return e.y||0})));return ks(r)&&"number"==typeof r?u=Math.max(r,u):r&&ri(r)&&r.length&&(u=Math.max(j_(r.map((function(e){return e.y||0}))),u)),ks(u)?t.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].y,s=o[o.length-1].y,c=e*Math.abs(a-s),u=j_(o.map((function(e){return e.x||0})));return ks(r)&&"number"==typeof r?u=Math.max(r,u):r&&ri(r)&&r.length&&(u=Math.max(j_(r.map((function(e){return e.x||0}))),u)),ks(u)?t.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,o){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=UN(i,VN);return t.createElement(hc,{clipPath:r?"url(#clipPath-".concat(o,")"):null},t.createElement(fP,KN({},nc(f,!0),{points:e,connectNulls:u,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&t.createElement(fP,KN({},nc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&t.createElement(fP,KN({},nc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.baseLine,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return t.createElement(jm,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var s=o.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=Ms(r.x,e.x),i=Ms(r.y,e.y);return WN(WN({},e),{},{x:o(s),y:i(s)})}return e}));return c=ks(a)&&"number"==typeof a?Ms(h,a)(s):vs(a)||Cs(a)?Ms(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=Ms(r.x,e.x),i=Ms(r.y,e.y);return WN(WN({},e),{},{x:o(s),y:i(s)})}return e})),r.renderAreaStatically(l,c,e,n)}return t.createElement(hc,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(hc,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,a,e,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!x_(s,r)||!x_(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=To("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=vs(d)?this.id:d;return t.createElement(hc,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(r||g)&&this.renderDots(v,m),(!p||h)&&zT.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&qN(n.prototype,r),o&&qN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();JN(eL,"displayName","Area"),JN(eL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),JN(eL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(ks(s)&&"number"==typeof s)return s;var c="horizontal"===o?r:n,u=c.scale.domain();if("number"===c.type){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===s?u[0]:"dataMax"===s?u[1]:u[0]})),JN(eL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=eL.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=kA(e,u);g?n=l[f+t]:ri(n=r)?v=!0:n=[y,n];var p=vs(n[1])||g&&vs(r);return"horizontal"===h?{x:KA({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:KA({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:vs(ys(e,"value[0]"))||vs(ys(e,"y"))?null:i.scale(ys(e,"value[0]"))}:{x:vs(ys(e,"value[0]"))?null:o.scale(ys(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),WN({points:m,baseLine:t,layout:h,isRange:v},d)})),JN(eL,"renderDotItem",(function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,KN({},n,{className:"recharts-area-dot"}))}));var tL=function(){return null};function nL(e){return nL="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},nL(e)}function rL(){return rL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rL.apply(this,arguments)}function oL(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 iL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oL(Object(n),!0).forEach((function(t){fL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aL(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,pL(r.key),r)}}function sL(e,t){return sL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sL(e,t)}function cL(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=lL(e);if(t){var o=lL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uL(e)}(this,n)}}function uL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lL(e){return lL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lL(e)}function fL(e,t,n){return(t=pL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pL(e){var t=function(e,t){if("object"!==nL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nL(t)?t:String(t)}tL.displayName="ZAxis",tL.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var dL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sL(e,t)}(a,t.PureComponent);var n,r,o,i=cL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fL(uL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),fL(uL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),fL(uL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),fL(uL(e),"id",As("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.activeShape,s=r.activeIndex,c=nc(this.props);return e.map((function(e,r){var u=iL(iL({key:"symbol-".concat(r)},c),e);return t.createElement(hc,rL({className:"recharts-scatter-symbol"},Vs(n.props,e,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(s===r?i:o,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ms(n.cx,e.cx),i=Ms(n.cy,e.cy),a=Ms(n.size,e.size);return iL(iL({},e),{},{cx:r(o),cy:i(o),size:a(o)})}var s=Ms(0,e.size);return iL(iL({},e),{},{size:s(o)})}));return t.createElement(hc,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=Ys(e.children,bA);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:kA(e,t)}}function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:kA(e,t)}}return i.map((function(e,i){var c=e.props.direction;return t.cloneElement(e,{key:i,data:n,xAxis:r,yAxis:o,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:"x"===c?s:a})}))}},{key:"renderLine",value:function(){var e,n,r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,c=nc(this.props),u=nc(i);if("joint"===a)e=o.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(o),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=iL(iL(iL({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return n=t.isValidElement(i)?t.cloneElement(i,y):ni(i)?i(y):t.createElement(fP,rL({},y,{type:s})),t.createElement(hc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.points,o=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=To("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=vs(p)?this.id:p;return t.createElement(hc,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:c,y:u,width:l,height:f}))):null,o&&this.renderLine(),this.renderErrorBar(),t.createElement(hc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&zT.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,n){var r;return t.isValidElement(e)?r=t.cloneElement(e,n):ni(e)?r=e(n):"string"==typeof e&&(r=t.createElement(Mh,rL({},n,{type:e}))),r}}],r&&aL(n.prototype,r),o&&aL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();fL(dL,"displayName","Scatter"),fL(dL,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),fL(dL,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=Ys(o.props.children,ix),f=vs(t.dataKey)?o.props.dataKey:t.dataKey,p=vs(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:tL.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=kA(e,f),h=kA(e,p),m=!vs(d)&&kA(e,d)||"-",b=[{name:vs(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:vs(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=KA({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=KA({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return iL(iL({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return iL({points:m},c)}));var hL=function(){return null};hL.displayName="XAxis",hL.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var gL=function(){return null};gL.displayName="YAxis",gL.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var yL=lp,vL=yl,mL=wl;var bL=function(e){return function(t,n,r){var o=Object(t);if(!vL(t)){var i=yL(n);t=mL(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},wL=sR;var xL=fp,_L=lp,CL=function(e){var t=wL(e),n=t%1;return t==t?n?t-n:t:0},OL=Math.max;var SL=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:CL(n);return o<0&&(o=OL(r+o,0)),xL(e,_L(t),o)},kL=bL(SL),EL=Io,jL=Po,AL=function(){return EL.Date.now()},TL=rR,PL="Expected a function",ML=Math.max,DL=Math.min;var RL=function(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError(PL);function d(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=i}function g(){var e=AL();if(h(e))return y(e);s=setTimeout(g,function(e){var n=t-(e-c);return f?DL(n,i-(e-u)):n}(e))}function y(e){return s=void 0,p&&r?d(e):(r=o=void 0,a)}function v(){var e=AL(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),l?d(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(g,t),d(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=TL(t)||0,jL(n)&&(l=!!n.leading,i=(f="maxWait"in n)?ML(TL(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},v.flush=function(){return void 0===s?a:y(AL())},v},IL=RL,NL=Po,LL="Expected a function";var BL=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(LL);return NL(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),IL(e,t,{leading:r,maxWait:t,trailing:o})},FL=Zo,zL=oi,VL="[object Boolean]";var HL=function(e){return!0===e||!1===e||zL(e)&&FL(e)==VL};function UL(e){return function(e){if(Array.isArray(e))return KL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return KL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KL(e,t)}(e)||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 KL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $L=function(e,t,n,r,o){var i=Ys(e,RI),a=Ys(e,VI),s=[].concat(UL(i),UL(a)),c=Ys(e,YI),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&LR(t.props,"extendDomain")&&ks(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&&LR(t.props,"extendDomain")&&ks(t.props[p])&&ks(t.props[d])){var r=t.props[p],o=t.props[d];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return ks(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},WL={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return WL},set exports(e){WL=e}});var qL=new WL;qL.setMaxListeners&&qL.setMaxListeners(10);var GL="recharts.syncMouseEvents",ZL=["item"],YL=["children","className","width","height","style","compact","title","desc"];function XL(e){return XL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XL(e)}function JL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||sB(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 QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QL.apply(this,arguments)}function eB(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tB(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,pB(r.key),r)}}function nB(e,t){return nB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nB(e,t)}function rB(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=iB(e);if(t){var o=iB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oB(e)}(this,n)}}function oB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iB(e){return iB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iB(e)}function aB(e){return function(e){if(Array.isArray(e))return cB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sB(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 sB(e,t){if(e){if("string"==typeof e)return cB(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)?cB(e,t):void 0}}function cB(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 uB(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 lB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uB(Object(n),!0).forEach((function(t){fB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fB(e,t,n){return(t=pB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=function(e,t){if("object"!==XL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XL(t)?t:String(t)}var dB={xAxis:["bottom","top"],yAxis:["left","right"]},hB={x:0,y:0},gB=Number.isFinite?Number.isFinite:isFinite,yB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,vB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,mB=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(aB(e),aB(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&&ks(o)&&ks(i)?e.slice(o,i+1):[]};function bB(e){return"number"===e?[0,"auto"]:void 0}var wB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=mB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=Ds(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(aB(e),[QA(t,o)]):e}),[])},xB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var 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(Os(l-u)!==Os(f-l)){var d=[];if(Os(f-l)===Os(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){i=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=wB(e,t,u,l),p=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return lB(lB(lB({},r),cT(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return lB(lB(lB({},r),cT(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return hB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},_B=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=MA(u,o),d=n.reduce((function(t,n){var d=n.props,h=d.type,g=d.dataKey,y=d.allowDataOverflow,v=d.allowDuplicatedCategory,m=d.scale,b=d.ticks,w=n.props[i];if(t[w])return t;var x,_,C,O=mB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:c}),S=O.length;if(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&ks(r)&&ks(o))return!0}return!1}(n.props.domain,y,h)&&(x=YA(n.props.domain,null,y)),!x||0===x.length){var k,E=null!==(k=n.props.domain)&&void 0!==k?k:bB(h);if(g){if(x=EA(O,g,h),"category"===h&&p){var j=function(e){if(!ri(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}(x);v&&j?(_=x,x=fR(0,S)):v||(x=JA(E,x,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(aB(e),[t])}),[]))}else if("category"===h)x=v?x.filter((function(e){return""!==e&&!vs(e)})):JA(E,x,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||vs(t)?e:[].concat(aB(e),[t])}),[]);else if("number"===h){var A=function(e,t,n,r,o){var i=t.map((function(t){return TA(e,t,n,o,r)})).filter((function(e){return!vs(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),g,o,u);A&&(x=A)}!p||"number"!==h&&"auto"===m||(C=EA(O,g,"category"))}else x=p?fR(0,S):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:qA(a[w].stackGroups,s,c):PA(O,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,u,!0);if("number"===h)x=$L(l,x,w,o,b),E&&(x=YA(E,x,y));else if("category"===h&&E){var T=E;x.every((function(e){return T.indexOf(e)>=0}))&&(x=T)}}return lB(lB({},t),{},fB({},w,lB(lB({},n.props),{},{axisType:o,domain:x,categoricalDomain:C,duplicateDomain:_,originalDomain:n.props.domain,isCategorical:p,layout:u})))}),{});return d},CB=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=Ys(u,o),p={};return f&&f.length?p=_B(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=mB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=MA(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=bB("number");return e[y]?e:(h++,d?g=fR(0,p):a&&a[y]&&a[y].hasStack?(g=qA(a[y].stackGroups,s,c),g=$L(l,g,y,o)):(g=YA(v,PA(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=$L(l,g,y,o)),lB(lB({},e),{},fB({},y,lB(lB({axisType:o},r.defaultProps),{},{hide:!0,orientation:ys(dB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},OB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=Xs(r,AR);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!vs(o)&&o}},SB=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"}},kB=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=Xs(u,AR),p=Xs(u,og),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:lB(lB({},e),{},fB({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:lB(lB({},e),{},fB({},r,ys(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=lB(lB({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||AR.defaultProps.height),p&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=AA({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&ks(e[f])&&(u=OA(OA({},e),{},SA({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&ks(e[p])&&(u=OA(OA({},e),{},SA({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),lB(lB({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},EB=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,u=e.axisComponents,l=e.legendContent,f=e.formatAxisMap,p=e.defaultProps,d=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,l=e.layout,f=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=SB(l),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Ws(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return Ws(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:vs(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=mB(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=u.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return lB(lB({},e),{},(fB(o={},r.axisType,s),fB(o,"".concat(r.axisType,"Ticks"),RA(s)),o))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Es(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),j=Ws(n.type).indexOf("Bar")>=0,A=XA(S,k),T=[];if(j){var P,M,D=vs(x)?d:x,R=null!==(P=null!==(M=XA(S,k,!0))&&void 0!==M?M:D)&&void 0!==P?P:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,u=Ts(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(xA(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=Ts(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(xA(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:f,barCategoryGap:p,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return lB(lB({},e),{},{position:lB(lB({},e.position),{},{offset:e.position.offset-R/2})})})))}var I,N,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:lB(lB({},B(lB(lB({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(c)},fB(I,g,O[g]),fB(I,y,O[y]),fB(I,"animationId",i),I)),childIndex:(N=n,L=e.children,Zs(L).indexOf(N)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Js({props:n}))return null;var c=n.children,l=n.layout,p=n.stackOffset,h=n.data,g=n.reverseStackOrder,y=SB(l),v=y.numericAxisName,m=y.cateAxisName,b=Ys(c,o),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Es(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[As("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return OA(OA({},e),{},SA({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return OA(OA({},t),{},SA({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:HA(e,a.items,o)}))}),{})),OA(OA({},t),{},SA({},i,s))}),{})}(h,b,"".concat(v,"Id"),"".concat(m,"Id"),p,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return lB(lB({},e),{},fB({},r,CB(n,lB(lB({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=kB(lB(lB({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Ps(S),{tooltipTicks:O=RA(C,!1,!0),orderedTooltipTicks:Tb(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:XA(C,O)}),E=d(n,lB(lB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return lB(lB({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nB(e,t)}(u,t.Component);var n,o,i,s=rB(u);function u(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),fB(oB(n=s.call(this,e)),"clearDeferId",(function(){!vs(n.deferId)&&vB&&vB(n.deferId),n.deferId=null})),fB(oB(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(lB({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},lB(lB({},n.state),{},{legendBBox:e}))))}})),fB(oB(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=yB&&yB(n.applySyncEvent.bind(oB(n),r)))})),fB(oB(n),"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return lB({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),fB(oB(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=lB(lB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ni(t)&&t(o,e)}})),fB(oB(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?lB(lB({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),ni(t)&&t(o,e)})),fB(oB(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),fB(oB(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),fB(oB(n),"handleMouseMove",(function(e){e&&ni(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),fB(oB(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),ni(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),fB(oB(n),"handleOuterEvent",(function(e){var t=ac(e),r=ys(n.props,"".concat(t));t&&ni(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),fB(oB(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=lB(lB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ni(t)&&t(o,e)}})),fB(oB(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;ni(t)&&t(n.getMouseInfo(e),e)})),fB(oB(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;ni(t)&&t(n.getMouseInfo(e),e)})),fB(oB(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),fB(oB(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),fB(oB(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),fB(oB(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return DA(fN.getTicks(lB(lB(lB({},fN.defaultProps),t),{},{ticks:RA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),fB(oB(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return DA(fN.getTicks(lB(lB(lB({},fN.defaultProps),t),{},{ticks:RA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),fB(oB(n),"axesTicksGenerator",(function(e){return RA(e,!0)})),fB(oB(n),"renderCursor",(function(e){var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.offset,u=o.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==r&&"axis"!==l)return null;var f,p=n.props.layout,d=fP;if("ScatterChart"===r)f=a,d=XP;else if("BarChart"===r)f=n.getCursorRectangle(),d=CP;else if("radial"===p){var h=n.getCursorPoints(),g=h.cx,y=h.cy,v=h.radius;f={cx:g,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},d=YT}else f={points:n.getCursorPoints()},d=fP;var m=e.key||"_recharts-cursor",b=lB(lB(lB(lB({stroke:"#ccc",pointerEvents:"none"},c),f),nc(e.props.cursor)),{},{payload:s,payloadIndex:u,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(d,b)})),fB(oB(n),"renderPolarAxis",(function(e,r,o){var i=ys(e,"type.axisType"),a=ys(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,lB(lB({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:RA(s,!0)}))})),fB(oB(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),fB(oB(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),fB(oB(n),"renderGrid",(function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,u=s.height,l=Ps(o),f=kL(i,(function(e){return $R(e.domain,gB)}))||Ps(i),p=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:ks(p.x)?p.x:a.left,y:ks(p.y)?p.y:a.top,width:ks(p.width)?p.width:a.width,height:ks(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),fB(oB(n),"renderPolarGrid",(function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,u=s.angleAxisMap,l=Ps(c),f=Ps(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:ri(i)?i:RA(f,!0).map((function(e){return e.coordinate})),polarRadius:ri(a)?a:RA(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),fB(oB(n),"renderLegend",(function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},c=i-(s.left||0)-(s.right||0),u=AA({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var f=u.item,p=eB(u,ZL);return t.cloneElement(f,lB(lB({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),fB(oB(n),"renderTooltip",(function(){var e=Xs(n.props.children,rw);if(!e)return null;var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,c=r.offset;return t.cloneElement(e,{viewBox:lB(lB({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),fB(oB(n),"renderBrush",(function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,u=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:IA(n.handleBrushChange,null,e.props.onChange),data:i,x:ks(e.props.x)?e.props.x:s.left,y:ks(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:ks(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),fB(oB(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=oB(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[null!=f?f:0],yAxis:c[null!=p?p:0],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})})),fB(oB(n),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,c=t.item.props,l=c.activeDot,f=lB(lB({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:jA(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},nc(l)),zs(l));return a.push(u.renderActiveDot(l,f)),r?a.push(u.renderActiveDot(l,lB(lB({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),fB(oB(n),"renderGraphicChild",(function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,c=s.isTooltipActive,u=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,p=Xs(n.props.children,rw),d=i.props,h=d.points,g=d.isRange,y=d.baseLine,v=i.item.props,m=v.activeDot,b=!v.hide&&c&&p&&m&&l>=0,w={};"axis"!==a&&p&&"click"===p.props.trigger?w={onClick:IA(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:IA(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:IA(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,lB(lB({},i.props),w));if(b){var _,C;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());_=Ds(h,O,f),C=g&&y&&Ds(y,O,f)}else _=h[l],C=g&&y&&y[l];if(!vs(_))return[x].concat(aB(n.renderActivePoints({item:i,activePoint:_,basePoint:C,childIndex:l,isRange:g})))}return g?[x,null,null]:[x,null]})),fB(oB(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,lB(lB({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=vs(e.id)?As("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=BL(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=u,o=[{key:"componentDidMount",value:function(){vs(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){vs(e.syncId)&&!vs(this.props.syncId)&&this.addListener(),!vs(e.syncId)&&vs(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),vs(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=Xs(this.props.children,rw);if(e&&HL(e.props.shared)){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=Ps(s).scale,l=Ps(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return lB(lB({},o),{},{xValue:f,yValue:p})}var d=xB(this.state,this.props.data,this.props.layout,i);return d?lB(lB({},o),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!vs(a.cx)||!vs(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[cT(c,u,l,f),cT(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=cT(d,h,g,v),b=cT(d,h,y,v);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=Ps(i);return dT({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Xs(e,rw),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}),lB(lB({},zs(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){qL.on(GL,this.handleReceiveSyncEvent),qL.setMaxListeners&&qL._maxListeners&&qL.setMaxListeners(qL._maxListeners+1)}},{key:"removeListener",value:function(){qL.removeListener(GL,this.handleReceiveSyncEvent),qL.setMaxListeners&&qL._maxListeners&&qL.setMaxListeners(qL._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;vs(t)||qL.emit(GL,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(vs(e.dataStartIndex)&&vs(e.dataEndIndex))if(vs(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 g=lB(lB({},f),{},{x:f.left,y:f.top}),y=Math.min(s,g.x+g.width),v=Math.min(c,g.y+g.height),m=p[u]&&p[u].value,b=wB(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:hB;this.setState(lB(lB({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(lB({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===Ws(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,s=i.height;return t.createElement(fN,QL({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=JL(t,2),r=n[0],o=n[1];return lB(lB({},e),{},fB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=JL(t,2),r=n[0],o=n[1];return lB(lB({},e),{},fB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=Ws(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return _P(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return dT(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!Js(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,s=n.style,c=n.compact,u=n.title,l=n.desc,f=eB(n,YL),p=nc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return t.createElement(lc,QL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),ic(r,d));var h=this.parseEventsOfWrapper();return t.createElement("div",QL({className:To("recharts-wrapper",o),style:lB({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(lc,QL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),ic(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&tB(n.prototype,o),i&&tB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(),fB(n,"displayName",r),fB(n,"defaultProps",lB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),fB(n,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(vs(t.updateId)){var u=OB(e);return lB(lB(lB({},u),{},{updateId:0},h(lB(lB({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Rs(c,t.prevMargin)){var l=OB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=lB(lB({},xB(t,n,a)),{},{updateId:t.updateId+1}),d=lB(lB(lB({},l),f),p);return lB(lB(lB({},d),h(lB({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!rc(r,t.prevChildren)){var g=!vs(n)?t.updateId:t.updateId+1;return lB(lB({updateId:g},h(lB(lB({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),fB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(UP,n),t.createElement(hc,{className:"recharts-active-dot",key:n.key},r)})),n};EB({chartName:"LineChart",GraphicalChild:zN,axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL}],formatAxisMap:mI});var jB=EB({chartName:"BarChart",GraphicalChild:fI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL}],formatAxisMap:mI}),AB=EB({chartName:"PieChart",GraphicalChild:pD,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:UM},{axisType:"radiusAxis",AxisComp:TM}],formatAxisMap:lT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var TB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},PB=qR,MB=ia,DB=Object.prototype.hasOwnProperty;var RB=function(e,t,n){var r=e[t];DB.call(e,t)&&MB(r,n)&&(void 0!==n||t in e)||PB(e,t,n)},IB=RB,NB=qR;var LB=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?NB(n,s,c):IB(n,s,c)}return n},BB=LB,FB=wl;var zB=function(e,t){return e&&BB(t,FB(t),e)};var VB=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},HB=Po,UB=sl,KB=VB,$B=Object.prototype.hasOwnProperty;var WB=function(e){if(!HB(e))return KB(e);var t=UB(e),n=[];for(var r in e)("constructor"!=r||!t&&$B.call(e,r))&&n.push(r);return n},qB=il,GB=WB,ZB=yl;var YB=function(e){return ZB(e)?qB(e,!0):GB(e)},XB=LB,JB=YB;var QB=function(e,t){return e&&XB(t,JB(t),e)},eF={};!function(e,t){var n=Io,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return eF},set exports(e){eF=e}},eF);var tF=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},nF=LB,rF=Cu;var oF=function(e,t){return nF(e,rF(e),t)},iF=pu,aF=KM,sF=Cu,cF=vu,uF=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)iF(t,sF(e)),e=aF(e);return t}:cF,lF=LB,fF=uF;var pF=function(e,t){return lF(e,fF(e),t)},dF=gu,hF=uF,gF=YB;var yF=function(e){return dF(e,gF,hF)},vF=Object.prototype.hasOwnProperty;var mF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vF.call(e,"index")&&(n.index=e.index,n.input=e.input),n},bF=Hc;var wF=function(e){var t=new e.constructor(e.byteLength);return new bF(t).set(new bF(e)),t},xF=wF;var _F=function(e,t){var n=t?xF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},CF=/\w*$/;var OF=function(e){var t=new e.constructor(e.source,CF.exec(e));return t.lastIndex=e.lastIndex,t},SF=No?No.prototype:void 0,kF=SF?SF.valueOf:void 0;var EF=wF;var jF=wF,AF=_F,TF=OF,PF=function(e){return kF?Object(kF.call(e)):{}},MF=function(e,t){var n=t?EF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},DF="[object Boolean]",RF="[object Date]",IF="[object Map]",NF="[object Number]",LF="[object RegExp]",BF="[object Set]",FF="[object String]",zF="[object Symbol]",VF="[object ArrayBuffer]",HF="[object DataView]",UF="[object Float32Array]",KF="[object Float64Array]",$F="[object Int8Array]",WF="[object Int16Array]",qF="[object Int32Array]",GF="[object Uint8Array]",ZF="[object Uint8ClampedArray]",YF="[object Uint16Array]",XF="[object Uint32Array]";var JF=function(e,t,n){var r=e.constructor;switch(t){case VF:return jF(e);case DF:case RF:return new r(+e);case HF:return AF(e,n);case UF:case KF:case $F:case WF:case qF:case GF:case ZF:case YF:case XF:return MF(e,n);case IF:return new r;case NF:case FF:return new r(e);case LF:return TF(e);case BF:return new r;case zF:return PF(e)}},QF=Po,ez=Object.create,tz=function(){function e(){}return function(t){if(!QF(t))return{};if(ez)return ez(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nz=tz,rz=KM,oz=sl;var iz=function(e){return"function"!=typeof e.constructor||oz(e)?{}:nz(rz(e))},az=Yl,sz=oi,cz="[object Map]";var uz=function(e){return sz(e)&&az(e)==cz},lz=Wu,fz=qu&&qu.isMap,pz=fz?lz(fz):uz,dz=Yl,hz=oi,gz="[object Set]";var yz=function(e){return hz(e)&&dz(e)==gz},vz=Wu,mz=qu&&qu.isSet,bz=mz?vz(mz):yz,wz=Ec,xz=TB,_z=RB,Cz=zB,Oz=QB,Sz=eF,kz=tF,Ez=oF,jz=pF,Az=Ol,Tz=yF,Pz=Yl,Mz=mF,Dz=JF,Rz=iz,Iz=ri,Nz=Ru,Lz=pz,Bz=Po,Fz=bz,zz=wl,Vz=YB,Hz=1,Uz=2,Kz=4,$z="[object Arguments]",Wz="[object Function]",qz="[object GeneratorFunction]",Gz="[object Object]",Zz={};Zz[$z]=Zz["[object Array]"]=Zz["[object ArrayBuffer]"]=Zz["[object DataView]"]=Zz["[object Boolean]"]=Zz["[object Date]"]=Zz["[object Float32Array]"]=Zz["[object Float64Array]"]=Zz["[object Int8Array]"]=Zz["[object Int16Array]"]=Zz["[object Int32Array]"]=Zz["[object Map]"]=Zz["[object Number]"]=Zz[Gz]=Zz["[object RegExp]"]=Zz["[object Set]"]=Zz["[object String]"]=Zz["[object Symbol]"]=Zz["[object Uint8Array]"]=Zz["[object Uint8ClampedArray]"]=Zz["[object Uint16Array]"]=Zz["[object Uint32Array]"]=!0,Zz["[object Error]"]=Zz[Wz]=Zz["[object WeakMap]"]=!1;var Yz=function e(t,n,r,o,i,a){var s,c=n&Hz,u=n&Uz,l=n&Kz;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!Bz(t))return t;var f=Iz(t);if(f){if(s=Mz(t),!c)return kz(t,s)}else{var p=Pz(t),d=p==Wz||p==qz;if(Nz(t))return Sz(t,c);if(p==Gz||p==$z||d&&!i){if(s=u||d?{}:Rz(t),!c)return u?jz(t,Oz(s,t)):Ez(t,Cz(s,t))}else{if(!Zz[p])return i?t:{};s=Dz(t,p,c)}}a||(a=new wz);var h=a.get(t);if(h)return h;a.set(t,s),Fz(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Lz(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?Tz:Az:u?Vz:zz)(t);return xz(g||t,(function(o,i){g&&(o=t[i=o]),_z(s,i,e(o,n,r,i,t,a))})),s},Xz=hs,Jz=Rp;var Qz=function(e,t){return t.length<2?e:Xz(e,Jz(t,0,-1))},eV=cs,tV=AT,nV=Qz,rV=fs;var oV=function(e,t){return t=eV(t,e),null==(e=nV(e,t))||delete e[rV(tV(t))]},iV=eD;var aV=Rm;var sV=function(e){return(null==e?0:e.length)?aV(e,1):[]},cV=sV,uV=sb,lV=mb;var fV=Ga,pV=Yz,dV=oV,hV=cs,gV=LB,yV=function(e){return iV(e)?void 0:e},vV=yF,mV=function(e){return lV(uV(e,void 0,cV),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=fV(t,(function(t){return t=hV(t,e),r||(r=t.length>1),t})),gV(e,vV(e),n),r&&(n=pV(n,7,yV));for(var o=t.length;o--;)dV(n,t[o]);return n})),bV=mV,wV=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],xV=["width","height","className","style","children","type"];function _V(e){return _V="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},_V(e)}function CV(){return CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CV.apply(this,arguments)}function OV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function SV(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,DV(r.key),r)}}function kV(e,t){return kV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kV(e,t)}function EV(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=AV(e);if(t){var o=AV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jV(e)}(this,n)}}function jV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AV(e){return AV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AV(e)}function TV(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 PV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TV(Object(n),!0).forEach((function(t){MV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MV(e,t,n){return(t=DV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DV(e){var t=function(e,t){if("object"!==_V(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_V(t)?t:String(t)}var RV="value",IV=function e(t){var n,r,o=t.depth,i=t.node,a=t.index,s=t.valueKey,c=i.children,u=o+1,l=c&&c.length?c.map((function(t,n){return e({depth:u,node:t,index:n,valueKey:s})})):null;return r=c&&c.length?l.reduce((function(e,t){return e+t[RV]}),0):Cs(i[s])||i[s]<=0?0:i[s],PV(PV({},i),{},(MV(n={children:l},RV,r),MV(n,"depth",o),MV(n,"index",a),n))},NV=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},LV=function(e,t,n,r){return t===n.width?function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.height)&&(o=n.height);for(var i,a=n.x,s=0,c=e.length;s<c;s++)(i=e[s]).x=a,i.y=n.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,n.x+n.width-a),a+=i.width;return i.width+=n.x+n.width-a,PV(PV({},n),{},{y:n.y+o,height:n.height-o})}(e,t,n,r):function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.width)&&(o=n.width);for(var i,a=n.y,s=0,c=e.length;s<c;s++)(i=e[s]).x=n.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,n.y+n.height-a),a+=i.height;return i&&(i.height+=n.y+n.height-a),PV(PV({},n),{},{x:n.x+o,width:n.width-o})}(e,t,n,r)},BV=function e(t,n){var r=t.children;if(r&&r.length){var o,i,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),s=[],c=1/0,u=Math.min(a.width,a.height),l=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[RV]*n;return PV(PV({},e),{},{area:Cs(t)||t<=0?0:t})}))}(r,a.width*a.height/t[RV]),f=l.slice();for(s.area=0;f.length>0;)s.push(o=f[0]),s.area+=o.area,(i=NV(s,u,n))<=c?(f.shift(),c=i):(s.area-=s.pop().area,a=LV(s,u,a,!1),u=Math.min(a.width,a.height),s.length=s.area=0,c=1/0);return s.length&&(a=LV(s,u,a,!0),s.length=s.area=0),PV(PV({},t),{},{children:l.map((function(t){return e(t,n)}))})}return t},FV={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},zV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kV(e,t)}(a,t.PureComponent);var n,r,o,i=EV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MV(jV(e=i.call.apply(i,[this].concat(n))),"state",PV({},FV)),MV(jV(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),MV(jV(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;Xs(n.children,rw)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;Xs(n.children,rw)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=IV({depth:0,node:PV(PV({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=BV(c,s),l=this.state.nestIndex;l.push(e),this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=IV({depth:0,node:PV(PV({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=BV(c,s);n=n.slice(0,t+1),this.setState({formatRoot:u,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(e,n,r){var o=this,i=this.props,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,d=i.colorPanel,h=this.state.isAnimationFinished,g=n.width,y=n.height,v=n.x,m=n.y,b=n.depth,w=parseInt("".concat((2*Math.random()-1)*g),10),x={};return(r||"nest"===f)&&(x={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?t.createElement(jm,{begin:s,duration:c,isActive:a,easing:u,key:"treemap-".concat(p),from:{x:v,y:m,width:g,height:y},to:{x:v,y:m,width:g,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var i=r.x,p=r.y,g=r.width,y=r.height;return t.createElement(jm,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:s,easing:u,isActive:a,duration:c},t.createElement(hc,x,b>2&&!h?null:o.constructor.renderContentItem(e,PV(PV({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!l,width:g,height:y,x:i,y:p}),f,d)))})):t.createElement(hc,x,this.constructor.renderContentItem(e,PV(PV({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:g,height:y,x:v,y:m}),f,d))}},{key:"renderNode",value:function(e,n,r){var o=this,i=this.props,a=i.content,s=i.type,c=PV(PV(PV({},nc(this.props)),n),{},{root:e}),u=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&e.depth&&"nest"===s?null:t.createElement(hc,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,c,u),n.children&&n.children.length?n.children.map((function(e,t){return o.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.nameKey,o=Xs(n,rw);if(!o)return null;var i=this.props,a=i.width,s=i.height,c=this.state,u=c.isTooltipActive,l=c.activeNode,f={x:0,y:0,width:a,height:s},p=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,d=u&&l?[{payload:l,name:kA(l,r,""),value:kA(l,RV)}]:[];return t.cloneElement(o,{viewBox:f,active:u,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var e=this,n=this.props,r=n.nameKey,o=n.nestIndexContent,i=this.state.nestIndex;return t.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(n,i){var a=ys(n,r,"root"),s=null;return t.isValidElement(o)&&(s=t.cloneElement(o,n,i)),s=ni(o)?o(n,i):a,t.createElement("div",{onClick:e.handleNestIndex.bind(e,n,i),key:"nest-index-".concat(As()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},s)})))}},{key:"render",value:function(){if(!Js(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=e.type,c=OV(e,xV),u=nc(c);return t.createElement("div",{className:To("recharts-wrapper",o),style:PV(PV({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(lc,CV({},u,{width:n,height:"nest"===s?r-30:r}),this.renderAllNodes(),tc(a)),this.renderTooltip(),"nest"===s&&this.renderNestIndex())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=IV({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=BV(n,e.aspectRatio);return PV(PV({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,n,r,o){if(t.isValidElement(e))return t.cloneElement(e,n);if(ni(e))return e(n);var i=n.x,a=n.y,s=n.width,c=n.height,u=n.index,l=null;s>10&&c>10&&n.children&&"nest"===r&&(l=t.createElement(NP,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=Qx(n.name);s>20&&c>20&&p.width<s&&p.height<c&&(f=t.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},n.name));var d=o||wV;return t.createElement("g",null,t.createElement(CP,CV({fill:n.depth<2?d[u%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},bV(n,"children"),{role:"img"})),l,f)}}],r&&SV(n.prototype,r),o&&SV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();MV(zV,"displayName","Treemap"),MV(zV,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Kb.isSsr,isUpdateAnimationActive:!Kb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var VV=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n},HV=lp,UV=VV;var KV=function(e,t){return e&&e.length?UV(e,HV(t)):0},$V=["width","height","className","style","children"],WV=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function qV(e){return qV="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},qV(e)}function GV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZV.apply(this,arguments)}function YV(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,oH(r.key),r)}}function XV(e,t){return XV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XV(e,t)}function JV(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=eH(e);if(t){var o=eH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QV(e)}(this,n)}}function QV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eH(e){return eH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eH(e)}function tH(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 nH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tH(Object(n),!0).forEach((function(t){rH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rH(e,t,n){return(t=oH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oH(e){var t=function(e,t){if("object"!==qV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qV(t)?t:String(t)}var iH={x:0,y:0},aH=function(e){return e.y+e.dy/2},sH=function(e){return e&&e.value||0},cH=function(e,t){return t.reduce((function(t,n){return t+sH(e[n])}),0)},uH=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+aH(i)*sH(t[r])}),0)},lH=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+aH(i)*sH(t[r])}),0)},fH=function(e,t){return e.y-t.y},pH=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o<i;o++){var a=t[r[o]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},dH=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.length;i.sort(fH);for(var s=0,c=0;c<a;c++){var u=i[c],l=s-u.y;l>0&&(u.y+=l),s=u.y+u.dy+n}s=t+n;for(var f=a-1;f>=0;f--){var p=i[f],d=p.y+p.dy+n-s;if(!(d>0))break;p.y-=d,s=p.y}}},hH=function(e,t,n,r){for(var o=0,i=t.length;o<i;o++)for(var a=t[o],s=0,c=a.length;s<c;s++){var u=a[s];if(u.sourceLinks.length){var l=cH(n,u.sourceLinks),f=uH(e,n,u.sourceLinks)/l;u.y+=(f-aH(u))*r}}},gH=function(e,t,n,r){for(var o=t.length-1;o>=0;o--)for(var i=t[o],a=0,s=i.length;a<s;a++){var c=i[a];if(c.targetLinks.length){var u=cH(n,c.targetLinks),l=lH(e,n,c.targetLinks)/u;c.y+=(l-aH(c))*r}}},yH=function(e){var t=e.data,n=e.width,r=e.height,o=e.iterations,i=e.nodeWidth,a=e.nodePadding,s=t.links,c=function(e,t,n){for(var r=e.nodes,o=e.links,i=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],o=[],i=[],a=0,s=e.length;a<s;a++){var c=e[a];c.source===t&&(o.push(c.target),i.push(a)),c.target===t&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:o}}(o,t);return nH(nH(nH({},e),n),{},{value:Math.max(cH(o,n.sourceLinks),cH(o,n.targetLinks)),depth:0})})),a=0,s=i.length;a<s;a++){var c=i[a];c.sourceNodes.length||pH(i,c)}var u=yM(i,(function(e){return e.depth})).depth;if(u>=1)for(var l=(t-n)/u,f=0,p=i.length;f<p;f++){var d=i[f];d.targetNodes.length||(d.depth=u),d.x=d.depth*l,d.dx=n}return{tree:i,maxDepth:u}}(t,n,i),u=c.tree,l=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];t[o.depth]||(t[o.depth]=[]),t[o.depth].push(o)}return t}(u),f=function(e,t,n,r){for(var o=D_(e.map((function(e){return(t-(e.length-1)*n)/KV(e,sH)}))),i=0,a=e.length;i<a;i++)for(var s=0,c=e[i].length;s<c;s++){var u=e[i][s];u.y=s,u.dy=u.value*o}return r.map((function(e){return nH(nH({},e),{},{dy:sH(e)*o})}))}(l,r,a,s);dH(l,r,a);for(var p=1,d=1;d<=o;d++)gH(u,l,f,p*=.99),dH(l,r,a),hH(u,l,f,p),dH(l,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=0,a=0;o.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),o.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var s=0,c=o.targetLinks.length;s<c;s++){var u=t[o.targetLinks[s]];u&&(u.sy=i,i+=u.dy)}for(var l=0,f=o.sourceLinks.length;l<f;l++){var p=t[o.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(u,f),{nodes:u,links:f}},vH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XV(e,t)}(a,t.PureComponent);var n,r,o,i=JV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rH(QV(e=i.call.apply(i,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,o=r.onMouseEnter,i=Xs(r.children,rw);i?this.setState((function(n){return"hover"===i.props.trigger?nH(nH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,o=r.onMouseLeave,i=Xs(r.children,rw);i?this.setState((function(e){return"hover"===i.props.trigger?nH(nH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,o=r.onClick,i=Xs(r.children,rw);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return nH(nH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return nH(nH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),o&&o(e,t,n)}},{key:"renderLinks",value:function(e,n){var r=this,o=this.props,i=o.linkCurvature,a=o.link,s=o.margin,c=ys(s,"top")||0,u=ys(s,"left")||0;return t.createElement(hc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,o){var s=e.sy,l=e.ty,f=e.dy,p=n[e.source],d=n[e.target],h=p.x+p.dx+u,g=d.x+u,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,g),v=y(i),m=y(1-i),b=nH({sourceX:h,targetX:g,sourceY:p.y+s+f/2+c,targetY:d.y+l+f/2+c,sourceControlX:v,targetControlX:m,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:o,payload:nH(nH({},e),{},{source:p,target:d})},nc(a)),w={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return t.createElement(hc,ZV({key:"link".concat(o)},w),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(e){var n=this,r=this.props,o=r.node,i=r.margin,a=ys(i,"top")||0,s=ys(i,"left")||0;return t.createElement(hc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,r){var i=e.x,c=e.y,u=e.dx,l=e.dy,f=nH(nH({},nc(o)),{},{x:i+s,y:c+a,width:u,height:l,index:r,payload:e}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return t.createElement(hc,ZV({key:"node".concat(r)},p),n.constructor.renderNodeItem(o,f))})))}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.width,o=e.height,i=e.nameKey,a=Xs(n,rw);if(!a)return null;var s,c=this.state,u=c.isTooltipActive,l=c.activeElement,f=c.activeElementType,p={x:0,y:0,width:r,height:o},d=l?(s=l,"node"===f?{x:s.x+s.width/2,y:s.y+s.height/2}:{x:(s.sourceX+s.targetX)/2,y:(s.sourceY+s.targetY)/2}):iH,h=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:kA(r,n,""),value:kA(r,"value")}];if(r.source&&r.target){var o=kA(r.source,n,""),i=kA(r.target,n,"");return[{payload:e,name:"".concat(o," - ").concat(i),value:kA(r,"value")}]}return[]}(l,f,i):[];return t.cloneElement(a,{viewBox:p,active:u,coordinate:d,label:"",payload:h})}},{key:"render",value:function(){if(!Js(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=GV(e,$V),c=this.state,u=c.links,l=c.nodes,f=nc(s);return t.createElement("div",{className:To("recharts-wrapper",o),style:nH(nH({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(lc,ZV({},f,{width:n,height:r}),tc(a),this.renderLinks(u,l),this.renderNodes(l)),this.renderTooltip())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.height,i=e.margin,a=e.iterations,s=e.nodeWidth,c=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||o!==t.prevHeight||!Rs(i,t.prevMargin)||a!==t.prevIterations||s!==t.prevNodeWidth||c!==t.prevNodePadding){var u=r-(i&&i.left||0)-(i&&i.right||0),l=o-(i&&i.top||0)-(i&&i.bottom||0),f=yH({data:n,width:u,height:l,iterations:a,nodeWidth:s,nodePadding:c}),p=f.links,d=f.nodes;return nH(nH({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:c,prevNodeWidth:s,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(ni(e))return e(n);var r=n.sourceX,o=n.sourceY,i=n.sourceControlX,a=n.targetX,s=n.targetY,c=n.targetControlX,u=n.linkWidth,l=GV(n,WV);return t.createElement("path",ZV({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(o,"\n C").concat(i,",").concat(o," ").concat(c,",").concat(s," ").concat(a,",").concat(s,"\n "),fill:"none",stroke:"#333",strokeWidth:u,strokeOpacity:"0.2"},nc(l)))}},{key:"renderNodeItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):t.createElement(CP,ZV({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},nc(n),{role:"img"}))}}],r&&YV(n.prototype,r),o&&YV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function mH(e){return mH="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},mH(e)}function bH(){return bH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bH.apply(this,arguments)}function wH(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,kH(r.key),r)}}function xH(e,t){return xH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xH(e,t)}function _H(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=OH(e);if(t){var o=OH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CH(e)}(this,n)}}function CH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OH(e){return OH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OH(e)}function SH(e,t,n){return(t=kH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kH(e){var t=function(e,t){if("object"!==mH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mH(t)?t:String(t)}rH(vH,"displayName","Sankey"),rH(vH,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),EB({chartName:"RadarChart",GraphicalChild:ED,axisComponents:[{axisType:"angleAxis",AxisComp:UM},{axisType:"radiusAxis",AxisComp:TM}],formatAxisMap:lT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EB({chartName:"ScatterChart",GraphicalChild:dL,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL},{axisType:"zAxis",AxisComp:tL}],formatAxisMap:mI}),EB({chartName:"AreaChart",GraphicalChild:eL,axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL}],formatAxisMap:mI}),EB({chartName:"RadialBarChart",GraphicalChild:VD,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:UM},{axisType:"radiusAxis",AxisComp:TM}],formatAxisMap:lT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EB({chartName:"ComposedChart",GraphicalChild:[zN,eL,fI,dL],axisComponents:[{axisType:"xAxis",AxisComp:hL},{axisType:"yAxis",AxisComp:gL},{axisType:"zAxis",AxisComp:tL}],formatAxisMap:mI});var EH=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},jH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xH(e,t)}(a,t.PureComponent);var n,r,o,i=_H(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SH(CH(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.upperWidth,a=n.lowerWidth,s=n.height,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=To("recharts-trapezoid",c);return h?t.createElement(jm,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:r,y:o},to:{upperWidth:i,lowerWidth:a,height:s,x:r,y:o},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,o=n.lowerWidth,i=n.height,a=n.x,s=n.y;return t.createElement(jm,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},t.createElement("path",bH({},nc(e.props,!0),{className:g,d:EH(a,s,r,o,i),ref:function(t){e.node=t}})))})):t.createElement("g",null,t.createElement("path",bH({},nc(this.props,!0),{className:g,d:EH(r,o,i,a,s)})))}}],r&&wH(n.prototype,r),o&&wH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function AH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return TH(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 TH(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 TH(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 PH(e){return PH="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},PH(e)}function MH(){return MH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MH.apply(this,arguments)}function DH(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 RH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DH(Object(n),!0).forEach((function(t){zH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IH(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,VH(r.key),r)}}function NH(e,t){return NH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NH(e,t)}function LH(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=FH(e);if(t){var o=FH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return BH(e)}(this,n)}}function BH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FH(e){return FH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FH(e)}function zH(e,t,n){return(t=VH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VH(e){var t=function(e,t){if("object"!==PH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PH(t)?t:String(t)}SH(jH,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var HH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NH(e,t)}(a,t.PureComponent);var n,r,o,i=LH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zH(BH(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),zH(BH(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ni(t)&&t()})),zH(BH(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ni(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var n=this,r=this.props.activeShape;return e.map((function(e,o){var i=n.isActiveIndex(o)?r:null,s=RH(RH({},e),{},{stroke:e.stroke});return t.createElement(hc,MH({className:"recharts-funnel-trapezoid"},Vs(n.props,e,o),{key:"trapezoid-".concat(o),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,n=this.props,r=n.trapezoids,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevTrapezoids;return t.createElement(jm,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ms(n.x,e.x),i=Ms(n.y,e.y),a=Ms(n.upperWidth,e.upperWidth),s=Ms(n.lowerWidth,e.lowerWidth),c=Ms(n.height,e.height);return RH(RH({},e),{},{x:r(o),y:i(o),upperWidth:a(o),lowerWidth:s(o),height:c(o)})}var l=Ms(e.x+e.upperWidth/2,e.x),f=Ms(e.y+e.height/2,e.y),p=Ms(0,e.upperWidth),d=Ms(0,e.lowerWidth),h=Ms(0,e.height);return RH(RH({},e),{},{x:l(o),y:f(o),upperWidth:p(o),lowerWidth:d(o),height:h(o)})}));return t.createElement(hc,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&x_(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.trapezoids,o=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var s=To("recharts-trapezoids",o);return t.createElement(hc,{className:s},this.renderTrapezoids(),(!i||a)&&zT.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ni(e)?e(n):eD(e)?t.createElement(jH,MH({},n,e)):t.createElement(jH,n)}}],r&&IH(n.prototype,r),o&&IH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();zH(HH,"displayName","Funnel"),zH(HH,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Kb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),zH(HH,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,o=nc(e.props),i=Ys(r,ix);return n&&n.length?n.map((function(e,t){return RH(RH(RH({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return RH(RH({},o),e.props)})):[]})),zH(HH,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return xs(n)?l=n:ui(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}})),zH(HH,"getComposedData",(function(e){var t=e.item,n=e.offset,r=HH.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=HH.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 kA(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=kA(e,i,0),u=kA(e,a,t),p=o;if(t!==m-1)(n=kA(r[t+1],i,0))instanceof Array&&(n=AH(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=AH(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return RH(RH({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},bV(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 RH(RH({},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:RH(RH({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:RH(RH({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}})),EB({chartName:"FunnelChart",GraphicalChild:HH,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const UH=X.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),KH=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),$H=X.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),WH=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(XH,{children:[e.jsx(JH,{children:r}),null==n?void 0:n.map((t=>{var n;const r=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color);return e.jsxs(YH,{children:[r&&e.jsx(UH,{color:r}),t.name,": ",t.value]},t.value)}))]}):null,qH=()=>{const{elevation1:t}=n.useTheme();return e.jsx(rw,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(WH,{})})},GH=({payload:t})=>e.jsx(ZH,{children:null==t?void 0:t.map((t=>e.jsxs(YH,{children:[e.jsx(UH,{color:t.color}),t.value]},t.value)))}),ZH=X.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),YH=X.div((({theme:e})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize"}))),XH=X.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),JH=X.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));function QH(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 eU(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function tU(e){return tU="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},tU(e)}function nU(e){eU(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===tU(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 rU(e,t){eU(2,arguments);var n=nU(e),r=QH(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function oU(e,t){eU(2,arguments);var n=nU(e),r=QH(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function iU(e){return iU="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},iU(e)}function aU(e,t){if(eU(2,arguments),!t||"object"!==iU(t))return new Date(NaN);var n=t.years?QH(t.years):0,r=t.months?QH(t.months):0,o=t.weeks?QH(t.weeks):0,i=t.days?QH(t.days):0,a=t.hours?QH(t.hours):0,s=t.minutes?QH(t.minutes):0,c=t.seconds?QH(t.seconds):0,u=nU(e),l=r||n?oU(u,r+12*n):u,f=i||o?rU(l,i+7*o):l,p=1e3*(c+60*(s+60*a));return new Date(f.getTime()+p)}var sU={};function cU(){return sU}function uU(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 lU(e){eU(1,arguments);var t=nU(e);return t.setHours(0,0,0,0),t}var fU=864e5;var pU=6e4;function dU(e,t){eU(2,arguments);var n=lU(e),r=lU(t);return n.getTime()===r.getTime()}function hU(e){return hU="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},hU(e)}function gU(e){if(eU(1,arguments),!function(e){return eU(1,arguments),e instanceof Date||"object"===hU(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=nU(e);return!isNaN(Number(t))}function yU(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 vU(e,t){eU(2,arguments);var n=nU(e),r=nU(t),o=yU(n,r),i=Math.abs(function(e,t){eU(2,arguments);var n=lU(e),r=lU(t),o=n.getTime()-uU(n),i=r.getTime()-uU(r);return Math.round((o-i)/fU)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(yU(n,r)===-o));return 0===a?0:a}var mU={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},bU="trunc";function wU(e){return e?mU[e]:mU[bU]}function xU(e,t,n){eU(2,arguments);var r=function(e,t){return eU(2,arguments),nU(e).getTime()-nU(t).getTime()}(e,t)/pU;return wU(null==n?void 0:n.roundingMethod)(r)}function _U(e,t){return eU(2,arguments),function(e,t){eU(2,arguments);var n=nU(e).getTime(),r=QH(t);return new Date(n+r)}(e,-QH(t))}var CU=864e5;function OU(e){eU(1,arguments);var t=nU(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function SU(e){eU(1,arguments);var t=nU(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=OU(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=OU(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var kU=6048e5;function EU(e){eU(1,arguments);var t=nU(e),n=OU(t).getTime()-function(e){eU(1,arguments);var t=SU(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),OU(n)}(t).getTime();return Math.round(n/kU)+1}function jU(e,t){var n,r,o,i,a,s,c,u;eU(1,arguments);var l=cU(),f=QH(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=nU(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 AU(e,t){var n,r,o,i,a,s,c,u;eU(1,arguments);var l=nU(e),f=l.getUTCFullYear(),p=cU(),d=QH(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=jU(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=jU(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}var TU=6048e5;function PU(e,t){eU(1,arguments);var n=nU(e),r=jU(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;eU(1,arguments);var l=cU(),f=QH(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=AU(e,t),d=new Date(0);return d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0),jU(d,t)}(n,t).getTime();return Math.round(r/TU)+1}function MU(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var DU=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return MU("yy"===t?r%100:r,t.length)},RU=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):MU(n+1,2)},IU=function(e,t){return MU(e.getUTCDate(),t.length)},NU=function(e,t){return MU(e.getUTCHours()%12||12,t.length)},LU=function(e,t){return MU(e.getUTCHours(),t.length)},BU=function(e,t){return MU(e.getUTCMinutes(),t.length)},FU=function(e,t){return MU(e.getUTCSeconds(),t.length)},zU=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return MU(Math.floor(r*Math.pow(10,n-3)),t.length)},VU="midnight",HU="noon",UU="morning",KU="afternoon",$U="evening",WU="night",qU={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return DU(e,t)},Y:function(e,t,n,r){var o=AU(e,r),i=o>0?o:1-o;return"YY"===t?MU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):MU(i,t.length)},R:function(e,t){return MU(SU(e),t.length)},u:function(e,t){return MU(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 MU(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 MU(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 RU(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 MU(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=PU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):MU(o,t.length)},I:function(e,t,n){var r=EU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):MU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):IU(e,t)},D:function(e,t,n){var r=function(e){eU(1,arguments);var t=nU(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/CU)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):MU(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return MU(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return MU(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return MU(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?HU:0===o?VU:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?$U:o>=12?KU:o>=4?UU:WU,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 NU(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):LU(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):MU(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):MU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):BU(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):FU(e,t)},S:function(e,t){return zU(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return ZU(o);case"XXXX":case"XX":return YU(o);default:return YU(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ZU(o);case"xxxx":case"xx":return YU(o);default:return YU(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+GU(o,":");default:return"GMT"+YU(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+GU(o,":");default:return"GMT"+YU(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return MU(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return MU((r._originalDate||e).getTime(),t.length)}};function GU(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+MU(i,2)}function ZU(e,t){return e%60==0?(e>0?"-":"+")+MU(Math.abs(e)/60,2):YU(e,t)}function YU(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+MU(Math.floor(o/60),2)+n+MU(o%60,2)}var XU=qU,JU=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"})}},QU=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"})}},eK={p:QU,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return JU(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",JU(o,t)).replace("{{time}}",QU(i,t))}},tK=eK,nK=["D","DD"],rK=["YY","YYYY"];function oK(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 iK={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 aK(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var sK={date:aK({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:aK({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:aK({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},cK={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function uK(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var lK={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:uK({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:uK({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:uK({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:uK({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:uK({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 fK(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var pK,dK={ordinalNumber:(pK={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(pK.matchPattern);if(!n)return null;var r=n[0],o=e.match(pK.parsePattern);if(!o)return null;var i=pK.valueCallback?pK.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:fK({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:fK({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:fK({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:fK({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:fK({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"})},hK={code:"en-US",formatDistance:function(e,t,n){var r,o=iK[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:sK,formatRelative:function(e,t,n,r){return cK[e]},localize:lK,match:dK,options:{weekStartsOn:0,firstWeekContainsDate:1}},gK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vK=/^'([^]*?)'?$/,mK=/''/g,bK=/[a-zA-Z]/;function wK(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;eU(2,arguments);var x=String(t),_=cU(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:hK,O=QH(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=QH(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=nU(e);if(!gU(k))throw new RangeError("Invalid time value");var E=_U(k,uU(k)),j={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},A=x.match(yK).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,tK[t])(e,C.formatLong):e})).join("").match(gK).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(vK);if(!t)return e;return t[1].replace(mK,"'")}(r);var i,a=XU[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===rK.indexOf(i))||oK(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==nK.indexOf(e)}(r)||oK(r,t,String(e)),a(E,r,C.localize,j);if(o.match(bK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function xK(e){return eU(1,arguments),nU(e).getDate()}function _K(e){eU(1,arguments);var t=nU(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function CK(e){eU(1,arguments);var t=nU(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function OK(e,t){eU(2,arguments);var n=nU(e),r=nU(t);return n.getTime()>r.getTime()}function SK(e,t){eU(2,arguments);var n=nU(e),r=nU(t);return n.getTime()<r.getTime()}function kK(e){return eU(1,arguments),function(e,t){eU(2,arguments);var n=nU(e),r=nU(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function EK(e,t){return eU(2,arguments),rU(e,-QH(t))}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 AK(e,t){if(eU(2,arguments),"object"!==jK(t)||null===t)throw new RangeError("values parameter must be an object");var n=nU(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){eU(2,arguments);var n=nU(e),r=QH(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=_K(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(QH(t.date)),null!=t.hours&&n.setHours(QH(t.hours)),null!=t.minutes&&n.setMinutes(QH(t.minutes)),null!=t.seconds&&n.setSeconds(QH(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(QH(t.milliseconds)),n)}function TK(e,t){eU(2,arguments);var n=nU(e),r=QH(t);return n.setDate(r),n}function PK(e){return PK="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},PK(e)}function MK(e,t){if(eU(2,arguments),!t||"object"!==PK(t))return new Date(NaN);var n=t.years?QH(t.years):0,r=t.months?QH(t.months):0,o=t.weeks?QH(t.weeks):0,i=t.days?QH(t.days):0,a=t.hours?QH(t.hours):0,s=t.minutes?QH(t.minutes):0,c=t.seconds?QH(t.seconds):0,u=function(e,t){return eU(2,arguments),oU(e,-QH(t))}(e,r+12*n),l=EK(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const DK=X.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"}))),RK=X.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),IK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),NK=X.div({display:"flex"}),LK=X.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),BK=X.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),FK=X.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),zK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),VK=X.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),HK=X.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`}}}))),UK=X.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),KK=n=>{var{id:r,label:o,labelPosition:i,checked:s,partial:c,disabled:u,onChange:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g}=n,y=a(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(s||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(c?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,c]),t.useEffect((()=>{w("boolean"==typeof s?s:b)}),[s,b]),e.jsxs(VK,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(UK,{children:o}),e.jsx(HK,Object.assign({ref:x,id:r,type:"checkbox",checked:c?!b:b,disabled:u,onChange:()=>{const e=!!c||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!c)}},y)),e.jsx(on,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
|
|
203
203
|
/**
|
|
204
204
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
205
205
|
*
|
|
@@ -208,5 +208,5 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
208
208
|
* @namespace
|
|
209
209
|
* @public
|
|
210
210
|
*/
|
|
211
|
-
var BK=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").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 o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var O=_.value;if(t.length>e.length)return;if(!(O instanceof o)){var S,k=1;if(m){if(!(S=i(x,C,e,v))||S.index>=e.length)break;var E=S.index,j=S.index+S[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,O=e.slice(C,A),S.index-=C}else if(!(S=i(x,0,O,v)))continue;E=S.index;var P=S[0],M=O.slice(0,E),D=O.slice(E+P.length),R=C+O.length;f&&R>f.reach&&(f.reach=R);var I=_.prev;if(M&&(I=c(t,I,M),C+=M.length),u(t,I,k),_=c(t,I,new o(p,y?r.tokenize(P,y):P,b,P)),D&&c(t,_,D),k>1){var N={cause:p+","+h,reach:R};a(e,t,n,_.prev,C,N),f&&N.reach>f.reach&&(f.reach=N.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),FK=BK;BK.default=BK,FK.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]},FK.languages.markup.tag.inside["attr-value"].inside.entity=FK.languages.markup.entity,FK.languages.markup.doctype.inside["internal-subset"].inside=FK.languages.markup,FK.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(FK.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:FK.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:FK.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},FK.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(FK.languages.markup.tag,"addAttribute",{value:function(e,t){FK.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:FK.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),FK.languages.html=FK.languages.markup,FK.languages.mathml=FK.languages.markup,FK.languages.svg=FK.languages.markup,FK.languages.xml=FK.languages.extend("markup",{}),FK.languages.ssml=FK.languages.xml,FK.languages.atom=FK.languages.xml,FK.languages.rss=FK.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(FK),FK.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:/[{}[\];(),.:]/},FK.languages.c=FK.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|[?:~]|[-+*/%&|^!=<>]=?/}),FK.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),FK.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},FK.languages.c.string],char:FK.languages.c.char,comment:FK.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:FK.languages.c}}}}),FK.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 FK.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"])}(FK),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"))}(FK),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(FK),FK.languages.javascript=FK.languages.extend("clike",{"class-name":[FK.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}|\?\?=?|\?\.?|[~:]/}),FK.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,FK.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:FK.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:FK.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:FK.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:FK.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:FK.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),FK.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:FK.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"}}),FK.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),FK.languages.markup&&(FK.languages.markup.tag.addInlined("script","javascript"),FK.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")),FK.languages.js=FK.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}(FK),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(FK),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(FK),FK.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:FK.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+/},FK.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(u,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),FK.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(FK),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}(FK),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(FK),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(FK),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(FK),FK.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},FK.languages.go=FK.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/}),FK.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete FK.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(FK),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}(FK),FK.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"}},FK.languages.webmanifest=FK.languages.json,FK.languages.less=FK.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:/[+\-*\/]/}),FK.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),FK.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:/[:;(){}]/},FK.languages.objectivec=FK.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 FK.languages.objectivec["class-name"],FK.languages.objc=FK.languages.objectivec,FK.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/},FK.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:/[{}[\];(),.:]/},FK.languages.python["string-interpolation"].inside.interpolation.inside.rest=FK.languages.python,FK.languages.py=FK.languages.python,FK.languages.reason=FK.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/}),FK.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 FK.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}})}(FK),FK.languages.scss=FK.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]+\}/}}}),FK.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}]}),FK.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),FK.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}}),FK.languages.scss.atrule.inside.rest=FK.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:/[{}()\[\];:.]/}}(FK),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}(FK),FK.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 zK={Prism:FK,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 VK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HK(){return HK=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},HK.apply(this,arguments)}var UK=/\r\n|\r|\n/,KK=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)},$K=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},WK=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=HK({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=HK({},n,{backgroundColor:null}),o};function qK(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 GK=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),VK(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?WK(e.theme,e.language):void 0;return t.themeDict=n})),VK(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=HK({},qK(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?HK({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),VK(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),VK(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=HK({},qK(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?HK({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),VK(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=$K(l,f.type),f.alias&&(l=$K(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(UK),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)KK(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return KK(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),ZK="#c5a5c5",YK="#8dc891",XK={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:ZK}},{types:["attr-value"],style:{color:YK}},{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:YK}},{types:["punctuation"],style:{color:YK}},{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:ZK}},{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}}]},JK={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 QK=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},e$=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(t$,Object.assign({onClick:()=>{QK(r),i(!0)},copied:o},{children:o?e.jsx(on,{name:"check-circle",color:a.success}):e.jsx(on,{name:"copy",color:s})}))},t$=X.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}}))),n$=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(r$,Object.assign({},i,{children:[e.jsx(o$,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(i$,{children:r}),e.jsx(e$,{content:r})]}))},r$=X.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}))),o$=X.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),i$=X.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),a$=X.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),s$=X.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),c$=X.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),u$=X.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 l$={};({get exports(){return l$},set exports(e){l$=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function O(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return M(e,t,0)}function P(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,I=2,N="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=N||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function V(){return{value:void 0,done:!0}}function H(e){return!!$(e)}function U(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(N&&e[N]||e[L]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=R,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return W(e)?new te(e):U(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?V():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function 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,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?V():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?V():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new F(V);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,P(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):V()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=P(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?V():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Ce,_e),t(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 je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Pe(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=He[e];return void 0===t&&(t=Te(e),Ve===ze&&(Ve=0,He={}),Ve++,He[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Pe(e){var t;if(Ne&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ne)Ie.set(e,t);else{if(void 0!==Me&&!1===Me(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 Me=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Ne="function"==typeof WeakMap;Ne&&(Ie=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ve=0,He={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ht(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new 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=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new O);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),o.push(c)}return gt(e,t,o)}function dt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:S(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ct)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(C(a),s?void C(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ct(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return V()};var xt=v/4,_t=v/2,Ct=v/4;function Ot(e){var t=Rt();if(null==e)return t;if(St(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?Dt(0,r,y,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function 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 It(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):Rt()},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 A(e,t,n)?this:Ft(this,T(e,n),P(t,n))},Ot.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Pt?V():z(e,n++,t)}))},Ot.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Pt&&!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 jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Pt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=Vt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Pt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Pt)return e;s=null}if(u===l)return Pt;var n=t?--l:u++;s=a(c&&c[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return At||(At=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Vt(e._capacity)?r=Nt(r,e.__ownerID,0,t,n,i):o=Nt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Nt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Nt(u,t,n-y,r,o,i);return l===u?e:((a=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(C(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Vt(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new O,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Vt(i),p=Vt(s);p>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new jt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Vt(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?$t():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Ht.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Kt(ot(),Rt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=P(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return V();var e=o.next();return r||t===R?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return V();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===I?e:z(r,c,u,e):(s=!1,V())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return V()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?V():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(On);return o.constructor=r,r}t(Ht,Ke),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Ht.prototype.set=function(e,t){return Wt(this,e,t)},Ht.prototype.remove=function(e){return Wt(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Ut,Ht.prototype[h]=!0,Ht.prototype[g]=Ht.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Sn(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this: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(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Nn():Tn(e)&&!l(e)?e:Nn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Mn])}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(An,Se),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Ln(fn(this,e))},An.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Pn,Mn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Pn||(Pn=In(ot()))}function Ln(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Mn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Nn,Dn.__make=In,t(Ln,An),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.prototype;function Vn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Vn($t()))}function Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Hn,zn.__make=Vn,t(Un,Oe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(P(t,this.size)!==this.size)return Oe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return V()}))},Un.isStack=Kn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=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[Wn]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return 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(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return S(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(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,or,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Oe,o.prototype),Yn(Se,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:Ot,Stack:Un,Set:An,OrderedSet:Ln,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var f$=l$.OrderedMap,p$={createFromArray:function(e){return f$(e.map((function(e){return[e.getKey(),e]})))}};var d$=l$,h$=d$.Map,g$=d$.OrderedSet,y$=d$.Record,v$=g$(),m$={style:v$,entity:null},b$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return w$;var t=h$({style:v$,entity:null}).merge(e),n=x$.get(t);if(n)return n;var o=new r(t);return x$=x$.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?g$(t):t,entity:Array.isArray(n)?g$(n):n})},r}(y$(m$)),w$=new b$,x$=h$([[h$(m$),w$]]);b$.EMPTY=w$;var _$=b$;var C$=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var O$=_$,S$=C$,k$=l$,E$=k$.List,j$=k$.Map,A$=k$.OrderedSet,T$=k$.Record,P$=k$.Repeat,M$=A$(),D$=T$({key:"",type:"unstyled",text:"",characterList:E$(),depth:0,data:j$()}),R$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=E$(P$(O$.EMPTY,n.length))),e},I$=function(e){var t,n;function r(t){return e.call(this,R$(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():M$},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){S$(this.getCharacterList(),N$,e,t)},o.findEntityRanges=function(e,t){S$(this.getCharacterList(),L$,e,t)},r}(D$);function N$(e,t){return e.getStyle()===t.getStyle()}function L$(e,t){return e.getEntity()===t.getEntity()}var B$=I$;var F$=_$,z$=C$,V$=l$,H$=V$.List,U$=V$.Map,K$=V$.OrderedSet,$$=V$.Record,W$=V$.Repeat,q$=K$(),G$={parent:null,characterList:H$(),data:U$(),depth:0,key:"",text:"",type:"unstyled",children:H$(),prevSibling:null,nextSibling:null},Z$=function(e,t){return e.getStyle()===t.getStyle()},Y$=function(e,t){return e.getEntity()===t.getEntity()},X$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=H$(W$(F$.EMPTY,n.length))),e},J$=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G$;return e.call(this,X$(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():q$},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){z$(this.getCharacterList(),Z$,e,t)},o.findEntityRanges=function(e,t){z$(this.getCharacterList(),Y$,e,t)},r}($$(G$)),Q$=J$,eW=_$,tW=l$.Map;function nW(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(tW([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?eW.applyStyle(l,n):eW.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var rW={add:function(e,t,n){return nW(e,t,n,!0)},remove:function(e,t,n){return nW(e,t,n,!1)}},oW=_$;var iW=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,oW.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},aW=l$;var sW=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(aW.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return iW(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},cW={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},uW="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var lW=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(uW(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},fW=lW;var pW=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?fW(!1,"Entity key not found in this range."):fW(!1)),n},dW=cW,hW=pW,gW=lW;function yW(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=hW(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?gW(!1,"There should only be one entity range within this removal range."):gW(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=dW.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 vW=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=yW(e,t,u,o,s,!0,!0);else if(s&&c){var l=yW(e,t,u,o,s,!1,!0),f=yW(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=yW(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=yW(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},mW={},bW=Math.pow(2,24);var wW=function(){for(var e;void 0===e||mW.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*bW).toString(32);return mW[e]=!0,e},xW=Q$,_W=wW,CW=l$.OrderedMap,OW=function(e){return e.first()instanceof xW?function(e){var t,n={};return CW(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=_W();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return CW(e.toArray().map((function(e){var t=_W();return[t,e.set("key",t)]})))}(e)},SW=_$,kW=C$,EW=lW;function jW(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return kW(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?EW(!1,"Removal range must exist within character list."):EW(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,SW.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var AW=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=jW(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=jW(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},TW=OW,PW=AW,MW=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=PW(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return TW(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var DW=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},RW=p$,IW=Q$,NW=DW,LW=lW,BW=OW,FW=l$.List,zW=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:NW(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},VW=function(e,t,n,r,o,i){var a=n.first()instanceof IW,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=f.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=RW.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],FW(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},HW=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?LW(!1,"`insertFragment` should only be called with a collapsed selection state."):LW(!1));var o=e.getBlockMap(),i=BW(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof IW&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?LW(!1,"`insertFragment` should not be called when a container node is selected."):LW(!1))),1===i.size?zW(e,t,o,i.first(),a,s,r):VW(e,t,o,i,a,s)},UW=DW,KW=lW,$W=l$.Repeat;var WW=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?KW(!1,"`insertText` should only be called with a collapsed range."):KW(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:UW(c.getCharacterList(),$W(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},qW=l$.Map;var GW=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(qW([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},ZW=Q$,YW=function(e,t){if(!(e instanceof ZW))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},XW=Q$,JW=YW,QW=l$;QW.List;var eq=QW.Map,tq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},nq=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},rq=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},oq=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},iq=function(e,t,n,r){return e.withMutations((function(o){if(tq(t.getKey(),o,(function(e){return e.merge({nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})})),tq(n.getKey(),o,(function(e){return e.merge({nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})})),nq(t.getKey(),r).forEach((function(e){return tq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})}))})),tq(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),tq(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:rq(e,o,r)})})),tq(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:oq(e,o,r)})})),tq(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),nq(n.getKey(),r).forEach((function(e){tq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=JW(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?JW(o,t):null}return n}(n,r).forEach((function(e){return tq(e,o,(function(e){return e.merge({nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();tq(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),tq(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){tq(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);tq(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}tq(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},aq=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},sq=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),u=r.get(a),l=c instanceof XW,f=[];if(l){var p=u.getChildKeys(),d=nq(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(nq(JW(u,r),r))}n=c===u?aq(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?eq([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(eq([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=iq(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},cq=Q$,uq=wW,lq=l$,fq=lW,pq=GW,dq=lq.List,hq=lq.Map,gq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},yq=_$,vq=rW,mq=sW,bq=vW,wq=MW,xq=HW,_q=WW,Cq=lW,Oq=GW,Sq=AW,kq=sq,Eq=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?fq(!1,"Selection range must be collapsed."):fq(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return pq(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=uq(),l=o instanceof cq,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:hq()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?fq(!1,"ContentBlockNode must not have children"):fq(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();gq(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:dq(i)})})),gq(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),gq(r,e,(function(e){return e.merge({nextSibling:o})})),gq(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},jq=l$.OrderedSet,Aq={replaceText:function(e,t,n,r,o){var i=Sq(e,t),a=kq(i,t),s=yq.create({style:r||jq(),entity:o||null});return _q(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Cq(!1,"Target range must be collapsed for `insertText`."):Cq(!1)),Aq.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=wq(e,t),o=Aq.removeRange(e,t,"backward");return Aq.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=Sq(e,t),i=kq(o,t);return xq(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=bq(e.getEntityMap(),i,a,t,n);return kq(e,f)}var p=Sq(e,t);return kq(p,t)},splitBlock:function(e,t){var n=Sq(e,t),r=kq(n,t);return Eq(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return vq.add(e,t,n)},removeInlineStyle:function(e,t,n){return vq.remove(e,t,n)},setBlockType:function(e,t,n){return Oq(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return Oq(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return Oq(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=Sq(e,t);return mq(r,t,n)}},Tq=Aq;var Pq=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Mq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dq=C$,Rq=Pq,Iq=l$,Nq=Iq.List,Lq=Iq.Repeat,Bq=Iq.Record,Fq=function(){return!0},zq=Bq({start:null,end:null}),Vq=Bq({start:null,end:null,decoratorKey:null,leaves:null}),Hq={generate:function(e,t,n){var r=t.getLength();if(!r)return Nq.of(new Vq({start:0,end:0,decoratorKey:null,leaves:Nq.of(new zq({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Nq(Lq(null,r)),a=t.getCharacterList();return Dq(i,Kq,Fq,(function(e,t){o.push(new Vq({start:e,end:t,decoratorKey:i.get(e),leaves:Uq(a.slice(e,t).toList(),e)}))})),Nq(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new Vq(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){Mq(e,t,n[t])}))}return e}({},n,{leaves:null!=t?Nq(Array.isArray(t)?t:Rq(t)).map((function(e){return zq(e)})):null}))}};function Uq(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return Dq(r,Kq,Fq,(function(e,r){n.push(new zq({start:e+t,end:r+t}))})),Nq(n)}function Kq(e,t){return e===t}var $q=Hq;var Wq=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,l$.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),qq=Wq;var Gq=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 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 Yq=qq,Xq=lW,Jq=Gq,Qq=(0,l$.Map)(),eG=Jq();function tG(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var nG={getLastCreatedEntityKey:function(){return tG("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),nG.__getLastCreatedEntityKey()},create:function(e,t,n){return tG("DraftEntity.create","contentState.createEntity"),nG.__create(e,t,n)},add:function(e){return tG("DraftEntity.add","contentState.addEntity"),nG.__add(e)},get:function(e){return tG("DraftEntity.get","contentState.getEntity"),nG.__get(e)},__getAll:function(){return Qq},__loadWithEntities:function(e){Qq=e,eG=Jq()},mergeData:function(e,t){return tG("DraftEntity.mergeData","contentState.mergeEntityData"),nG.__mergeData(e,t)},replaceData:function(e,t){return tG("DraftEntity.replaceData","contentState.replaceEntityData"),nG.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return eG},__create:function(e,t,n){return nG.__add(new Yq({type:e,mutability:t,data:n||{}}))},__add:function(e){return eG=Jq(),Qq=Qq.set(eG,e),eG},__get:function(e){var t=Qq.get(e);return t||("production"!==process.env.NODE_ENV?Xq(!1,"Unknown DraftEntity key: %s.",e):Xq(!1)),t},__mergeData:function(e,t){var n=nG.__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){Zq(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return Qq=Qq.set(e,o),o},__replaceData:function(e,t){var n=nG.__get(e).set("data",t);return Qq=Qq.set(e,n),n}},rG=nG;var oG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,l$.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),iG=oG,aG=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},sG=new RegExp("\r","g");var cG=function(e){return e.replace(sG,"")};function uG(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){lG(e,t,n[t])}))}return e}function lG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fG=p$,pG=_$,dG=B$,hG=Q$,gG=rG,yG=iG,vG=wW,mG=Pq,bG=aG,wG=l$,xG=cG,_G=wG.List,CG=wG.Record,OG=wG.Repeat,SG=wG.Map,kG=wG.OrderedMap,EG=CG({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),jG=bG("draft_tree_data_support")?hG:dG,AG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return gG},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return gG.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return gG.__create(e,t,n),this},o.mergeEntityData=function(e,t){return gG.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return gG.__replaceData(e,t),this},o.addEntity=function(e){return gG.__add(e),this},o.getEntity=function(e){return gG.__get(e)},o.getAllEntities=function(){return gG.__getAll()},o.loadWithEntities=function(e){return gG.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=fG.createFromArray(n),i=o.isEmpty()?new yG:yG.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||gG,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=xG(e),new jG({key:vG(),text:e,type:"unstyled",characterList:_G(OG(pG.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(uG({},e,{blockMap:kG(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new yG(e.selectionBefore),selectionAfter:new yG(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new jG(uG({},e,{data:SG(e.data),characterList:null!=t?_G((Array.isArray(t)?t:mG(t)).map((function(e){return pG.fromJS(e)}))):void 0}))},r}(EG),TG=AG,PG=lW,MG="LTR",DG="RTL",RG=null;function IG(e){return e===MG||e===DG}function NG(e){return IG(e)||("production"!==process.env.NODE_ENV?PG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):PG(!1)),e===MG?"ltr":"rtl"}function LG(e){RG=e}var BG={NEUTRAL:"NEUTRAL",LTR:MG,RTL:DG,isStrong:IG,getHTMLDir:NG,getHTMLDirIfDifferent:function(e,t){return IG(e)||("production"!==process.env.NODE_ENV?PG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):PG(!1)),IG(t)||("production"!==process.env.NODE_ENV?PG(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):PG(!1)),e===t?null:NG(e)},setGlobalDir:LG,initGlobalDir:function(){LG(MG)},getGlobalDir:function(){return RG||this.initGlobalDir(),RG||("production"!==process.env.NODE_ENV?PG(!1,"Global direction not set."):PG(!1)),RG}},FG=BG,zG=lW,VG="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",HG="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",UG=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+VG+HG+"]"),KG=new RegExp("["+VG+HG+"]");function $G(e){var t=UG.exec(e);return null==t?null:t[0]}function WG(e){var t=$G(e);return null==t?FG.NEUTRAL:KG.exec(t)?FG.RTL:FG.LTR}function qG(e,t){if(t=t||FG.NEUTRAL,!e.length)return t;var n=WG(e);return n===FG.NEUTRAL?t:n}function GG(e,t){return t||(t=FG.getGlobalDir()),FG.isStrong(t)||("production"!==process.env.NODE_ENV?zG(!1,"Fallback direction must be a strong direction"):zG(!1)),qG(e,t)}var ZG={firstStrongChar:$G,firstStrongCharDir:WG,resolveBlockDir:qG,getDirection:GG,isDirectionLTR:function(e,t){return GG(e,t)===FG.LTR},isDirectionRTL:function(e,t){return GG(e,t)===FG.RTL}};function YG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XG,JG=ZG,QG=BG,eZ=lW,tZ=function(){function e(e){YG(this,"_defaultDir",void 0),YG(this,"_lastDir",void 0),e?QG.isStrong(e)||("production"!==process.env.NODE_ENV?eZ(!1,"Default direction must be a strong direction (LTR or RTL)"):eZ(!1)):e=QG.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=JG.getDirection(e,this._lastDir),this._lastDir},e}(),nZ=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},rZ=tZ,oZ=l$,iZ=nZ,aZ=oZ.OrderedMap;function sZ(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){cZ(e,t,n[t])}))}return e}function cZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uZ=$q,lZ=TG,fZ={getDirectionMap:function(e,t){XG?XG.reset():XG=new rZ;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return iZ(XG).getDirection(e.getText())})),o=aZ(n.keySeq().zip(r));return null!=t&&oZ.is(t,o)?t:o}},pZ=iG,dZ=l$,hZ=dZ.OrderedSet,gZ=dZ.Record,yZ=dZ.Stack,vZ=dZ.OrderedMap,mZ=dZ.List,bZ=gZ({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:yZ(),selection:null,treeMap:null,undoStack:yZ()}),wZ=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(lZ.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:yZ(),redoStack:yZ(),decorator:n||null,selection:pZ.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=sZ({},e,{treeMap:_Z(n,e.decorator),directionMap:fZ.getDirectionMap(n)});return new t(new bZ(r))},t.fromJS=function(e){return new t(new bZ(sZ({},e,{directionMap:null!=e.directionMap?vZ(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?hZ(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?lZ.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?yZ(e.redoStack.map((function(e){return lZ.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new pZ(e.selection):e.selection,treeMap:null!=e.treeMap?vZ(e.treeMap).map((function(e){return mZ(e).map((function(e){return uZ.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?yZ(e.undoStack.map((function(e){return lZ.fromJS(e)}))):e.undoStack,currentContent:lZ.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return uZ.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):_Z(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return uZ.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){cZ(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return CZ(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return CZ(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 xZ(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),xZ(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new pZ({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=fZ.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(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();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:u,directionMap:i,undoStack:c,redoStack:yZ(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=fZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=fZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function xZ(e,t,n){return wZ.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function _Z(e,t){return e.getBlockMap().map((function(n){return uZ.generate(e,n,t)})).toOrderedMap()}function CZ(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):hZ()}var OZ=wZ,SZ=Q$,kZ=YW,EZ=l$,jZ=lW,AZ=EZ.OrderedMap,TZ=EZ.List,PZ=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},MZ=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){PZ(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),PZ(l,e,(function(e){return e.merge({nextSibling:u})})),PZ(u,e,(function(e){return e.merge({prevSibling:l})})),PZ(p,e,(function(e){return e.merge({prevSibling:a})})),PZ(d,e,(function(e){return e.merge({nextSibling:a})})),PZ(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:TZ(o)})})),PZ(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function DZ(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){RZ(e,t,n[t])}))}return e}function RZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IZ=p$,NZ=_$,LZ=B$,BZ=Q$,FZ=Tq,zZ=OZ,VZ=wW,HZ=l$,UZ=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?jZ(!1,"Replacing blocks is not supported."):jZ(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?jZ(!1,"Block cannot be moved next to itself."):jZ(!1));var a=e.getBlockMap(),s=t instanceof SZ,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=kZ(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),p=c.map((function(e){return[e.getKey(),e]})),d=AZ();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?jZ(!1,"Block cannot be moved next to itself."):jZ(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?jZ(!1,"Block cannot be moved next to itself."):jZ(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:MZ(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},KZ=aG("draft_tree_data_support"),$Z=KZ?BZ:LZ,WZ=HZ.List,qZ=HZ.Repeat,GZ={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=FZ.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=FZ.splitBlock(i,a),c=s.getSelectionAfter(),u=FZ.setBlockType(s,c,"atomic"),l=NZ.create({entity:t}),f={key:VZ(),type:"atomic",text:n,characterList:WZ(qZ(l,n.length))},p={key:VZ(),type:"unstyled"};KZ&&(f=DZ({},f,{nextSibling:p.key}),p=DZ({},p,{prevSibling:f.key}));var d=[new $Z(f),new $Z(p)],h=IZ.createFromArray(d),g=FZ.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return zZ.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=UZ(i,t,s,r)}else{var c=FZ.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=UZ(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=UZ(c,t,l,"after");else{var f=FZ.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=UZ(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return zZ.push(e,h,"move-block")}};var ZZ=l$.List,YZ=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),ZZ(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 XZ=YZ;function JZ(e){return e.replace(/\//g,"-")}var QZ=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(JZ).join(" "):Array.prototype.map.call(arguments,JZ).join(" ")},eY=t,tY=QZ,nY=(0,l$.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:eY.createElement("ul",{className:tY("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:eY.createElement("ol",{className:tY("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:eY.createElement("pre",{className:tY("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),rY={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},oY={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",O="Browser",S="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",P="Motorola",M="Opera",D="Samsung",R="Sharp",I="Sony",N="Xiaomi",L="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},U=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},K=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,M]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/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 "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],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,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],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,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+O]],[/(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,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,V]],[/((?: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/,"",V]],[/(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,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/(macintosh);/i],[c,[f,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,j],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,j],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,N],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,N],[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,P],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,A],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,A],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,I],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,I],[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(?!-bra))[-_ ]?([-\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,R],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,L],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,L],[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,I],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,A],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,S+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,R],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,I],[l,v]],[/(mitv-\w{5}) bui/i],[c,[f,N],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,H],[c,H],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,L],[l,m]],[/(quest( 2)?)/i],[c,[f,B],[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(?:[;\/]| [ \w\/\.]*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,K,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,K,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},q=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof q))return new q(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,U.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[d]=r,U.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,U.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>350?H(e,350):e,this},this.setUA(o),this};q.VERSION="0.7.33",q.BROWSER=F([u,p,"major"]),q.CPU=F([d]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,p]),e.exports&&(t=e.exports=q),t.UAParser=q;var G=typeof n!==i&&(n.jQuery||n.Zepto);if(G&&!G.ua){var Z=new q;G.ua=Z.getResult(),G.ua.get=function(){return Z.getUA()},G.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:s)}({get exports(){return oY},set exports(e){oY=e}},oY);var iY="Unknown",aY={"Mac OS":"Mac OS X"};var sY,cY=(new oY).getResult(),uY=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(cY.browser.version),lY={browserArchitecture:cY.cpu.architecture||iY,browserFullVersion:cY.browser.version||iY,browserMinorVersion:uY.minor||iY,browserName:cY.browser.name||iY,browserVersion:cY.browser.major||iY,deviceName:cY.device.model||iY,engineName:cY.engine.name||iY,engineVersion:cY.engine.version||iY,platformArchitecture:cY.cpu.architecture||iY,platformName:(sY=cY.os.name,aY[sY]||sY||iY),platformVersion:cY.os.version||iY,platformFullVersion:cY.os.version||iY},fY=lW,pY=/\./,dY=/\|\|/,hY=/\s+\-\s+/,gY=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,yY=/^(\d*)(.*)/;function vY(e,t){var n=e.split(dY);return n.length>1?n.some((function(e){return jY.contains(e,t)})):function(e,t){var n=e.split(hY);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?fY(!1,'the "-" operator expects exactly 2 operands'):fY(!1)),1===n.length)return mY(n[0],t);var r=n[0],o=n[1];return CY(r)&&CY(o)||("production"!==process.env.NODE_ENV?fY(!1,'operands to the "-" operator must be simple (no modifiers)'):fY(!1)),mY(">="+r,t)&&mY("<="+o,t)}(e=n[0].trim(),t)}function mY(e,t){if(""===(e=e.trim()))return!0;var n=t.split(pY),r=xY(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return bY(n,i);case"<=":return function(e,t){var n=EY(e,t);return-1===n||0===n}(n,i);case">=":return wY(n,i);case">":return function(e,t){return 1===EY(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);_Y(i)&&(r[o]=i+1+"");return wY(e,n)&&bY(e,r)}(n,i);default:return function(e,t){return 0===EY(e,t)}(n,i)}}function bY(e,t){return-1===EY(e,t)}function wY(e,t){var n=EY(e,t);return 1===n||0===n}function xY(e){var t=e.split(pY),n=t[0].match(gY);return n||("production"!==process.env.NODE_ENV?fY(!1,"expected regex to match but it did not"):fY(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function _Y(e){return!isNaN(e)&&isFinite(e)}function CY(e){return!xY(e).modifier}function OY(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function SY(e,t){var n=e.match(yY)[1],r=t.match(yY)[1],o=parseInt(n,10),i=parseInt(r,10);return _Y(o)&&_Y(i)&&o!==i?kY(o,i):kY(e,t)}function kY(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?fY(!1,'"a" and "b" must be of the same type'):fY(!1)),e>t?1:e<t?-1:0}function EY(e,t){for(var n=function(e,t){OY(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return OY(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=SY(r[i],o[i]);if(a)return a}return 0}var jY={contains:function(e,t){return vY(e.trim(),t.trim())}},AY=jY,TY=Object.prototype.hasOwnProperty;var PY=function(e,t,n){if(!e)return null;var r={};for(var o in e)TY.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var MY=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},DY=lY,RY=AY;function IY(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,RY.contains(o,t))}function NY(e){return"Windows"===DY.platformName?e.replace(/^\s*NT/,""):e}var LY=PY({isBrowser:function(e){return IY(DY.browserName,DY.browserFullVersion,e)},isBrowserArchitecture:function(e){return IY(DY.browserArchitecture,null,e)},isDevice:function(e){return IY(DY.deviceName,null,e)},isEngine:function(e){return IY(DY.engineName,DY.engineVersion,e)},isPlatform:function(e){return IY(DY.platformName,DY.platformFullVersion,e,NY)},isPlatformArchitecture:function(e){return IY(DY.platformArchitecture,null,e)}},MY);var BY=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var FY=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},zY=FY;var VY=function e(t){if(zY(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},HY=BY,UY=VY;var KY=function(e){for(var t=e;t&&t!==HY(e).documentElement;){var n=UY(t);if(null!=n)return n;t=t.parentNode}return null};var $Y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function WY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qY=LY,GY=KY,ZY=$Y,YY=lW,XY=nZ,JY=l$.Map,QY={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},eX=qY.isBrowser("IE <= 11"),tX=function(){function e(e){var t=this;WY(this,"observer",void 0),WY(this,"container",void 0),WY(this,"mutations",void 0),WY(this,"onCharData",void 0),this.container=e,this.mutations=JY();var n=ZY(e);n.MutationObserver&&!eX?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?YY(!1,"Expected target to be an instance of Node"):YY(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,QY):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=JY(),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 eX?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=XY(GY(e.target));this.mutations=this.mutations.set(n,t)}},e}(),nX="-",rX={encode:function(e,t,n){return e+nX+t+nX+n},decode:function(e){var t=e.split(nX).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(nX),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},oX={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},iX={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var aX=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},sX=lW,cX=aX;var uX=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?sX(!1,"Missing editorNode"):sX(!1)),cX(t.firstChild)||("production"!==process.env.NODE_ENV?sX(!1,"editorNode.firstChild is not an HTMLElement"):sX(!1)),t.firstChild},lX=rX,fX=nZ;var pX=function(e,t,n,r,o){var i=fX(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=lX.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=lX.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var m=!1;if(s===f){var b=u.get("end"),w=d.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:m})},dX=KY,hX=VY,gX=pX,yX=lW,vX=FY,mX=nZ;function bX(e,t,n){var r=t,o=dX(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?yX(!1,"Unknown node in selection range."):yX(!1)),e===r)&&(r=r.firstChild,vX(r)||("production"!==process.env.NODE_ENV?yX(!1,"Invalid DraftEditorContents node."):yX(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?yX(!1,"Invalid DraftEditorContents structure."):yX(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(vX(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||hX(e.firstChild));)e=e.firstChild;return e}(r);i=mX(hX(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(hX(s)){var l=function(e){for(;e.lastChild&&(vX(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||hX(e.lastChild));)e=e.lastChild;return e}(s);c=mX(hX(l)),u=wX(l)}else c=mX(o),u=wX(s);return{key:c,offset:u}}function wX(e){var t=e.textContent;return"\n"===t?0:t.length}var xX=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:gX(e,mX(dX(n)),r,mX(dX(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:mX(dX(n)),offset:r},u=bX(t,o,i)):s?(u={key:mX(dX(o)),offset:i},c=bX(t,n,r)):(c=bX(t,n,r),u=bX(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:gX(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},_X=xX;var CX=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:_X(e,t,r,o,i,a)},OX=iX,SX=OZ,kX=uX,EX=CX;var jX=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();OX.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=EX(n,kX(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?SX.forceSelection(n,o):SX.acceptSelection(n,o),e.update(n))}};var AX={notEmptyKey:function(e){return null!=e&&""!=e}},TX=AX.notEmptyKey;function PX(e,t){return TX(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var MX=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:PX(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),PX(e.getEntityMap(),n)},DX=tX,RX=Tq,IX=rX,NX=OZ,LX=oX,BX=jX,FX=uX,zX=CX,VX=MX,HX=nZ,UX=LY.isBrowser("IE"),KX=!1,$X=!1,WX=null;var qX,GX,ZX={onCompositionStart:function(e){$X=!0,function(e){WX||(WX=new DX(FX(e))).start()}(e)},onCompositionEnd:function(e){KX=!1,$X=!1,setTimeout((function(){KX||ZX.resolveComposition(e)}),20)},onSelect:BX,onKeyDown:function(e,t){if(!$X)return ZX.resolveComposition(e),void e._onKeyDown(t);t.which!==LX.RIGHT&&t.which!==LX.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===LX.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!$X){var t=HX(WX).stopAndFlushMutations();WX=null,KX=!0;var n=NX.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=IX.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),p=VX(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=RX.replaceText(r,f,e,d,p),n=NX.set(n,{currentContent:r})}));var o=zX(n,FX(e)).selectionState;e.restoreEditorDOM();var i=UX?NX.forceSelection(n,o):NX.acceptSelection(n,o);e.update(NX.push(i,r,"insert-characters"))}else e.update(n)}}},YX=ZX;function XX(){if(GX)return qX;GX=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=rX,o=t,i=ZG,a=BG,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=t.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(y,n({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(o.Component);return qX=s}function JX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eJ=t,tJ=lW,nJ=FY,rJ=LY.isBrowser("IE <= 11");var oJ=function(e){var t,n;function r(t){var n;return QX(JX(n=e.call(this,t)||this),"_forceFlag",void 0),QX(JX(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;nJ(t)||("production"!==process.env.NODE_ENV?tJ(!1,"node is not an Element"):tJ(!1));var r=t;return n?!function(e){return rJ?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},rJ?eJ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):eJ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return rJ?eJ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):eJ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):eJ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(eJ.Component),iJ=oJ,aJ=FY;var sJ=function(e){return!(!e||!e.ownerDocument)&&(aJ(e)&&"BR"===e.nodeName)};var cJ=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))},uJ=cJ;var lJ=function(e){return uJ(e)&&3==e.nodeType},fJ=lJ;var pJ=function e(t,n){return!(!t||!n)&&(t===n||!fJ(t)&&(fJ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var dJ=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}},hJ=iX,gJ=pJ,yJ=dJ,vJ=BY,mJ=lW,bJ=FY,wJ=LY.isBrowser("IE");function xJ(e,t){if(!e)return"[empty]";var n=_J(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(bJ(n)||("production"!==process.env.NODE_ENV?mJ(!1,"Node must be an Element if it is not a text node."):mJ(!1)),n.outerHTML)}function _J(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return vJ(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(_J(i[a],t));return o}function CJ(e,t){for(var n=e,r=n;n;){if(bJ(n)&&r.hasAttribute("contenteditable"))return xJ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function OJ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function SJ(e,t,n,r){var o=yJ();if(e.extend&&null!=t&&gJ(o,t)){n>OJ(t)&&hJ.logSelectionStateFailure({anonymizedDom:CJ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw hJ.logSelectionStateFailure({anonymizedDom:CJ(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function kJ(e,t,n,r){var o=vJ(t).createRange();if(n>OJ(t)&&hJ.logSelectionStateFailure({anonymizedDom:CJ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),wJ)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var EJ=function(e,t,n,r,o){var i=vJ(t);if(gJ(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),kJ(a,t,c-r,e),void SJ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),kJ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),kJ(a,t,c-r,e),SJ(a,y,v,e)}}else h&&(a.removeAllRanges(),kJ(a,t,c-r,e)),g&&SJ(a,t,l-r,e)}},jJ=_g;var AJ,TJ,PJ=iJ,MJ=t,DJ=lW,RJ=sJ,IJ=EJ,NJ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?DJ(!1,"Missing node"):DJ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?DJ(!1,"Missing child"):DJ(!1)),u.nodeType===Node.TEXT_NODE?c=u:RJ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?DJ(!1,"Missing targetNode"):DJ(!1)),IJ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?DJ(!1,"Missing leafNode"):DJ(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),jJ(e,r,n)}),{});if(i){var u=i(s,t);c=jJ(c,u)}return MJ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},MJ.createElement(PJ,null,n))},r}(MJ.Component),LJ=NJ;function BJ(){if(TJ)return AJ;TJ=1;var e=XX(),n=LJ,r=rX,o=t,i=QZ;l$.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(y,i,t),l=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:l,selection:d?h:null,forceSelection:p,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return AJ=a}function FJ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var zJ={getTop:function(e){var t=e.ownerDocument;return FJ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;FJ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return FJ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;FJ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},VJ=/-(.)/g;var HJ=function(e){return e.replace(VJ,(function(e,t){return t.toUpperCase()}))},UJ=/([A-Z])/g;var KJ=function(e){return e.replace(UJ,"-$1").toLowerCase()},$J=HJ,WJ=KJ;function qJ(e){return null==e?e:String(e)}var GJ=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return qJ(n.getPropertyValue(WJ(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return qJ(n.getPropertyValue(WJ(t)));if("display"===t)return"none"}return e.currentStyle?qJ("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[$J(t)]):qJ(e.style&&e.style[$J(t)])};function ZJ(e,t){var n=YJ.get(e,t);return"auto"===n||"scroll"===n}var YJ={get:GJ,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(ZJ(e,"overflow")||ZJ(e,"overflowY")||ZJ(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},XJ=YJ,JJ=pJ;var QJ=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!JJ(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 eQ=function(e){var t=QJ(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},tQ="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var nQ=function(e){return(e=e||document).scrollingElement?e.scrollingElement:tQ||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},rQ=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 oQ=function(e){var t=nQ(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=rQ(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function iQ(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function aQ(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function sQ(){return{width:window.innerWidth||iQ(),height:window.innerHeight||aQ()}}sQ.withoutScrollbars=function(){return{width:iQ(),height:aQ()}};var cQ,uQ,lQ,fQ,pQ=sQ;function dQ(){if(uQ)return cQ;uQ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=BJ(),a=rX,s=t,c=zJ,u=XJ,l=eQ,f=oQ,p=pQ,d=lW,h=aX;l$.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},y=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}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",s.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=u.getScrollParent(n),i=f(o);if(o===window){var a=l(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?d(!1,"blockNode is not an HTMLElement"):d(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,u=t.blockRendererFn,l=t.blockStyleFn,f=t.contentState,p=t.decorator,d=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,_=t.direction,C=t.forceSelection,O=t.selection,S=t.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),p=v(i,u),g=p.CustomComponent||w,b=y(i,c),x=b.Element,_=b.wrapperTemplate,C=m(i,d,o,l,p,null),O=r({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,C,s.createElement(g,O))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(s.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},p))}(_,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=v(o,u),T=A.CustomComponent,P=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:p,direction:_,forceSelection:C,hasSelection:g(O,E),selection:O,tree:S});if(o.getParentKey())return P;var M=y(o,c).Element,D=m(o,d,j,l,A,this.wrapperRef);return s.createElement(M,D,P)},w}(s.Component);return cQ=b}var hQ=_g;function gQ(){return gQ=hQ||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},gQ.apply(this,arguments)}var yQ,vQ,mQ,bQ,wQ=LJ,xQ=rX,_Q=t,CQ=zJ,OQ=XJ,SQ=ZG,kQ=BG,EQ=QZ,jQ=eQ,AQ=oQ,TQ=pQ,PQ=lW,MQ=aX,DQ=nZ,RQ=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},IQ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||RQ(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=OQ.getScrollParent(n),i=AQ(o);if(o===window){var a=jQ(n);(r=a.y+a.height-TQ().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{MQ(n)||("production"!==process.env.NODE_ENV?PQ(!1,"blockNode is not an HTMLElement"):PQ(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&CQ.setTop(o,CQ.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=RQ(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=xQ.encode(n,s,c),f=a.get("start"),p=a.get("end");return _Q.createElement(wQ,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=DQ(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=xQ.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=kQ.getHTMLDirIfDifferent(SQ.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 _Q.createElement(d,gQ({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=EQ({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return _Q.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(_Q.Component),NQ=IQ;var LQ=aG("draft_tree_data_support")?function(){if(fQ)return lQ;fQ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=dQ(),o=rX,i=t,a=nZ,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var u=c.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},_)),wrapperTemplate:C,key:x,offsetKey:o.encode(x,0,0)});var 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 j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);S.push(A)}else S.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},S)},c}(i.Component);return lQ=s}():function(){if(bQ)return mQ;bQ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=NQ,a=rX,s=t,c=QZ,u=(vQ||(vQ=1,yQ=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),yQ),l=nZ,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var p=c.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),O=[],S=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),P=o(j),M=void 0,D=void 0,R=void 0;P&&(M=P.component,D=P.props,R=P.editable);var I=v||_.get(A),N=a.encode(A,0,0),L={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:I,forceSelection:w,offsetKey:N,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,V=j.getDepth(),H="";if(c&&(H=c(j)),"li"===z)H=u(H,f(T,V,k!==F||null===S||V>S,I));var U=M||i,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":N,key:A};void 0!==R&&(K=r({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var $=s.createElement(z,K,s.createElement(U,n({},L,{key:A})));O.push({block:$,wrapperTemplate:F,key:A,offsetKey:N}),S=F?j.getDepth():null,k=F}for(var W=[],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);W.push(Y)}else W.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return mQ=p}(),BQ={isImage:function(e){return"image"===FQ(e)[0]},isJpeg:function(e){var t=FQ(e);return BQ.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function FQ(e){return e.split("/")}var zQ=BQ,VQ=lW;var HQ=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?VQ(!1,"toArray: Array-like object expected"):VQ(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?VQ(!1,"toArray: Object needs a length property"):VQ(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?VQ(!1,"toArray: Object should have keys for indices"):VQ(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?VQ(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):VQ(!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 UQ(e){return function(){return e}}var KQ=function(){};KQ.thatReturns=UQ,KQ.thatReturnsFalse=UQ(!1),KQ.thatReturnsTrue=UQ(!0),KQ.thatReturnsNull=UQ(null),KQ.thatReturnsThis=function(){return this},KQ.thatReturnsArgument=function(e){return e};var $Q=KQ,WQ=zQ,qQ=HQ,GQ=$Q,ZQ=new RegExp("\r\n","g"),YQ={"text/rtf":1,"text/html":1};function XQ(e){if("file"==e.kind)return e.getAsFile()}var JQ=function(){function e(e){this.data=e,this.types=e.types?qQ(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return YQ[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(ZQ,"\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(!WQ.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(XQ).filter(GQ.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),QQ=JQ,e1=lW,t1=/\.textClipping$/,n1={"text/plain":!0,"text/html":!0,"text/rtf":!0},r1=5e3;var o1=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!s.FileReader||e.type&&!(e.type in n1))return void t("");if(""===e.type){var n="";return t1.test(e.name)&&(n=e.name.replace(t1,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?e1(!1,'We should be calling "FileReader.readAsText" which returns a string'):e1(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,r1)),n==e.length&&t(r.join("\r"))}))}))};var i1=function(e){return"handled"===e||!0===e},a1=QQ,s1=Tq,c1=OZ,u1=KY,l1=BY,f1=o1,p1=pX,d1=$Y,h1=i1,g1=nZ;var y1={onDragEnd:function(e){e.exitCurrentMode(),v1(e)},onDrop:function(e,t){var n=new a1(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=l1(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=g1(n),r=g1(r);var a=g1(u1(n));return p1(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&h1(e.props.handleDroppedFiles(o,i)))return;f1(i,(function(t){t&&e.update(m1(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&h1(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=s1.moveText(e.getCurrentContent(),e.getSelection(),t);return c1.push(e,n,"insert-fragment")}(r,o)):e.update(m1(r,o,n.getText()))),v1(e)}}}};function v1(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:d1(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m1(e,t,n){var r=s1.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return c1.push(e,r,"insert-fragment")}var b1=y1;var w1=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{p(e),u=!1}}}}}("undefined"==typeof self?s:self);var x1=s.setImmediate,_1=Tq,C1=OZ,O1=MX,S1=i1,k1=w1,E1=nZ,j1=x1,A1="'",T1="/",P1=LY.isBrowser("Firefox");function M1(e,t,n,r,o){var i=_1.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return C1.push(e,i,"insert-characters",o)}var D1=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&&S1(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(M1(n,r,n.getCurrentInlineStyle(),O1(n.getCurrentContent(),n.getSelection()),!0));var s,c=M1(n,r,n.getCurrentInlineStyle(),O1(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=k1(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),u=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=P1&&(s==A1||s==T1)),u||(u=E1(c.getDirectionMap()).get(a)!==E1(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=C1.set(c,{forceSelection:!0}),void e.update(c);c=C1.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,j1((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},R1=OZ,I1=pJ,N1=dJ;var L1=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&N1(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&I1(o,r.anchorNode)&&I1(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(R1.acceptSelection(i,s))}},B1=OZ;var F1=function(e,t){e.setMode("composite"),e.update(B1.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},z1=MW;var V1=function(e){var t=e.getSelection();return t.isCollapsed()?null:z1(e.getCurrentContent(),t)},H1=V1;var U1=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(H1(e._latestEditorState))};var K1=Tq,$1=OZ,W1=XJ,q1=V1,G1=oQ,Z1=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 Y1=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Z1(i)){var a=i;n=G1(W1.getScrollParent(a))}var s=q1(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=K1.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return $1.push(e,t,"remove-range")}(r))}),0)}};var X1=function(e,t){e.setMode("drag"),t.preventDefault()};var J1=function(e){e._internalDrag=!0,e.setMode("drag")},Q1=OZ,e0=LY;var t0=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),e0.isBrowser("Chrome < 60.0.3081.0")?e.update(Q1.forceSelection(n,o)):e.update(Q1.acceptSelection(n,o))}},n0=lW,r0=55296,o0=56319,i0=56320,a0=57343,s0=/[\uD800-\uDFFF]/;function c0(e){return r0<=e&&e<=a0}function u0(e){return s0.test(e)}function l0(e,t){return 1+c0(e.charCodeAt(t))}function f0(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!u0(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=l0(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=l0(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=l0(e,i);return e.substring(o,i)}var p0={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=l0(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:l0,hasSurrogateUnit:u0,isCodeUnitInSurrogateRange:c0,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?n0(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):n0(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return r0<=n&&n<=o0&&i0<=r&&r<=a0},strlen:function(e){if(!u0(e))return e.length;for(var t=0,n=0;n<e.length;n+=l0(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 f0(e,t=t<n?t:n,r)},substr:f0},d0=p0,h0=$Q;function g0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var y0="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];g0.apply(void 0,[t].concat(r))}}:h0,v0=y0,m0=v0;var b0=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&m0(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},w0=Tq,x0=aG("draft_tree_data_support");var _0=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(x0&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(x0)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return w0.removeRange(o,i,n)},C0=OZ,O0=d0,S0=b0,k0=_0;var E0=function(e){var t=k0(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return S0(e,i?O0.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return C0.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},j0=Tq,A0=rX,T0=OZ,P0=AX.notEmptyKey,M0=KY,D0=E0,R0=nZ,I0=LY.isEngine("Gecko"),N0="\n\n";var L0=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,u=e._latestEditorState,l=R0(M0(r)),f=A0.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(N0)&&(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),j=P0(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",P=j0.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(I0)x=n.anchorOffset,_=n.focusOffset,O=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=O;else{var M=c.length-w.length;C=S.getStartOffset(),O=S.getEndOffset(),x=o?O+M:C,_=O+M}var D=P.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(T0.push(u,D,T))}else{var R=t.nativeEvent.inputType;if(R){var I=function(e,t){return"deleteContentBackward"===e?D0(t):t}(R,u);if(I!==u)return e.restoreEditorDOM(),void e.update(I)}}}},B0=oX;var F0=function(e){return e.which===B0.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},z0=F0,V0=LY.isPlatform("Mac OS X"),H0={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return V0&&e.altKey},usesMacOSHeuristics:function(){return V0},hasCommandModifier:function(e){return V0?!!e.metaKey&&!e.altKey:H0.isCtrlKeyCommand(e)},isSoftNewlineEvent:z0},U0=H0,K0=Tq,$0=OZ,W0=MW,q0=nZ,G0=null,Z0={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=q0(r),G0=W0(t,r);var s=K0.removeRange(t,r,"forward");return s===t?e:$0.push(e,s,"remove-range")},paste:function(e){if(!G0)return e;var t=K0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),G0);return $0.push(e,t,"insert-fragment")}},Y0=lW;var X0=LY.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?Y0(!1,"Found an unexpected detached subtree when getting range client rects."):Y0(!1)}:function(e){return Array.from(e.getClientRects())},J0=X0,Q0=d0,e2=BY,t2=J0,n2=lW;function r2(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function o2(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 i2=function(e){e.collapsed||("production"!==process.env.NODE_ENV?n2(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):n2(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=e2(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?n2(!1,"Missing document.body"):n2(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);r2(t2(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?n2(!1,"Found unexpected detached subtree when traversing."):n2(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&Q0.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!r2(t2(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=o2(i=i.childNodes[c])}return e.setStart(r,o),e},a2=OZ,s2=i2,c2=xX,u2=b0,l2=_0;var f2=function(e,t){var n=l2(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return u2(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=s2(r),c2(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:a2.push(e,n,"remove-range")},p2="['‘’]",d2="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),h2=new RegExp("^(?:"+d2+")*(?:"+p2+"|(?!"+d2+").)*(?:(?!"+d2+").)"),g2=new RegExp("(?:(?!"+d2+").)(?:"+p2+"|(?!"+d2+").)*(?:"+d2+")*$");function y2(e,t){var n=t?g2.exec(e):h2.exec(e);return n?n[0]:e}var v2={getBackward:function(e){return y2(e,!0)},getForward:function(e){return y2(e,!1)}},m2=v2,b2=OZ,w2=b0,x2=_0;var _2=v0;var C2=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&_2(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},O2=v2,S2=OZ,k2=C2,E2=_0;var j2=Tq,A2=OZ;var T2=OZ;var P2=OZ;var M2=OZ,D2=d0,R2=C2,I2=_0;var N2=Tq,L2=OZ,B2=MW;var F2=OZ;var z2=function(e,t,n){var r=F2.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(F2.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(F2.set(r,{nativelyRenderedContent:o}))}},V2=Tq,H2=OZ,U2=oX,K2=Z0,$2=LY,W2=i1,q2=f2,G2=function(e){var t=x2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return w2(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=m2.getBackward(o);return w2(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:b2.push(e,t,"remove-range")},Z2=function(e){var t=E2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=O2.getForward(o);return k2(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:S2.push(e,t,"remove-range")},Y2=function(e){var t=j2.splitBlock(e.getCurrentContent(),e.getSelection());return A2.push(e,t,"split-block")},X2=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return T2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},J2=function(e){var t=e.getSelection(),n=t.getStartKey();return P2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Q2=E0,e5=function(e){var t=I2(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return R2(e,i?D2.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return M2.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},t5=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=B2(a,r),u=N2.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=N2.replaceWithFragment(u,p,c),h=L2.push(e,d,"insert-fragment");return L2.acceptSelection(h,o)},n5=z2,r5=U0.isOptionKeyCommand,o5=$2.isBrowser("Chrome");var i5=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case U2.RETURN:if(t.preventDefault(),e.props.handleReturn&&W2(e.props.handleReturn(t,r)))return;break;case U2.ESC:if(t.preventDefault(),o("onEscape"))return;break;case U2.TAB:if(o("onTab"))return;break;case U2.UP:if(o("onUpArrow"))return;break;case U2.RIGHT:if(o("onRightArrow"))return;break;case U2.DOWN:if(o("onDownArrow"))return;break;case U2.LEFT:if(o("onLeftArrow"))return;break;case U2.SPACE:o5&&r5(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!W2(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return H2.redo(t);case"delete":return e5(t);case"delete-word":return Z2(t);case"backspace":return Q2(t);case"backspace-word":return G2(t);case"backspace-to-start-of-line":return q2(t,n);case"split-block":return Y2(t);case"transpose-characters":return t5(t);case"move-selection-to-start-of-block":return J2(t);case"move-selection-to-end-of-block":return X2(t);case"secondary-cut":return K2.cut(t);case"secondary-paste":return K2.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else n5(t,r,e.update);else if(n===U2.SPACE&&o5&&r5(t)){var s=V2.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(H2.push(r,s,"insert-characters"))}};var a5=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}(),s5=a5,c5=lW,u5=LY.isBrowser("IE <= 9");var l5=function(e){var t,n=null;return!u5&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?c5(!1,"Missing doc.documentElement"):c5(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},f5=FY;var p5=function(e){return!(!e||!e.ownerDocument)&&(f5(e)&&"A"===e.nodeName)},d5=FY;var h5,g5=function(e){return!(!e||!e.ownerDocument)&&(d5(e)&&"IMG"===e.nodeName)};function y5(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){v5(e,t,n[t])}))}return e}function v5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m5=_$,b5=B$,w5=Q$,x5=nY,_5=rG,C5=s5,O5=QZ,S5=wW,k5=l5,E5=aG,j5=l$,A5=j5.List,T5=j5.Map,P5=j5.OrderedSet,M5=p5,D5=sJ,R5=aX,I5=g5,N5=E5("draft_tree_data_support"),L5=" ",B5=new RegExp("\r","g"),F5=new RegExp("\n","g"),z5=new RegExp("^\n","g"),V5=new RegExp(" ","g"),H5=new RegExp(" ?","g"),U5=new RegExp("​?","g"),K5=["bold","bolder","500","600","700","800","900"],$5=["light","lighter","normal","100","200","300","400"],W5=["className","href","rel","target","title"],q5=["alt","className","height","src","width"],G5=(v5(h5={},O5("public/DraftStyleDefault/depth0"),0),v5(h5,O5("public/DraftStyleDefault/depth1"),1),v5(h5,O5("public/DraftStyleDefault/depth2"),2),v5(h5,O5("public/DraftStyleDefault/depth3"),3),v5(h5,O5("public/DraftStyleDefault/depth4"),4),h5),Z5=T5({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Y5=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)}))})),T5(t)},X5=function(e){if(R5(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},J5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(G5).some((function(n){e.classList.contains(n)&&(t=G5[n])})),t},Q5=function(e){if(!M5(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 C5(t.href);return!0}catch(e){return!1}},e3=function(e){if(!I5(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},t3=function(e,t){if(!R5(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){K5.indexOf(r)>=0?e.add("BOLD"):$5.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},n3=function(e){return"ul"===e||"ol"===e},r3=function(){function e(e,t){v5(this,"characterList",A5()),v5(this,"currentBlockType","unstyled"),v5(this,"currentDepth",0),v5(this,"currentEntity",null),v5(this,"currentText",""),v5(this,"wrapper",null),v5(this,"blockConfigs",[]),v5(this,"contentBlocks",[]),v5(this,"entityMap",_5),v5(this,"blockTypeMap",void 0),v5(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=A5(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=_5,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],P5())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(N5?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=y5({key:e.key||S5(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:A5(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=A5(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||n3(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;n3(i)&&(this.wrapper=i,n3(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(e3(o))this._addImgNode(o,t);else if(Q5(o))this._addAnchorNode(o,n,t);else{var u=t;Z5.has(i)&&(u=u.add(Z5.get(i))),u=t3(o,u);var l=X5(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!N5&&R5(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=J5(d,this.currentDepth)}var h=S5(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=m5.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=A5()):(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(z5,"")).replace(F5,L5)),this._appendText(n,t)},t._addBreakNode=function(e,t){D5(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(I5(e)){var n=e,r={};q5.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),E5("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(M5(e)){var r=e,o={};W5.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new C5(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=A5(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new w5(y5({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return A5(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new b5(y5({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=A5(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),o3=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x5,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:k5)(e=e.trim().replace(B5,"").replace(V5,L5).replace(H5,"").replace(U5,""));if(!n)return null;var r=Y5(t);return new r3(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function i3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a3=B$,s3=Q$,c3=o3,u3=wW,l3=l5,f3=aG,p3=l$,d3=cG,h3=p3.List,g3=p3.Repeat,y3=f3("draft_tree_data_support"),v3=y3?s3:a3,m3={processHTML:function(e,t){return c3(e,l3,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=d3(r);var i=u3(),a={key:i,type:n,text:r,characterList:h3(g3(t,r.length))};if(y3&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i3(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new v3(a)),e}),[])}};var b3=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},w3=Tq,x3=OZ,_3=b3,C3=nZ,O3={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 O3.toggleInlineStyle(e,"BOLD");case"italic":return O3.toggleInlineStyle(e,"ITALIC");case"underline":return O3.toggleInlineStyle(e,"UNDERLINE");case"code":return O3.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return O3.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return O3.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=w3.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=x3.push(e,t,"insert-characters");return x3.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return x3.push(e,a,"remove-range")}var s=O3.tryToRemoveBlockStyle(e);return s?x3.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=w3.removeRange(n,a,"forward");return s!==n?x3.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=_3(i,r,e.shiftKey?-1:1,n);return x3.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=C3(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return x3.push(e,w3.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?O3.toggleBlockType(e,"code-block"):O3.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return x3.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?w3.removeInlineStyle(i,n,t):w3.applyInlineStyle(i,n,t),x3.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=w3.applyEntity(e.getCurrentContent(),t,n);return x3.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return w3.setBlockType(o,t,"unstyled")}return null}},S3=O3,k3=/\r\n?|\n/g;var E3=p$,j3=_$,A3=QQ,T3=Tq,P3=m3,M3=OZ,D3=S3,R3=MX,I3=o1,N3=i1,L3=function(e){return e.split(k3)};function B3(e,t,n){var r=T3.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return M3.push(e,r.set("entityMap",n),"insert-fragment")}var F3=function(e,t){t.preventDefault();var n=new A3(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&N3(e.props.handlePastedFiles(r)))return;return void I3(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=L3(t),i=j3.create({style:n.getCurrentInlineStyle(),entity:R3(n.getCurrentContent(),n.getSelection())}),a=D3.getCurrentBlockType(n),s=P3.processText(r,i,a),c=E3.createFromArray(s),u=T3.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(M3.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!N3(e.props.handlePastedText(a,s,c))){if(a&&(i=L3(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(B3(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(B3(e._latestEditorState,f));if(s){var p=P3.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=E3.createFromArray(d);return void e.update(B3(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=j3.create({style:c.getCurrentInlineStyle(),entity:R3(c.getCurrentContent(),c.getSelection())}),v=D3.getCurrentBlockType(c),m=P3.processText(i,y,v),b=E3.createFromArray(m);e.update(B3(e._latestEditorState,b))}}},z3=LY,V3=D1,H3=L1,U3=F1,K3=U1,$3=Y1,W3=X1,q3=J1,G3=t0,Z3=L0,Y3=i5,X3=F3,J3=jX,Q3=z3.isBrowser("Chrome"),e4=z3.isBrowser("Firefox"),t4=Q3||e4?J3:function(e){},n4={onBeforeInput:V3,onBlur:H3,onCompositionStart:U3,onCopy:K3,onCut:$3,onDragOver:W3,onDragStart:q3,onFocus:G3,onInput:Z3,onKeyDown:Y3,onPaste:X3,onSelect:J3,onMouseUp:t4,onKeyUp:t4},r4=r.unstable_flushControlled;var o4=t,i4=QZ,a4=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return o4.createElement("div",{className:t},o4.createElement("div",{className:i4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(o4.Component),s4=a4,c4=U0,u4=oX,l4=LY,f4=l4.isPlatform("Mac OS X"),p4=f4&&l4.isBrowser("Firefox < 29"),d4=c4.hasCommandModifier,h4=c4.isCtrlKeyCommand;function g4(e){return f4&&e.altKey||h4(e)}var y4=function(e){switch(e.keyCode){case 66:return d4(e)?"bold":null;case 68:return h4(e)?"delete":null;case 72:return h4(e)?"backspace":null;case 73:return d4(e)?"italic":null;case 74:return d4(e)?"code":null;case 75:return f4&&h4(e)?"secondary-cut":null;case 77:case 79:return h4(e)?"split-block":null;case 84:return f4&&h4(e)?"transpose-characters":null;case 85:return d4(e)?"underline":null;case 87:return f4&&h4(e)?"backspace-word":null;case 89:return h4(e)?f4?"secondary-paste":"redo":null;case 90:return function(e){return d4(e)?e.shiftKey?"redo":"undo":null}(e)||null;case u4.RETURN:return"split-block";case u4.DELETE:return function(e){return!f4&&e.shiftKey?null:g4(e)?"delete-word":"delete"}(e);case u4.BACKSPACE:return function(e){return d4(e)&&f4?"backspace-to-start-of-line":g4(e)?"backspace-word":"backspace"}(e);case u4.LEFT:return p4&&d4(e)?"move-selection-to-start-of-block":null;case u4.RIGHT:return p4&&d4(e)?"move-selection-to-end-of-block":null;default:return null}},v4=_g;function m4(){return m4=v4||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},m4.apply(this,arguments)}function b4(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){x4(e,t,n[t])}))}return e}function w4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var C4=nY,O4=rY,S4=YX,k4=LQ,E4=b1,j4=n4,A4=r4,T4=s4,P4=OZ,M4=t,D4=zJ,R4=XJ,I4=QZ,N4=wW,L4=y4,B4=oQ,F4=aG,z4=lW,V4=aX,H4=nZ,U4=LY.isBrowser("IE"),K4=!U4,$4={edit:j4,composite:S4,drag:E4,cut:null,render:null},W4=!1,q4=function(e){function t(){return e.apply(this,arguments)||this}_4(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}(M4.Component),G4=function(e){function t(t){var n;return x4(w4(n=e.call(this,t)||this),"_blockSelectEvents",void 0),x4(w4(n),"_clipboard",void 0),x4(w4(n),"_handler",void 0),x4(w4(n),"_dragCount",void 0),x4(w4(n),"_internalDrag",void 0),x4(w4(n),"_editorKey",void 0),x4(w4(n),"_placeholderAccessibilityID",void 0),x4(w4(n),"_latestEditorState",void 0),x4(w4(n),"_latestCommittedEditorState",void 0),x4(w4(n),"_pendingStateFromBeforeInput",void 0),x4(w4(n),"_onBeforeInput",void 0),x4(w4(n),"_onBlur",void 0),x4(w4(n),"_onCharacterData",void 0),x4(w4(n),"_onCompositionEnd",void 0),x4(w4(n),"_onCompositionStart",void 0),x4(w4(n),"_onCopy",void 0),x4(w4(n),"_onCut",void 0),x4(w4(n),"_onDragEnd",void 0),x4(w4(n),"_onDragOver",void 0),x4(w4(n),"_onDragStart",void 0),x4(w4(n),"_onDrop",void 0),x4(w4(n),"_onInput",void 0),x4(w4(n),"_onFocus",void 0),x4(w4(n),"_onKeyDown",void 0),x4(w4(n),"_onKeyPress",void 0),x4(w4(n),"_onKeyUp",void 0),x4(w4(n),"_onMouseDown",void 0),x4(w4(n),"_onMouseUp",void 0),x4(w4(n),"_onPaste",void 0),x4(w4(n),"_onSelect",void 0),x4(w4(n),"editor",void 0),x4(w4(n),"editorContainer",void 0),x4(w4(n),"focus",void 0),x4(w4(n),"blur",void 0),x4(w4(n),"setMode",void 0),x4(w4(n),"exitCurrentMode",void 0),x4(w4(n),"restoreEditorDOM",void 0),x4(w4(n),"setClipboard",void 0),x4(w4(n),"getClipboard",void 0),x4(w4(n),"getEditorKey",void 0),x4(w4(n),"update",void 0),x4(w4(n),"onDragEnter",void 0),x4(w4(n),"onDragLeave",void 0),x4(w4(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),x4(w4(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=R4.getScrollParent(o),a=e||B4(i),s=a.x,c=a.y;V4(o)||("production"!==process.env.NODE_ENV?z4(!1,"editorNode is not an HTMLElement"):z4(!1)),o.focus(),i===window?window.scrollTo(s,c):D4.setTop(i,c),r||n.update(P4.forceSelection(t,t.getSelection()))}})),x4(w4(n),"blur",(function(){var e=n.editor;e&&(V4(e)||("production"!==process.env.NODE_ENV?z4(!1,"editorNode is not an HTMLElement"):z4(!1)),e.blur())})),x4(w4(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=b4({},$4.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=b4({},$4,{edit:a});n._handler=s[e]})),x4(w4(n),"exitCurrentMode",(function(){n.setMode("edit")})),x4(w4(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),x4(w4(n),"setClipboard",(function(e){n._clipboard=e})),x4(w4(n),"getClipboard",(function(){return n._clipboard})),x4(w4(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),x4(w4(n),"onDragEnter",(function(){n._dragCount++})),x4(w4(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||N4(),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}_4(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&&(A4?A4((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:H4(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return M4.createElement(T4,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=I4({"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:b4({},O4,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return M4.createElement("div",{className:f},this._renderPlaceholder(),M4.createElement("div",{className:I4("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},M4.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:I4({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:K4&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},M4.createElement(q4,{editor:this,editorState:a}),M4.createElement(k4,m4({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!W4&&F4("draft_ods_enabled")&&(W4=!0),this.setMode("edit"),U4&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):s.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(M4.Component);x4(G4,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:C4,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:L4,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Z4=G4,Y4={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},X4=Y4,J4=d0.strlen;var Q4=d0,e9=C$,t9=function(e,t){return e===t},n9=function(e){return!!e},r9=[];var o9=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return e9(o,t9,n9,(function(t,o){var i=e.getText();r.push({offset:Q4.strlen(i.slice(0,t)),length:Q4.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(r9,n.toJS())};function i9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a9=B$,s9=Q$,c9=Y4,u9=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:J4(i.slice(0,r)),length:J4(i.slice(r,o)),key:Number(t[X4.stringify(a)])})})),n},l9=o9,f9=lW,p9=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l9(e),entityRanges:u9(e,t),data:e.getData().toObject()}},d9=function(e,t,n,r){if(e instanceof a9)n.push(p9(e,t));else{e instanceof s9||("production"!==process.env.NODE_ENV?f9(!1,"block is not a BlockNode"):f9(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i9(e,t,n[t])}))}return e}({},p9(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},h9=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=c9.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),d9(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(c9.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function g9(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){y9(e,t,n[t])}))}return e}function y9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v9=wW,m9=lW,b9=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},w9={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?m9(!1,"Invalid raw state"):m9(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?m9(!1,"Invalid tree raw block"):m9(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=g9({},e);b9(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?g9({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,g9({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=b9(e),o=e.depth||0,i=g9({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:v9(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),g9({},e,{blocks:t})}},x9=v0,_9={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&&x9(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&x9(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&x9(!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&&x9(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&x9(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&x9(!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&&x9(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&x9(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&x9(!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)}},C9=_9,O9=_$,S9=l$.List;var k9=function(e,t){var n=e.map((function(e,n){var r=t[n];return O9.create({style:e,entity:r})}));return S9(n)},E9=d0.substr;var j9=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=E9(e,0,t.offset).length,o=r+E9(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},A9=d0,T9=l$.OrderedSet,P9=A9.substr,M9=T9();var D9=function(e,t){var n=Array(e.length).fill(M9);return t&&t.forEach((function(t){for(var r=P9(e,0,t.offset).length,o=r+P9(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function R9(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){I9(e,t,n[t])}))}return e}function I9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N9=B$,L9=Q$,B9=TG,F9=rG,z9=w9,V9=C9,H9=iG,U9=k9,K9=j9,$9=D9,W9=wW,q9=l$,G9=lW,Z9=aG("draft_tree_data_support"),Y9=q9.List,X9=q9.Map,J9=q9.OrderedMap,Q9=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||W9(),data:X9(o),characterList:e6(e,t)}},e6=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return U9($9(n,o||[]),K9(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return R9({},e,{key:t[e.key]})}))))},t6=function(e){return R9({},e,{key:e.key||W9()})},n6=function(e,t,n){var r=t.map((function(e){return R9({},e,{parentRef:n})}));return e.concat(r.reverse())},r6=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=Z9&&!n?z9.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Z9)return function(e,t){return J9(e.map((function(e){var n=new N9(Q9(e,t));return[n.getKey(),n]})))}(n?z9.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(t6).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?G9(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):G9(!1));var i=r.children.map(t6),a=new L9(R9({},Q9(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Y9(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=n6([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?G9(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):G9(!1));break}var d=c.children.map(t6),h=new L9(R9({},Q9(c,t),{parent:u.getKey(),children:Y9(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=n6(s,d,h)}return n}),J9())}(r,t);return"production"!==process.env.NODE_ENV&&(V9.isValidTree(o)||("production"!==process.env.NODE_ENV?G9(!1,"Should be a valid tree"):G9(!1))),o},o6=J0;var i6=function(e){var t=o6(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},a6=i6;var s6=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=a6(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},c6={Editor:Z4,EditorBlock:NQ,EditorState:OZ,CompositeDecorator:XZ,Entity:rG,EntityInstance:qq,BlockMapBuilder:p$,CharacterMetadata:_$,ContentBlock:B$,ContentState:TG,RawDraftContentState:{},SelectionState:iG,AtomicBlockUtils:GZ,KeyBindingUtil:U0,Modifier:Tq,RichUtils:S3,DefaultDraftBlockRenderMap:nY,DefaultDraftInlineStyle:rY,convertFromHTML:o3,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?G9(!1,"invalid RawDraftContentState"):G9(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=F9.__create(o,i,a||{})})),n}(e),n=r6(e,t),r=n.isEmpty()?new H9:H9.createEmpty(n.first().getKey());return new B9({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:h9,genKey:wW,getDefaultKeyBinding:y4,getVisibleSelectionRect:s6};const u6="FOUND_FIELD",l6="NOT_FOUND",f6="IMMUTABLE",p6=X.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),d6=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},h6=new c6.CompositeDecorator([{strategy:(e,t,n)=>d6(e,t,n,u6),component:({children:t})=>e.jsx(p6,{children:t})},{strategy:(e,t,n)=>d6(e,t,n,l6),component:({children:t})=>e.jsx(p6,Object.assign({error:!0},{children:t}))}]),g6=(e,t,n)=>{const r=ct.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},y6=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=ct.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=g6(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?u6:l6,mutability:f6,data:{id:i}}}o.text+=a}return c6.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return c6.EditorState.createWithContent(r,h6)},v6=(e,t=!0)=>{const n=e.getCurrentContent(),r=c6.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=ct.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},m6=e=>{const t=v6(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},b6=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new c6.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return c6.EditorState.forceSelection(e,o)},w6=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:s,onFocus:c,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:p,height:d,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:O,backgroundColor:S,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M}=n,D=a(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,I]=t.useState((()=>y6(o,l,m))),{focused:N,handleFocus:L,handleBlur:B}=Br(c,u),[F,z]=t.useState(!1),V=t.useRef(null),H=t.useRef(),U=null!=h?h:d,K=U?U-(g?0:_?29:11):void 0,$=e=>{I(e);const t=(e=>m6(e).some((e=>e.type===l6)))(e);z(t);const n=v6(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=g6(e,t,r),u=c?u6:l6,l=i.createEntity(u,f6,{id:o}).getLastCreatedEntityKey(),f=c6.Modifier.insertText(i,a,s,void 0,l),p=c6.EditorState.push(n,f,"insert-characters");return c6.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,R,m);$(t)},q=()=>{(null==V?void 0:V.current)&&V.current.focus();const e=b6(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:q})));t.useEffect((()=>{v6(R)!==o&&(e=>{const t=R.getSelection(),n=y6(e,l,m),r=b6(n),o=t.getHasFocus()?r:n;$(o)})(o)}),[o]),t.useEffect((()=>{H.current=l}),[]),t.useEffect((()=>{const{current:e}=H,t=ct.isEqual(e,l),n=m6(R);if(!t&&n.length>0){H.current=l;const e=y6(o,l,m);$(e)}}),[l]);return e.jsx(x6,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:p,height:d,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:Fr(o),invalid:F,textOnly:E,borderRadius:O,backgroundColor:S,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M,focused:N,disabled:C,hasLabel:!!_,hideEditor:!Fr(o)&&!!_&&!N},{children:e.jsxs(Vr,Object.assign({readOnly:v},{children:[_&&e.jsx(Hr,Object.assign({filled:Fr(o),focused:N,disabled:C},{children:_})),e.jsx(c6.Editor,Object.assign({ref:V,editorState:R,onChange:$,placeholder:f,readOnly:v,handleReturn:e=>{const t=c6.RichUtils.insertSoftNewline(R);return e.shiftKey||!s?$(t):s(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=c6.convertFromRaw({blocks:[o],entityMap:{}}),a=c6.EditorState.createWithContent(i,h6).getCurrentContent().getBlockMap(),s=c6.Modifier.replaceWithFragment(n,r,a);return c6.EditorState.push(t,s,"insert-fragment")})(e,n);return $(r),"handled"},onFocus:L,onBlur:B},D))]}))}))})),x6=X(zr)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),_6=X.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,width:l,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));_6.Item=X.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const C6=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=t,d=a(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return e.jsxs(RK,Object.assign({htmlFor:n,labelRight:h,disabled:s},g,{children:[r&&e.jsx(NK,{children:r}),e.jsx(IK,Object.assign({id:n,type:"radio",checked:i,disabled:s},d)),e.jsx(on,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!s})]}))},O6=n=>{var{id:r,label:o,labelPosition:i,checked:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,g=a(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(s||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof s?s:m)}),[s,m]),e.jsxs(RK,Object.assign({htmlFor:r,labelRight:w,disabled:c},x,{children:[o&&e.jsx(NK,{children:o}),e.jsx(IK,Object.assign({id:r,type:"checkbox",checked:m,disabled:c,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(on,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!c,size:40})]}))},S6=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:s}=t,c=a(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(k6,Object.assign({as:s?void 0:"label",disabled:i,rightIcon:!!o,pill:s},c,{children:[r&&Kr(r,{marginRight:4,size:"small"}),n,o&&Kr(o,{marginLeft:4,size:"small"})]}))},k6=X.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),E6=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(j6,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:e=>{c?c(e):e.preventDefault()}},u,{children:n}))};E6.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,disabled:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(A6,Object.assign({rows:r,columns:o,rowGap:i,columnGap:s,disabled:c},u,{children:n}))},E6.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(T6,Object.assign({inline:n,align:r,disabled:o},{children:t})),E6.Input=$r,E6.Dropdown=oo,E6.Radio=C6,E6.Toggle=O6,E6.Checkbox=LK,E6.Label=S6;const j6=X(_6)({boxSizing:"border-box"}),A6=X(_6)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),T6=X.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"})),P6=X.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}))),M6=X.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),D6=X.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%)`}}))),R6=X.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),I6=X.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"}))),N6=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(L6,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Dr(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),L6=X.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}))),B6=X.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),F6=X.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),z6=X.div({marginLeft:"auto",marginRight:8});N6.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(B6,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),N6.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:p})=>{const[d,h]=t.useState(r||i),g=e=>Dr(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!d&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:p})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(F6,Object.assign({backgroundColor:p},{children:[e.jsxs(B6,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),d||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(z6,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(on,{name:d?"chevron-up":"chevron-down",pointer:!0})}))]})),d&&y]}))};const V6=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:y}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(K6,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(on,{name:h,style:{marginRight:10},color:g}),e.jsx($6,{children:r||p}),o&&e.jsx(on,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},H6=X.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),U6=X.div((({theme:e})=>({fontWeight:e.font.weight.default})));V6.Header=H6,V6.Body=U6;const K6=X.div((({theme:e,borderColor:t,backgroundColor:n})=>({display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),$6=X.div({width:"100%"}),W6=X.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),q6=X.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),G6=X.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Z6=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,preventOverlayClose:l,overlayColor:f,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S})=>{const k=at(l?()=>null:c,i),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S},j=Dr(n).map((e=>e?t.cloneElement(e,{inline:d}):null)),A=e.jsx(J6,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(Y6,Object.assign({ref:k,width:a,height:s,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(X6,Object.assign({inline:d},{children:e.jsx(on,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};Z6.Header=X.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Z6.Text=X.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Z6.Body=X.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Z6.Footer=X.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const Y6=X.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),X6=X.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),J6=X.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),Q6=X.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),e7=X.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),t7=X.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),n7=X.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}:{})),r7=X.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}))),o7=X.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),i7=X.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),a7=X.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),s7=X.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),c7=e=>e?+e:0,u7=X.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),l7=X.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`}}))),f7=X(l7)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),p7=X(l7)((({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}))),d7=X.span((({theme:e})=>({color:e.scale6}))),h7=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u},f=(n-r)/2,p=f*Math.PI*2,d=p-p*t/100,h=n/2;return e.jsxs(g7,Object.assign({size:n},l,{children:[e.jsx(y7,{cx:h,cy:h,r:f,thickness:r}),e.jsx(v7,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:p,complete:d})]}))},g7=X.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),y7=X.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),v7=X(y7)((({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"}))),m7=X.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),b7=X.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var w7={};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){l&&o&&i&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function 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 j(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){c(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function P(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},R=null;function I(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function N(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function L(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&N(e,n,i)),t?o()-e.A>=e.w?I()&&N(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){L(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),L(this)};var z=null;function V(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):S(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)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 P(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new M(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 $(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,V(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),l(t.f,r,o)}k(t,"fontinactive",e),V(this)},H.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){U(e,i,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)p(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new H(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}({get exports(){return w7},set exports(e){w7=e}});var x7=w7;const _7=X.div((({width:e,height:t})=>({width:e,height:t}))),C7=X.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),O7=X.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),S7=X.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),k7=X.div({display:"flex",flexDirection:"column"}),E7=X.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),j7=X.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),A7=X.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"}}})),T7=X.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),P7=X.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),M7=t.createContext({}),D7=(t,n)=>{const r="th"===n?R7:I7;return Dr(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},R7=X.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),I7=X.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),N7=X(_6)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),L7=X.tbody((({height:e})=>({height:e,overflow:"auto"}))),B7=X(_6)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),F7=X.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),z7=X(F7)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),V7=X(F7)({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}}))),H7=n=>{var{children:r,columns:o,data:i}=n,s=a(n,["children","columns","data"]);const[c,u]=t.useState(i),[l,f]=t.useState(),p=i&&"function"==typeof r?r(c):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=ct.orderBy(i,t,n)}ct.isEqual(e,c)||u(e)}),[i,l]);const d=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(M7.Provider,Object.assign({value:d},{children:e.jsx(U7,Object.assign({},s,{children:p}))}))};H7.Header=n=>{var{children:r,columns:o}=n,i=a(n,["children","columns"]);const{parentColumns:s}=t.useContext(M7),c=o||s||"equal";return e.jsx("thead",{children:e.jsx(N7,Object.assign({as:"tr",columns:c},i,{children:D7(r,"th")}))})},H7.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,u]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:p}=t.useContext(M7),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(e),p&&s){p("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||y(a)}),[]),t.useEffect((()=>{a&&u(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),e.jsxs(V7,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!d},{children:[r,d?e.jsx(on,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},H7.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(M7);return e.jsx(L7,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},H7.Row=n=>{var{children:r,columns:o,onClick:i}=n,s=a(n,["children","columns","onClick"]);const{parentColumns:c}=t.useContext(M7),u=o||c||"equal";return e.jsx(B7,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:D7(r,"td")}))},H7.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(z7,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const U7=X.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),K7=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},O=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(G7,Object.assign({width:f,onMouseLeave:O,onMouseOver:O,onClick:O,style:a,onFocus:O},{children:[e.jsx(q7,Object.assign({visible:x,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},$7=X.div((({theme:e})=>({color:e.tooltip.color.default}))),W7=X.div((({theme:e})=>({color:e.tooltip.color.subtext}))),q7=X.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),G7=X.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));K7.Header=$7,K7.Body=W7;const Z7="#0074F4",Y7="#FF6068",X7="#FF9900",J7="#F0BB00",Q7="#00C242",e8="#001D32",t8="#FFFFFF",n8={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Z7,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:rr(.95,Z7),brandTint1:rr(.9,Z7),brandTint2:rr(.8,Z7),brandTint3:rr(.7,Z7),brandTint4:rr(.6,Z7),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Y7,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:rr(.95,Y7),errorTint1:rr(.9,Y7),errorTint2:rr(.8,Y7),warning:X7,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:rr(.95,X7),warningTint1:rr(.9,X7),warningTint2:rr(.8,X7),alert:J7,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:rr(.95,J7),alertTint1:rr(.9,J7),alertTint2:rr(.8,J7),success:Q7,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:rr(.95,Q7),successTint1:rr(.9,Q7),successTint2:rr(.8,Q7),grayscale0:rr(.95,e8),grayscale1:rr(.9,e8),grayscale2:rr(.8,e8),grayscale3:rr(.7,e8),grayscale4:rr(.6,e8),grayscale5:rr(.5,e8),grayscale6:rr(.4,e8),grayscale7:rr(.3,e8),grayscale8:rr(.2,e8),grayscale9:rr(.1,e8),grayscale10:e8,contrast0:rr(.95,t8),contrast1:rr(.9,t8),contrast2:rr(.8,t8),contrast3:rr(.7,t8),contrast4:rr(.6,t8),contrast5:rr(.5,t8),contrast6:rr(.4,t8),contrast7:rr(.3,t8),contrast8:rr(.2,t8),contrast9:rr(.1,t8),contrast10:t8};var r8={color:n8,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:o8}=r8;var i8={small:{height:28,iconSize:18,font:o8.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:o8.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:o8.size.lg,padding:14,iconOnlyPadding:6}};const a8="#FFFFFF",s8=n8.grayscale0,c8=n8.grayscale1,u8=n8.grayscale2,l8=n8.grayscale3,f8=n8.grayscale4,p8=n8.grayscale5,d8=n8.grayscale6,h8=n8.grayscale7,g8=n8.grayscale8,y8=n8.grayscale9,v8=n8.grayscale10,m8=Object.assign(Object.assign({},r8),{name:"light",accent:n8.brand,accentShade:n8.brandShade1,background0:a8,background1:a8,background2:a8,background3:a8,background4:a8,background5:a8,scale0:s8,scale1:c8,scale2:u8,scale3:l8,scale4:f8,scale5:p8,scale6:d8,scale7:h8,scale8:g8,scale9:y8,scale10:v8,button:Object.assign(Object.assign({},i8),{primary:{color:{default:a8,hover:a8,active:a8},outlineColor:{default:v8,hover:v8,active:v8},background:{default:n8.brand,hover:n8.brandShade1,active:n8.brandShade2},outlineBackground:{default:n8.brandTint0,hover:n8.brandTint1,active:n8.brandTint2},border:{default:n8.brand,hover:n8.brandShade1,active:n8.brandShade2},divider:u8},secondary:{color:{default:v8,hover:v8,active:v8},outlineColor:{default:v8,hover:v8,active:v8},background:{default:c8,hover:u8,active:l8},outlineBackground:{default:c8,hover:u8,active:l8},border:{default:u8,hover:u8,active:u8},divider:u8},positive:{color:{default:a8,hover:a8,active:a8},outlineColor:{default:v8,hover:v8,active:v8},background:{default:n8.success,hover:n8.successShade1,active:n8.successShade2},outlineBackground:{default:n8.successTint0,hover:n8.successTint1,active:n8.successTint2},border:{default:n8.success,hover:n8.successShade1,active:n8.successShade2},divider:u8},negative:{color:{default:a8,hover:a8,active:a8},outlineColor:{default:v8,hover:v8,active:v8},background:{default:n8.error,hover:n8.errorShade1,active:n8.errorShade2},outlineBackground:{default:n8.errorTint0,hover:n8.errorTint1,active:n8.errorTint2},border:{default:n8.error,hover:n8.errorShade1,active:n8.errorShade2},divider:u8},caution:{color:{default:a8,hover:a8,active:a8},outlineColor:{default:v8,hover:v8,active:v8},background:{default:n8.warning,hover:n8.warningShade1,active:n8.warningShade2},outlineBackground:{default:n8.warningTint0,hover:n8.warningTint1,active:n8.warningTint2},border:{default:n8.warning,hover:n8.warningShade1,active:n8.warningShade2},divider:u8},subtle:{color:{default:n8.brand,hover:n8.brand,active:n8.brand},outlineColor:{default:n8.brand,hover:n8.brand,active:n8.brand},secondaryColor:{default:v8,hover:v8,active:v8},positiveColor:{default:n8.success,hover:n8.success,active:n8.success},negativeColor:{default:n8.error,hover:n8.error,active:n8.error},cautionColor:{default:n8.warning,hover:n8.warning,active:n8.warning},background:{default:"transparent",hover:c8,active:u8},outlineBackground:{default:"transparent",hover:c8,active:u8},border:{default:"transparent",hover:u8,active:u8},divider:u8},link:{color:{default:n8.brand,hover:n8.brandShade1,active:n8.brandShade2},outlineColor:{default:n8.brand,hover:n8.brandShade1,active:n8.brandShade2},secondaryColor:{default:g8,hover:y8,active:v8},positiveColor:{default:n8.success,hover:n8.successShade1,active:n8.successShade2},negativeColor:{default:n8.error,hover:n8.errorShade1,active:n8.errorShade2},cautionColor:{default:n8.warning,hover:n8.warningShade1,active:n8.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:f8,hover:f8,active:f8},outlineColor:{default:f8,hover:f8,active:f8},background:{default:c8,hover:c8,active:c8},outlineBackground:{default:s8,hover:s8,active:s8},border:{default:c8,hover:c8,active:c8},divider:c8},color:{default:a8}}),calendar:{background:{container:n8.contrast10,hover:c8,active:n8.brand,activeHover:n8.brandShade1},color:{disabled:f8,default:v8,active:n8.contrast10,current:n8.brand,outside:d8,weekday:g8,monthYear:g8,iconDefault:f8,iconHover:v8}},defaultBorder:`1px solid ${c8}`,formControl:{color:{default:g8,hover:v8,active:n8.brand,activeHover:n8.brandShade1,disabled:f8}},input:{borderRadius:4,background:{default:s8,hover:c8,focused:c8,disabled:s8},color:{default:v8,disabled:f8,placeholder:d8,description:d8,descriptionError:n8.error},borderColor:{default:d8,hover:g8,focused:n8.brand,disabled:f8,error:n8.error},labelColor:{default:g8,hover:g8,filled:d8,focused:n8.brand,disabled:f8}},menu:{background:a8},menuItem:{borderColor:n8.brand,background:{active:s8,hover:c8,inactive:"transparent"},color:{active:v8,hover:v8,inactive:d8}},modal:{background:n8.contrast10,color:{header:v8,body:d8}},options:{background:n8.contrast10},optionItem:{background:{active:c8,inactive:"transparent"},color:{active:v8,inactive:v8,accent:n8.brand}},table:{color:{header:d8,body:v8},borderColor:c8},toast:{color:v8,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:g8,info:n8.brand,success:n8.success,warning:n8.warning,error:n8.error}},toggle:{slider:n8.contrast10},tooltip:{background:"#FFF",color:{default:v8,subtext:d8}}}),b8=n8.contrast0,w8=n8.contrast1,x8=n8.contrast2,_8=n8.contrast3,C8=n8.contrast4,O8=n8.contrast5,S8=n8.contrast6,k8=n8.contrast7,E8=n8.contrast8,j8=n8.contrast9,A8=n8.contrast10,T8=n8.brandDark,P8={light:m8,dark:Object.assign(Object.assign({},r8),{name:"dark",accent:T8,accentShade:n8.brandDarkShade1,background0:n8.brandBackground0,background1:n8.brandBackground1,background2:n8.brandBackground2,background3:n8.brandBackground3,background4:n8.brandBackground4,background5:n8.brandBackground5,scale0:b8,scale1:w8,scale2:x8,scale3:_8,scale4:C8,scale5:O8,scale6:S8,scale7:k8,scale8:E8,scale9:j8,scale10:A8,button:Object.assign(Object.assign({},i8),{primary:{color:{default:A8,hover:A8,active:A8},outlineColor:{default:A8,hover:A8,active:A8},background:{default:n8.brand,hover:n8.brandShade1,active:n8.brandShade2},outlineBackground:{default:n8.brandTint0,hover:n8.brandTint1,active:n8.brandTint2},border:{default:n8.brand,hover:n8.brandShade1,active:n8.brandShade2},divider:x8},secondary:{color:{default:A8,hover:A8,active:A8},outlineColor:{default:A8,hover:A8,active:A8},background:{default:w8,hover:x8,active:_8},outlineBackground:{default:w8,hover:x8,active:_8},border:{default:x8,hover:x8,active:x8},divider:x8},positive:{color:{default:A8,hover:A8,active:A8},outlineColor:{default:A8,hover:A8,active:A8},background:{default:n8.success,hover:n8.successShade1,active:n8.successShade2},outlineBackground:{default:n8.successTint0,hover:n8.successTint1,active:n8.successTint2},border:{default:n8.success,hover:n8.successShade1,active:n8.successShade2},divider:x8},negative:{color:{default:A8,hover:A8,active:A8},outlineColor:{default:A8,hover:A8,active:A8},background:{default:n8.error,hover:n8.errorShade1,active:n8.errorShade2},outlineBackground:{default:n8.errorTint0,hover:n8.errorTint1,active:n8.errorTint2},border:{default:n8.error,hover:n8.errorShade1,active:n8.errorShade2},divider:x8},caution:{color:{default:A8,hover:A8,active:A8},outlineColor:{default:A8,hover:A8,active:A8},background:{default:n8.warning,hover:n8.warningShade1,active:n8.warningShade2},outlineBackground:{default:n8.warningTint0,hover:n8.warningTint1,active:n8.warningTint2},border:{default:n8.warning,hover:n8.warningShade1,active:n8.warningShade2},divider:x8},subtle:{color:{default:n8.brand,hover:n8.brand,active:n8.brand},outlineColor:{default:n8.brand,hover:n8.brand,active:n8.brand},secondaryColor:{default:A8,hover:A8,active:A8},positiveColor:{default:n8.success,hover:n8.success,active:n8.success},negativeColor:{default:n8.error,hover:n8.error,active:n8.error},cautionColor:{default:n8.warning,hover:n8.warning,active:n8.warning},background:{default:"transparent",hover:w8,active:x8},outlineBackground:{default:"transparent",hover:w8,active:x8},border:{default:"transparent",hover:x8,active:x8},divider:x8},link:{color:{default:n8.brandShade2,hover:n8.brandShade1,active:n8.brand},outlineColor:{default:n8.brandShade2,hover:n8.brandShade1,active:n8.brand},secondaryColor:{default:E8,hover:j8,active:A8},positiveColor:{default:n8.successShade2,hover:n8.successShade1,active:n8.success},negativeColor:{default:n8.errorShade2,hover:n8.errorShade1,active:n8.error},cautionColor:{default:n8.warningShade2,hover:n8.warningShade1,active:n8.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:C8,hover:C8,active:C8},outlineColor:{default:C8,hover:C8,active:C8},background:{default:w8,hover:w8,active:w8},outlineBackground:{default:b8,hover:b8,active:b8},border:{default:w8,hover:w8,active:w8},divider:w8},color:{default:"#FFFFFF"}}),calendar:{background:{container:n8.brandBackground3,hover:w8,active:n8.brand,activeHover:n8.brandShade1},color:{disabled:C8,default:A8,active:A8,current:T8,outside:S8,weekday:E8,monthYear:E8,iconDefault:C8,iconHover:A8}},defaultBorder:`1px solid ${w8}`,formControl:{color:{default:E8,hover:A8,active:n8.brand,activeHover:n8.brandShade1,disabled:C8}},input:{borderRadius:4,background:{default:b8,hover:w8,focused:w8,disabled:b8},color:{default:A8,disabled:C8,placeholder:S8,description:S8,descriptionError:n8.error},borderColor:{default:S8,hover:E8,focused:T8,disabled:C8,error:n8.error},labelColor:{default:E8,hover:E8,filled:S8,focused:T8,disabled:C8}},menu:{background:n8.brandBackground2},menuItem:{borderColor:n8.brand,background:{active:b8,hover:w8,inactive:"transparent"},color:{active:A8,hover:A8,inactive:S8}},modal:{background:n8.brandBackground3,color:{header:A8,body:S8}},options:{background:n8.brandBackground3},optionItem:{background:{active:w8,inactive:"transparent"},color:{active:A8,inactive:A8,accent:T8}},table:{color:{header:S8,body:A8},borderColor:w8},toast:{color:A8,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:E8,info:n8.brand,success:n8.success,warning:n8.warning,error:n8.error}},toggle:{slider:n8.brandBackground0},tooltip:{background:n8.brandBackground4,color:{default:A8,subtext:S8}}})};exports.Accordion=cn,exports.Audio=Oo,exports.BarChart=t=>{var{width:r,height:o,data:i,dataKey:s}=t,c=a(t,["width","height","data","dataKey"]);const{scale2:u,color:l}=n.useTheme();return e.jsxs(UH,Object.assign({},c,{children:[e.jsx($H,{}),e.jsxs(jB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:o,data:i},{children:[e.jsx(ON,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e.jsx(hL,{stroke:u,dataKey:"name",tickMargin:4}),e.jsx(gL,{stroke:u,tickMargin:4}),KH(),e.jsx(fI,{barSize:16,dataKey:s,fill:l.brand})]}))]}))},exports.Button=go,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[u,l]=t.useState(c),[f,p]=t.useState(c),[d,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>_K(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),v=e=>{const t=CK(("prev"===e?SK:QH)(f,{months:1}),1),n=y(t);p(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?yK(SK(e,{months:1})):CK("future"===n?QH(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?SK:QH)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return qH(1,arguments),ZH(e).getDay()}(CK(e,1)),n=gK(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=y(c),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(yK(f)),s=y(CK(f,1));let l=!1;const p=mK(e,n),d=vK(e,r);(i&&p||a&&d)&&(l=!0);const h=vK(e,o)||mK(e,s),g=aU(e,c),v=aU(e,u);return{date:hK(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(kK,Object.assign({noShadow:s},{children:[e.jsxs(EK,{children:[e.jsx(jK,{children:dK(f,"MMMM Y")}),e.jsxs(AK,{children:[e.jsx(on,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(on,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(MK,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(DK,{children:t[0]},t)))}),e.jsx(TK,{children:(null==d?void 0:d.length)&&d.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(PK,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),_r())))})]}))},exports.Checkbox=LK,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=n.useTheme(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ct.range(r,o+1):ct.rangeRight(o,r+1)}return null})),n=t.flat();return ct.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(n$,{method:w,url:C}):e.jsx(GK,Object.assign({},zK,{code:C,language:b,theme:"dark"===d?XK:JK},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(a$,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(s$,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(c$,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(e$,{content:C})]}))}))},exports.DocTable=u$,exports.DraftEditor=w6,exports.Dropdown=oo,exports.Form=E6,exports.Grid=_6,exports.Icon=on,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),p=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const d=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),d();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,l]),n?e.jsxs(P6,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(M6,Object.assign({onClick:r},{children:e.jsx(on,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(D6,Object.assign({id:"prev",onClick:d},{children:e.jsx(on,{name:"chevron-left",size:35,color:"white"})})),e.jsx(R6,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(D6,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(on,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=I6,exports.Input=$r,exports.InputUtils=Ur,exports.Label=S6,exports.Menu=N6,exports.Message=V6,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(G6,{children:[e.jsx(q6,{}),e.jsx(W6,Object.assign({color:n,style:r},{children:t})),e.jsx(q6,{})]}),exports.Modal=Z6,exports.MultiSelect=o=>{var{children:i,options:s,items:c,listLabel:u,listText:l,itemsTitle:f,maxItems:p,placeholder:d,width:h,filter:g,restrictInput:y,disabled:v,hideItemsInfo:m,optionsParent:b,compact:w,backgroundColor:x,borderless:_,addItem:C,removeItem:O,onTextChange:S,autoFocus:k}=o,E=a(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,A]=t.useState(k||!1),[T,P]=t.useState(!1),[M,D]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),L=at((()=>A(!1)),j,b?[b,`${b} *`]:void 0),B=t.useRef(null),F=w&&!!u,z=e=>{e&&C(e)},V=e=>{D(e),S&&S(e)};t.useEffect((()=>{const{current:e}=B;e&&!j&&e.blur()}),[j]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];O(t)}}),j&&!M,[c]);const H=s.filter((e=>!c.find((t=>t.id===e.id)))),U=t.useMemo((()=>`multi-select-${_r()}`),[]),K=t.useMemo((()=>`multi-select-list-${_r()}`),[]),$=p?c.length>=p:void 0,W=v||!j||$,q=()=>{const t=e.jsxs(n7,Object.assign({id:K,expanded:j,padTop:j&&c.length>0,labeled:!!u},{children:[l&&e.jsx(r7,Object.assign({expanded:j,labeled:!!u},{children:l})),i?i(j,!!v):c.map((t=>e.jsx(S6,Object.assign({pill:!0,iconRight:j&&!v?e.jsx(on,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx(oo,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:H,fontSize:I.size.md,placeholder:v||c.length>0?" ":d||"Search...",placeholderColor:N.color.placeholder,inputRef:B,onChange:z,onTextChange:V,onError:e=>P(e),disabled:W,optionsParent:b?`#${K}`:`#${U}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?r.createPortal(t,e):t}return t};return e.jsxs(Q6,Object.assign({width:h,ref:L,labeled:!!u,disabled:v,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=B;j||u||A(!0),null==t||t.focus()}},{children:[e.jsxs(e7,Object.assign({collapse:F,id:U,expanded:j&&c.length>0,error:T,labeled:!!u,backgroundColor:x,borderless:_},{children:[u?e.jsx(t7,Object.assign({collapse:F},{children:u})):q(),e.jsxs(o7,{children:[p&&!m&&e.jsx(a7,{children:v&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(i7,Object.assign({error:c.length>=p},{children:c.length})),"/",p," ",f]})}),c.length>0&&e.jsx(on,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!j)}})]})]})),u&&j&&q()]}))},exports.Notification=s7,exports.Options=Yr,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:s,width:c}=n,u=a(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(c7(o)||1),[p,d]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,c7(s)||h.length),y=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);d(t),f(e),r(e)}},v=0!==p,m=p!==g.length-1;return e.jsxs(u7,Object.assign({width:c},u,{children:[e.jsx(f7,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(on,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(f7,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(on,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(d7,{children:"... "}):"",e.jsx(p7,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(d7,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(f7,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(on,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(f7,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(on,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,outerRadius:i,showWhenEmpty:s}=t,c=a(t,["size","data","innerRadius","outerRadius","showWhenEmpty"]);const u=(null==r?void 0:r.length)>0,l=u?r:s?[{name:"1",value:1,color:"#999"}]:void 0,f=i||n/2-1;return e.jsx(UH,Object.assign({},c,{children:e.jsxs(AB,Object.assign({width:n,height:n},{children:[e.jsx(pD,Object.assign({dataKey:"value",data:l,innerRadius:o,outerRadius:f},{children:null==l?void 0:l.map((t=>e.jsx(ix,{fill:t.color||"#999"},t.name)))})),u&&KH()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(h7,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e.jsx(m7,Object.assign({width:o,height:i||s},d,{children:e.jsx(b7,{color:n,width:h})}))},exports.Radio=C6,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,x7.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=xo,exports.Spacer=_7,exports.Spinner=Ir,exports.Table=H7,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=O6,exports.Tooltip=K7,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,width:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ct.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},O=e=>{const t="select"===e?m:w,n="select"===e?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},S=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(T7,{children:t.header}),e.jsx(P7,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(C7,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(O7,{children:i}),e.jsxs(S7,{children:[!u&&e.jsxs(k7,{children:[k&&e.jsx(E7,{children:v.length>0&&!s&&e.jsx(go,Object.assign({small:!0,outline:!0,onClick:()=>O("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(j7,{children:v.map((t=>e.jsxs(A7,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[S(t),e.jsx(on,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(k7,{children:[k&&!u&&e.jsx(E7,{children:b.length>0&&!c&&!u&&e.jsx(go,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>O("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(j7,{children:b.map((t=>e.jsxs(A7,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[S(t),e.jsx(on,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=QK,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,u=dK(n,"EEEE"),l=dK(n,"MMM d"),f=dK(n,"MMM d, y"),p=dK(n,"h:mm aaa"),d=bK(n),h=function(e){return qH(1,arguments),ZH(e).getTime()>Date.now()}(n),g=function(e){return qH(1,arguments),aU(e,Date.now())}(n),y=function(e){return qH(1,arguments),aU(e,wK(Date.now(),1))}(n),v=function(e){return qH(1,arguments),aU(e,YH(Date.now(),1))}(n),m=hU(c,n),b=function(e,t,n){qH(2,arguments);var r=lU(e,t)/7;return dU(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.theme=P8,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,p]=t.useState(l||""),[d,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const y=()=>{null==d||d.resolve(!s||f),g()},v=()=>{null==d||d.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(Z6,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e.jsx(Z6.Header,{children:n}),r&&e.jsx(Z6.Text,{children:r}),s&&e.jsx(Z6.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx($r,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),e.jsxs(Z6.Footer,{children:[e.jsx(go,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(go,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=nn,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=ut,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,c]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e};
|
|
211
|
+
var $K=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").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 o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var O=_.value;if(t.length>e.length)return;if(!(O instanceof o)){var S,k=1;if(m){if(!(S=i(x,C,e,v))||S.index>=e.length)break;var E=S.index,j=S.index+S[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,O=e.slice(C,A),S.index-=C}else if(!(S=i(x,0,O,v)))continue;E=S.index;var P=S[0],M=O.slice(0,E),D=O.slice(E+P.length),R=C+O.length;f&&R>f.reach&&(f.reach=R);var I=_.prev;if(M&&(I=c(t,I,M),C+=M.length),u(t,I,k),_=c(t,I,new o(p,y?r.tokenize(P,y):P,b,P)),D&&c(t,_,D),k>1){var N={cause:p+","+h,reach:R};a(e,t,n,_.prev,C,N),f&&N.reach>f.reach&&(f.reach=N.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),WK=$K;$K.default=$K,WK.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]},WK.languages.markup.tag.inside["attr-value"].inside.entity=WK.languages.markup.entity,WK.languages.markup.doctype.inside["internal-subset"].inside=WK.languages.markup,WK.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(WK.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:WK.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:WK.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},WK.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(WK.languages.markup.tag,"addAttribute",{value:function(e,t){WK.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:WK.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),WK.languages.html=WK.languages.markup,WK.languages.mathml=WK.languages.markup,WK.languages.svg=WK.languages.markup,WK.languages.xml=WK.languages.extend("markup",{}),WK.languages.ssml=WK.languages.xml,WK.languages.atom=WK.languages.xml,WK.languages.rss=WK.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(WK),WK.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:/[{}[\];(),.:]/},WK.languages.c=WK.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|[?:~]|[-+*/%&|^!=<>]=?/}),WK.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),WK.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},WK.languages.c.string],char:WK.languages.c.char,comment:WK.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:WK.languages.c}}}}),WK.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 WK.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"])}(WK),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"))}(WK),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(WK),WK.languages.javascript=WK.languages.extend("clike",{"class-name":[WK.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}|\?\?=?|\?\.?|[~:]/}),WK.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,WK.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:WK.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:WK.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:WK.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:WK.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:WK.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),WK.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:WK.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"}}),WK.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),WK.languages.markup&&(WK.languages.markup.tag.addInlined("script","javascript"),WK.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")),WK.languages.js=WK.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}(WK),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(WK),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(WK),WK.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:WK.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+/},WK.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(u,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),WK.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(WK),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}(WK),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(WK),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(WK),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(WK),WK.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},WK.languages.go=WK.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/}),WK.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete WK.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(WK),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}(WK),WK.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"}},WK.languages.webmanifest=WK.languages.json,WK.languages.less=WK.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:/[+\-*\/]/}),WK.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),WK.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:/[:;(){}]/},WK.languages.objectivec=WK.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 WK.languages.objectivec["class-name"],WK.languages.objc=WK.languages.objectivec,WK.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/},WK.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:/[{}[\];(),.:]/},WK.languages.python["string-interpolation"].inside.interpolation.inside.rest=WK.languages.python,WK.languages.py=WK.languages.python,WK.languages.reason=WK.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/}),WK.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 WK.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}})}(WK),WK.languages.scss=WK.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]+\}/}}}),WK.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}]}),WK.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),WK.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}}),WK.languages.scss.atrule.inside.rest=WK.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:/[{}()\[\];:.]/}}(WK),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}(WK),WK.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 qK={Prism:WK,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 GK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZK(){return ZK=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},ZK.apply(this,arguments)}var YK=/\r\n|\r|\n/,XK=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)},JK=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},QK=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=ZK({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=ZK({},n,{backgroundColor:null}),o};function e$(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 t$=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),GK(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?QK(e.theme,e.language):void 0;return t.themeDict=n})),GK(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=ZK({},e$(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?ZK({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),GK(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),GK(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=ZK({},e$(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?ZK({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),GK(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=JK(l,f.type),f.alias&&(l=JK(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(YK),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)XK(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return XK(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),n$="#c5a5c5",r$="#8dc891",o$={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:n$}},{types:["attr-value"],style:{color:r$}},{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:r$}},{types:["punctuation"],style:{color:r$}},{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:n$}},{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}}]},i$={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 a$=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},s$=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(c$,Object.assign({onClick:()=>{a$(r),i(!0)},copied:o},{children:o?e.jsx(on,{name:"check-circle",color:a.success}):e.jsx(on,{name:"copy",color:s})}))},c$=X.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}}))),u$=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(l$,Object.assign({},i,{children:[e.jsx(f$,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(p$,{children:r}),e.jsx(s$,{content:r})]}))},l$=X.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}))),f$=X.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),p$=X.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),d$=X.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),h$=X.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),g$=X.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),y$=X.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 v$={};({get exports(){return v$},set exports(e){v$=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function O(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return M(e,t,0)}function P(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,I=2,N="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=N||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function V(){return{value:void 0,done:!0}}function H(e){return!!$(e)}function U(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(N&&e[N]||e[L]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=R,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return W(e)?new te(e):U(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?V():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function 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,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?V():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?V():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new F(V);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,P(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):V()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=P(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?V():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Ce,_e),t(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 je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Pe(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=He[e];return void 0===t&&(t=Te(e),Ve===ze&&(Ve=0,He={}),Ve++,He[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Pe(e){var t;if(Ne&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ne)Ie.set(e,t);else{if(void 0!==Me&&!1===Me(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 Me=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Ne="function"==typeof WeakMap;Ne&&(Ie=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ve=0,He={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ht(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new 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=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new O);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),o.push(c)}return gt(e,t,o)}function dt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:S(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ct)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(C(a),s?void C(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ct(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return V()};var xt=v/4,_t=v/2,Ct=v/4;function Ot(e){var t=Rt();if(null==e)return t;if(St(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?Dt(0,r,y,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function 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 It(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):Rt()},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 A(e,t,n)?this:Ft(this,T(e,n),P(t,n))},Ot.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Pt?V():z(e,n++,t)}))},Ot.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Pt&&!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 jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Pt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=Vt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Pt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Pt)return e;s=null}if(u===l)return Pt;var n=t?--l:u++;s=a(c&&c[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return At||(At=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Vt(e._capacity)?r=Nt(r,e.__ownerID,0,t,n,i):o=Nt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Nt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Nt(u,t,n-y,r,o,i);return l===u?e:((a=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(C(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Vt(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new O,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Vt(i),p=Vt(s);p>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new jt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Vt(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?$t():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Ht.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Kt(ot(),Rt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=P(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return V();var e=o.next();return r||t===R?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return V();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===I?e:z(r,c,u,e):(s=!1,V())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return V()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?V():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(On);return o.constructor=r,r}t(Ht,Ke),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Ht.prototype.set=function(e,t){return Wt(this,e,t)},Ht.prototype.remove=function(e){return Wt(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Ut,Ht.prototype[h]=!0,Ht.prototype[g]=Ht.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Sn(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this: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(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Nn():Tn(e)&&!l(e)?e:Nn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Mn])}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(An,Se),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Ln(fn(this,e))},An.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Pn,Mn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Pn||(Pn=In(ot()))}function Ln(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Mn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Nn,Dn.__make=In,t(Ln,An),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.prototype;function Vn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Vn($t()))}function Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Hn,zn.__make=Vn,t(Un,Oe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(P(t,this.size)!==this.size)return Oe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return V()}))},Un.isStack=Kn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=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[Wn]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return 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(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return S(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(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,or,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Oe,o.prototype),Yn(Se,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:Ot,Stack:Un,Set:An,OrderedSet:Ln,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var m$=v$.OrderedMap,b$={createFromArray:function(e){return m$(e.map((function(e){return[e.getKey(),e]})))}};var w$=v$,x$=w$.Map,_$=w$.OrderedSet,C$=w$.Record,O$=_$(),S$={style:O$,entity:null},k$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return E$;var t=x$({style:O$,entity:null}).merge(e),n=j$.get(t);if(n)return n;var o=new r(t);return j$=j$.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?_$(t):t,entity:Array.isArray(n)?_$(n):n})},r}(C$(S$)),E$=new k$,j$=x$([[x$(S$),E$]]);k$.EMPTY=E$;var A$=k$;var T$=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var P$=A$,M$=T$,D$=v$,R$=D$.List,I$=D$.Map,N$=D$.OrderedSet,L$=D$.Record,B$=D$.Repeat,F$=N$(),z$=L$({key:"",type:"unstyled",text:"",characterList:R$(),depth:0,data:I$()}),V$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=R$(B$(P$.EMPTY,n.length))),e},H$=function(e){var t,n;function r(t){return e.call(this,V$(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():F$},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){M$(this.getCharacterList(),U$,e,t)},o.findEntityRanges=function(e,t){M$(this.getCharacterList(),K$,e,t)},r}(z$);function U$(e,t){return e.getStyle()===t.getStyle()}function K$(e,t){return e.getEntity()===t.getEntity()}var $$=H$;var W$=A$,q$=T$,G$=v$,Z$=G$.List,Y$=G$.Map,X$=G$.OrderedSet,J$=G$.Record,Q$=G$.Repeat,eW=X$(),tW={parent:null,characterList:Z$(),data:Y$(),depth:0,key:"",text:"",type:"unstyled",children:Z$(),prevSibling:null,nextSibling:null},nW=function(e,t){return e.getStyle()===t.getStyle()},rW=function(e,t){return e.getEntity()===t.getEntity()},oW=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Z$(Q$(W$.EMPTY,n.length))),e},iW=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tW;return e.call(this,oW(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():eW},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){q$(this.getCharacterList(),nW,e,t)},o.findEntityRanges=function(e,t){q$(this.getCharacterList(),rW,e,t)},r}(J$(tW)),aW=iW,sW=A$,cW=v$.Map;function uW(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(cW([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?sW.applyStyle(l,n):sW.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var lW={add:function(e,t,n){return uW(e,t,n,!0)},remove:function(e,t,n){return uW(e,t,n,!1)}},fW=A$;var pW=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,fW.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},dW=v$;var hW=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(dW.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return pW(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},gW={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},yW="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var vW=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(yW(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},mW=vW;var bW=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?mW(!1,"Entity key not found in this range."):mW(!1)),n},wW=gW,xW=bW,_W=vW;function CW(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=xW(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?_W(!1,"There should only be one entity range within this removal range."):_W(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=wW.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 OW=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=CW(e,t,u,o,s,!0,!0);else if(s&&c){var l=CW(e,t,u,o,s,!1,!0),f=CW(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=CW(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=CW(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},SW={},kW=Math.pow(2,24);var EW=function(){for(var e;void 0===e||SW.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*kW).toString(32);return SW[e]=!0,e},jW=aW,AW=EW,TW=v$.OrderedMap,PW=function(e){return e.first()instanceof jW?function(e){var t,n={};return TW(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=AW();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return TW(e.toArray().map((function(e){var t=AW();return[t,e.set("key",t)]})))}(e)},MW=A$,DW=T$,RW=vW;function IW(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return DW(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?RW(!1,"Removal range must exist within character list."):RW(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,MW.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var NW=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=IW(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=IW(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},LW=PW,BW=NW,FW=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=BW(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return LW(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var zW=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},VW=b$,HW=aW,UW=zW,KW=vW,$W=PW,WW=v$.List,qW=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:UW(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},GW=function(e,t,n,r,o,i){var a=n.first()instanceof HW,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=f.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=VW.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],WW(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},ZW=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?KW(!1,"`insertFragment` should only be called with a collapsed selection state."):KW(!1));var o=e.getBlockMap(),i=$W(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof HW&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?KW(!1,"`insertFragment` should not be called when a container node is selected."):KW(!1))),1===i.size?qW(e,t,o,i.first(),a,s,r):GW(e,t,o,i,a,s)},YW=zW,XW=vW,JW=v$.Repeat;var QW=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?XW(!1,"`insertText` should only be called with a collapsed range."):XW(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:YW(c.getCharacterList(),JW(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},eq=v$.Map;var tq=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(eq([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},nq=aW,rq=function(e,t){if(!(e instanceof nq))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},oq=aW,iq=rq,aq=v$;aq.List;var sq=aq.Map,cq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},uq=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},lq=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},fq=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},pq=function(e,t,n,r){return e.withMutations((function(o){if(cq(t.getKey(),o,(function(e){return e.merge({nextSibling:lq(e,o,r),prevSibling:fq(e,o,r)})})),cq(n.getKey(),o,(function(e){return e.merge({nextSibling:lq(e,o,r),prevSibling:fq(e,o,r)})})),uq(t.getKey(),r).forEach((function(e){return cq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:lq(e,o,r),prevSibling:fq(e,o,r)})}))})),cq(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),cq(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:lq(e,o,r)})})),cq(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:fq(e,o,r)})})),cq(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),uq(n.getKey(),r).forEach((function(e){cq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:lq(e,o,r),prevSibling:fq(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=iq(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?iq(o,t):null}return n}(n,r).forEach((function(e){return cq(e,o,(function(e){return e.merge({nextSibling:lq(e,o,r),prevSibling:fq(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();cq(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),cq(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){cq(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);cq(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}cq(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},dq=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},hq=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),u=r.get(a),l=c instanceof oq,f=[];if(l){var p=u.getChildKeys(),d=uq(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(uq(iq(u,r),r))}n=c===u?dq(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?sq([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(sq([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=pq(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},gq=aW,yq=EW,vq=v$,mq=vW,bq=tq,wq=vq.List,xq=vq.Map,_q=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Cq=A$,Oq=lW,Sq=hW,kq=OW,Eq=FW,jq=ZW,Aq=QW,Tq=vW,Pq=tq,Mq=NW,Dq=hq,Rq=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?mq(!1,"Selection range must be collapsed."):mq(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return bq(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=yq(),l=o instanceof gq,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:xq()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?mq(!1,"ContentBlockNode must not have children"):mq(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();_q(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:wq(i)})})),_q(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),_q(r,e,(function(e){return e.merge({nextSibling:o})})),_q(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},Iq=v$.OrderedSet,Nq={replaceText:function(e,t,n,r,o){var i=Mq(e,t),a=Dq(i,t),s=Cq.create({style:r||Iq(),entity:o||null});return Aq(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Tq(!1,"Target range must be collapsed for `insertText`."):Tq(!1)),Nq.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=Eq(e,t),o=Nq.removeRange(e,t,"backward");return Nq.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=Mq(e,t),i=Dq(o,t);return jq(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=kq(e.getEntityMap(),i,a,t,n);return Dq(e,f)}var p=Mq(e,t);return Dq(p,t)},splitBlock:function(e,t){var n=Mq(e,t),r=Dq(n,t);return Rq(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Oq.add(e,t,n)},removeInlineStyle:function(e,t,n){return Oq.remove(e,t,n)},setBlockType:function(e,t,n){return Pq(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return Pq(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return Pq(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=Mq(e,t);return Sq(r,t,n)}},Lq=Nq;var Bq=function(e){return Object.keys(e).map((function(t){return e[t]}))};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=T$,Vq=Bq,Hq=v$,Uq=Hq.List,Kq=Hq.Repeat,$q=Hq.Record,Wq=function(){return!0},qq=$q({start:null,end:null}),Gq=$q({start:null,end:null,decoratorKey:null,leaves:null}),Zq={generate:function(e,t,n){var r=t.getLength();if(!r)return Uq.of(new Gq({start:0,end:0,decoratorKey:null,leaves:Uq.of(new qq({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Uq(Kq(null,r)),a=t.getCharacterList();return zq(i,Xq,Wq,(function(e,t){o.push(new Gq({start:e,end:t,decoratorKey:i.get(e),leaves:Yq(a.slice(e,t).toList(),e)}))})),Uq(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new Gq(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}({},n,{leaves:null!=t?Uq(Array.isArray(t)?t:Vq(t)).map((function(e){return qq(e)})):null}))}};function Yq(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return zq(r,Xq,Wq,(function(e,r){n.push(new qq({start:e+t,end:r+t}))})),Uq(n)}function Xq(e,t){return e===t}var Jq=Zq;var Qq=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,v$.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),eG=Qq;var tG=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 nG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rG=eG,oG=vW,iG=tG,aG=(0,v$.Map)(),sG=iG();function cG(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var uG={getLastCreatedEntityKey:function(){return cG("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),uG.__getLastCreatedEntityKey()},create:function(e,t,n){return cG("DraftEntity.create","contentState.createEntity"),uG.__create(e,t,n)},add:function(e){return cG("DraftEntity.add","contentState.addEntity"),uG.__add(e)},get:function(e){return cG("DraftEntity.get","contentState.getEntity"),uG.__get(e)},__getAll:function(){return aG},__loadWithEntities:function(e){aG=e,sG=iG()},mergeData:function(e,t){return cG("DraftEntity.mergeData","contentState.mergeEntityData"),uG.__mergeData(e,t)},replaceData:function(e,t){return cG("DraftEntity.replaceData","contentState.replaceEntityData"),uG.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return sG},__create:function(e,t,n){return uG.__add(new rG({type:e,mutability:t,data:n||{}}))},__add:function(e){return sG=iG(),aG=aG.set(sG,e),sG},__get:function(e){var t=aG.get(e);return t||("production"!==process.env.NODE_ENV?oG(!1,"Unknown DraftEntity key: %s.",e):oG(!1)),t},__mergeData:function(e,t){var n=uG.__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){nG(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return aG=aG.set(e,o),o},__replaceData:function(e,t){var n=uG.__get(e).set("data",t);return aG=aG.set(e,n),n}},lG=uG;var fG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,v$.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),pG=fG,dG=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},hG=new RegExp("\r","g");var gG=function(e){return e.replace(hG,"")};function yG(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){vG(e,t,n[t])}))}return e}function vG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mG=b$,bG=A$,wG=$$,xG=aW,_G=lG,CG=pG,OG=EW,SG=Bq,kG=dG,EG=v$,jG=gG,AG=EG.List,TG=EG.Record,PG=EG.Repeat,MG=EG.Map,DG=EG.OrderedMap,RG=TG({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),IG=kG("draft_tree_data_support")?xG:wG,NG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return _G},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return _G.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return _G.__create(e,t,n),this},o.mergeEntityData=function(e,t){return _G.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return _G.__replaceData(e,t),this},o.addEntity=function(e){return _G.__add(e),this},o.getEntity=function(e){return _G.__get(e)},o.getAllEntities=function(){return _G.__getAll()},o.loadWithEntities=function(e){return _G.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=mG.createFromArray(n),i=o.isEmpty()?new CG:CG.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||_G,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=jG(e),new IG({key:OG(),text:e,type:"unstyled",characterList:AG(PG(bG.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(yG({},e,{blockMap:DG(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new CG(e.selectionBefore),selectionAfter:new CG(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new IG(yG({},e,{data:MG(e.data),characterList:null!=t?AG((Array.isArray(t)?t:SG(t)).map((function(e){return bG.fromJS(e)}))):void 0}))},r}(RG),LG=NG,BG=vW,FG="LTR",zG="RTL",VG=null;function HG(e){return e===FG||e===zG}function UG(e){return HG(e)||("production"!==process.env.NODE_ENV?BG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):BG(!1)),e===FG?"ltr":"rtl"}function KG(e){VG=e}var $G={NEUTRAL:"NEUTRAL",LTR:FG,RTL:zG,isStrong:HG,getHTMLDir:UG,getHTMLDirIfDifferent:function(e,t){return HG(e)||("production"!==process.env.NODE_ENV?BG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):BG(!1)),HG(t)||("production"!==process.env.NODE_ENV?BG(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):BG(!1)),e===t?null:UG(e)},setGlobalDir:KG,initGlobalDir:function(){KG(FG)},getGlobalDir:function(){return VG||this.initGlobalDir(),VG||("production"!==process.env.NODE_ENV?BG(!1,"Global direction not set."):BG(!1)),VG}},WG=$G,qG=vW,GG="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",ZG="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",YG=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+GG+ZG+"]"),XG=new RegExp("["+GG+ZG+"]");function JG(e){var t=YG.exec(e);return null==t?null:t[0]}function QG(e){var t=JG(e);return null==t?WG.NEUTRAL:XG.exec(t)?WG.RTL:WG.LTR}function eZ(e,t){if(t=t||WG.NEUTRAL,!e.length)return t;var n=QG(e);return n===WG.NEUTRAL?t:n}function tZ(e,t){return t||(t=WG.getGlobalDir()),WG.isStrong(t)||("production"!==process.env.NODE_ENV?qG(!1,"Fallback direction must be a strong direction"):qG(!1)),eZ(e,t)}var nZ={firstStrongChar:JG,firstStrongCharDir:QG,resolveBlockDir:eZ,getDirection:tZ,isDirectionLTR:function(e,t){return tZ(e,t)===WG.LTR},isDirectionRTL:function(e,t){return tZ(e,t)===WG.RTL}};function rZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oZ,iZ=nZ,aZ=$G,sZ=vW,cZ=function(){function e(e){rZ(this,"_defaultDir",void 0),rZ(this,"_lastDir",void 0),e?aZ.isStrong(e)||("production"!==process.env.NODE_ENV?sZ(!1,"Default direction must be a strong direction (LTR or RTL)"):sZ(!1)):e=aZ.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=iZ.getDirection(e,this._lastDir),this._lastDir},e}(),uZ=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},lZ=cZ,fZ=v$,pZ=uZ,dZ=fZ.OrderedMap;function hZ(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){gZ(e,t,n[t])}))}return e}function gZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yZ=Jq,vZ=LG,mZ={getDirectionMap:function(e,t){oZ?oZ.reset():oZ=new lZ;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return pZ(oZ).getDirection(e.getText())})),o=dZ(n.keySeq().zip(r));return null!=t&&fZ.is(t,o)?t:o}},bZ=pG,wZ=v$,xZ=wZ.OrderedSet,_Z=wZ.Record,CZ=wZ.Stack,OZ=wZ.OrderedMap,SZ=wZ.List,kZ=_Z({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:CZ(),selection:null,treeMap:null,undoStack:CZ()}),EZ=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(vZ.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:CZ(),redoStack:CZ(),decorator:n||null,selection:bZ.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=hZ({},e,{treeMap:AZ(n,e.decorator),directionMap:mZ.getDirectionMap(n)});return new t(new kZ(r))},t.fromJS=function(e){return new t(new kZ(hZ({},e,{directionMap:null!=e.directionMap?OZ(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?xZ(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?vZ.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?CZ(e.redoStack.map((function(e){return vZ.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new bZ(e.selection):e.selection,treeMap:null!=e.treeMap?OZ(e.treeMap).map((function(e){return SZ(e).map((function(e){return yZ.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?CZ(e.undoStack.map((function(e){return vZ.fromJS(e)}))):e.undoStack,currentContent:vZ.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return yZ.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):AZ(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return yZ.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){gZ(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return TZ(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return TZ(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 jZ(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),jZ(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new bZ({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=mZ.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(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();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:u,directionMap:i,undoStack:c,redoStack:CZ(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=mZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=mZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function jZ(e,t,n){return EZ.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function AZ(e,t){return e.getBlockMap().map((function(n){return yZ.generate(e,n,t)})).toOrderedMap()}function TZ(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):xZ()}var PZ=EZ,MZ=aW,DZ=rq,RZ=v$,IZ=vW,NZ=RZ.OrderedMap,LZ=RZ.List,BZ=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},FZ=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){BZ(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),BZ(l,e,(function(e){return e.merge({nextSibling:u})})),BZ(u,e,(function(e){return e.merge({prevSibling:l})})),BZ(p,e,(function(e){return e.merge({prevSibling:a})})),BZ(d,e,(function(e){return e.merge({nextSibling:a})})),BZ(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:LZ(o)})})),BZ(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function zZ(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){VZ(e,t,n[t])}))}return e}function VZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HZ=b$,UZ=A$,KZ=$$,$Z=aW,WZ=Lq,qZ=PZ,GZ=EW,ZZ=v$,YZ=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?IZ(!1,"Replacing blocks is not supported."):IZ(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?IZ(!1,"Block cannot be moved next to itself."):IZ(!1));var a=e.getBlockMap(),s=t instanceof MZ,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=DZ(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),p=c.map((function(e){return[e.getKey(),e]})),d=NZ();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?IZ(!1,"Block cannot be moved next to itself."):IZ(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?IZ(!1,"Block cannot be moved next to itself."):IZ(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:FZ(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},XZ=dG("draft_tree_data_support"),JZ=XZ?$Z:KZ,QZ=ZZ.List,eY=ZZ.Repeat,tY={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=WZ.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=WZ.splitBlock(i,a),c=s.getSelectionAfter(),u=WZ.setBlockType(s,c,"atomic"),l=UZ.create({entity:t}),f={key:GZ(),type:"atomic",text:n,characterList:QZ(eY(l,n.length))},p={key:GZ(),type:"unstyled"};XZ&&(f=zZ({},f,{nextSibling:p.key}),p=zZ({},p,{prevSibling:f.key}));var d=[new JZ(f),new JZ(p)],h=HZ.createFromArray(d),g=WZ.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return qZ.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=YZ(i,t,s,r)}else{var c=WZ.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=YZ(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=YZ(c,t,l,"after");else{var f=WZ.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=YZ(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return qZ.push(e,h,"move-block")}};var nY=v$.List,rY=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),nY(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 oY=rY;function iY(e){return e.replace(/\//g,"-")}var aY=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(iY).join(" "):Array.prototype.map.call(arguments,iY).join(" ")},sY=t,cY=aY,uY=(0,v$.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:sY.createElement("ul",{className:cY("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:sY.createElement("ol",{className:cY("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:sY.createElement("pre",{className:cY("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),lY={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},fY={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",O="Browser",S="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",P="Motorola",M="Opera",D="Samsung",R="Sharp",I="Sony",N="Xiaomi",L="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},U=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},K=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,M]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/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 "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],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,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],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,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+O]],[/(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,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,V]],[/((?: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/,"",V]],[/(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,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/(macintosh);/i],[c,[f,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,j],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,j],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,N],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,N],[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,P],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,A],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,A],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,I],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,I],[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(?!-bra))[-_ ]?([-\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,R],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,L],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,L],[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,I],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,A],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,S+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,R],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,I],[l,v]],[/(mitv-\w{5}) bui/i],[c,[f,N],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,H],[c,H],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,L],[l,m]],[/(quest( 2)?)/i],[c,[f,B],[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(?:[;\/]| [ \w\/\.]*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,K,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,K,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},q=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof q))return new q(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,U.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[d]=r,U.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,U.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>350?H(e,350):e,this},this.setUA(o),this};q.VERSION="0.7.33",q.BROWSER=F([u,p,"major"]),q.CPU=F([d]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,p]),e.exports&&(t=e.exports=q),t.UAParser=q;var G=typeof n!==i&&(n.jQuery||n.Zepto);if(G&&!G.ua){var Z=new q;G.ua=Z.getResult(),G.ua.get=function(){return Z.getUA()},G.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:s)}({get exports(){return fY},set exports(e){fY=e}},fY);var pY="Unknown",dY={"Mac OS":"Mac OS X"};var hY,gY=(new fY).getResult(),yY=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(gY.browser.version),vY={browserArchitecture:gY.cpu.architecture||pY,browserFullVersion:gY.browser.version||pY,browserMinorVersion:yY.minor||pY,browserName:gY.browser.name||pY,browserVersion:gY.browser.major||pY,deviceName:gY.device.model||pY,engineName:gY.engine.name||pY,engineVersion:gY.engine.version||pY,platformArchitecture:gY.cpu.architecture||pY,platformName:(hY=gY.os.name,dY[hY]||hY||pY),platformVersion:gY.os.version||pY,platformFullVersion:gY.os.version||pY},mY=vW,bY=/\./,wY=/\|\|/,xY=/\s+\-\s+/,_Y=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,CY=/^(\d*)(.*)/;function OY(e,t){var n=e.split(wY);return n.length>1?n.some((function(e){return IY.contains(e,t)})):function(e,t){var n=e.split(xY);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?mY(!1,'the "-" operator expects exactly 2 operands'):mY(!1)),1===n.length)return SY(n[0],t);var r=n[0],o=n[1];return TY(r)&&TY(o)||("production"!==process.env.NODE_ENV?mY(!1,'operands to the "-" operator must be simple (no modifiers)'):mY(!1)),SY(">="+r,t)&&SY("<="+o,t)}(e=n[0].trim(),t)}function SY(e,t){if(""===(e=e.trim()))return!0;var n=t.split(bY),r=jY(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return kY(n,i);case"<=":return function(e,t){var n=RY(e,t);return-1===n||0===n}(n,i);case">=":return EY(n,i);case">":return function(e,t){return 1===RY(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);AY(i)&&(r[o]=i+1+"");return EY(e,n)&&kY(e,r)}(n,i);default:return function(e,t){return 0===RY(e,t)}(n,i)}}function kY(e,t){return-1===RY(e,t)}function EY(e,t){var n=RY(e,t);return 1===n||0===n}function jY(e){var t=e.split(bY),n=t[0].match(_Y);return n||("production"!==process.env.NODE_ENV?mY(!1,"expected regex to match but it did not"):mY(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function AY(e){return!isNaN(e)&&isFinite(e)}function TY(e){return!jY(e).modifier}function PY(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function MY(e,t){var n=e.match(CY)[1],r=t.match(CY)[1],o=parseInt(n,10),i=parseInt(r,10);return AY(o)&&AY(i)&&o!==i?DY(o,i):DY(e,t)}function DY(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?mY(!1,'"a" and "b" must be of the same type'):mY(!1)),e>t?1:e<t?-1:0}function RY(e,t){for(var n=function(e,t){PY(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return PY(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=MY(r[i],o[i]);if(a)return a}return 0}var IY={contains:function(e,t){return OY(e.trim(),t.trim())}},NY=IY,LY=Object.prototype.hasOwnProperty;var BY=function(e,t,n){if(!e)return null;var r={};for(var o in e)LY.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var FY=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},zY=vY,VY=NY;function HY(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,VY.contains(o,t))}function UY(e){return"Windows"===zY.platformName?e.replace(/^\s*NT/,""):e}var KY=BY({isBrowser:function(e){return HY(zY.browserName,zY.browserFullVersion,e)},isBrowserArchitecture:function(e){return HY(zY.browserArchitecture,null,e)},isDevice:function(e){return HY(zY.deviceName,null,e)},isEngine:function(e){return HY(zY.engineName,zY.engineVersion,e)},isPlatform:function(e){return HY(zY.platformName,zY.platformFullVersion,e,UY)},isPlatformArchitecture:function(e){return HY(zY.platformArchitecture,null,e)}},FY);var $Y=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var WY=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},qY=WY;var GY=function e(t){if(qY(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},ZY=$Y,YY=GY;var XY=function(e){for(var t=e;t&&t!==ZY(e).documentElement;){var n=YY(t);if(null!=n)return n;t=t.parentNode}return null};var JY=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};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=KY,tX=XY,nX=JY,rX=vW,oX=uZ,iX=v$.Map,aX={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},sX=eX.isBrowser("IE <= 11"),cX=function(){function e(e){var t=this;QY(this,"observer",void 0),QY(this,"container",void 0),QY(this,"mutations",void 0),QY(this,"onCharData",void 0),this.container=e,this.mutations=iX();var n=nX(e);n.MutationObserver&&!sX?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?rX(!1,"Expected target to be an instance of Node"):rX(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,aX):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=iX(),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 sX?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=oX(tX(e.target));this.mutations=this.mutations.set(n,t)}},e}(),uX="-",lX={encode:function(e,t,n){return e+uX+t+uX+n},decode:function(e){var t=e.split(uX).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(uX),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},fX={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},pX={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var dX=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},hX=vW,gX=dX;var yX=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?hX(!1,"Missing editorNode"):hX(!1)),gX(t.firstChild)||("production"!==process.env.NODE_ENV?hX(!1,"editorNode.firstChild is not an HTMLElement"):hX(!1)),t.firstChild},vX=lX,mX=uZ;var bX=function(e,t,n,r,o){var i=mX(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=vX.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=vX.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var m=!1;if(s===f){var b=u.get("end"),w=d.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:m})},wX=XY,xX=GY,_X=bX,CX=vW,OX=WY,SX=uZ;function kX(e,t,n){var r=t,o=wX(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?CX(!1,"Unknown node in selection range."):CX(!1)),e===r)&&(r=r.firstChild,OX(r)||("production"!==process.env.NODE_ENV?CX(!1,"Invalid DraftEditorContents node."):CX(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?CX(!1,"Invalid DraftEditorContents structure."):CX(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(OX(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||xX(e.firstChild));)e=e.firstChild;return e}(r);i=SX(xX(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(xX(s)){var l=function(e){for(;e.lastChild&&(OX(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||xX(e.lastChild));)e=e.lastChild;return e}(s);c=SX(xX(l)),u=EX(l)}else c=SX(o),u=EX(s);return{key:c,offset:u}}function EX(e){var t=e.textContent;return"\n"===t?0:t.length}var jX=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:_X(e,SX(wX(n)),r,SX(wX(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:SX(wX(n)),offset:r},u=kX(t,o,i)):s?(u={key:SX(wX(o)),offset:i},c=kX(t,n,r)):(c=kX(t,n,r),u=kX(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:_X(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},AX=jX;var TX=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:AX(e,t,r,o,i,a)},PX=pX,MX=PZ,DX=yX,RX=TX;var IX=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();PX.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=RX(n,DX(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?MX.forceSelection(n,o):MX.acceptSelection(n,o),e.update(n))}};var NX={notEmptyKey:function(e){return null!=e&&""!=e}},LX=NX.notEmptyKey;function BX(e,t){return LX(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var FX=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:BX(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),BX(e.getEntityMap(),n)},zX=cX,VX=Lq,HX=lX,UX=PZ,KX=fX,$X=IX,WX=yX,qX=TX,GX=FX,ZX=uZ,YX=KY.isBrowser("IE"),XX=!1,JX=!1,QX=null;var eJ,tJ,nJ={onCompositionStart:function(e){JX=!0,function(e){QX||(QX=new zX(WX(e))).start()}(e)},onCompositionEnd:function(e){XX=!1,JX=!1,setTimeout((function(){XX||nJ.resolveComposition(e)}),20)},onSelect:$X,onKeyDown:function(e,t){if(!JX)return nJ.resolveComposition(e),void e._onKeyDown(t);t.which!==KX.RIGHT&&t.which!==KX.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===KX.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!JX){var t=ZX(QX).stopAndFlushMutations();QX=null,XX=!0;var n=UX.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=HX.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),p=GX(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=VX.replaceText(r,f,e,d,p),n=UX.set(n,{currentContent:r})}));var o=qX(n,WX(e)).selectionState;e.restoreEditorDOM();var i=YX?UX.forceSelection(n,o):UX.acceptSelection(n,o);e.update(UX.push(i,r,"insert-characters"))}else e.update(n)}}},rJ=nJ;function oJ(){if(tJ)return eJ;tJ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=lX,o=t,i=nZ,a=$G,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=t.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(y,n({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(o.Component);return eJ=s}function iJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sJ=t,cJ=vW,uJ=WY,lJ=KY.isBrowser("IE <= 11");var fJ=function(e){var t,n;function r(t){var n;return aJ(iJ(n=e.call(this,t)||this),"_forceFlag",void 0),aJ(iJ(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;uJ(t)||("production"!==process.env.NODE_ENV?cJ(!1,"node is not an Element"):cJ(!1));var r=t;return n?!function(e){return lJ?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},lJ?sJ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):sJ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return lJ?sJ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):sJ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):sJ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(sJ.Component),pJ=fJ,dJ=WY;var hJ=function(e){return!(!e||!e.ownerDocument)&&(dJ(e)&&"BR"===e.nodeName)};var gJ=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))},yJ=gJ;var vJ=function(e){return yJ(e)&&3==e.nodeType},mJ=vJ;var bJ=function e(t,n){return!(!t||!n)&&(t===n||!mJ(t)&&(mJ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var wJ=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}},xJ=pX,_J=bJ,CJ=wJ,OJ=$Y,SJ=vW,kJ=WY,EJ=KY.isBrowser("IE");function jJ(e,t){if(!e)return"[empty]";var n=AJ(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(kJ(n)||("production"!==process.env.NODE_ENV?SJ(!1,"Node must be an Element if it is not a text node."):SJ(!1)),n.outerHTML)}function AJ(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return OJ(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(AJ(i[a],t));return o}function TJ(e,t){for(var n=e,r=n;n;){if(kJ(n)&&r.hasAttribute("contenteditable"))return jJ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function PJ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function MJ(e,t,n,r){var o=CJ();if(e.extend&&null!=t&&_J(o,t)){n>PJ(t)&&xJ.logSelectionStateFailure({anonymizedDom:TJ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw xJ.logSelectionStateFailure({anonymizedDom:TJ(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function DJ(e,t,n,r){var o=OJ(t).createRange();if(n>PJ(t)&&xJ.logSelectionStateFailure({anonymizedDom:TJ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),EJ)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var RJ=function(e,t,n,r,o){var i=OJ(t);if(_J(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),DJ(a,t,c-r,e),void MJ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),DJ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),DJ(a,t,c-r,e),MJ(a,y,v,e)}}else h&&(a.removeAllRanges(),DJ(a,t,c-r,e)),g&&MJ(a,t,l-r,e)}},IJ=_g;var NJ,LJ,BJ=pJ,FJ=t,zJ=vW,VJ=hJ,HJ=RJ,UJ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?zJ(!1,"Missing node"):zJ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?zJ(!1,"Missing child"):zJ(!1)),u.nodeType===Node.TEXT_NODE?c=u:VJ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?zJ(!1,"Missing targetNode"):zJ(!1)),HJ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?zJ(!1,"Missing leafNode"):zJ(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),IJ(e,r,n)}),{});if(i){var u=i(s,t);c=IJ(c,u)}return FJ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},FJ.createElement(BJ,null,n))},r}(FJ.Component),KJ=UJ;function $J(){if(LJ)return NJ;LJ=1;var e=oJ(),n=KJ,r=lX,o=t,i=aY;v$.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(y,i,t),l=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:l,selection:d?h:null,forceSelection:p,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return NJ=a}function WJ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var qJ={getTop:function(e){var t=e.ownerDocument;return WJ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;WJ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return WJ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;WJ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},GJ=/-(.)/g;var ZJ=function(e){return e.replace(GJ,(function(e,t){return t.toUpperCase()}))},YJ=/([A-Z])/g;var XJ=function(e){return e.replace(YJ,"-$1").toLowerCase()},JJ=ZJ,QJ=XJ;function eQ(e){return null==e?e:String(e)}var tQ=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return eQ(n.getPropertyValue(QJ(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return eQ(n.getPropertyValue(QJ(t)));if("display"===t)return"none"}return e.currentStyle?eQ("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[JJ(t)]):eQ(e.style&&e.style[JJ(t)])};function nQ(e,t){var n=rQ.get(e,t);return"auto"===n||"scroll"===n}var rQ={get:tQ,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(nQ(e,"overflow")||nQ(e,"overflowY")||nQ(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},oQ=rQ,iQ=bJ;var aQ=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!iQ(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 sQ=function(e){var t=aQ(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},cQ="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var uQ=function(e){return(e=e||document).scrollingElement?e.scrollingElement:cQ||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},lQ=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 fQ=function(e){var t=uQ(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=lQ(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function pQ(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function dQ(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function hQ(){return{width:window.innerWidth||pQ(),height:window.innerHeight||dQ()}}hQ.withoutScrollbars=function(){return{width:pQ(),height:dQ()}};var gQ,yQ,vQ,mQ,bQ=hQ;function wQ(){if(yQ)return gQ;yQ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=$J(),a=lX,s=t,c=qJ,u=oQ,l=sQ,f=fQ,p=bQ,d=vW,h=dX;v$.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},y=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}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",s.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=u.getScrollParent(n),i=f(o);if(o===window){var a=l(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?d(!1,"blockNode is not an HTMLElement"):d(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,u=t.blockRendererFn,l=t.blockStyleFn,f=t.contentState,p=t.decorator,d=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,_=t.direction,C=t.forceSelection,O=t.selection,S=t.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),p=v(i,u),g=p.CustomComponent||w,b=y(i,c),x=b.Element,_=b.wrapperTemplate,C=m(i,d,o,l,p,null),O=r({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,C,s.createElement(g,O))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(s.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},p))}(_,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=v(o,u),T=A.CustomComponent,P=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:p,direction:_,forceSelection:C,hasSelection:g(O,E),selection:O,tree:S});if(o.getParentKey())return P;var M=y(o,c).Element,D=m(o,d,j,l,A,this.wrapperRef);return s.createElement(M,D,P)},w}(s.Component);return gQ=b}var xQ=_g;function _Q(){return _Q=xQ||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},_Q.apply(this,arguments)}var CQ,OQ,SQ,kQ,EQ=KJ,jQ=lX,AQ=t,TQ=qJ,PQ=oQ,MQ=nZ,DQ=$G,RQ=aY,IQ=sQ,NQ=fQ,LQ=bQ,BQ=vW,FQ=dX,zQ=uZ,VQ=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},HQ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||VQ(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=PQ.getScrollParent(n),i=NQ(o);if(o===window){var a=IQ(n);(r=a.y+a.height-LQ().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{FQ(n)||("production"!==process.env.NODE_ENV?BQ(!1,"blockNode is not an HTMLElement"):BQ(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&TQ.setTop(o,TQ.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=VQ(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=jQ.encode(n,s,c),f=a.get("start"),p=a.get("end");return AQ.createElement(EQ,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=zQ(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=jQ.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=DQ.getHTMLDirIfDifferent(MQ.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 AQ.createElement(d,_Q({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=RQ({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return AQ.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(AQ.Component),UQ=HQ;var KQ=dG("draft_tree_data_support")?function(){if(mQ)return vQ;mQ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=wQ(),o=lX,i=t,a=uZ,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var u=c.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},_)),wrapperTemplate:C,key:x,offsetKey:o.encode(x,0,0)});var 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 j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);S.push(A)}else S.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},S)},c}(i.Component);return vQ=s}():function(){if(kQ)return SQ;kQ=1;var e=_g;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=UQ,a=lX,s=t,c=aY,u=(OQ||(OQ=1,CQ=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),CQ),l=uZ,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var p=c.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),O=[],S=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),P=o(j),M=void 0,D=void 0,R=void 0;P&&(M=P.component,D=P.props,R=P.editable);var I=v||_.get(A),N=a.encode(A,0,0),L={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:I,forceSelection:w,offsetKey:N,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,V=j.getDepth(),H="";if(c&&(H=c(j)),"li"===z)H=u(H,f(T,V,k!==F||null===S||V>S,I));var U=M||i,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":N,key:A};void 0!==R&&(K=r({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var $=s.createElement(z,K,s.createElement(U,n({},L,{key:A})));O.push({block:$,wrapperTemplate:F,key:A,offsetKey:N}),S=F?j.getDepth():null,k=F}for(var W=[],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);W.push(Y)}else W.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return SQ=p}(),$Q={isImage:function(e){return"image"===WQ(e)[0]},isJpeg:function(e){var t=WQ(e);return $Q.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function WQ(e){return e.split("/")}var qQ=$Q,GQ=vW;var ZQ=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?GQ(!1,"toArray: Array-like object expected"):GQ(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?GQ(!1,"toArray: Object needs a length property"):GQ(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?GQ(!1,"toArray: Object should have keys for indices"):GQ(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?GQ(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):GQ(!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 YQ(e){return function(){return e}}var XQ=function(){};XQ.thatReturns=YQ,XQ.thatReturnsFalse=YQ(!1),XQ.thatReturnsTrue=YQ(!0),XQ.thatReturnsNull=YQ(null),XQ.thatReturnsThis=function(){return this},XQ.thatReturnsArgument=function(e){return e};var JQ=XQ,QQ=qQ,e1=ZQ,t1=JQ,n1=new RegExp("\r\n","g"),r1={"text/rtf":1,"text/html":1};function o1(e){if("file"==e.kind)return e.getAsFile()}var i1=function(){function e(e){this.data=e,this.types=e.types?e1(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return r1[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(n1,"\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(!QQ.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(o1).filter(t1.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),a1=i1,s1=vW,c1=/\.textClipping$/,u1={"text/plain":!0,"text/html":!0,"text/rtf":!0},l1=5e3;var f1=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!s.FileReader||e.type&&!(e.type in u1))return void t("");if(""===e.type){var n="";return c1.test(e.name)&&(n=e.name.replace(c1,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?s1(!1,'We should be calling "FileReader.readAsText" which returns a string'):s1(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,l1)),n==e.length&&t(r.join("\r"))}))}))};var p1=function(e){return"handled"===e||!0===e},d1=a1,h1=Lq,g1=PZ,y1=XY,v1=$Y,m1=f1,b1=bX,w1=JY,x1=p1,_1=uZ;var C1={onDragEnd:function(e){e.exitCurrentMode(),O1(e)},onDrop:function(e,t){var n=new d1(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=v1(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=_1(n),r=_1(r);var a=_1(y1(n));return b1(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&x1(e.props.handleDroppedFiles(o,i)))return;m1(i,(function(t){t&&e.update(S1(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&x1(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=h1.moveText(e.getCurrentContent(),e.getSelection(),t);return g1.push(e,n,"insert-fragment")}(r,o)):e.update(S1(r,o,n.getText()))),O1(e)}}}};function O1(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:w1(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function S1(e,t,n){var r=h1.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return g1.push(e,r,"insert-fragment")}var k1=C1;var E1=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{p(e),u=!1}}}}}("undefined"==typeof self?s:self);var j1=s.setImmediate,A1=Lq,T1=PZ,P1=FX,M1=p1,D1=E1,R1=uZ,I1=j1,N1="'",L1="/",B1=KY.isBrowser("Firefox");function F1(e,t,n,r,o){var i=A1.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return T1.push(e,i,"insert-characters",o)}var z1=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&&M1(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(F1(n,r,n.getCurrentInlineStyle(),P1(n.getCurrentContent(),n.getSelection()),!0));var s,c=F1(n,r,n.getCurrentInlineStyle(),P1(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=D1(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),u=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=B1&&(s==N1||s==L1)),u||(u=R1(c.getDirectionMap()).get(a)!==R1(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=T1.set(c,{forceSelection:!0}),void e.update(c);c=T1.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,I1((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},V1=PZ,H1=bJ,U1=wJ;var K1=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&U1(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&H1(o,r.anchorNode)&&H1(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(V1.acceptSelection(i,s))}},$1=PZ;var W1=function(e,t){e.setMode("composite"),e.update($1.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},q1=FW;var G1=function(e){var t=e.getSelection();return t.isCollapsed()?null:q1(e.getCurrentContent(),t)},Z1=G1;var Y1=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(Z1(e._latestEditorState))};var X1=Lq,J1=PZ,Q1=oQ,e0=G1,t0=fQ,n0=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 r0=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(n0(i)){var a=i;n=t0(Q1.getScrollParent(a))}var s=e0(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=X1.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return J1.push(e,t,"remove-range")}(r))}),0)}};var o0=function(e,t){e.setMode("drag"),t.preventDefault()};var i0=function(e){e._internalDrag=!0,e.setMode("drag")},a0=PZ,s0=KY;var c0=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),s0.isBrowser("Chrome < 60.0.3081.0")?e.update(a0.forceSelection(n,o)):e.update(a0.acceptSelection(n,o))}},u0=vW,l0=55296,f0=56319,p0=56320,d0=57343,h0=/[\uD800-\uDFFF]/;function g0(e){return l0<=e&&e<=d0}function y0(e){return h0.test(e)}function v0(e,t){return 1+g0(e.charCodeAt(t))}function m0(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!y0(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=v0(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=v0(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=v0(e,i);return e.substring(o,i)}var b0={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=v0(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:v0,hasSurrogateUnit:y0,isCodeUnitInSurrogateRange:g0,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?u0(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):u0(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return l0<=n&&n<=f0&&p0<=r&&r<=d0},strlen:function(e){if(!y0(e))return e.length;for(var t=0,n=0;n<e.length;n+=v0(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 m0(e,t=t<n?t:n,r)},substr:m0},w0=b0,x0=JQ;function _0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var C0="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];_0.apply(void 0,[t].concat(r))}}:x0,O0=C0,S0=O0;var k0=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&S0(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},E0=Lq,j0=dG("draft_tree_data_support");var A0=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(j0&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(j0)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return E0.removeRange(o,i,n)},T0=PZ,P0=w0,M0=k0,D0=A0;var R0=function(e){var t=D0(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return M0(e,i?P0.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return T0.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},I0=Lq,N0=lX,L0=PZ,B0=NX.notEmptyKey,F0=XY,z0=R0,V0=uZ,H0=KY.isEngine("Gecko"),U0="\n\n";var K0=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,u=e._latestEditorState,l=V0(F0(r)),f=N0.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(U0)&&(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),j=B0(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",P=I0.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(H0)x=n.anchorOffset,_=n.focusOffset,O=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=O;else{var M=c.length-w.length;C=S.getStartOffset(),O=S.getEndOffset(),x=o?O+M:C,_=O+M}var D=P.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(L0.push(u,D,T))}else{var R=t.nativeEvent.inputType;if(R){var I=function(e,t){return"deleteContentBackward"===e?z0(t):t}(R,u);if(I!==u)return e.restoreEditorDOM(),void e.update(I)}}}},$0=fX;var W0=function(e){return e.which===$0.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},q0=W0,G0=KY.isPlatform("Mac OS X"),Z0={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return G0&&e.altKey},usesMacOSHeuristics:function(){return G0},hasCommandModifier:function(e){return G0?!!e.metaKey&&!e.altKey:Z0.isCtrlKeyCommand(e)},isSoftNewlineEvent:q0},Y0=Z0,X0=Lq,J0=PZ,Q0=FW,e2=uZ,t2=null,n2={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=e2(r),t2=Q0(t,r);var s=X0.removeRange(t,r,"forward");return s===t?e:J0.push(e,s,"remove-range")},paste:function(e){if(!t2)return e;var t=X0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t2);return J0.push(e,t,"insert-fragment")}},r2=vW;var o2=KY.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?r2(!1,"Found an unexpected detached subtree when getting range client rects."):r2(!1)}:function(e){return Array.from(e.getClientRects())},i2=o2,a2=w0,s2=$Y,c2=i2,u2=vW;function l2(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function f2(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 p2=function(e){e.collapsed||("production"!==process.env.NODE_ENV?u2(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):u2(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=s2(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?u2(!1,"Missing document.body"):u2(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);l2(c2(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?u2(!1,"Found unexpected detached subtree when traversing."):u2(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&a2.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!l2(c2(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=f2(i=i.childNodes[c])}return e.setStart(r,o),e},d2=PZ,h2=p2,g2=jX,y2=k0,v2=A0;var m2=function(e,t){var n=v2(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return y2(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=h2(r),g2(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:d2.push(e,n,"remove-range")},b2="['‘’]",w2="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),x2=new RegExp("^(?:"+w2+")*(?:"+b2+"|(?!"+w2+").)*(?:(?!"+w2+").)"),_2=new RegExp("(?:(?!"+w2+").)(?:"+b2+"|(?!"+w2+").)*(?:"+w2+")*$");function C2(e,t){var n=t?_2.exec(e):x2.exec(e);return n?n[0]:e}var O2={getBackward:function(e){return C2(e,!0)},getForward:function(e){return C2(e,!1)}},S2=O2,k2=PZ,E2=k0,j2=A0;var A2=O0;var T2=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&A2(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},P2=O2,M2=PZ,D2=T2,R2=A0;var I2=Lq,N2=PZ;var L2=PZ;var B2=PZ;var F2=PZ,z2=w0,V2=T2,H2=A0;var U2=Lq,K2=PZ,$2=FW;var W2=PZ;var q2=function(e,t,n){var r=W2.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(W2.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(W2.set(r,{nativelyRenderedContent:o}))}},G2=Lq,Z2=PZ,Y2=fX,X2=n2,J2=KY,Q2=p1,e5=m2,t5=function(e){var t=j2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return E2(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=S2.getBackward(o);return E2(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:k2.push(e,t,"remove-range")},n5=function(e){var t=R2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=P2.getForward(o);return D2(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:M2.push(e,t,"remove-range")},r5=function(e){var t=I2.splitBlock(e.getCurrentContent(),e.getSelection());return N2.push(e,t,"split-block")},o5=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return L2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},i5=function(e){var t=e.getSelection(),n=t.getStartKey();return B2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},a5=R0,s5=function(e){var t=H2(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return V2(e,i?z2.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return F2.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},c5=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=$2(a,r),u=U2.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=U2.replaceWithFragment(u,p,c),h=K2.push(e,d,"insert-fragment");return K2.acceptSelection(h,o)},u5=q2,l5=Y0.isOptionKeyCommand,f5=J2.isBrowser("Chrome");var p5=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case Y2.RETURN:if(t.preventDefault(),e.props.handleReturn&&Q2(e.props.handleReturn(t,r)))return;break;case Y2.ESC:if(t.preventDefault(),o("onEscape"))return;break;case Y2.TAB:if(o("onTab"))return;break;case Y2.UP:if(o("onUpArrow"))return;break;case Y2.RIGHT:if(o("onRightArrow"))return;break;case Y2.DOWN:if(o("onDownArrow"))return;break;case Y2.LEFT:if(o("onLeftArrow"))return;break;case Y2.SPACE:f5&&l5(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!Q2(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return Z2.redo(t);case"delete":return s5(t);case"delete-word":return n5(t);case"backspace":return a5(t);case"backspace-word":return t5(t);case"backspace-to-start-of-line":return e5(t,n);case"split-block":return r5(t);case"transpose-characters":return c5(t);case"move-selection-to-start-of-block":return i5(t);case"move-selection-to-end-of-block":return o5(t);case"secondary-cut":return X2.cut(t);case"secondary-paste":return X2.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else u5(t,r,e.update);else if(n===Y2.SPACE&&f5&&l5(t)){var s=G2.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(Z2.push(r,s,"insert-characters"))}};var d5=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}(),h5=d5,g5=vW,y5=KY.isBrowser("IE <= 9");var v5=function(e){var t,n=null;return!y5&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?g5(!1,"Missing doc.documentElement"):g5(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},m5=WY;var b5=function(e){return!(!e||!e.ownerDocument)&&(m5(e)&&"A"===e.nodeName)},w5=WY;var x5,_5=function(e){return!(!e||!e.ownerDocument)&&(w5(e)&&"IMG"===e.nodeName)};function C5(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){O5(e,t,n[t])}))}return e}function O5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S5=A$,k5=$$,E5=aW,j5=uY,A5=lG,T5=h5,P5=aY,M5=EW,D5=v5,R5=dG,I5=v$,N5=I5.List,L5=I5.Map,B5=I5.OrderedSet,F5=b5,z5=hJ,V5=dX,H5=_5,U5=R5("draft_tree_data_support"),K5=" ",$5=new RegExp("\r","g"),W5=new RegExp("\n","g"),q5=new RegExp("^\n","g"),G5=new RegExp(" ","g"),Z5=new RegExp(" ?","g"),Y5=new RegExp("​?","g"),X5=["bold","bolder","500","600","700","800","900"],J5=["light","lighter","normal","100","200","300","400"],Q5=["className","href","rel","target","title"],e3=["alt","className","height","src","width"],t3=(O5(x5={},P5("public/DraftStyleDefault/depth0"),0),O5(x5,P5("public/DraftStyleDefault/depth1"),1),O5(x5,P5("public/DraftStyleDefault/depth2"),2),O5(x5,P5("public/DraftStyleDefault/depth3"),3),O5(x5,P5("public/DraftStyleDefault/depth4"),4),x5),n3=L5({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),r3=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)}))})),L5(t)},o3=function(e){if(V5(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},i3=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(t3).some((function(n){e.classList.contains(n)&&(t=t3[n])})),t},a3=function(e){if(!F5(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 T5(t.href);return!0}catch(e){return!1}},s3=function(e){if(!H5(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},c3=function(e,t){if(!V5(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){X5.indexOf(r)>=0?e.add("BOLD"):J5.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},u3=function(e){return"ul"===e||"ol"===e},l3=function(){function e(e,t){O5(this,"characterList",N5()),O5(this,"currentBlockType","unstyled"),O5(this,"currentDepth",0),O5(this,"currentEntity",null),O5(this,"currentText",""),O5(this,"wrapper",null),O5(this,"blockConfigs",[]),O5(this,"contentBlocks",[]),O5(this,"entityMap",A5),O5(this,"blockTypeMap",void 0),O5(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=N5(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=A5,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],B5())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(U5?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=C5({key:e.key||M5(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:N5(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=N5(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||u3(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;u3(i)&&(this.wrapper=i,u3(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(s3(o))this._addImgNode(o,t);else if(a3(o))this._addAnchorNode(o,n,t);else{var u=t;n3.has(i)&&(u=u.add(n3.get(i))),u=c3(o,u);var l=o3(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!U5&&V5(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=i3(d,this.currentDepth)}var h=M5(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=S5.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=N5()):(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(q5,"")).replace(W5,K5)),this._appendText(n,t)},t._addBreakNode=function(e,t){z5(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(H5(e)){var n=e,r={};e3.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),R5("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(F5(e)){var r=e,o={};Q5.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new T5(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=N5(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new E5(C5({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return N5(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new k5(C5({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=N5(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),f3=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j5,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:D5)(e=e.trim().replace($5,"").replace(G5,K5).replace(Z5,"").replace(Y5,""));if(!n)return null;var r=r3(t);return new l3(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function p3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d3=$$,h3=aW,g3=f3,y3=EW,v3=v5,m3=dG,b3=v$,w3=gG,x3=b3.List,_3=b3.Repeat,C3=m3("draft_tree_data_support"),O3=C3?h3:d3,S3={processHTML:function(e,t){return g3(e,v3,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=w3(r);var i=y3(),a={key:i,type:n,text:r,characterList:x3(_3(t,r.length))};if(C3&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p3(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new O3(a)),e}),[])}};var k3=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},E3=Lq,j3=PZ,A3=k3,T3=uZ,P3={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 P3.toggleInlineStyle(e,"BOLD");case"italic":return P3.toggleInlineStyle(e,"ITALIC");case"underline":return P3.toggleInlineStyle(e,"UNDERLINE");case"code":return P3.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return P3.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return P3.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=E3.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=j3.push(e,t,"insert-characters");return j3.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return j3.push(e,a,"remove-range")}var s=P3.tryToRemoveBlockStyle(e);return s?j3.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=E3.removeRange(n,a,"forward");return s!==n?j3.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=A3(i,r,e.shiftKey?-1:1,n);return j3.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=T3(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return j3.push(e,E3.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?P3.toggleBlockType(e,"code-block"):P3.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return j3.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?E3.removeInlineStyle(i,n,t):E3.applyInlineStyle(i,n,t),j3.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=E3.applyEntity(e.getCurrentContent(),t,n);return j3.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return E3.setBlockType(o,t,"unstyled")}return null}},M3=P3,D3=/\r\n?|\n/g;var R3=b$,I3=A$,N3=a1,L3=Lq,B3=S3,F3=PZ,z3=M3,V3=FX,H3=f1,U3=p1,K3=function(e){return e.split(D3)};function $3(e,t,n){var r=L3.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return F3.push(e,r.set("entityMap",n),"insert-fragment")}var W3=function(e,t){t.preventDefault();var n=new N3(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&U3(e.props.handlePastedFiles(r)))return;return void H3(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=K3(t),i=I3.create({style:n.getCurrentInlineStyle(),entity:V3(n.getCurrentContent(),n.getSelection())}),a=z3.getCurrentBlockType(n),s=B3.processText(r,i,a),c=R3.createFromArray(s),u=L3.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(F3.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!U3(e.props.handlePastedText(a,s,c))){if(a&&(i=K3(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update($3(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update($3(e._latestEditorState,f));if(s){var p=B3.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=R3.createFromArray(d);return void e.update($3(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=I3.create({style:c.getCurrentInlineStyle(),entity:V3(c.getCurrentContent(),c.getSelection())}),v=z3.getCurrentBlockType(c),m=B3.processText(i,y,v),b=R3.createFromArray(m);e.update($3(e._latestEditorState,b))}}},q3=KY,G3=z1,Z3=K1,Y3=W1,X3=Y1,J3=r0,Q3=o0,e4=i0,t4=c0,n4=K0,r4=p5,o4=W3,i4=IX,a4=q3.isBrowser("Chrome"),s4=q3.isBrowser("Firefox"),c4=a4||s4?i4:function(e){},u4={onBeforeInput:G3,onBlur:Z3,onCompositionStart:Y3,onCopy:X3,onCut:J3,onDragOver:Q3,onDragStart:e4,onFocus:t4,onInput:n4,onKeyDown:r4,onPaste:o4,onSelect:i4,onMouseUp:c4,onKeyUp:c4},l4=r.unstable_flushControlled;var f4=t,p4=aY,d4=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=p4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return f4.createElement("div",{className:t},f4.createElement("div",{className:p4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(f4.Component),h4=d4,g4=Y0,y4=fX,v4=KY,m4=v4.isPlatform("Mac OS X"),b4=m4&&v4.isBrowser("Firefox < 29"),w4=g4.hasCommandModifier,x4=g4.isCtrlKeyCommand;function _4(e){return m4&&e.altKey||x4(e)}var C4=function(e){switch(e.keyCode){case 66:return w4(e)?"bold":null;case 68:return x4(e)?"delete":null;case 72:return x4(e)?"backspace":null;case 73:return w4(e)?"italic":null;case 74:return w4(e)?"code":null;case 75:return m4&&x4(e)?"secondary-cut":null;case 77:case 79:return x4(e)?"split-block":null;case 84:return m4&&x4(e)?"transpose-characters":null;case 85:return w4(e)?"underline":null;case 87:return m4&&x4(e)?"backspace-word":null;case 89:return x4(e)?m4?"secondary-paste":"redo":null;case 90:return function(e){return w4(e)?e.shiftKey?"redo":"undo":null}(e)||null;case y4.RETURN:return"split-block";case y4.DELETE:return function(e){return!m4&&e.shiftKey?null:_4(e)?"delete-word":"delete"}(e);case y4.BACKSPACE:return function(e){return w4(e)&&m4?"backspace-to-start-of-line":_4(e)?"backspace-word":"backspace"}(e);case y4.LEFT:return b4&&w4(e)?"move-selection-to-start-of-block":null;case y4.RIGHT:return b4&&w4(e)?"move-selection-to-end-of-block":null;default:return null}},O4=_g;function S4(){return S4=O4||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},S4.apply(this,arguments)}function k4(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){j4(e,t,n[t])}))}return e}function E4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var T4=uY,P4=lY,M4=rJ,D4=KQ,R4=k1,I4=u4,N4=l4,L4=h4,B4=PZ,F4=t,z4=qJ,V4=oQ,H4=aY,U4=EW,K4=C4,$4=fQ,W4=dG,q4=vW,G4=dX,Z4=uZ,Y4=KY.isBrowser("IE"),X4=!Y4,J4={edit:I4,composite:M4,drag:R4,cut:null,render:null},Q4=!1,e9=function(e){function t(){return e.apply(this,arguments)||this}A4(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}(F4.Component),t9=function(e){function t(t){var n;return j4(E4(n=e.call(this,t)||this),"_blockSelectEvents",void 0),j4(E4(n),"_clipboard",void 0),j4(E4(n),"_handler",void 0),j4(E4(n),"_dragCount",void 0),j4(E4(n),"_internalDrag",void 0),j4(E4(n),"_editorKey",void 0),j4(E4(n),"_placeholderAccessibilityID",void 0),j4(E4(n),"_latestEditorState",void 0),j4(E4(n),"_latestCommittedEditorState",void 0),j4(E4(n),"_pendingStateFromBeforeInput",void 0),j4(E4(n),"_onBeforeInput",void 0),j4(E4(n),"_onBlur",void 0),j4(E4(n),"_onCharacterData",void 0),j4(E4(n),"_onCompositionEnd",void 0),j4(E4(n),"_onCompositionStart",void 0),j4(E4(n),"_onCopy",void 0),j4(E4(n),"_onCut",void 0),j4(E4(n),"_onDragEnd",void 0),j4(E4(n),"_onDragOver",void 0),j4(E4(n),"_onDragStart",void 0),j4(E4(n),"_onDrop",void 0),j4(E4(n),"_onInput",void 0),j4(E4(n),"_onFocus",void 0),j4(E4(n),"_onKeyDown",void 0),j4(E4(n),"_onKeyPress",void 0),j4(E4(n),"_onKeyUp",void 0),j4(E4(n),"_onMouseDown",void 0),j4(E4(n),"_onMouseUp",void 0),j4(E4(n),"_onPaste",void 0),j4(E4(n),"_onSelect",void 0),j4(E4(n),"editor",void 0),j4(E4(n),"editorContainer",void 0),j4(E4(n),"focus",void 0),j4(E4(n),"blur",void 0),j4(E4(n),"setMode",void 0),j4(E4(n),"exitCurrentMode",void 0),j4(E4(n),"restoreEditorDOM",void 0),j4(E4(n),"setClipboard",void 0),j4(E4(n),"getClipboard",void 0),j4(E4(n),"getEditorKey",void 0),j4(E4(n),"update",void 0),j4(E4(n),"onDragEnter",void 0),j4(E4(n),"onDragLeave",void 0),j4(E4(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),j4(E4(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=V4.getScrollParent(o),a=e||$4(i),s=a.x,c=a.y;G4(o)||("production"!==process.env.NODE_ENV?q4(!1,"editorNode is not an HTMLElement"):q4(!1)),o.focus(),i===window?window.scrollTo(s,c):z4.setTop(i,c),r||n.update(B4.forceSelection(t,t.getSelection()))}})),j4(E4(n),"blur",(function(){var e=n.editor;e&&(G4(e)||("production"!==process.env.NODE_ENV?q4(!1,"editorNode is not an HTMLElement"):q4(!1)),e.blur())})),j4(E4(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=k4({},J4.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=k4({},J4,{edit:a});n._handler=s[e]})),j4(E4(n),"exitCurrentMode",(function(){n.setMode("edit")})),j4(E4(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),j4(E4(n),"setClipboard",(function(e){n._clipboard=e})),j4(E4(n),"getClipboard",(function(){return n._clipboard})),j4(E4(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),j4(E4(n),"onDragEnter",(function(){n._dragCount++})),j4(E4(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||U4(),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}A4(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&&(N4?N4((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:Z4(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return F4.createElement(L4,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=H4({"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:k4({},P4,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return F4.createElement("div",{className:f},this._renderPlaceholder(),F4.createElement("div",{className:H4("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},F4.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:H4({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:X4&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},F4.createElement(e9,{editor:this,editorState:a}),F4.createElement(D4,S4({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Q4&&W4("draft_ods_enabled")&&(Q4=!0),this.setMode("edit"),Y4&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):s.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(F4.Component);j4(t9,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:T4,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:K4,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var n9=t9,r9={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},o9=r9,i9=w0.strlen;var a9=w0,s9=T$,c9=function(e,t){return e===t},u9=function(e){return!!e},l9=[];var f9=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return s9(o,c9,u9,(function(t,o){var i=e.getText();r.push({offset:a9.strlen(i.slice(0,t)),length:a9.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(l9,n.toJS())};function p9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d9=$$,h9=aW,g9=r9,y9=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:i9(i.slice(0,r)),length:i9(i.slice(r,o)),key:Number(t[o9.stringify(a)])})})),n},v9=f9,m9=vW,b9=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:v9(e),entityRanges:y9(e,t),data:e.getData().toObject()}},w9=function(e,t,n,r){if(e instanceof d9)n.push(b9(e,t));else{e instanceof h9||("production"!==process.env.NODE_ENV?m9(!1,"block is not a BlockNode"):m9(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p9(e,t,n[t])}))}return e}({},b9(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},x9=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=g9.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),w9(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(g9.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function _9(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){C9(e,t,n[t])}))}return e}function C9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O9=EW,S9=vW,k9=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},E9={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?S9(!1,"Invalid raw state"):S9(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?S9(!1,"Invalid tree raw block"):S9(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=_9({},e);k9(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?_9({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,_9({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=k9(e),o=e.depth||0,i=_9({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:O9(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),_9({},e,{blocks:t})}},j9=O0,A9={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&&j9(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&j9(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&j9(!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&&j9(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&j9(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&j9(!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&&j9(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&j9(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&j9(!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)}},T9=A9,P9=A$,M9=v$.List;var D9=function(e,t){var n=e.map((function(e,n){var r=t[n];return P9.create({style:e,entity:r})}));return M9(n)},R9=w0.substr;var I9=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=R9(e,0,t.offset).length,o=r+R9(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},N9=w0,L9=v$.OrderedSet,B9=N9.substr,F9=L9();var z9=function(e,t){var n=Array(e.length).fill(F9);return t&&t.forEach((function(t){for(var r=B9(e,0,t.offset).length,o=r+B9(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function V9(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){H9(e,t,n[t])}))}return e}function H9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U9=$$,K9=aW,$9=LG,W9=lG,q9=E9,G9=T9,Z9=pG,Y9=D9,X9=I9,J9=z9,Q9=EW,e6=v$,t6=vW,n6=dG("draft_tree_data_support"),r6=e6.List,o6=e6.Map,i6=e6.OrderedMap,a6=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||Q9(),data:o6(o),characterList:s6(e,t)}},s6=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return Y9(J9(n,o||[]),X9(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return V9({},e,{key:t[e.key]})}))))},c6=function(e){return V9({},e,{key:e.key||Q9()})},u6=function(e,t,n){var r=t.map((function(e){return V9({},e,{parentRef:n})}));return e.concat(r.reverse())},l6=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=n6&&!n?q9.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!n6)return function(e,t){return i6(e.map((function(e){var n=new U9(a6(e,t));return[n.getKey(),n]})))}(n?q9.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(c6).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?t6(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):t6(!1));var i=r.children.map(c6),a=new K9(V9({},a6(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:r6(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=u6([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?t6(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):t6(!1));break}var d=c.children.map(c6),h=new K9(V9({},a6(c,t),{parent:u.getKey(),children:r6(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=u6(s,d,h)}return n}),i6())}(r,t);return"production"!==process.env.NODE_ENV&&(G9.isValidTree(o)||("production"!==process.env.NODE_ENV?t6(!1,"Should be a valid tree"):t6(!1))),o},f6=i2;var p6=function(e){var t=f6(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},d6=p6;var h6=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=d6(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},g6={Editor:n9,EditorBlock:UQ,EditorState:PZ,CompositeDecorator:oY,Entity:lG,EntityInstance:eG,BlockMapBuilder:b$,CharacterMetadata:A$,ContentBlock:$$,ContentState:LG,RawDraftContentState:{},SelectionState:pG,AtomicBlockUtils:tY,KeyBindingUtil:Y0,Modifier:Lq,RichUtils:M3,DefaultDraftBlockRenderMap:uY,DefaultDraftInlineStyle:lY,convertFromHTML:f3,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?t6(!1,"invalid RawDraftContentState"):t6(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=W9.__create(o,i,a||{})})),n}(e),n=l6(e,t),r=n.isEmpty()?new Z9:Z9.createEmpty(n.first().getKey());return new $9({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:x9,genKey:EW,getDefaultKeyBinding:C4,getVisibleSelectionRect:h6};const y6="FOUND_FIELD",v6="NOT_FOUND",m6="IMMUTABLE",b6=X.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),w6=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},x6=new g6.CompositeDecorator([{strategy:(e,t,n)=>w6(e,t,n,y6),component:({children:t})=>e.jsx(b6,{children:t})},{strategy:(e,t,n)=>w6(e,t,n,v6),component:({children:t})=>e.jsx(b6,Object.assign({error:!0},{children:t}))}]),_6=(e,t,n)=>{const r=ct.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},C6=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=ct.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=_6(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?y6:v6,mutability:m6,data:{id:i}}}o.text+=a}return g6.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return g6.EditorState.createWithContent(r,x6)},O6=(e,t=!0)=>{const n=e.getCurrentContent(),r=g6.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=ct.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},S6=e=>{const t=O6(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},k6=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new g6.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return g6.EditorState.forceSelection(e,o)},E6=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:s,onFocus:c,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:p,height:d,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:O,backgroundColor:S,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M}=n,D=a(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,I]=t.useState((()=>C6(o,l,m))),{focused:N,handleFocus:L,handleBlur:B}=Br(c,u),[F,z]=t.useState(!1),V=t.useRef(null),H=t.useRef(),U=null!=h?h:d,K=U?U-(g?0:_?29:11):void 0,$=e=>{I(e);const t=(e=>S6(e).some((e=>e.type===v6)))(e);z(t);const n=O6(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=_6(e,t,r),u=c?y6:v6,l=i.createEntity(u,m6,{id:o}).getLastCreatedEntityKey(),f=g6.Modifier.insertText(i,a,s,void 0,l),p=g6.EditorState.push(n,f,"insert-characters");return g6.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,R,m);$(t)},q=()=>{(null==V?void 0:V.current)&&V.current.focus();const e=k6(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:q})));t.useEffect((()=>{O6(R)!==o&&(e=>{const t=R.getSelection(),n=C6(e,l,m),r=k6(n),o=t.getHasFocus()?r:n;$(o)})(o)}),[o]),t.useEffect((()=>{H.current=l}),[]),t.useEffect((()=>{const{current:e}=H,t=ct.isEqual(e,l),n=S6(R);if(!t&&n.length>0){H.current=l;const e=C6(o,l,m);$(e)}}),[l]);return e.jsx(j6,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:p,height:d,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:Fr(o),invalid:F,textOnly:E,borderRadius:O,backgroundColor:S,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M,focused:N,disabled:C,hasLabel:!!_,hideEditor:!Fr(o)&&!!_&&!N},{children:e.jsxs(Vr,Object.assign({readOnly:v},{children:[_&&e.jsx(Hr,Object.assign({filled:Fr(o),focused:N,disabled:C},{children:_})),e.jsx(g6.Editor,Object.assign({ref:V,editorState:R,onChange:$,placeholder:f,readOnly:v,handleReturn:e=>{const t=g6.RichUtils.insertSoftNewline(R);return e.shiftKey||!s?$(t):s(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=g6.convertFromRaw({blocks:[o],entityMap:{}}),a=g6.EditorState.createWithContent(i,x6).getCurrentContent().getBlockMap(),s=g6.Modifier.replaceWithFragment(n,r,a);return g6.EditorState.push(t,s,"insert-fragment")})(e,n);return $(r),"handled"},onFocus:L,onBlur:B},D))]}))}))})),j6=X(zr)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),A6=X.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,width:l,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));A6.Item=X.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const T6=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=t,d=a(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return e.jsxs(VK,Object.assign({htmlFor:n,labelRight:h,disabled:s},g,{children:[r&&e.jsx(UK,{children:r}),e.jsx(HK,Object.assign({id:n,type:"radio",checked:i,disabled:s},d)),e.jsx(on,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!s})]}))},P6=n=>{var{id:r,label:o,labelPosition:i,checked:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,g=a(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(s||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof s?s:m)}),[s,m]),e.jsxs(VK,Object.assign({htmlFor:r,labelRight:w,disabled:c},x,{children:[o&&e.jsx(UK,{children:o}),e.jsx(HK,Object.assign({id:r,type:"checkbox",checked:m,disabled:c,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(on,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!c,size:40})]}))},M6=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:s}=t,c=a(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(D6,Object.assign({as:s?void 0:"label",disabled:i,rightIcon:!!o,pill:s},c,{children:[r&&Kr(r,{marginRight:4,size:"small"}),n,o&&Kr(o,{marginLeft:4,size:"small"})]}))},D6=X.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),R6=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(I6,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:e=>{c?c(e):e.preventDefault()}},u,{children:n}))};R6.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,disabled:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(N6,Object.assign({rows:r,columns:o,rowGap:i,columnGap:s,disabled:c},u,{children:n}))},R6.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(L6,Object.assign({inline:n,align:r,disabled:o},{children:t})),R6.Input=$r,R6.Dropdown=oo,R6.Radio=T6,R6.Toggle=P6,R6.Checkbox=KK,R6.Label=M6;const I6=X(A6)({boxSizing:"border-box"}),N6=X(A6)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),L6=X.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"})),B6=X.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}))),F6=X.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),z6=X.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%)`}}))),V6=X.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),H6=X.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"}))),U6=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(K6,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Dr(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),K6=X.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}))),$6=X.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),W6=X.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),q6=X.div({marginLeft:"auto",marginRight:8});U6.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx($6,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),U6.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:p})=>{const[d,h]=t.useState(r||i),g=e=>Dr(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!d&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:p})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(W6,Object.assign({backgroundColor:p},{children:[e.jsxs($6,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),d||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(q6,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(on,{name:d?"chevron-up":"chevron-down",pointer:!0})}))]})),d&&y]}))};const G6=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:y}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(X6,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(on,{name:h,style:{marginRight:10},color:g}),e.jsx(J6,{children:r||p}),o&&e.jsx(on,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},Z6=X.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Y6=X.div((({theme:e})=>({fontWeight:e.font.weight.default})));G6.Header=Z6,G6.Body=Y6;const X6=X.div((({theme:e,borderColor:t,backgroundColor:n})=>({display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),J6=X.div({width:"100%"}),Q6=X.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),e7=X.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),t7=X.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),n7=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,preventOverlayClose:l,overlayColor:f,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S})=>{const k=at(l?()=>null:c,i),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S},j=Dr(n).map((e=>e?t.cloneElement(e,{inline:d}):null)),A=e.jsx(i7,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(r7,Object.assign({ref:k,width:a,height:s,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(o7,Object.assign({inline:d},{children:e.jsx(on,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};n7.Header=X.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),n7.Text=X.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),n7.Body=X.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),n7.Footer=X.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const r7=X.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),o7=X.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),i7=X.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),a7=X.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),s7=X.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),c7=X.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),u7=X.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}:{})),l7=X.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}))),f7=X.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),p7=X.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),d7=X.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),h7=e=>e?+e:0,g7=X.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),y7=X.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`}}))),v7=X(y7)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),m7=X(y7)((({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}))),b7=X.span((({theme:e})=>({color:e.scale6}))),w7=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u},f=(n-r)/2,p=f*Math.PI*2,d=p-p*t/100,h=n/2;return e.jsxs(x7,Object.assign({size:n},l,{children:[e.jsx(_7,{cx:h,cy:h,r:f,thickness:r}),e.jsx(C7,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:p,complete:d})]}))},x7=X.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),_7=X.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),C7=X(_7)((({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"}))),O7=X.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),S7=X.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var k7={};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){l&&o&&i&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function 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 j(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){c(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function P(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},R=null;function I(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function N(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function L(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&N(e,n,i)),t?o()-e.A>=e.w?I()&&N(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){L(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),L(this)};var z=null;function V(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):S(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)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 P(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new M(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 $(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,V(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),l(t.f,r,o)}k(t,"fontinactive",e),V(this)},H.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){U(e,i,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)p(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new H(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}({get exports(){return k7},set exports(e){k7=e}});var E7=k7;const j7=X.div((({width:e,height:t})=>({width:e,height:t}))),A7=X.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),T7=X.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),P7=X.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),M7=X.div({display:"flex",flexDirection:"column"}),D7=X.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),R7=X.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),I7=X.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"}}})),N7=X.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),L7=X.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),B7=t.createContext({}),F7=(t,n)=>{const r="th"===n?z7:V7;return Dr(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},z7=X.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),V7=X.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),H7=X(A6)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),U7=X.tbody((({height:e})=>({height:e,overflow:"auto"}))),K7=X(A6)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),$7=X.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),W7=X($7)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),q7=X($7)({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}}))),G7=n=>{var{children:r,columns:o,data:i}=n,s=a(n,["children","columns","data"]);const[c,u]=t.useState(i),[l,f]=t.useState(),p=i&&"function"==typeof r?r(c):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=ct.orderBy(i,t,n)}ct.isEqual(e,c)||u(e)}),[i,l]);const d=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(B7.Provider,Object.assign({value:d},{children:e.jsx(Z7,Object.assign({},s,{children:p}))}))};G7.Header=n=>{var{children:r,columns:o}=n,i=a(n,["children","columns"]);const{parentColumns:s}=t.useContext(B7),c=o||s||"equal";return e.jsx("thead",{children:e.jsx(H7,Object.assign({as:"tr",columns:c},i,{children:F7(r,"th")}))})},G7.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,u]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:p}=t.useContext(B7),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(e),p&&s){p("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||y(a)}),[]),t.useEffect((()=>{a&&u(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),e.jsxs(q7,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!d},{children:[r,d?e.jsx(on,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},G7.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(B7);return e.jsx(U7,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},G7.Row=n=>{var{children:r,columns:o,onClick:i}=n,s=a(n,["children","columns","onClick"]);const{parentColumns:c}=t.useContext(B7),u=o||c||"equal";return e.jsx(K7,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:F7(r,"td")}))},G7.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(W7,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const Z7=X.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Y7=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},O=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(e8,Object.assign({width:f,onMouseLeave:O,onMouseOver:O,onClick:O,style:a,onFocus:O},{children:[e.jsx(Q7,Object.assign({visible:x,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},X7=X.div((({theme:e})=>({color:e.tooltip.color.default}))),J7=X.div((({theme:e})=>({color:e.tooltip.color.subtext}))),Q7=X.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),e8=X.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));Y7.Header=X7,Y7.Body=J7;const t8="#0074F4",n8="#FF6068",r8="#FF9900",o8="#F0BB00",i8="#00C242",a8="#001D32",s8="#FFFFFF",c8={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:t8,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:rr(.95,t8),brandTint1:rr(.9,t8),brandTint2:rr(.8,t8),brandTint3:rr(.7,t8),brandTint4:rr(.6,t8),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:n8,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:rr(.95,n8),errorTint1:rr(.9,n8),errorTint2:rr(.8,n8),warning:r8,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:rr(.95,r8),warningTint1:rr(.9,r8),warningTint2:rr(.8,r8),alert:o8,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:rr(.95,o8),alertTint1:rr(.9,o8),alertTint2:rr(.8,o8),success:i8,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:rr(.95,i8),successTint1:rr(.9,i8),successTint2:rr(.8,i8),grayscale0:rr(.95,a8),grayscale1:rr(.9,a8),grayscale2:rr(.8,a8),grayscale3:rr(.7,a8),grayscale4:rr(.6,a8),grayscale5:rr(.5,a8),grayscale6:rr(.4,a8),grayscale7:rr(.3,a8),grayscale8:rr(.2,a8),grayscale9:rr(.1,a8),grayscale10:a8,contrast0:rr(.95,s8),contrast1:rr(.9,s8),contrast2:rr(.8,s8),contrast3:rr(.7,s8),contrast4:rr(.6,s8),contrast5:rr(.5,s8),contrast6:rr(.4,s8),contrast7:rr(.3,s8),contrast8:rr(.2,s8),contrast9:rr(.1,s8),contrast10:s8};var u8={color:c8,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:l8}=u8;var f8={small:{height:28,iconSize:18,font:l8.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:l8.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:l8.size.lg,padding:14,iconOnlyPadding:6}};const p8="#FFFFFF",d8=c8.grayscale0,h8=c8.grayscale1,g8=c8.grayscale2,y8=c8.grayscale3,v8=c8.grayscale4,m8=c8.grayscale5,b8=c8.grayscale6,w8=c8.grayscale7,x8=c8.grayscale8,_8=c8.grayscale9,C8=c8.grayscale10,O8=Object.assign(Object.assign({},u8),{name:"light",accent:c8.brand,accentShade:c8.brandShade1,background0:p8,background1:p8,background2:p8,background3:p8,background4:p8,background5:p8,scale0:d8,scale1:h8,scale2:g8,scale3:y8,scale4:v8,scale5:m8,scale6:b8,scale7:w8,scale8:x8,scale9:_8,scale10:C8,button:Object.assign(Object.assign({},f8),{primary:{color:{default:p8,hover:p8,active:p8},outlineColor:{default:C8,hover:C8,active:C8},background:{default:c8.brand,hover:c8.brandShade1,active:c8.brandShade2},outlineBackground:{default:c8.brandTint0,hover:c8.brandTint1,active:c8.brandTint2},border:{default:c8.brand,hover:c8.brandShade1,active:c8.brandShade2},divider:g8},secondary:{color:{default:C8,hover:C8,active:C8},outlineColor:{default:C8,hover:C8,active:C8},background:{default:h8,hover:g8,active:y8},outlineBackground:{default:h8,hover:g8,active:y8},border:{default:g8,hover:g8,active:g8},divider:g8},positive:{color:{default:p8,hover:p8,active:p8},outlineColor:{default:C8,hover:C8,active:C8},background:{default:c8.success,hover:c8.successShade1,active:c8.successShade2},outlineBackground:{default:c8.successTint0,hover:c8.successTint1,active:c8.successTint2},border:{default:c8.success,hover:c8.successShade1,active:c8.successShade2},divider:g8},negative:{color:{default:p8,hover:p8,active:p8},outlineColor:{default:C8,hover:C8,active:C8},background:{default:c8.error,hover:c8.errorShade1,active:c8.errorShade2},outlineBackground:{default:c8.errorTint0,hover:c8.errorTint1,active:c8.errorTint2},border:{default:c8.error,hover:c8.errorShade1,active:c8.errorShade2},divider:g8},caution:{color:{default:p8,hover:p8,active:p8},outlineColor:{default:C8,hover:C8,active:C8},background:{default:c8.warning,hover:c8.warningShade1,active:c8.warningShade2},outlineBackground:{default:c8.warningTint0,hover:c8.warningTint1,active:c8.warningTint2},border:{default:c8.warning,hover:c8.warningShade1,active:c8.warningShade2},divider:g8},subtle:{color:{default:c8.brand,hover:c8.brand,active:c8.brand},outlineColor:{default:c8.brand,hover:c8.brand,active:c8.brand},secondaryColor:{default:C8,hover:C8,active:C8},positiveColor:{default:c8.success,hover:c8.success,active:c8.success},negativeColor:{default:c8.error,hover:c8.error,active:c8.error},cautionColor:{default:c8.warning,hover:c8.warning,active:c8.warning},background:{default:"transparent",hover:h8,active:g8},outlineBackground:{default:"transparent",hover:h8,active:g8},border:{default:"transparent",hover:g8,active:g8},divider:g8},link:{color:{default:c8.brand,hover:c8.brandShade1,active:c8.brandShade2},outlineColor:{default:c8.brand,hover:c8.brandShade1,active:c8.brandShade2},secondaryColor:{default:x8,hover:_8,active:C8},positiveColor:{default:c8.success,hover:c8.successShade1,active:c8.successShade2},negativeColor:{default:c8.error,hover:c8.errorShade1,active:c8.errorShade2},cautionColor:{default:c8.warning,hover:c8.warningShade1,active:c8.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:v8,hover:v8,active:v8},outlineColor:{default:v8,hover:v8,active:v8},background:{default:h8,hover:h8,active:h8},outlineBackground:{default:d8,hover:d8,active:d8},border:{default:h8,hover:h8,active:h8},divider:h8},color:{default:p8}}),calendar:{background:{container:c8.contrast10,hover:h8,active:c8.brand,activeHover:c8.brandShade1},color:{disabled:v8,default:C8,active:c8.contrast10,current:c8.brand,outside:b8,weekday:x8,monthYear:x8,iconDefault:v8,iconHover:C8}},defaultBorder:`1px solid ${h8}`,formControl:{color:{default:x8,hover:C8,active:c8.brand,activeHover:c8.brandShade1,disabled:v8}},input:{borderRadius:4,background:{default:d8,hover:h8,focused:h8,disabled:d8},color:{default:C8,disabled:v8,placeholder:b8,description:b8,descriptionError:c8.error},borderColor:{default:b8,hover:x8,focused:c8.brand,disabled:v8,error:c8.error},labelColor:{default:x8,hover:x8,filled:b8,focused:c8.brand,disabled:v8}},menu:{background:p8},menuItem:{borderColor:c8.brand,background:{active:d8,hover:h8,inactive:"transparent"},color:{active:C8,hover:C8,inactive:b8}},modal:{background:c8.contrast10,color:{header:C8,body:b8}},options:{background:c8.contrast10},optionItem:{background:{active:h8,inactive:"transparent"},color:{active:C8,inactive:C8,accent:c8.brand}},table:{color:{header:b8,body:C8},borderColor:h8},toast:{color:C8,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:x8,info:c8.brand,success:c8.success,warning:c8.warning,error:c8.error}},toggle:{slider:c8.contrast10},tooltip:{background:"#FFF",color:{default:C8,subtext:b8}}}),S8=c8.contrast0,k8=c8.contrast1,E8=c8.contrast2,j8=c8.contrast3,A8=c8.contrast4,T8=c8.contrast5,P8=c8.contrast6,M8=c8.contrast7,D8=c8.contrast8,R8=c8.contrast9,I8=c8.contrast10,N8=c8.brandDark,L8={light:O8,dark:Object.assign(Object.assign({},u8),{name:"dark",accent:N8,accentShade:c8.brandDarkShade1,background0:c8.brandBackground0,background1:c8.brandBackground1,background2:c8.brandBackground2,background3:c8.brandBackground3,background4:c8.brandBackground4,background5:c8.brandBackground5,scale0:S8,scale1:k8,scale2:E8,scale3:j8,scale4:A8,scale5:T8,scale6:P8,scale7:M8,scale8:D8,scale9:R8,scale10:I8,button:Object.assign(Object.assign({},f8),{primary:{color:{default:I8,hover:I8,active:I8},outlineColor:{default:I8,hover:I8,active:I8},background:{default:c8.brand,hover:c8.brandShade1,active:c8.brandShade2},outlineBackground:{default:c8.brandTint0,hover:c8.brandTint1,active:c8.brandTint2},border:{default:c8.brand,hover:c8.brandShade1,active:c8.brandShade2},divider:E8},secondary:{color:{default:I8,hover:I8,active:I8},outlineColor:{default:I8,hover:I8,active:I8},background:{default:k8,hover:E8,active:j8},outlineBackground:{default:k8,hover:E8,active:j8},border:{default:E8,hover:E8,active:E8},divider:E8},positive:{color:{default:I8,hover:I8,active:I8},outlineColor:{default:I8,hover:I8,active:I8},background:{default:c8.success,hover:c8.successShade1,active:c8.successShade2},outlineBackground:{default:c8.successTint0,hover:c8.successTint1,active:c8.successTint2},border:{default:c8.success,hover:c8.successShade1,active:c8.successShade2},divider:E8},negative:{color:{default:I8,hover:I8,active:I8},outlineColor:{default:I8,hover:I8,active:I8},background:{default:c8.error,hover:c8.errorShade1,active:c8.errorShade2},outlineBackground:{default:c8.errorTint0,hover:c8.errorTint1,active:c8.errorTint2},border:{default:c8.error,hover:c8.errorShade1,active:c8.errorShade2},divider:E8},caution:{color:{default:I8,hover:I8,active:I8},outlineColor:{default:I8,hover:I8,active:I8},background:{default:c8.warning,hover:c8.warningShade1,active:c8.warningShade2},outlineBackground:{default:c8.warningTint0,hover:c8.warningTint1,active:c8.warningTint2},border:{default:c8.warning,hover:c8.warningShade1,active:c8.warningShade2},divider:E8},subtle:{color:{default:c8.brand,hover:c8.brand,active:c8.brand},outlineColor:{default:c8.brand,hover:c8.brand,active:c8.brand},secondaryColor:{default:I8,hover:I8,active:I8},positiveColor:{default:c8.success,hover:c8.success,active:c8.success},negativeColor:{default:c8.error,hover:c8.error,active:c8.error},cautionColor:{default:c8.warning,hover:c8.warning,active:c8.warning},background:{default:"transparent",hover:k8,active:E8},outlineBackground:{default:"transparent",hover:k8,active:E8},border:{default:"transparent",hover:E8,active:E8},divider:E8},link:{color:{default:c8.brandShade2,hover:c8.brandShade1,active:c8.brand},outlineColor:{default:c8.brandShade2,hover:c8.brandShade1,active:c8.brand},secondaryColor:{default:D8,hover:R8,active:I8},positiveColor:{default:c8.successShade2,hover:c8.successShade1,active:c8.success},negativeColor:{default:c8.errorShade2,hover:c8.errorShade1,active:c8.error},cautionColor:{default:c8.warningShade2,hover:c8.warningShade1,active:c8.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:A8,hover:A8,active:A8},outlineColor:{default:A8,hover:A8,active:A8},background:{default:k8,hover:k8,active:k8},outlineBackground:{default:S8,hover:S8,active:S8},border:{default:k8,hover:k8,active:k8},divider:k8},color:{default:"#FFFFFF"}}),calendar:{background:{container:c8.brandBackground3,hover:k8,active:c8.brand,activeHover:c8.brandShade1},color:{disabled:A8,default:I8,active:I8,current:N8,outside:P8,weekday:D8,monthYear:D8,iconDefault:A8,iconHover:I8}},defaultBorder:`1px solid ${k8}`,formControl:{color:{default:D8,hover:I8,active:c8.brand,activeHover:c8.brandShade1,disabled:A8}},input:{borderRadius:4,background:{default:S8,hover:k8,focused:k8,disabled:S8},color:{default:I8,disabled:A8,placeholder:P8,description:P8,descriptionError:c8.error},borderColor:{default:P8,hover:D8,focused:N8,disabled:A8,error:c8.error},labelColor:{default:D8,hover:D8,filled:P8,focused:N8,disabled:A8}},menu:{background:c8.brandBackground2},menuItem:{borderColor:c8.brand,background:{active:S8,hover:k8,inactive:"transparent"},color:{active:I8,hover:I8,inactive:P8}},modal:{background:c8.brandBackground3,color:{header:I8,body:P8}},options:{background:c8.brandBackground3},optionItem:{background:{active:k8,inactive:"transparent"},color:{active:I8,inactive:I8,accent:N8}},table:{color:{header:P8,body:I8},borderColor:k8},toast:{color:I8,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:D8,info:c8.brand,success:c8.success,warning:c8.warning,error:c8.error}},toggle:{slider:c8.brandBackground0},tooltip:{background:c8.brandBackground4,color:{default:I8,subtext:P8}}})};exports.Accordion=cn,exports.Audio=Oo,exports.BarChart=t=>{var{width:r,height:o,data:i,dataKey:s,legend:c,stackData:u}=t,l=a(t,["width","height","data","dataKey","legend","stackData"]);const{scale2:f,color:p}=n.useTheme();return e.jsxs($H,Object.assign({},l,{children:[e.jsx(KH,{}),e.jsxs(jB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:o,data:i},{children:[e.jsx(ON,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(hL,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(gL,{stroke:f,tickMargin:4}),qH(),c&&e.jsx(og,{content:e.jsx(GH,{})}),u?u.map((({key:t,color:n},r)=>e.jsx(fI,{barSize:16,dataKey:t,fill:n,stackId:"stack"},`bar-${r+1}`))):e.jsx(fI,{barSize:16,dataKey:s,fill:p.brand})]}))]}))},exports.Button=go,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[u,l]=t.useState(c),[f,p]=t.useState(c),[d,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>AK(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),v=e=>{const t=TK(("prev"===e?MK:aU)(f,{months:1}),1),n=y(t);p(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?CK(MK(e,{months:1})):TK("future"===n?aU(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?MK:aU)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return eU(1,arguments),nU(e).getDay()}(TK(e,1)),n=_K(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=y(c),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(CK(f)),s=y(TK(f,1));let l=!1;const p=SK(e,n),d=OK(e,r);(i&&p||a&&d)&&(l=!0);const h=OK(e,o)||SK(e,s),g=dU(e,c),v=dU(e,u);return{date:xK(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(DK,Object.assign({noShadow:s},{children:[e.jsxs(RK,{children:[e.jsx(IK,{children:wK(f,"MMMM Y")}),e.jsxs(NK,{children:[e.jsx(on,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(on,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(FK,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(zK,{children:t[0]},t)))}),e.jsx(LK,{children:(null==d?void 0:d.length)&&d.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(BK,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),_r())))})]}))},exports.Checkbox=KK,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=n.useTheme(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ct.range(r,o+1):ct.rangeRight(o,r+1)}return null})),n=t.flat();return ct.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(u$,{method:w,url:C}):e.jsx(t$,Object.assign({},qK,{code:C,language:b,theme:"dark"===d?o$:i$},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(d$,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(h$,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(g$,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(s$,{content:C})]}))}))},exports.DocTable=y$,exports.DraftEditor=E6,exports.Dropdown=oo,exports.Form=R6,exports.Grid=A6,exports.Icon=on,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),p=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const d=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),d();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,l]),n?e.jsxs(B6,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(F6,Object.assign({onClick:r},{children:e.jsx(on,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(z6,Object.assign({id:"prev",onClick:d},{children:e.jsx(on,{name:"chevron-left",size:35,color:"white"})})),e.jsx(V6,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(z6,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(on,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=H6,exports.Input=$r,exports.InputUtils=Ur,exports.Label=M6,exports.Menu=U6,exports.Message=G6,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(t7,{children:[e.jsx(e7,{}),e.jsx(Q6,Object.assign({color:n,style:r},{children:t})),e.jsx(e7,{})]}),exports.Modal=n7,exports.MultiSelect=o=>{var{children:i,options:s,items:c,listLabel:u,listText:l,itemsTitle:f,maxItems:p,placeholder:d,width:h,filter:g,restrictInput:y,disabled:v,hideItemsInfo:m,optionsParent:b,compact:w,backgroundColor:x,borderless:_,addItem:C,removeItem:O,onTextChange:S,autoFocus:k}=o,E=a(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,A]=t.useState(k||!1),[T,P]=t.useState(!1),[M,D]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),L=at((()=>A(!1)),j,b?[b,`${b} *`]:void 0),B=t.useRef(null),F=w&&!!u,z=e=>{e&&C(e)},V=e=>{D(e),S&&S(e)};t.useEffect((()=>{const{current:e}=B;e&&!j&&e.blur()}),[j]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];O(t)}}),j&&!M,[c]);const H=s.filter((e=>!c.find((t=>t.id===e.id)))),U=t.useMemo((()=>`multi-select-${_r()}`),[]),K=t.useMemo((()=>`multi-select-list-${_r()}`),[]),$=p?c.length>=p:void 0,W=v||!j||$,q=()=>{const t=e.jsxs(u7,Object.assign({id:K,expanded:j,padTop:j&&c.length>0,labeled:!!u},{children:[l&&e.jsx(l7,Object.assign({expanded:j,labeled:!!u},{children:l})),i?i(j,!!v):c.map((t=>e.jsx(M6,Object.assign({pill:!0,iconRight:j&&!v?e.jsx(on,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx(oo,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:H,fontSize:I.size.md,placeholder:v||c.length>0?" ":d||"Search...",placeholderColor:N.color.placeholder,inputRef:B,onChange:z,onTextChange:V,onError:e=>P(e),disabled:W,optionsParent:b?`#${K}`:`#${U}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?r.createPortal(t,e):t}return t};return e.jsxs(a7,Object.assign({width:h,ref:L,labeled:!!u,disabled:v,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=B;j||u||A(!0),null==t||t.focus()}},{children:[e.jsxs(s7,Object.assign({collapse:F,id:U,expanded:j&&c.length>0,error:T,labeled:!!u,backgroundColor:x,borderless:_},{children:[u?e.jsx(c7,Object.assign({collapse:F},{children:u})):q(),e.jsxs(f7,{children:[p&&!m&&e.jsx(d7,{children:v&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(p7,Object.assign({error:c.length>=p},{children:c.length})),"/",p," ",f]})}),c.length>0&&e.jsx(on,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!j)}})]})]})),u&&j&&q()]}))},exports.Notification=UH,exports.Options=Yr,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:s,width:c}=n,u=a(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(h7(o)||1),[p,d]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,h7(s)||h.length),y=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);d(t),f(e),r(e)}},v=0!==p,m=p!==g.length-1;return e.jsxs(g7,Object.assign({width:c},u,{children:[e.jsx(v7,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(on,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(v7,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(on,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(b7,{children:"... "}):"",e.jsx(m7,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(b7,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(v7,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(on,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(v7,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(on,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,outerRadius:i,showWhenEmpty:s}=t,c=a(t,["size","data","innerRadius","outerRadius","showWhenEmpty"]);const u=(null==r?void 0:r.length)>0,l=u?r:s?[{name:"1",value:1,color:"#999"}]:void 0,f=i||n/2-1;return e.jsx($H,Object.assign({},c,{children:e.jsxs(AB,Object.assign({width:n,height:n},{children:[e.jsx(pD,Object.assign({dataKey:"value",data:l,innerRadius:o,outerRadius:f},{children:null==l?void 0:l.map((t=>e.jsx(ix,{fill:t.color||"#999"},t.name)))})),u&&qH()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(w7,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e.jsx(O7,Object.assign({width:o,height:i||s},d,{children:e.jsx(S7,{color:n,width:h})}))},exports.Radio=T6,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,E7.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=xo,exports.Spacer=j7,exports.Spinner=Ir,exports.Table=G7,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=P6,exports.Tooltip=Y7,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,width:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ct.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},O=e=>{const t="select"===e?m:w,n="select"===e?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},S=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(N7,{children:t.header}),e.jsx(L7,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(A7,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(T7,{children:i}),e.jsxs(P7,{children:[!u&&e.jsxs(M7,{children:[k&&e.jsx(D7,{children:v.length>0&&!s&&e.jsx(go,Object.assign({small:!0,outline:!0,onClick:()=>O("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(R7,{children:v.map((t=>e.jsxs(I7,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[S(t),e.jsx(on,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(M7,{children:[k&&!u&&e.jsx(D7,{children:b.length>0&&!c&&!u&&e.jsx(go,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>O("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(R7,{children:b.map((t=>e.jsxs(I7,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[S(t),e.jsx(on,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=a$,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,u=wK(n,"EEEE"),l=wK(n,"MMM d"),f=wK(n,"MMM d, y"),p=wK(n,"h:mm aaa"),d=kK(n),h=function(e){return eU(1,arguments),nU(e).getTime()>Date.now()}(n),g=function(e){return eU(1,arguments),dU(e,Date.now())}(n),y=function(e){return eU(1,arguments),dU(e,EK(Date.now(),1))}(n),v=function(e){return eU(1,arguments),dU(e,rU(Date.now(),1))}(n),m=xU(c,n),b=function(e,t,n){eU(2,arguments);var r=vU(e,t)/7;return wU(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.theme=L8,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,p]=t.useState(l||""),[d,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const y=()=>{null==d||d.resolve(!s||f),g()},v=()=>{null==d||d.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(n7,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e.jsx(n7.Header,{children:n}),r&&e.jsx(n7.Text,{children:r}),s&&e.jsx(n7.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx($r,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),e.jsxs(n7.Footer,{children:[e.jsx(go,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(go,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=nn,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=ut,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,c]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e};
|
|
212
212
|
//# sourceMappingURL=index.js.map
|