/*! For license information please see main~10e2e882.c4c43372.chunk.js.LICENSE.txt */ (this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[6],{"+UkV":function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function l(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function u(e,t){try{return t in e}catch(n){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&l(e).forEach((function(t){r[t]=i(e[t],n)})),l(t).forEach((function(o){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(u(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"===typeof n?n:s}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):c(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var f=s;e.exports=f},"0b+E":function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"initialize",(function(){return W})),n.d(r,"ga",(function(){return U})),n.d(r,"set",(function(){return V})),n.d(r,"send",(function(){return H})),n.d(r,"pageview",(function(){return B})),n.d(r,"modalview",(function(){return q})),n.d(r,"timing",(function(){return K})),n.d(r,"event",(function(){return $})),n.d(r,"exception",(function(){return G})),n.d(r,"plugin",(function(){return Q})),n.d(r,"outboundLink",(function(){return Y})),n.d(r,"testModeAPI",(function(){return X})),n.d(r,"default",(function(){return J}));var o=n("q1tI"),i=n.n(o),a=n("17x9"),l=n.n(a);function u(e){console.warn("[react-ga]",e)}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(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 f(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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&t+e.length!==n.length&&e.search(E)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})):e}function x(e){console.info("[react-ga]",e)}var C=[],S={calls:C,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function T(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){return(R="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})(e)}function j(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),r=1;r0&&(L.apply(void 0,t),N&&(x("called ga('arguments');"),x("with arguments: ".concat(JSON.stringify(t))))),window.ga}function V(e,t){e?"object"===R(e)?(0===Object.keys(e).length&&u("empty `fieldsObject` given to .set()"),F(t,"set",e),N&&(x("called ga('set', fieldsObject);"),x("with fieldsObject: ".concat(JSON.stringify(e))))):u("Expected `fieldsObject` arg to be an Object"):u("`fieldsObject` is required in .set()")}function H(e,t){F(t,"send",e),N&&(x("called ga('send', fieldObject);"),x("with fieldObject: ".concat(JSON.stringify(e))),x("with trackers: ".concat(JSON.stringify(t))))}function B(e,t,n){if(e){var r=w(e);if(""!==r){var o={};if(n&&(o.title=n),F(t,"send",function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,o=e.label,i=arguments.length>1?arguments[1]:void 0;if(t&&n&&r&&"number"===typeof r){var a={hitType:"timing",timingCategory:M(t),timingVar:M(n),timingValue:r};o&&(a.timingLabel=M(o)),H(a,i)}else u("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,o=e.value,i=e.nonInteraction,a=e.transport,l=O(e,["category","action","label","value","nonInteraction","transport"]),c=arguments.length>1?arguments[1]:void 0;if(t&&n){var s={hitType:"event",eventCategory:M(t),eventAction:M(n)};r&&(s.eventLabel=M(r)),"undefined"!==typeof o&&("number"!==typeof o?u("Expected `args.value` arg to be a Number."):s.eventValue=o),"undefined"!==typeof i&&("boolean"!==typeof i?u("`args.nonInteraction` must be a boolean."):s.nonInteraction=i),"undefined"!==typeof a&&("string"!==typeof a?u("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(a)&&u("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),s.transport=a)),Object.keys(l).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){s[e]=l[e]})),Object.keys(l).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){s[e]=l[e]})),H(s,c)}else u("args.category AND args.action are required in event()")}function G(e,t){var n=e.description,r=e.fatal,o={hitType:"exception"};n&&(o.exDescription=M(n)),"undefined"!==typeof r&&("boolean"!==typeof r?u("`args.fatal` must be a boolean."):o.exFatal=r),H(o,t)}var Q={require:function(e,t,n){if(e){var r=w(e);if(""!==r){var o=n?"".concat(n,".require"):"require";if(t){if("object"!==R(t))return void u("Expected `options` arg to be an Object");0===Object.keys(t).length&&u("Empty `options` given to .require()"),U(o,r,t),N&&x("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else U(o,r),N&&x("called ga('require', '".concat(r,"');"))}else u("`name` cannot be an empty string in .require()")}else u("`name` is required in .require()")},execute:function(e,t){var n,r;if(1===(arguments.length<=2?0:arguments.length-2)?n=arguments.length<=2?void 0:arguments[2]:(r=arguments.length<=2?void 0:arguments[2],n=arguments.length<=3?void 0:arguments[3]),"string"!==typeof e)u("Expected `pluginName` arg to be a String.");else if("string"!==typeof t)u("Expected `action` arg to be a String.");else{var o="".concat(e,":").concat(t);n=n||null,r&&n?(U(o,r,n),N&&(x("called ga('".concat(o,"');")),x('actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n))))):n?(U(o,n),N&&(x("called ga('".concat(o,"');")),x("with payload: ".concat(JSON.stringify(n))))):(U(o),N&&x("called ga('".concat(o,"');")))}}};function Y(e,t,n){if("function"===typeof t)if(e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:M(e.label)},o=!1,i=setTimeout((function(){o=!0,t()}),250);r.hitCallback=function(){clearTimeout(i),o||t()},H(r,n)}else u("args.label is required in outboundLink()");else u("hitCallback function is required")}var X=S,J={initialize:W,ga:U,set:V,send:H,pageview:B,modalview:q,timing:K,event:$,exception:G,plugin:Q,outboundLink:Y,testModeAPI:S};function Z(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 ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}b.origTrackLink=b.trackLink,b.trackLink=Y;var te=b;t.a=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return i("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var l=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!l(r,e)||o&&!l(a,e))))}function u(e){return e.displayName||e.name||("string"===typeof e&&e.length>0?e:"Unknown")}},"3Gov":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=Object.assign||function(e){for(var t=1;t-1)if(n.voidElement)t.push(s.a.createElement(n.name,{key:"".concat(n.name,"-").concat(l)}));else{var w=e(o,n.children);t.push(s.a.createElement(n.name,{key:"".concat(n.name,"-").concat(l)},w))}else if(n.voidElement)t.push("<".concat(n.name," />"));else{var E=e(o,n.children);t.push("<".concat(n.name,">").concat(E,""))}else if("object"!==u()(f)||d)1===n.children.length&&c?t.push(s.a.cloneElement(f,g({},f.props,{key:l}),c)):t.push(s.a.cloneElement(f,g({},f.props,{key:l})));else{var k=n.children[0]?c:null;k&&t.push(k)}}else"text"===n.type&&t.push(n.content);return t}),[])}([{dummy:!0,children:e}],d.a.parse("<0>".concat(c,"")));return y(f[0])}function E(e){var t=e.children,n=e.count,r=e.parent,i=e.i18nKey,a=e.tOptions,l=e.values,f=e.defaults,d=e.components,m=e.ns,E=e.i18n,k=e.t,x=o()(e,["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t"]),C=Object(c.useContext)(p.a),S=Object(p.d)()&&C||{},O=S.i18n,T=S.defaultNS,P=E||O||Object(p.e)();if(!P)return Object(h.e)("You will need pass in an i18next instance by using i18nextReactModule"),t;var R=k||P.t.bind(P)||function(e){return e},j=g({},Object(p.c)(),{},P.options&&P.options.react),I=void 0!==r?r:j.defaultTransParent,N=m||R.ns||T||P.options&&P.options.defaultNS;N="string"===typeof N?[N]:N||["translation"];var _=f||function e(t,n,r,o){if(!n)return"";var i=t,a=b(n),l=o.transKeepBasicHtmlNodesFor||[];return a.forEach((function(t,n){var r="".concat(n);if("string"===typeof t)i="".concat(i).concat(t);else if(v(t)){var a=l.indexOf(t.type)>-1&&1===Object.keys(t.props).length&&"string"===typeof v(t)?t.type:r;i=t.props&&t.props.i18nIsDynamicList?"".concat(i,"<").concat(a,">"):"".concat(i,"<").concat(a,">").concat(e("",y(t),n+1,o),"")}else if(s.a.isValidElement(t))i=l.indexOf(t.type)>-1&&0===Object.keys(t.props).length?"".concat(i,"<").concat(t.type,"/>"):"".concat(i,"<").concat(r,">");else if("object"===u()(t)){var c=g({},t),f=c.format;delete c.format;var d=Object.keys(c);f&&1===d.length?i="".concat(i,"{{").concat(d[0],", ").concat(f,"}}"):1===d.length?i="".concat(i,"{{").concat(d[0],"}}"):Object(h.d)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else Object(h.d)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),i}("",t,0,j)||j.transEmptyNodeValue||i,z=j.hashTransKey,D=i||(z?z(_):_),L=g({},a,{count:n},l,{},l?{}:{interpolation:{prefix:"#$?",suffix:"?$#"}},{defaultValue:_,ns:N}),M=D?R(D,L):_;return I?s.a.createElement(I,x,w(d||t,M,P,j,L)):w(d||t,M,P,j,L)}},"5pjf":function(e,t,n){"use strict";(function(e){var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),l=n("dAtF"),u=n.n(l),c=n("8L3F"),s=n("+UkV"),f=n.n(s),d=n("tIrX"),p=n.n(d),h=n("Jk4i"),m=n.n(h),g=n("i8i4"),v=n.n(g),y=n("2rMq");function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?R(e):t}var I={flip:{padding:20},preventOverflow:{padding:10}},N={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},_=n.n(y).a.canUseDOM,z=void 0!==v.a.createPortal;function D(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function L(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,a=void 0!==i&&i,l=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){p.a.plainObject(e)&&e.key?l.apply(console,[e.key,e.value]):l.apply(console,[e])})):l.apply(console,[n]),console.groupEnd())}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}function A(){}var W=function(e){function t(e){var n;return b(this,t),n=j(this,O(t).call(this,e)),_?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):j(n)}return S(t,e),E(t,[{key:"componentDidMount",value:function(){_&&(z||this.renderPortal())}},{key:"componentDidUpdate",value:function(){_&&(z||this.renderPortal())}},{key:"componentWillUnmount",value:function(){_&&this.node&&(z||v.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!_)return null;var e=this.props,t=e.children,n=e.setRef;return z?v.a.createPortal(t,this.node):(n(v.a.unstable_renderSubtreeIntoContainer(this,t.length>1?o.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return z?this.renderReact16():null}}]),t}(o.a.Component);k(W,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var U=function(e){function t(){return b(this,t),j(this,O(t).apply(this,arguments))}return S(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,r=t.setArrowRef,i=t.styles.arrow,a=i.color,l=i.display,u=i.length,c=i.margin,s=i.position,f=i.spread,d={display:l,position:s},p=f,h=u;return n.startsWith("top")?(e="0,0 ".concat(p/2,",").concat(h," ").concat(p,",0"),d.bottom=0,d.marginLeft=c,d.marginRight=c):n.startsWith("bottom")?(e="".concat(p,",").concat(h," ").concat(p/2,",0 0,").concat(h),d.top=0,d.marginLeft=c,d.marginRight=c):n.startsWith("left")?(h=f,e="0,0 ".concat(p=u,",").concat(h/2," 0,").concat(h),d.right=0,d.marginTop=c,d.marginBottom=c):n.startsWith("right")&&(h=f,e="".concat(p=u,",").concat(h," ").concat(p,",0 0,").concat(h/2),d.left=0,d.marginTop=c,d.marginBottom=c),o.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},o.a.createElement("span",{ref:r,style:d},o.a.createElement("svg",{width:p,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}}]),t}(o.a.Component);k(U,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var V=function(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,l=P(n,["color","height","width"]);return o.a.createElement("button",{"aria-label":"close",onClick:t,style:l,type:"button"},o.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))};V.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var H=function(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,l=e.showCloseButton,u=e.title,c=e.styles,s={content:o.a.isValidElement(t)?t:o.a.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(s.title=o.a.isValidElement(u)?u:o.a.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(s.footer=o.a.isValidElement(n)?n:o.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!l&&!a||p.a.boolean(i)||(s.close=o.a.createElement(V,{styles:c.close,handleClick:r})),o.a.createElement("div",{className:"__floater__container",style:c.container},s.close,s.title,s.content,s.footer)};H.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var B=function(e){function t(){return b(this,t),j(this,O(t).apply(this,arguments))}return S(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,r=e.hideArrow,i=e.setFloaterRef,a=e.status,l={},u=["__floater"];return t?o.a.isValidElement(t)?l.content=o.a.cloneElement(t,{closeFn:n}):l.content=t({closeFn:n}):l.content=o.a.createElement(H,this.props),a===N.OPEN&&u.push("__floater__open"),r||(l.arrow=o.a.createElement(U,this.props)),o.a.createElement("div",{ref:i,className:u.join(" "),style:this.style},o.a.createElement("div",{className:"__floater__body"},l.content,l.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.status,a=e.styles,l=a.arrow.length,u=a.floater,c=a.floaterCentered,s=a.floaterClosing,f=a.floaterOpening,d=a.floaterWithAnimation,p=a.floaterWithComponent,h={};return o||(r.startsWith("top")?h.padding="0 0 ".concat(l,"px"):r.startsWith("bottom")?h.padding="".concat(l,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(l,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(l,"px"))),-1!==[N.OPENING,N.OPEN].indexOf(i)&&(h=C({},h,{},f)),i===N.CLOSING&&(h=C({},h,{},s)),i!==N.OPEN||t||(h=C({},h,{},d)),"center"===r&&(h=C({},h,{},c)),n&&(h=C({},h,{},p)),C({},u,{},h)}}]),t}(o.a.Component);k(B,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var q=function(e){function t(){return b(this,t),j(this,O(t).apply(this,arguments))}return S(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,l=t.setChildRef,u=t.setWrapperRef,c=t.style,s=t.styles;if(n)if(1===o.a.Children.count(n))if(o.a.isValidElement(n)){var f=p.a.function(n.type)?"innerRef":"ref";e=o.a.cloneElement(o.a.Children.only(n),k({},f,l))}else e=o.a.createElement("span",null,n);else e=n;return e?o.a.createElement("span",{ref:u,style:C({},s,{},c),onClick:r,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(o.a.Component);k(q,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var K={zIndex:100};var $=["position","top","right","bottom","left"],G=function(t){function n(e){var t;return b(this,n),k(R(t=j(this,O(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),k(R(t),"setChildRef",(function(e){t.childRef=e})),k(R(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),k(R(t),"setWrapperRef",(function(e){t.wrapperRef=e})),k(R(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===N.OPENING?N.OPEN:N.IDLE},(function(){var e=t.state.status;n(e===N.OPEN?"open":"close",t.props)}))})),k(R(t),"handleClick",(function(){var e=t.props,n=e.event,r=e.open;if(!p.a.boolean(r)){var o=t.state,i=o.positionWrapper,a=o.status;("click"===t.event||"hover"===t.event&&i)&&(L({title:"click",data:[{event:n,status:a===N.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),k(R(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,r=e.open;if(!p.a.boolean(r)&&!D()){var o=t.state.status;"hover"===t.event&&o===N.IDLE&&(L({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),k(R(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,r=e.eventDelay,o=e.open;if(!p.a.boolean(o)&&!D()){var i=t.state,a=i.status,l=i.positionWrapper;"hover"===t.event&&(L({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),r?-1===[N.OPENING,N.OPEN].indexOf(a)||l||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*r)):t.toggle(N.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:N.INIT,statusWrapper:N.INIT},t._isMounted=!1,_&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return S(n,t),E(n,[{key:"componentDidMount",value:function(){if(_){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;this._isMounted=!0,L({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:p.a.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&o&&p.a.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(_){var n,r=this.props,o=r.autoOpen,i=r.open,a=r.target,l=r.wrapperOptions,u=m()(t,this.state),c=u.changedFrom,s=u.changedTo;if(e.open!==i)p.a.boolean(i)&&(n=i?N.OPENING:N.CLOSING),this.toggle(n);e.wrapperOptions.position===l.position&&e.target===a||this.changeWrapperPosition(this.props),(s("status",N.IDLE)&&i||c("status",N.INIT,N.IDLE)&&o)&&this.toggle(N.OPEN),this.popper&&s("status",N.OPENING)&&this.popper.instance.update(),this.floaterRef&&(s("status",N.OPENING)||s("status",N.CLOSING))&&function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];M(e,t,r=function(o){n(o),F(e,t,r)},o)}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){_&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,a=r.hideArrow,l=r.offset,u=r.placement,s=r.wrapperOptions,f="top"===u||"bottom"===u?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===u)this.setState({status:N.IDLE});else if(t&&this.floaterRef){var d=this.options,h=d.arrow,m=d.flip,g=d.offset,v=P(d,["arrow","flip","offset"]);new c.a(t,this.floaterRef,{placement:u,modifiers:C({arrow:C({enabled:!a,element:this.arrowRef},h),flip:C({enabled:!o,behavior:f},m),offset:C({offset:"0, ".concat(l,"px")},g)},v),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:N.IDLE}),u!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var y=p.a.undefined(s.offset)?0:s.offset;new c.a(this.target,this.wrapperRef,{placement:s.placement||u,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(y,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:N.IDLE}),i(t,"wrapper"),u!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===N.OPEN?N.CLOSING:N.OPENING;p.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,r=e.status,i=this.props,a=i.children,l=i.component,u=i.content,c=i.disableAnimation,s=i.footer,f=i.hideArrow,d=i.id,p=i.open,h=i.showCloseButton,m=i.style,g=i.target,v=i.title,y=o.a.createElement(q,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),b={};return n?b.wrapperInPortal=y:b.wrapperAsChildren=y,o.a.createElement("span",null,o.a.createElement(W,{hasChildren:!!a,id:d,placement:t,setRef:this.setFloaterRef,target:g,zIndex:this.styles.options.zIndex},o.a.createElement(B,{component:l,content:u,disableAnimation:c,footer:s,handleClick:this.handleClick,hideArrow:f||"center"===t,open:p,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:r,styles:this.styles,title:v}),b.wrapperInPortal),b.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&D()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return f()(I,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,r=n.status,o=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,l=f()(function(e){var t=f()(K,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);o&&(e=-1===[N.IDLE].indexOf(r)||-1===[N.IDLE].indexOf(i)?l.wrapperPosition:this.wrapperPopper.styles,l.wrapper=C({},l.wrapper,{},e));if(this.target){var u=window.getComputedStyle(this.target);this.wrapperStyles?l.wrapper=C({},l.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(u.position)&&(this.wrapperStyles={},o||($.forEach((function(e){t.wrapperStyles[e]=u[e]})),l.wrapper=C({},l.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return l}},{key:"target",get:function(){if(!_)return null;var e=this.props.target;return e?p.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(o.a.Component);k(G,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:u()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:u()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),k(G,"defaultProps",{autoOpen:!1,callback:A,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:A,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=G}).call(this,n("yLpj"))},"7FTq":function(e,t,n){},"7XNB":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n("3Gov"),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},CRfi:function(e,t,n){"use strict";var r,o;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e.NONE="none",e.CHANGE_ROW="changeRow",e.LOOP_OVER_ROW="loopOverRow"}(r||(r={})),function(e){e.CELL_UPDATE="CELL_UPDATE",e.COLUMN_FILL="COLUMN_FILL",e.COPY_PASTE="COPY_PASTE",e.CELL_DRAG="CELL_DRAG"}(o||(o={}))},FFEL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tO;O++)S[O]=O+1;S[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P=Object.prototype.hasOwnProperty,R={},j={};function I(e){return!!P.call(j,e)||!P.call(R,e)&&(T.test(e)?j[e]=!0:(R[e]=!0,!1))}function N(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_[e]=new N(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_[t]=new N(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_[e]=new N(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_[e]=new N(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_[e]=new N(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_[e]=new N(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){_[e]=new N(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){_[e]=new N(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){_[e]=new N(e,5,!1,e.toLowerCase(),null,!1)}));var z=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(z,D);_[t]=new N(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(z,D);_[t]=new N(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(z,D);_[t]=new N(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){_[e]=new N(e,1,!1,e.toLowerCase(),null,!1)})),_.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){_[e]=new N(e,1,!1,e.toLowerCase(),null,!0)}));var L=/["'&<>]/;function M(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=L.exec(e);if(t){var n,r="",o=0;for(n=t.index;nt}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+M(t)+'"')):I(e)?e+'="'+M(t)+'"':""}var A="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},W=null,U=null,V=null,H=!1,B=!1,q=null,K=0;function $(){if(null===W)throw Error(i(321));return W}function G(){if(0K))throw Error(i(301));if(e===W)if(B=!0,e={action:n,next:null},null===q&&(q=new Map),void 0===(n=q.get(t)))q.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ee(){}var te=0,ne={readContext:function(e){var t=te;return C(e,t),e[t]},useContext:function(e){$();var t=te;return C(e,t),e[t]},useMemo:function(e,t){if(W=$(),t=void 0===t?null:t,null!==(V=Q())){var n=V.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o=a))throw Error(i(304));var l=new Uint16Array(a);for(l.set(r),(S=l)[0]=n+1,r=n;r=l.children.length){var u=l.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===l.type)this.currentSelectValue=null;else if(null!=l.type&&null!=l.type.type&&l.type.type.$$typeof===f)this.popProvider(l.type);else if(l.type===m){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var s=l.fallbackFrame;if(!s)throw Error(i(303));this.stack.push(s),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=u}else{var d=l.children[l.childIndex++],p="";try{p+=this.render(d,l.context,l.domNamespace)}catch(h){if(null!=h&&"function"===typeof h.then)throw Error(i(294));throw h}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{de.current=n,te=t}},t.render=function(e,t,n){if("string"===typeof e||"number"===typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?M(n):this.previousWasTextNode?"\x3c!-- --\x3e"+M(n):(this.previousWasTextNode=!0,M(n));if(e=(t=we(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===l)throw Error(i(257));throw Error(i(258,n.toString()))}return e=fe(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"===typeof a)return this.renderDOM(e,t,n);switch(a){case c:case p:case s:case g:case u:return e=fe(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case m:throw Error(i(294))}if("object"===typeof a&&null!==a)switch(a.$$typeof){case h:W={};var E=a.render(e.props,e.ref);return E=Y(a.render,e.props,E,e.ref),E=fe(E),this.stack.push({type:null,domNamespace:n,children:E,childIndex:0,context:t,footer:""}),"";case v:return e=[o.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:return n={type:e,domNamespace:n,children:a=fe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,E=e.props;var k=this.threadID;return C(a,k),a=fe(E.children(a[k])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case b:throw Error(i(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(i(295))}case w:throw Error(i(343))}throw Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===re&&oe(a),!me.hasOwnProperty(a)){if(!he.test(a))throw Error(i(65,a));me[a]=!0}var l=e.props;if("input"===a)l=r({type:void 0},l,{defaultChecked:void 0,defaultValue:void 0,value:null!=l.value?l.value:l.defaultValue,checked:null!=l.checked?l.checked:l.defaultChecked});else if("textarea"===a){var u=l.value;if(null==u){u=l.defaultValue;var c=l.children;if(null!=c){if(null!=u)throw Error(i(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}u=""+c}null==u&&(u="")}l=r({},l,{value:void 0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=l.value?l.value:l.defaultValue,l=r({},l,{value:void 0});else if("option"===a){c=this.currentSelectValue;var s=function(e){if(void 0===e||null===e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l.children);if(null!=c){var f=null!=l.value?l.value+"":s;if(u=!1,Array.isArray(c)){for(var d=0;d":(w+=">",u="");e:{if(null!=(c=l.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"===typeof(c=l.children)||"number"===typeof c){c=M(c);break e}c=null}return null!=c?(l=[],pe[a]&&"\n"===c.charAt(0)&&(w+="\n"),w+=c):l=fe(l.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?oe(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:l,childIndex:0,context:t,footer:u}),this.previousWasTextNode=!1,w},e}(),ke={renderToString:function(e){e=new Ee(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Ee(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.12.0"},xe={default:ke},Ce=xe&&ke||xe;e.exports=Ce.default||Ce},KAy6:function(e,t,n){"use strict";e.exports=n("IDhZ")},LCzB:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("lSNA"),o=n.n(r),i=n("J4zp"),a=n.n(i),l=n("QILm"),u=n.n(l),c=n("q1tI"),s=n.n(c),f=n("QSL9"),d=n("3Ddu");function p(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 h(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(c.useContext)(f.a),o=Object(f.d)()&&r||{},i=o.i18n,l=o.defaultNS,u=n||i||Object(f.e)();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new f.b),!u){Object(d.e)("You will need pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},p=[s,{},!1];return p.t=s,p.i18n={},p.ready=!1,p}var m=h({},Object(f.c)(),{},u.options.react,{},t),g=m.useSuspense,v=e||l||u.options&&u.options.defaultNS;v="string"===typeof v?[v]:v||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(v);var y=(u.isInitialized||u.initializedStoreOnce)&&v.every((function(e){return Object(d.b)(e,u,m)}));function b(){return{t:u.getFixedT(null,"fallback"===m.nsMode?v:v[0])}}var w=Object(c.useState)(b()),E=a()(w,2),k=E[0],x=E[1],C=Object(c.useRef)(!0);Object(c.useEffect)((function(){var e=m.bindI18n,t=m.bindI18nStore;function n(){C.current&&x(b())}return C.current=!0,y||g||Object(d.c)(u,v,(function(){C.current&&x(b())})),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){C.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[v.join()]);var S=[k.t,u,y];if(S.t=k.t,S.i18n=u,S.ready=y,y)return S;if(!y&&!g)return S;throw new Promise((function(e){Object(d.c)(u,v,(function(){C.current&&x(b()),e()}))}))}function g(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 v(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var o=r.forwardedRef,i=u()(r,["forwardedRef"]),l=m(e,i),c=a()(l,3),f=v({},i,{t:c[0],i18n:c[1],tReady:c[2]});return t.withRef&&o?f.ref=o:!t.withRef&&o&&(f.forwardedRef=o),s.a.createElement(n,f)}r.displayName="withI18nextTranslation(".concat(Object(d.a)(n),")"),r.WrappedComponent=n;return t.withRef?s.a.forwardRef((function(e,t){return s.a.createElement(r,Object.assign({},e,{forwardedRef:t}))})):r}}},QSL9:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return w}));var r=n("lwsE"),o=n.n(r),i=n("W8MJ"),a=n.n(i),l=n("lSNA"),u=n.n(l),c=n("q1tI");function s(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 f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};h=f({},h,{},e)}(e.options.react),function(e){d=e}(e)}}},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},bj8M:function(e,t,n){var r=n("2kWR"),o=Math.max,i=r(Date,"now")||function(){return(new Date).getTime()};e.exports=function(e,t,n){var r,a,l,u,c,s,f,d=0,p=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");if(t=t<0?0:+t||0,!0===n){var m=!0;h=!1}else(function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)})(n)&&(m=!!n.leading,p="maxWait"in n&&o(+n.maxWait||0,t),h="trailing"in n?!!n.trailing:h);function g(t,n){n&&clearTimeout(n),a=s=f=void 0,t&&(d=i(),l=e.apply(c,r),s||a||(r=c=void 0))}function v(){var e=t-(i()-u);e<=0||e>t?g(f,a):s=setTimeout(v,e)}function y(){g(h,s)}function b(){if(r=arguments,u=i(),c=this,f=h&&(s||!m),!1===p)var n=m&&!s;else{a||m||(d=u);var o=p-(u-d),g=o<=0||o>p;g?(a&&(a=clearTimeout(a)),d=u,l=e.apply(c,r)):a||(a=setTimeout(y,o))}return g&&s?s=clearTimeout(s):s||t===p||(s=setTimeout(v,t)),n&&(g=!0,l=e.apply(c,r)),!g||s||a||(r=c=void 0),l}return b.cancel=function(){s&&clearTimeout(s),a&&clearTimeout(a),d=0,a=s=f=void 0},b}},bmMU:function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!==typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var l,u,c,s=r(t),f=r(n);if(s&&f){if((u=t.length)!=n.length)return!1;for(l=u;0!==l--;)if(!e(t[l],n[l]))return!1;return!0}if(s!=f)return!1;var d=t instanceof Date,p=n instanceof Date;if(d!=p)return!1;if(d&&p)return t.getTime()==n.getTime();var h=t instanceof RegExp,m=n instanceof RegExp;if(h!=m)return!1;if(h&&m)return t.toString()==n.toString();var g=o(t);if((u=g.length)!==o(n).length)return!1;for(l=u;0!==l--;)if(!i.call(n,g[l]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(l=u;0!==l--;)if(("_owner"!==(c=g[l])||!t.$$typeof)&&!e(t[c],n[c]))return!1;return!0}return t!==t&&n!==n}(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},i8i4:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n("yl30")},qT12:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case l:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case v:case g:case c:return e;default:return t}}case i:return t}}}function k(e){return E(e)===d}t.typeOf=E,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=l,t.Suspense=h,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===l||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w)},t.isAsyncMode=function(e){return k(e)||E(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===s},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===u},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===h}},veAh:function(e,t,n){"use strict";var r=n("prSB"),o=n("OfKe"),i=n("DjBF"),a=n("q1tI"),l=n.n(a);function u(e){var t,n,r="";if("string"===typeof e||"number"===typeof e)r+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t{var n;e&&(null===(n=t.current)||void 0===n||n.focus({preventScroll:!0}))},[e]),t}function f({groupKey:e,isExpanded:t,isCellSelected:n,toggleGroup:r}){const o=s(n);return l.a.createElement(l.a.Fragment,null,e,l.a.createElement("span",{ref:o,tabIndex:-1,onKeyDown:function({key:e}){"Enter"===e&&r()},className:t?"rdg-caret-expanded":"rdg-caret-collapsed"}))}function d(e){e.preventDefault()}function p(e,t){return void 0===t?e:function(n){e(n),t(n)}}function h(e){let t=0,n=0,o=0,i=0,a=-1,l=0;const u=e.rawGroupBy,c=e.rawColumns.map(t=>{let n=function({key:e,width:t},n,r){if(n.has(e))return n.get(e);if("number"===typeof t)return t;if("string"===typeof t&&/^\d+%$/.test(t))return Math.floor(r*parseInt(t,10)/100);return}(t,e.columnWidths,e.viewportWidth);void 0===n?i++:(n=m(n,t,e.minColumnWidth),o+=n);const l=Object(r.a)({},t,{width:n});return(null===u||void 0===u?void 0:u.includes(l.key))&&(l.frozen=!0,l.rowGroup=!0),l.frozen&&a++,l});c.sort(({key:e,frozen:t},{key:n,frozen:r})=>"select-row"===e?-1:"select-row"===n?1:(null===u||void 0===u?void 0:u.includes(e))?u.includes(n)?u.indexOf(e)-u.indexOf(n):-1:(null===u||void 0===u?void 0:u.includes(n))?1:t?r?0:-1:r?1:0);const s=e.viewportWidth-o,d=Math.max(Math.floor(s/i),e.minColumnWidth),p=[],h=c.map((o,i)=>{var a,l,u,c;const s=null!==(a=o.width)&&void 0!==a?a:m(d,o,e.minColumnWidth),h=Object(r.a)({},o,{idx:i,width:s,left:t,sortable:null!==(l=o.sortable)&&void 0!==l?l:e.defaultSortable,resizable:null!==(u=o.resizable)&&void 0!==u?u:e.defaultResizable,formatter:null!==(c=o.formatter)&&void 0!==c?c:e.defaultFormatter});var g;h.rowGroup&&(p.push(o.key),h.groupFormatter=null!==(g=o.groupFormatter)&&void 0!==g?g:f);return n+=s,t+=s,h});if(-1!==a){const e=h[a];e.isLastFrozenColumn=!0,l=e.left+e.width}return{columns:h,lastFrozenColumnIndex:a,totalFrozenColumnWidth:l,totalColumnWidth:n,groupBy:p}}function m(e,{minWidth:t,maxWidth:n},r){return e=Math.max(e,null!==t&&void 0!==t?t:r),"number"===typeof n?Math.min(e,n):e}function g(e){return l.a.createElement(l.a.Fragment,null,e.row[e.column.key])}class v{constructor(){this.subscribers=new Map}subscribe(e,t){this.subscribers.has(e)||this.subscribers.set(e,new Set);const n=this.subscribers.get(e);return n.add(t),()=>{n.delete(t)}}dispatch(e,...t){const n=this.subscribers.get(e);n&&n.forEach(e=>{e(...t)})}}const y={ASC:"\u25b2",DESC:"\u25bc",NONE:""};function b({column:e,onSort:t,sortColumn:n,sortDirection:r,children:o}){return r=n===e.key&&r||"NONE",l.a.createElement("span",{className:"rdg-header-sort-cell",onClick:function(){if(!t)return;const n=e.sortDescendingFirst||!1;let o;switch(r){case"ASC":o=n?"NONE":"DESC";break;case"DESC":o=n?"ASC":"NONE";break;default:o=n?"DESC":"ASC"}t(e.key,o)}},l.a.createElement("span",{className:"rdg-header-sort-name"},o),l.a.createElement("span",null,y[r]))}function w({children:e,column:t,onResize:n}){function r(e,r){const o=e-r.getBoundingClientRect().left;o>0&&n(t,o)}return Object(a.cloneElement)(e,{onMouseDown:function(e){if(0!==e.button)return;const t=e.currentTarget,n=t.getBoundingClientRect().right-e.clientX;if(n>11)return;const o=e=>{r(e.clientX+n,t)},i=()=>{window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",i)};e.preventDefault(),window.addEventListener("mousemove",o),window.addEventListener("mouseup",i)},onTouchStart:function(e){const t=e.changedTouches[0],n=t.identifier,i=e.currentTarget,a=i.getBoundingClientRect().right-t.clientX;if(a>11)return;function l(e){var t,r=Object(o.a)(e.changedTouches);try{for(r.s();!(t=r.n()).done;){const e=t.value;if(e.identifier===n)return e}}catch(i){r.e(i)}finally{r.f()}return null}const u=e=>{const t=l(e);t&&r(t.clientX+a,i)},c=e=>{l(e)&&(window.removeEventListener("touchmove",u),window.removeEventListener("touchend",c))};window.addEventListener("touchmove",u),window.addEventListener("touchend",c)},children:l.a.createElement(l.a.Fragment,null,e.props.children,l.a.createElement("div",{className:"rdg-header-cell-resizer"}))})}function E(e){switch(e){case"ASC":return"ascending";case"DESC":return"descending";default:return"none"}}function k({column:e,onResize:t,allRowsSelected:n,onAllRowsSelectionChange:r,sortColumn:o,sortDirection:i,onSort:u}){let s=e.headerRenderer?Object(a.createElement)(e.headerRenderer,{column:e,allRowsSelected:n,onAllRowsSelectionChange:r}):e.name;e.sortable&&(s=l.a.createElement(b,{column:e,onSort:u,sortColumn:o,sortDirection:i},s));const f=c("rdg-cell",e.headerCellClass,{"rdg-cell-frozen":e.frozen,"rdg-cell-frozen-last":e.isLastFrozenColumn}),d={width:e.width,left:e.left};return s=l.a.createElement("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-sort":o===e.key?E(i):void 0,className:f,style:d},s),e.resizable&&(s=l.a.createElement(w,{column:e,onResize:t},s)),s}function x(e){if(void 0===e)throw new Error("Please specify the rowKey prop to use selection")}var C=Object(a.memo)((function({columns:e,rows:t,rowKey:n,onSelectedRowsChange:r,allRowsSelected:i,onColumnResize:u,sortColumn:c,sortDirection:s,onSort:f}){const d=Object(a.useCallback)(e=>{if(!r)return;x(n);const i=new Set;if(e){var a,l=Object(o.a)(t);try{for(l.s();!(a=l.n()).done;){const e=a.value;i.add(e[n])}}catch(u){l.e(u)}finally{l.f()}}r(i)},[r,t,n]);return l.a.createElement("div",{role:"row","aria-rowindex":1,className:"rdg-header-row"},e.map(e=>l.a.createElement(k,{key:e.key,column:e,onResize:u,allRowsSelected:i,onAllRowsSelectionChange:d,onSort:f,sortColumn:c,sortDirection:s})))}));var S=Object(a.memo)((function({columns:e,filters:t,onFiltersChange:n}){return l.a.createElement("div",{role:"row","aria-rowindex":2,className:"rdg-filter-row"},e.map(e=>{const o=e.key,i=c("rdg-cell",{"rdg-cell-frozen":e.frozen,"rdg-cell-frozen-last":e.isLastFrozenColumn}),u={width:e.width,left:e.left};return l.a.createElement("div",{key:o,style:u,className:i},e.filterRenderer&&Object(a.createElement)(e.filterRenderer,{column:e,value:null===t||void 0===t?void 0:t[e.key],onChange:e=>function(e,o){const i=Object(r.a)({},t);i[e]=o,null===n||void 0===n||n(i)}(o,e)}))}))})),O=n("7cf5");function T(...e){return Object(a.useMemo)(()=>function(...e){return t=>{var n,r=Object(o.a)(e);try{for(r.s();!(n=r.n()).done;){const e=n.value;"function"===typeof e?e(t):null!==e&&(e.current=t)}}catch(i){r.e(i)}finally{r.f()}}}(...e),e)}var P=Object(a.memo)(Object(a.forwardRef)((function(e,t){let n=e.className,r=e.column,o=e.isCellSelected,i=e.isCopied,u=e.isDraggedOver,s=e.isRowSelected,f=e.row,d=e.rowIdx,h=e.eventBus,m=e.dragHandleProps,g=e.onRowClick,v=e.onFocus,y=e.onKeyDown,b=e.onClick,w=e.onDoubleClick,E=e.onContextMenu,k=Object(O.a)(e,["className","column","isCellSelected","isCopied","isDraggedOver","isRowSelected","row","rowIdx","eventBus","dragHandleProps","onRowClick","onFocus","onKeyDown","onClick","onDoubleClick","onContextMenu"]);const x=Object(a.useRef)(null),C=r.cellClass;function S(e){h.dispatch("SELECT_CELL",{idx:r.idx,rowIdx:d},e)}return n=c("rdg-cell",{"rdg-cell-frozen":r.frozen,"rdg-cell-frozen-last":r.isLastFrozenColumn,"rdg-cell-selected":o,"rdg-cell-copied":i,"rdg-cell-dragged-over":u},"function"===typeof C?C(f):C,n),l.a.createElement("div",Object.assign({role:"gridcell","aria-colindex":r.idx+1,"aria-selected":o,ref:T(x,t),className:n,style:{width:r.width,left:r.left},onFocus:v,onKeyDown:y,onClick:p((function(){var e;S(null===(e=r.editorOptions)||void 0===e?void 0:e.editOnClick),null===g||void 0===g||g(d,f,r)}),b),onDoubleClick:p((function(){S(!0)}),w),onContextMenu:p((function(){S()}),E)},k),!r.rowGroup&&l.a.createElement(l.a.Fragment,null,l.a.createElement(r.formatter,{column:r,rowIdx:d,row:f,isCellSelected:o,isRowSelected:s,onRowSelectionChange:function(e,t){h.dispatch("SELECT_ROW",{rowIdx:d,checked:e,isShiftClick:t})}}),m&&l.a.createElement("div",Object.assign({className:"rdg-cell-drag-handle"},m))))}))),R=n("i8i4"),j=n.n(R);function I(e){const t=Object(a.useRef)(!1),n=Object(a.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return Object(a.useEffect)(()=>{n.current=e}),Object(a.useEffect)(()=>{let e;function r(){"number"===typeof e&&(cancelAnimationFrame(e),e=void 0)}function o(){e=void 0,t.current?t.current=!1:n.current()}function i(){r(),t.current=!1,e=requestAnimationFrame(o)}return window.addEventListener("click",i,{capture:!0}),()=>{window.removeEventListener("click",i,{capture:!0}),r()}},[]),function(){t.current=!0}}function N(e){var t;let n=e.row,r=e.column,o=e.onRowChange,i=e.editorPortalTarget,a=Object(O.a)(e,["row","column","onRowChange","editorPortalTarget"]);const u=I(()=>o(n,!0));if(void 0===r.editor2)return null;const c=l.a.createElement("div",{onClickCapture:u},l.a.createElement(r.editor2,Object.assign({row:n,column:r,onRowChange:o,editorPortalTarget:i},a)));return(null===(t=r.editorOptions)||void 0===t?void 0:t.createPortal)?Object(R.createPortal)(c,i):c}class _ extends l.a.Component{constructor(){super(...arguments),this.input=l.a.createRef()}getInputNode(){return this.input.current}getValue(){return{[this.props.column.key]:this.input.current.value}}render(){return l.a.createElement("input",{className:"rdg-text-editor",ref:this.input,defaultValue:this.props.value,onBlur:this.props.onCommit})}}function z({rowIdx:e,column:t,row:n,rowHeight:r,left:o,top:u,onCommit:s,onCommitCancel:f,scrollLeft:p,scrollTop:h,firstEditorKeyPress:m}){const g=Object(a.useRef)(null),v=Object(a.useRef)(!1),y=Object(a.useRef)(!1),b=Object(a.useState)(!0),w=Object(i.a)(b,2),E=w[0],k=w[1],x=Object(a.useRef)(p),C=Object(a.useRef)(h),S=Object(a.useRef)(!1),O=I(N),T=Object(a.useCallback)(()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.getInputNode()},[]),P=Object(a.useCallback)(()=>{y.current=!0,f()},[f]);function R(){const e=n[t.key];return"Delete"===m||"Backspace"===m?"":"Enter"===m||"F2"===m?e:m||e}function j(e){return"ArrowLeft"===e&&!function(){const e=T();return e instanceof HTMLInputElement&&0===e.selectionEnd}()||"ArrowRight"===e&&!function(){const e=T();return e instanceof HTMLInputElement&&e.selectionStart===e.value.length}()||"Escape"===e&&function(){var e,t,n;return null!==(e=null===(t=g.current)||void 0===t||null===(n=t.isSelectOpen)||void 0===n?void 0:n.call(t))&&void 0!==e&&e}()||["ArrowUp","ArrowDown"].includes(e)&&function(){var e,t,n;return null!==(e=null===(t=g.current)||void 0===t||null===(n=t.hasResults)||void 0===n?void 0:n.call(t))&&void 0!==e&&e}()}function N(){if(!g.current)return;const n=g.current.getValue();if(function(e){var t,n;const r=null===(t=g.current)||void 0===t||null===(n=t.validate)||void 0===n?void 0:n.call(t,e);return"boolean"!==typeof r||(k(r),r)}(n)){v.current=!0;const r=t.key;s({cellKey:r,rowIdx:e,updated:n})}}function z(e){j(e.key)?e.stopPropagation():["Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)?N():"Escape"===e.key&&P()}Object(a.useLayoutEffect)(()=>{const e=T();e instanceof HTMLElement&&e.focus(),e instanceof HTMLInputElement&&e.select()},[T]),Object(a.useEffect)(()=>{p===x.current&&h===C.current||P()},[P,p,h]),Object(a.useEffect)(()=>()=>{S.current=!0},[]),Object(a.useEffect)(()=>()=>{!S.current||v.current||y.current||N()});const D=c("rdg-editor-container",{"rdg-editor-invalid":!E});return l.a.createElement("div",{className:D,style:{height:r,width:t.width,left:o,top:u},onClickCapture:O,onKeyDown:z,onContextMenu:d},t.editor?l.a.createElement(t.editor,{ref:g,column:t,value:R(),row:n,height:r,onCommit:N,onCommitCancel:P,onOverrideKeyDown:z}):l.a.createElement(_,{ref:g,column:t,value:R(),onCommit:N}))}function D({target:e,children:t}){const n=Object(a.useState)(!1),r=Object(i.a)(n,2),o=r[0],l=r[1];return Object(a.useLayoutEffect)(()=>{l(!0)},[]),o?j.a.createPortal(t,e):null}var L=Object(a.forwardRef)((function(e,t){let n=e.className,r=e.column,o=e.row,u=e.rowIdx,s=e.editorPortalTarget,f=e.editorContainerProps,d=e.editor2Props,p=e.onKeyDown,h=Object(O.a)(e,["className","column","row","rowIdx","editorPortalTarget","editorContainerProps","editor2Props","onKeyDown"]);const m=Object(a.useState)(null),g=Object(i.a)(m,2),v=g[0],y=g[1],b=Object(a.useCallback)(e=>{if(null!==e){const t=e.getBoundingClientRect(),n=t.left,r=t.top;y({left:n,top:r})}},[]),w=r.cellClass;return n=c("rdg-cell",{"rdg-cell-frozen":r.frozen,"rdg-cell-frozen-last":r.isLastFrozenColumn},"rdg-cell-selected","rdg-cell-editing","function"===typeof w?w(o):w,n),l.a.createElement("div",Object.assign({role:"gridcell","aria-colindex":r.idx+1,"aria-selected":!0,ref:T(b,t),className:n,style:{width:r.width,left:r.left},onKeyDown:p},h),function(){var e;if(null===v)return;const t=document.scrollingElement||document.documentElement,n=t.scrollTop,i=t.scrollLeft,a=v.left+i,c=v.top+n;if(void 0!==r.editor2)return l.a.createElement(N,Object.assign({},d,{editorPortalTarget:s,rowIdx:u,column:r,left:a,top:c}));const p=l.a.createElement(z,Object.assign({},f,{rowIdx:u,row:o,column:r,left:a,top:c}));return!1!==(null===(e=r.editorOptions)||void 0===e?void 0:e.createPortal)?l.a.createElement(D,{target:s},p):p}())}));var M=Object(a.memo)(Object(a.forwardRef)((function(e,t){let n=e.cellRenderer,r=void 0===n?P:n,o=e.className,i=e.eventBus,a=e.rowIdx,u=e.isRowSelected,s=e.copiedCellIdx,f=e.draggedOverCellIdx,d=e.row,h=e.viewportColumns,m=e.selectedCellProps,g=e.onRowClick,v=e.rowClass,y=e.setDraggedOverRowIdx,b=e.onMouseEnter,w=e.top,E=e["aria-rowindex"],k=e["aria-selected"],x=Object(O.a)(e,["cellRenderer","className","eventBus","rowIdx","isRowSelected","copiedCellIdx","draggedOverCellIdx","row","viewportColumns","selectedCellProps","onRowClick","rowClass","setDraggedOverRowIdx","onMouseEnter","top","aria-rowindex","aria-selected"]);return o=c("rdg-row","rdg-row-".concat(a%2===0?"even":"odd"),{"rdg-row-selected":u,"rdg-group-row-selected":-1===(null===m||void 0===m?void 0:m.idx)},null===v||void 0===v?void 0:v(d),o),l.a.createElement("div",Object.assign({role:"row","aria-rowindex":E,"aria-selected":k,ref:t,className:o,onMouseEnter:p((function(){null===y||void 0===y||y(a)}),b),style:{top:w}},x),h.map(e=>{const t=(null===m||void 0===m?void 0:m.idx)===e.idx;return"EDIT"===(null===m||void 0===m?void 0:m.mode)&&t?l.a.createElement(L,{key:e.key,rowIdx:a,column:e,row:d,onKeyDown:m.onKeyDown,editorPortalTarget:m.editorPortalTarget,editorContainerProps:m.editorContainerProps,editor2Props:m.editor2Props}):l.a.createElement(r,{key:e.key,rowIdx:a,column:e,row:d,isCopied:s===e.idx,isDraggedOver:f===e.idx,isCellSelected:t,isRowSelected:u,eventBus:i,dragHandleProps:t?m.dragHandleProps:void 0,onFocus:t?m.onFocus:void 0,onKeyDown:t?m.onKeyDown:void 0,onRowClick:g})}))})));var F=Object(a.memo)((function({id:e,rowIdx:t,groupKey:n,childRows:r,isExpanded:o,isCellSelected:i,isRowSelected:a,eventBus:u,column:s,groupColumnIndex:f}){function d(){u.dispatch("TOGGLE_GROUP",e)}const p=s.rowGroup&&f===s.idx;return l.a.createElement("div",{role:"gridcell","aria-colindex":s.idx+1,key:s.key,className:c("rdg-cell",{"rdg-cell-frozen":s.frozen,"rdg-cell-frozen-last":s.isLastFrozenColumn,"rdg-cell-selected":i}),style:{width:s.width,left:s.left,cursor:p?"pointer":"default"},onClick:p?d:void 0},s.groupFormatter&&(!s.rowGroup||f===s.idx)&&l.a.createElement(s.groupFormatter,{groupKey:n,childRows:r,column:s,isExpanded:o,isCellSelected:i,isRowSelected:a,onRowSelectionChange:function(e){u.dispatch("SELECT_ROW",{rowIdx:t,checked:e,isShiftClick:!1})},toggleGroup:d}))}));var A=Object(a.memo)((function(e){let t=e.id,n=e.groupKey,r=e.viewportColumns,o=e.childRows,i=e.rowIdx,a=e.top,u=e.level,s=e.isExpanded,f=e.selectedCellIdx,d=e.isRowSelected,p=e.eventBus,h=Object(O.a)(e,["id","groupKey","viewportColumns","childRows","rowIdx","top","level","isExpanded","selectedCellIdx","isRowSelected","eventBus"]);const m="select-row"===r[0].key?u+1:u;return l.a.createElement("div",Object.assign({role:"row","aria-level":u,"aria-expanded":s,className:c("rdg-row","rdg-group-row","rdg-row-".concat(i%2===0?"even":"odd"),{"rdg-group-row-selected":-1===f}),onClick:function(){p.dispatch("SELECT_CELL",{rowIdx:i,idx:-1})},style:{top:a}},h),r.map(e=>l.a.createElement(F,{key:e.key,id:t,rowIdx:i,groupKey:n,childRows:o,isExpanded:s,isRowSelected:d,isCellSelected:f===e.idx,eventBus:p,column:e,groupColumnIndex:m})))}));var W=Object(a.memo)((function({column:e,row:t}){const n=e.summaryFormatter,r=e.width,o=e.left,i=e.summaryCellClass,a=c("rdg-cell",{"rdg-cell-frozen":e.frozen,"rdg-cell-frozen-last":e.isLastFrozenColumn},"function"===typeof i?i(t):i);return l.a.createElement("div",{role:"gridcell","aria-colindex":e.idx+1,className:a,style:{width:r,left:o}},n&&l.a.createElement(n,{column:e,row:t}))}));var U=Object(a.memo)((function({rowIdx:e,row:t,viewportColumns:n,bottom:r,"aria-rowindex":o}){return l.a.createElement("div",{role:"row","aria-rowindex":o,className:"rdg-row rdg-row-".concat(e%2===0?"even":"odd"," rdg-summary-row"),style:{bottom:r}},n.map(e=>l.a.createElement(W,{key:e.key,column:e,row:t})))}));function V(e){return(!0===e.ctrlKey||!0===e.metaKey)&&"Control"!==e.key}var H=n("CRfi");function B({selectedPosition:e,columns:t,rows:n,onCheckCellIsEditable:o,isGroupRow:i}){const a=t[e.idx],l=n[e.rowIdx];return!a.rowGroup&&!i(l)&&((!o||o(Object(r.a)({row:l,column:a},e)))&&function(e,t){return"function"===typeof e.editable?e.editable(t):Boolean(e.editor||e.editor2||e.editable)}(a,l))}t.a=Object(a.forwardRef)((function({columns:e,rows:t,summaryRows:n,rowKey:u,onRowsUpdate:s,onRowsChange:f,rowHeight:d=35,headerRowHeight:p=d,headerFiltersHeight:m=45,selectedRows:y,onSelectedRowsChange:b,sortColumn:w,sortDirection:E,onSort:k,filters:O,onFiltersChange:T,defaultColumnOptions:P,groupBy:R,rowGrouper:j,expandedGroupIds:I,onExpandedGroupIdsChange:N,rowRenderer:_=M,emptyRowsRenderer:z,onRowClick:D,onScroll:L,onColumnResize:F,onSelectedCellChange:W,onCheckCellIsEditable:q,enableFilters:K=!1,enableCellCopyPaste:$=!1,enableCellDragAndDrop:G=!1,cellNavigationMode:Q=H.a.NONE,editorPortalTarget:Y=document.body,className:X,style:J,rowClass:Z,"aria-label":ee,"aria-labelledby":te,"aria-describedby":ne},re){var oe;const ie=Object(a.useState)(()=>new v),ae=Object(i.a)(ie,1)[0],le=Object(a.useState)(0),ue=Object(i.a)(le,2),ce=ue[0],se=ue[1],fe=Object(a.useState)(0),de=Object(i.a)(fe,2),pe=de[0],he=de[1],me=Object(a.useState)(()=>new Map),ge=Object(i.a)(me,2),ve=ge[0],ye=ge[1],be=Object(a.useState)({idx:-1,rowIdx:-1,mode:"SELECT"}),we=Object(i.a)(be,2),Ee=we[0],ke=we[1],xe=Object(a.useState)(null),Ce=Object(i.a)(xe,2),Se=Ce[0],Oe=Ce[1],Te=Object(a.useState)(!1),Pe=Object(i.a)(Te,2),Re=Pe[0],je=Pe[1],Ie=Object(a.useState)(void 0),Ne=Object(i.a)(Ie,2),_e=Ne[0],ze=Ne[1],De=Object(a.useCallback)(e=>{ze(e),Fe.current=e},[]),Le=Object(a.useRef)(null),Me=Object(a.useRef)(Ee),Fe=Object(a.useRef)(_e),Ae=Object(a.useRef)(-1),We=Object(a.useRef)(!1),Ue=function(){const e=Object(a.useRef)(null),t=Object(a.useState)(1),n=Object(i.a)(t,2),r=n[0],o=n[1],l=Object(a.useState)(1),u=Object(i.a)(l,2),c=u[0],s=u[1];return Object(a.useLayoutEffect)(()=>{const t=window.ResizeObserver;if(null==t)return;const n=new t(e=>{const t=e[0].contentRect,n=t.width,r=t.height;o(n),s(r)});return n.observe(e.current),()=>{n.disconnect()}},[]),[e,r,c]}(),Ve=Object(i.a)(Ue,3),He=Ve[0],Be=Ve[1],qe=Ve[2],Ke=K?2:1,$e=null!==(oe=null===n||void 0===n?void 0:n.length)&&void 0!==oe?oe:0,Ge=p+(K?m:0),Qe=qe-Ge-$e*d,Ye=void 0!==y&&void 0!==b,Xe=function({rawColumns:e,columnWidths:t,viewportWidth:n,scrollLeft:r,defaultColumnOptions:o,rawGroupBy:l,rowGrouper:u}){var c,s,f,d;const p=null!==(c=null===o||void 0===o?void 0:o.minWidth)&&void 0!==c?c:80,m=null!==(s=null===o||void 0===o?void 0:o.formatter)&&void 0!==s?s:g,v=null!==(f=null===o||void 0===o?void 0:o.sortable)&&void 0!==f&&f,y=null!==(d=null===o||void 0===o?void 0:o.resizable)&&void 0!==d&&d,b=Object(a.useMemo)(()=>h({rawColumns:e,minColumnWidth:p,viewportWidth:n,columnWidths:t,defaultSortable:v,defaultResizable:y,defaultFormatter:m,rawGroupBy:u?l:void 0}),[t,m,y,v,p,e,l,u,n]),w=b.columns,E=b.lastFrozenColumnIndex,k=b.totalColumnWidth,x=b.totalFrozenColumnWidth,C=b.groupBy,S=Object(a.useMemo)(()=>{const e=r+x,t=r+n,o=w.length-1,i=Math.min(E+1,o);if(e>=t)return[i,i];let a=i;for(;ae)break;a++}let l=a;for(;l=t)break;l++}return[Math.max(i,a-1),Math.min(o,l+1)]},[w,E,r,x,n]),O=Object(i.a)(S,2),T=O[0],P=O[1],R=Object(a.useMemo)(()=>{const e=[];for(let t=0;t<=P;t++){const n=w[t];t{if(0===o.length||!l)return[void 0,e.length];const t=(e,[n,...r],o)=>{let a=0;const u={};for(var c=0,s=Object.entries(l(e,n));c{const t=new Set;if(!f)return[e,t];const n=[],r=(e,o,i)=>{Array.isArray(e)?n.push(...e):Object.keys(e).forEach((a,l,c)=>{var s;const f=void 0!==o?"".concat(o,"__").concat(a):a,d=null!==(s=null===u||void 0===u?void 0:u.has(f))&&void 0!==s&&s,p=e[a],h=p.childRows,m=p.childGroups,g=p.startRowIndex,v={id:f,parentId:o,groupKey:a,isExpanded:d,childRows:h,level:i,posInSet:l,startRowIndex:g,setSize:c.length};n.push(v),t.add(v),d&&r(m,f,i+1)})};return r(f,void 0,0),[n,t]},[u,f,e]),h=Object(i.a)(p,2),m=h[0],g=h[1],v=Math.floor(r/t),y=Math.min(m.length-1,Math.floor((r+n)/t));return{rowOverscanStartIdx:Math.max(0,8*Math.floor((v-4)/8)),rowOverscanEndIdx:Math.min(m.length-1,8*Math.ceil((y+4)/8)),rows:m,rowsCount:d,isGroupRow:e=>g.has(e)}}({rawRows:t,groupBy:rt,rowGrouper:j,rowHeight:d,clientHeight:Qe,scrollTop:ce,expandedGroupIds:I}),it=ot.rowOverscanStartIdx,at=ot.rowOverscanEndIdx,lt=ot.rows,ut=ot.rowsCount,ct=ot.isGroupRow,st=rt.length>0&&j,ft=st?-1:0;function dt(e){const n=e.key,r=lt[Ee.rowIdx];if($&&V(e)&&kt(Ee)&&!ct(r)&&-1!==Ee.idx){const e=n.toLowerCase();if("c"===e)return void function(){const e=Ee.idx,n=Ee.rowIdx,r=mt(n),o=t[r][Je[e].key];Oe({idx:e,rowIdx:n,value:o})}();if("v"===e)return void function(){if(null===Se||!xt(Ee)||Se.idx===Ee.idx&&Se.rowIdx===Ee.rowIdx)return;const e=mt(Se.rowIdx),t=Je[Se.idx].key,n=mt(Ee.rowIdx),r=Je[Ee.idx].key;null===s||void 0===s||s({cellKey:r,fromRow:e,toRow:n,updated:{[r]:Se.value},action:H.b.COPY_PASTE,fromCellKey:t})}()}if(kt(Ee)&&ct(r)&&-1===Ee.idx&&("ArrowLeft"===n&&r.isExpanded||"ArrowRight"===n&&!r.isExpanded))return e.preventDefault(),void ae.dispatch("TOGGLE_GROUP",r.id);switch(e.key){case"Escape":return Oe(null),void St();case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){const t=e.key,n=e.shiftKey,r=V(e);let o=function(e,t,n){const r=Ee.idx,o=Ee.rowIdx,i=lt[o],a=kt(Ee)&&-1===r;if("ArrowLeft"===e&&a&&ct(i)&&!i.isExpanded&&0!==i.level){let e=-1;for(let t=Ee.rowIdx-1;t>=0;t--){const n=lt[t];if(ct(n)&&n.id===i.parentId){e=t;break}}if(-1!==e)return{idx:r,rowIdx:e}}switch(e){case"ArrowUp":return{idx:r,rowIdx:o-1};case"ArrowDown":return{idx:r,rowIdx:o+1};case"ArrowLeft":return{idx:r-1,rowIdx:o};case"ArrowRight":return{idx:r+1,rowIdx:o};case"Tab":return-1===Ee.idx&&-1===Ee.rowIdx?n?{idx:Je.length-1,rowIdx:lt.length-1}:{idx:0,rowIdx:0}:{idx:r+(n?-1:1),rowIdx:o};case"Home":return a?{idx:r,rowIdx:0}:t?{idx:0,rowIdx:0}:{idx:0,rowIdx:o};case"End":return a?{idx:r,rowIdx:lt.length-1}:t?{idx:Je.length-1,rowIdx:lt.length-1}:{idx:Je.length-1,rowIdx:o};case"PageUp":return{idx:r,rowIdx:o-Math.floor(Qe/d)};case"PageDown":return{idx:r,rowIdx:o+Math.floor(Qe/d)};default:return Ee}}(t,r,n),i=Q;if("Tab"===t){if(function({cellNavigationMode:e,columns:t,rowsCount:n,selectedPosition:{rowIdx:r,idx:o},shiftKey:i}){if(e===H.a.NONE||e===H.a.CHANGE_ROW){const e=o===t.length-1,a=0===o,l=r===n-1,u=0===r;return i?a&&u:e&&l}return!1}({shiftKey:n,cellNavigationMode:Q,columns:Je,rowsCount:lt.length,selectedPosition:Ee}))return;i=Q===H.a.NONE?H.a.CHANGE_ROW:Q}e.preventDefault(),o=function({cellNavigationMode:e,columns:t,rowsCount:n,nextPosition:r}){if(e!==H.a.NONE){const o=r.idx,i=r.rowIdx,a=t.length,l=-1===o;if(o===a){if(e===H.a.CHANGE_ROW){if(!(i===n-1))return{idx:0,rowIdx:i+1}}else if(e===H.a.LOOP_OVER_ROW)return{rowIdx:i,idx:0}}else if(l)if(e===H.a.CHANGE_ROW){if(!(0===i))return{rowIdx:i-1,idx:a-1}}else if(e===H.a.LOOP_OVER_ROW)return{rowIdx:i,idx:a-1}}return r}({columns:Je,rowsCount:lt.length,cellNavigationMode:i,nextPosition:o}),Ct(o)}(e);break;default:!function(e){var t,n;if(!kt(Ee))return;const r=lt[Ee.rowIdx];if(ct(r))return;const o=e.key,i=Je[Ee.idx];if("EDIT"===Ee.mode)return void("Enter"===o&&(vt(),St()));if(null===(t=i.editorOptions)||void 0===t||null===(n=t.onCellKeyDown)||void 0===n||n.call(t,e),e.isDefaultPrevented())return;xt(Ee)&&function(e){return(t=e.keyCode)>47&&t<58||32===t||13===t||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223||["Enter","F2","Backspace","Delete"].includes(e.key);var t}(e)&&ke(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,key:o,mode:"EDIT",row:r,originalRow:r}))}(e)}}function pt(){We.current=!0}st&&(G=!1),Object(a.useLayoutEffect)(()=>{Ee!==Me.current&&"EDIT"!==Ee.mode&&kt(Ee)&&(Me.current=Ee,Ot(Ee),We.current?We.current=!1:Le.current.focus())}),Object(a.useEffect)(()=>{if(!b)return;return ae.subscribe("SELECT_ROW",({rowIdx:e,checked:t,isShiftClick:n})=>{x(u);const r=new Set(y),i=lt[e];if(ct(i)){var a,l=Object(o.a)(i.childRows);try{for(l.s();!(a=l.n()).done;){const e=a.value;t?r.add(e[u]):r.delete(e[u])}}catch(s){l.e(s)}finally{l.f()}return void b(r)}const c=i[u];if(t){r.add(c);const t=Ae.current;if(Ae.current=e,n&&-1!==t&&t!==e){const n=Math.sign(e-t);for(let o=t+n;o!==e;o+=n){const e=lt[o];ct(e)||r.add(e[u])}}}else r.delete(c),Ae.current=-1;b(r)})},[ae,ct,b,u,lt,y]),Object(a.useEffect)(()=>ae.subscribe("SELECT_CELL",Ct)),Object(a.useEffect)(()=>{if(!N)return;return ae.subscribe("TOGGLE_GROUP",e=>{const t=new Set(I);t.has(e)?t.delete(e):t.add(e),N(t)})},[ae,I,N]),Object(a.useImperativeHandle)(re,()=>({scrollToColumn(e){Ot({idx:e})},scrollToRow(e){const t=He.current;t&&(t.scrollTop=e*d)},selectCell:Ct}));const ht=Object(a.useCallback)((e,t)=>{const n=new Map(ve);n.set(e.key,t),ye(n),null===F||void 0===F||F(e.idx,t)},[ve,F]);function mt(e){return st?t.indexOf(lt[e]):e}function gt({cellKey:e,rowIdx:t,updated:n}){t=mt(t),null===s||void 0===s||s({cellKey:e,fromRow:t,toRow:t,updated:n,action:H.b.CELL_UPDATE}),St()}function vt(){var e;if(void 0===(null===(e=Je[Ee.idx])||void 0===e?void 0:e.editor2)||"SELECT"===Ee.mode||Ee.row===Ee.originalRow)return;const n=[...t];n[mt(Ee.rowIdx)]=Ee.row,null===f||void 0===f||f(n)}function yt(e){function n(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",n),window.removeEventListener("mouseup",r),je(!1),function(){if(void 0===Fe.current)return;const e=Ee.idx,n=Ee.rowIdx,r=Je[e].key,o=t[n][r];null===s||void 0===s||s({cellKey:r,fromRow:n,toRow:Fe.current,updated:{[r]:o},action:H.b.CELL_DRAG}),De(void 0)}()}1===e.buttons&&(je(!0),window.addEventListener("mouseover",n),window.addEventListener("mouseup",r))}function bt(e){e.stopPropagation();const n=Je[Ee.idx].key,r=t[Ee.rowIdx][n];null===s||void 0===s||s({cellKey:n,fromRow:Ee.rowIdx,toRow:t.length-1,updated:{[n]:r},action:H.b.COLUMN_FILL})}function wt(e,n){if("SELECT"!==Ee.mode)if(n){const n=[...t];n[mt(Ee.rowIdx)]=e,null===f||void 0===f||f(n),St()}else ke(t=>Object(r.a)({},t,{row:e}))}function Et(e){e&&vt(),St()}function kt({idx:e,rowIdx:t}){return t>=0&&t=ft&&e({idx:e,rowIdx:t,mode:"SELECT"}))}function Ot({idx:e,rowIdx:t}){const n=He.current;if(n){if("number"===typeof e&&e>tt){const t=n.clientWidth,r=Je[e],o=r.left,i=r.width,a=o+i>t+pe;if(or)return t-r}return 0}(Je,e,pe,t);n.scrollLeft=pe+r}}"number"===typeof t&&(t*dce+Qe&&(n.scrollTop=(t+1)*d-Qe))}}function Tt(e){if(void 0===_e)return;const t=Ee.rowIdx;return(t<_e?te&&e>=_e)?Ee.idx:void 0}function Pt(e){if(Ee.rowIdx===e)return"EDIT"===Ee.mode?{mode:"EDIT",idx:Ee.idx,onKeyDown:dt,editorPortalTarget:Y,editorContainerProps:{rowHeight:d,scrollLeft:pe,scrollTop:ce,firstEditorKeyPress:Ee.key,onCommit:gt,onCommitCancel:St},editor2Props:{rowHeight:d,row:Ee.row,onRowChange:wt,onClose:Et}}:{mode:"SELECT",idx:Ee.idx,onFocus:pt,onKeyDown:dt,dragHandleProps:G&&xt(Ee)?{onMouseDown:yt,onDoubleClick:bt}:void 0}}return(Ee.idx>=Je.length||Ee.rowIdx>=lt.length)&&(ke({idx:-1,rowIdx:-1,mode:"SELECT"}),Oe(null),De(void 0)),"EDIT"===Ee.mode&<[Ee.rowIdx]!==Ee.originalRow&&St(),l.a.createElement("div",{role:st?"treegrid":"grid","aria-label":ee,"aria-labelledby":te,"aria-describedby":ne,"aria-multiselectable":!!Ye||void 0,"aria-colcount":Je.length,"aria-rowcount":Ke+ut+$e,className:c("rdg",{"rdg-viewport-dragging":Re},X),style:Object(r.a)({},J,{"--header-row-height":"".concat(p,"px"),"--filter-row-height":"".concat(m,"px"),"--row-width":"".concat(et,"px"),"--row-height":"".concat(d,"px")}),ref:He,onScroll:function(e){const t=e.currentTarget,n=t.scrollTop,r=t.scrollLeft;se(n),he(r),null===L||void 0===L||L(e)}},l.a.createElement(C,{rowKey:u,rows:t,columns:Ze,onColumnResize:ht,allRowsSelected:(null===y||void 0===y?void 0:y.size)===t.length,onSelectedRowsChange:b,sortColumn:w,sortDirection:E,onSort:k}),K&&l.a.createElement(S,{columns:Ze,filters:O,onFiltersChange:T}),0===lt.length&&z?Object(a.createElement)(z):l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{ref:Le,tabIndex:0,className:"rdg-focus-sink",onKeyDown:dt}),l.a.createElement("div",{style:{height:Math.max(lt.length*d,Qe)}}),function(){const e=[];let t=0;for(let r=it;r<=at;r++){const o=lt[r],i=r*d+Ge;if(ct(o)){t=o.startRowIndex,e.push(l.a.createElement(A,{"aria-level":o.level+1,"aria-setsize":o.setSize,"aria-posinset":o.posInSet+1,"aria-rowindex":Ke+t+1,key:o.id,id:o.id,groupKey:o.groupKey,viewportColumns:Ze,childRows:o.childRows,rowIdx:r,top:i,level:o.level,isExpanded:o.isExpanded,selectedCellIdx:Ee.rowIdx===r?Ee.idx:void 0,isRowSelected:Ye&&o.childRows.every(e=>null===y||void 0===y?void 0:y.has(e[u])),eventBus:ae,onFocus:Ee.rowIdx===r?pt:void 0,onKeyDown:Ee.rowIdx===r?dt:void 0}));continue}t++;let a=st?t:r,c=!1;if(void 0!==u){var n;const e=o[u];c=null!==(n=null===y||void 0===y?void 0:y.has(e))&&void 0!==n&&n,"string"!==typeof e&&"number"!==typeof e||(a=e)}e.push(l.a.createElement(_,{"aria-rowindex":Ke+(st?t:r)+1,"aria-selected":Ye?c:void 0,key:a,rowIdx:r,row:o,viewportColumns:Ze,eventBus:ae,isRowSelected:c,onRowClick:D,rowClass:Z,top:i,copiedCellIdx:(null===Se||void 0===Se?void 0:Se.rowIdx)===r?Se.idx:void 0,draggedOverCellIdx:Tt(r),setDraggedOverRowIdx:Re?De:void 0,selectedCellProps:Pt(r)}))}return e}(),null===n||void 0===n?void 0:n.map((e,t)=>l.a.createElement(U,{"aria-rowindex":Ke+ut+t+1,key:t,rowIdx:t,row:e,bottom:d*(n.length-1-t),viewportColumns:Ze}))))}))},yl30:function(e,t,n){"use strict";var r=n("q1tI"),o=n("MgzW"),i=n("QCnb");function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n