Current Path : /home/church/www/ntktesting.com/wp-content/plugins/ninja-forms/build/ |
Current File : /home/church/www/ntktesting.com/wp-content/plugins/ninja-forms/build/sub-table-block.js |
!function(){var e={8679:function(e,t,n){"use strict";var r=n(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=p(n);o&&o!==g&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{l(t,v,y)}catch(e){}}}}return t}},96103:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case h:case m:case u:return e;default:return t}}case o:return t}}}function R(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return R(e)||S(e)===c},t.isConcurrentMode=R,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},21296:function(e,t,n){"use strict";e.exports=n(96103)},69921:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,u=60110,l=60112,c=60113,d=60120,f=60115,p=60116,g=60121,m=60122,h=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),l=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),g=b("react.block"),m=b("react.server.block"),h=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===v||e===i||e===c||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===g||e[0]===m)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case p:case f:case s:return e;default:return t}}case r:return t}}}},59864:function(e,t,n){"use strict";e.exports=n(69921)},40217:function(e,t,n){!function(e,t){"use strict";function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}}function o(){return(o=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}).apply(this,arguments)}function i(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}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var s={init:"init"},u=function(e){var t=e.value;return void 0===t?"":t},l=function(){return t.createElement(t.Fragment,null," ")},c={Cell:u,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){var n=t.style,r=t.className;return e=o({},e,{},i(t,["style","className"])),n&&(e.style=e.style?o({},e.style||{},{},n||{}):n),r&&(e.className=e.className?e.className+" "+r:r),""===e.className&&delete e.className,e}),{})}var f=function(e,t){return void 0===t&&(t={}),function(n){return void 0===n&&(n={}),[].concat(e,[n]).reduce((function(e,r){return function e(t,n,r){return"function"==typeof n?e({},n(t,r)):Array.isArray(n)?d.apply(void 0,[t].concat(n)):d(t,n)}(e,r,o({},t,{userProps:n}))}),{})}},p=function(e,t,n,r){return void 0===n&&(n={}),e.reduce((function(e,t){return t(e,n)}),t)},g=function(e,t,n){return void 0===n&&(n={}),e.forEach((function(e){e(t,n)}))};function m(e,t,n,r){e.findIndex((function(e){return e.pluginName===n})),t.forEach((function(t){e.findIndex((function(e){return e.pluginName===t}))}))}function h(e,t){return"function"==typeof e?e(t):e}function v(e){var n=t.useRef();return n.current=e,t.useCallback((function(){return n.current}),[])}var y="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function b(e,n){var r=t.useRef(!1);y((function(){r.current&&e(),r.current=!0}),n)}function w(e,t,n){return void 0===n&&(n={}),function(r,i){void 0===i&&(i={});var a="string"==typeof r?t[r]:r;if(void 0===a)throw console.info(t),new Error("Renderer Error ☝️");return S(a,o({},e,{column:t},n,{},i))}}function S(e,n){return function(e){return"function"==typeof e&&(t=Object.getPrototypeOf(e)).prototype&&t.prototype.isReactComponent;var t}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?t.createElement(e,n):e;var r}function R(e,t,n){return void 0===n&&(n=0),e.map((function(e){return x(e=o({},e,{parent:t,depth:n})),e.columns&&(e.columns=R(e.columns,e,n+1)),e}))}function C(e){return F(e,"columns")}function x(e){var t=e.id,n=e.accessor,r=e.Header;if("string"==typeof n){t=t||n;var o=n.split(".");n=function(e){return function(e,t,n){if(!t)return e;var r,o="function"==typeof t?t:JSON.stringify(t),i=E.get(o)||function(){var e=function(e){return function e(t,n){if(void 0===n&&(n=[]),Array.isArray(t))for(var r=0;r<t.length;r+=1)e(t[r],n);else n.push(t);return n}(e).map((function(e){return String(e).replace(".","_")})).join(".").replace(z,".").replace(H,"").split(".")}(t);return E.set(o,e),e}();try{r=i.reduce((function(e,t){return e[t]}),e)}catch(e){}return void 0!==r?r:void 0}(e,o)}}if(!t&&"string"==typeof r&&r&&(t=r),!t&&e.columns)throw console.error(e),new Error('A column ID (or unique "Header" value) is required!');if(!t)throw console.error(e),new Error("A column ID (or string accessor) is required!");return Object.assign(e,{id:t,accessor:n}),e}function P(e,t){if(!t)throw new Error;return Object.assign(e,o({Header:l,Footer:l},c,{},t,{},e)),Object.assign(e,{originalWidth:e.width}),e}function k(e,t,n){void 0===n&&(n=function(){return{}});for(var r=[],i=e,a=0,s=function(){return a++},u=function(){var e={headers:[]},a=[],u=i.some((function(e){return e.parent}));i.forEach((function(r){var i,l=[].concat(a).reverse()[0];u&&(i=r.parent?o({},r.parent,{originalId:r.parent.id,id:r.parent.id+"_"+s(),headers:[r]},n(r)):P(o({originalId:r.id+"_placeholder",id:r.id+"_placeholder_"+s(),placeholderOf:r,headers:[r]},n(r)),t),l&&l.originalId===i.originalId?l.headers.push(r):a.push(i)),e.headers.push(r)})),r.push(e),i=a};i.length;)u();return r.reverse()}var E=new Map;function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0;r<t.length;r+=1)if(void 0!==t[r])return t[r]}function A(e){if("function"==typeof e)return e}function F(e,t){var n=[];return function e(r){r.forEach((function(r){r[t]?e(r[t]):n.push(r)}))}(e),n}function B(e,t){var n=t.manualExpandedKey,r=t.expanded,o=t.expandSubRows,i=void 0===o||o,a=[];return e.forEach((function(e){return function e(t,o){void 0===o&&(o=!0),t.isExpanded=t.original&&t.original[n]||r[t.id],t.canExpand=t.subRows&&!!t.subRows.length,o&&a.push(t),t.subRows&&t.subRows.length&&t.isExpanded&&t.subRows.forEach((function(t){return e(t,i)}))}(e)})),a}function O(e,t,n){return A(e)||t[e]||n[e]||n.text}function T(e,t,n){return e?e(t,n):void 0===t}function G(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var j=null,z=/\[/g,H=/\]/g,M=function(e){return o({role:"table"},e)},_=function(e){return o({role:"rowgroup"},e)},W=function(e,t){var n=t.column;return o({key:"header_"+n.id,colSpan:n.totalVisibleHeaderCount,role:"columnheader"},e)},D=function(e,t){var n=t.column;return o({key:"footer_"+n.id,colSpan:n.totalVisibleHeaderCount},e)},N=function(e,t){return o({key:"headerGroup_"+t.index,role:"row"},e)},L=function(e,t){return o({key:"footerGroup_"+t.index},e)},$=function(e,t){return o({key:"row_"+t.row.id,role:"row"},e)},V=function(e,t){var n=t.cell;return o({key:"cell_"+n.row.id+"_"+n.column.id,role:"cell"},e)};function X(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[M],getTableBodyProps:[_],getHeaderGroupProps:[N],getFooterGroupProps:[L],getHeaderProps:[W],getFooterProps:[D],getRowProps:[$],getCellProps:[V],useFinalInstance:[]}}s.resetHiddenColumns="resetHiddenColumns",s.toggleHideColumn="toggleHideColumn",s.setHiddenColumns="setHiddenColumns",s.toggleHideAllColumns="toggleHideAllColumns";var q=function(e){e.getToggleHiddenProps=[U],e.getToggleHideAllColumnsProps=[Y],e.stateReducers.push(K),e.useInstanceBeforeDimensions.push(Z),e.headerGroupsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.hiddenColumns])})),e.useInstance.push(J)};q.pluginName="useColumnVisibility";var U=function(e,t){var n=t.column;return[e,{onChange:function(e){n.toggleHidden(!e.target.checked)},style:{cursor:"pointer"},checked:n.isVisible,title:"Toggle Column Visible"}]},Y=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleHideAllColumns(!e.target.checked)},style:{cursor:"pointer"},checked:!n.allColumnsHidden&&!n.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!n.allColumnsHidden&&n.state.hiddenColumns.length}]};function K(e,t,n,r){if(t.type===s.init)return o({hiddenColumns:[]},e);if(t.type===s.resetHiddenColumns)return o({},e,{hiddenColumns:r.initialState.hiddenColumns||[]});if(t.type===s.toggleHideColumn){var i=(void 0!==t.value?t.value:!e.hiddenColumns.includes(t.columnId))?[].concat(e.hiddenColumns,[t.columnId]):e.hiddenColumns.filter((function(e){return e!==t.columnId}));return o({},e,{hiddenColumns:i})}return t.type===s.setHiddenColumns?o({},e,{hiddenColumns:h(t.value,e.hiddenColumns)}):t.type===s.toggleHideAllColumns?o({},e,{hiddenColumns:(void 0!==t.value?t.value:!e.hiddenColumns.length)?r.allColumns.map((function(e){return e.id})):[]}):void 0}function Z(e){var n=e.headers,r=e.state.hiddenColumns;t.useRef(!1).current;var o=0;n.forEach((function(e){return o+=function e(t,n){t.isVisible=n&&!r.includes(t.id);var o=0;return t.headers&&t.headers.length?t.headers.forEach((function(n){return o+=e(n,t.isVisible)})):o=t.isVisible?1:0,t.totalVisibleHeaderCount=o,o}(e,!0)}))}function J(e){var n=e.columns,r=e.flatHeaders,o=e.dispatch,i=e.allColumns,a=e.getHooks,u=e.state.hiddenColumns,l=e.autoResetHiddenColumns,c=void 0===l||l,d=v(e),p=i.length===u.length,g=t.useCallback((function(e,t){return o({type:s.toggleHideColumn,columnId:e,value:t})}),[o]),m=t.useCallback((function(e){return o({type:s.setHiddenColumns,value:e})}),[o]),h=t.useCallback((function(e){return o({type:s.toggleHideAllColumns,value:e})}),[o]),y=f(a().getToggleHideAllColumnsProps,{instance:d()});r.forEach((function(e){e.toggleHidden=function(t){o({type:s.toggleHideColumn,columnId:e.id,value:t})},e.getToggleHiddenProps=f(a().getToggleHiddenProps,{instance:d(),column:e})}));var w=v(c);b((function(){w()&&o({type:s.resetHiddenColumns})}),[o,n]),Object.assign(e,{allColumnsHidden:p,toggleHideColumn:g,setHiddenColumns:m,toggleHideAllColumns:h,getToggleHideAllColumnsProps:y})}var Q={},ee={},te=function(e,t,n){return e},ne=function(e,t){return e.subRows||[]},re=function(e,t,n){return""+(n?[n.id,t].join("."):t)},oe=function(e){return e};function ie(e){var t=e.initialState,n=void 0===t?Q:t,r=e.defaultColumn,a=void 0===r?ee:r,s=e.getSubRows,u=void 0===s?ne:s,l=e.getRowId,c=void 0===l?re:l,d=e.stateReducer,f=void 0===d?te:d,p=e.useControlledState,g=void 0===p?oe:p;return o({},i(e,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:n,defaultColumn:a,getSubRows:u,getRowId:c,stateReducer:f,useControlledState:g})}function ae(e,t){void 0===t&&(t=0);var n=0,r=0,o=0,i=0;return e.forEach((function(e){var a=e.headers;if(e.totalLeft=t,a&&a.length){var s=ae(a,t),u=s[0],l=s[1],c=s[2],d=s[3];e.totalMinWidth=u,e.totalWidth=l,e.totalMaxWidth=c,e.totalFlexWidth=d}else e.totalMinWidth=e.minWidth,e.totalWidth=Math.min(Math.max(e.minWidth,e.width),e.maxWidth),e.totalMaxWidth=e.maxWidth,e.totalFlexWidth=e.canResize?e.totalWidth:0;e.isVisible&&(t+=e.totalWidth,n+=e.totalMinWidth,r+=e.totalWidth,o+=e.totalMaxWidth,i+=e.totalFlexWidth)})),[n,r,o,i]}function se(e){var t=e.data,n=e.rows,r=e.flatRows,o=e.rowsById,i=e.column,a=e.getRowId,s=e.getSubRows,u=e.accessValueHooks,l=e.getInstance;t.forEach((function(e,c){return function e(n,c,d,f,g){void 0===d&&(d=0);var m=n,h=a(n,c,f),v=o[h];if(v)v.subRows&&v.originalSubRows.forEach((function(t,n){return e(t,n,d+1,v)}));else if((v={id:h,original:m,index:c,depth:d,cells:[{}]}).cells.map=G,v.cells.filter=G,v.cells.forEach=G,v.cells[0].getCellProps=G,v.values={},g.push(v),r.push(v),o[h]=v,v.originalSubRows=s(n,c),v.originalSubRows){var y=[];v.originalSubRows.forEach((function(t,n){return e(t,n,d+1,v,y)})),v.subRows=y}i.accessor&&(v.values[i.id]=i.accessor(n,c,v,g,t)),v.values[i.id]=p(u,v.values[i.id],{row:v,column:i,instance:l()})}(e,c,0,void 0,n)}))}s.resetExpanded="resetExpanded",s.toggleRowExpanded="toggleRowExpanded",s.toggleAllRowsExpanded="toggleAllRowsExpanded";var ue=function(e){e.getToggleAllRowsExpandedProps=[le],e.getToggleRowExpandedProps=[ce],e.stateReducers.push(de),e.useInstance.push(fe),e.prepareRow.push(pe)};ue.pluginName="useExpanded";var le=function(e,t){var n=t.instance;return[e,{onClick:function(e){n.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},ce=function(e,t){var n=t.row;return[e,{onClick:function(){n.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function de(e,t,n,r){if(t.type===s.init)return o({expanded:{}},e);if(t.type===s.resetExpanded)return o({},e,{expanded:r.initialState.expanded||{}});if(t.type===s.toggleAllRowsExpanded){var u=t.value,l=r.rowsById,c=Object.keys(l).length===Object.keys(e.expanded).length;if(void 0!==u?u:!c){var d={};return Object.keys(l).forEach((function(e){d[e]=!0})),o({},e,{expanded:d})}return o({},e,{expanded:{}})}if(t.type===s.toggleRowExpanded){var f,p=t.id,g=t.value,m=e.expanded[p],h=void 0!==g?g:!m;if(!m&&h)return o({},e,{expanded:o({},e.expanded,(f={},f[p]=!0,f))});if(m&&!h){var v=e.expanded;return v[p],o({},e,{expanded:i(v,[p].map(a))})}return e}}function fe(e){var n=e.data,r=e.rows,o=e.rowsById,i=e.manualExpandedKey,a=void 0===i?"expanded":i,u=e.paginateExpandedRows,l=void 0===u||u,c=e.expandSubRows,d=void 0===c||c,p=e.autoResetExpanded,g=void 0===p||p,h=e.getHooks,y=e.plugins,w=e.state.expanded,S=e.dispatch;m(y,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var R=v(g),C=Boolean(Object.keys(o).length&&Object.keys(w).length);C&&Object.keys(o).some((function(e){return!w[e]}))&&(C=!1),b((function(){R()&&S({type:s.resetExpanded})}),[S,n]);var x=t.useCallback((function(e,t){S({type:s.toggleRowExpanded,id:e,value:t})}),[S]),P=t.useCallback((function(e){return S({type:s.toggleAllRowsExpanded,value:e})}),[S]),k=t.useMemo((function(){return l?B(r,{manualExpandedKey:a,expanded:w,expandSubRows:d}):r}),[l,r,a,w,d]),E=t.useMemo((function(){return function(e){var t=0;return Object.keys(e).forEach((function(e){var n=e.split(".");t=Math.max(t,n.length)})),t}(w)}),[w]),I=v(e),A=f(h().getToggleAllRowsExpandedProps,{instance:I()});Object.assign(e,{preExpandedRows:r,expandedRows:k,rows:k,expandedDepth:E,isAllRowsExpanded:C,toggleRowExpanded:x,toggleAllRowsExpanded:P,getToggleAllRowsExpandedProps:A})}function pe(e,t){var n=t.instance.getHooks,r=t.instance;e.toggleRowExpanded=function(t){return r.toggleRowExpanded(e.id,t)},e.getToggleRowExpandedProps=f(n().getToggleRowExpandedProps,{instance:r,row:e})}var ge=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return String(r).toLowerCase().includes(String(n).toLowerCase())}))}))};ge.autoRemove=function(e){return!e};var me=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r).toLowerCase()===String(n).toLowerCase()}))}))};me.autoRemove=function(e){return!e};var he=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r)===String(n)}))}))};he.autoRemove=function(e){return!e};var ve=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t].includes(n)}))}))};ve.autoRemove=function(e){return!e||!e.length};var ye=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.every((function(e){return r.includes(e)}))}))}))};ye.autoRemove=function(e){return!e||!e.length};var be=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.some((function(e){return r.includes(e)}))}))}))};be.autoRemove=function(e){return!e||!e.length};var we=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return n.includes(r)}))}))};we.autoRemove=function(e){return!e||!e.length};var Se=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]===n}))}))};Se.autoRemove=function(e){return void 0===e};var Re=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]==n}))}))};Re.autoRemove=function(e){return null==e};var Ce=function(e,t,n){var r=n||[],o=r[0],i=r[1];if((o="number"==typeof o?o:-1/0)>(i="number"==typeof i?i:1/0)){var a=o;o=i,i=a}return e.filter((function(e){return t.some((function(t){var n=e.values[t];return n>=o&&n<=i}))}))};Ce.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var xe=Object.freeze({__proto__:null,text:ge,exactText:me,exactTextCase:he,includes:ve,includesAll:ye,includesSome:be,includesValue:we,exact:Se,equals:Re,between:Ce});s.resetFilters="resetFilters",s.setFilter="setFilter",s.setAllFilters="setAllFilters";var Pe=function(e){e.stateReducers.push(ke),e.useInstance.push(Ee)};function ke(e,t,n,r){if(t.type===s.init)return o({filters:[]},e);if(t.type===s.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===s.setFilter){var i=t.columnId,a=t.filterValue,u=r.allColumns,l=r.filterTypes,c=u.find((function(e){return e.id===i}));if(!c)throw new Error("React-Table: Could not find a column with id: "+i);var d=O(c.filter,l||{},xe),f=e.filters.find((function(e){return e.id===i})),p=h(a,f&&f.value);return T(d.autoRemove,p,c)?o({},e,{filters:e.filters.filter((function(e){return e.id!==i}))}):o({},e,f?{filters:e.filters.map((function(e){return e.id===i?{id:i,value:p}:e}))}:{filters:[].concat(e.filters,[{id:i,value:p}])})}if(t.type===s.setAllFilters){var g=t.filters,m=r.allColumns,v=r.filterTypes;return o({},e,{filters:h(g,e.filters).filter((function(e){var t=m.find((function(t){return t.id===e.id}));return!T(O(t.filter,v||{},xe).autoRemove,e.value,t)}))})}}function Ee(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.filterTypes,l=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,f=e.disableFilters,p=e.state.filters,g=e.dispatch,m=e.autoResetFilters,h=void 0===m||m,y=t.useCallback((function(e,t){g({type:s.setFilter,columnId:e,filterValue:t})}),[g]),w=t.useCallback((function(e){g({type:s.setAllFilters,filters:e})}),[g]);a.forEach((function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?I(!0!==o&&void 0,!0!==f&&void 0,!0):I(r,d,!1),e.setFilter=function(t){return y(e.id,t)};var i=p.find((function(e){return e.id===t}));e.filterValue=i&&i.value}));var S=t.useMemo((function(){if(l||!p.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=p.reduce((function(e,t){var n=t.id,r=t.value,i=a.find((function(e){return e.id===n}));if(!i)return e;0===o&&(i.preFilteredRows=e);var s=O(i.filter,u||{},xe);return s?(i.filteredRows=s(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)}),r)).forEach((function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)})),i}(r),e,t]}),[l,p,r,o,i,a,u]),R=S[0],C=S[1],x=S[2];t.useMemo((function(){a.filter((function(e){return!p.find((function(t){return t.id===e.id}))})).forEach((function(e){e.preFilteredRows=R,e.filteredRows=R}))}),[R,p,a]);var P=v(h);b((function(){P()&&g({type:s.resetFilters})}),[g,l?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:R,filteredFlatRows:C,filteredRowsById:x,rows:R,flatRows:C,rowsById:x,setFilter:y,setAllFilters:w})}Pe.pluginName="useFilters",s.resetGlobalFilter="resetGlobalFilter",s.setGlobalFilter="setGlobalFilter";var Ie=function(e){e.stateReducers.push(Ae),e.useInstance.push(Fe)};function Ae(e,t,n,r){if(t.type===s.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===s.setGlobalFilter){var a=t.filterValue,u=r.userFilterTypes,l=O(r.globalFilter,u||{},xe),c=h(a,e.globalFilter);return T(l.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function Fe(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.filterTypes,l=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,f=e.dispatch,p=e.autoResetGlobalFilter,g=void 0===p||p,m=e.disableGlobalFilter,h=t.useCallback((function(e){f({type:s.setGlobalFilter,filterValue:e})}),[f]),y=t.useMemo((function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=O(l,u||{},xe);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;a.forEach((function(e){var t=e.disableGlobalFilter;e.canFilter=I(!0!==t&&void 0,!0!==m&&void 0,!0)}));var s=a.filter((function(e){return!0===e.canFilter}));return[function r(o){return(o=n(o,s.map((function(e){return e.id})),d)).forEach((function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows})),o}(r),e,t]}),[c,d,l,u,a,r,o,i,m]),w=y[0],S=y[1],R=y[2],C=v(g);b((function(){C()&&f({type:s.resetGlobalFilter})}),[f,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:w,globalFilteredFlatRows:S,globalFilteredRowsById:R,rows:w,flatRows:S,rowsById:R,setGlobalFilter:h,disableGlobalFilter:m})}function Be(e,t){return t.reduce((function(e,t){return e+("number"==typeof t?t:0)}),0)}Ie.pluginName="useGlobalFilter";var Oe=Object.freeze({__proto__:null,sum:Be,min:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e))})),t},max:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.max(t,e))})),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))})),t+".."+n},average:function(e){return Be(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort((function(e,t){return e-t}));return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),Te=[],Ge={};s.resetGroupBy="resetGroupBy",s.setGroupBy="setGroupBy",s.toggleGroupBy="toggleGroupBy";var je=function(e){e.getGroupByToggleProps=[ze],e.stateReducers.push(He),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.groupBy])})),e.visibleColumns.push(Me),e.useInstance.push(We),e.prepareRow.push(De)};je.pluginName="useGroupBy";var ze=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function He(e,t,n,r){if(t.type===s.init)return o({groupBy:[]},e);if(t.type===s.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===s.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===s.toggleGroupBy){var i=t.columnId,a=t.value,u=void 0!==a?a:!e.groupBy.includes(i);return o({},e,u?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter((function(e){return e!==i}))})}}function Me(e,t){var n=t.instance.state.groupBy,r=n.map((function(t){return e.find((function(e){return e.id===t}))})).filter(Boolean),o=e.filter((function(e){return!n.includes(e.id)}));return(e=[].concat(r,o)).forEach((function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)})),e}var _e={};function We(e){var n=e.data,r=e.rows,i=e.flatRows,a=e.rowsById,u=e.allColumns,l=e.flatHeaders,c=e.groupByFn,d=void 0===c?Ne:c,p=e.manualGroupBy,g=e.aggregations,h=void 0===g?_e:g,y=e.plugins,w=e.state.groupBy,S=e.dispatch,R=e.autoResetGroupBy,C=void 0===R||R,x=e.disableGroupBy,P=e.defaultCanGroupBy,k=e.getHooks;m(y,["useColumnOrder","useFilters"],"useGroupBy");var E=v(e);u.forEach((function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?I(t.canGroupBy,!0!==o&&void 0,!0!==x&&void 0,!0):I(t.canGroupBy,r,P,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell}));var A=t.useCallback((function(e,t){S({type:s.toggleGroupBy,columnId:e,value:t})}),[S]),B=t.useCallback((function(e){S({type:s.setGroupBy,value:e})}),[S]);l.forEach((function(e){e.getGroupByToggleProps=f(k().getGroupByToggleProps,{instance:E(),header:e})}));var O=t.useMemo((function(){if(p||!w.length)return[r,i,a,Te,Ge,i,a];var e=w.filter((function(e){return u.find((function(t){return t.id===e}))})),t=[],n={},s=[],l={},c=[],f={},g=function r(i,a,p){if(void 0===a&&(a=0),a===e.length)return i.map((function(e){return o({},e,{depth:a})}));var g=e[a],m=d(i,g);return Object.entries(m).map((function(o,i){var d=o[0],m=o[1],v=g+":"+d,y=r(m,a+1,v=p?p+">"+v:v),b=a?F(m,"leafRows"):m,w=function(t,n,r){var o={};return u.forEach((function(i){if(e.includes(i.id))o[i.id]=n[0]?n[0].values[i.id]:null;else{var a="function"==typeof i.aggregate?i.aggregate:h[i.aggregate]||Oe[i.aggregate];if(a){var s=n.map((function(e){return e.values[i.id]})),u=t.map((function(e){var t=e.values[i.id];if(!r&&i.aggregateValue){var n="function"==typeof i.aggregateValue?i.aggregateValue:h[i.aggregateValue]||Oe[i.aggregateValue];if(!n)throw console.info({column:i}),new Error("React Table: Invalid column.aggregateValue option for column listed above");t=n(t,e,i)}return t}));o[i.id]=a(u,s)}else{if(i.aggregate)throw console.info({column:i}),new Error("React Table: Invalid column.aggregate option for column listed above");o[i.id]=null}}})),o}(b,m,a),S={id:v,isGrouped:!0,groupByID:g,groupByVal:d,values:w,subRows:y,leafRows:b,depth:a,index:i};return y.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(s.push(e),l[e.id]=e):(c.push(e),f[e.id]=e)})),S}))}(r);return g.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(s.push(e),l[e.id]=e):(c.push(e),f[e.id]=e)})),[g,t,n,s,l,c,f]}),[p,w,r,i,a,u,h,d]),T=O[0],G=O[1],j=O[2],z=O[3],H=O[4],M=O[5],_=O[6],W=v(C);b((function(){W()&&S({type:s.resetGroupBy})}),[S,p?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:i,preGroupedRowsById:a,groupedRows:T,groupedFlatRows:G,groupedRowsById:j,onlyGroupedFlatRows:z,onlyGroupedRowsById:H,nonGroupedFlatRows:M,nonGroupedRowsById:_,rows:T,flatRows:G,rowsById:j,toggleGroupBy:A,setGroupBy:B})}function De(e){e.allCells.forEach((function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)}))}function Ne(e,t){return e.reduce((function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e}),{})}var Le=/([0-9]+)/gm;function $e(e,t){return e===t?0:e>t?1:-1}function Ve(e,t,n){return[e.values[n],t.values[n]]}function Xe(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var qe=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1];for(o=Xe(o),i=Xe(i),o=o.split(Le).filter(Boolean),i=i.split(Le).filter(Boolean);o.length&&i.length;){var a=o.shift(),s=i.shift(),u=parseInt(a,10),l=parseInt(s,10),c=[u,l].sort();if(isNaN(c[0])){if(a>s)return 1;if(s>a)return-1}else{if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return-1}}return o.length-i.length},datetime:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1];return $e(o=o.getTime(),i=i.getTime())},basic:function(e,t,n){var r=Ve(e,t,n);return $e(r[0],r[1])},string:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1];for(o=o.split("").filter(Boolean),i=i.split("").filter(Boolean);o.length&&i.length;){var a=o.shift(),s=i.shift(),u=a.toLowerCase(),l=s.toLowerCase();if(u>l)return 1;if(l>u)return-1;if(a>s)return 1;if(s>a)return-1}return o.length-i.length},number:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1],a=/[^0-9.]/gi;return $e(o=Number(String(o).replace(a,"")),i=Number(String(i).replace(a,"")))}});s.resetSortBy="resetSortBy",s.setSortBy="setSortBy",s.toggleSortBy="toggleSortBy",s.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var Ue=function(e){e.getSortByToggleProps=[Ye],e.stateReducers.push(Ke),e.useInstance.push(Ze)};Ue.pluginName="useSortBy";var Ye=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function Ke(e,t,n,r){if(t.type===s.init)return o({sortBy:[]},e);if(t.type===s.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===s.clearSortBy)return o({},e,{sortBy:e.sortBy.filter((function(e){return e.id!==t.columnId}))});if(t.type===s.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===s.toggleSortBy){var i,a=t.columnId,u=t.desc,l=t.multi,c=r.allColumns,d=r.disableMultiSort,f=r.disableSortRemove,p=r.disableMultiRemove,g=r.maxMultiSortColCount,m=void 0===g?Number.MAX_SAFE_INTEGER:g,h=e.sortBy,v=c.find((function(e){return e.id===a})).sortDescFirst,y=h.find((function(e){return e.id===a})),b=h.findIndex((function(e){return e.id===a})),w=null!=u,S=[];return"toggle"!=(i=!d&&l?y?"toggle":"add":b!==h.length-1||1!==h.length?"replace":y?"toggle":"replace")||f||w||l&&p||!(y&&y.desc&&!v||!y.desc&&v)||(i="remove"),"replace"===i?S=[{id:a,desc:w?u:v}]:"add"===i?(S=[].concat(h,[{id:a,desc:w?u:v}])).splice(0,S.length-m):"toggle"===i?S=h.map((function(e){return e.id===a?o({},e,{desc:w?u:!y.desc}):e})):"remove"===i&&(S=h.filter((function(e){return e.id!==a}))),o({},e,{sortBy:S})}}function Ze(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,a=e.orderByFn,u=void 0===a?Je:a,l=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,p=e.disableSortBy,g=e.flatHeaders,h=e.state.sortBy,y=e.dispatch,w=e.plugins,S=e.getHooks,R=e.autoResetSortBy,C=void 0===R||R;m(w,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var x=t.useCallback((function(e){y({type:s.setSortBy,sortBy:e})}),[y]),P=t.useCallback((function(e,t,n){y({type:s.toggleSortBy,columnId:e,desc:t,multi:n})}),[y]),k=v(e);g.forEach((function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?I(!0!==r&&void 0,!0!==p&&void 0,!0):I(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return P(e.id,t,n)},e.clearSortBy=function(){y({type:s.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=f(S().getSortByToggleProps,{instance:k(),column:e});var a=h.find((function(e){return e.id===o}));e.isSorted=!!a,e.sortedIndex=h.findIndex((function(e){return e.id===o})),e.isSortedDesc=e.isSorted?a.desc:void 0}));var E=t.useMemo((function(){if(c||!h.length)return[r,o];var e=[],t=h.filter((function(e){return i.find((function(t){return t.id===e.id}))}));return[function n(r){var o=u(r,t.map((function(e){var t=i.find((function(t){return t.id===e.id}));if(!t)throw new Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=A(n)||(l||{})[n]||qe[n];if(!r)throw new Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}})),t.map((function(e){var t=i.find((function(t){return t.id===e.id}));return t&&t.sortInverted?e.desc:!e.desc})));return o.forEach((function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))})),o}(r),e]}),[c,h,r,o,i,u,l]),F=E[0],B=E[1],O=v(C);b((function(){O()&&y({type:s.resetSortBy})}),[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:F,sortedFlatRows:B,rows:F,flatRows:B,setSortBy:x,toggleSortBy:P})}function Je(e,t,n){return[].concat(e).sort((function(e,r){for(var o=0;o<t.length;o+=1){var i=t[o],a=!1===n[o]||"desc"===n[o],s=i(e,r);if(0!==s)return a?-s:s}return n[0]?e.index-r.index:r.index-e.index}))}s.resetPage="resetPage",s.gotoPage="gotoPage",s.setPageSize="setPageSize";var Qe=function(e){e.stateReducers.push(et),e.useInstance.push(tt)};function et(e,t,n,r){if(t.type===s.init)return o({pageSize:10,pageIndex:0},e);if(t.type===s.resetPage)return o({},e,{pageIndex:r.initialState.pageIndex||0});if(t.type===s.gotoPage){var i=r.pageCount,a=r.page,u=h(t.pageIndex,e.pageIndex),l=!1;return u>e.pageIndex?l=-1===i?a.length>=e.pageSize:u<i:u<e.pageIndex&&(l=u>-1),l?o({},e,{pageIndex:u}):e}if(t.type===s.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function tt(e){var n=e.rows,r=e.autoResetPage,o=void 0===r||r,i=e.manualExpandedKey,a=void 0===i?"expanded":i,u=e.plugins,l=e.pageCount,c=e.paginateExpandedRows,d=void 0===c||c,f=e.expandSubRows,p=void 0===f||f,g=e.state,h=g.pageSize,y=g.pageIndex,w=g.expanded,S=g.globalFilter,R=g.filters,C=g.groupBy,x=g.sortBy,P=e.dispatch,k=e.data,E=e.manualPagination;m(u,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var I=v(o);b((function(){I()&&P({type:s.resetPage})}),[P,E?null:k,S,R,C,x]);var A=E?l:Math.ceil(n.length/h),F=t.useMemo((function(){return A>0?[].concat(new Array(A)).fill(null).map((function(e,t){return t})):[]}),[A]),O=t.useMemo((function(){var e;if(E)e=n;else{var t=h*y,r=t+h;e=n.slice(t,r)}return d?e:B(e,{manualExpandedKey:a,expanded:w,expandSubRows:p})}),[p,w,a,E,y,h,d,n]),T=y>0,G=-1===A?O.length>=h:y<A-1,j=t.useCallback((function(e){P({type:s.gotoPage,pageIndex:e})}),[P]),z=t.useCallback((function(){return j((function(e){return e-1}))}),[j]),H=t.useCallback((function(){return j((function(e){return e+1}))}),[j]),M=t.useCallback((function(e){P({type:s.setPageSize,pageSize:e})}),[P]);Object.assign(e,{pageOptions:F,pageCount:A,page:O,canPreviousPage:T,canNextPage:G,gotoPage:j,previousPage:z,nextPage:H,setPageSize:M})}Qe.pluginName="usePagination",s.resetPivot="resetPivot",s.togglePivot="togglePivot";var nt=function(e){e.getPivotToggleProps=[ot],e.stateReducers.push(it),e.useInstanceAfterData.push(at),e.allColumns.push(st),e.accessValue.push(ut),e.materializedColumns.push(lt),e.materializedColumnsDeps.push(ct),e.visibleColumns.push(dt),e.visibleColumnsDeps.push(ft),e.useInstance.push(pt),e.prepareRow.push(gt)};nt.pluginName="usePivotColumns";var rt=[],ot=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function it(e,t,n,r){if(t.type===s.init)return o({pivotColumns:rt},e);if(t.type===s.resetPivot)return o({},e,{pivotColumns:r.initialState.pivotColumns||rt});if(t.type===s.togglePivot){var i=t.columnId,a=t.value,u=void 0!==a?a:!e.pivotColumns.includes(i);return o({},e,u?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter((function(e){return e!==i}))})}}function at(e){e.allColumns.forEach((function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)}))}function st(e,t){var n=t.instance;return e.forEach((function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set})),e}function ut(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function lt(e,t){var n=t.instance,r=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var a=i.pivotColumns.map((function(e){return r.find((function(t){return t.id===e}))})).filter(Boolean),s=r.filter((function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)})),u=C(function e(t,n,r){void 0===t&&(t=0),void 0===r&&(r=[]);var i=a[t];return i?Array.from(i.uniqueValues).sort().map((function(a){var s=o({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+a:a,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+a:i.id+"."+a,pivotValue:a});return s.columns=e(t+1,s,[].concat(r,[function(e){return e.values[i.id]===a}])),s})):s.map((function(e){return o({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,o){if(r.every((function(e){return e(o)})))return o.values[e.id]}})}))}());return[].concat(e,u)}function ct(e,t){var n=t.instance.state,r=n.pivotColumns,o=n.groupBy;return[].concat(e,[r,o])}function dt(e,t){var n=t.instance.state;return e=e.filter((function(e){return!e.isPivotSource})),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter((function(e){return e.isGrouped||e.isPivoted}))),e}function ft(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function pt(e){var t=e.columns,n=e.allColumns,r=e.flatHeaders,o=e.getHooks,i=e.plugins,a=e.dispatch,u=e.autoResetPivot,l=void 0===u||u,c=e.manaulPivot,d=e.disablePivot,p=e.defaultCanPivot;m(i,["useGroupBy"],"usePivotColumns");var g=v(e);n.forEach((function(t){var n=t.accessor,r=t.defaultPivot,o=t.disablePivot;t.canPivot=n?I(t.canPivot,!0!==o&&void 0,!0!==d&&void 0,!0):I(t.canPivot,r,p,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell})),r.forEach((function(e){e.getPivotToggleProps=f(o().getPivotToggleProps,{instance:g(),header:e})}));var h=v(l);b((function(){h()&&a({type:s.resetPivot})}),[a,c?null:t]),Object.assign(e,{togglePivot:function(e,t){a({type:s.togglePivot,columnId:e,value:t})}})}function gt(e){e.allCells.forEach((function(e){e.isPivoted=e.column.isPivoted}))}s.resetSelectedRows="resetSelectedRows",s.toggleAllRowsSelected="toggleAllRowsSelected",s.toggleRowSelected="toggleRowSelected",s.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var mt=function(e){e.getToggleRowSelectedProps=[ht],e.getToggleAllRowsSelectedProps=[vt],e.getToggleAllPageRowsSelectedProps=[yt],e.stateReducers.push(bt),e.useInstance.push(wt),e.prepareRow.push(St)};mt.pluginName="useRowSelect";var ht=function(e,t){var n=t.instance,r=t.row,o=n.manualRowSelectedKey,i=void 0===o?"isSelected":o;return[e,{onChange:function(e){r.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!r.original||!r.original[i])||r.isSelected,title:"Toggle Row Selected",indeterminate:r.isSomeSelected}]},vt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},yt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some((function(e){var t=e.id;return n.state.selectedRowIds[t]})))}]};function bt(e,t,n,r){if(t.type===s.init)return o({selectedRowIds:{}},e);if(t.type===s.resetSelectedRows)return o({},e,{selectedRowIds:r.initialState.selectedRowIds||{}});if(t.type===s.toggleAllRowsSelected){var i=t.value,a=r.isAllRowsSelected,u=r.rowsById,l=r.nonGroupedRowsById,c=void 0===l?u:l,d=void 0!==i?i:!a,f=Object.assign({},e.selectedRowIds);return d?Object.keys(c).forEach((function(e){f[e]=!0})):Object.keys(c).forEach((function(e){delete f[e]})),o({},e,{selectedRowIds:f})}if(t.type===s.toggleRowSelected){var p=t.id,g=t.value,m=r.rowsById,h=r.selectSubRows,v=void 0===h||h,y=r.getSubRows,b=e.selectedRowIds[p],w=void 0!==g?g:!b;if(b===w)return e;var S=o({},e.selectedRowIds);return function e(t){var n=m[t];if(n&&(n.isGrouped||(w?S[t]=!0:delete S[t]),v&&y(n)))return y(n).forEach((function(t){return e(t.id)}))}(p),o({},e,{selectedRowIds:S})}if(t.type===s.toggleAllPageRowsSelected){var R=t.value,C=r.page,x=r.rowsById,P=r.selectSubRows,k=void 0===P||P,E=r.isAllPageRowsSelected,I=r.getSubRows,A=void 0!==R?R:!E,F=o({},e.selectedRowIds);return C.forEach((function(e){return function e(t){var n=x[t];if(n.isGrouped||(A?F[t]=!0:delete F[t]),k&&I(n))return I(n).forEach((function(t){return e(t.id)}))}(e.id)})),o({},e,{selectedRowIds:F})}return e}function wt(e){var n=e.data,r=e.rows,o=e.getHooks,i=e.plugins,a=e.rowsById,u=e.nonGroupedRowsById,l=void 0===u?a:u,c=e.autoResetSelectedRows,d=void 0===c||c,p=e.state.selectedRowIds,g=e.selectSubRows,h=void 0===g||g,y=e.dispatch,w=e.page,S=e.getSubRows;m(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var R=t.useMemo((function(){var e=[];return r.forEach((function(t){var n=h?function e(t,n,r){if(n[t.id])return!0;var o=r(t);if(o&&o.length){var i=!0,a=!1;return o.forEach((function(t){a&&!i||(e(t,n,r)?a=!0:i=!1)})),!!i||!!a&&null}return!1}(t,p,S):!!p[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)})),e}),[r,h,p,S]),C=Boolean(Object.keys(l).length&&Object.keys(p).length),x=C;C&&Object.keys(l).some((function(e){return!p[e]}))&&(C=!1),C||w&&w.length&&w.some((function(e){var t=e.id;return!p[t]}))&&(x=!1);var P=v(d);b((function(){P()&&y({type:s.resetSelectedRows})}),[y,n]);var k=t.useCallback((function(e){return y({type:s.toggleAllRowsSelected,value:e})}),[y]),E=t.useCallback((function(e){return y({type:s.toggleAllPageRowsSelected,value:e})}),[y]),I=t.useCallback((function(e,t){return y({type:s.toggleRowSelected,id:e,value:t})}),[y]),A=v(e),F=f(o().getToggleAllRowsSelectedProps,{instance:A()}),B=f(o().getToggleAllPageRowsSelectedProps,{instance:A()});Object.assign(e,{selectedFlatRows:R,isAllRowsSelected:C,isAllPageRowsSelected:x,toggleRowSelected:I,toggleAllRowsSelected:k,getToggleAllRowsSelectedProps:F,getToggleAllPageRowsSelectedProps:B,toggleAllPageRowsSelected:E})}function St(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=f(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var Rt=function(e){return{}},Ct=function(e){return{}};s.setRowState="setRowState",s.setCellState="setCellState",s.resetRowState="resetRowState";var xt=function(e){e.stateReducers.push(Pt),e.useInstance.push(kt),e.prepareRow.push(Et)};function Pt(e,t,n,r){var i=r.initialRowStateAccessor,a=void 0===i?Rt:i,u=r.initialCellStateAccessor,l=void 0===u?Ct:u,c=r.rowsById;if(t.type===s.init)return o({rowState:{}},e);if(t.type===s.resetRowState)return o({},e,{rowState:r.initialState.rowState||{}});if(t.type===s.setRowState){var d,f=t.rowId,p=t.value,g=void 0!==e.rowState[f]?e.rowState[f]:a(c[f]);return o({},e,{rowState:o({},e.rowState,(d={},d[f]=h(p,g),d))})}if(t.type===s.setCellState){var m,v,y,b,w,S=t.rowId,R=t.columnId,C=t.value,x=void 0!==e.rowState[S]?e.rowState[S]:a(c[S]),P=void 0!==(null==x||null==(m=x.cellState)?void 0:m[R])?x.cellState[R]:l(null==(v=c[S])||null==(y=v.cells)?void 0:y.find((function(e){return e.column.id===R})));return o({},e,{rowState:o({},e.rowState,(w={},w[S]=o({},x,{cellState:o({},x.cellState||{},(b={},b[R]=h(C,P),b))}),w))})}}function kt(e){var n=e.autoResetRowState,r=void 0===n||n,o=e.data,i=e.dispatch,a=t.useCallback((function(e,t){return i({type:s.setRowState,rowId:e,value:t})}),[i]),u=t.useCallback((function(e,t,n){return i({type:s.setCellState,rowId:e,columnId:t,value:n})}),[i]),l=v(r);b((function(){l()&&i({type:s.resetRowState})}),[o]),Object.assign(e,{setRowState:a,setCellState:u})}function Et(e,t){var n=t.instance,r=n.initialRowStateAccessor,o=void 0===r?Rt:r,i=n.initialCellStateAccessor,a=void 0===i?Ct:i,s=n.state.rowState;e&&(e.state=void 0!==s[e.id]?s[e.id]:o(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach((function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:a(t),t.setState=function(r){return n.setCellState(e.id,t.column.id,r)}})))}xt.pluginName="useRowState",s.resetColumnOrder="resetColumnOrder",s.setColumnOrder="setColumnOrder";var It=function(e){e.stateReducers.push(At),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.columnOrder])})),e.visibleColumns.push(Ft),e.useInstance.push(Bt)};function At(e,t,n,r){return t.type===s.init?o({columnOrder:[]},e):t.type===s.resetColumnOrder?o({},e,{columnOrder:r.initialState.columnOrder||[]}):t.type===s.setColumnOrder?o({},e,{columnOrder:h(t.columnOrder,e.columnOrder)}):void 0}function Ft(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var r=[].concat(n),o=[].concat(e),i=[],a=function(){var e=r.shift(),t=o.findIndex((function(t){return t.id===e}));t>-1&&i.push(o.splice(t,1)[0])};o.length&&r.length;)a();return[].concat(i,o)}function Bt(e){var n=e.dispatch;e.setColumnOrder=t.useCallback((function(e){return n({type:s.setColumnOrder,columnOrder:e})}),[n])}It.pluginName="useColumnOrder",c.canResize=!0,s.columnStartResizing="columnStartResizing",s.columnResizing="columnResizing",s.columnDoneResizing="columnDoneResizing",s.resetResize="resetResize";var Ot=function(e){e.getResizerProps=[Tt],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Gt),e.useInstance.push(zt),e.useInstanceBeforeDimensions.push(jt)},Tt=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r,i,a=function(e){var t=[];return function e(n){n.columns&&n.columns.length&&n.columns.map(e),t.push(n)}(e),t}(t).map((function(e){return[e.id,e.totalWidth]})),u=n?Math.round(e.touches[0].clientX):e.clientX,l=function(){window.cancelAnimationFrame(r),r=null,o({type:s.columnDoneResizing})},c=function(){window.cancelAnimationFrame(r),r=null,o({type:s.columnResizing,clientX:i})},d=function(e){i=e,r||(r=window.requestAnimationFrame(c))},f={mouse:{moveEvent:"mousemove",moveHandler:function(e){return d(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",f.mouse.moveHandler),document.removeEventListener("mouseup",f.mouse.upHandler),l()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(f.touch.moveEvent,f.touch.moveHandler),document.removeEventListener(f.touch.upEvent,f.touch.moveHandler),l()}}},p=n?f.touch:f.mouse,g=!!function(){if("boolean"==typeof j)return j;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return j=e}()&&{passive:!1};document.addEventListener(p.moveEvent,p.moveHandler,g),document.addEventListener(p.upEvent,p.upHandler,g),o({type:s.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:a,clientX:u})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Gt(e,t){if(t.type===s.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===s.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===s.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,a=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:a,columnWidth:i,isResizingColumn:r})})}if(t.type===s.columnResizing){var u=t.clientX,l=e.columnResizing,c=l.startX,d=l.columnWidth,f=l.headerIdWidths,p=(u-c)/d,g={};return(void 0===f?[]:f).forEach((function(e){var t=e[0],n=e[1];g[t]=Math.max(n+n*p,0)})),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},g)})})}return t.type===s.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Ot.pluginName="useResizeColumns";var jt=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=v(e);t.forEach((function(e){var t=I(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=f(r().getResizerProps,{instance:i(),header:e}))}))};function zt(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=void 0===o||o,a=e.columns;m(n,["useAbsoluteLayout"],"useResizeColumns");var u=v(i);b((function(){u()&&r({type:s.resetResize})}),[a]);var l=t.useCallback((function(){return r({type:s.resetResize})}),[r]);Object.assign(e,{resetResizing:l})}var Ht={position:"absolute",top:0},Mt=function(e){e.getTableBodyProps.push(_t),e.getRowProps.push(_t),e.getHeaderGroupProps.push(_t),e.getFooterGroupProps.push(_t),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Ht,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Ht,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Ht,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}))};Mt.pluginName="useAbsoluteLayout";var _t=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},Wt={display:"inline-block",boxSizing:"border-box"},Dt=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},Nt=function(e){e.getRowProps.push(Dt),e.getHeaderGroupProps.push(Dt),e.getFooterGroupProps.push(Dt),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Wt,{width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Wt,{width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Wt,{width:n.totalWidth+"px"})}]}))};function Lt(e){e.getTableProps.push($t),e.getRowProps.push(Vt),e.getHeaderGroupProps.push(Vt),e.getFooterGroupProps.push(Vt),e.getHeaderProps.push(Xt),e.getCellProps.push(qt),e.getFooterProps.push(Ut)}Nt.pluginName="useBlockLayout",Lt.pluginName="useFlexLayout";var $t=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Vt=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Xt=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},qt=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},Ut=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function Yt(e){e.stateReducers.push(Qt),e.getTableProps.push(Kt),e.getHeaderProps.push(Zt),e.getRowProps.push(Jt)}s.columnStartResizing="columnStartResizing",s.columnResizing="columnResizing",s.columnDoneResizing="columnDoneResizing",s.resetResize="resetResize",Yt.pluginName="useGridLayout";var Kt=function(e,t){var n=t.instance;return[e,{style:{display:"grid",gridTemplateColumns:n.visibleColumns.map((function(e){var t;return n.state.gridLayout.columnWidths[e.id]?n.state.gridLayout.columnWidths[e.id]+"px":(null==(t=n.state.columnResizing)?void 0:t.isResizingColumn)?n.state.gridLayout.startWidths[e.id]+"px":"number"==typeof e.width?e.width+"px":e.width})).join(" ")}}]},Zt=function(e,t){var n=t.column;return[e,{id:"header-cell-"+n.id,style:{position:"sticky",gridColumn:"span "+n.totalVisibleHeaderCount}}]},Jt=function(e,t){var n=t.row;return n.isExpanded?[e,{style:{gridColumn:"1 / "+(n.cells.length+1)}}]:[e,{}]};function Qt(e,t,n,r){if(t.type===s.init)return o({gridLayout:{columnWidths:{}}},e);if(t.type===s.resetResize)return o({},e,{gridLayout:{columnWidths:{}}});if(t.type===s.columnStartResizing){var i=t.columnId,a=t.headerIdWidths,u=en(i);if(void 0!==u){var l=r.visibleColumns.reduce((function(e,t){var n;return o({},e,((n={})[t.id]=en(t.id),n))}),{}),c=r.visibleColumns.reduce((function(e,t){var n;return o({},e,((n={})[t.id]=t.minWidth,n))}),{}),d=r.visibleColumns.reduce((function(e,t){var n;return o({},e,((n={})[t.id]=t.maxWidth,n))}),{}),f=a.map((function(e){var t=e[0];return[t,en(t)]}));return o({},e,{gridLayout:o({},e.gridLayout,{startWidths:l,minWidths:c,maxWidths:d,headerIdGridWidths:f,columnWidth:u})})}return e}if(t.type===s.columnResizing){var p=t.clientX,g=e.columnResizing.startX,m=e.gridLayout,h=m.columnWidth,v=m.minWidths,y=m.maxWidths,b=m.headerIdGridWidths,w=(p-g)/h,S={};return(void 0===b?[]:b).forEach((function(e){var t=e[0],n=e[1];S[t]=Math.min(Math.max(v[t],n+n*w),y[t])})),o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:o({},e.gridLayout.columnWidths,{},S)})})}return t.type===s.columnDoneResizing?o({},e,{gridLayout:o({},e.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function en(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}e._UNSTABLE_usePivotColumns=nt,e.actions=s,e.defaultColumn=c,e.defaultGroupByFn=Ne,e.defaultOrderByFn=Je,e.defaultRenderer=u,e.emptyRenderer=l,e.ensurePluginOrder=m,e.flexRender=S,e.functionalUpdate=h,e.loopHooks=g,e.makePropGetter=f,e.makeRenderer=w,e.reduceHooks=p,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=Mt,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o=t.useRef({}),i=v(e),a=v(n);return t.useCallback(function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,s,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=u.length,n=new Array(t),s=0;s<t;s++)n[s]=u[s];return o.current.promise||(o.current.promise=new Promise((function(e,t){o.current.resolve=e,o.current.reject=t}))),o.current.timeout&&clearTimeout(o.current.timeout),o.current.timeout=setTimeout(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete o.current.timeout,e.prev=1,e.t0=o.current,e.next=5,i().apply(void 0,n);case 5:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=12;break;case 9:e.prev=9,e.t2=e.catch(1),o.current.reject(e.t2);case 12:return e.prev=12,delete o.current.promise,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])}))),a()),e.abrupt("return",o.current.promise);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[i,a])},e.useBlockLayout=Nt,e.useColumnOrder=It,e.useExpanded=ue,e.useFilters=Pe,e.useFlexLayout=Lt,e.useGetLatest=v,e.useGlobalFilter=Ie,e.useGridLayout=Yt,e.useGroupBy=je,e.useMountedLayoutEffect=b,e.usePagination=Qe,e.useResizeColumns=Ot,e.useRowSelect=mt,e.useRowState=xt,e.useSortBy=Ue,e.useTable=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e=ie(e),r=[q].concat(r);var a=v(t.useRef({}).current);Object.assign(a(),o({},e,{plugins:r,hooks:X()})),r.filter(Boolean).forEach((function(e){e(a().hooks)}));var u=v(a().hooks);a().getHooks=u,delete a().hooks,Object.assign(a(),p(u().useOptions,ie(e)));var l=a(),c=l.data,d=l.columns,m=l.initialState,h=l.defaultColumn,y=l.getSubRows,b=l.getRowId,S=l.stateReducer,E=l.useControlledState,I=v(S),A=t.useCallback((function(e,t){if(!t.type)throw console.info({action:t}),new Error("Unknown Action 👆");return[].concat(u().stateReducers,Array.isArray(I())?I():[I()]).reduce((function(n,r){return r(n,t,e,a())||n}),e)}),[u,I,a]),F=t.useReducer(A,void 0,(function(){return A(m,{type:s.init})})),B=F[0],O=F[1],T=p([].concat(u().useControlledState,[E]),B,{instance:a()});Object.assign(a(),{state:T,dispatch:O});var G=t.useMemo((function(){return R(p(u().columns,d,{instance:a()}))}),[u,a,d].concat(p(u().columnsDeps,[],{instance:a()})));a().columns=G;var j=t.useMemo((function(){return p(u().allColumns,C(G),{instance:a()}).map(x)}),[G,u,a].concat(p(u().allColumnsDeps,[],{instance:a()})));a().allColumns=j;var z=t.useMemo((function(){for(var e=[],t=[],n={},r=[].concat(j);r.length;){var o=r.shift();se({data:c,rows:e,flatRows:t,rowsById:n,column:o,getRowId:b,getSubRows:y,accessValueHooks:u().accessValue,getInstance:a})}return[e,t,n]}),[j,c,b,y,u,a]),H=z[0],M=z[1],_=z[2];Object.assign(a(),{rows:H,initialRows:[].concat(H),flatRows:M,rowsById:_}),g(u().useInstanceAfterData,a());var W=t.useMemo((function(){return p(u().visibleColumns,j,{instance:a()}).map((function(e){return P(e,h)}))}),[u,j,a,h].concat(p(u().visibleColumnsDeps,[],{instance:a()})));j=t.useMemo((function(){var e=[].concat(W);return j.forEach((function(t){e.find((function(e){return e.id===t.id}))||e.push(t)})),e}),[j,W]),a().allColumns=j;var D=t.useMemo((function(){return p(u().headerGroups,k(W,h),a())}),[u,W,h,a].concat(p(u().headerGroupsDeps,[],{instance:a()})));a().headerGroups=D;var N=t.useMemo((function(){return D.length?D[0].headers:[]}),[D]);a().headers=N,a().flatHeaders=D.reduce((function(e,t){return[].concat(e,t.headers)}),[]),g(u().useInstanceBeforeDimensions,a());var L=W.filter((function(e){return e.isVisible})).map((function(e){return e.id})).sort().join("_");W=t.useMemo((function(){return W.filter((function(e){return e.isVisible}))}),[W,L]),a().visibleColumns=W;var $=ae(N),V=$[0],U=$[1],Y=$[2];return a().totalColumnsMinWidth=V,a().totalColumnsWidth=U,a().totalColumnsMaxWidth=Y,g(u().useInstance,a()),[].concat(a().flatHeaders,a().allColumns).forEach((function(e){e.render=w(a(),e),e.getHeaderProps=f(u().getHeaderProps,{instance:a(),column:e}),e.getFooterProps=f(u().getFooterProps,{instance:a(),column:e})})),a().headerGroups=t.useMemo((function(){return D.filter((function(e,t){return e.headers=e.headers.filter((function(e){return e.headers?function e(t){return t.filter((function(t){return t.headers?e(t.headers):t.isVisible})).length}(e.headers):e.isVisible})),!!e.headers.length&&(e.getHeaderGroupProps=f(u().getHeaderGroupProps,{instance:a(),headerGroup:e,index:t}),e.getFooterGroupProps=f(u().getFooterGroupProps,{instance:a(),headerGroup:e,index:t}),!0)}))}),[D,a,u]),a().footerGroups=[].concat(a().headerGroups).reverse(),a().prepareRow=t.useCallback((function(e){e.getRowProps=f(u().getRowProps,{instance:a(),row:e}),e.allCells=j.map((function(t){var n=e.values[t.id],r={column:t,row:e,value:n};return r.getCellProps=f(u().getCellProps,{instance:a(),cell:r}),r.render=w(a(),t,{row:e,cell:r,value:n}),r})),e.cells=W.map((function(t){return e.allCells.find((function(e){return e.column.id===t.id}))})),g(u().prepareRow,e,{instance:a()})}),[u,a,j,W]),a().getTableProps=f(u().getTableProps,{instance:a()}),a().getTableBodyProps=f(u().getTableBodyProps,{instance:a()}),g(u().useFinalInstance,a()),a()},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(99196))},79521:function(e,t,n){e.exports=n(40217)},96774:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var l=i[u];if(!s(l))return!1;var c=e[l],d=t[l];if(!1===(o=n?n.call(r,c,d,l):void 0)||void 0===o&&c!==d)return!1}return!0}},99196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nc=void 0,function(){"use strict";function e(){return e=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},e.apply(this,arguments)}var t=window.wp.element,r=window.wp.i18n,o=window.wp.blocks,i=window.wp.data,a=window.wp.components,s=JSON.parse('{"attributes":{"alignment":{"type":"string","default":"none"},"formID":{"type":"string"},"selectedFields":{"type":"array"}}}'),u=window.wp.blockEditor;const l=(0,t.createElement)("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 29.93 13.43"},(0,t.createElement)("path",{fill:"#fff",d:"M22,21.7a4.72,4.72,0,0,0-2.44-4,14.44,14.44,0,0,0-13.38-.06,4.61,4.61,0,0,0-2.53,4Z",transform:"translate(-0.03 -8.27)"}),(0,t.createElement)("path",{fill:"#414242",d:"M3.68,21.7a4.6,4.6,0,0,1,2.53-4,14.44,14.44,0,0,1,13.38,0,4.73,4.73,0,0,1,2.44,4h3.65v-.37a12.76,12.76,0,0,0-1.2-5.42A7.59,7.59,0,0,0,24,15a31.79,31.79,0,0,1,4.14-1c1.36-.28,2.14-.46,1.68-.83-1-.81-2.24-1.68-2.24-1.68s5.05-4.18,0-2.91a9.62,9.62,0,0,0-2.53,1,10.69,10.69,0,0,0-3.13,2.76,12.83,12.83,0,0,0-21.9,9,3.15,3.15,0,0,0,0,.37Z",transform:"translate(-0.03 -8.27)"}),(0,t.createElement)("path",{fill:"#414242",d:"M9.3,21.7c0-1-.58-1.81-1.29-1.81s-1.27.81-1.29,1.81Z",transform:"translate(-0.03 -8.27)"}),(0,t.createElement)("path",{fill:"#414242",d:"M19,21.7c0-1-.59-1.81-1.29-1.81s-1.27.81-1.29,1.81Z",transform:"translate(-0.03 -8.27)"}));var c=e=>(0,t.createElement)(a.Placeholder,{icon:(0,t.createElement)("div",null,e.icon?e.icon:l),instructions:"Select a form to display the submissions.",style:{alignItems:"center"}},(0,t.createElement)("div",{style:{margin:"auto",width:"50%"}},e.children)),d=n(59864),f=n(99196),p=n.n(f),g=n(96774),m=n.n(g),h=function(e){function t(e,r,u,l,f){for(var p,g,m,h,w,R=0,C=0,x=0,P=0,k=0,O=0,G=m=p=0,z=0,H=0,M=0,_=0,W=u.length,D=W-1,N="",L="",$="",V="";z<W;){if(g=u.charCodeAt(z),z===D&&0!==C+P+x+R&&(0!==C&&(g=47===C?10:47),P=x=R=0,W++,D++),0===C+P+x+R){if(z===D&&(0<H&&(N=N.replace(d,"")),0<N.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:N+=u.charAt(z)}g=59}switch(g){case 123:for(p=(N=N.trim()).charCodeAt(0),m=1,_=++z;z<W;){switch(g=u.charCodeAt(z)){case 123:m++;break;case 125:m--;break;case 47:switch(g=u.charCodeAt(z+1)){case 42:case 47:e:{for(G=z+1;G<D;++G)switch(u.charCodeAt(G)){case 47:if(42===g&&42===u.charCodeAt(G-1)&&z+2!==G){z=G+1;break e}break;case 10:if(47===g){z=G+1;break e}}z=G}}break;case 91:g++;case 40:g++;case 34:case 39:for(;z++<D&&u.charCodeAt(z)!==g;);}if(0===m)break;z++}if(m=u.substring(_,z),0===p&&(p=(N=N.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<H&&(N=N.replace(d,"")),g=N.charCodeAt(1)){case 100:case 109:case 115:case 45:H=r;break;default:H=B}if(_=(m=t(r,H,m,g,f+1)).length,0<T&&(w=s(3,m,H=n(B,N,M),r,I,E,_,g,f,l),N=H.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(g=0,m="")),0<_)switch(g){case 115:N=N.replace(S,a);case 100:case 109:case 45:m=N+"{"+m+"}";break;case 107:m=(N=N.replace(v,"$1 $2"))+"{"+m+"}",m=1===F||2===F&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=N+m,112===l&&(L+=m,m="")}else m=""}else m=t(r,n(r,N,M),m,l,f+1);$+=m,m=M=H=G=p=0,N="",g=u.charCodeAt(++z);break;case 125:case 59:if(1<(_=(N=(0<H?N.replace(d,""):N).trim()).length))switch(0===G&&(p=N.charCodeAt(0),45===p||96<p&&123>p)&&(_=(N=N.replace(" ",":")).length),0<T&&void 0!==(w=s(1,N,r,e,I,E,L.length,l,f,l))&&0===(_=(N=w.trim()).length)&&(N="\0\0"),p=N.charCodeAt(0),g=N.charCodeAt(1),p){case 0:break;case 64:if(105===g||99===g){V+=N+u.charAt(z);break}default:58!==N.charCodeAt(_-1)&&(L+=o(N,p,g,N.charCodeAt(2)))}M=H=G=p=0,N="",g=u.charCodeAt(++z)}}switch(g){case 13:case 10:47===C?C=0:0===1+p&&107!==l&&0<N.length&&(H=1,N+="\0"),0<T*j&&s(0,N,r,e,I,E,L.length,l,f,l),E=1,I++;break;case 59:case 125:if(0===C+P+x+R){E++;break}default:switch(E++,h=u.charAt(z),g){case 9:case 32:if(0===P+R+C)switch(k){case 44:case 58:case 9:case 32:h="";break;default:32!==g&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===P+C+R&&(H=M=1,h="\f"+h);break;case 108:if(0===P+C+R+A&&0<G)switch(z-G){case 2:112===k&&58===u.charCodeAt(z-3)&&(A=k);case 8:111===O&&(A=O)}break;case 58:0===P+C+R&&(G=z);break;case 44:0===C+x+P+R&&(H=1,h+="\r");break;case 34:case 39:0===C&&(P=P===g?0:0===P?g:P);break;case 91:0===P+C+x&&R++;break;case 93:0===P+C+x&&R--;break;case 41:0===P+C+R&&x--;break;case 40:0===P+C+R&&(0===p&&(2*k+3*O==533||(p=1)),x++);break;case 64:0===C+x+P+R+G+m&&(m=1);break;case 42:case 47:if(!(0<P+R+x))switch(C){case 0:switch(2*g+3*u.charCodeAt(z+1)){case 235:C=47;break;case 220:_=z,C=42}break;case 42:47===g&&42===k&&_+2!==z&&(33===u.charCodeAt(_+2)&&(L+=u.substring(_,z+1)),h="",C=0)}}0===C&&(N+=h)}O=k,k=g,z++}if(0<(_=L.length)){if(H=r,0<T&&void 0!==(w=s(2,L,H,e,I,E,_,l,f,l))&&0===(L=w).length)return V+L+$;if(L=H.join(",")+"{"+L+"}",0!=F*A){switch(2!==F||i(L,2)||(A=0),A){case 111:L=L.replace(b,":-moz-$1")+L;break;case 112:L=L.replace(y,"::-webkit-input-$1")+L.replace(y,"::-moz-$1")+L.replace(y,":-ms-input-$1")+L}A=0}}return V+L+$}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===F||2===F&&i(u,1)?"-webkit-"+u+u:u}if(0===F||2===F&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===P.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),G(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(R," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,u,c){for(var d,f=0,p=t;f<T;++f)switch(d=O[f].call(l,e,p,n,r,o,i,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(G=null,e?"function"!=typeof e?F=1:(F=2,G=e):F=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var o=s(-1,n,r,r,I,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(B,r,n,0,0);return 0<T&&void 0!==(o=s(-2,i,r,r,I,E,i.length,0,0,0))&&(i=o),A=0,E=I=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,g=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,R=/([\s\S]*?);/g,C=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,E=1,I=1,A=0,F=1,B=[],O=[],T=0,G=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:T=O.length=0;break;default:if("function"==typeof t)O[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},l.set=u,void 0!==e&&u(e),l},v={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},y=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,b=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=(n=e,y.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91)),t[e];var n}}(),w=n(8679),S=n.n(w);function R(){return(R=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}).apply(this,arguments)}var C=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},x=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,d.typeOf)(e)},P=Object.freeze([]),k=Object.freeze({});function E(e){return"function"==typeof e}function I(e){return e.displayName||e.name||"Component"}function A(e){return e&&"string"==typeof e.styledComponentId}var F="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",B="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var G=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&T(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),j=new Map,z=new Map,H=1,M=function(e){if(j.has(e))return j.get(e);for(;z.has(H);)H++;var t=H++;return j.set(e,t),z.set(t,e),t},_=function(e){return z.get(e)},W=function(e,t){t>=H&&(H=t+1),j.set(e,t),z.set(t,e)},D="style["+F+'][data-styled-version="5.3.6"]',N=new RegExp("^"+F+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},$=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(N);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(W(l,u),L(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},V=function(){return n.nc},X=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(F))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(F,"active"),r.setAttribute("data-styled-version","5.3.6");var a=V();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},q=function(){function e(e){var t=this.element=X(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}T(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),U=function(){function e(e){var t=this.element=X(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Y=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),K=B,Z={isServer:!B,useCSSOMInjection:!O},J=function(){function e(e,t,n){void 0===e&&(e=k),void 0===t&&(t={}),this.options=R({},Z,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&B&&K&&(K=!1,function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(F)&&($(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return M(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(R({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new Y(o):r?new q(o):new U(o),new G(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(M(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(M(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(M(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=_(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var u=F+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Q=/(a)(d)/gi,ee=function(e){return String.fromCharCode(e+(e>25?39:97))};function te(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ee(t%52)+n;return(ee(t%52)+n).replace(Q,"$1-$2")}var ne=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},re=function(e){return ne(5381,e)};function oe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!A(n))return!1}return!0}var ie=re("5.3.6"),ae=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&oe(e),this.componentId=t,this.baseHash=ne(ie,t),this.baseStyle=n,J.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Ce(this.rules,e,t,n).join(""),a=te(ne(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=ne(this.baseHash,n.hash),c="",d=0;d<u;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=Ce(f,e,t,n),g=Array.isArray(p)?p.join(""):p;l=ne(l,g+d),c+=g}}if(c){var m=te(l>>>0);if(!t.hasNameForId(r,m)){var h=n(c,"."+m,void 0,r);t.insertRules(r,m,h)}o.push(m)}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ue=[":","[",".","#"];function le(e){var t,n,r,o,i=void 0===e?k:e,a=i.options,s=void 0===a?k:a,u=i.plugins,l=void 0===u?P:u,c=new h(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==ue.indexOf(i[n.length])||i.match(o)?e:"."+t};function g(e,i,a,s){void 0===s&&(s="&");var u=e.replace(se,""),l=i&&a?a+" "+i+" { "+u+" }":u;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),c(a||!i?"":i,l)}return c.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=l.length?l.reduce((function(e,t){return t.name||T(15),ne(e,t.name)}),5381).toString():"",g}var ce=p().createContext(),de=(ce.Consumer,p().createContext()),fe=(de.Consumer,new J),pe=le();function ge(){return(0,f.useContext)(ce)||fe}function me(e){var t=(0,f.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ge(),i=(0,f.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,f.useMemo)((function(){return le({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,f.useEffect)((function(){m()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),p().createElement(ce.Provider,{value:i},p().createElement(de.Provider,{value:a},e.children))}var he=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return T(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=pe),this.name+e.hash},e}(),ve=/([A-Z])/,ye=/([A-Z])/g,be=/^ms-/,we=function(e){return"-"+e.toLowerCase()};function Se(e){return ve.test(e)?e.replace(ye,we).replace(be,"-ms-"):e}var Re=function(e){return null==e||!1===e||""===e};function Ce(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Ce(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Re(e)?"":A(e)?"."+e.styledComponentId:E(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:Ce(e(t),t,n,r):e instanceof he?n?(e.inject(n,r),e.getName(r)):e:x(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Re(t[a])&&(Array.isArray(t[a])&&t[a].isCss||E(t[a])?i.push(Se(a)+":",t[a],";"):x(t[a])?i.push.apply(i,e(t[a],a)):i.push(Se(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in v?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}var xe=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||x(e)?xe(Ce(C(P,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:xe(Ce(C(e,n)))}new Set;var ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function Ie(e){return e.replace(ke,"-").replace(Ee,"")}function Ae(e){return"string"==typeof e&&!0}var Fe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Be=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,n){var r=e[n];Fe(t)&&Fe(r)?Te(r,t):e[n]=t}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Fe(a))for(var s in a)Be(s)&&Oe(e,a[s],s)}return e}var Ge=p().createContext();Ge.Consumer;var je={};function ze(e,t,n){var r=A(e),o=!Ae(e),i=t.attrs,a=void 0===i?P:i,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Ie(e);je[n]=(je[n]||0)+1;var r=n+"-"+function(e){return te(re(e)>>>0)}("5.3.6"+n+je[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,l=t.displayName,c=void 0===l?function(e){return Ae(e)?"styled."+e:"Styled("+I(e)+")"}(e):l,d=t.displayName&&t.componentId?Ie(t.displayName)+"-"+t.componentId:t.componentId||u,g=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;r&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var h,v=new ae(n,d,r?e.componentStyle:void 0),y=v.isStatic&&0===a.length,w=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,c=e.target,d=function(e,t,n){void 0===e&&(e=k);var r=R({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in E(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=k),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,f.useContext)(Ge),a)||k,t,o),p=d[0],g=d[1],m=function(e,t,n,r){var o=ge(),i=(0,f.useContext)(de)||pe;return t?e.generateAndInjectStyles(k,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,v=g.$as||t.$as||g.as||t.as||c,y=Ae(v),w=g!==t?R({},t,{},g):t,S={};for(var C in w)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?S.as=w[C]:(u?u(C,b,v):!y||b(C))&&(S[C]=w[C]));return t.style&&g.style!==t.style&&(S.style=R({},t.style,{},g.style)),S.className=Array.prototype.concat(s,l,m!==l?m:null,t.className,g.className).filter(Boolean).join(" "),S.ref=h,(0,f.createElement)(v,S)}(h,e,t,y)};return w.displayName=c,(h=p().forwardRef(w)).attrs=g,h.componentStyle=v,h.displayName=c,h.shouldForwardProp=m,h.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):P,h.styledComponentId=d,h.target=r?e.target:e,h.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),i=r&&r+"-"+(Ae(e)?e:Ie(I(e)));return ze(e,R({},o,{attrs:g,componentId:i}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Te({},e.defaultProps,t):t}}),h.toString=function(){return"."+h.styledComponentId},o&&S()(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var He,Me=function(e){return function e(t,n,r){if(void 0===r&&(r=k),!(0,d.isValidElementType)(n))return T(1,String(n));var o=function(){return t(n,r,Pe.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,R({},r,{},o))},o.attrs=function(o){return e(t,n,R({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Me[e]=Me(e)})),He=function(e,t){this.rules=e,this.componentId=t,this.isStatic=oe(e),J.registerId(this.componentId+1)}.prototype,He.createStyles=function(e,t,n,r){var o=r(Ce(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},He.removeStyles=function(e,t){t.clearRules(this.componentId+e)},He.renderStyles=function(e,t,n,r){e>2&&J.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=V();return"<style "+[n&&'nonce="'+n+'"',F+'="true"','data-styled-version="5.3.6"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?T(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return T(2);var n=((t={})[F]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=V();return r&&(n.nonce=r),[p().createElement("style",R({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?T(2):p().createElement(me,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return T(3)}}();const _e=Me.div` padding: 1rem; button { cursor: pointer; padding: .75em 1.44em; border: 2px solid black; outline: 4px solid transparent; background-color: transparent; :hover { outline-color: white; background-color: white; } } table { width: 100%; border-spacing: 0; border: 1px solid black; margin-bottom: 20px; tr { :last-child { td { border-bottom: 0; } } } th, td { margin: 0; padding: 0.5rem; border-bottom: 1px solid black; border-right: 1px solid black; :last-child { border-right: 0; } } } `,We=e=>{let{fields:n,isChecked:r,onChange:o}=e;return(0,t.createElement)("ul",null,n.map((e=>(0,t.createElement)("li",{key:"li_"+e.id},(0,t.createElement)(a.CheckboxControl,{key:e.id,label:e.label,checked:r(e.id),onChange:t=>o(t,e.id)})))))};var De=n(79521),Ne=e=>{let{formID:n,selectedFields:r,fields:o,submissions:a}=e;const s=o.filter((e=>-1!==r.indexOf(e.id))).map((e=>({Header:e.label,accessor:e.id.toString()}))),[u,l]=(0,t.useState)(0),[c,d]=(0,t.useState)(!1);a[c]&&(a[c].length&&l(c),d(!1)),a[u+1]||(0,i.select)("ninja-forms-views").getFormSubmissionsPage(n,u+2);const f=a[a.length-1]&&a[a.length-1].length,p=a.flat();return(0,t.createElement)(Le,{columns:s,data:p,initialPageIndex:u,loadMore:e=>{d(e),(0,i.select)("ninja-forms-views").getFormSubmissionsPage(n,e+1)},more:f,loading:c})};function Le(n){const{columns:r,data:o,initialPageIndex:i,loadMore:a,more:s,loading:u}=n,l=(0,De.useTable)({columns:r,data:o,initialState:{pageIndex:i,pageSize:10}},De.usePagination),{state:{pageIndex:c},getTableProps:d,getTableBodyProps:f,canNextPage:p,canPreviousPage:g}=l,m=l.page;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("table",d(),(0,t.createElement)("thead",null,(0,t.createElement)($e,l)),(0,t.createElement)("tbody",f(),(0,t.createElement)(Ve,e({},l,{dataset:m})))),(0,t.createElement)(Xe,e({},l,{loadMore:()=>a(c+1),more:s,loading:u,canNextPage:p,canPreviousPage:g})))}function $e(e){let{headerGroups:n}=e;return n.length<=0?(0,t.createElement)("tr",null,(0,t.createElement)("th",null,(0,r.__)("No columns selected. Please choose fields using the block settings ->","ninja-forms"))):n.map((e=>(0,t.createElement)("tr",e.getHeaderGroupProps(),e.headers.map((e=>(0,t.createElement)("th",e.getHeaderProps(),e.render("Header")))))))}function Ve(n){let{dataset:r,prepareRow:o}=n;return r.map(((n,r)=>(o(n),(0,t.createElement)("tr",n.getRowProps(),n.cells.map((n=>(0,t.createElement)("td",e({},n.getCellProps(),{"data-header":n.column.Header}),n.render("Cell"))))))))}function Xe(e){let{previousPage:n,nextPage:r,canPreviousPage:o,canNextPage:i,loadMore:a,more:s,loading:u}=e;const l=()=>{a(),r()};let c;return i?c=(0,t.createElement)("button",{onClick:l},">"):s&&(c=(0,t.createElement)("button",{onClick:l},u?"...":">")),(0,t.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,t.createElement)("div",null,o&&(0,t.createElement)("button",{onClick:()=>n()},"<")),i&&(0,t.createElement)("div",null,c))}const qe=n=>{n.forms;const r=Object.values(n.fields),o=Object.values(n.submissions),i=void 0!==n.attributes.selectedFields?n.attributes.selectedFields:[];return(0,t.createElement)(t.Fragment,null,n.attributes.formID&&(0,t.createElement)(_e,null,(0,t.createElement)(Ne,e({},n.attributes,{selectedFields:i,fields:r,submissions:o}))),n.isSelected&&(0,t.createElement)(u.BlockControls,null,(0,t.createElement)(u.BlockAlignmentToolbar,{value:n.attributes.alignment,onChange:e=>{n.setAttributes({alignment:void 0===e?"none":e})}})),n.isSelected&&(0,t.createElement)(u.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Fields",initialOpen:!0},(0,t.createElement)(We,{fields:r,isChecked:e=>-1!==i.indexOf(e),onChange:(e,t)=>{const r=e?i.concat([t]):i.filter((e=>e!=t));n.setAttributes({selectedFields:r})}}))))};var Ue=window.wp.apiFetch,Ye=n.n(Ue);const Ke={forms:!1,fields:{},submissions:{}},Ze={setForms(e){return{type:"SET_FORMS",forms:e}},setFields(e,t){return{type:"SET_FIELDS",formID:e,fields:t}},setSubmissions(e,t,n){return{type:"SET_SUBMISSIONS",formID:e,submissions:t,page:n}},fetchFromAPI(e,t){return{type:"FETCH_FROM_API",path:e,data:t}}},Je={getForms(e){const{forms:t}=e;return t},getForm(e,t){const n=Je.getForms(e);return Object.values(n).find((e=>e.formID==t))},getFormFields(e,t){const{fields:n}=e;return n[t]},getFormSubmissions(e,t){const{submissions:n}=e;return n[t]},getFormSubmissionsPage(e,t,n){const{submissions:r}=e;return void 0!==r[t]&&r[t][n]}};var Qe={reducer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FORMS":return{...e,forms:t.forms};case"SET_FIELDS":return{...e,fields:{...e.fields,[t.formID]:t.fields}};case"SET_SUBMISSIONS":return{...e,submissions:{...e.submissions,[t.formID]:{...e.submissions[t.formID],[t.page]:t.submissions}}}}return e},actions:Ze,selectors:Je,controls:{FETCH_FROM_API(e){return Ye()({path:e.path})}},resolvers:{*getForms(){const e=yield Ze.fetchFromAPI("/ninja-forms-views/forms");return Ze.setForms(e)},*getFormFields(e){const t="/ninja-forms-views/forms/"+e+"/fields",n=yield Ze.fetchFromAPI(t);return Ze.setFields(e,n)},*getFormSubmissions(e){const t="/ninja-forms-views/forms/"+e+"/submissions?page=1&perPage=10",n=yield Ze.fetchFromAPI(t);return Ze.setSubmissions(e,n,1)},*getFormSubmissionsPage(e,t){const n="/ninja-forms-views/forms/"+e+"/submissions?page="+t+"&perPage=10",r=yield Ze.fetchFromAPI(n);return Ze.setSubmissions(e,r,t)}}};Ye().use(function(e){function t(e,n){if(0!==(e.path||"").indexOf("/ninja-forms-views/"))return n(e);const{headers:r={}}=e;for(const t in r)if("x-ninjaformsviews-auth"===t.toLowerCase())return n(e);return n({...e,headers:{...r,"X-NinjaFormsViews-Auth":t.token}})}return t.token=e,t}(window.ninjaFormsViews.token)),(0,i.registerStore)("ninja-forms-views",Qe),(0,o.registerBlockType)("ninja-forms/submissions-table",{title:"Ninja Forms Submissions Table",icon:"editor-table",category:"common",...s,edit:(0,i.withSelect)((e=>({forms:e("ninja-forms-views").getForms()})))((n=>{if(!n.attributes.formID){if(!n.forms)return(0,t.createElement)(c,{label:(0,r.__)("Ninja Forms Submissions Table")},(0,t.createElement)(a.Spinner,null));const e=Object.values(n.forms).map((function(e){return{key:e.formID,label:e.formTitle,value:e.formID}}));return(0,t.createElement)(c,null,(0,t.createElement)(a.SelectControl,{label:"Select Form",onChange:e=>n.setAttributes({formID:e}),options:[{key:0,label:"-",value:0}].concat(e)}))}const o=(0,i.withSelect)((e=>({fields:e("ninja-forms-views").getFormFields(n.attributes.formID),submissions:e("ninja-forms-views").getFormSubmissions(n.attributes.formID)})))((o=>{let{fields:i,submissions:s}=o;return i&&s?(0,t.createElement)(qe,e({},n,{fields:i,submissions:s})):(0,t.createElement)(c,{label:(0,r.__)("Loading Form Data")},(0,t.createElement)(a.Spinner,null))}));return(0,t.createElement)(o,null)})),getEditWrapperProps(e){const{alignment:t}=e;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t}},save:()=>null})}()}();