@complat/chemotion-converter-client 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ (()=>{var e,t,n={1094:(e,t,n)=>{"use strict";function o(e){return null==e||""===e?null:e}function r(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!r(e)}function s(e){return null==e||0===e.length}function a(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function c(e,t,n){void 0===n&&(n=!1);var o=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(n){return i(e,t)}}function p(e,t,n){if(null==e)return null;if(!Array.isArray(e))return p(d(e),t,n);for(var o=e,r=null,i=0;i<o.length;i++){var s=o[i];if("string"==typeof t){if(s[t]===n){r=s;break}}else if(t(s)){r=s;break}}return r}function d(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.keys(e).map((function(t){return e[t]}))}Object.defineProperty(t,"__esModule",{value:!0});var h=Object.freeze({__proto__:null,makeNull:o,exists:r,missing:i,missingOrEmpty:s,toStringOrNull:a,attrToNumber:l,attrToBoolean:u,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:c,find:p,values:d}),f=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=a(e);for(var n=0;;){var o=void 0;if(e?(o=e,0!==n&&(o+="_"+n)):t?(o=t,0!==n&&(o+="_"+n)):o=""+n,!this.existingKeys[o])return this.existingKeys[o]=!0,o;n++}},e}();function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var o=e[n];if(r(o))return o}return null}function y(e){if(e&&e.length)return e[e.length-1]}function v(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&_(e,(function(e,o){return n?n(e,t[o]):t[o]===e}))}function m(e){return e.sort((function(e,t){return e-t}))}function C(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function w(e,t){T(t,(function(t){return C(e,t)}))}function E(e,t,n){e.splice(n,0,t)}function b(e,t,n){w(e,t),T(t.slice().reverse(),(function(t){return E(e,t,n)}))}function O(e,t){return e.indexOf(t)>-1}function R(e,t){null!=t&&null!=e&&T(t,(function(t){return e.push(t)}))}function S(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function _(e,t){if(null==e)return!0;for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function P(e,t){if(null==e)return!1;for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}function T(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n],n)}function D(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}function A(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)t(e[o],o)&&n.push(e[o]);return n}var N=Object.freeze({__proto__:null,firstExistingValue:g,anyExists:function(e){return e&&null!=g(e)},existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:y,areEqual:v,compareArrays:function(e,t){return v(e,t)},shallowCompare:function(e,t){return v(e,t)},sortNumerically:m,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var o=e[n]===t,r=e[n+1]===t;o&&r&&e.splice(n+1,1)}},removeFromArray:C,removeAllFromArray:w,insertIntoArray:E,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){E(e,t[o],n)}},moveInArray:b,includes:O,flatten:function(e){return[].concat.apply([],e)},pushAll:R,toStrings:function(e){return D(e,a)},findIndex:S,fill:function(e,t,n,o){void 0===t&&(t=null),void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=n;r<o;r++)e[r]=t;return e},every:_,some:P,forEach:T,forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)},map:D,filter:A,reduce:function(e,t,n){if(null==e||null==n)return null;for(var o=n,r=0;r<e.length;r++)o=t(o,e[r],r);return o},forEachSnapshotFirst:function(e,t){e&&e.slice(0).forEach(t)}});function I(e,t){null!=e&&(Array.isArray(e)?T(e,(function(e,n){return t(""+n,e)})):T(Object.keys(e),(function(n){return t(n,e[n])})))}function F(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o],i=e[r];t[r]=i}return t}function x(e,t){if(e){var n=e,o={};return Object.keys(n).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var r=n[e],i=z(r)&&r.constructor===Object;o[e]=i?x(r):r}})),o}}function L(e,t){return e[t]}function M(e,t,n){e[t]=n}function G(e,t,n,o){var r=L(e,n);void 0!==r&&M(t,n,o?o(r):r)}function k(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){T(Object.keys(e),(function(e){return t[e]=null}))})),Object.keys(t)}function V(e){if(!e)return[];var t=Object;if("function"==typeof t.values)return t.values(e);var n=[];for(var o in e)e.hasOwnProperty(o)&&e.propertyIsEnumerable(o)&&n.push(e[o]);return n}function H(e,t,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),r(t)&&I(t,(function(t,r){var i=e[t];if(i!==r){if(o)if(null==i&&null!=r)"object"==typeof r&&r.constructor===Object&&(i={},e[t]=i);z(r)&&z(i)&&!Array.isArray(i)?H(i,r,n,o):(n||void 0!==r)&&(e[t]=r)}}))}function W(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return T(t,(function(t){return I(t,(function(t,n){return e[t]=n}))})),e}function B(e,t,n){if(null==e)return n;for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return n;var i=r[o[0]];return null!=i?i:n}function j(e,t,n){if(t&&e){if(!n)return e[t];for(var o=t.split("."),r=e,i=0;i<o.length;i++){if(null==r)return;r=r[o[i]]}return r}}function U(e,t){Object.keys(e).forEach((function(t){"object"==typeof e[t]&&(e[t]=void 0)}));var n=Object.getPrototypeOf(e),o={};Object.keys(n).forEach((function(e){if("function"==typeof n[e]){o[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,o)}function z(e){return"object"==typeof e&&null!==e}var K=Object.freeze({__proto__:null,iterateObject:I,cloneObject:F,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:x,getProperty:L,setProperty:M,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];T(n,(function(n){return G(e,t,n)}))},copyPropertyIfPresent:G,getAllKeysInObjects:k,getAllValuesInObject:V,mergeDeep:H,assign:W,missingOrEmptyObject:function(e){return i(e)||0===Object.keys(e).length},get:B,set:function(e,t,n){if(null!=e){for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return;r[o[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),T(d(t),(function(t){(z(t)||"function"==typeof t)&&e(t)})),t},getValueUsingField:j,removeAllReferences:U,isNonNullObject:z}),Y=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,$=/([^\s,]+)/g,q={};function X(e,t){q[t]||(e(),q[t]=!0)}function Q(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function Z(e){return!!(e&&e.constructor&&e.call&&e.apply)}function J(e){oe(e,400)}var ee=[],te=!1;function ne(e){ee.push(e),te||(te=!0,window.setTimeout((function(){var e=ee.slice();ee.length=0,te=!1,e.forEach((function(e){return e()}))}),0))}function oe(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function re(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=n&&!o;window.clearTimeout(o),o=window.setTimeout((function(){o=null,n||e.apply(s,r)}),t),a&&e.apply(s,r)}}function ie(e,t,n,o){void 0===n&&(n=100);var r=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-r>n;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&o&&console.warn(o))};a(),s||(i=window.setInterval(a,10))}function se(e){e&&e()}var ae=Object.freeze({__proto__:null,doOnce:X,getFunctionName:Q,getFunctionParameters:function(e){var t=e.toString().replace(Y,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match($)||[]},isFunction:Z,executeInAWhile:J,executeNextVMTurn:ne,executeAfter:oe,debounce:re,waitUntil:ie,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:se}),le=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return d(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),r(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),I(this.beanWrappers,(function(t,n){var o;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,i,s=e.getBeansForParameters(o,n.bean.name),a=(r=n.bean,i=[null].concat(s),new(r.bind.apply(r,i)));n.beanInstance=a}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?Q(e.prototype.constructor):""+e,void console.error("Context item "+n+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(o,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){I(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var i=t.getBeansForParameters(r,o);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var o=n.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var n=this,o=[];return e&&I(e,(function(e,r){var i=n.lookupBeanInstance(t,r);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var r=e[t];r&&r.forEach((function(e){e!=n&&(o[e]=!0)}))})),Object.keys(o).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"==typeof n.destroy&&n.destroy()})),[]):[]},e}();function ue(e,t,n){var o=ve(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function ce(e,t,n){var o=ve(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function pe(e,t,n){var o=ve(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function de(e){return function(t){ve(t).beanName=e}}function he(e){return function(t,n,o){ge(t,e,!1,t,n,null)}}function fe(e){return function(t,n,o){ge(t,e,!0,t,n,null)}}function ge(e,t,n,o,r,i){if(null!==t)if("number"!=typeof i){var s=ve(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function ye(e){return function(t,n,o){var r,i="function"==typeof t?t:t.constructor;if("number"==typeof o){var s=void 0;n?(r=ve(i),s=n):(r=ve(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function ve(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var me,Ce=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},we=function(e,t){return function(n,o){t(n,o,e)}},Ee=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),this.frameworkOverrides=n,o){var r=t.useAsyncEvents();this.addGlobalListener(o,r)}},e.prototype.getListeners=function(e,t,n){var o=t?this.allAsyncListeners:this.allSyncListeners,r=o.get(e);return!r&&n&&(r=new Set,o.set(e,r)),r},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var o=this.getListeners(e,n,!1);o&&(o.delete(t),0===o.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,o=e.type,r=this.getListeners(o,t,!1);r&&function(o){o.forEach((function(o){t?n.dispatchAsync((function(){return o(e)})):o(e)}))}(r),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}))})):n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}))}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},Ce([we(0,ye("loggerFactory")),we(1,ye("gridOptionsWrapper")),we(2,ye("frameworkOverrides")),we(3,ye("globalEventListener"))],e.prototype,"setBeans",null),e=Ce([de("eventService")],e)}(),be=function(){function e(){}return e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();(me=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",me.CommunityAllModules="@ag-grid-community/all",me.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",me.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",me.CsvExportModule="@ag-grid-community/csv-export",me.EnterpriseCoreModule="@ag-grid-enterprise/core",me.EnterpriseAllModules="@ag-grid-enterprise/all",me.RowGroupingModule="@ag-grid-enterprise/row-grouping",me.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",me.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",me.MenuModule="@ag-grid-enterprise/menu",me.SetFilterModule="@ag-grid-enterprise/set-filter",me.MultiFilterModule="@ag-grid-enterprise/multi-filter",me.StatusBarModule="@ag-grid-enterprise/status-bar",me.SideBarModule="@ag-grid-enterprise/side-bar",me.RangeSelectionModule="@ag-grid-enterprise/range-selection",me.MasterDetailModule="@ag-grid-enterprise/master-detail",me.RichSelectModule="@ag-grid-enterprise/rich-select",me.GridChartsModule="@ag-grid-enterprise/charts",me.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",me.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",me.ExcelExportModule="@ag-grid-enterprise/excel-export",me.ClipboardModule="@ag-grid-enterprise/clipboard",me.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",me.AngularModule="@ag-grid-community/angular",me.ReactModule="@ag-grid-community/react",me.VueModule="@ag-grid-community/vue",me.PolymerModule="@ag-grid-community/polymer";var Oe=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&X((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-table/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n="AG Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-table/modules/";return X((function(){console.warn(n)}),t+e),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return d(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),Re=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Se=function(){function e(e,t,n,o){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Ee,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=o,this.setState(e)}return e.prototype.setState=function(e){void 0!==e.sort?e.sort!==be.SORT_ASC&&e.sort!==be.SORT_DESC||(this.sort=e.sort):e.initialSort!==be.SORT_ASC&&e.initialSort!==be.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var o=u(e.hide),r=u(e.initialHide);this.visible=void 0!==o?!o:!r,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),s=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=r(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=r(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();null!=this.colDef.minWidth?this.minWidth=Math.max(this.colDef.minWidth,1):this.minWidth=e,null!=this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){X((function(){n?console.warn(e,n):X((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!Oe.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){r(e[o])&&(Oe.isPackageBased()?n("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(Oe.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(Oe.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),Oe.isRegistered(t.ModuleNames.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(Oe.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){r(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}r(this.colDef.width)&&"number"!=typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===be.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===be.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return r(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,o){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);o&&H(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===be.PINNED_LEFT?this.pinned=be.PINNED_LEFT:e===be.PINNED_RIGHT?this.pinned=be.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===be.PINNED_LEFT||this.pinned===be.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===be.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===be.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(i(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),r(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",Re([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Re([he("columnUtils")],e.prototype,"columnUtils",void 0),Re([he("columnApi")],e.prototype,"columnApi",void 0),Re([he("gridApi")],e.prototype,"gridApi",void 0),Re([he("context")],e.prototype,"context",void 0),Re([ce],e.prototype,"initialise",null),e}(),_e=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pe=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new Ee,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=o}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=y(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach((function(o){t===o&&(n=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof Se?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof Se?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.originalColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",_e([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),Te=function(){function e(e,t,n,o){this.localEventService=new Ee,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=o}return e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(n){n instanceof Se?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(Se.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildrenRemovingPadding(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===Pe.HEADER_GROUP_SHOW_OPEN?(t=!0,o=!0):l===Pe.HEADER_GROUP_SHOW_CLOSED?(n=!0,o=!0):(t=!0,n=!0)}}var u=t&&n&&o;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],n=function(o){o.forEach((function(o){o instanceof e&&o.isPadding()?n(o.children):t.push(o)}))};return n(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),De={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ae="__ag_Grid_Stop_Propagation",Ne=["touchstart","touchend","touchmove","touchcancel"],Ie={};function Fe(e){e[Ae]=!0}function xe(e){return!0===e[Ae]}var Le,Me=(Le={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof Ie[e])return Ie[e];var t=document.createElement(Le[e]||"div"),n=(e="on"+e)in t;return n||(t.setAttribute(e,"return;"),n="function"==typeof t[e]),Ie[e]=n});function Ge(e,t,n){for(var o=ke(t);o;){var r=e.getDomData(o,n);if(r)return r;o=o.parentElement}return null}function ke(e){var t=e;return t.target||t.srcElement}function Ve(e,t){return!(!t||!e)&&We(t).indexOf(e)>=0}function He(e){for(var t=[],n=ke(e);n;)t.push(n),n=n.parentElement;return t}function We(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:He(e)}function Be(e,t,n,o){var r=O(Ne,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,o,r)}var je,Ue=Object.freeze({__proto__:null,stopPropagationForAgGrid:Fe,isStopPropagationForAgGrid:xe,isEventSupported:Me,getComponentForEvent:Ge,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},getTarget:ke,isElementInEventPath:Ve,createEventPath:He,addAgGridEventPath:function(e){e.__agGridEventPath=We(e)},getEventPath:We,addSafePassiveEventListener:Be}),ze=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ke=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.getContext=function(){return e.context},this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new Ee),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Be(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function(){return e.removeEventListener(t,n),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&T(e,(function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",ze([he("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ze([he("context")],e.prototype,"context",void 0),ze([he("eventService")],e.prototype,"eventService",void 0),ze([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ze([pe],e.prototype,"destroy",null),e}(),Ye=(je=function(e,t){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},je(e,t)},function(e,t){function n(){this.constructor=e}je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$e=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qe=function(e,t){return function(n,o){t(n,o,e)}},Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ye(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var o=new f,r=this.extractExistingTreeData(n),i=r.existingCols,s=r.existingGroups,a=r.existingColKeys;o.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,o,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof Te&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],o=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof Te){var r=e;n.push(r)}else{var i=e;o.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:o}},t.prototype.createForAutoGroups=function(e,t){var n=this,o=[];return e.forEach((function(e){var r=n.createAutoGroupTreeItem(t,e);o.push(r)})),o},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new Te(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof Te;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof Te){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,o);a.setChildren(l),r.push(a)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new Te(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(r.push(u),e.some((function(e){return e instanceof Te}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},t.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof Te){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r),a.push(l)})),a):a},t.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId||null,null),l=new Te(s,a,!1,n);this.context.createBean(l);var u=this.findExistingGroup(t,i);u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,n+1,e,o,r,i);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return W(t,this.gridOptionsWrapper.getDefaultColGroupDef()),W(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,o){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var i=this.findExistingColumn(t,n);if(i)i.setColDef(r,t),this.applyColumnState(i,r);else{var s=o.getUniqueKey(r.colId,r.field);i=new Se(r,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var n=l(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var o=l(t.width);if(null!=o)e.setActualWidth(o);else{var r=e.getActualWidth();e.setActualWidth(r)}}void 0!==t.sort&&(t.sort==be.SORT_ASC||t.sort==be.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var i=l(t.sortIndex);void 0!==i&&e.setSortIndex(i);var s=u(t.hide);void 0!==s&&e.setVisible(!s),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){var n=p(t,(function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var o=null!=e.colId,r=null!=e.field;return o?t.getId()===e.colId:r?n.field===e.field:n===e}));return t&&n&&C(t,n),n},t.prototype.findExistingGroup=function(e,t){var n=p(t,(function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}));return n&&C(t,n),n},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsWrapper.getDefaultColDef();H(t,n,!0,!0);var o=e.type;return o||(o=n&&n.type),o&&this.assignColumnTypes(o,t),H(t,e,!0,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array){e.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e}else{if("string"!=typeof e)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var o=W({},De);I(this.gridOptionsWrapper.getColumnTypes()||{},(function(e,t){e in o?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):o[e]=t})),n.forEach((function(e){var n=o[e.trim()];n?H(t,n,!0,!0):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},$e([he("columnUtils")],t.prototype,"columnUtils",void 0),$e([qe(0,ye("loggerFactory"))],t.prototype,"setBeans",null),t=$e([de("columnFactory")],t)}(Ke),Qe=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}(),Ze=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!=typeof n?0:n+1,this.existingIds[e]=t,t},e}(),Je=/[&<>"']/g,et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function tt(e,t){if(t=Math.floor(t),0===e.length||0===t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,n-e.length)}function nt(e,t,n){return e.length>t?e:((t-=e.length)>n.length&&(n+=tt(n,t/n.length)),n.slice(0,t)+e)}function ot(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function rt(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function it(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function st(e){return null==e?null:e.toString().toString().replace(Je,(function(e){return et[e]}))}function at(e){if(!e||null==e)return null;return e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}function lt(e,t){return e===t||null!=e&&e.slice(0,t.length)===t}var ut=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(e>=0&&e<=7||e>=14&&e<=31)return nt("_x"+e.toString(16).toUpperCase()+"_",4,"0");if(!(4294967168&e))return t(e);var o="";return 4294965248&e?4294901760&e?4292870144&e||(o=t(e>>18&7|240),o+=n(e,12),o+=n(e,6)):(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),o=t(e>>12&15|224),o+=n(e,6)):o=t(e>>6&31|192),o+=t(63&e|128)}for(var r=function(e){var t=[];if(!e)return[];for(var n,o,r=e.length,i=0;i<r;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<r?56320==(64512&(o=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),i--):t.push(n);return t}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},stringRepeat:tt,padStart:nt,camelCaseToHyphen:ot,hyphenToCamelCase:rt,capitalise:it,escapeString:st,camelCaseToHumanText:at,startsWith:lt});function ct(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var pt=Object.freeze({__proto__:null,convertToMap:ct,keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}}),dt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ht=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ft=function(e,t){return function(n,o){t(n,o,e)}},gt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.secondaryColumnsPresent=!1,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsCenter=[],t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.colDefVersion=0,t.flexColsCalculatedAtLestOnce=!1,t}return dt(t,e),t.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",this.onAutoGroupColumnDefChanged.bind(this))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var o=!!this.columnDefs;this.colDefVersion++;var r=this.compareColumnStatesAndRaiseEvents(t);this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,s=this.primaryColumnTree,a=this.columnFactory.createColumnTree(e,!0,s);this.primaryColumnTree=a.columnTree,this.primaryHeaderRowCount=a.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return n.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.extractValueColumns(t,i),this.ready=!0,this.updateGridColumns(),o&&this.gridColsArePrimary&&this.gridOptionsWrapper.isApplyColumnDefOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns(),this.dispatchEverythingChanged(t),r(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:Qe.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:Qe.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this;this.gridColumns.sort((function(t,n){var o=e.primaryColumns.indexOf(t),r=e.primaryColumns.indexOf(n),i=o>=0,s=r>=0;return i&&s?o-r:i?1:s?-1:e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)}))},t.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},t.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:Qe.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Qe.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var n=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;v(r,e)&&i===n&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?y(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?y(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},t.prototype.autoSizeColumns=function(e,t,n){var o=this;void 0===n&&(n="api"),this.animationFrameService.flushAllFrames();var r=[],i=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(r.indexOf(e)>=0)return!1;var s=o.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(s>0){var a=o.normaliseColumnWidth(e,s);e.setActualWidth(a,n),r.push(e),i++}return!0}),n);this.fireColumnResizedEvent(r,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,o){if(void 0===o&&(o=null),e&&e.length){var r={type:Qe.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:o,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},t.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var o=0;o<e.length;o++){var r=e[o];r instanceof Se?t.push(r):r instanceof Te&&n(r.getChildren())}};return n(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,o){for(var r,i=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!o&&o(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return i},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,(function(e){var n=e.getLeft();return r(n)&&n>t.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){var t=e.getLeft()||0,n=t+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var a=this;if(void 0===i&&(i="api"),e&&!s(e)){var l=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;C(t,r)}o(r),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Qe.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Qe.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Qe.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,i){var s=this;t.length=0,r(e)&&e.forEach((function(e){var n=s.getPrimaryColumn(e);n&&t.push(n)})),this.primaryColumns.forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Qe.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Qe.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Qe.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();r(n)&&t<n&&(t=n);var o=e.getMaxWidth();return r(o)&&e.isGreaterThanMax(t)&&(t=o),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,o){var r=this;void 0===o&&(o="api");var i=[];e.forEach((function(e){var n=r.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var o=r.getDisplayedColAfter(n);if(!o)return;var s=n.getActualWidth()-e.newWidth,a=o.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[o]})}})),0!==i.length&&this.resizeColumnSets(i,n,o)},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,i=0,s=!0;return t.forEach((function(e){var t=e.getMinWidth();o+=t||0;var n=e.getMaxWidth();r(n)&&n>0?i+=n:s=!1})),n>=o&&(!s||n<=i)},t.prototype.resizeColumnSets=function(e,t,n){if(!e||e.every(this.checkMinAndMaxWidthsForSet.bind(this))){var o=[],i=[];e.forEach((function(e){var t=e.width,s=e.columns,a=e.ratios,l={},u={};s.forEach((function(e){return i.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],n=0,o=t;s.forEach((function(t,r){if(u[t.getId()])o-=l[t.getId()];else{e.push(t);var i=a[r];n+=i}}));var i=1/n;e.forEach((function(n,s){var p;s===e.length-1?p=o:(p=Math.round(a[s]*t*i),o-=p);var d=n.getMinWidth(),h=n.getMaxWidth();r(d)&&p<d?(p=d,u[n.getId()]=!0,c=!0):r(h)&&h>0&&p>h&&(p=h,u[n.getId()]=!0,c=!0),l[n.getId()]=p}))};c;){if("break"===d())break}s.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),o.push(e))}))}));var s=o.length>0,a=this.refreshFlexedColumns({resizingCols:i,skipSetLeft:!0});s&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkViewportColumns());var l=i.concat(a);(s||t)&&this.fireColumnResizedEvent(l,t,n,a)}else if(t){var u=e&&e.length>0?e[0].columns:null;this.fireColumnResizedEvent(u,t,n)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var o=this.getPrimaryColumn(e);o&&(o.setAggFunc(t),this.fireColumnEvent(Qe.EVENT_COLUMN_VALUE_CHANGED,[o],n))}},t.prototype.fireColumnEvent=function(e,t,n){var o={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var r={type:Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){b(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:Qe.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return b(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof Te){var o=n,r=o.getColGroupDef();if(r&&r.marryChildren){var i=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>o.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},t.prototype.getColumnDefs=function(){var e=this,t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case be.PINNED_LEFT:return this.leftWidth;case be.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case be.PINNED_LEFT:return this.getDisplayedLeftColumns();case be.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:Qe.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===be.PINNED_LEFT?be.PINNED_LEFT:t===be.PINNED_RIGHT?be.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:Qe.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var i=this;if(!s(e)){var a=[];if(e.forEach((function(e){var n=i.getGridColumn(e);n&&(!1!==t(n)&&a.push(n))})),a.length&&(this.updateDisplayedColumns(n),r(o)&&o)){var l=o();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getOriginalColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?y(o):o[0],i="getDisplayedCol"+t;;){var s=this[i](r);if(!s)return null;var a=this.getColumnGroupAtLevel(s,n);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getOriginalColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&r(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,r=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:r,sortIndex:i,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:s}},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},t.prototype.orderColumnStateList=function(e){var t=ct(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],o=1e3,r=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=e.getColDef(),s=null!=t.sort?t.sort:null,a=t.sortIndex,l=!!t.hide,u=t.pinned?t.pinned:null,c=t.width,p=null!=t.flex?t.flex:null,d=t.rowGroupIndex,h=t.rowGroup;null!=d||null!=h&&0!=h||(d=null,h=null);var f=t.pivotIndex,g=t.pivot;null!=f||null!=g&&0!=g||(f=null,g=null);var y=null!=t.aggFunc?t.aggFunc:null,v={colId:e.getColId(),sort:s,sortIndex:a,hide:l,pinned:u,width:c,flex:p,rowGroup:h,rowGroupIndex:d,pivot:g,pivotIndex:f,aggFunc:y};i(d)&&h&&(v.rowGroupIndex=o++),i(f)&&g&&(v.pivotIndex=r++),n.push(v)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),s(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;this.columnAnimationService.start();var o=this.compareColumnStatesAndRaiseEvents(t);this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice(),i=!0,a={},l={},u=[],c=this.rowGroupColumns.slice(),p=this.pivotColumns.slice();e.state&&e.state.forEach((function(o){var s=be.GROUP_AUTO_COLUMN_ID,c=o.colId||"";if(lt(c,s))u.push(o);else{var p=n.getPrimaryColumn(c);p?(n.syncColumnWithStateItem(p,o,e.defaultState,a,l,!1,t),C(r,p)):i=!1}}));var d=function(o){return n.syncColumnWithStateItem(o,null,e.defaultState,a,l,!1,t)};r.forEach(d);var h=function(e,t,n,o){var r=e[n.getId()],i=e[o.getId()],s=null!=r,a=null!=i;if(s&&a)return r-i;if(s)return-1;if(a)return 1;var l=t.indexOf(n),u=t.indexOf(o),c=l>=0;return c&&u>=0?l-u:c?-1:1};this.rowGroupColumns.sort(h.bind(this,a,c)),this.pivotColumns.sort(h.bind(this,l,p)),this.updateGridColumns();var f=this.groupAutoColumns?this.groupAutoColumns.slice():[];return u.forEach((function(o){var r=n.getAutoColumn(o.colId);C(f,r),n.syncColumnWithStateItem(r,o,e.defaultState,null,null,!0,t)})),f.forEach(d),this.applyOrderAfterApplyState(e),this.updateDisplayedColumns(t),this.dispatchEverythingChanged(t),o(),this.columnAnimationService.finish(),i},t.prototype.applyOrderAfterApplyState=function(e){if(this.gridColsArePrimary&&e.applyOrder&&e.state){var t=[],n={},o={};this.gridColumns.forEach((function(e){return o[e.getId()]=e})),e.state.forEach((function(e){if(e.colId&&!n[e.colId]){var r=o[e.colId];r&&(t.push(r),n[e.colId]=!0)}})),this.gridColumns.forEach((function(e){n[e.getColId()]||t.push(e)})),t=this.putFixedColumnsFirst(t),this.doesMovePassMarryChildren(t)?this.gridColumns=t:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this;if(!!!this.columnDefs)return function(){};var n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},o=this.getColumnState(),r={};return o.forEach((function(e){r[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=function(n,o,r,i){if(!v(o.map(i).sort(),r.map(i).sort())){var s={type:n,columns:r,column:1===r.length?r[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(s)}},s=function(e){var n=[];return t.gridColumns.forEach((function(t){var o=r[t.getColId()];o&&e(o,t)&&n.push(t)})),n},a=function(e){return e.getColId()};i(Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,a),i(Qe.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,a);s((function(e,t){var n=null!=e.aggFunc,o=n!=t.isValueActive(),r=n&&e.aggFunc!=t.getAggFunc();return o||r})).length>0&&t.fireColumnEvent(Qe.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(s((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(s((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(s((function(e,t){return e.hide==t.isVisible()})),e);s((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(),t.raiseColumnMovedEvent(o,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.getPinned()})),r={type:Qe.EVENT_COLUMN_PINNED,pinned:null!=o?o:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),o=1;o<e.length;o++)if(n!==t(e[o]))return;return n}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.isVisible()})),r={type:Qe.EVENT_COLUMN_VISIBLE,visible:o,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.raiseColumnMovedEvent=function(e,t){var n=this,o=this.getColumnState(),r={};o.forEach((function(e){return r[e.colId]=e}));var i={};e.forEach((function(e){r[e.colId]&&(i[e.colId]=!0)}));var s=A(e,(function(e){return i[e.colId]})),a=A(o,(function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var o=s&&s[t];if(o&&o.colId!==e.colId){var r=n.getGridColumn(o.colId);r&&l.push(r)}})),l.length){var u={type:Qe.EVENT_COLUMN_MOVED,columns:l,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,n,o,i,s,a){if(e){var l=function(e,o){var i=t,s=n,a={value1:void 0,value2:void 0},l=!1;return i&&(void 0!==i[e]&&(a.value1=i[e],l=!0),r(o)&&void 0!==i[o]&&(a.value2=i[o],l=!0)),!l&&s&&(void 0!==s[e]&&(a.value1=s[e]),r(o)&&void 0!==s[o]&&(a.value2=s[o])),a},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.gridOptionsWrapper.getMinColWidth(),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===be.SORT_DESC||f===be.SORT_ASC?e.setSort(f):e.setSort(void 0));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s){var y=l("aggFunc").value1;void 0!==y&&("string"==typeof y?(e.setAggFunc(y),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(r(y)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.isValueActive()&&(e.setValueActive(!1,a),C(this.valueColumns,e))));var v=l("rowGroup","rowGroupIndex"),m=v.value1,w=v.value2;void 0===m&&void 0===w||("number"==typeof w||m?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"==typeof w&&(o[e.getId()]=w)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),C(this.rowGroupColumns,e)));var E=l("pivot","pivotIndex"),b=E.value1,O=E.value2;void 0===b&&void 0===O||("number"==typeof O||b?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"==typeof O&&(i[e.getId()]=O)):e.isPivotActive()&&(e.setPivotActive(!1,a),C(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns,this.primaryColumnsMap)},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&r(this.groupAutoColumns)&&!i(this.groupAutoColumns)?p(this.groupAutoColumns,(function(n){return t.columnsMatch(n,e)})):null},t.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var o=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,o):o},t.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,originalColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof i?i(s):"string"==typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?at(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,i=null;if(r(o))i=o?o.getAggFunc():null,n=!0;else{var s=e.isValueActive(),a=this.pivotMode||!this.isRowGroupEmpty();s&&a?(i=e.getAggFunc(),n=!0):n=!1}if(n){var l="string"==typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(l,l)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof Pe)return e;var n=this.getAllDisplayedTrees(),o="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof Pe){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,n,o,r,i,s){void 0===e&&(e=[]),void 0===t&&(t=[]);var a=[],c=[];this.primaryColumns.forEach((function(n){var p,d=e.indexOf(n)<0,h=n.getColDef(),f=u(i(h)),g=u(s(h)),y=l(o(h)),v=l(r(h));d?p=void 0!==f||void 0!==y?void 0!==f?f:y>=0:g||v>=0:p=void 0!==f?f:void 0!==y?null!==y&&y>=0:t.indexOf(n)>=0;p&&((d?null!=y||null!=v:null!=y)?a.push(n):c.push(n))}));var p=function(e){var t=o(e.getColDef()),n=r(e.getColDef());return null!=t?t:n};a.sort((function(e,t){var n=p(e),o=p(t);return n===o?0:n<o?-1:1}));var d=[].concat(a);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof Te){var n=e.getColGroupDef(),o={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(o)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof Te){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getOriginalColumnGroup(t);i&&i.isExpanded()!==r&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:Qe.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof Te?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],n)},t.prototype.getOriginalColumnGroup=function(e){if(e instanceof Te)return e;"string"!=typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof Te){var o=n;o.getId()===e&&(t=o)}})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&O(e.groupAutoColumns,t),o=e.valueColumns&&O(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&O(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){r(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&r(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},t.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var o=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){var o=function(e){e.forEach((function(e){if(r(e.children)){var i=e;n&&n(i),o(i.children)}else{t&&t(e)}}))};e&&o(e)}},t.prototype.updateGridColumns=function(){var e=this;this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.gridColumns=this.putFixedColumnsFirst(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t}));var t={type:Qe.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.orderGridColsLikeLastPrimary=function(){if(!i(this.lastPrimaryOrder)){var e=ct(this.lastPrimaryOrder.map((function(e,t){return[e,t]}))),t=!0;if(this.gridColumns.forEach((function(n){e.has(n)&&(t=!1)})),!t){var n=ct(this.gridColumns.map((function(e){return[e,!0]}))),o=this.lastPrimaryOrder.filter((function(e){return n.has(e)})),r=ct(o.map((function(e){return[e,!0]}))),s=this.gridColumns.filter((function(e){return!r.has(e)})),a=o.slice();s.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=a.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return a.indexOf(e)})),r=Math.max.apply(Math,o);E(a,e,r+1)}else a.push(e)}else a.push(e)})),this.gridColumns=a}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},t.prototype.putFixedColumnsFirst=function(e){var t=e.filter((function(e){return e.getColDef().lockPosition})),n=e.filter((function(e){return!e.getColDef().lockPosition}));return t.concat(n)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e)},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this,n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(o){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}w(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof Pe&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof Se&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case be.PINNED_LEFT:n=this.viewportRowLeft[t];break;case be.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=!1;if(a instanceof Se)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,o,r+1))}l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var n=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var o=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var n=t.displayedColumnsCenter.indexOf(e);o<n&&(o=n)}));var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>o;return e.getFlex()&&n},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,y=h.getMinWidth(),v=h.getMaxWidth();if(r(y)&&f<y?g=y:r(v)&&f>v&&(g=v),g){h.setActualWidth(g,n),C(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var m=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],m),n),l.push(e),m-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,n,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],s=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?s.push(e):i.push(e)}));var a=i.slice(0),l=!1,u=function(e){C(i,e),s.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var c=e-this.getWidthOfColsInList(s);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=c/this.getWidthOfColsInList(i),d=c,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),y=f.getMaxWidth(),v=Math.round(f.getActualWidth()*p);r(g)&&v<g?(v=g,u(f),l=!1):r(y)&&f.isGreaterThanMax(v)?(v=y,u(f),l=!1):0===h&&(v=d),f.setActualWidth(v,t,!0),d-=v}}a.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.fireColumnResizedEvent(a,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:o.push(e)}}));var r=new Ze;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,be.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,be.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof Pe&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var n=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);(!this.autoColsEqual(n,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=n)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return v(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var o=this[t[n]]();if(o.length)return e?y(o):o[0]}return null},ht([he("expressionService")],t.prototype,"expressionService",void 0),ht([he("columnFactory")],t.prototype,"columnFactory",void 0),ht([he("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),ht([he("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),ht([he("columnUtils")],t.prototype,"columnUtils",void 0),ht([he("columnAnimationService")],t.prototype,"columnAnimationService",void 0),ht([he("autoGroupColService")],t.prototype,"autoGroupColService",void 0),ht([fe("aggFuncService")],t.prototype,"aggFuncService",void 0),ht([fe("valueCache")],t.prototype,"valueCache",void 0),ht([fe("animationFrameService")],t.prototype,"animationFrameService",void 0),ht([he("rowModel")],t.prototype,"rowModel",void 0),ht([he("columnApi")],t.prototype,"columnApi",void 0),ht([he("gridApi")],t.prototype,"gridApi",void 0),ht([he("sortController")],t.prototype,"sortController",void 0),ht([he("columnDefFactory")],t.prototype,"columnDefFactory",void 0),ht([ce],t.prototype,"init",null),ht([ft(0,ye("loggerFactory"))],t.prototype,"setBeans",null),t=ht([de("columnController")],t)}(Ke);function yt(e,t){return nt(e.toString(),t,"0")}function vt(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n}function mt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Ct(){return Number.MAX_SAFE_INTEGER||9007199254740991}function wt(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var Et,bt,Ot,Rt,St,_t,Pt,Tt,Dt=Object.freeze({__proto__:null,padStartWidthZeros:yt,createArrayOfNumbers:vt,isNumeric:mt,getMaxSafeInteger:Ct,cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n="",o=0;o<t;o++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!=typeof e?"":wt(Math.round(100*e)/100)},formatNumberCommas:wt,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),At=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),t.prototype.calculateColInitialWidth=function(e){var t,n=this.gridOptionsWrapper,o=null!=e.minWidth?e.minWidth:n.getMinColWidth(),r=null!=e.maxWidth?e.maxWidth:n.getMaxColWidth()||Ct(),i=l(e.width),s=l(e.initialWidth);return t=null!=i?i:null!=s?s:n.getColWidth(),Math.max(Math.min(t,r),o)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1,r=function(t,i){for(var s=0;s<t.length;s++){if(o)return;var a=t[s];if(a instanceof Te)r(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}};return r(t,0),o?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof Te&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof Pe&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof Pe&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=Nt([de("columnUtils")],t)}(Ke),Ft=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ft(t,e),t.prototype.createDisplayedGroups=function(e,t,n,o,r){var i,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<r.length;d++)if(p||r[d]!==s[d]){var h=a.createColumnGroup(r[d],n,u,o);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):y(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,o){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=n[Pe.createUniqueId(i,s)];return a&&a.getOriginalColumnGroup()!==e&&(a=null),r(a)?a.reset():(a=new Pe(e,i,s,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach((function(e){if(e instanceof Pe){var o=e;t[e.getUniqueId()]=o,n(o.getChildren())}}))};return e&&n(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof Pe){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1,r=function(e,i){for(var s=0;s<e.length;s++){if(o)return;var a=e[s];if(a instanceof Te)r(a.getChildren(),i+1),n[i]=a;else a===t&&(o=!0)}};return r(e,0),o?n:(console.warn("could not get path"),null)},t=xt([de("displayedGroupCreator")],t)}(Ke),Mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Mt(t,e),n=t,t.prototype.getHeaderRows=function(){return this.headerRows},t.prototype.getRows=function(){return this.rows},t.prototype.getCenterRowContainer=function(){return this.centerRowContainer},t.prototype.postConstruct=function(){var e=this;this.createHeaderRows(),this.onPageLoaded(),this.addManagedListener(this.eventService,Qe.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.createHeaderRows(),e.onPageLoaded()}))},t.prototype.createHeaderRows=function(){this.headerRows=[];for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t===e-1;this.headerRows.push(this.createHeaderRow(t,o))}this.dispatchEvent({type:n.EVENT_HEADERS_UPDATED})},t.prototype.onPageLoaded=function(){var e=this;this.rows=[];var t=this.paginationProxy.getPageFirstRow(),o=this.paginationProxy.getPageLastRow();if(!(t<0||o<0)){for(var r=this.columnController.getDisplayedColumns(null),i=function(t){var n=s.paginationProxy.getRow(t);if(!n)return"continue";var o=[],i={cells:o,index:t,id:n.id,height:n.rowHeight,top:n.rowTop};r.forEach((function(t){o.push({value:e.valueService.getValue(t,n),colId:t.getId(),width:t.getActualWidth(),left:t.getLeft()})})),s.rows.push(i)},s=this,a=t;a<=o;a++)i(a);this.dispatchEvent({type:n.EVENT_ROWS_UPDATED}),this.centerRowContainer={height:Math.max(this.paginationProxy.getCurrentPageHeight(),1),width:this.columnController.getBodyContainerWidth()},this.dispatchEvent({type:n.EVENT_ROW_CONTAINER_UPDATED})}},t.prototype.createHeaderRow=function(e,t){var n=this;return{headerRowIndex:e,groupLevel:t,columns:this.columnController.getVirtualHeaderGroupRow(null,e).map((function(e){return{name:e instanceof Se?n.columnController.getDisplayNameForColumn(e,"header"):n.columnController.getDisplayNameForColumnGroup(e,"header"),id:e.getUniqueId()}}))}},t.EVENT_ROWS_UPDATED="rowsUpdated",t.EVENT_HEADERS_UPDATED="headersUpdated",t.EVENT_ROW_CONTAINER_UPDATED="rowContainerUpdated",Gt([he("columnController")],t.prototype,"columnController",void 0),Gt([he("paginationProxy")],t.prototype,"paginationProxy",void 0),Gt([he("valueService")],t.prototype,"valueService",void 0),Gt([ce],t.prototype,"postConstruct",null),t=n=Gt([de("headlessService")],t)}(Ke);function Vt(){return void 0===bt&&(bt=!!document.documentMode),bt}function Ht(){return void 0===Ot&&(Ot=!Vt()&&!!window.StyleMedia),Ot}function Wt(){return void 0===Et&&(Et=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Et}function Bt(){if(void 0===Rt){var e=window;Rt=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Rt}function jt(){if(void 0===St){var e=window;St=void 0!==e.InstallTrigger}return St}function Ut(){return void 0===_t&&(_t=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),_t}function zt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");if(Vt()&&0===t&&null===n){return!0==={a:!0,body:!0,button:!0,frame:!0,iframe:!0,img:!0,input:!0,isindex:!0,object:!0,select:!0,textarea:!0}[e.nodeName.toLowerCase()]?"0":null}return-1!==t||null!==n&&(""!==n||jt())?t.toString():null}function Kt(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var o=2*e;if(n.style.height=o+"px",o>t||n.clientHeight!==o)break;e=o}return document.body.removeChild(n),e}function Yt(){return null==Tt&&$t(),Tt}function $t(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Tt=n,Pt=0===n)}function qt(){return null==Pt&&$t(),Pt}function Xt(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Qt(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var Zt,Jt=Object.freeze({__proto__:null,isBrowserIE:Vt,isBrowserEdge:Ht,isBrowserSafari:Wt,isBrowserChrome:Bt,isBrowserFirefox:jt,isIOSUserAgent:Ut,getTabIndex:zt,getMaxDivHeight:Kt,getScrollbarWidth:Yt,isInvisibleScrollbar:qt,hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var o=window.getComputedStyle(t);if("touch"===o.overflowScrolling&&(n=!0),!n)for(var r=0,i=e;r<i.length;r++)if("touch"===o[i[r]+"OverflowScrolling"]){n=!0;break}return t.parentNode&&t.parentNode.removeChild(t),n},getBodyWidth:Xt,getBodyHeight:Qt});function en(e,t){if(e&&t&&0!==t.length){if(!(t.indexOf(" ")>=0)){if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.join(" ")))}else e.setAttribute("class",t);return e}t.split(" ").forEach((function(t){return en(e,t)}))}}function tn(e,t){if(e&&t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return tn(e,t)}));else if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}}function nn(e,t,n){n?en(e,t):tn(e,t)}function on(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,o=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||o||r||i}return!1}function rn(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,be.INPUT_SELECTOR),o=t.call(e,be.FOCUSABLE_EXCLUDE),r=wn(e);return n&&!o&&r}function sn(e,t){nn(e,"ag-hidden",!t)}function an(e,t){nn(e,"ag-invisible",!t)}function ln(e,t){var n="disabled",o=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};o(e),Hn(e.querySelectorAll("input"),(function(e){return o(e)}))}function un(e,t,n){for(var o=0;e;){if(on(e,t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1}function cn(e){var t=window.getComputedStyle(e),n=t.height,o=t.width,r=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,c=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(o),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function pn(e){var t=cn(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function dn(e){var t=cn(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function hn(e){var t=cn(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function fn(e){var t=cn(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function gn(){if("boolean"==typeof Zt)return Zt;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,Zt=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Zt}function yn(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Bt()&&!gn()&&(n=e.scrollWidth-e.clientWidth-n)),n}function vn(e,t,n){n&&(gn()?t*=-1:(Wt()||Bt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function mn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Cn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function wn(e){return null!==e.offsetParent}function En(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function bn(e){return e&&e.clientHeight?e.clientHeight:0}function On(e){return e&&e.clientWidth?e.clientWidth:0}function Rn(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Sn(e,t){for(var n=0;n<t.length;n++){var o=t[n],r=e.children[n];r!==o&&e.insertBefore(o,r)}}function _n(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function Pn(e,t){t&&Object.keys(t).forEach((function(n){var o=rt(n);o&&(e.style[o]=t[n])}))}function Tn(e){return e.clientWidth<e.scrollWidth}function Dn(e){return e.clientHeight<e.scrollHeight}function An(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Nn(e,t)}function Nn(e,t){t=Fn(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function In(e,t){t=Fn(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Fn(e){return"number"==typeof e?e+"px":e}function xn(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function Ln(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&z(e)&&1===e.nodeType&&"string"==typeof e.nodeName}function Mn(e){return xn(e)||Ln(e)}function Gn(e){if(null==e)return[];var t=[];return Hn(e,(function(e){return t.push(e)})),t}function kn(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}}function Vn(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Hn(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Wn=Object.freeze({__proto__:null,addCssClass:en,removeCssClass:tn,addOrRemoveCssClass:nn,radioCssClass:function(e,t,n){for(var o=e.parentElement,r=o&&o.firstChild;r;)t&&nn(r,t,r===e),n&&nn(r,n,r!==e),r=r.nextSibling},containsClass:on,isFocusableFormField:rn,setDisplayed:sn,setVisible:an,setDisabled:ln,isElementChildOfClass:un,getElementSize:cn,getInnerHeight:pn,getInnerWidth:dn,getAbsoluteHeight:hn,getAbsoluteWidth:fn,isRtlNegativeScroll:gn,getScrollLeft:yn,setScrollLeft:vn,clearElement:mn,removeElement:function(e,t){Cn(e.querySelector(t))},removeFromParent:Cn,isVisible:wn,loadTemplate:En,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:bn,offsetWidth:On,ensureDomOrder:Rn,setDomChildOrder:Sn,insertWithDomOrder:_n,prependDC:function(e,t){r(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:Pn,isHorizontalScrollShowing:Tn,isVerticalScrollShowing:Dn,setElementWidth:An,setFixedWidth:Nn,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):In(e,t)},setFixedHeight:In,formatSize:Fn,isNode:xn,isElement:Ln,isNodeOrElement:Mn,copyNodeList:Gn,iterateNamedNodeMap:kn,setCheckboxState:function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},addOrRemoveAttribute:Vn,nodeListForEach:Hn}),Bn=function(){function e(){}return e.prototype.doSomething=function(e,t){var n=t.api.headlessService,o=n.getHeaderRows(),r=n.getRows();mn(e);var i=document.createElement("table");o.forEach((function(e){var t=document.createElement("tr");i.appendChild(t),e.columns.forEach((function(e){var n=document.createElement("th");t.appendChild(n),null!=e.name&&(n.innerText=e.name)}))})),r.forEach((function(e){var t=document.createElement("tr");i.appendChild(t),e.cells.forEach((function(e){var n=document.createElement("td");t.appendChild(n),null!=e.value&&(n.innerText=e.value.toString())}))})),e.append(i),console.warn("TestHeadless.doSomething")},e}(),jn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},Un=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar","chartThemeOverrides","customChartThemes"],e.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","enableMultiRowDragging","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault"],e.ALL_PROPERTIES=jn(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),zn=function(){return zn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zn.apply(this,arguments)},Kn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},Yn=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,n,o){"object"!=typeof t&&(t={});var r=t,i=function(e){return void 0!==n[e]};return Kn(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(n[t])})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,o,r){if(t){var i=zn({},t),s=n,a=function(e){return i[e]};Kn(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(o.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(o.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.paginationPageSize&&(o.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.pivotMode&&(r.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode),i.groupRemoveSingleChildren&&(o.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.suppressRowDrag&&(o.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(o.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(o.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(o.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(o.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight);var l=o;Object.keys(i).forEach((function(e){var n="set"+e.charAt(0).toUpperCase()+e.substring(1);l[n]&&l[n](t[e].currentValue)}));var u={type:Qe.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};I(t,(function(e,t){u[e]=t})),o.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=Un.STRING_PROPERTIES,e.OBJECT_PROPERTIES=Un.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=Un.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=Un.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=Un.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=Un.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=Un.ALL_PROPERTIES,e}();Yn.EVENTS=d(Qe);var $n=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},qn=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","initialAggFunc","aggFunc","cellRenderer","cellEditor","pinned","initialPinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=$n(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Xn=function(){function e(e,t,n,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,o||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((o=parseInt(n[1],16))/255,(r=parseInt(n[2],16))/255,(i=parseInt(n[3],16))/255,(s=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var o=parseInt(n[1],16),r=parseInt(n[2],16),i=parseInt(n[3],16),s=void 0!==n[4]?parseInt(n[4],16):15;return new e((o+=16*o)/255,(r+=16*r)/255,(i+=16*i)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,o,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,n,o);return new e(i[0],i[1],i[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var o=Math.min(e,t,n),r=Math.max(e,t,n),i=NaN;if(o!==r){var s=r-o,a=(r-e)/s,l=(r-t)/s,u=(r-n)/s;i=e===r?u-l:t===r?2+a-u:4+l-a,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-o)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,r=0,i=0;if(0===t)o=r=i=n;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),u=n*(1-t*a),c=n*(1-t*(1-a));switch(s|0){case 0:o=n,r=c,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=c;break;case 3:o=l,r=u,i=n;break;case 4:o=c,r=l,i=n;break;case 5:o=n,r=l,i=u}}return[o,r,i]},e.prototype.derive=function(t,n,o,r){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&o>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);s=Math.max(Math.min(s*o,1),0);var u=Math.max(Math.min(this.a*r,1),0),c=e.HSBtoRGB(a,l,s);return c.push(u),e.fromArray(c)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Qn(e,t){void 0===t&&(t=",");var n=[],o=function(e){return"\r"===e||"\n"===e},r=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){n[l]||(n[l]=[]),n[l][u]||(n[l][u]="")};if(f(),'"'===d){if(r)return'"'===h?(n[l][u]+='"',c++):r=!1,i=l,s=u,a=c,"continue";if(void 0===p||p===t||o(p))return r=!0,i=l,s=u,a=c,"continue"}if(!r){if(d===t)return u++,f(),i=l,s=u,a=c,"continue";if(o(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,i=l,s=u,a=c,"continue"}n[l][u]+=d,i=l,s=u,a=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=i,c=s,p=a;return n}var Zn=Object.freeze({__proto__:null,stringToArray:Qn});function Jn(e){if(!e)return"";var t=[];return I(e,(function(e,n){var o=ot(e);t.push(o+": "+n+";")})),t.join(" ")}function eo(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"==typeof n?t.appendChild(n):t.innerHTML=n)}))}var to=Object.freeze({__proto__:null,getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o];Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var i=0,s=0,a=0,l=0,u=0,c=0;c<t;c++)i+=c,s+=u=e[c],l+=c*c,a+=c*u;var p=(t*a-i*s)/(t*l-i*i),d=s/t-p*i/t,h=[];for(c=0;c<=t;c++)h.push(parseFloat((c*p+d).toFixed(n)));return h},cssStyleObjectToMarkup:Jn,message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=En('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:eo});function no(e,t,n){e.setAttribute(ro(t),n.toString())}function oo(e,t){e.removeAttribute(ro(t))}function ro(e){return"aria-"+e}function io(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function so(e){return parseInt(e.getAttribute("aria-posinset"),10)}function ao(e){return e.getAttribute("aria-describedby")||""}function lo(e,t){no(e,"label",t)}function uo(e,t){no(e,"labelledby",t)}function co(e,t){no(e,"describedby",t)}function po(e,t){no(e,"disabled",t)}function ho(e,t){no(e,"expanded",t)}function fo(e){oo(e,"expanded")}function go(e,t){no(e,"setsize",t)}function yo(e,t){no(e,"posinset",t)}function vo(e,t){no(e,"multiselectable",t)}function mo(e,t){no(e,"rowcount",t)}function Co(e,t){no(e,"rowindex",t)}function wo(e,t){no(e,"colcount",t)}function Eo(e,t){no(e,"colindex",t)}function bo(e,t){no(e,"colspan",t)}function Oo(e,t){no(e,"sort",t)}function Ro(e){oo(e,"sort")}function So(e,t){var n="selected";t?no(e,n,t):oo(e,n)}function _o(e,t){no(e,"checked",void 0===t?"mixed":t)}var Po=Object.freeze({__proto__:null,getAriaSortState:io,getAriaLevel:function(e){return parseInt(e.getAttribute("aria-level"),10)},getAriaPosInSet:so,getAriaDescribedBy:ao,setAriaLabel:lo,setAriaLabelledBy:uo,setAriaDescribedBy:co,setAriaLevel:function(e,t){no(e,"level",t)},setAriaDisabled:po,setAriaExpanded:ho,removeAriaExpanded:fo,setAriaSetSize:go,setAriaPosInSet:yo,setAriaMultiSelectable:vo,setAriaRowCount:mo,setAriaRowIndex:Co,setAriaColCount:wo,setAriaColIndex:Eo,setAriaColSpan:bo,setAriaSort:Oo,removeAriaSort:Ro,setAriaSelected:So,setAriaChecked:_o});function To(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return yt(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return yt(e,2)})).join(":")),o}function Do(e){if(!e)return null;var t=e.split(" "),n=t[0],o=t[1];if(!n)return null;var r=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=r[0],s=r[1],a=r[2],l=new Date(i,s-1,a);if(l.getFullYear()!==i||l.getMonth()!==s-1||l.getDate()!==a)return null;if(!o||"00:00:00"===o)return l;var u=o.split(":").map((function(e){return parseInt(e,10)})),c=u[0],p=u[1],d=u[2];return c>=0&&c<24&&l.setHours(c),p>=0&&p<60&&l.setMinutes(p),d>=0&&d<60&&l.setSeconds(d),l}var Ao=Object.freeze({__proto__:null,serialiseDate:To,parseDateTimeFromString:Do});function No(e,t,n){var o={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return o[e]=Io(e,n)})),o}function Io(e,t,n,o){var r=o?Lo:xo,i=t.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Fo(e){var t,n,o,r=e.toLowerCase(),i=new Array(r.length-1);for(t=n=0,o=i.length;n<=o;t=n+=1)i[t]=r.slice(t,t+2);return i}function xo(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Fo(e),i=Fo(t),s=r.length+i.length,a=0;for(n=0,o=r.length;n<o;n++){var l,u=r[n],c=void 0;for(c=0,l=i.length;c<l;c++){u===i[c]&&a++}}return a>0?2*a/s:0}function Lo(e,t){for(var n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,i=0,s=0;s<n.length;s++){var a=o.indexOf(n[s],i);-1!==a&&(r+=100-100*(i=a)/1e4*100)}return r}var Mo=Object.freeze({__proto__:null,fuzzyCheckStrings:No,fuzzySuggestions:Io,get_bigrams:Fo,string_distances:xo,string_weighted_distances:Lo}),Go={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function ko(e,t,n){var o=Vo(e,t,n);if(o&&o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r}function Vo(e,t,n,o){var r=null,i=n&&n.getColDef().icons;if(i&&(r=i[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Go[e];return l||(o?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),a.setAttribute("role","presentation"),a}var u=void 0;if("function"==typeof r)u=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"==typeof u?En(u):Mn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Ho=Object.freeze({__proto__:null,iconNameClassMap:Go,createIcon:ko,createIconNoSpan:Vo});function Wo(e,t){return(e.which||e.keyCode)===t}function Bo(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return(Ht()||Vt())&&"Del"===e.key&&46===e.charCode}(e);return t||n}function jo(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o?o.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;var a={event:t,editing:r,column:o,api:e.getApi(),node:n,data:n.data,colDef:o.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s&&s(a))return!0;return!!i&&i(a)}function Uo(e,t,n,o){var i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;return!!r(s)&&!!s({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:n,event:t})}var zo=Object.freeze({__proto__:null,isKeyPressed:Wo,isEventFromPrintableCharacter:Bo,isUserSuppressingKeyboardEvent:jo,isUserSuppressingHeaderKeyboardEvent:Uo});function Ko(e,t,n){if(0===n)return!1;var o=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(o,r)<=n}var Yo=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:Ko});var $o=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var o=t[e.id],r=t[n.id],i=void 0!==o,s=void 0!==r;return i&&s?o-r:!i&&!s?e.__objectId-n.__objectId:i?1:-1},o=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){o=!0;break}o&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(o){if(!o)return;o.forEach((function(o){if(o.group||o.hasChildren()){n.push(o.key);var r=n.join("|");t(o,r),e(o.childrenAfterGroup),n.pop()}}))}(e)}});function qo(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Xo,Qo=Object.freeze({__proto__:null,convertToSet:qo}),Zo=function(){return Zo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Zo.apply(this,arguments)},Jo=Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo({},to),Po),N),Jt),Zn),Ao),Wn),Ue),ae),Mo),h),Ho),zo),pt),Yo),Dt),K),$o),Qo),ut),er=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();(Xo=t.AgPromiseStatus||(t.AgPromiseStatus={}))[Xo.IN_PROGRESS=0]="IN_PROGRESS",Xo[Xo.RESOLVED=1]="RESOLVED";var tr,nr=function(){function e(e){var n=this;this.status=t.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return e.all=function(t){return new e((function(e){var n=t.length,o=new Array(n);T(t,(function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(n){var o=this;return new e((function(e){o.status===t.AgPromiseStatus.RESOLVED?e(n(o.resolution)):o.waiters.push((function(t){return e(n(t))}))}))},e.prototype.resolveNow=function(e,n){return this.status===t.AgPromiseStatus.RESOLVED?n(this.resolution):e},e.prototype.onDone=function(e){this.status=t.AgPromiseStatus.RESOLVED,this.resolution=e,T(this.waiters,(function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),or=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),rr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ir=function(){return ir=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ir.apply(this,arguments)},sr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(tr||(tr={}));var ar,lr=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=tr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return rr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(this.state==tr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=tr.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===tr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=tr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===tr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=tr.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;en(this.tooltipComp.getGui(),"ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=ir({api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},this.parentComp.getTooltipParams());if(r(e.value)){this.state=tr.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.newTooltipComponent(e).then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==tr.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,on(n,"ag-tooltip")||en(n,"ag-tooltip-custom");var o=this.popupService.addPopup({eChild:n});o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},sr([he("popupService")],t.prototype,"popupService",void 0),sr([he("userComponentFactory")],t.prototype,"userComponentFactory",void 0),sr([he("columnApi")],t.prototype,"columnApi",void 0),sr([he("gridApi")],t.prototype,"gridApi",void 0),sr([ce],t.prototype,"postConstruct",null),t}(Ke),ur=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pr=new er,dr=function(e){function t(t){var n=e.call(this)||this;return n.annotatedGuiListeners=[],n.displayed=!0,n.visible=!0,n.compId=pr.next(),n.cssClassStates={},t&&n.setTemplate(t),n}return ur(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new lr(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;T(Gn(e.childNodes),(function(o){if(o instanceof HTMLElement){var r=n.createComponentFromElement(o,(function(e){n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,t,n){var o=e.nodeName,r=n?n[e.getAttribute("ref")]:void 0,i=this.agStackComponentsRegistry.getComponentClass(o);if(i){ar=e;var s=new i(r);return s.setParentComponent(this),this.createBean(s,null,t),s}return null},t.prototype.copyAttributesFromNode=function(e,t){kn(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var o=e.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,o=Q(t.constructor);n&&n[o]&&n[o].querySelectors&&T(n[o].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=En(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedGuiEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var o=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)o(e.eGui);else{var r=e.eGui.querySelector(n.querySelector);r&&o(r.__agComponent||r)}}))}},t.prototype.addAnnotatedGuiEventListeners=function(){var e=this;if(this.removeAnnotatedGuiEventListeners(),this.eGui){var t=this.getAgComponentMetaData("guiListenerMethods");t&&(this.annotatedGuiListeners||(this.annotatedGuiListeners=[]),t.forEach((function(t){var n=e.getRefElement(t.ref);if(n){var o=e[t.methodName].bind(e);n.addEventListener(t.eventName,o),e.annotatedGuiListeners.push({eventName:t.eventName,listener:o,element:n})}})))}},t.prototype.addAnnotatedGridEventListeners=function(){var e=this,t=this.getAgComponentMetaData("gridListenerMethods");t&&t.forEach((function(t){var n=e[t.methodName].bind(e);e.addManagedListener(e.eventService,t.eventName,n)}))},t.prototype.getAgComponentMetaData=function(e){for(var t=[],n=Object.getPrototypeOf(this);null!=n;){var o=n.__agComponentMetaData,r=Q(n.constructor);o&&o[r]&&o[r][e]&&(t=t.concat(o[r][e])),n=Object.getPrototypeOf(n)}return t},t.prototype.removeAnnotatedGuiEventListeners=function(){this.annotatedGuiListeners&&(T(this.annotatedGuiListeners,(function(e){e.element.removeEventListener(e.eventName,e.listener)})),this.annotatedGuiListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),null!=e)if(Mn(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,an(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,sn(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.removeAnnotatedGuiEventListeners(),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){!0!==this.cssClassStates[e]&&(en(this.eGui,e),this.cssClassStates[e]=!0)},t.prototype.removeCssClass=function(e){!1!==this.cssClassStates[e]&&(tn(this.eGui,e),this.cssClassStates[e]=!1)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassStates[e]!==t&&(nn(this.eGui,e,t),this.cssClassStates[e]=t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",cr([he("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),cr([ue],t.prototype,"preConstructOnComponent",null),cr([ue],t.prototype,"createChildComponentsPreConstruct",null),cr([ce],t.prototype,"addAnnotatedGridEventListeners",null),t}(Ke),hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){en(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&tn(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(dr);function gr(e){return yr.bind(this,"[ref="+e+"]",e)}function yr(e,t,n,o,r){null!==e?"number"!=typeof r?Cr(n,"querySelectors",{attributeName:o,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}function vr(e,t,n){null!=e?Cr(t,"gridListenerMethods",{methodName:n,eventName:e}):console.error("AG Grid: GridListener eventName is missing")}function mr(e,t,n,o){null!=t?Cr(n,"guiListenerMethods",{methodName:o,eventName:t,ref:e}):console.error("AG Grid: GuiListener eventName is missing")}function Cr(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,Q(e.constructor));o[t]||(o[t]=[]),o[t].push(n)}var wr,Er=function(){function e(){}return e.BACKSPACE=8,e.TAB=9,e.ENTER=13,e.SHIFT=16,e.ESCAPE=27,e.SPACE=32,e.LEFT=37,e.UP=38,e.RIGHT=39,e.DOWN=40,e.DELETE=46,e.A=65,e.C=67,e.V=86,e.D=68,e.Z=90,e.Y=89,e.F2=113,e.PAGE_UP=33,e.PAGE_DOWN=34,e.PAGE_HOME=36,e.PAGE_END=35,e}(),br=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Or=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rr=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return br(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===Er.BACKSPACE||e.keyPress===Er.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==Er.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.keyCode;t!==Er.PAGE_UP&&t!==Er.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Wt()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var o=t.getValue(),i=r(o)&&o.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();Vt()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',Or([gr("eInput")],t.prototype,"eInput",void 0),t}(fr),Sr=function(){function e(e,t,n,o){var r=this;this.alive=!0,this.context=e,t.newDateComponent(n).then((function(t){r.alive?(r.dateComp=t,t&&(o.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e}(),_r=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!=typeof t){_(["displayKey","displayName","test"],(function(e){return!!t[e]||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain a '"+e+"'"),!1)}))&&(e.customFilterOptions[t.displayKey]=t)}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),Pr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ar=function(e){function t(t,n){void 0===n&&(n=!1);var o=e.call(this,t)||this;return o.isFocusableContainer=n,o.skipTabGuardFocus=!1,o}return Tr(t,e),t.prototype.postConstruct=function(){var e=this,n=this.getFocusableElement();n&&(en(n,t.FOCUS_MANAGED_CLASS),this.isFocusableContainer&&(this.topTabGuard=this.createTabGuard("top"),this.bottomTabGuard=this.createTabGuard("bottom"),this.addTabGuards(),this.activateTabGuards(),this.forEachTabGuard((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))),this.addKeyDownListeners(n),this.addManagedListener(n,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(n,"focusout",this.onFocusOut.bind(this)))},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusController.findFocusableElements(this.getFocusableElement());this.isFocusableContainer&&this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.onTabKeyDown=function(e){var t=this;if(!e.defaultPrevented){var n=this.tabGuardsAreActive();this.isFocusableContainer&&n&&this.deactivateTabGuards();var o=this.focusController.findNextFocusableElement(this.getFocusableElement(),!1,e.shiftKey);this.isFocusableContainer&&n&&setTimeout((function(){return t.activateTabGuards()}),0),o&&(o.focus(),e.preventDefault())}},t.prototype.onFocusIn=function(e){this.isFocusableContainer&&this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.isFocusableContainer&&!this.getFocusableElement().contains(e.relatedTarget)&&this.activateTabGuards()},t.prototype.forceFocusOutOfContainer=function(e){if(void 0===e&&(e=!1),this.isFocusableContainer){this.activateTabGuards(),this.skipTabGuardFocus=!0;var t=e?this.topTabGuard:this.bottomTabGuard;t&&t.focus()}},t.prototype.appendChild=function(t,n){if(this.isFocusableContainer){Mn(t)||(t=t.getGui());var o=this.bottomTabGuard;o?o.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)}else e.prototype.appendChild.call(this,t,n)},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard"),t.classList.add("ag-tab-guard-"+e),t.setAttribute("role","presentation"),t},t.prototype.addTabGuards=function(){var e=this.getFocusableElement();e.insertAdjacentElement("afterbegin",this.topTabGuard),e.insertAdjacentElement("beforeend",this.bottomTabGuard)},t.prototype.forEachTabGuard=function(e){this.topTabGuard&&e(this.topTabGuard),this.bottomTabGuard&&e(this.bottomTabGuard)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||xe(e)||(t.shouldStopEventPropagation(e)?Fe(e):e.keyCode===Er.TAB?t.onTabKeyDown(e):t.handleKeyDown&&t.handleKeyDown(e))}))},t.prototype.shouldStopEventPropagation=function(e){return!1},t.prototype.onFocus=function(e){this.skipTabGuardFocus?this.skipTabGuardFocus=!1:this.focusInnerElement(e.target===this.bottomTabGuard)},t.prototype.activateTabGuards=function(){var e=this;this.forEachTabGuard((function(t){return t.setAttribute("tabIndex",e.gridOptionsWrapper.getGridTabIndex())}))},t.prototype.deactivateTabGuards=function(){this.forEachTabGuard((function(e){return e.removeAttribute("tabIndex")}))},t.prototype.tabGuardsAreActive=function(){return!!this.topTabGuard&&this.topTabGuard.hasAttribute("tabIndex")},t.prototype.clearGui=function(){var e=this.tabGuardsAreActive();mn(this.getFocusableElement()),this.isFocusableContainer&&(this.addTabGuards(),e&&this.activateTabGuards())},t.FOCUS_MANAGED_CLASS="ag-focus-managed",Dr([he("focusController")],t.prototype,"focusController",void 0),Dr([ce],t.prototype,"postConstruct",null),t}(dr),Nr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ir=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fr=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return Nr(t,e),t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.onFilterChanged=function(){console.warn("AG Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){this.resetTemplate(),e.prototype.postConstruct.call(this)},t.prototype.resetTemplate=function(e){var t='\n <div class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(t,e)},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){if(t.checkForDeprecatedParams(e),this.providedFilterParams=e,"keep"===e.newRowsAction)this.newRowsActionKeep=!0;else if("clear"===e.newRowsAction)this.newRowsActionKeep=!1;else{var n=[be.ROW_MODEL_TYPE_SERVER_SIDE,be.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=n.indexOf(this.rowModel.getType())>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(t&&!(t.length<1)){var n=document.createElement("div");en(n,"ag-filter-apply-panel");qo(t).forEach((function(t){return function(t){var o,r;switch(t){case"apply":o=e.translate("applyFilter"),r=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),r=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),r=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),r=function(t){e.onBtCancel(t)};break;default:return void console.warn("Unknown button type specified")}var i=En('<button\n type="button"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+o+"\n </button>");n.appendChild(i),e.addManagedListener(i,"click",r)}(t)})),this.getGui().appendChild(n)}},t.checkForDeprecatedParams=function(e){var t=e.buttons||[];if(!(t.length>0)){var n=e.applyButton,o=e.resetButton;e.clearButton&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.clearButton is deprecated. Please use filterParams.buttons instead"),t.push("clear")),o&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.resetButton is deprecated. Please use filterParams.buttons instead"),t.push("reset")),n&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.applyButton is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.apply&&(console.warn("AG Grid: as of AG Grid v21, filterParams.apply is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.buttons=t}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=re(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){var t=this;return(e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),o=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(o):this.resetUiToDefaults().then(o)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){var e=this;this.newRowsActionKeep||this.resetUiToDefaults().then((function(){return e.appliedModel=null}))},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,o=n&&n.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive){var n=this.isModelValid(this.getModelFromUi());ln(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return t.checkForDeprecatedParams(e),!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,Pr[e])},Ir([he("rowModel")],t.prototype,"rowModel",void 0),Ir([ce],t.prototype,"postConstruct",null),t}(Ar),xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(wr||(wr={}));var Mr,Gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xr(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(wr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(wr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(wr.One),condition2:this.createCondition(wr.Two)}:this.createCondition(wr.One):null},t.prototype.getCondition1Type=function(){return this.eType1.getValue()},t.prototype.getCondition2Type=function(){return this.eType2.getValue()},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;if(o){var i=e,s=t;n=this.areSimpleModelsEqual(i,s)}else{var a=e,l=t;n=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,wr.One),this.setConditionIntoUi(t.condition2,wr.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,wr.One),this.setConditionIntoUi(null,wr.Two)}return nr.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var o=n.operator,r=[];if(o){var i=n;r.push(i.condition1,i.condition2)}else r.push(n);return(o&&"OR"===o?P:_)(r,(function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new _r,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return O(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();T(t,(function(t){var n,o;if("string"==typeof t)n=t,o=e.translate(n);else{n=t.displayKey;var r=e.optionsFactory.getCustomOption(n);o=r?e.gridOptionsWrapper.getLocaleTextFunc()(r.displayKey,r.displayName):e.translate(n)}var i=function(){return{value:n,text:o}};e.eType1.addOption(i()),e.eType2.addOption(i())}));var n=t.length<=1;this.eType1.setDisabled(n),this.eType2.setDisabled(n)},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(wr.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(wr.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isCondition2Enabled();this.alwaysShowBothConditions?(this.eJoinOperatorAnd.setDisabled(!e),this.eJoinOperatorOr.setDisabled(!e),this.eType2.setDisabled(!e),ln(this.eCondition2Body,!e)):(sn(this.eJoinOperatorPanel,e),sn(this.eType2.getGui(),e),sn(this.eCondition2Body,e))},t.prototype.isCondition2Enabled=function(){return this.allowTwoConditions&&this.isConditionUiComplete(wr.One)},t.prototype.resetUiToDefaults=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),n="ag-simple-filter-and-or-"+this.getCompId(),o=this.optionsFactory.getDefaultOption();return this.eType1.setValue(o,e).setAriaLabel(t),this.eType2.setValue(o,e).setAriaLabel(t),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(n).setLabel(this.translate("andCondition")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(n).setLabel(this.translate("orCondition")),nr.resolve()},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",Lr([gr("eOptions1")],t.prototype,"eType1",void 0),Lr([gr("eOptions2")],t.prototype,"eType2",void 0),Lr([gr("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Lr([gr("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Lr([gr("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Lr([gr("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Lr([gr("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Fr),kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("AG Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.individualConditionPasses=function(e,n){var o=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(n),i=r.from,s=r.to,a=n.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=i||l.hideFilterInput))return l.test(i,o);if(null==o){switch(a){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0}return!1}var u=this.comparator(),c=u(i,o);switch(a){case t.EQUALS:return 0===c;case t.NOT_EQUAL:return 0!==c;case t.GREATER_THAN:return c>0;case t.GREATER_THAN_OR_EQUAL:return c>=0;case t.LESS_THAN:return c<0;case t.LESS_THAN_OR_EQUAL:return c<=0;case t.IN_RANGE:var p=u(s,o);return this.scalarFilterParams.inRangeInclusive?c>=0&&p<=0:c>0&&p<0;default:return console.warn('AG Grid: Unexpected type of filter "'+a+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Gr),Hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Br=function(e){function t(){return e.call(this,"dateFilter")||this}return Hr(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapRangeFromModel=function(e){return{from:Do(e.dateFrom),to:Do(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){this.dateCondition1FromComp.setDate(null==e?null:Do(e)),this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var n=e?[Do(e.dateFrom),Do(e.dateTo)]:[null,null],o=n[0],r=n[1],i=this.getFromToComponents(t),s=i[0],a=i[1];s.setDate(o),a.setDate(r)},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){n.dateCondition1FromComp.setDate(null),n.dateCondition1ToComp.setDate(null),n.dateCondition2FromComp.setDate(null),n.dateCondition2ToComp.setDate(null)}))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new Sr(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.dateCondition1FromComp.destroy(),e.dateCondition1ToComp.destroy(),e.dateCondition2FromComp.destroy(),e.dateCondition2ToComp.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===wr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===wr.One?this.getCondition1Type():this.getCondition2Type();if(t===Gr.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(t))return!0;var n=this.getFromToComponents(e),o=n[0],r=n[1],i=null==this.dateFilterParams.minValidYear?1e3:this.dateFilterParams.minValidYear,s=function(e){return null!=e&&e.getUTCFullYear()>i};return s(o.getDate())&&(!this.showValueTo(t)||s(r.getDate()))},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=e===wr.One?this.getCondition1Type():this.getCondition2Type(),n=this.getFromToComponents(e),o=n[0],r=n[1];return{dateFrom:To(o.getDate()),dateTo:To(r.getDate()),type:t,filterType:this.getFilterType()}},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.dateCondition1FromComp.setInputPlaceholder(t),this.dateCondition1FromComp.setInputAriaLabel(n),this.dateCondition1ToComp.setInputPlaceholder(t),this.dateCondition1ToComp.setInputAriaLabel(n),this.dateCondition2FromComp.setInputPlaceholder(t),this.dateCondition2FromComp.setInputAriaLabel(n),this.dateCondition2ToComp.setInputPlaceholder(t),this.dateCondition2ToComp.setInputAriaLabel(n)},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type();sn(this.eCondition1PanelFrom,this.showValueFrom(t)),sn(this.eCondition1PanelTo,this.showValueTo(t));var n=this.getCondition2Type();sn(this.eCondition2PanelFrom,this.showValueFrom(n)),sn(this.eCondition2PanelTo,this.showValueTo(n))},t.prototype.getFromToComponents=function(e){return e===wr.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.DEFAULT_FILTER_OPTIONS=[Vr.EQUALS,Vr.GREATER_THAN,Vr.LESS_THAN,Vr.NOT_EQUAL,Vr.IN_RANGE],Wr([gr("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),Wr([gr("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),Wr([gr("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),Wr([gr("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),Wr([he("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Vr),jr=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Ee,this.eElement=e,this.preventMouseClick=t;var o=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",o,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var o=this.touchStart;window.setTimeout((function(){var r=n.touchStart===o;if(n.touching&&r&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!Ko(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),Ur=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Ur(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=g(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=st(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=Vo(e,this.gridOptionsWrapper,n);o&&t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new jr(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&r(this.eMenu),s=i?new jr(this.eMenu,!0):n;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,jr[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,jr.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Ut()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),nn(this.eMenu,"ag-header-menu-always-show",t)}else Cn(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){Cn(this.eSortAsc),Cn(this.eSortDesc),Cn(this.eSortNone),Cn(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,Se.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var o=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(o||r)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addManagedListener(this.params.column,Se.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Qe.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(nn(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),nn(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),nn(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&nn(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&nn(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();nn(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;sn(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():mn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,Se.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();nn(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on">\n <span ref="eText" class="ag-header-cell-text" unselectable="on"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n </div>\n </div>',zr([he("sortController")],t.prototype,"sortController",void 0),zr([he("menuFactory")],t.prototype,"menuFactory",void 0),zr([gr("eFilter")],t.prototype,"eFilter",void 0),zr([gr("eSortAsc")],t.prototype,"eSortAsc",void 0),zr([gr("eSortDesc")],t.prototype,"eSortDesc",void 0),zr([gr("eSortNone")],t.prototype,"eSortNone",void 0),zr([gr("eSortOrder")],t.prototype,"eSortOrder",void 0),zr([gr("eMenu")],t.prototype,"eMenu",void 0),zr([gr("eLabel")],t.prototype,"eLabel",void 0),zr([gr("eText")],t.prototype,"eText",void 0),t}(dr),Yr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$r=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qr=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Yr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){X((function(){return console.warn("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!xe(t)){var n=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Fe(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getOriginalColumnGroup();this.addManagedListener(o,Te.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(o,Te.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new jr(e,!0);this.addManagedListener(n,jr.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();sn(this.eOpenIcon,e),sn(this.eCloseIcon,!e)}else sn(this.eOpenIcon,!1),sn(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Vo(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return sn(this.eOpenIcon,!1),void sn(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(r(e)){var t=st(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',$r([he("columnController")],t.prototype,"columnController",void 0),$r([gr("agOpened")],t.prototype,"eOpenIcon",void 0),$r([gr("agClosed")],t.prototype,"eCloseIcon",void 0),t}(dr),Xr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qr=function(){function e(){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.highlighted=null,this.selected=!1}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:o}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===be.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===be.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.createBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=r(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(t){var n=this.gridOptionsWrapper.getRowNodeIdFunc();n?this.data?(this.id=n(this.data),this.id&&"string"==typeof this.id&&lt(this.id,e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row ID's cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature.")):this.id=void 0:this.id=t},e.prototype.isPixelInRange=function(e){return!(!r(this.rowTop)||!r(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var n=W({},this.createGlobalRowEvent(Qe.EVENT_ROW_GROUP_OPENED),{expanded:t});this.mainEventService.dispatchEvent(n),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var n=this.columnController.getPrimaryColumn(e),o=this.valueService.getValue(n,this);this.valueService.setValue(this,n,t),this.dispatchCellChangedEvent(n,t,o)},e.prototype.setGroupValue=function(e,t){var n=this.columnController.getGridColumn(e);i(this.groupData)&&(this.groupData={});var o=n.getColId(),r=this.groupData[o];r!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,r))},e.prototype.setAggData=function(e){var t=this,n=k([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.columnController.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&s(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,o){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:o};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!(!this.hasChildren()&&!this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,n=!1,o=!1;if(this.childrenAfterGroup)for(var r=0;r<this.childrenAfterGroup.length;r++){var i=this.childrenAfterGroup[r];if(i.selectable)switch(i.isSelected()){case!0:t=!0;break;case!1:n=!0;break;default:o=!0}}e=o?void 0:!(!t||n)||!(!t&&n)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===be.PINNED_TOP||this.rowPinned===be.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),n=!0===e.newValue,o=!0===e.clearSelection,r=!0===e.suppressFinishActions,i=!0===e.rangeSelect,s=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(i&&this.selectionController.getLastSelectedNode()){var a=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(a&&l){var u=this.doRowRangeSelection(e.newValue);return this.selectionController.setLastSelectedNode(this),u}}var c=0;s&&this.group||this.selectThisNode(n)&&c++;if(t&&this.group&&(c+=this.selectChildNodes(n,s)),!r){if(n&&(o||!this.gridOptionsWrapper.isRowSelectionMulti())&&(c+=this.selectionController.clearOtherNodes(this)),c>0){this.selectionController.updateGroupsFromChildrenSelections();var p={type:Qe.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(p)}n&&this.selectionController.setLastSelectedNode(this)}return c},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode(),r=this.rowModel.getNodesInRangeForSelection(this,o),i=0;r.forEach((function(o){o.group&&n||!1===e&&t===o||o.selectThisNode(e)&&i++})),this.selectionController.updateGroupsFromChildrenSelections();var s={type:Qe.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(s),i},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){var n=!this.selectable&&t,o=this.selected===t;if(n||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(Qe.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(r),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup;if(i(n))return 0;for(var o=0,r=0;r<n.length;r++)o+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new Ee),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,n=!0,o=!1,i=null;n&&!o;){var s=t.parent;r(s)&&t.firstChild?s.rowGroupColumn===e&&(o=!0,i=s):n=!1,t=s}return o?i:null},e.prototype.isFullWidthCell=function(){var e=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e(this)},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",Xr([he("eventService")],e.prototype,"mainEventService",void 0),Xr([he("rowRenderer")],e.prototype,"rowRenderer",void 0),Xr([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xr([he("selectionController")],e.prototype,"selectionController",void 0),Xr([he("columnController")],e.prototype,"columnController",void 0),Xr([he("valueService")],e.prototype,"valueService",void 0),Xr([he("rowModel")],e.prototype,"rowModel",void 0),Xr([he("context")],e.prototype,"context",void 0),Xr([he("valueCache")],e.prototype,"valueCache",void 0),Xr([he("columnApi")],e.prototype,"columnApi",void 0),Xr([he("gridApi")],e.prototype,"gridApi",void 0),e}(),Zr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ei=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Zr(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Fe(e)})),this.addGuiEventListener("dblclick",(function(e){return Fe(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Qr.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Qr.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Qr.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"==typeof e.checkboxSelection},Jr([gr("eCheckbox")],t.prototype,"eCheckbox",void 0),Jr([ce],t.prototype,"postConstruct",null),t}(dr),ti={propertyName:"dateComponent",isCellRenderer:function(){return!1}},ni={propertyName:"headerComponent",isCellRenderer:function(){return!1}},oi={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},ri={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},ii={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},si={propertyName:"cellEditor",isCellRenderer:function(){return!1}},ai={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},li={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},ui={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},ci={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},pi={propertyName:"filter",isCellRenderer:function(){return!1}},di={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},hi={propertyName:"toolPanel",isCellRenderer:function(){return!1}},fi={propertyName:"statusPanel",isCellRenderer:function(){return!1}},gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(Mr||(Mr={}));var vi,mi,Ci,wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gi(t,e),t.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,ti,"agDateInput")},t.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,ni,"agColumnHeader")},t.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,oi,"agColumnGroupHeader")},t.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions.groupRowRendererParams,e,ai,null,!0)},t.prototype.newFullWidthCellRenderer=function(e,t,n){return this.createAndInitUserComponent(null,e,{propertyName:t,isCellRenderer:function(){return!0}},n)},t.prototype.newCellRenderer=function(e,t,n){return void 0===n&&(n=!1),this.createAndInitUserComponent(e,t,n?ii:ri,null,!0)},t.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,si,"agCellEditor")},t.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,ai,null)},t.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,li,"agLoadingOverlay")},t.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,ui,"agNoRowsOverlay")},t.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,ci,"agTooltipComponent")},t.prototype.newFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,pi,n,!1)},t.prototype.newSetFilterCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,ri,null,!0)},t.prototype.newFloatingFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,di,n,!0)},t.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,hi)},t.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,fi)},t.prototype.createAndInitUserComponent=function(e,t,n,o,r){void 0===r&&(r=!1),e||(e=this.gridOptions);var i=this.createComponentInstance(e,n,t,o,r);if(!i)return null;var s=i.componentInstance,a=this.createFinalParams(e,n.propertyName,t,i.paramsFromSelector);this.addReactHacks(a);var l=this.initComponent(s,a);return null==l?nr.resolve(s):l.then((function(){return s}))},t.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=F(t));var n=this.context.getBean("frameworkComponentWrapper");n&&(e.frameworkComponentWrapper=n)},t.prototype.createUserComponentFromConcreteClass=function(e,t){var n=new e;return this.initComponent(n,t),n},t.prototype.lookupComponentClassDef=function(e,t,n,o){void 0===n&&(n=null);var r=null,i=null,s=null,a=null,l=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?r=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?i=u:s=u)),a=e[t+"Framework"],l=e[t+"Selector"]}if(i&&a||r&&a||s&&a)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(a&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(l&&(r||i||s||a))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(a)return{componentFromFramework:!0,component:a,source:Mr.HARDCODED,paramsFromSelector:null};if(i)return{componentFromFramework:!1,component:i,source:Mr.HARDCODED,paramsFromSelector:null};if(s)return this.agComponentUtils.adaptFunction(t,s,!1,Mr.HARDCODED);var c,p=l?l(n):null;if(!(c=p&&p.component?p.component:r||o))return null;var d=this.lookupFromRegisteredComponents(t,c);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:p?p.params:null}:null},t.prototype.lookupFromRegisteredComponents=function(e,t){var n=null!=t?t:e,o=this.userComponentRegistry.retrieve(n);return null==o?null:o.componentFromFramework?{component:o.component,componentFromFramework:!0,source:Mr.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(o.component)?{component:o.component,componentFromFramework:!1,source:o.source==Oi.REGISTERED?Mr.REGISTERED_BY_NAME:Mr.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,o.component,o.componentFromFramework,o.source==Oi.REGISTERED?Mr.REGISTERED_BY_NAME:Mr.DEFAULT)},t.prototype.createFinalParams=function(e,t,n,o){void 0===o&&(o=null);var r={};H(r,n);var i=e?e[t+"Params"]:null;null!=i&&("function"==typeof i?H(r,i(n)):"object"==typeof i&&H(r,i));return H(r,o),r},t.prototype.createComponentInstance=function(e,t,n,o,r){var i,s=t.propertyName,a=this.lookupComponentClassDef(e,s,n,o);if(!a||!a.component){var l=e?e[s]:o,u=l||o;return r||console.error("Could not find component "+u+", did you forget to configure this component?"),null}if(a.componentFromFramework){var c=a.component,p=this.componentMetadataProvider.retrieve(s);i=this.frameworkComponentWrapper.wrap(c,p.mandatoryMethodList,p.optionalMethodList,t,o)}else i=new a.component;return{componentInstance:i,paramsFromSelector:a.paramsFromSelector}},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},yi([he("gridOptions")],t.prototype,"gridOptions",void 0),yi([he("agComponentUtils")],t.prototype,"agComponentUtils",void 0),yi([he("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),yi([he("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),yi([fe("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=yi([de("userComponentFactory")],t)}(Ke),Ei=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(vi=t.DragSourceType||(t.DragSourceType={}))[vi.ToolPanel=0]="ToolPanel",vi[vi.HeaderCell=1]="HeaderCell",vi[vi.RowDrag=2]="RowDrag",vi[vi.ChartPanel=3]="ChartPanel",(mi=t.VerticalDirection||(t.VerticalDirection={}))[mi.Up=0]="Up",mi[mi.Down=1]="Down",(Ci=t.HorizontalDirection||(t.HorizontalDirection={}))[Ci.Left=0]="Left",Ci[Ci.Right=1]="Right";var Oi,Ri=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return Ei(n,e),o=n,n.prototype.init=function(){this.ePinnedIcon=ko("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=ko("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=ko("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=ko("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=ko("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=ko("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=ko("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=ko("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=ko("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=p(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),C(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},n.prototype.onDragging=function(e,t){var n=this,o=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),s=i.length,a=null;if(s>0&&(a=1===s?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),o=t.getContainer();return n.contains(o)?t:e}))),a!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,r,t),this.enterDragTargetIfExists(a,e,o,r,t),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,e,o,r,t);a.onDragging(l)}},n.prototype.enterDragTargetIfExists=function(e,t,n,o,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,o,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(e,t,n,o){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,o);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],n=e.getSecondaryContainers?e.getSecondaryContainers():null;return n&&(t=t.concat(n)),t},n.prototype.isMouseOnDropTarget=function(e,t){var n=!1;return this.getAllContainersFromDropTarget(t).filter((function(e){return e})).forEach((function(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var r=e.clientX>=o.left&&e.clientX<o.right,i=e.clientY>=o.top&&e.clientY<o.bottom;r&&i&&(n=!0)}})),n&&t.isInterestedIn(this.dragSource.type)},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){return p(this.dropTargets.filter((function(e){return e.external})),(function(t){return t.getContainer()===e.getContainer()}))},n.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:p,fromNudge:r,dragItem:c,api:l,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,o=Xt()-2,r=Qt()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||a.documentElement.scrollTop,u=window.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+u&&(s=o+u-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+l&&(i=r+l-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=En(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&en(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;Z(n)&&(n=n()),t.innerHTML=st(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),i=r.fullscreenElement||r.querySelector("body");this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),mn(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}nn(this.eGhostIcon,"ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',bi([he("dragService")],n.prototype,"dragService",void 0),bi([he("environment")],n.prototype,"environment",void 0),bi([he("columnApi")],n.prototype,"columnApi",void 0),bi([he("gridApi")],n.prototype,"gridApi",void 0),bi([ce],n.prototype,"init",null),bi([pe],n.prototype,"clearDragSourceParamsList",null),n=o=bi([de("dragAndDropService")],n)}(Ke),Si=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_i=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pi=function(e){function n(t,n,o,r,i){var s=e.call(this)||this;return s.cellValueFn=t,s.rowNode=n,s.column=o,s.customGui=r,s.dragStartPixels=i,s.isCustomGui=!1,s.dragSource=null,s}return Si(n,e),n.prototype.postConstruct=function(){this.customGui?(this.isCustomGui=!0,this.setDragElement(this.customGui,this.dragStartPixels)):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Vo("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource());this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Ai(this,this.beans,this.rowNode,this.column):new Di(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isEnableMultiRowDragging())return 1;var e=this.beans.selectionController.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&X((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},r=this.column&&this.column.getColDef().rowDragText;this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return r?r(o,e):1===e?n.cellValueFn():e+" rows"},getDragItem:function(){return o},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},_i([he("beans")],n.prototype,"beans",void 0),_i([ce],n.prototype,"postConstruct",null),_i([pe],n.prototype,"removeDragSource",null),n}(dr),Ti=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.column=o,r.rowNode=n,r}return Si(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui,n=Z(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(Ke),Di=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return Si(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},_i([ce],t.prototype,"postConstruct",null),t}(Ti),Ai=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return Si(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Qe.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Qe.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.controllersService.getGridBodyController().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},_i([ce],t.prototype,"postConstruct",null),t}(Ti),Ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ii=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ni(t,e),t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnController.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.init=function(e){this.params=e;var t=this.isTopLevelFooter(),n=this.isEmbeddedRowMismatch(),o=null==e.value,r=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var i=e.node;if(i.footer)r=(e.colDef&&e.colDef.showRowGroup)!==(i.rowGroupColumn&&i.rowGroupColumn.getColId())}this.cellIsBlank=!t&&(n||o||r),this.cellIsBlank||(this.setupDragOpenParents(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===be.PINNED_LEFT,t=this.params.pinned===be.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!n:this.columnController.isPinningLeft()?!e:!n},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!!e.colDef||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0?this.setPaddingDeprecatedWay(n,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+n,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){X((function(){return console.warn("AG Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var n=e*t,o=this.getGui(),r=this.gridOptionsWrapper.isEnableRtl()?"paddingRight":"paddingLeft";o.style[r]=n+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Qr.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){this.displayedGroup.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addFooterValue=function(){var e,t=this.params.footerValueGetter;if(t){var n=F(this.params);n.value=this.params.value,"function"==typeof t?e=t(n):"string"==typeof t?e=this.expressionService.evaluate(t,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+(null!=this.params.value?this.params.value:"");this.eValue.innerHTML=e},t.prototype.addGroupValue=function(){var e,t=this,n=this.params,o=this.displayedGroup.rowGroupColumn,r=o||n.column,i=this.params.value,s=r?this.valueFormatterService.formatValue(r,n.node,n.scope,i):null;n.valueFormatted=s,(e=n.fullWidth?this.useFullWidth(n):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),n))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,n){var o=this,r=null,i=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(i&&null!=i.component&&i.source!=Mr.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,n);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=Mr.DEFAULT?this.userComponentFactory.newCellRenderer(t,n):s&&s.source==Mr.DEFAULT&&B(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,n):this.userComponentFactory.newCellRenderer({},n)}return null!=r?r.then((function(e){null!=e?eo(r,o.eValue):o.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value})):this.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?eo(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new Pi((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.getGui().insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroup,Qr.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.eChildCount.innerHTML=t},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroup,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var o=new ei;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}nn(this.eCheckbox,"ag-invisible",!n)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,n=Vo("groupExpanded",this.gridOptionsWrapper,null),o=Vo("groupContracted",this.gridOptionsWrapper,null);ho(t,!!e.node.expanded),n&&this.eExpanded.appendChild(n),o&&this.eContracted.appendChild(o),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Qr.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroup,Qr.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroup,Qr.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroup,Qr.EVENT_HAS_CHILDREN_CHANGED,r),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){Wo(e,Er.ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract())},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var n=t.rowGroupColumn;this.draggedFromHideOpenParents=!!n&&!e.isRowGroupDisplayed(n.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var o=t.parent;!i(o);){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroup=o;break}o=o.parent}i(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){xe(e)||(Fe(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){xe(e)||(Ve(this.eExpanded,e)||Ve(this.eContracted,e)||this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup,t=this.params,n=!e.expanded;e.setExpanded(n),ho(t.eGridCell,n)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroup.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.isExpandable=function(){if(this.draggedFromHideOpenParents)return!0;var e=this.displayedGroup,t=this.columnController.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.eContracted,n=e.eExpanded,o=e.params,r=e.displayedGroup,i=e.columnController,s=o.eGridCell,a=o.node,l=this.isExpandable();if(l){var u=!!this.draggedFromHideOpenParents||a.expanded;sn(t,!u),sn(n,u)}else fo(s),sn(n,!1),sn(t,!1);var c=i.isPivotMode(),p=c&&r.leafGroup,d=l&&!p,h=a.footer&&-1===a.level;this.addOrRemoveCssClass("ag-cell-expandable",d),this.addOrRemoveCssClass("ag-row-group",d),c?this.addOrRemoveCssClass("ag-pivot-leaf-group",p):h||this.addOrRemoveCssClass("ag-row-group-leaf-indent",!d)},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',Ii([he("rowRenderer")],t.prototype,"rowRenderer",void 0),Ii([he("expressionService")],t.prototype,"expressionService",void 0),Ii([he("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ii([he("columnController")],t.prototype,"columnController",void 0),Ii([he("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ii([gr("eExpanded")],t.prototype,"eExpanded",void 0),Ii([gr("eContracted")],t.prototype,"eContracted",void 0),Ii([gr("eCheckbox")],t.prototype,"eCheckbox",void 0),Ii([gr("eValue")],t.prototype,"eValue",void 0),Ii([gr("eChildCount")],t.prototype,"eChildCount",void 0),t}(dr),xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Li=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return xi(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),i=r(o)?o:n,s=t>=0;this.eDelta.innerHTML=s?"↑"+i:"↓"+i,nn(this.eDelta,"ag-value-change-delta-up",s),nn(this.eDelta,"ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){tn(this.eValue,"ag-value-change-value-highlight"),mn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(r(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:r(e.value)?this.eValue.innerHTML=t:mn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof t&&"number"==typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&en(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',Li([he("filterManager")],t.prototype,"filterManager",void 0),t}(dr),Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ki=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return Gi(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=En('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&en(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;return i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,r(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:r(e.value)?this.eCurrent.innerHTML=t:mn(this.eCurrent),!0))},t.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',ki([he("filterManager")],t.prototype,"filterManager",void 0),t}(dr),Hi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Hi(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Vo("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',Wi([gr("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Wi([gr("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(dr),ji=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ui=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zi=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return ji(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=e.keyPress===Er.ENTER;var n=!1;e.values.forEach((function(o){var r={value:o},i=t.valueFormatterService.formatValue(e.column,null,null,o),s=null!=i;r.text=s?i:o,t.eSelect.addOption(r),n=n||e.value===o})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ui([he("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ui([gr("eSelect")],t.prototype,"eSelect",void 0),t}(fr),Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ki(t,e),t.prototype.isPopup=function(){return!0},t}(Rr),$i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $i(t,e),t.prototype.isPopup=function(){return!0},t}(zi),Xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Xi(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),r(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t===Er.LEFT||t===Er.UP||t===Er.RIGHT||t===Er.DOWN||e.shiftKey&&t===Er.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',Qi([gr("eTextArea")],t.prototype,"eTextArea",void 0),t}(fr),Ji=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),es=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ts=function(e){function t(){return e.call(this,"numberFilter")||this}return Ji(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){[n.eValueFrom1,n.eValueFrom2,n.eValueTo1,n.eValueTo2].forEach((function(e){return e.setValue(null,t)})),n.resetPlaceholder()}))},t.prototype.setConditionIntoUi=function(e,t){var n=t===wr.One,o=n?this.eValueFrom1:this.eValueFrom2,r=n?this.eValueTo1:this.eValueTo2;o.setValue(e?""+e.filter:null),r.setValue(e?""+e.filterTo:null)},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.setValue(e),this.eValueTo1.setValue(null),this.eValueFrom2.setValue(null),this.eValueTo2.setValue(null)},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var o={allowedCharPattern:n};this.resetTemplate({eValueFrom1:o,eValueTo1:o,eValueFrom2:o,eValueTo2:o})}e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValueFrom1.onValueChange(t),this.eValueTo1.onValueChange(t),this.eValueFrom2.onValueChange(t),this.eValueTo2.onValueChange(t)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.showValueTo(this.getCondition1Type()),n=this.showValueTo(this.getCondition2Type());this.eValueFrom1.setInputPlaceholder(this.translate(t?"inRangeStart":"filterOoo")),this.eValueFrom1.setInputAriaLabel(t?e("ariaFilterFromValue","Filter from value"):e("ariaFilterValue","Filter Value")),this.eValueTo1.setInputPlaceholder(this.translate("inRangeEnd")),this.eValueTo1.setInputAriaLabel(e("ariaFilterToValue","Filter to Value")),this.eValueFrom2.setInputPlaceholder(this.translate(n?"inRangeStart":"filterOoo")),this.eValueFrom2.setInputAriaLabel(n?e("ariaFilterFromValue","Filter from value"):e("ariaFilterValue","Filter Value")),this.eValueTo2.setInputPlaceholder(this.translate("inRangeEnd")),this.eValueTo2.setInputAriaLabel(e("ariaFilterToValue","Filter to Value"))},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),t&&t.suppressFocus||this.eValueFrom1.getInputElement().focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===wr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValueFrom'+t+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValueTo'+t+'"></'+n+">\n </div>"},t.prototype.isConditionUiComplete=function(e){var t=e===wr.One,n=t?this.getCondition1Type():this.getCondition2Type();if(n===Gr.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(n))return!0;var o=t?this.eValueFrom1:this.eValueFrom2,r=t?this.eValueTo1:this.eValueTo2;return null!=this.stringToFloat(o.getValue())&&(!this.showValueTo(n)||null!=this.stringToFloat(r.getValue()))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var t=o(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=e===wr.One,n=t?this.getCondition1Type():this.getCondition2Type(),o=t?this.eValueFrom1:this.eValueFrom2,r=this.stringToFloat(o.getValue()),i={filterType:this.getFilterType(),type:n};if(!this.doesFilterHaveHiddenInput(n)&&(i.filter=r,this.showValueTo(n))){var s=t?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.getValue());i.filterTo=a}return i},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type(),n=this.getCondition2Type();sn(this.eValueFrom1.getGui(),this.showValueFrom(t)),sn(this.eValueTo1.getGui(),this.showValueTo(t)),sn(this.eValueFrom2.getGui(),this.showValueFrom(n)),sn(this.eValueTo2.getGui(),this.showValueTo(n))},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Bt()||Ht()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[Vr.EQUALS,Vr.NOT_EQUAL,Vr.LESS_THAN,Vr.LESS_THAN_OR_EQUAL,Vr.GREATER_THAN,Vr.GREATER_THAN_OR_EQUAL,Vr.IN_RANGE],es([gr("eValueFrom1")],t.prototype,"eValueFrom1",void 0),es([gr("eValueTo1")],t.prototype,"eValueTo1",void 0),es([gr("eValueFrom2")],t.prototype,"eValueFrom2",void 0),es([gr("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(Vr),ns=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),os=function(e){function t(){return e.call(this)||this}return ns(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(dr),rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),is=function(e){function t(){return e.call(this)||this}return rs(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(dr),ss=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),as=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return ss(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(fr),ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),us=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cs=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return ls(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(Vt()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11; reverting to text date picker"):t.type="date"),this.addManagedListener(t,"mousedown",(function(){return t.focus()})),this.addManagedListener(this.eDateInput.getInputElement(),"input",(function(t){t.target===document.activeElement&&e.onDateChanged()}))},t.prototype.getDate=function(){return Do(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(To(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Bt()||jt()},us([gr("eDateInput")],t.prototype,"eDateInput",void 0),t}(dr),ps=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ps(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),o=this.conditionToString(t.condition2);return n+" "+t.operator+" "+o}var r=e,i=this.optionsFactory.getCustomOption(r.type);return i&&i.hideFilterInput?(this.gridOptionsWrapper.getLocaleTextFunc()(i.displayKey,i.displayName),i.displayName):this.conditionToString(r)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new _r,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!!e&&!this.doesFilterHaveHiddenInput(e)&&e!==Gr.IN_RANGE&&e!==Gr.EMPTY},t}(dr),hs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gs=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return hs(t,e),t.prototype.getDefaultFilterOptions=function(){return Br.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){var t=e.type,n=Do(e.dateFrom);if(t===Gr.IN_RANGE){var o=Do(e.dateTo);return To(n,!1)+"-"+To(o,!1)}return null==n?""+t:""+To(n,!1)},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){sn(this.eDateWrapper,e),sn(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(Do(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=To(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=Fr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:re(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new Sr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},fs([he("userComponentFactory")],t.prototype,"userComponentFactory",void 0),fs([gr("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),fs([gr("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(ds),ys=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ms=function(e){function t(){return e.call(this,"textFilter")||this}return ys(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getCleanValue=function(e){var n=o(e.getValue());return this.textFilterParams.trimInput?t.trimInput(n):n},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValue1.onValueChange(t),this.eValue2.onValueChange(t)},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===wr.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var t=e===wr.One,n=t?this.getCondition1Type():this.getCondition2Type(),o=t?this.eValue1:this.eValue2,r=this.getCleanValue(o);o.setValue(r,!0);var i={filterType:this.getFilterType(),type:n};return this.doesFilterHaveHiddenInput(n)||(i.filter=r),i},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){n.forEachInput((function(e){return e.setValue(null,t)})),n.resetPlaceholder()}))},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("filterOoo");this.forEachInput((function(n){n.setInputPlaceholder(t),n.setInputAriaLabel(e("ariaFilterValue","Filter Value"))}))},t.prototype.forEachInput=function(e){T([this.eValue1,this.eValue2],e)},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.setValue(e),this.eValue2.setValue(null)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===wr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class="ag-filter-filter" ref="eValue'+t+'"></ag-input-text-field>\n </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),sn(this.eCondition1Body,this.showValueFrom(this.getCondition1Type())),sn(this.eCondition2Body,this.isCondition2Enabled()&&this.showValueFrom(this.getCondition2Type()))},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),t&&t.suppressFocus||this.eValue1.getInputElement().focus()},t.prototype.isConditionUiComplete=function(e){var t=e===wr.One,n=t?this.getCondition1Type():this.getCondition2Type();return n!==Gr.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||null!=this.getCleanValue(t?this.eValue1:this.eValue2))},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,o=t.type,r=this.textFilterParams.valueGetter(e.node),i=this.formatter(r),s=this.optionsFactory.getCustomOption(o);if(s&&(null!=n||s.hideFilterInput))return s.test(n,i);if(null==r)return o===Gr.NOT_EQUAL||o===Gr.NOT_CONTAINS;var a=this.formatter(n);return this.comparator(o,i,a)},t.DEFAULT_FILTER_OPTIONS=[Gr.CONTAINS,Gr.NOT_CONTAINS,Gr.EQUALS,Gr.NOT_EQUAL,Gr.STARTS_WITH,Gr.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,n,o){switch(e){case t.CONTAINS:return n.indexOf(o)>=0;case t.NOT_CONTAINS:return n.indexOf(o)<0;case t.EQUALS:return n===o;case t.NOT_EQUAL:return n!=o;case t.STARTS_WITH:return 0===n.indexOf(o);case t.ENDS_WITH:var r=n.lastIndexOf(o);return r>=0&&r===n.length-o.length;default:return console.warn('AG Grid: Unexpected type of filter "'+e+'", it looks like the filter was configured with incorrect Filter Options'),!1}},vs([gr("eValue1")],t.prototype,"eValue1",void 0),vs([gr("eValue2")],t.prototype,"eValue2",void 0),t}(Gr),Cs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ws=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cs(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=Fr.isUseApplyButton(this.params.filterParams);var n=Fr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=re(this.syncUpWithParentFilter.bind(this),n),r=this.eFloatingFilterInput.getGui();this.addManagedListener(r,"input",o),this.addManagedListener(r,"keypress",o),this.addManagedListener(r,"keydown",o);var i=t.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0);var s=this.columnController.getDisplayNameForColumn(t.column,"header",!0),a=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(s+" "+a("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=Wo(e,Er.ENTER);if(!this.applyActive||n){var o=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(o=ms.trimInput(o),this.eFloatingFilterInput.setValue(o,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),o)}))}},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ws([he("columnController")],t.prototype,"columnController",void 0),ws([gr("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ws([ce],t.prototype,"postConstruct",null),t}(ds),bs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Os=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bs(t,e),t.prototype.getDefaultFilterOptions=function(){return ts.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==Gr.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Es),Rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rs(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return ms.DEFAULT_FILTER_OPTIONS},t}(Es),_s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ps=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(Oi||(Oi={}));var Ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:cs,agColumnHeader:Kr,agColumnGroupHeader:qr,agTextColumnFloatingFilter:Ss,agNumberColumnFloatingFilter:Os,agDateColumnFloatingFilter:gs,agAnimateShowChangeCellRenderer:Mi,agAnimateSlideCellRenderer:Vi,agGroupCellRenderer:Fi,agGroupRowRenderer:Fi,agLoadingCellRenderer:Bi,agCellEditor:Rr,agTextCellEditor:Rr,agSelectCellEditor:zi,agPopupTextCellEditor:Yi,agPopupSelectCellEditor:qi,agLargeTextCellEditor:Zi,agTextColumnFilter:ms,agNumberColumnFilter:ts,agDateColumnFilter:Br,agLoadingOverlay:os,agNoRowsOverlay:is,agTooltipComponent:as},t.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},t.jsComponents={},t.frameworkComponents={},t}return _s(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&I(this.gridOptions.components,(function(t,n){return e.registerComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&I(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},t.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=this.frameworkComponents[t];if(n)return{componentFromFramework:!0,component:n,source:Oi.REGISTERED};var o=this.jsComponents[t];if(o)return{componentFromFramework:!1,component:o,source:Oi.REGISTERED};var r=this.agGridDefaults[t];return r?{componentFromFramework:!1,component:r,source:Oi.DEFAULT}:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(X((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},Ps([he("gridOptions")],t.prototype,"gridOptions",void 0),Ps([ce],t.prototype,"init",null),t=Ps([de("userComponentRegistry")],t)}(Ke),Ds=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var n=[];return t.forEach((function(t){var o=e.DEFAULT_BY_KEY[t];o?n.push(o):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t?(t.forEach((function(t){var o=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));o=r}else o=t;n.push(o)})),n):n},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),As=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ns=function(e,t){return function(n,o){t(n,o,e)}},Is=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};function Fs(e){return!0===e||"true"===e}function xs(e,t){var n=parseInt(e,10);return mt(n)&&n>0?n:t}var Ls,Ms=function(){function e(){this.propertyEventService=new Ee,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.removeEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener),this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Ds.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&Oe.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=Is(qn.ALL_PROPERTIES,qn.FRAMEWORK_PROPERTIES);e.checkProperties(n,o,o,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Is(Un.ALL_PROPERTIES,Un.FRAMEWORK_PROPERTIES,d(Qe).map((function(e){return Yn.getCallbackForEvent(e)}))),n=Is(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=No(e,t,n);I(i,(function(e,t){console.warn("ag-grid: invalid "+o+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+o+" properties please check: "+r)},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=this.getDomDataKey(),r=e[o];i(r)&&(r={},e[o]=r),r[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return Fs(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Fs(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Fs(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return Fs(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===be.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===be.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===be.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===be.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Fs(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Fs(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Fs(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Fs(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Fs(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Fs(this.gridOptions.suppressTouch)},e.prototype.isApplyColumnDefOrder=function(){return Fs(this.gridOptions.applyColumnDefOrder)},e.prototype.isSuppressRowTransform=function(){return Fs(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return Fs(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Fs(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Fs(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Fs(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){var e=Fs(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("AG Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return Fs(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Fs(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Fs(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return Fs(this.gridOptions.groupMultiAutoColumn)||Fs(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return Fs(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Fs(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Fs(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Fs(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Fs(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Fs(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return Fs(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return Fs(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return Fs(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isPivotSuppressAutoColumn=function(){return Fs(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Fs(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Fs(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return Fs(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return Fs(this.gridOptions.suppressRowDrag)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Fs(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isEnableMultiRowDragging=function(){return Fs(this.gridOptions.enableMultiRowDragging)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||be.DOM_LAYOUT_NORMAL;return-1===[be.DOM_LAYOUT_PRINT,be.DOM_LAYOUT_AUTO_HEIGHT,be.DOM_LAYOUT_NORMAL].indexOf(e)?(X((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+be.DOM_LAYOUT_NORMAL+", "+be.DOM_LAYOUT_AUTO_HEIGHT+" and "+be.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),be.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Fs(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Fs(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Fs(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return Fs(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return Fs(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return Fs(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return Fs(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Fs(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Fs(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Fs(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return Fs(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Fs(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Fs(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Fs(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Fs(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Fs(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Fs(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Fs(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.gridOptions.getServerSideStoreParams},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.gridOptions.isApplyServerSideTransaction},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return Fs(this.gridOptions.embedFullWidthRows)||Fs(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return Fs(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isImmutableData=function(){return Fs(this.gridOptions.immutableData)},e.prototype.isEnsureDomOrder=function(){return Fs(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Fs(this.gridOptions.enableCharts)&&Oe.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Fs(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Fs(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return Fs(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return"number"==typeof(e=this.gridOptions.paginationPageSize)?e:"string"==typeof e?parseInt(e,10):void 0;var e},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||Fs(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return xs(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return Fs(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return Fs(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&Fs(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return Fs(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Fs(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Fs(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return Fs(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return Fs(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Fs(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Fs(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Fs(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Fs(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Fs(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Fs(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Fs(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Fs(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Fs(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Fs(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return Fs(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Fs(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Fs(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Fs(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Fs(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return r(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:be.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Fs(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Fs(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Fs(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Fs(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Fs(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return Fs(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isShowOpenedGroup=function(){return Fs(this.gridOptions.showOpenedGroup)},e.prototype.isEnableRangeSelection=function(){return Oe.isRegistered(t.ModuleNames.RangeSelectionModule)&&Fs(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Fs(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Fs(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(X((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return Fs(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Fs(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Fs(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!Fs(this.gridOptions.masterDetail)&&Oe.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Fs(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return r(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return Fs(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Fs(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Fs(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return Fs(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return Fs(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return Fs(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return Fs(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+it(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return Fs(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Fs(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Fs(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Fs(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.gridOptions.isServerSideGroupOpenByDefault},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.gridOptions.isGroupOpenByDefault},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextHeaderFunc=function(){return this.gridOptions.navigateToNextHeader},e.prototype.getTabToNextHeaderFunc=function(){return this.gridOptions.tabToNextHeader},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!Fs(this.gridOptions.treeData)&&Oe.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Fs(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Fs(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Fs(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Fs(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return xs(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return Fs(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return Fs(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return r(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var o=this.gridOptions,r=o[e];if(n||r!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return r(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},e.prototype.isTooltipMouseTrack=function(){return Fs(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Fs(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&r(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&r(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(r(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return r(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(X((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=be.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Yt();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Qe.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.enableOldSetFilterModel&&console.warn("AG Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),e.floatingFilter&&(console.warn("AG Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),e.defaultColDef||(e.defaultColDef={}),null==e.defaultColDef.floatingFilter&&(e.defaultColDef.floatingFilter=!0)),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected.");var t=function(t,n,o){null!=e[t]&&(console.warn("ag-grid: since version "+o+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&(console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.detailRowAutoHeight=!0),e.suppressColumnStateEvents&&(console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.detailRowAutoHeight=!0),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus`."),e.stopEditingWhenCellsLoseFocus=!0)},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(i(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),i(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this.gridOptions.localeText;return function(t,n){return e&&e[t]?e[t]:n}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=Yn.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var n={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},o=this.gridOptions.getRowHeight(n);if(this.isNumeric(o))return 0===o&&X((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,o),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var i=this.getDefaultRowHeight(),s=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i,a=r(s)?Math.min(i,s):i;if(this.columnController.isAutoRowHeightActive()){if(t)return{height:s,estimated:!0};var l=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(l,a),estimated:!1}}return{height:s,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresentFunc",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_SORT_COMPARATOR="defaultGroupSortComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_PROCESS_CHART_OPTIONS="processChartOptions",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",As([he("gridOptions")],e.prototype,"gridOptions",void 0),As([he("columnController")],e.prototype,"columnController",void 0),As([he("eventService")],e.prototype,"eventService",void 0),As([he("environment")],e.prototype,"environment",void 0),As([he("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),As([Ns(0,ye("gridApi")),Ns(1,ye("columnApi"))],e.prototype,"agWire",null),As([pe],e.prototype,"destroy",null),As([ce],e.prototype,"init",null),e=n=As([de("gridOptionsWrapper")],e)}(),Gs=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var o=0;o<e.childrenAfterGroup.length;o++){var r=e.childrenAfterGroup[o];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[o],t,n):n&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var o={rowNode:t,children:null};this.mapToItems[t.id]=o,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var o=e;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[o.id][e.getId()]=!0})),o=o.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,o=0;o<t;o++){var r=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(r),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),ks=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hs=function(e,t){return function(n,o){t(n,o,e)}},Ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ks(t,e),t.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,Qe.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Qe.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return I(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return I(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;I(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===be.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Gs(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return I(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];o+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),I(n,(function(e,t){t.calculateSelectedFromChildren()})),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){r(t)&&e.id!==t.id&&t&&(r(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},t.prototype.syncInNewRowNode=function(e){r(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===be.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];i.isSelected()?t.push(i):i.group&&i.children&&e(i.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")}else console.warn("getBestCostNodeSelection is only available when using normal row model")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return I(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===be.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else I(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Qe.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==be.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===be.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Qe.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},Vs([he("rowModel")],t.prototype,"rowModel",void 0),Vs([he("columnApi")],t.prototype,"columnApi",void 0),Vs([he("gridApi")],t.prototype,"gridApi",void 0),Vs([Hs(0,ye("loggerFactory"))],t.prototype,"setBeans",null),Vs([ce],t.prototype,"init",null),t=Vs([de("selectionController")],t)}(Ke),Bs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},js=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnController.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getViewportColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n){void 0===n&&(n=!0),this.columnController.setColumnWidths([{key:e,newWidth:t}],!1,n)},e.prototype.setColumnWidths=function(e,t){void 0===t&&(t=!0),this.columnController.setColumnWidths(e,!1,t)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnController.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnController.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnController.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Jo.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.columnGroupOpened=function(e,t){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return this.columnController.applyColumnState({state:e,applyOrder:!0},"api")},Bs([he("columnController")],e.prototype,"columnController",void 0),Bs([pe],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Bs([de("columnApi")],e)}(),Us=function(){return Us=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Us.apply(this,arguments)},zs=function(){function e(){}return e.createChildScopeOrNull=function(e,t,n){if(!n.isAngularCompileRows())return null;var o=t.$new();o.data=Us({},e.data),o.rowNode=e,o.context=n.getContext();return{scope:o,scopeDestroyFunc:function(){o.$destroy(),o.data=null,o.rowNode=null,o.context=null}}},e}(),Ks=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(Ls||(Ls={}));var Ys,$s,qs=ct([[Ls.FullWidthLoading,"agLoadingCellRenderer"],[Ls.FullWidthGroup,"agGroupRowRenderer"],[Ls.FullWidthDetail,"agDetailCellRenderer"]]),Xs=ct([[Ls.FullWidth,"fullWidthCellRenderer"],[Ls.FullWidthLoading,"loadingCellRenderer"],[Ls.FullWidthGroup,"groupRowRenderer"],[Ls.FullWidthDetail,"detailCellRenderer"]]),Qs=0,Zs=function(e){function t(t,n,o,r,i,s){var a=e.call(this)||this;return a.instanceId=Qs++,a.allRowComps=[],a.active=!0,a.centerCols=[],a.leftCols=[],a.rightCols=[],a.lastMouseDownOnDragger=!1,a.updateColumnListsPending=!1,a.parentScope=t,a.beans=o,a.rowNode=n,a.rowIsEven=a.rowNode.rowIndex%2==0,a.paginationPage=a.beans.paginationProxy.getCurrentPage(),a.useAnimationFrameForCreate=i,a.printLayout=s,a.setAnimateFlags(r),a.rowFocused=a.beans.focusController.isRowFocused(a.rowNode.rowIndex,a.rowNode.rowPinned),a.setupAngular1Scope(),a.rowLevel=a.beans.rowCssClassCalculator.calculateRowLevel(a.rowNode),a.setRowType(),a.updateColumnLists(!a.useAnimationFrameForCreate),a.addListeners(),a.slideRowIn&&ne(a.onTopChanged.bind(a)),a.fadeRowIn&&ne((function(){a.allRowComps.forEach((function(e){return tn(e.getGui(),"ag-opacity-zero")}))})),a}return Ks(t,e),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setLeftRowComp=function(e){this.leftRowComp&&console.error("AG Grid - should not set leftRowComp twice"),this.leftRowComp=e,this.allRowComps.push(e)},t.prototype.setRightRowComp=function(e){this.rightRowComp&&console.error("AG Grid - should not set rightRowComp twice"),this.rightRowComp=e,this.allRowComps.push(e)},t.prototype.setCenterRowComp=function(e){this.centerRowComp&&console.error("AG Grid - should not set centerRowComp twice"),this.centerRowComp=e,this.allRowComps.push(e)},t.prototype.setFullWidthRowComp=function(e){this.fullWidthRowComp&&console.error("AG Grid - should not set fullWidthRowComp twice"),this.fullWidthRowComp=e,this.allRowComps.push(e)},t.prototype.getColsForRowComp=function(e){switch(e){case be.PINNED_RIGHT:return this.rightCols;case be.PINNED_LEFT:return this.leftCols;default:return this.centerCols}},t.prototype.getScope=function(){return this.scope},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.setupAngular1Scope=function(){var e=zs.createChildScopeOrNull(this.rowNode,this.parentScope,this.beans.gridOptionsWrapper);e&&(this.scope=e.scope,this.addDestroyFunc(e.scopeDestroyFunc))},t.prototype.getCellForCol=function(e){var t=this.getRenderedCellForColumn(e);return t?t.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerRowComp?this.centerRowComp.getGui():void 0,ePinnedLeftRow:this.leftRowComp?this.leftRowComp.getGui():void 0,ePinnedRightRow:this.rightRowComp?this.rightRowComp.getGui():void 0,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},t.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnController.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowType=e?Ls.FullWidthLoading:n?Ls.FullWidthDetail:t?Ls.FullWidth:r?Ls.FullWidthGroup:Ls.Normal},t.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.taskQueue.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},t.prototype.updateColumnListsImpl=function(){this.updateColumnListsPending=!1,this.printLayout?(this.centerCols=this.beans.columnController.getAllDisplayedColumns(),this.leftCols=[],this.rightCols=[]):(this.centerCols=this.beans.columnController.getViewportCenterColumnsForRow(this.rowNode),this.leftCols=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),this.rightCols=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.allRowComps.forEach((function(e){return e.onColumnChanged()}))},t.prototype.setAnimateFlags=function(e){if(e){var t=r(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Ls.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var o=t.getFullWidthRowComp();if(!o)return!0;if(!o.refresh)return!1;var r=e.createFullWidthParams(t.getGui(),n);return o.refresh(r)},n=t(this.fullWidthRowComp,null),o=t(this.centerRowComp,null),r=t(this.leftRowComp,be.PINNED_LEFT),i=t(this.rightRowComp,be.PINNED_RIGHT);return n&&o&&r&&i},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Qr.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Qr.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Qe.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Qe.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Qe.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Qe.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Qe.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Qe.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Qe.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Qr.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Qr.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowComps.forEach((function(t){var n=t.getGui();tn(n,"ag-row-highlight-above"),tn(n,"ag-row-highlight-below"),e&&en(n,"ag-row-highlight-"+e)}))},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowComps.forEach((function(t){return nn(t.getGui(),"ag-row-dragging",e)}))},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowComps.forEach((function(n){var o=n.getGui();nn(o,"ag-row-group",e),nn(o,"ag-row-group-expanded",e&&t),nn(o,"ag-row-group-contracted",e&&!t),ho(o,e&&t)}))},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0)},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:this.rowNode.rowPinned,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var t=p(this.allRowComps,(function(t){return t.getGui().contains(e.target)}));if((t?t.getGui():null)===e.target){var n=this.rowNode,o=this.beans.focusController.getFocusedCell(),r={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:o&&o.column};this.beans.rowRenderer.navigateToNextCell(e,e.keyCode,r,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!xe(e)){var t=p(this.allRowComps,(function(t){return t.getGui().contains(e.target)})),n=t?t.getGui():null,o=n===e.target,r=null;o||(r=this.beans.focusController.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&o||!r)&&this.beans.rowRenderer.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t=this.rowNode,n=this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned,o=this.fullWidthRowComp?this.fullWidthRowComp.getGui():this.centerRowComp.getGui();nn(o,"ag-full-width-focus",n),n&&o.focus({preventScroll:!0})},t.prototype.refreshCell=function(e){this.allRowComps.forEach((function(t){return t.destroyCells([e])})),this.updateColumnLists()},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"mousedown":this.onRowMouseDown(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},t.prototype.onRowDblClick=function(e){if(!xe(e)){var t=this.createRowEventWithSource(Qe.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=un(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnController;this.beans.focusController.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},t.prototype.onRowClick=function(e){if(!(xe(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Qe.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!o,clearSelection:!o,rangeSelect:o});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(o),n()}},t.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o){return n.addFullWidthRowDragging(e,t,o)}}},t.prototype.addFullWidthRowDragging=function(e,t,n){if(void 0===n&&(n=""),this.isFullWidth()){var o=new Pi((function(){return n}),this.rowNode,void 0,e,t);this.createManagedBean(o,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowComps.forEach((function(e){var o=e.getGui();en(o,t),tn(o,n)}))}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowComps.forEach((function(t){return nn(t.getGui(),"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowComps.forEach((function(e){return nn(e.getGui(),"ag-row-last",t)})))},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(Qe.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowComps.forEach((function(t){return nn(t.getGui(),"ag-row-editing",e)}));var t=e?this.createRowEvent(Qe.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Qe.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.forEachCellComp((function(o){var r=o===n;r?o.startEditingIfEnabled(e,t,r):o.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){this.allRowComps.forEach((function(t){return t.forEachCellComp(e)}))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode,this.scope);t&&t.length&&t.forEach((function(t){e.allRowComps.forEach((function(e){return en(e.getGui(),t)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,this.scope,(function(t){e.allRowComps.forEach((function(e){return en(e.getGui(),t)}))}),(function(t){e.allRowComps.forEach((function(e){return tn(e.getGui(),t)}))}))},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowComps.forEach((function(t){return Pn(t.getGui(),e)}))},t.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+n+"px; ":"transform: translateY("+n+"px);"},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.getInitialRowClasses=function(e){var t={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowIsEven,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),scope:this.scope,pinned:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(t)},t.prototype.preProcessStylesFromGridOptions=function(){return Jn(this.processStylesFromGridOptions())},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()});return W({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.onRowSelected=function(){var e=this,t=this.rowNode.isSelected();this.allRowComps.forEach((function(n){var o=n.getGui();So(o,t),nn(o,"ag-row-selected",t),e.refreshAriaLabel(o,t)}))},t.prototype.refreshAriaLabel=function(e,t){t&&this.beans.gridOptionsWrapper.isSuppressRowDeselection()?e.removeAttribute("aria-label"):lo(e,this.beans.gridOptionsWrapper.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row."))},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Qr.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||en(e,"ag-row-hover")})),this.addManagedListener(this.rowNode,Qr.EVENT_MOUSE_LEAVE,(function(){tn(e,"ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.controllersService.getGridBodyController().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),o)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(r(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.allRowComps.forEach((function(t){return t.getGui().style.height=e}))}},t.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Qe.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Qe.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},t.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Qe.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Qe.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},t.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Qe.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowComps.forEach((function(e){en(e.getGui(),"ag-opacity-zero")}))},t.prototype.destroySecondPass=function(){this.allRowComps.forEach((function(e){return e.destroy()})),this.allRowComps.length=0},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.allRowComps.forEach((function(t){var n=t.getGui();nn(n,"ag-row-focus",e),nn(n,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&r(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px",o=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowComps.forEach((function(e){var t=e.getGui();o?t.style.top=n:t.style.transform="translateY("+n+")"}))}},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){var t=p(this.allRowComps.map((function(t){return t.getCellComp(e.getColId())})),(function(e){return!!e}));return t||((t=p(this.allRowComps.map((function(t){return t.getCellCompSpanned(e)})),(function(e){return!!e})))||null)},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},t.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==n,r=this.beans.headerNavigationService.getHeaderRowCount();o&&(this.rowIsEven=n),this.allRowComps.forEach((function(i){var s=i.getGui();s.setAttribute("row-index",t),Co(s,r+e.rowNode.rowIndex+1),o&&(nn(s,"ag-row-even",n),nn(s,"ag-row-odd",!n))}))},t.prototype.getPinnedLeftRowElement=function(){return this.leftRowComp?this.leftRowComp.getGui():void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightRowComp?this.rightRowComp.getGui():void 0},t.prototype.getBodyRowElement=function(){return this.centerRowComp?this.centerRowComp.getGui():void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthRowComp?this.fullWidthRowComp.getGui():void 0},t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t}(Ke);(Ys=t.SelectionHandleType||(t.SelectionHandleType={}))[Ys.FILL=0]="FILL",Ys[Ys.RANGE=1]="RANGE",($s=t.CellRangeType||(t.CellRangeType={}))[$s.VALUE=0]="VALUE",$s[$s.DIMENSION=1]="DIMENSION";var Js,ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ta=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.getGuiCalledOnChild=!1,n.cellEditor=t,n}return ea(t,e),t.prototype.onKeyDown=function(e){jo(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(n){var o=this;this.params=n,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){return o.destroyBean(o.cellEditor)})),this.addManagedListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){return!!this.cellEditor.isCancelBeforeStart&&this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){return!!this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()},t.prototype.getPopupPosition=function(){if(this.cellEditor.getPopupPosition)return this.cellEditor.getPopupPosition()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",t}(fr),na=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ra=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=o,i.eCell=r,i}return na(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Vo("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,o=Vt();o||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);o?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},oa([ce],t.prototype,"postConstruct",null),t}(dr),ia=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sa=function(){return sa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sa.apply(this,arguments)},aa="ag-cell-value",la="ag-cell-range-top",ua="ag-cell-range-right",ca="ag-cell-range-bottom",pa="ag-cell-range-left",da="ag-cell-focus",ha="ag-cell-first-right-pinned",fa="ag-cell-last-left-pinned",ga="ag-cell-not-inline-editing",ya="ag-cell-range-selected",va="ag-column-hover",ma="ag-cell-wrap-text",Ca="ag-cell-range-chart",wa="ag-cell-range-single-cell",Ea="ag-cell-range-handle",ba=function(e){function n(t,n,o,r,i,s,a,l,u){var c=e.call(this)||this;if(c.hasChartRange=!1,c.editingCell=!1,c.suppressRefreshCell=!1,c.tooltipFeatureEnabled=!1,c.scope=null,c.cellEditorVersion=0,c.cellRendererVersion=0,c.scope=t,c.beans=n,c.column=o,c.rowNode=r,c.rowComp=i,c.autoHeightCell=s,c.printLayout=a,c.eRow=l,c.createGridCellVo(),c.rangeSelectionEnabled=c.beans.rangeController&&n.gridOptionsWrapper.isEnableRangeSelection(),c.cellFocused=c.beans.focusController.isCellFocused(c.cellPosition),c.firstRightPinned=c.column.isFirstRightPinned(),c.lastLeftPinned=c.column.isLastLeftPinned(),c.rangeSelectionEnabled&&c.beans.rangeController){var p=c.beans.rangeController;c.rangeCount=p.getCellRangeCount(c.cellPosition),c.hasChartRange=c.getHasChartRange()}return c.getValueAndFormat(),c.setUsingWrapper(),c.chooseCellRenderer(),c.setupColSpan(),c.rowSpan=c.column.getRowSpan(c.rowNode),c.setTemplate(c.getCreateTemplate()),c.afterAttached(),u&&c.startEditingIfEnabled(),c}return ia(n,e),n.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":' unselectable="on"',t=[],n=this.column,o=this.getCellWidth(),i=this.modifyLeftForPrintLayout(this.getCellLeft()),s=this.getInitialValueToRender(),a=B(this.column,"colDef.template",null)?s:st(s);this.tooltip=this.getToolTip();var l=st(this.tooltip),u=st(n.getId()),c=this.preProcessStylesFromColDef(),p=this.getInitialCssClasses(),d=this.getStylesForRowSpanning(),h=st(this.beans.columnController.getAriaColumnIndex(this.column).toString());return t.push("<div"),t.push(' tabindex="-1"'),t.push(""+e),t.push(' role="gridcell"'),t.push(' aria-colindex="'+h+'"'),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+u+'"'),t.push(' class="'+st(p.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&r(l)&&t.push(' title="'+l+'"'),this.rangeSelectionEnabled&&t.push(' aria-selected="'+(this.rangeCount?"true":"false")+'"'),t.push(' style="width: '+Number(o)+"px; left: "+Number(i)+"px; "+st(c)+" "+st(d)+'">'),this.usingWrapper?t.push(this.getCellWrapperString(a)):null!=a&&t.push(a),t.push("</div>"),t.join("")},n.prototype.getCellWrapperString=function(e){void 0===e&&(e="");var t=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":' unselectable="on"';return'<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">\n <span ref="eCellValue" role="presentation" class="'+aa+'"'+t+">\n "+(null!=e?e:"")+"\n </span>\n </div>"},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.prototype.afterAttached=function(){this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),r(this.tooltip)&&this.createTooltipFeatureIfNeeded()},n.prototype.createTooltipFeatureIfNeeded=function(){this.beans.gridOptionsWrapper.isEnableBrowserTooltips()||this.tooltipFeatureEnabled||(this.createManagedBean(new lr(this),this.beans.context),this.tooltipFeatureEnabled=!0)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);this.addOrRemoveCssClass(va,e)},n.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?y(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},n.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){i(this.getComponentHolder().colSpan)||(this.addManagedListener(this.beans.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnController.getDisplayedColAfter(n))&&!i(n))&&o===n.getPinned();r++);return t},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();v(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},n.prototype.refreshAriaIndex=function(){var e=this.beans.columnController.getAriaColumnIndex(this.column);Eo(this.getGui(),e)},n.prototype.getInitialCssClasses=function(){var e=["ag-cell",ga];return this.autoHeightCell||e.push("ag-cell-auto-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push(da),this.firstRightPinned&&e.push(ha),this.lastLeftPinned&&e.push(fa),this.beans.columnHoverService.isHovered(this.column)&&e.push(va),R(e,this.preProcessClassesFromColDef()),R(e,this.preProcessCellClassRules()),R(e,this.getInitialRangeClasses()),this.usingWrapper||e.push(aa),this.wrapText=1==this.column.getColDef().wrapText,this.wrapText&&e.push(ma),e},n.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},n.prototype.getRenderedRow=function(){return this.rowComp},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.onNewColumnsLoaded=function(){this.postProcessWrapText(),this.postProcessCellClassRules()},n.prototype.postProcessWrapText=function(){var e=1==this.column.getColDef().wrapText;e!==this.wrapText&&(this.wrapText=e,this.addOrRemoveCssClass(ma,this.wrapText))},n.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),n=e&&e.newData,o=e&&e.suppressFlash||t.suppressCellFlash,r=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||r||n,s=this.value;this.value=this.getValue();var a=!this.valuesAreEqual(s,this.value);if(i||a){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!n&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var l=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!l&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},n.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},n.prototype.animateCell=function(e,t,n){var o=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.getGui(),l=this.beans.gridOptionsWrapper;t||(t=l.getCellFlashDelay()),r(n)||(n=l.getCellFadeDelay()),this.addCssClass(i),this.removeCssClass(s),window.setTimeout((function(){o.removeCssClass(i),o.addCssClass(s),a.style.transition="background-color "+n+"ms",window.setTimeout((function(){o.removeCssClass(s),a.style.removeProperty("transition")}),n)}),t)},n.prototype.replaceContentsAfterRefresh=function(){this.setUsingWrapper(),mn(this.eCellValue),this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},n.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=sa({},this.rowNode.data),this.angular1Compile())},n.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){return t.remove()}))}}},n.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&Pn(this.getGui(),e)},n.prototype.preProcessStylesFromColDef=function(){return Jn(this.processStylesFromColDef())},n.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var n={column:this.column,value:this.value,colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;return t}},n.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return e.addCssClass(t)}))},n.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},n.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder(),n={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processStaticCellClasses(t,n,e)},n.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eCellValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eCellValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var n=this.getValueToUse();null!=n&&(this.eCellValue.innerHTML=st(n)||"")}},n.prototype.attemptCellRendererRefresh=function(){if(i(this.cellRenderer)||!this.cellRenderer||i(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),n=this.cellRenderer.refresh(t);return!0===n||void 0===n},n.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){this.createTooltipFeatureIfNeeded();var t=r(e);t&&this.tooltip===e.toString()||(this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&(t?this.eCellValue.setAttribute("title",this.tooltip):this.eCellValue.removeAttribute("title")))}},n.prototype.valuesAreEqual=function(e,t){var n=this.getComponentHolder(),o=n?n.equals:null;return o?o(e,t):e===t},n.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&r(t))return j(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var n=e.tooltipValueGetter;return n?n(sa(sa({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},this.getTooltipParams()),{value:this.value})):null},n.prototype.getTooltipParams=function(){return{location:"cell",colDef:this.getComponentHolder(),column:this.getColumn(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.getTooltipText(),valueFormatted:this.valueFormatted}},n.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?st(this.tooltip):this.tooltip},n.prototype.processCellClassRules=function(e,t){var n=this.getComponentHolder(),o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:n,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(n.cellClassRules,o,e,t)},n.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){return e.addCssClass(t)}),(function(t){return e.removeCssClass(t)}))},n.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){return e.push(t)}),(function(e){})),e},n.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.checkboxSelection,n="function"==typeof e.rowDrag,o="function"==typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=n||!0===e.rowDrag,this.includeDndSourceComponent=o||!0===e.dndSource;var r=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=r||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},n.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var t=this.createCellRendererParams();this.rowNode.rowPinned&&this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",t)?(this.cellRendererType=n.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",t)?(this.cellRendererType=n.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},n.prototype.createCellRendererInstance=function(e){var t=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var o=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(o||r||this.autoHeightCell)&&(e=!1);var i=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===n.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){t.createCellRendererFunc=null;var e=t.beans.userComponentFactory.newCellRenderer(t.getComponentHolder(),i,!a);e&&e.then(s)},e?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},n.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),i(this.cellRendererGui)||this.editingCell||this.eCellValue.appendChild(this.cellRendererGui)):this.beans.context.destroyBean(t)},n.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eCellValue,registerRowDragger:function(t,n){return e.addRowDragging(t,n)},addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,n){console.warn("AG Grid: since AG Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,n)}}},n.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},n.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},n.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},n.prototype.onMouseEvent=function(e,t){if(!xe(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},n.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,Qe.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},n.prototype.createEvent=function(e,t){var n={type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex};return this.scope&&(n.$scope=this.scope),n},n.prototype.onMouseOut=function(e){var t=this.createEvent(e,Qe.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(e){var t=this.createEvent(e,Qe.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},n.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,Qe.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.startEditingIfEnabled=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var o=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,n);this.createCellEditor(r).then(o),i(this.cellEditor)&&n&&this.focusCell(!0)}},n.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).then((function(n){var o=n;if(!(o.isPopup&&o.isPopup()))return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=new ta(o);return t.beans.context.createBean(r),r.init(e),r}))},n.prototype.afterCellEditorCreated=function(e,t){if(e!==this.cellEditorVersion||!this.editingCell)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void(this.editingCell=!1);if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("AG Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),this.beans.context.destroyBean(t),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var n=this.createEvent(null,Qe.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(n)}},n.prototype.addInCellEditor=function(){var e=this.getGui();e.contains(document.activeElement)&&e.focus(),this.clearCellElement(),this.cellEditor&&e.appendChild(this.cellEditor.getGui()),this.angular1Compile()},n.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor&&this.cellEditor.getGui();if(t){var n=this.beans.popupService,o=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),r=this.cellEditor&&this.cellEditor.getPopupPosition?this.cellEditor.getPopupPosition():"over",i={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0},s="under"===r?n.positionPopupUnderComponent.bind(n,i):n.positionPopupOverComponent.bind(n,i),a=n.addPopup({modal:o,eChild:t,closeOnEsc:!0,closedCallback:function(){e.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:s});a&&(this.hideEditorPopup=a.hideFunc),this.angular1Compile()}},n.prototype.onPopupEditorClosed=function(){this.editingCell&&this.stopRowOrCellEdit()},n.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;this.addOrRemoveCssClass("ag-cell-inline-editing",e),this.addOrRemoveCssClass(ga,!e),this.addOrRemoveCssClass("ag-cell-popup-editing",t),nn(this.getGui().parentNode,"ag-row-inline-editing",e),nn(this.getGui().parentNode,"ag-row-not-inline-editing",!e)}},n.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},n.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},n.prototype.parseValue=function(e){var t=this.getComponentHolder(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return r(o)?this.beans.expressionService.evaluate(o,n):e},n.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},n.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},n.prototype.isEditing=function(){return this.editingCell},n.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case Er.ENTER:this.onEnterKeyDown(e);break;case Er.F2:this.onF2KeyDown();break;case Er.ESCAPE:this.onEscapeKeyDown();break;case Er.TAB:this.onTabKeyDown(e);break;case Er.BACKSPACE:case Er.DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case Er.DOWN:case Er.UP:case Er.RIGHT:case Er.LEFT:this.onNavigationKeyPressed(e,t)}},n.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},n.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},n.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)}},n.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},n.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},n.prototype.onEnterKeyDown=function(e){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,Er.DOWN,this.cellPosition,!1):(this.startRowOrCellEdit(Er.ENTER),this.editingCell&&e.preventDefault())},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,Er.DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(Er.F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(e){if(!(ke(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Bo(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},n.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.editingCell&&t.isRowSelection()){var n=this.rowNode.isSelected(),o=!n;if(o||!t.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:r});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r})}}e.preventDefault()},n.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeController;if(!this.isRightClickInExistingRange(e)){if(!o||a&&!a.getCellRanges().length){var l=(Vt()||Ht())&&!this.editingCell&&!rn(r);this.focusCell(l)}else a&&e.preventDefault();if(!this.containsWidget(r)){if(a){var u=this.cellPosition;if(o)a.extendLatestRangeToCell(u);else{var c=t||n;a.setRangeToCell(u,c)}}s.dispatchEvent(this.createEvent(e,Qe.EVENT_CELL_MOUSE_DOWN))}}},n.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeController;if(t&&(t.isCellInAnyRange(this.getCellPosition())&&2===e.button))return!0;return!1},n.prototype.containsWidget=function(e){return un(e,"ag-selection-checkbox",3)},n.prototype.isDoubleClickOnIPad=function(){if(!Ut()||Me("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},n.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.createEvent(e,Qe.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.getComponentHolder();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},n.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.getParentRow=function(){return this.eRow},n.prototype.setParentRow=function(e){this.eRow=e},n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.detach=function(){this.eRow.removeChild(this.getGui())},n.prototype.destroy=function(){this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),this.beans.context.destroyBean(this.selectionHandle),e.prototype.destroy.call(this)},n.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px",this.refreshAriaIndex()},n.prototype.modifyLeftForPrintLayout=function(e){if(!this.printLayout||this.column.getPinned()===be.PINNED_LEFT)return e;var t=this.beans.columnController.getDisplayedColumnsLeftWidth();return this.column.getPinned()===be.PINNED_RIGHT?t+this.beans.columnController.getBodyContainerWidth()+(e||0):t+(e||0)},n.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},n.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellPosition.column,u=this.beans,c=u.rangeController,p=u.columnController;o?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellPosition,e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),y=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(y,this.cellPosition)&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},n.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;e.push(ya),this.hasChartRange&&e.push(Ca);var t=Math.min(this.rangeCount,4);if(e.push(ya+"-"+t),this.isSingleCell()&&e.push(wa),this.rangeCount>0){var n=this.getRangeBorders();n.top&&e.push(la),n.right&&e.push(ua),n.bottom&&e.push(ca),n.left&&e.push(pa)}return this.selectionHandle&&e.push(Ea),e},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.cellPosition,n=this.rangeCount,o=e.getCellRangeCount(t),r=this.getGui();n!==o&&(this.addOrRemoveCssClass(ya,0!==o),this.addOrRemoveCssClass(ya+"-1",1===o),this.addOrRemoveCssClass(ya+"-2",2===o),this.addOrRemoveCssClass(ya+"-3",3===o),this.addOrRemoveCssClass(ya+"-4",o>=4),this.rangeCount=o),So(r,this.rangeCount>0);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,this.addOrRemoveCssClass(Ca,this.hasChartRange)),this.updateRangeBorders(),this.addOrRemoveCssClass(wa,this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var e=this.beans.rangeController;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return O([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},n.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeController,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=y(r),a=this.getCellPosition(),l=1===i&&(n.isEnableFillHandle()||n.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var u=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);this.addOrRemoveCssClass("ag-cell-range-chart-category",u),l=s.type===t.CellRangeType.VALUE}return l&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},n.prototype.addSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=y(e.rangeController.getCellRanges()).type,r=n.isEnableFillHandle()&&i(o)?t.SelectionHandleType.FILL:t.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.addOrRemoveCssClass(Ea,!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left;this.addOrRemoveCssClass(la,n),this.addOrRemoveCssClass(ua,o),this.addOrRemoveCssClass(ca,r),this.addOrRemoveCssClass(pa,i)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,this.addOrRemoveCssClass(ha,e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.addOrRemoveCssClass(fa,e))},n.prototype.refreshShouldDestroy=function(){var e=this.usingWrapper,t=this.includeRowDraggingComponent,n=this.includeDndSourceComponent,o=this.includeSelectionComponent;return this.setUsingWrapper(),e!==this.usingWrapper||t!==this.includeRowDraggingComponent||n!==this.includeDndSourceComponent||o!==this.includeSelectionComponent},n.prototype.populateTemplate=function(){if(this.usingWrapper){this.eCellValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.eCellValue.id="cell-"+this.getCompId();var e="";this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&(e+=this.addSelectionCheckbox().getCheckboxId()),co(this.getGui(),(e+" "+this.eCellValue.id).trim())}else this.eCellValue=this.getGui(),this.eCellWrapper=this.eCellValue},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(e,t){var n=this,o=this.beans.gridOptionsWrapper.isPagination(),r=this.beans.gridOptionsWrapper.isRowDragManaged(),i=this.beans.gridOptionsWrapper.isRowModelDefault();if(r){if(!i)return void X((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(o)return void X((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}this.rowDraggingComp?e&&this.rowDraggingComp.setDragElement(e,t):(this.rowDraggingComp=new Pi((function(){return n.value}),this.rowNode,this.column,e,t),this.createManagedBean(this.rowDraggingComp,this.beans.context)),e||this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)},n.prototype.addDndSource=function(){var e=new ra(this.rowNode,this.column,this.beans,this.getGui());this.createManagedBean(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eCellValue)},n.prototype.addSelectionCheckbox=function(){var e=this,t=new ei;this.beans.context.createBean(t);var n=this.getComponentHolder().checkboxSelection;return"function"!=typeof n&&(n=void 0),t.init({rowNode:this.rowNode,column:this.column}),this.addDestroyFunc((function(){return e.beans.context.destroyBean(t)})),this.eCellWrapper.insertBefore(t.getGui(),this.eCellValue),t},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,null)}))},n.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},n.prototype.onCellFocused=function(e){var t=this.beans.focusController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.addOrRemoveCssClass(da,t),this.cellFocused=t);if(t&&e&&e.forceBrowserFocus){var n=this.getFocusableElement();n.focus(),document.activeElement&&document.activeElement!==document.body||n.focus()}var o=this.beans.gridOptionsWrapper.isFullRowEdit();t||o||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,n=this.getValue(),o=!1;if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0);if(this.editingCell=!1,this.beans.context.destroyBean(this.cellEditor),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else{this.clearCellElement();var r=this.getGui();if(this.usingWrapper)r.appendChild(this.eCellWrapper);else if(this.cellRenderer){var i=this.cellRendererGui;i&&r.appendChild(i)}}this.setInlineEditingClass(),this.refreshHandle(),o&&t!==n&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var s=sa(sa({},this.createEvent(null,Qe.EVENT_CELL_EDITING_STOPPED)),{oldValue:n,newValue:t});this.beans.eventService.dispatchEvent(s)}else this.editingCell=!1},n.prototype.clearCellElement=function(){var e=this.getGui();e.contains(document.activeElement)&&!Vt()&&e.focus({preventScroll:!0}),mn(e)},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}(dr),Oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ra=function(){return Ra=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ra.apply(this,arguments)},Sa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_a=function(e,t){return function(n,o){t(n,o,e)}},Pa=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowConsByRowIndex={},t.zombieRowCons={},t.allRowCons=[],t.topRowCons=[],t.bottomRowCons=[],t.refreshInProgress=!1,t}return Oa(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(){e.gridBodyCon=e.controllersService.getGridBodyController(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,Qe.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.getRowCons=function(){return this.allRowCons},t.prototype.updateAllRowCons=function(){this.allRowCons=Pa(V(this.rowConsByRowIndex),V(this.zombieRowCons))},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Qe.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)})),e.forEachRowComp((function(e,n){n.isFullWidth()&&n.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,Qe.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Qe.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Qe.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.forEachCellComp((function(e){e.getColumn()===t&&n(e)}))},o=function(){n((function(e){return e.onLeftChanged()}))},r=function(){n((function(e){return e.onWidthChanged()}))},i=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(Se.EVENT_LEFT_CHANGED,o),t.addEventListener(Se.EVENT_WIDTH_CHANGED,r),t.addEventListener(Se.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(Se.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(Se.EVENT_LEFT_CHANGED,o),t.removeEventListener(Se.EVENT_WIDTH_CHANGED,r),t.removeEventListener(Se.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(Se.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowConsByRowIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];function n(n,o){var r=o.getCellForCol(e);r&&t.push(r)}return I(this.rowConsByRowIndex,n),I(this.bottomRowCons,n),I(this.topRowCons,n),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCons,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCons,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCons=function(){return this.topRowCons},t.prototype.getBottomRowCons=function(){return this.bottomRowCons},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var o=new Zs(n.$scope,t,n.beans,!1,!1,n.printLayout);e.push(o)}))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||I(this.rowConsByRowIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusController.getFocusCellToUseAfterRefresh();if(i(t))return null;var n=document.activeElement;return i(this.gridOptionsWrapper.getDomData(n,ba.DOM_DATA_KEY_CELL_COMP))?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==r)return!1;var e=!1;return I(r,(function(n,o){var r=o.getRowNode(),i=r.rowIndex==t.rowIndex,s=r.rowPinned==t.rowPinned;i&&s&&(e=!0)})),e}();this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCon.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.refreshView(), call setTimeout(function() { api.refreshView(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,n){n.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.forEachCellComp((function(e){return e.onNewColumnsLoaded()}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,n){return n.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){I(this.rowConsByRowIndex,e),I(this.topRowCons,e),I(this.bottomRowCons,e)},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowConsByRowIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){if(e.refreshShouldDestroy()){var n=e.getRenderedRow();n&&n.refreshCell(e)}else e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellRenderer();n&&t.push(n)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,n){var o,i,s=this;r(e)&&(o={top:{},bottom:{},normal:{}},e.forEach((function(e){var t=e.id;e.rowPinned===be.PINNED_TOP?o.top[t]=!0:e.rowPinned===be.PINNED_BOTTOM?o.bottom[t]=!0:o.normal[t]=!0}))),r(t)&&(i={},t.forEach((function(e){var t=s.columnController.getGridColumn(e);r(t)&&(i[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode(),s=t.id,a=t.rowPinned;if(r(o))if(a===be.PINNED_BOTTOM){if(!o.bottom[s])return}else if(a===be.PINNED_TOP){if(!o.top[s])return}else if(!o.normal[s])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();i&&!i[t]||n&&n(e)}))};I(this.rowConsByRowIndex,(function(e,t){a(t)})),this.topRowCons&&this.topRowCons.forEach(a),this.bottomRowCons&&this.bottomRowCons.forEach(a)},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowConsByRowIndex);this.removeRowComps(e)},t.prototype.recycleRows=function(){var e=[];I(this.rowConsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowComps(e);var t={};return I(this.rowConsByRowIndex,(function(e,n){var o=n.getRowNode();t[o.id]=n})),this.rowConsByRowIndex={},t},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){var n=t.rowConsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowConsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowConsByRowIndex).filter((function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=vt(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=o.getRowNode().rowIndex;null!=r&&(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return I(this.rowConsByRowIndex,o),I(e,o),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){r(o.createOrUpdateRowCon(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask((function(){o.destroyRowCons(e,t),o.updateAllRowCons(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCons(e,t));this.updateAllRowCons(),this.checkAngularCompile(),this.gridBodyCon.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:Qe.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];I(this.rowConsByRowIndex,(function(t,n){if(n.isFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,o=n?{}:void 0;n&&o&&e.forEach((function(e){return o[e.id]=!0})),I(this.rowConsByRowIndex,(function(e,r){if(r.isFullWidth()){var i=r.getRowNode();if(n&&o){var s=i.level>0&&i.parent?i.parent.id:void 0;if(!o[i.id]&&!o[s])return}if(!r.refreshFullWidth()){var a=r.getRowNode().rowIndex;t.push(a.toString())}}})),this.removeRowComps(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCon=function(e,t,n,o){var i=null,s=this.rowConsByRowIndex[e];if(s||r(i=this.paginationProxy.getRow(e))&&r(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null),!s){if(i||(i=this.paginationProxy.getRow(e)),!r(i))return;s=this.createRowCon(i,n,o)}return i&&(i.alreadyRendered=!0),this.rowConsByRowIndex[e]=s,s},t.prototype.destroyRowCons=function(e,t){var n=this,o=[];I(e,(function(e,r){r&&(r.destroyFirstPass(),t?(n.zombieRowCons[r.getInstanceId()]=r,o.push((function(){r.destroySecondPass(),delete n.zombieRowCons[r.getInstanceId()]}))):r.destroySecondPass())})),t&&(o.push((function(){n.updateAllRowCons(),n.dispatchDisplayedRowsChanged()})),J(o))},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.gridOptionsWrapper.getRowBufferInPixels(),r=this.controllersService.getGridBodyController(),i=!1,s=void 0,a=void 0;do{var l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,p=u.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=r.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;s=Math.max(f+l-o,c)+d,a=Math.min(g+l+o,p)+d,i=this.ensureAllRowsInRangeHaveHeightsCalculated(s,a)}while(i);var y=this.paginationProxy.getRowIndexAtPixel(s),v=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getPageFirstRow(),C=this.paginationProxy.getPageLastRow();y<m&&(y=m),v>C&&(v=C),e=y,t=v}else e=0,t=-1;var w=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_NORMAL,E=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),b=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);w&&!E&&t-e>b&&(t=e+b);var O=e!==this.firstRenderedRow,R=t!==this.lastRenderedRow;if(O||R){this.firstRenderedRow=e,this.lastRenderedRow=t;var S={type:Qe.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(S)}if(this.paginationProxy.isRowsToRender()){var _={type:Qe.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(_)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=!1,n=e.getRowNode(),o=this.focusController.isRowNodeFocused(n),r=e.isEditing(),i=n.detail;return(o||r||i)&&!!this.paginationProxy.isRowPresent(n)||t},t.prototype.createRowCon=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=n&&!o&&!this.printLayout;return new Zs(this.$scope,e,this.beans,t,r,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowConsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,n,o){for(var s=n,a=!1;s&&(s===n||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?t===Er.LEFT&&(s=this.getLastCellOfColSpan(s)):t===Er.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=i(s=this.cellNavigationService.getNextCellToFocus(t,s));if(a&&e&&e.keyCode===Er.UP&&(s={rowIndex:-1,rowPinned:null,column:n.column}),o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(r(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:s||null,event:e});r(u)?(u.floating&&(X((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.beans.headerNavigationService.getHeaderRowCount();this.focusController.focusHeaderPosition({headerRowIndex:c+s.rowIndex,column:n.column})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getComponentForCell(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnController.getAllDisplayedColumns(),o=this.getRowConByPosition(e);if(!o||!o.isFullWidth())return!1;var r={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?y(n):n[0])};return this.focusPosition(r),!0},t.prototype.focusPosition=function(e){this.focusController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:y(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,n){var o=this.getComponentForCell(e);o&&o.startRowOrCellEdit(t,n)},t.prototype.getRowConByPosition=function(e){var t;switch(e.rowPinned){case be.PINNED_TOP:t=this.topRowCons[e.rowIndex];break;case be.PINNED_BOTTOM:t=this.bottomRowCons[e.rowIndex];break;default:t=this.rowConsByRowIndex[e.rowIndex]}return t},t.prototype.getComponentForCell=function(e){var t=this.getRowConByPosition(e);return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case be.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case be.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n))t.preventDefault();else if(n){var o=e.getRowPosition(),r=o.rowIndex;if(o.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow()){t.preventDefault();var i=this.beans.headerNavigationService.getHeaderRowCount()-1,s=y(this.columnController.getAllDisplayedColumns());this.focusController.focusHeaderPosition({headerRowIndex:i,column:s})}}else e instanceof ba&&e.focusCell(!0),this.focusController.focusNextGridCoreContainer(!1)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusController.getFocusedCell();if(!t)return!1;var n=this.getComponentForCell(t);return!!(n||(n=this.getRowConByPosition(t))&&n.isFullWidth())&&this.tabToNextCellCommon(n,e)},t.prototype.tabToNextCellCommon=function(e,t){var n=e.isEditing();if(!n&&e instanceof ba){var o=e.getRenderedRow();o&&(n=o.isEditing())}return(n?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t))||!!this.focusController.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t){var n=e.getCellPosition();e.stopEditing();var o=this.findNextCellToFocusOn(n,t,!0),r=null!=o;return r&&(o.startEditingIfEnabled(null,null,!0),o.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!0);if(null==o)return!1;var r=e.getCellPosition(),i=o.getCellPosition(),s=this.isCellEditable(r),a=this.isCellEditable(i),l=i&&r.rowIndex===i.rowIndex&&r.rowPinned===i.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRenderedRow().stopEditing(),o.getRenderedRow().startRowEditing());return a?(o.setFocusInOnEditor(),o.focusCell()):o.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,o=this.columnController.getAllDisplayedColumns();n=e instanceof Zs?Ra(Ra({},e.getRowPosition()),{column:t?o[0]:y(o)}):e.getCellPosition();var i=this.findNextCellToFocusOn(n,t,!1);if(i instanceof ba)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return r(i)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(r(i)){var s=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});r(s)?(s.floating&&(X((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),o={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var a=this.beans.headerNavigationService.getHeaderRowCount();return this.focusController.focusHeaderPosition({headerRowIndex:a+o.rowIndex,column:o.column}),null}var l=this.gridOptionsWrapper.isFullRowEdit();if(n&&!l)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var u=this.getComponentForCell(o);if(u){if(!u.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(o),u}else{var c=this.getRowConByPosition(o);if(c&&c.isFullWidth())return c}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===be.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===be.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n},Sa([he("paginationProxy")],t.prototype,"paginationProxy",void 0),Sa([he("columnController")],t.prototype,"columnController",void 0),Sa([he("$scope")],t.prototype,"$scope",void 0),Sa([he("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Sa([he("rowModel")],t.prototype,"rowModel",void 0),Sa([he("focusController")],t.prototype,"focusController",void 0),Sa([he("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Sa([he("columnApi")],t.prototype,"columnApi",void 0),Sa([he("gridApi")],t.prototype,"gridApi",void 0),Sa([he("beans")],t.prototype,"beans",void 0),Sa([he("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Sa([he("animationFrameService")],t.prototype,"animationFrameService",void 0),Sa([he("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Sa([fe("rangeController")],t.prototype,"rangeController",void 0),Sa([fe("controllersService")],t.prototype,"controllersService",void 0),Sa([_a(0,ye("loggerFactory"))],t.prototype,"agWire",null),Sa([ce],t.prototype,"postConstruct",null),t=Sa([de("rowRenderer")],t)}(Ke),Da=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,o,r){i(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,o,r)},e.addToolPanelClassesFromColDef=function(e,t,n,o,r){i(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o,r)},e.addColumnClassesFromCollDef=function(e,t,n,o,r,s){if(!i(e)){var a;if("function"==typeof e)a=e({colDef:t,column:r,columnGroup:s,context:o.getContext(),api:o.getApi()});else a=e;"string"==typeof a?en(n,a):Array.isArray(a)&&a.forEach((function(e){en(n,e)}))}},e}(),Aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Na=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ia=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return Aa(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Na([he("columnHoverService")],t.prototype,"columnHoverService",void 0),Na([ce],t.prototype,"postConstruct",null),t}(Ke),Fa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},La=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=o,i.printLayout=o.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,i}return Fa(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?y(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Se.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.printLayout&&this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=r(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),o=t.getOldLeft(),r=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.printLayout)return t;if(e.getPinned()===be.PINNED_LEFT)return t;var n=this.beans.columnController.getDisplayedColumnsLeftWidth();return e.getPinned()===be.PINNED_RIGHT?n+this.beans.columnController.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(r(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof Se)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&bo(this.ariaEl,n.length),t=n[0]}var o=this.beans.columnController.getAriaColumnIndex(t);Eo(this.ariaEl,o)},xa([ce],t.prototype,"postConstruct",null),t}(Ke),Ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ga=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ka=function(e){function t(t,n){var o=e.call(this,n)||this;return o.labelSeparator="",o.labelAlignment="left",o.label="",o.config=t||{},o}return Ma(t,e),t.prototype.postConstruct=function(){en(this.getGui(),"ag-labeled"),en(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,n=e.label,o=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){mn(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(en(this.eLabel,"ag-hidden"),this.eLabel.setAttribute("role","presentation")):(tn(this.eLabel,"ag-hidden"),this.eLabel.removeAttribute("role"))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return nn(t,"ag-label-align-left","left"===e),nn(t,"ag-label-align-right","right"===e),nn(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||An(this.eLabel,e),this},Ga([ce],t.prototype,"postConstruct",null),t}(dr),Va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ha=function(e){function t(t,n,o){var r=e.call(this,t,n)||this;return r.className=o,r.disabled=!1,r}return Va(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&en(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Nn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return ln(t,e),nn(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(ka),Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ba=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ja=function(e){function t(t,n,o,r){void 0===o&&(o="text"),void 0===r&&(r="input");var i=e.call(this,t,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n </div>\n </div>",n)||this;return i.inputType=o,i.displayFieldTag=r,i}return Wa(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),en(this.eLabel,this.className+"-label"),en(this.eWrapper,this.className+"-input-wrapper"),en(this.eInput,this.className+"-input"),en(this.getGui(),"ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,o=t.value;null!=n&&this.setWidth(n),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){r(this.getLabel())?uo(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return An(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Vn(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return lo(this.eInput,e),this},t.prototype.setDisabled=function(t){return ln(this.eInput,t),e.prototype.setDisabled.call(this,t)},Ba([gr("eLabel")],t.prototype,"eLabel",void 0),Ba([gr("eWrapper")],t.prototype,"eWrapper",void 0),Ba([gr("eInput")],t.prototype,"eInput",void 0),t}(Ha),Ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),za=function(e){function t(t,n,o){void 0===n&&(n="ag-checkbox"),void 0===o&&(o="checkbox");var r=e.call(this,t,n,o)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Ua(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){nn(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return nn(this.eWrapper,"ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:o});var r=this.getInputElement(),i={type:Qe.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){nn(this.eWrapper,"ag-checked",!0===e),nn(this.eWrapper,"ag-indeterminate",null==e)},t}(ja),Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$a=function(e){function t(t,n){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.cbSelectAll=t,o.column=n;var r=n.getColDef();return o.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,o}return Ka(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,za.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshHeaderAriaDescribedBy(this.cbSelectAllVisible)},t.prototype.refreshHeaderAriaDescribedBy=function(e){var t=this.cbSelectAll.getParentComponent(),n=t&&t.getGui();if(n&&wn(n)){var o="";n&&(o=ao(n));var r=this.cbSelectAll.getInputElement().id,i=-1!==o.indexOf(r);e?i||co(n,r+" "+o.trim()):i&&co(n,o.trim().split(" ").filter((function(e){return e===r})).join(" "))}},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAll.setInputAriaLabel(n+" ("+t+")")},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,o=function(o){e.gridOptionsWrapper.isGroupSelectsChildren()&&o.group||(o.isSelected()?t++:o.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===be.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},Ya([he("gridApi")],t.prototype,"gridApi",void 0),Ya([he("columnApi")],t.prototype,"columnApi",void 0),Ya([he("rowModel")],t.prototype,"rowModel",void 0),Ya([he("selectionController")],t.prototype,"selectionController",void 0),Ya([ce],t.prototype,"postConstruct",null),t}(Ke),qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusController.getFocusedHeader(),n=t.headerRowIndex,o=t.column;return Uo(this.gridOptionsWrapper,e,n,o)},t.prototype.getColumn=function(){return this.column},t.prototype.getPinned=function(){return this.pinned},t}(Ar),Qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Za=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ja=function(e){function n(t,o){var r=e.call(this,n.TEMPLATE)||this;return r.headerCompVersion=0,r.refreshFunctions=[],r.column=t,r.pinned=o,r}return Qa(n,e),n.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.colDefVersion=this.columnController.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.addActiveHeaderMouseListeners(),this.createManagedBean(new Ia([this.column],this.getGui())),this.addManagedListener(this.column,Se.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.createManagedBean(new $a(this.cbSelectAll,this.column)),this.cbSelectAll.setParentComponent(this),this.createManagedBean(new La(this.column,this.getGui(),this.beans)),this.addAttributes(),Da.addHeaderClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.appendHeaderComp()},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.updateState=function(){var e=this.column.getColDef();this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.calculateDisplayName=function(){return this.columnController.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnController.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){if(this.headerComp){var e=this.column.getColDef();if(!(this.colDefHeaderComponent!=e.headerComponent||this.colDefHeaderComponentFramework!=e.headerComponentFramework)&&this.attemptHeaderCompRefresh()){var t=this.draggable&&!this.moveDragSource,n=!this.draggable&&this.moveDragSource;(t||n)&&this.attachDraggingToHeaderComp()}else this.appendHeaderComp()}},n.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0),this.removeMoveDragSource()},n.prototype.removeMoveDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.attemptHeaderCompRefresh=function(){if(!this.headerComp.refresh)return!1;var e=this.createParams(),t=this.userComponentFactory.createFinalParams(this.getComponentHolder(),"headerComponent",e);return this.headerComp.refresh(t)},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){nn(this.getGui(),"ag-header-active",e)},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.focusController.setFocusedHeader(t.getRowIndex(),this.getColumn())}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.handleKeyDown=function(e){var t=this.headerComp;if(t){if(e.keyCode===Er.SPACE){var n=this.cbSelectAll;n.isDisplayed()&&!n.getGui().contains(document.activeElement)&&(e.preventDefault(),n.setValue(!n.getValue()))}if(e.keyCode===Er.ENTER)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var o=e.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}}},n.prototype.onTabKeyDown=function(){},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.addColumnHoverListener=function(){this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);nn(this.getGui(),"ag-column-hover",e)},n.prototype.setupSortableClass=function(){var e=this,t=this.getGui(),n=function(){nn(t,"ag-header-cell-sortable",!!e.sortable)},o=function(){e.sortable?Oo(t,io(e.column)):Ro(t)};n(),o(),this.refreshFunctions.push(n),this.refreshFunctions.push(o),this.addManagedListener(this.column,Se.EVENT_SORT_CHANGED,o.bind(this))},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();nn(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(){this.headerCompVersion++;var e=this.column.getColDef();this.colDefHeaderComponent=e.headerComponent,this.colDefHeaderComponentFramework=e.headerComponentFramework;var t=this.createParams(),n=this.afterHeaderCompCreated.bind(this,this.headerCompVersion);this.userComponentFactory.newHeaderComponent(t).then(n)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.afterHeaderCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.attachDraggingToHeaderComp()):this.destroyBean(t)},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?en(this.getGui(),"ag-header-cell-moving"):tn(this.getGui(),"ag-header-cell-moving")},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.attachDraggingToHeaderComp=function(){var e=this;this.removeMoveDragSource(),this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:this.headerCompGui,defaultIconName:Ri.ICON_HIDE,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return e.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return e.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e,t,n=this,o=this.getComponentHolder(),r=[],i=function(){r.forEach((function(e){return e()})),r.length=0},s=function(){var s=n.column.isResizable(),a=!n.gridOptionsWrapper.isSuppressAutoSize()&&!o.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,i(),function(){if(sn(n.eResize,e),e){var o=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(o),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnController.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var a=new jr(n.eResize);a.addEventListener(jr.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),a.removeEventListener(jr.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.refreshFunctions.push(s)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnController.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&tn(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,en(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="header",t.colDef=this.column.getColDef(),t},n.prototype.setupTooltip=function(){var e=this,t=function(){var t=e.column.getColDef().headerTooltip;e.setTooltip(st(t))};t(),this.refreshFunctions.push(t)},n.prototype.setupMovingCss=function(){this.addManagedListener(this.column,Se.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addManagedListener(this.column,Se.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addManagedListener(this.column,Se.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this))},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==be.PINNED_LEFT&&(t*=-1):this.pinned===be.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-cell" role="columnheader" unselectable="on" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox>\n </div>',Za([he("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Za([he("columnController")],n.prototype,"columnController",void 0),Za([he("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Za([he("menuFactory")],n.prototype,"menuFactory",void 0),Za([he("gridApi")],n.prototype,"gridApi",void 0),Za([he("columnApi")],n.prototype,"columnApi",void 0),Za([he("sortController")],n.prototype,"sortController",void 0),Za([he("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Za([he("columnHoverService")],n.prototype,"columnHoverService",void 0),Za([he("beans")],n.prototype,"beans",void 0),Za([gr("eResize")],n.prototype,"eResize",void 0),Za([gr("cbSelectAll")],n.prototype,"cbSelectAll",void 0),Za([pe],n.prototype,"destroyHeaderComp",null),n}(Xa),el=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nl=function(e){function n(t,o){var r=e.call(this,n.TEMPLATE)||this;return r.removeChildListenersFuncs=[],r.column=t,r.pinned=o,r}return el(n,e),n.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),Da.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.column);var t=this.columnController.getDisplayNameForColumnGroup(this.column,"header");this.appendHeaderGroupComp(t),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.setupExpandable(),this.createManagedBean(new Ia(this.column.getOriginalColumnGroup().getLeafColumns(),this.getGui())),this.createManagedBean(new La(this.column,this.getGui(),this.beans))},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.beans.focusController.setFocusedHeader(t.getRowIndex(),this.getColumn())}},n.prototype.handleKeyDown=function(e){var t=document.activeElement===this.getGui();if(this.expandable&&t&&e.keyCode===Er.ENTER){var n=this.getColumn(),o=!n.isExpanded();this.columnController.setColumnGroupOpened(n.getOriginalColumnGroup(),o,"uiColumnExpanded")}},n.prototype.onTabKeyDown=function(){},n.prototype.setupExpandable=function(){var e=this.getColumn().getOriginalColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Te.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Te.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.getColumn(),t=this.getGui(),n=e.isExpandable(),o=e.isExpanded();this.expandable=n,n?ho(t,o):t.removeAttribute("aria-expanded")},n.prototype.setupMovingCss=function(){var e=this;this.column.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addManagedListener(t,Se.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},n.prototype.getComponentHolder=function(){return this.column.getColGroupDef()},n.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="headerGroup",t.colDef=this.getComponentHolder(),t.column=this.getColumn(),t},n.prototype.setupTooltip=function(){var e=this.getComponentHolder(),t=e&&e.headerTooltip;null!=t&&this.setTooltip(st(t))},n.prototype.onColumnMovingChanged=function(){nn(this.getGui(),"ag-header-cell-moving",this.column.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.column,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.column.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var o=this.column,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(e=i.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(s)},n.prototype.afterHeaderCompCreated=function(e,t){var n=this;this.getGui().appendChild(t.getGui()),this.addDestroyFunc((function(){n.getContext().destroyBean(t)})),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.column.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var o=this;if(e&&!this.isSuppressMoving()){var r=this.column.getOriginalColumnGroup().getLeafColumns(),i={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:Ri.ICON_HIDE,dragItemName:n,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return r.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return r.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},n.prototype.getDragItemForGroup=function(){var e=this.column.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),C(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.column.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.column,Pe.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.column.getLeafColumns().forEach((function(n){n.addEventListener(Se.EVENT_WIDTH_CHANGED,t),n.addEventListener(Se.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(Se.EVENT_WIDTH_CHANGED,t),n.removeEventListener(Se.EVENT_VISIBLE_CHANGED,t)}))}))},n.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.column.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.column.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,n,"uiColumnResized")}))}}else Cn(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.column.getDisplayedLeafColumns();this.resizeCols=n.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var o=null;if(e&&(o=this.columnController.getDisplayedGroupAfter(this.column)),o){var r=o.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;en(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],o=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+o}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o}),this.columnController.resizeColumnSets(n,e,"uiColumnDragged"),e&&tn(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==be.PINNED_LEFT&&(t*=-1):this.pinned===be.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',tl([he("columnController")],n.prototype,"columnController",void 0),tl([he("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),tl([he("dragAndDropService")],n.prototype,"dragAndDropService",void 0),tl([he("userComponentFactory")],n.prototype,"userComponentFactory",void 0),tl([he("beans")],n.prototype,"beans",void 0),tl([he("gridApi")],n.prototype,"gridApi",void 0),tl([he("columnApi")],n.prototype,"columnApi",void 0),n}(Xa),ol=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},il=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return ol(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnController.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},rl([gr("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),rl([he("columnController")],t.prototype,"columnController",void 0),t}(dr),sl=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),al=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ll=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ul=function(e){function n(t,o){var r=e.call(this,n.TEMPLATE)||this;return r.column=t,r.pinned=o,r}return al(n,e),n.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.createManagedBean(new Ia([this.column],this.getGui())),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.onTabKeyDown=function(e){var t=document.activeElement,n=this.getGui();if(!(t===n)){e.preventDefault();var o=this.focusController.findNextFocusableElement(n,null,e.shiftKey);o?o.focus():n.focus()}},n.prototype.handleKeyDown=function(e){var t=document.activeElement,n=this.getGui(),o=t===n;switch(e.keyCode){case Er.UP:case Er.DOWN:o||e.preventDefault();case Er.LEFT:case Er.RIGHT:if(o)return;e.stopPropagation();case Er.ENTER:o&&this.focusController.focusInto(n)&&e.preventDefault();break;case Er.ESCAPE:o||this.getGui().focus()}},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.beans.focusController.setFocusedHeader(t.getRowIndex(),this.getColumn())}},n.prototype.setupFloatingFilter=function(){var e=this,t=this.column.getColDef();t.filter&&t.floatingFilter&&(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(t){t&&(e.setupWithFloatingFilter(t),e.setupSyncWithFilter())})))},n.prototype.setupLeftPositioning=function(){var e=new La(this.column,this.getGui(),this.beans);this.createManagedBean(e)},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){e.onParentModelChanged(e.currentParentModel(),t)};this.addManagedListener(this.column,Se.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){nn(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},n.prototype.setupWidth=function(){this.addManagedListener(this.column,Se.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=this,n=function(){t.getContext().destroyBean(e)};if(this.isAlive()){this.addDestroyFunc(n);var o=e.getGui();nn(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),nn(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),sn(this.eButtonWrapper,!this.suppressFilterButton);var r=Vo("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(r),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached()}else n()},n.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();t&&t.then(e)},n.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},n.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null;if("string"==typeof e.filter)n=sl.getFloatingFilterType(e.filter);else if(e.filterFramework);else if(!0===e.filter){n=Oe.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return n},n.prototype.getFloatingFilterInstance=function(){var e=this.column.getColDef(),t=n.getDefaultFloatingFilterType(e),o=this.filterManager.createFilterParams(this.column,e),r=this.userComponentFactory.createFinalParams(e,"filter",o),i={api:this.gridApi,column:this.column,filterParams:r,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(e,i,t);if(!s){var a=this.userComponentFactory.createUserComponentFromConcreteClass(il,i);s=nr.resolve(a)}return s},n.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(n){return n&&n.onParentModelChanged(e,t)}))},n.prototype.onFloatingFilterChanged=function(){console.warn("AG Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},n.TEMPLATE='<div class="ag-header-cell" role="gridcell" tabindex="-1">\n <div class="ag-floating-filter-full-body" ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',ll([he("columnHoverService")],n.prototype,"columnHoverService",void 0),ll([he("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ll([he("gridApi")],n.prototype,"gridApi",void 0),ll([he("columnApi")],n.prototype,"columnApi",void 0),ll([he("filterManager")],n.prototype,"filterManager",void 0),ll([he("menuFactory")],n.prototype,"menuFactory",void 0),ll([he("beans")],n.prototype,"beans",void 0),ll([gr("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),ll([gr("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),ll([gr("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),n}(Xa),cl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(Js||(Js={}));var dl,hl=function(e){function t(t,n,o){var r=e.call(this,'<div class="ag-header-row" role="row"></div>')||this;r.headerComps={},r.setRowIndex(t),r.type=n,r.pinned=o;var i=Js[n].toLowerCase().replace(/_/g,"-");return r.addCssClass("ag-header-row-"+i),Wt()&&(r.getGui().style.transform="translateZ(0)"),r}return cl(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(n){e(t.headerComps[n])}))},t.prototype.setRowIndex=function(e){this.dept=e,Co(this.getGui(),e+1)},t.prototype.getRowIndex=function(){return this.dept},t.prototype.getType=function(){return this.type},t.prototype.destroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.destroyChildComponents(e)},t.prototype.destroyChildComponents=function(e){var t=this;e.forEach((function(e){var n=t.headerComps[e];t.getGui().removeChild(n.getGui()),t.destroyBean(n),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnController.getHeaderRowCount(),o=[],r=0;this.columnController.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnController.hasFloatingFilters()&&(n++,r=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+r),s=0;s<i;s++)o.push(e);o.push(t);for(s=0;s<r;s++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=o[s];this.getGui().style.top=a+"px",this.getGui().style.height=o[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT?i(this.pinned)?this.columnController.getContainerWidth(be.PINNED_RIGHT)+this.columnController.getContainerWidth(be.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[be.PINNED_LEFT,null,be.PINNED_RIGHT].forEach((function(o){var r=e.columnController.getVirtualHeaderGroupRow(o,n);t=t.concat(r)})),t},t.prototype.getActualDepth=function(){return this.type==Js.FLOATING_FILTER?this.dept-1:this.dept},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=Object.keys(this.headerComps),n=[];this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),i=e.getGui(),s=e.headerComps[r];if(s&&s.getColumn()!=o&&(e.destroyChildComponents([r]),C(t,r),s=void 0),s)C(t,r);else{var a=e.createHeaderComp(o);e.headerComps[r]=a,i.appendChild(a.getGui())}n.push(r)}}));if(t.filter((function(t){var n=e.headerComps[t];return!!e.focusController.isHeaderWrapperFocused(n)&&e.columnController.isDisplayed(n.getColumn())})).forEach((function(e){C(t,e),n.push(e)})),this.destroyChildComponents(t),this.gridOptionsWrapper.isEnsureDomOrder()){var o=n.map((function(t){return e.headerComps[t].getGui()}));Sn(this.getGui(),o)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case Js.COLUMN_GROUP:t=new nl(e,this.pinned);break;case Js.FLOATING_FILTER:t=new ul(e,this.pinned);break;default:t=new Ja(e,this.pinned)}return this.createBean(t),t.setParentComponent(this),t},t.prototype.getHeaderComps=function(){return this.headerComps},pl([he("columnController")],t.prototype,"columnController",void 0),pl([he("focusController")],t.prototype,"focusController",void 0),pl([pe],t.prototype,"destroyAllChildComponents",null),pl([ce],t.prototype,"init",null),t}(dr),fl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gl=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!r(e)}return e.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("MoveColumnController"),this.controllersService.whenReady((function(){e.gridBodyCon=e.controllersService.getGridBodyController()}))},e.prototype.getIconName=function(){return this.pinned?Ri.ICON_PINNED:Ri.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=(n||[]).filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(o,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(o,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.controllersService.getCenterRowContainerCon().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.controllersService.getCenterRowContainerCon().getCenterViewportScrollLeft(),n=t+this.controllersService.getCenterRowContainerCon().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!i(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),s=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,r,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),n=m(e.map((function(e){return t.indexOf(e)}))),o=n[0];return y(n)-o!==n.length-1?null:o},e.prototype.attemptMoveColumns=function(e,n,o,r,i){var s=o===t.HorizontalDirection.Left,a=o===t.HorizontalDirection.Right,l=n.slice();this.columnController.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,r),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h<u.length;h++){var f=u[h];if(this.columnController.doesMovePassRules(l,f))return void this.columnController.moveColumns(l,f,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable}));if(o)return[];var r,i=this.columnController.getDisplayedColumns(this.pinned),s=this.columnController.getAllGridColumns(),a=i.filter((function(t){return O(e,t)})),l=i.filter((function(t){return!O(e,t)})),u=s.filter((function(t){return!O(e,t)})),c=0,p=n;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),p-=d}if(p>0){for(var h=0;h<l.length;h++){if((p-=l[h].getActualWidth())<0)break;c++}t&&c++}if(c>0){var f=l[c-1];r=u.indexOf(f)+1}else-1===(r=u.indexOf(l[0]))&&(r=0);var g=[r],y=function(e,t){return e-t};if(t){for(var v=r+1,m=s.length-1;v<=m;)g.push(v),v++;g.sort(y)}else{v=r,m=s.length-1;for(var C=s[v];v<=m&&this.isColumnHidden(i,C);)v++,g.push(v),C=s[v];v=r-1;for(;v>=0;)g.push(v),v--;g.sort(y).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(Ri.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Ri.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Ri.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(Ri.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?be.PINNED_LEFT:be.PINNED_RIGHT;this.setColumnsPinned(o,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},fl([he("loggerFactory")],e.prototype,"loggerFactory",void 0),fl([he("columnController")],e.prototype,"columnController",void 0),fl([he("dragAndDropService")],e.prototype,"dragAndDropService",void 0),fl([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fl([he("controllersService")],e.prototype,"controllersService",void 0),fl([ce],e.prototype,"init",null),e}(),yl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vl=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Ri.ICON_PINNED:Ri.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},yl([he("columnController")],e.prototype,"columnController",void 0),yl([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),ml=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(dl||(dl={}));var wl,El=function(e){function n(t,n){var o=e.call(this)||this;return o.dropListeners={},o.pinned=t,o.eContainer=n,o}return ml(n,e),n.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){var n;switch(e.pinned){case be.PINNED_LEFT:n=[t.leftRowContainerCon,t.bottomLeftRowContainerCon,t.topLeftRowContainerCon];break;case be.PINNED_RIGHT:n=[t.rightRowContainerCon,t.bottomRightRowContainerCon,t.topRightRowContainerCon];break;default:n=[t.centerRowContainerCon,t.bottomCenterRowContainerCon,t.topCenterRowContainerCon]}e.eSecondaryContainers=n.map((function(e){return e.getContainerElement()}))}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnController=this.createBean(new gl(this.pinned,this.eContainer));var e=new vl(this.pinned);this.createBean(e),this.dropListeners[dl.ColumnMove]=this.moveColumnController,this.dropListeners[dl.Pivot]=e,this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel?dl.Pivot:dl.ColumnMove},n.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Cl([he("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Cl([he("columnController")],n.prototype,"columnController",void 0),Cl([he("controllersService")],n.prototype,"controllersService",void 0),Cl([ce],n.prototype,"postConstruct",null),Cl([ce],n.prototype,"init",null),n}(Ke),bl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ol=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rl=function(e){function t(t,n,o){var r=e.call(this)||this;return r.groupsRowComps=[],r.eContainer=t,r.pinned=o,r.eViewport=n,r}return bl(t,e),t.prototype.forEachHeaderElement=function(e){this.groupsRowComps&&this.groupsRowComps.forEach((function(t){return t.forEachHeaderElement(e)})),this.columnsRowComp&&this.columnsRowComp.forEachHeaderElement(e),this.filtersRowComp&&this.filtersRowComp.forEachHeaderElement(e)},t.prototype.init=function(){this.addManagedListener(this.eventService,Qe.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.setupDragAndDrop()},t.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},t.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.onScrollbarWidthChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===be.PINNED_LEFT,t=this.pinned===be.PINNED_RIGHT,n=this.columnController,o=this.gridOptionsWrapper.isEnableRtl(),r=this.gridOptionsWrapper.getScrollbarWidth();if(e||t){var i=n[e?"getDisplayedColumnsLeftWidth":"getDisplayedColumnsRightWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(o&&e||!o&&t)&&(i+=r),Nn(this.eContainer,i)}},t.prototype.getRowComps=function(){var e=[];return this.groupsRowComps&&(e=e.concat(this.groupsRowComps)),this.columnsRowComp&&e.push(this.columnsRowComp),this.filtersRowComp&&e.push(this.filtersRowComp),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.refresh=function(e){void 0===e&&(e=!1),this.refreshRowComps(e)},t.prototype.setupDragAndDrop=function(){var e=this.eViewport?this.eViewport:this.eContainer,t=new El(this.pinned,e);this.createManagedBean(t)},t.prototype.destroyRowComps=function(e){void 0===e&&(e=!1),this.groupsRowComps.forEach(this.destroyRowComp.bind(this)),this.groupsRowComps=[],this.destroyRowComp(this.filtersRowComp),this.filtersRowComp=void 0,e||(this.destroyRowComp(this.columnsRowComp),this.columnsRowComp=void 0)},t.prototype.destroyRowComp=function(e){e&&(this.destroyBean(e),this.eContainer.removeChild(e.getGui()))},t.prototype.refreshRowComps=function(e){var t=this;void 0===e&&(e=!1);var n=new er;!function(){var e=t.columnController.getHeaderRowCount()-1;t.groupsRowComps.forEach(t.destroyRowComp.bind(t)),t.groupsRowComps=[];for(var o=0;o<e;o++){var r=t.createBean(new hl(n.next(),Js.COLUMN_GROUP,t.pinned));t.groupsRowComps.push(r)}}(),function(){var o=n.next();if(t.columnsRowComp){var r=t.columnsRowComp.getRowIndex()!==o;e&&!r||(t.destroyRowComp(t.columnsRowComp),t.columnsRowComp=void 0)}t.columnsRowComp||(t.columnsRowComp=t.createBean(new hl(o,Js.COLUMN,t.pinned)))}(),function(){var o=function(){t.destroyRowComp(t.filtersRowComp),t.filtersRowComp=void 0};if(!t.columnController.isPivotMode()&&t.columnController.hasFloatingFilters()){var r=n.next();if(t.filtersRowComp){var i=t.filtersRowComp.getRowIndex()!==r;e&&!i||o()}t.filtersRowComp||(t.filtersRowComp=t.createBean(new hl(r,Js.FLOATING_FILTER,t.pinned)))}else o()}(),this.getRowComps().forEach((function(e){return t.eContainer.appendChild(e.getGui())}))},Ol([he("columnController")],t.prototype,"columnController",void 0),Ol([he("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Ol([ce],t.prototype,"init",null),Ol([pe],t.prototype,"destroyRowComps",null),t}(Ke),Sl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_l=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(wl=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[wl.UP=0]="UP",wl[wl.DOWN=1]="DOWN",wl[wl.LEFT=2]="LEFT",wl[wl.RIGHT=3]="RIGHT";var Pl,Tl=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Sl(n,e),n.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){e.gridBodyCon=t.gridBodyCon}))},n.prototype.registerHeaderRoot=function(e){this.headerRoot=e},n.prototype.getHeaderRowCount=function(){return 0===this.headerRoot.getHeaderContainers().size?0:this.getHeaderContainer().getRowComps().length},n.prototype.getHeaderRowType=function(e){if(this.getHeaderRowCount())return this.getHeaderContainer().getRowComps()[e].getType()},n.prototype.getHeaderContainer=function(e){return void 0===e&&(e="center"),null===e&&(e="center"),this.headerRoot.getHeaderContainers().get(e)},n.prototype.navigateVertically=function(e,n,o){if(n||(n=this.focusController.getFocusedHeader()),!n)return!1;var r=n.headerRowIndex,i=n.column,s=this.getHeaderRowCount(),a=e===t.HeaderNavigationDirection.UP,l=a?r-1:r+1,u=null,c=!1;l<0&&(l=0,u=i,c=!0),l>=s&&(l=-1);var p=this.getHeaderRowType(r);if(!c){if(p===Js.COLUMN_GROUP){var d=i;u=a?i.getParent():d.getDisplayedChildren()[0]}else if(p===Js.FLOATING_FILTER)u=i;else{d=i;u=a?d.getParent():d}if(!u)return!1}return this.focusController.focusHeaderPosition({headerRowIndex:l,column:u},void 0,!1,!0,o)},n.prototype.navigateHorizontally=function(e,n,o){void 0===n&&(n=!1);var r,i,s=this.focusController.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",r=this.headerPositionUtils.findHeader(s,i)):(i="After",r=this.headerPositionUtils.findHeader(s,i)),r?this.focusController.focusHeaderPosition(r,i,n,!0,o):!n||this.focusNextHeaderRow(s,i,o)},n.prototype.focusNextHeaderRow=function(e,t,n){var o,r=e.headerRowIndex,i=null;return"Before"===t?r>0&&(o=r-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusController.focusHeaderPosition(i,t,!0,!0,n)},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof Pe){var o=e.getDisplayedLeafColumns();n="Before"===t?y(o):o[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},_l([he("focusController")],n.prototype,"focusController",void 0),_l([he("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),_l([he("animationFrameService")],n.prototype,"animationFrameService",void 0),_l([he("controllersService")],n.prototype,"controllersService",void 0),_l([ce],n.prototype,"postConstruct",null),n=_l([de("headerNavigationService")],n)}(Ke),Dl=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.SHIFT="Shift",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.NUM_PAD_DELETE="Del",e.A="a",e.C="c",e.V="v",e.D="d",e.Z="z",e.Y="y",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e}(),Al=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Il=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return Al(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnController,t=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),o=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth(),i=t?n+o+r:n;this.callback(i)},Nl([he("columnController")],t.prototype,"columnController",void 0),Nl([ce],t.prototype,"postConstruct",null),t}(Ke),Fl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ll=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.headerContainers=new Map,t}return Fl(n,e),n.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.printLayout=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this),this.registerHeaderContainer(new Rl(this.eHeaderContainer,this.eHeaderViewport,null),"center"),this.registerHeaderContainer(new Rl(this.ePinnedLeftHeader,null,be.PINNED_LEFT),"left"),this.registerHeaderContainer(new Rl(this.ePinnedRightHeader,null,be.PINNED_RIGHT),"right"),this.headerContainers.forEach((function(e){return t.createManagedBean(e)})),this.headerNavigationService.registerHeaderRoot(this),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.createManagedBean(new Il((function(e){return t.eHeaderContainer.style.width=e+"px"}))),this.columnController.isReady()&&this.refreshHeader(),this.setupHeaderHeight(),this.controllersService.registerHeaderRootComp(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.registerHeaderContainer=function(e,t){this.headerContainers.set(t,e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusController.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.key){case Dl.LEFT:n=t.HeaderNavigationDirection.LEFT;case Dl.RIGHT:r(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case Dl.UP:n=t.HeaderNavigationDirection.UP;case Dl.DOWN:r(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=e.relatedTarget,n=this.getGui();!t&&n.contains(document.activeElement)||n.contains(t)||this.focusController.clearFocusedHeader()},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},n.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},n.prototype.forEachHeaderElement=function(e){this.headerContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},n.prototype.refreshHeader=function(){this.headerContainers.forEach((function(e){return e.refresh()}))},n.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();nn(this.getGui(),"ag-pivot-on",e),nn(this.getGui(),"ag-pivot-off",!e)},n.prototype.setHeaderHeight=function(){var e,t,n,o=this.columnController,r=this.gridOptionsWrapper,i=0,s=o.getHeaderRowCount();o.isPivotMode()?(t=r.getPivotGroupHeaderHeight(),n=r.getPivotHeaderHeight()):(o.hasFloatingFilters()&&(s++,i=1),t=r.getGroupHeaderHeight(),n=r.getHeaderHeight());var a=s-(1+i);e=i*r.getFloatingFiltersHeight(),e+=a*t;var l=(e+=n)+1+"px";this.getGui().style.height=l,this.getGui().style.minHeight=l},n.prototype.addPreventHeaderScroll=function(){var e=this;this.addManagedListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.controllersService.getGridBodyController().getScrollFeature().scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},n.prototype.getHeaderContainers=function(){return this.headerContainers},n.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth()>0;sn(this.ePinnedLeftHeader,e)},n.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth()>0;sn(this.ePinnedRightHeader,e)},n.TEMPLATE='<div class="ag-header" role="presentation">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',xl([gr("ePinnedLeftHeader")],n.prototype,"ePinnedLeftHeader",void 0),xl([gr("ePinnedRightHeader")],n.prototype,"ePinnedRightHeader",void 0),xl([gr("eHeaderContainer")],n.prototype,"eHeaderContainer",void 0),xl([gr("eHeaderViewport")],n.prototype,"eHeaderViewport",void 0),xl([he("columnController")],n.prototype,"columnController",void 0),xl([he("gridApi")],n.prototype,"gridApi",void 0),xl([he("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),xl([he("headerNavigationService")],n.prototype,"headerNavigationService",void 0),xl([he("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),xl([he("controllersService")],n.prototype,"controllersService",void 0),n}(Ar),Ml=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gl=function(){return Gl=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Gl.apply(this,arguments)},kl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vl=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allAdvancedFilters=new Map,t.activeAdvancedFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return Ml(n,e),o=n,n.prototype.init=function(){this.addManagedListener(this.eventService,Qe.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var o=qo(Object.keys(e));this.allAdvancedFilters.forEach((function(r,i){var s=e[i];n.push(t.setModelOnFilterWrapper(r.filterPromise,s)),o.delete(i)})),o.forEach((function(o){var r=t.columnController.getPrimaryColumn(o);if(r){var i=t.getOrCreateFilterWrapper(r,"NO_UI");n.push(t.setModelOnFilterWrapper(i.filterPromise,e[o]))}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+o)}))}else this.allAdvancedFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));nr.all(n).then((function(){return t.onFilterChanged()}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new nr((function(n){e.then((function(e){"function"!=typeof e.setModel&&(console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||nr.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};return this.allAdvancedFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"==typeof o.getModel){var i=o.getModel();r(i)&&(e[n]=i)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isAdvancedFilterPresent=function(){return this.activeAdvancedFilters.length>0},n.prototype.updateActiveFilters=function(){var e=this;this.activeAdvancedFilters.length=0,this.allAdvancedFilters.forEach((function(t){if(t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))){var n=t.filterPromise.resolveNow(null,(function(e){return e}));e.activeAdvancedFilters.push(n)}}))},n.prototype.updateFilterFlagInColumns=function(e,t){this.allAdvancedFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isAdvancedFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.doAdvancedFiltersPass=function(e,t){for(var n=e.data,o=0;o<this.activeAdvancedFilters.length;o++){var r=this.activeAdvancedFilters[o];if(null!=r&&r!==t){if("function"!=typeof r.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!r.doesFilterPass({node:e,data:n}))return!1}}return!0},n.prototype.parseQuickFilter=function(e){return r(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},n.prototype.onFilterChanged=function(e,t){this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",t),this.allAdvancedFilters.forEach((function(t){t.filterPromise.then((function(t){t!==e&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var n={type:Qe.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};t&&H(n,t),this.processingFilterChange=!0,this.eventService.dispatchEvent(n),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},n.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return P(this.columnController.getAllColumnsForQuickFilter(),(function(o){var i=n.getQuickFilterTextForColumn(o,e);return r(i)&&i.indexOf(t)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return _(this.quickFilterParts,(function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},n.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isAdvancedFilterPresent()&&!this.doAdvancedFiltersPass(e.rowNode,e.filterInstanceToSkip)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:o,context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(i)}return r(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];T(this.columnController.getAllColumnsForQuickFilter(),(function(o){var i=t.getQuickFilterTextForColumn(o,e);r(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allAdvancedFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},n.prototype.getFilterComponent=function(e,t,n){if(void 0===n&&(n=!0),n)return this.getOrCreateFilterWrapper(e,t).filterPromise;var o=this.cachedFilter(e);return o?o.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allAdvancedFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allAdvancedFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e,n){var o,r=this,i=Oe.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",s=e.getColDef(),a=Gl(Gl({},this.createFilterParams(e,s,n)),{filterModifiedCallback:function(){var t={type:Qe.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:e,filterInstance:o};r.eventService.dispatchEvent(t)},filterChangedCallback:function(e){return r.onFilterChanged(o,e)},doesRowPassOtherFilter:function(e){return r.doesRowPassOtherFilters(o,e)}}),l=this.userComponentFactory.newFilterComponent(s,a,i);return l&&l.then((function(e){return o=e})),l},n.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var o={api:this.gridOptionsWrapper.getApi(),column:e,colDef:F(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}};return n&&(o.$scope=n),o},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:nr.resolve(null)};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new nr((function(i){e.filterPromise.then((function(s){var a=s.getGui();if(r(a)||console.warn("getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=En(a)),o.appendChild(a),e.scope){var l=n.$compile(o)(e.scope);e.compiledElement=l,window.setTimeout((function(){return e.scope.$apply()}),0)}i(o),n.eventService.dispatchEvent({type:Qe.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;this.allAdvancedFilters.forEach((function(n){!e.columnController.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allAdvancedFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){(o.setModel(null)||nr.resolve()).then((function(){n.getContext().destroyBean(o),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),n.allAdvancedFilters.delete(e.column.getColId())}))}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allAdvancedFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",kl([he("$compile")],n.prototype,"$compile",void 0),kl([he("$scope")],n.prototype,"$scope",void 0),kl([he("valueService")],n.prototype,"valueService",void 0),kl([he("columnController")],n.prototype,"columnController",void 0),kl([he("rowModel")],n.prototype,"rowModel",void 0),kl([he("columnApi")],n.prototype,"columnApi",void 0),kl([he("gridApi")],n.prototype,"gridApi",void 0),kl([he("userComponentFactory")],n.prototype,"userComponentFactory",void 0),kl([ce],n.prototype,"init",null),kl([pe],n.prototype,"destroy",null),n=o=kl([de("filterManager")],n)}(Ke),Hl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return Hl(t,e),t.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},t.prototype.getValue=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!o&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=j(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:c?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=j(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}if(null==r){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return r}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,o=e.parent;null!=o;){if(o.rowGroupColumn&&(!0===n||n===o.rowGroupColumn.getId()))return o.key;o=o.parent}},t.prototype.setValue=function(e,t,n,o){var s=this.columnController.getPrimaryColumn(t);if(e&&s){i(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,c=a.valueSetter;if(i(l)&&i(u)&&i(c))console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");else{var p,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:n,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=n,void 0===(p=u&&r(u)?u(d):r(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,n,s.isFieldContainsDots()))&&(p=!0),p){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h=s.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(d)}),0);var f={type:Qe.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:o};this.eventService.dispatchEvent(f)}}}},t.prototype.setValueUsingField=function(e,t,n,o){if(!t)return!1;if(o)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=n:i=i[s]}else e[t]=n;return!0},t.prototype.executeFilterValueGetter=function(e,t,n,o){var r={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)};return this.expressionService.evaluate(e,r)},t.prototype.executeValueGetter=function(e,t,n,o){var r=n.getId(),i=this.valueCache.getValue(o,r);if(void 0!==i)return i;var s={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(o,r,a),a},t.prototype.getValueCallback=function(e,t){var n=this.columnController.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=o?o({value:n}):n;return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&X((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},Wl([he("expressionService")],t.prototype,"expressionService",void 0),Wl([he("columnController")],t.prototype,"columnController",void 0),Wl([he("valueCache")],t.prototype,"valueCache",void 0),Wl([ce],t.prototype,"init",null),t=Wl([de("valueService")],t)}(Ke),jl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ul=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(Pl=t.LayoutCssClasses||(t.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",Pl.NORMAL="ag-layout-normal",Pl.PRINT="ag-layout-print";var zl,Kl=function(e){function t(t){var n=e.call(this)||this;return n.view=t,n}return jl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout();this.view.updateLayoutClasses({autoHeight:e===be.DOM_LAYOUT_AUTO_HEIGHT,normal:e===be.DOM_LAYOUT_NORMAL,print:e===be.DOM_LAYOUT_PRINT})},Ul([he("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ul([ce],t.prototype,"postConstruct",null),t}(Ke),Yl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$l=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ql=function(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHorizontalScrollElementDebounced=re(n.resetLastHorizontalScrollElement.bind(n),500),n}return Yl(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.controllersService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCon,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.controllersService.getFakeHScrollCon();this.addManagedListener(this.centerRowContainerCon.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?re(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.centerRowContainerCon.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.controllersService.getTopCenterRowContainerCon(),o=this.controllersService.getBottomCenterRowContainerCon(),r=this.controllersService.getHeaderRootComp(),i=this.controllersService.getFakeHScrollCon();r.setHorizontalScroll(t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),vn(this.lastHorizontalScrollElement===this.centerRowContainerCon.getViewportElement()?i.getViewport():this.centerRowContainerCon.getViewportElement(),Math.abs(e),this.enableRtl)},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.controllersService.getFakeHScrollCon().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCon.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCon.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(yn(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:Qe.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},t.prototype.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!Ut())return!1;if("vertical"===e){var o=pn(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;if(t<0||t+o>r)return!0}if("horizontal"===e){var i=this.centerRowContainerCon.getCenterWidth(),s=this.centerRowContainerCon.getViewportElement().scrollWidth;if(this.enableRtl&&gn()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){var e={type:Qe.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCon.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCon.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCon.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCon.getViewportElement().scrollWidth-this.centerRowContainerCon.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&gn()?e>0?0:t:Math.min(Math.max(e,0),t)),vn(this.centerRowContainerCon.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCon.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCon.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCon.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCon.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),o="function"==typeof e,r=-1,i=0;i<n;i++){var s=this.rowModel.getRow(i);if(o){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==be.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var o,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getDivStretchOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+y)/2,l),m=null;"top"===t?m=g:"bottom"===t?m=y:"middle"===t?m=v:d>l?m=g:h<u&&(m=y),null!==m&&(this.eBodyViewport.scrollTop=m,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var n,o,r=t.getLeft(),i=r+t.getActualWidth(),s=this.centerRowContainerCon.getCenterWidth(),a=this.centerRowContainerCon.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(n=l-a-s,o=l-a):(n=a,o=s+a);var u=n>r,c=o<i,p=s<t.getActualWidth(),d=u||p;if(d||c){var h=void 0;h=this.enableRtl?d?l-s-r:l-i:d?r:i-s,this.centerRowContainerCon.setCenterViewportScrollLeft(h)}this.centerRowContainerCon.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},$l([he("controllersService")],t.prototype,"controllersService",void 0),$l([he("animationFrameService")],t.prototype,"animationFrameService",void 0),$l([he("columnApi")],t.prototype,"columnApi",void 0),$l([he("gridApi")],t.prototype,"gridApi",void 0),$l([he("paginationProxy")],t.prototype,"paginationProxy",void 0),$l([he("rowModel")],t.prototype,"rowModel",void 0),$l([he("rowContainerHeightService")],t.prototype,"heightScaler",void 0),$l([he("rowRenderer")],t.prototype,"rowRenderer",void 0),$l([he("columnController")],t.prototype,"columnController",void 0),$l([ce],t.prototype,"postConstruct",null),t}(Ke),Xl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ql=function(){return Ql=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ql.apply(this,arguments)},Zl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Jl=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},eu=function(e){function n(t){var n=e.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=t,n}return Xl(n,e),n.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Qe.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.onSortChanged(),this.onFilterChanged(),this.onRowGroupChanged()},n.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnController.getRowGroupColumns();this.isRowGroupActive=!s(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Ri.ICON_NOT_ALLOWED:Ri.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var t=this.gridOptionsWrapper.isEnableMultiRowDragging(),n=this.selectionController.getSelectedNodes(),o=e.dragItem.rowNode;return t&&-1!==n.indexOf(o)?(this.isMultiRowDrag=!0,Jl(n)):(this.isMultiRowDrag=!1,[o])},n.prototype.onDragEnter=function(e){this.dispatchGridEvent(Qe.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.controllersService.getGridBodyController().getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Qe.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},n.prototype.doManagedDrag=function(e,t){var n,o=this,r=this.isFromThisGrid(e);r?(n=[e.dragItem.rowNode],this.isMultiRowDrag&&(n=Jl(this.selectionController.getSelectedNodes()).sort((function(e,t){return o.getRowIndexNumber(e)-o.getRowIndexNumber(t)}))),e.dragItem.rowNodes=n):n=e.dragItem.rowNodes,this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!r?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(n[0],t):this.moveRows(n,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(y(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var t=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),o=n&&"below"===n.highlighted,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,s=o?1:0;if(this.isFromThisGrid(e))i.forEach((function(e){e.rowTop<r&&(s-=1)})),this.moveRows(i,r,s);else{var a=this.gridOptionsWrapper.getRowNodeIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(r)+1;"above"===this.clientSideRowModel.getHighlightPosition(r)&&l--,this.clientSideRowModel.updateRowData({add:i.map((function(e){return e.data})).filter((function(e){return!t.clientSideRowModel.getRowNode(a?a(e):e.id)})),addIndex:l})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},n.prototype.checkCenterForScrolling=function(e){var t=this.controllersService.getGridBodyController().getScrollFeature().getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},n.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},n.prototype.ensureIntervalCleared=function(){r(this.movingIntervalId)&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},n.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.controllersService.getGridBodyController();this.needToMoveDown?t=n.scrollVertically(e):this.needToMoveUp&&(t=n.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},n.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Ql({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return Ri.ICON_MOVE},external:!0},o))}else X((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),o=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){o(n),e.onDragEnter(t.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(Qe.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var o,r=this.mouseEventService.getNormalisedPosition(n).y,i=-1,s=null;switch(r>this.paginationProxy.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(i)),n.vDirection){case t.VerticalDirection.Down:o="down";break;case t.VerticalDirection.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:i,overNode:s,y:r,vDirection:o}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(Qe.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(Qe.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.ensureIntervalCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Zl([he("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Zl([he("rowModel")],n.prototype,"rowModel",void 0),Zl([he("paginationProxy")],n.prototype,"paginationProxy",void 0),Zl([he("columnController")],n.prototype,"columnController",void 0),Zl([he("focusController")],n.prototype,"focusController",void 0),Zl([he("sortController")],n.prototype,"sortController",void 0),Zl([he("filterManager")],n.prototype,"filterManager",void 0),Zl([he("selectionController")],n.prototype,"selectionController",void 0),Zl([fe("rangeController")],n.prototype,"rangeController",void 0),Zl([he("mouseEventService")],n.prototype,"mouseEventService",void 0),Zl([he("controllersService")],n.prototype,"controllersService",void 0),Zl([ce],n.prototype,"postConstruct",null),n}(Ke),tu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e.ANIMATION_ON="ag-row-animation",e.ANIMATION_OFF="ag-row-no-animation"}(zl||(zl={}));var ou,ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tu(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setView=function(e,t,n,o,r){this.view=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=o,this.eBottom=r,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Kl(this.view)),this.bodyScrollFeature=this.createManagedBean(new ql(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.controllersService.registerGridBodyController(this),this.addEventListeners(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus()},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Qe.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},t.prototype.setColumnMovingCss=function(e){this.view.setColumnMovingCss(e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.view.setCellSelectableCss(e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.view.setVerticalScrollPaddingVisible(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnController.getAllGridColumns();this.view.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var o=t.relatedTarget;if(null!==zt(o)){var r=n.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!r){var i=e.popupService;r=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop];n.forEach((function(n){return e.addManagedListener(n,"focusout",t)}))}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.paginationProxy.getType(),n=-1;t===be.ROW_MODEL_TYPE_CLIENT_SIDE&&(n=0,this.paginationProxy.forEachNode((function(e){e.group||n++})));var o=-1===n?-1:e+n;this.view.setRowCount(o)},t.prototype.registerBodyViewportResizeListener=function(e){this.view.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){this.view.setVerticalScrollPaddingVisible(e)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return this.view.setAlwaysVerticalScrollClass(e),e||Dn(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching();e.view.setRowAnimationCssOnBodyViewport(t)};t(),this.addManagedListener(this.eventService,Qe.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){var n=ke(t);n!==e.eBodyViewport&&n!==e.controllersService.getCenterRowContainerCon().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)}))},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new eu(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.view.setTopHeight(t),this.view.setBottomHeight(n),this.view.setTopDisplay(t?"inherit":"none"),this.view.setBottomDisplay(n?"inherit":"none")},t.prototype.sizeColumnsToFit=function(e){var t=this,n=this.isVerticalScrollShowing()&&!Vt()?this.gridOptionsWrapper.getScrollbarWidth():0,o=dn(this.eBodyViewport)-n;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},nu([he("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),nu([he("controllersService")],t.prototype,"controllersService",void 0),nu([he("columnController")],t.prototype,"columnController",void 0),nu([he("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),nu([fe("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),nu([he("headerNavigationService")],t.prototype,"headerNavigationService",void 0),nu([he("paginationProxy")],t.prototype,"paginationProxy",void 0),nu([he("dragAndDropService")],t.prototype,"dragAndDropService",void 0),nu([he("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),nu([he("rowRenderer")],t.prototype,"rowRenderer",void 0),nu([he("popupService")],t.prototype,"popupService",void 0),nu([he("mouseEventService")],t.prototype,"mouseEventService",void 0),t}(Ke),iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),su=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},au=function(e){function n(t){var n=e.call(this)||this;return n.element=t,n}return iu(n,e),n.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click","mousedown"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!xe(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,o):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(Ut()){var t=new jr(this.element);this.addManagedListener(t,jr.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},n.prototype.getRowForEvent=function(e){for(var t=ke(e);t;){var n=this.gridOptionsWrapper.getDomData(t,Zs.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.handleContextMenuMouseEvent=function(e,t,n,o){var r=n?n.getRowNode():null,i=o?o.getColumn():null,s=null;if(i){var a=e||t;o.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}var l=this.controllersService.getGridBodyController(),u=o?o.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,r,i,s,u)},n.prototype.processKeyboardEvent=function(e,t){var n=Ge(this.gridOptionsWrapper,t,"cellComp"),o=Ge(this.gridOptionsWrapper,t,"renderedRow");t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):o&&o.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,n){var o=e.getRenderedRow().getRowNode(),r=e.getColumn(),i=e.isEditing();if(!jo(this.gridOptionsWrapper,n,o,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e);break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var s=e.createEvent(n,Qe.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(n,Qe.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=this.focusController.getFocusedCell(),i=r&&r.column;if(!jo(this.gridOptionsWrapper,n,o,i,!1)){var s=n.key;if("keydown"===t)switch(s){case Dl.UP:case Dl.DOWN:e.onKeyboardNavigate(n);break;case Dl.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var a=e.createRowEvent(Qe.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(Qe.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case Er.A:return this.onCtrlAndA(e);case Er.C:return this.onCtrlAndC(e);case Er.V:return this.onCtrlAndV();case Er.D:return this.onCtrlAndD(e);case Er.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case Er.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,o=t.paginationProxy,r=t.rangeController,i=be.PINNED_BOTTOM,a=be.PINNED_TOP;if(r&&o.isRowsToRender()){var l=[n.isEmpty(a),n.isEmpty(i)],u=l[0]?null:a,c=void 0,p=void 0;l[1]?(c=null,p=this.paginationProxy.getRowCount()-1):(c=i,p=n.getPinnedBottomRowData().length-1);var d=this.columnController.getAllDisplayedColumns();if(s(d))return;r.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:c,columnStart:d[0],columnEnd:y(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){Oe.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){Oe.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},su([he("mouseEventService")],n.prototype,"mouseEventService",void 0),su([he("valueService")],n.prototype,"valueService",void 0),su([fe("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),su([he("controllersService")],n.prototype,"controllersService",void 0),su([he("navigationService")],n.prototype,"navigationService",void 0),su([he("focusController")],n.prototype,"focusController",void 0),su([he("undoRedoService")],n.prototype,"undoRedoService",void 0),su([he("columnController")],n.prototype,"columnController",void 0),su([he("paginationProxy")],n.prototype,"paginationProxy",void 0),su([he("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),su([fe("rangeController")],n.prototype,"rangeController",void 0),su([fe("clipboardService")],n.prototype,"clipboardService",void 0),su([ce],n.prototype,"postConstruct",null),n}(Ke),lu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),uu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cu=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCon=t,n}return lu(t,e),t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(){e.gridBodyCon=e.controllersService.getGridBodyController(),e.listenForResize()})),this.addManagedListener(this.eventService,Qe.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this.onCenterViewportResized.bind(this);this.centerContainerCon.registerViewportResizeListener(e),this.gridBodyCon.registerBodyViewportResizeListener(e)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCon.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCon.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnController.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCon.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=pn(this.gridBodyCon.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Qe.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCon.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCon.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCon.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCon.getCenterWidth(),t=this.centerContainerCon.getViewportScrollLeft();this.columnController.setViewportPosition(e,t)},uu([he("controllersService")],t.prototype,"controllersService",void 0),uu([he("columnController")],t.prototype,"columnController",void 0),uu([he("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),uu([he("columnApi")],t.prototype,"columnApi",void 0),uu([he("gridApi")],t.prototype,"gridApi",void 0),uu([ce],t.prototype,"postConstruct",null),t}(Ke),pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),du=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hu=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return pu(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Qe.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;sn(this.element,t),t&&Nn(this.element,e)},du([he("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),du([ce],t.prototype,"postConstruct",null),t}(Ke),fu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yu=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return fu(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Qe.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;sn(this.element,t),t&&Nn(this.element,e)},gu([he("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),gu([ce],t.prototype,"postConstruct",null),t}(Ke),vu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cu=function(e){function t(t,n){var o=e.call(this)||this;return o.eContainer=t,o.eWrapper=n,o}return vu(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Qe.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},mu([he("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),mu([ce],t.prototype,"postConstruct",null),t}(Ke),wu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bu=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return wu(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(this.rangeController)){var t={eElement:this.eContainer,onDragStart:this.rangeController.onDragStart.bind(this.rangeController),onDragStop:this.rangeController.onDragStop.bind(this.rangeController),onDragging:this.rangeController.onDragging.bind(this.rangeController)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},Eu([fe("rangeController")],t.prototype,"rangeController",void 0),Eu([he("dragService")],t.prototype,"dragService",void 0),Eu([ce],t.prototype,"postConstruct",null),t}(Ke),Ou=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Su=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};!function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.FULL_WIDTH="fullWidth",e.TOP_LEFT="topLeft",e.TOP_RIGHT="topRight",e.TOP_CENTER="topCenter",e.TOP_FULL_WITH="topFullWidth",e.BOTTOM_LEFT="bottomLeft",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM_CENTER="bottomCenter",e.BOTTOM_FULL_WITH="bottomFullWidth"}(ou||(ou={}));var _u,Pu,Tu=ct([[ou.CENTER,"ag-center-cols-container"],[ou.LEFT,"ag-pinned-left-cols-container"],[ou.RIGHT,"ag-pinned-right-cols-container"],[ou.FULL_WIDTH,"ag-full-width-container"],[ou.TOP_CENTER,"ag-floating-top-container"],[ou.TOP_LEFT,"ag-pinned-left-floating-top"],[ou.TOP_RIGHT,"ag-pinned-right-floating-top"],[ou.TOP_FULL_WITH,"ag-floating-top-full-width-container"],[ou.BOTTOM_CENTER,"ag-floating-bottom-container"],[ou.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[ou.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[ou.BOTTOM_FULL_WITH,"ag-floating-bottom-full-width-container"]]),Du=ct([[ou.CENTER,"ag-center-cols-viewport"],[ou.TOP_CENTER,"ag-floating-top-viewport"],[ou.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Au=ct([[ou.CENTER,"ag-center-cols-clipper"]]),Nu=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return Ou(t,e),t.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,Qe.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.forContainers([ou.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new cu(e))})),this.registerWithControllersService(),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.registerWithControllersService=function(){switch(this.name){case ou.CENTER:this.controllersService.registerCenterRowContainerCon(this);break;case ou.LEFT:this.controllersService.registerLeftRowContainerCon(this);break;case ou.RIGHT:this.controllersService.registerRightRowContainerCon(this);break;case ou.TOP_CENTER:this.controllersService.registerTopCenterRowContainerCon(this);break;case ou.TOP_LEFT:this.controllersService.registerTopLeftRowContainerCon(this);break;case ou.TOP_RIGHT:this.controllersService.registerTopRightRowContainerCon(this);break;case ou.BOTTOM_CENTER:this.controllersService.registerBottomCenterRowContainerCon(this);break;case ou.BOTTOM_LEFT:this.controllersService.registerBottomLeftRowContainerCon(this);break;case ou.BOTTOM_RIGHT:this.controllersService.registerBottomRightRowContainerCon(this)}},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setView=function(e,t,n,o){var r=this;this.view=e,this.eContainer=t,this.eViewport=n,this.eWrapper=o,this.createManagedBean(new au(this.eContainer)),this.addPreventScrollWhileDragging();var i=[ou.TOP_CENTER,ou.TOP_LEFT,ou.TOP_RIGHT],s=[ou.BOTTOM_CENTER,ou.BOTTOM_LEFT,ou.BOTTOM_RIGHT],a=[ou.CENTER,ou.LEFT,ou.RIGHT],l=Su(i,s,a),u=[ou.CENTER,ou.LEFT,ou.RIGHT,ou.FULL_WIDTH],c=[ou.CENTER,ou.TOP_CENTER,ou.BOTTOM_CENTER],p=[ou.LEFT,ou.BOTTOM_LEFT,ou.TOP_LEFT],d=[ou.RIGHT,ou.BOTTOM_RIGHT,ou.TOP_RIGHT];this.forContainers(p,(function(){return r.createManagedBean(new hu(r.eContainer))})),this.forContainers(d,(function(){return r.createManagedBean(new yu(r.eContainer))})),this.forContainers(u,(function(){return r.createManagedBean(new Cu(r.eContainer,r.eWrapper))})),this.forContainers(l,(function(){return r.createManagedBean(new bu(r.eContainer))})),this.forContainers(c,(function(){return r.createManagedBean(new Il((function(e){return r.eContainer.style.width=e+"px"})))}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([ou.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([ou.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onScrollVisibilityChanged=function(){if(this.name===ou.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,t=0==e?"100%":"calc(100% + "+e+"px)";this.view.setViewportHeight(t)}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnController.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return dn(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return yn(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},t.prototype.isViewportVisible=function(){return wn(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Tn(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return yn(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||Tn(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){vn(this.eViewport,e,this.enableRtl)},Ru([he("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Ru([he("dragService")],t.prototype,"dragService",void 0),Ru([he("controllersService")],t.prototype,"controllersService",void 0),Ru([he("columnController")],t.prototype,"columnController",void 0),Ru([he("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ru([ce],t.prototype,"postConstruct",null),t}(Ke),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xu='<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <ag-row-container ref="topLeftContainer" name="'+ou.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+ou.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+ou.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+ou.TOP_FULL_WITH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+ou.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+ou.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+ou.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+ou.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <ag-row-container ref="bottomLeftContainer" name="'+ou.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+ou.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+ou.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+ou.BOTTOM_FULL_WITH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',Lu=function(e){function n(){return e.call(this,xu)||this}return Iu(n,e),n.prototype.init=function(){var e=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},o={setRowAnimationCssOnBodyViewport:this.setRowAnimationCssOnBodyViewport.bind(this),setColumnCount:function(t){return wo(e.getGui(),t)},setRowCount:function(t){return mo(e.getGui(),t)},setTopHeight:function(t){return n(t,e.eTop)},setBottomHeight:function(t){return n(t,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setColumnMovingCss:function(t){return e.addOrRemoveCssClass("ag-column-moving",t)},updateLayoutClasses:function(n){nn(e.eBodyViewport,t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),nn(e.eBodyViewport,t.LayoutCssClasses.NORMAL,n.normal),nn(e.eBodyViewport,t.LayoutCssClasses.PRINT,n.print),e.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),e.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,n.normal),e.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,n.print)},setAlwaysVerticalScrollClass:function(t){return nn(e.eBodyViewport,"ag-force-vertical-scroll",t)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return n()}))},setVerticalScrollPaddingVisible:function(t){var n=t?"scroll":"hidden";e.eTop.style.overflowY=e.eBottom.style.overflowY=n},setCellSelectableCss:function(t){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return nn(e,"ag-selectable",t)}))}};this.controller=this.createManagedBean(new ru),this.controller.setView(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),this.$scope&&this.addAngularApplyCheck(),this.gridApi.registerGridComp(this),this.beans.registerGridComp(this),this.contextMenuFactory&&this.contextMenuFactory.registerGridComp(this),this.menuFactory&&this.menuFactory.registerGridComp(this),(this.rangeController||this.gridOptionsWrapper.isRowSelectionMulti())&&(vo(this.getGui(),!0),this.rangeController&&this.rangeController.registerGridComp(this)),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){e.addManagedListener(t,"focusin",(function(){en(t,"ag-has-focus")})),e.addManagedListener(t,"focusout",(function(e){t.contains(e.relatedTarget)||tn(t,"ag-has-focus")}))}))},n.prototype.setRowAnimationCssOnBodyViewport=function(e){nn(this.eBodyViewport,zl.ANIMATION_ON,e),nn(this.eBodyViewport,zl.ANIMATION_OFF,!e)},n.prototype.addAngularApplyCheck=function(){var e=this,t=!1,n=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,Qe.EVENT_VIRTUAL_COLUMNS_CHANGED,n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Fu([he("beans")],n.prototype,"beans",void 0),Fu([he("gridApi")],n.prototype,"gridApi",void 0),Fu([he("$scope")],n.prototype,"$scope",void 0),Fu([he("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Fu([fe("rangeController")],n.prototype,"rangeController",void 0),Fu([fe("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Fu([fe("menuFactory")],n.prototype,"menuFactory",void 0),Fu([gr("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Fu([gr("eTop")],n.prototype,"eTop",void 0),Fu([gr("eBottom")],n.prototype,"eBottom",void 0),Fu([gr("headerRoot")],n.prototype,"headerRootComp",void 0),Fu([ce],n.prototype,"init",null),n}(dr);(_u=t.ExcelFactoryMode||(t.ExcelFactoryMode={}))[_u.SINGLE_SHEET=0]="SINGLE_SHEET",_u[_u.MULTI_SHEET=1]="MULTI_SHEET",(Pu=t.ClientSideRowModelSteps||(t.ClientSideRowModelSteps={})).EVERYTHING="group",Pu.FILTER="filter",Pu.SORT="sort",Pu.MAP="map",Pu.AGGREGATE="aggregate",Pu.PIVOT="pivot",Pu.NOTHING="nothing";var Mu,Gu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ku=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerGridComp=function(e){this.gridBodyComp=e},e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerGridCompController=function(e){this.gridCompController=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case be.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case be.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case be.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.controllersService.whenReady((function(){e.gridBodyCon=e.controllersService.getGridBodyController()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;I(this.detailGridInfoMap,(function(n,o){r(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(Oe.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){Oe.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(Oe.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=e&&e.exportMode||"xlsx";return this.excelCreator.getFactoryMode(n)===t.ExcelFactoryMode.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(e)}},e.prototype.exportDataAsExcel=function(e){if(Oe.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=e&&e.exportMode||"xlsx";if(this.excelCreator.getFactoryMode(n)===t.ExcelFactoryMode.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(e)}},e.prototype.getSheetDataForExcel=function(e){if(Oe.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=e&&e.exportMode||"xlsx";return this.excelCreator.setFactoryMode(t.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(Oe.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(Oe.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.gridBodyComp.getGui(),o="aria-"+e;null===t?n.removeAttribute(o):n.setAttribute(o,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+be.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+be.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+be.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var t=this.immutableService.createTransactionForRowData(e);if(!t)return;var n=t[0],o=t[1],r=this.clientSideRowModel.updateRowData(n,o);r&&this.rowRenderer.refreshFullWidthRows(r.update)}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.refreshView=function(){console.warn("AG Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since AG Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("AG Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("AG Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("AG Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("AG Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),r(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=t.ClientSideRowModelSteps.EVERYTHING,o={group:t.ClientSideRowModelSteps.EVERYTHING,filter:t.ClientSideRowModelSteps.FILTER,map:t.ClientSideRowModelSteps.MAP,aggregate:t.ClientSideRowModelSteps.AGGREGATE,sort:t.ClientSideRowModelSteps.SORT,pivot:t.ClientSideRowModelSteps.PIVOT};if(r(e)&&(n=o[e]),i(n))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var s={step:n,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(s)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,n){"string"!=typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){i(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridBodyCon.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridBodyCon.getScrollFeature().ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCon.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCon.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e,t){var n=this.columnController.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o&&o.resolveNow(null,(function(e){return e}));return t&&(r?setTimeout(t,0,r):o&&o.then(t)),r}},e.prototype.getFilterApi=function(e){return console.warn("AG Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnController.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){console.warn("AG Grid: as of version 24.0.0, setSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.applyColumnState() instead.");var n=[];e&&e.forEach((function(e,t){n.push({colId:e.colId,sort:e.sort,sortIndex:t})})),this.columnController.applyColumnState({state:n,defaultState:{sort:null}})},e.prototype.getSortModel=function(){console.warn("AG Grid: as of version 24.0.0, getSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.getColumnState() instead.");var e=this.columnController.getColumnState().filter((function(e){return null!=e.sort})),t={};e.forEach((function(e){var n=e.colId,o=e.sortIndex;t[n]=o}));var n=e.map((function(e){return{colId:e.colId,sort:e.sort}}));return n.sort((function(e,n){return t[e.colId]-t[n.colId]})),n},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusController.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCon.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCon.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCon.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_POST_SORT,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},e.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupSortComparator=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_DEFAULT_GROUP_SORT_COMPARATOR,e)},e.prototype.setProcessChartOptions=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PROCESS_CHART_OPTIONS,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GET_ROW_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",Ds.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){X((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){r(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);return i(n)&&(n=this.columnController.getGridColumn(e)),i(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.destroyCalled||(this.destroyCalled=!0,this.gridCompController.destroyGridUi(),this.context.destroy())},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(U.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return at(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(Oe.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&Oe.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.createRangeChart=function(e){if(Oe.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&Oe.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(Oe.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&Oe.assertRegistered(t.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,n){if(Oe.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.restoreChart")&&Oe.assertRegistered(t.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,n)},e.prototype.createPivotChart=function(e){if(Oe.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&Oe.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnController.getGridColumn(e);n||(n=this.columnController.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(Ms.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.updateRowData=function(e){return X((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){X((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},e.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},Gu([fe("immutableService")],e.prototype,"immutableService",void 0),Gu([fe("csvCreator")],e.prototype,"csvCreator",void 0),Gu([fe("excelCreator")],e.prototype,"excelCreator",void 0),Gu([he("rowRenderer")],e.prototype,"rowRenderer",void 0),Gu([he("filterManager")],e.prototype,"filterManager",void 0),Gu([he("columnController")],e.prototype,"columnController",void 0),Gu([he("selectionController")],e.prototype,"selectionController",void 0),Gu([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gu([he("valueService")],e.prototype,"valueService",void 0),Gu([he("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Gu([he("eventService")],e.prototype,"eventService",void 0),Gu([he("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Gu([he("context")],e.prototype,"context",void 0),Gu([he("rowModel")],e.prototype,"rowModel",void 0),Gu([he("sortController")],e.prototype,"sortController",void 0),Gu([he("paginationProxy")],e.prototype,"paginationProxy",void 0),Gu([he("focusController")],e.prototype,"focusController",void 0),Gu([he("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Gu([fe("rangeController")],e.prototype,"rangeController",void 0),Gu([fe("clipboardService")],e.prototype,"clipboardService",void 0),Gu([fe("aggFuncService")],e.prototype,"aggFuncService",void 0),Gu([he("menuFactory")],e.prototype,"menuFactory",void 0),Gu([fe("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Gu([he("valueCache")],e.prototype,"valueCache",void 0),Gu([he("animationFrameService")],e.prototype,"animationFrameService",void 0),Gu([fe("statusBarService")],e.prototype,"statusBarService",void 0),Gu([fe("chartService")],e.prototype,"chartService",void 0),Gu([fe("undoRedoService")],e.prototype,"undoRedoService",void 0),Gu([fe("headlessService")],e.prototype,"headlessService",void 0),Gu([fe("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Gu([fe("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),Gu([fe("controllersService")],e.prototype,"controllersService",void 0),Gu([ce],e.prototype,"init",null),Gu([pe],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Gu([de("gridApi")],e)}(),Vu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wu=function(e,t){return function(n,o){t(n,o,e)}},Bu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return Vu(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Hu([Wu(0,ye("loggerFactory"))],t.prototype,"setBeans",null),t=Hu([de("expressionService")],t)}(Ke),ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Uu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return ju(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var o=this.waitingCallbacks[e],r=this;if(!o){o=[],this.waitingCallbacks[e]=o;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&o.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},Uu([he("$scope")],t.prototype,"$scope",void 0),t=Uu([de("templateService")],t)}(Ke),Ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$u=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},qu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Ku(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener("keydown",n.toggleKeyboardMode),e.addEventListener("mousedown",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e),r=[];o&&o.length&&(r=$u(o).filter((function(e){return e!==t})),n.instancesMonitored.set(e,r)),0===r.length&&(e.removeEventListener("keydown",n.toggleKeyboardMode),e.removeEventListener("mousedown",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,o="keydown"===e.type;if(!(o&&(e.ctrlKey||e.metaKey||e.altKey)||t&&o||!t&&!o)){n.keyboardModeActive=o;var r=e.target.ownerDocument;if(r){var i=n.instancesMonitored.get(r);i&&i.forEach((function(e){e.dispatchEvent({type:o?Qe.EVENT_KEYBOARD_FOCUS:Qe.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},t.prototype.registerGridCompController=function(e){var t=this;this.gridCompController=e;var o=this.gridOptionsWrapper.getDocument();n.addKeyboardModeEvents(o,e),this.addDestroyFunc((function(){return t.unregisterGridCompController(e)}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();n.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnController.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return n.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition?null:this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},t.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,ba.DOM_DATA_KEY_CELL_COMP);if(n)return n.getCellPosition();t=t.parentNode}return null},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,n,r){void 0===r&&(r=!1);var i=this.columnController.getGridColumn(t);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:o(n),column:i}:null,this.onCellFocused(r)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumn(),n=e.getParentComponent().getRowIndex(),o=e.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return t===i&&n===s&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e,t,n,o,r){if(void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=!1),o){var i,s=this.gridOptionsWrapper,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(n){if(i=s.getTabToNextHeaderFunc())e=i({backwards:"Before"===t,previousHeaderPosition:a,nextHeaderPosition:e,headerRowCount:l})}else if((i=s.getNavigateToNextHeaderFunc())&&r)e=i({key:r.key,previousHeaderPosition:a,nextHeaderPosition:e,headerRowCount:l,event:r})}if(!e)return!1;if(-1===e.headerRowIndex)return this.focusGridView(e.column);this.headerNavigationService.scrollToColumn(e.column,t);var u=this.headerNavigationService.getHeaderContainer(e.column.getPinned()).getRowComps()[e.headerRowIndex].getHeaderComps()[e.column.getUniqueId()];return!!u&&(u.getFocusableElement().focus(),!0)},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o(t))},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var o=be.FOCUSABLE_SELECTOR,r=be.FOCUSABLE_EXCLUDE;t&&(r+=", "+t),n&&(r+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),s=Array.prototype.slice.apply(e.querySelectorAll(r));if(!s.length)return i;var a;return a=s,i.filter((function(e){return-1===a.indexOf(e)}))},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.findFocusableElements(e,null,n),r=t?y(o):o[0];return!!r&&(r.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=(t?S(o,(function(e){return e.contains(document.activeElement)})):o.indexOf(document.activeElement))+(n?-1:1);return r<0||r>=o.length?null:o[r]},t.prototype.isFocusUnderManagedComponent=function(e){var t=e.querySelectorAll("."+Ar.FOCUS_MANAGED_CLASS);if(!t.length)return!1;for(var n=0;n<t.length;n++)if(t[n].contains(document.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===zt(e)&&++n<=t;)e=e.parentElement;return null===zt(e)?null:e},t.prototype.onCellFocused=function(e){var t={type:Qe.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=t.rowIndex=this.focusedCellPosition.rowIndex,o=t.rowPinned=this.focusedCellPosition.rowPinned;t.column=this.focusedCellPosition.column;var r=this.rowRenderer.getRowConByPosition({rowIndex:n,rowPinned:o});r&&(t.isFullWidthCell=r.isFullWidth())}this.eventService.dispatchEvent(t)},t.prototype.focusGridView=function(e,t){var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var r=n.rowIndex,i=n.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==r||!e)return!1;if(this.rowRenderer.ensureCellVisible({rowIndex:r,column:e,rowPinned:i}),this.setFocusedCell(r,e,o(i),!0),this.rangeController){var a={rowIndex:r,rowPinned:i,column:e};this.rangeController.setRangeToCell(a)}return!0},t.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCompController.focusNextInnerContainer(e)||(e||this.gridCompController.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,Yu([he("columnController")],t.prototype,"columnController",void 0),Yu([he("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Yu([he("columnApi")],t.prototype,"columnApi",void 0),Yu([he("gridApi")],t.prototype,"gridApi",void 0),Yu([he("rowRenderer")],t.prototype,"rowRenderer",void 0),Yu([he("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Yu([fe("rangeController")],t.prototype,"rangeController",void 0),Yu([ce],t.prototype,"init",null),t=n=Yu([de("focusController")],t)}(Ke),Xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return Xu(t,e),t.prototype.registerGridCompController=function(e){var t=this;this.gridCompController=e,this.addManagedListener(this.gridCompController,Qe.EVENT_KEYBOARD_FOCUS,(function(){T(t.popupList,(function(e){return en(e.element,qu.AG_KEYBOARD_FOCUS)}))})),this.addManagedListener(this.gridCompController,Qe.EVENT_MOUSE_FOCUS,(function(){T(t.popupList,(function(e){return tn(e.element,qu.AG_KEYBOARD_FOCUS)}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCompController.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepYWithinBounds(e,t.top-n.top),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,s=n.right-n.left-r;function a(){return t.right-n.left-2}function l(){return t.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=o+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),n=t.x,o=t.y,r=e.ePopup,i=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:n,y:o,nudgeX:i,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:o})},t.prototype.positionPopup=function(e){var t=e.x,n=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(n+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),n=this.keepYWithinBounds(e,n)),e.ePopup.style.left=t+"px",e.ePopup.style.top=n+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getParentRect=function(){var e=this.getPopupParent(),t=this.gridOptionsWrapper.getDocument();e===t.body&&(e=t.documentElement);var n=getComputedStyle(e),o=e.getBoundingClientRect();return{top:o.top+parseFloat(n.borderTopWidth)||0,left:o.left+parseFloat(n.borderLeftWidth)||0,right:o.right+parseFloat(n.borderRightWidth)||0,bottom:o.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepYWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=Math.min(200,i.height),u=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,u=hn(e.ePopup)-l);var c=a?hn(o)+o.scrollTop:i.height;a&&(c-=Math.abs(s.top-i.top));var p=c-l-u;return Math.min(Math.max(t,0),Math.abs(p))},t.prototype.keepXWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=e.ePopup,u=Math.min(200,i.width),c=0;e.minWidth&&e.minWidth<u?u=e.minWidth:l.offsetWidth>0&&(u=l.offsetWidth,l.style.minWidth=u+"px",c=fn(l)-u);var p=a?fn(o)+o.scrollLeft:i.width;a&&(p-=Math.abs(s.left-i.left));var d=p-u-c;return Math.min(Math.max(t,0),Math.abs(d))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this.getPopupParent(),n=t.getBoundingClientRect(),o=e.element.getBoundingClientRect(),r=n.top-o.top,i=n.left-o.left,s=r,a=i,l=e.ePopup.style.top,u=parseInt(l.substring(0,l.length-1),10),c=e.ePopup.style.left,p=parseInt(c.substring(0,c.length-1),10),d=window.setInterval((function(){var n=t.getBoundingClientRect(),o=e.element.getBoundingClientRect();if(0==o.top&&0==o.left&&0==o.height&&0==o.width)e.hidePopup();else{var l=n.top-o.top;if(l!=s){var c=u+r-l;e.ePopup.style.top=c+"px"}s=l;var d=n.left-o.left;if(d!=a){var h=p+i-d;e.ePopup.style.left=h+"px"}a=d}}),200);return function(){null!=d&&window.clearInterval(d),d=void 0}},t.prototype.addPopup=function(e){var t=this,n=e.modal,o=e.eChild,r=e.closeOnEsc,i=e.closedCallback,s=e.click,a=e.alwaysOnTop,l=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,p=this.gridOptionsWrapper.getDocument();if(p){var d=S(this.popupList,(function(e){return e.element===o}));if(-1!==d){var h=this.popupList[d];return{hideFunc:h.hideFunc,stopAnchoringFunc:h.stopAnchoringFunc}}var f=this.getPopupParent();f.appendChild(o),null==o.style.top&&(o.style.top="0px"),null==o.style.left&&(o.style.left="0px");var g=document.createElement("div"),y=this.environment.getTheme().theme;y&&en(g,y),en(g,"ag-popup"),en(o,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),en(o,"ag-popup-child"),this.focusController.isKeyboardMode()&&en(o,qu.AG_KEYBOARD_FOCUS),g.appendChild(o),f.appendChild(g),a?this.setAlwaysOnTop(g,!0):this.bringPopupToFront(g);var v,m=!1,C=function(e){g.contains(document.activeElement)&&((e.which||e.keyCode)===Er.ESCAPE&&b({keyboardEvent:e}))},w=function(e){return b({mouseEvent:e})},E=function(e){return b({touchEvent:e})},b=function(e){void 0===e&&(e={});var n=e.mouseEvent,r=e.touchEvent,a=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:r},o)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:n,touchEvent:r})||m||(m=!0,f.removeChild(g),p.removeEventListener("keydown",C),p.removeEventListener("mousedown",w),p.removeEventListener("touchstart",E),p.removeEventListener("contextmenu",w),t.eventService.removeEventListener(Qe.EVENT_DRAG_STARTED,w),i&&i(n||r||a),t.popupList=t.popupList.filter((function(e){return e.element!==o})),v&&v())};return l&&l({hidePopup:b}),window.setTimeout((function(){r&&p.addEventListener("keydown",C),n&&(p.addEventListener("mousedown",w),t.eventService.addEventListener(Qe.EVENT_DRAG_STARTED,w),p.addEventListener("touchstart",E),p.addEventListener("contextmenu",w))}),0),u&&u(),c&&(v=this.keepPopupPositionedRelativeTo({element:c,ePopup:o,hidePopup:b})),this.popupList.push({element:o,hideFunc:b,stopAnchoringFunc:v}),{hideFunc:b,stopAnchoringFunc:v}}console.warn("ag-grid: could not find the document, document is empty")},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,o=e.touchEvent,r=n||o;if(!r)return!1;var i=S(this.popupList,(function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){if(Ve(this.popupList[s].element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){if(!this.popupList.length)return!1;for(;e&&e!==document.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,o=e.touchEvent,r=null;if(n?r=n:o&&(r=o.touches[0]),r&&t){var i=n?n.screenX:0,s=n?n.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!on(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return on(e,"ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(nn(n,"ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,s=this.getWrapper(e);if(s&&!(o<=1)&&t.contains(e)){var a=n.indexOf(s);if(i)on(s,"ag-always-on-top")?a!==o-1&&y(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&y(n).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},Qu([he("environment")],t.prototype,"environment",void 0),Qu([he("focusController")],t.prototype,"focusController",void 0),t=Qu([de("popupService")],t)}(Ke),Ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ec=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tc=function(e,t){return function(n,o){t(n,o,e)}},nc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ju(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new oc(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},ec([tc(0,ye("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=ec([de("loggerFactory")],t)}(Ke),oc=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}(),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ic=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rc(t,e),t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCon}))},t.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=document.createElement("span");o.style.position="fixed";var r=this.centerRowContainerCon.getContainerElement();r.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),t||this.cloneItemIntoDummy(n,o);var i=o.offsetWidth;return r.removeChild(o),i+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(n){if(n instanceof Ja){var o=n;o.getColumn()===e&&(t=o)}})),t?t.getGui():null},t.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return n.cloneItemIntoDummy(e,t)}))},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var o=document.createElement("div");on(n,"ag-header-cell")?(en(o,"ag-header"),en(o,"ag-header-row"),o.style.position="static"):en(o,"ag-row"),o.style.display="table-row",o.appendChild(n),t.appendChild(o)},ic([he("rowRenderer")],t.prototype,"rowRenderer",void 0),ic([he("controllersService")],t.prototype,"controllersService",void 0),ic([ce],t.prototype,"postConstruct",null),t=ic([de("autoWidthCalculator")],t)}(Ke),ac=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ac(t,e),t.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldUserSelect=this.eGridDiv.style.userSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.userSelect="none",this.eGridDiv.style.webkitUserSelect="none"},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.userSelect=this.oldUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},lc([he("dragService")],t.prototype,"dragService",void 0),lc([he("eGridDiv")],t.prototype,"eGridDiv",void 0),t=lc([de("horizontalResizeService")],t)}(Ke),cc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dc=function(e){function n(){return e.call(this)||this}return cc(n,e),n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridCompController"),[this.gridApi,this.popupService,this.focusController,this.controllersService].forEach((function(t){return t.registerGridCompController(e)})),Oe.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCompController(this)},n.prototype.setView=function(e,t,n){var o=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Kl(this.view)),this.addRtlSupport(),this.addManagedListener(this,Qe.EVENT_KEYBOARD_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Qe.EVENT_MOUSE_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}))},n.prototype.showDropZones=function(){return Oe.isRegistered(t.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return Oe.isRegistered(t.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return Oe.isRegistered(t.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return Oe.isRegistered(t.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:Qe.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.focusNextInnerContainer=function(e){var t=this.view.getFocusableContainers(),n=S(t,(function(e){return e.contains(document.activeElement)}))+(e?-1:1);return!(n<0||n>=t.length)&&(0===n?this.focusGridHeader():this.focusController.focusInto(t[n]))},n.prototype.focusGridHeader=function(){var e=this.columnController.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnController.getColumnGroupAtLevel(e,0)),this.focusController.focusHeaderPosition({headerRowIndex:0,column:e}),!0)},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},pc([he("columnApi")],n.prototype,"columnApi",void 0),pc([he("gridApi")],n.prototype,"gridApi",void 0),pc([he("popupService")],n.prototype,"popupService",void 0),pc([he("focusController")],n.prototype,"focusController",void 0),pc([fe("clipboardService")],n.prototype,"clipboardService",void 0),pc([he("loggerFactory")],n.prototype,"loggerFactory",void 0),pc([he("resizeObserverService")],n.prototype,"resizeObserverService",void 0),pc([he("columnController")],n.prototype,"columnController",void 0),pc([he("controllersService")],n.prototype,"controllersService",void 0),pc([he("mouseEventService")],n.prototype,"mouseEventService",void 0),pc([ce],n.prototype,"postConstruct",null),n}(Ke),hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gc=function(e){function n(t){var n=e.call(this,void 0,!0)||this;return n.eGridDiv=t,n}return hc(n,e),n.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var n={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(e){return en(t.getGui(),e)},addOrRemoveKeyboardFocusClass:function(e){return t.addOrRemoveCssClass(qu.AG_KEYBOARD_FOCUS,e)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this)};this.con=this.createManagedBean(new dc);var o=this.createTemplate();this.setTemplate(o),this.con.setView(n,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),e.prototype.postConstruct.call(this)},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},n.prototype.updateLayoutClasses=function(e){nn(this.eRootWrapperBody,t.LayoutCssClasses.AUTO_HEIGHT,e.autoHeight),nn(this.eRootWrapperBody,t.LayoutCssClasses.NORMAL,e.normal),nn(this.eRootWrapperBody,t.LayoutCssClasses.PRINT,e.print),this.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,e.normal),this.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,e.print)},n.prototype.createTemplate=function(){return'<div ref="eRootWrapper" class="ag-root-wrapper">\n '+(this.con.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.con.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.con.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.con.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return wn(e)}))},n.prototype.focusInnerElement=function(e){var t=this.getFocusableContainers();if(e){if(t.length>1)return this.focusController.focusInto(y(t));var n=y(this.columnController.getAllDisplayedColumns());if(this.focusController.focusGridView(n,!0))return!0}return this.con.focusGridHeader()},n.prototype.onTabKeyDown=function(){},fc([he("columnController")],n.prototype,"columnController",void 0),fc([he("loggerFactory")],n.prototype,"loggerFactory",void 0),fc([gr("gridBody")],n.prototype,"gridBodyComp",void 0),fc([gr("sideBar")],n.prototype,"sideBarComp",void 0),fc([gr("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),n}(Ar),yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yc(t,e),t.prototype.registerGridComp=function(e){this.gridBodyComp=e},t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:o,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var o,r=this,i=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),s=document.createElement("div");s.setAttribute("role","presentation"),en(s,"ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return r.trapFocusWithin(e,s)})),i.guiPromise.then((function(e){return s.appendChild(e)}));var a=n||this.gridBodyComp.getGui(),l=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var o=t instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),o&&n&&wn(n)){var i=r.focusController.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(s)},anchorToElement:a});l&&(this.hidePopup=o=l.hideFunc),i.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:o})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.keyCode!==Er.TAB||e.defaultPrevented||this.focusController.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusController.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},vc([he("filterManager")],t.prototype,"filterManager",void 0),vc([he("popupService")],t.prototype,"popupService",void 0),vc([he("focusController")],t.prototype,"focusController",void 0),t=vc([de("menuFactory")],t)}(Ke),Cc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Cc(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=p(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),C(this.dragSources,t))},t.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");r(t)&&nn(t,"ag-unselectable",e)},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var o=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(o=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",o,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:o,touchEnabled:t})},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o;var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,o=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||o._alreadyProcessedByDragService||(o._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var i=[{target:r,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t){return n.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.addEventListener(n,o,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.removeEventListener(n,o,r)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Ko(e,t,r(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:Qe.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:Qe.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},wc([he("loggerFactory")],t.prototype,"loggerFactory",void 0),wc([he("columnApi")],t.prototype,"columnApi",void 0),wc([he("gridApi")],t.prototype,"gridApi",void 0),wc([ce],t.prototype,"init",null),wc([pe],t.prototype,"removeAllListeners",null),t=wc([de("dragService")],t)}(Ke),bc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return bc(t,e),n=t,t.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},t.prototype.setSortForColumn=function(e,t,n,o){void 0===o&&(o="api"),t!==be.SORT_ASC&&t!==be.SORT_DESC&&(t=null),e.setSort(t,o),n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.updateSortIndex(e),this.dispatchSortChangedEvents()},t.prototype.updateSortIndex=function(e){var t=this.getColumnsWithSortingOrdered(),n=0;t.forEach((function(t){t!==e&&(t.setSortIndex(n),n++)})),e.getSort()&&e.setSortIndex(n),this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return null==e.getSort()})).forEach((function(e){return e.setSortIndex()}))},t.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},t.prototype.isSortActive=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(){var e={type:Qe.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var o,r=t.indexOf(e.getSort()),i=r<0,s=r==t.length-1;return o=i||s?t[0]:t[r+1],n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("ag-grid: invalid sort type "+o),null):o},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()})),n={};return e.forEach((function(e,t){return n[e.getId()]=t})),t.sort((function(e,t){var o=e.getSortIndex(),r=t.getSortIndex();return null!=o&&null!=r?o-r:null==o&&null==r?n[e.getId()]>n[t.getId()]?1:-1:null==r?-1:1})),t},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.DEFAULT_SORTING_ORDER=[be.SORT_ASC,be.SORT_DESC,null],Oc([he("columnController")],t.prototype,"columnController",void 0),Oc([he("columnApi")],t.prototype,"columnApi",void 0),Oc([he("gridApi")],t.prototype,"gridApi",void 0),t=n=Oc([de("sortController")],t)}(Ke),Sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_c=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return Sc(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Ge(this.gridOptionsWrapper,e,"cellComp")},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[n.GRID_DOM_KEY];if(r(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,o=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_NORMAL,r=e;if(null!=r.clientX||null!=r.clientY?(t=r.clientX,n=r.clientY):(t=r.x,n=r.y),o){var i=this.controllersService.getGridBodyController(),s=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=s.top}return{x:t,y:n}},t.gridInstanceSequence=new er,t.GRID_DOM_KEY="__ag_grid_instance",_c([he("controllersService")],t.prototype,"controllersService",void 0),t=n=_c([de("mouseEventService")],t)}(Ke),Tc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tc(t,e),t.prototype.getNextCellToFocus=function(e,t){for(var n=t,o=!1;!o;){switch(e){case Er.UP:n=this.getCellAbove(n);break;case Er.DOWN:n=this.getCellBelow(n);break;case Er.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case Er.LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+e)}o=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case be.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case be.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case be.PINNED_BOTTOM:return null;case be.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(be.PINNED_BOTTOM)?{rowIndex:0,rowPinned:be.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(be.PINNED_BOTTOM)?{rowIndex:0,rowPinned:be.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===be.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===be.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return(n?0===t:t===this.paginationProxy.getPageFirstRow())?n===be.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(be.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:be.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var s=this.getRowBelow(e);if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=y(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},Dc([he("columnController")],t.prototype,"columnController",void 0),Dc([he("rowModel")],t.prototype,"rowModel",void 0),Dc([he("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Dc([he("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Dc([de("cellNavigationService")],t)}(Ke),Nc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ic=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nc(t,e),t.prototype.formatValue=function(e,t,n,o,r,i){void 0===i&&(i=!0);var s,a=null,l=e.getColDef();if(r?s=r:i&&(s=t&&t.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var u={value:o,node:t,data:t?t.data:null,colDef:l,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=n,a=this.expressionService.evaluate(s,u)}else if(l.refData)return l.refData[o]||"";return null==a&&Array.isArray(o)&&(a=o.join(", ")),a},Ic([he("expressionService")],t.prototype,"expressionService",void 0),t=Ic([de("valueFormatterService")],t)}(Ke),xc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lc=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return xc(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Qe.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(za),Mc=["mouseover","mouseout","mouseenter","mouseleave"],Gc=function(){function e(){this.isOutsideAngular=function(e){return O(Mc,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListener=function(e,t,n,o){e.addEventListener(t,n,o)},e.prototype.dispatchEvent=function(e,t){t()},e}(),kc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kc(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e={horizontalScrollShowing:this.controllersService.getCenterRowContainerCon().isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(e)},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Qe.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Vc([he("columnApi")],t.prototype,"columnApi",void 0),Vc([he("gridApi")],t.prototype,"gridApi",void 0),Vc([he("controllersService")],t.prototype,"controllersService",void 0),Vc([ce],t.prototype,"postConstruct",null),t=Vc([de("scrollVisibleService")],t)}(Ke),Wc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},jc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wc(t,e),t.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,o){if(z(e))for(var r=Object.keys(e),i=0;i<r.length;i++){var s=r[i],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?n(s):o&&o(s)}},t.prototype.processStaticCellClasses=function(e,t,n){if(e.cellClass){var o=void 0;if("function"==typeof e.cellClass)o=(0,e.cellClass)(t);else o=e.cellClass;"string"==typeof o?n(o):Array.isArray(o)&&o.forEach((function(e){n(e)}))}},Bc([he("expressionService")],t.prototype,"expressionService",void 0),t=Bc([de("stylingService")],t)}(Ke),Uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uc(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Qe.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Qe.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},zc([he("columnApi")],t.prototype,"columnApi",void 0),zc([he("gridApi")],t.prototype,"gridApi",void 0),t=zc([de("columnHoverService")],t)}(Ke),Yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$c=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Yc(t,e),t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){return e.gridBodyCon=t.gridBodyCon}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCon.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCon.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},$c([he("controllersService")],t.prototype,"controllersService",void 0),$c([ce],t.prototype,"postConstruct",null),t=$c([de("columnAnimationService")],t)}(Ke),Xc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Xc(t,e),n=t,t.prototype.createAutoGroupColumns=function(e){var t=this,n=[],o=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return o&&r&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,o){n.push(t.createOneAutoGroupColumn(e,o))})):n.push(this.createOneAutoGroupColumn()),n},t.prototype.createOneAutoGroupColumn=function(e,t){var o,r=this.generateDefaultColDef(e);(o=e?be.GROUP_AUTO_COLUMN_ID+"-"+e.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,H(r,this.gridOptionsWrapper.getAutoGroupColumnDef()),(r=this.columnFactory.mergeColDefs(r)).colId=o,this.gridOptionsWrapper.isTreeData())||i(r.field)&&i(r.valueGetter)&&i(r.filterValueGetter)&&(r.filter=!1);t&&t>0&&(r.headerCheckboxSelection=!1);var s=new Se(r,null,o,!0);return this.context.createBean(s),s},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();W(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&W(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=be.GROUP_AUTO_COLUMN_ID,Qc([he("columnController")],t.prototype,"columnController",void 0),Qc([he("columnFactory")],t.prototype,"columnFactory",void 0),t=n=Qc([de("autoGroupColService")],t)}(Ke),Jc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ep=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Jc(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Qe.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,o){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:Qe.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:Qe.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Qe.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(r(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Qe.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!mt(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var o=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=o-1}}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!mt(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},ep([he("rowModel")],t.prototype,"rowModel",void 0),ep([he("columnApi")],t.prototype,"columnApi",void 0),ep([he("gridApi")],t.prototype,"gridApi",void 0),ep([ce],t.prototype,"postConstruct",null),t=ep([de("paginationProxy")],t)}(Ke),np=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),op=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return np(t,e),t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCon,e.addManagedListener(e.eventService,Qe.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,Qe.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},op([he("controllersService")],t.prototype,"controllersService",void 0),op([ce],t.prototype,"postConstruct",null),t=op([de("paginationAutoPageSizeService")],t)}(Ke),ip=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return ip(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},sp([ce],t.prototype,"init",null),t=sp([de("valueCache")],t)}(Ke),lp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),up=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lp(t,e),t.prototype.init=function(){this.rowModel.getType()===be.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Qe.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==be.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new Gs(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},up([he("rowModel")],t.prototype,"rowModel",void 0),up([he("rowRenderer")],t.prototype,"rowRenderer",void 0),up([ce],t.prototype,"init",null),t=up([de("changeDetectionService")],t)}(Ke),pp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hp=function(e,t){return function(n,o){t(n,o,e)}},fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return pp(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.controllersService.getGridBodyController().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Qe.EVENT_COLUMN_MOVED:case Qe.EVENT_COLUMN_VISIBLE:case Qe.EVENT_COLUMN_PINNED:case Qe.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Qe.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case Qe.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var o=t.getGroupId();n=this.columnController.getOriginalColumnGroup(o)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnController.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t=this,n=e.column,o=null;if(n&&(o=this.columnController.getPrimaryColumn(n.getColId())),!n||o){var r=this.getMasterColumns(e);switch(e.type){case Qe.EVENT_COLUMN_MOVED:var i=e,s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnController.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case Qe.EVENT_COLUMN_VISIBLE:var a=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnController.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible);break;case Qe.EVENT_COLUMN_PINNED:var l=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnController.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned);break;case Qe.EVENT_COLUMN_RESIZED:var u=e;r.forEach((function(n){t.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+n.getActualWidth());var o=[{key:n.getColId(),newWidth:n.getActualWidth()}];t.columnController.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.controllersService.getGridBodyController().isVerticalScrollShowing(),p=this.gridOptionsWrapper.getAlignedGrids();p&&p.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},dp([he("columnController")],t.prototype,"columnController",void 0),dp([he("controllersService")],t.prototype,"controllersService",void 0),dp([hp(0,ye("loggerFactory"))],t.prototype,"setBeans",null),dp([ce],t.prototype,"init",null),t=dp([de("alignedGridsService")],t)}(Ke),gp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gp(t,e),t.prototype.adaptFunction=function(e,t,n,o){if(null==t)return{component:null,componentFromFramework:n,source:o,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:n,component:r.functionAdapter(t),source:o,paramsFromSelector:null}:null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),n=typeof t;return"string"===n||"number"===n||"boolean"===n?En("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},yp([he("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=yp([de("agComponentUtils")],t)}(Ke),mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},Cp([he("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Cp([ce],t.prototype,"postConstruct",null),t=Cp([de("componentMetadataProvider")],t)}(Ke),Ep=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bp=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridBodyComp=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Ep([he("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ep([he("paginationProxy")],e.prototype,"paginationProxy",void 0),Ep([he("context")],e.prototype,"context",void 0),Ep([he("columnApi")],e.prototype,"columnApi",void 0),Ep([he("gridApi")],e.prototype,"gridApi",void 0),Ep([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ep([he("expressionService")],e.prototype,"expressionService",void 0),Ep([he("rowRenderer")],e.prototype,"rowRenderer",void 0),Ep([he("$compile")],e.prototype,"$compile",void 0),Ep([he("templateService")],e.prototype,"templateService",void 0),Ep([he("valueService")],e.prototype,"valueService",void 0),Ep([he("eventService")],e.prototype,"eventService",void 0),Ep([he("columnController")],e.prototype,"columnController",void 0),Ep([he("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ep([he("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Ep([fe("rangeController")],e.prototype,"rangeController",void 0),Ep([he("focusController")],e.prototype,"focusController",void 0),Ep([fe("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ep([he("popupService")],e.prototype,"popupService",void 0),Ep([he("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ep([he("stylingService")],e.prototype,"stylingService",void 0),Ep([he("columnHoverService")],e.prototype,"columnHoverService",void 0),Ep([he("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ep([he("animationFrameService")],e.prototype,"taskQueue",void 0),Ep([he("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ep([he("sortController")],e.prototype,"sortController",void 0),Ep([he("filterManager")],e.prototype,"filterManager",void 0),Ep([he("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ep([he("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ep([he("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),Ep([he("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Ep([he("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Ep([he("selectionController")],e.prototype,"selectionController",void 0),Ep([fe("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Ep([he("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Ep([he("rowModel")],e.prototype,"rowModel",void 0),Ep([he("controllersService")],e.prototype,"controllersService",void 0),Ep([ce],e.prototype,"postConstruct",null),e=Ep([de("beans")],e)}(),Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sp={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},_p={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Pp={},Tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Op(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=Sp[n][t],r=0;Pp[e]||(Pp[e]={});var i=Pp[e][t];if(null!=i)return i;if(_p[t]){var s=_p[t],a=document.createElement("div");en(a,e),a.style.position="absolute";var l=s.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",en(n,t),e.appendChild(n),n}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return Pp[e][t]=r||o,Pp[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,t=this.eGridDiv,n=null;t&&!(n=e.exec(t.className));)t=t.parentElement||void 0;if(!n)return{};var o=n[0];if(void 0===n[2]){var r=o.replace("ag-","ag-theme-");X((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+r+".")}),"using-old-theme")}return{theme:o,el:t,themeFamily:o.replace(/-dark$/,"")}},Rp([he("eGridDiv")],t.prototype,"eGridDiv",void 0),t=Rp([de("environment")],t)}(Ke),Dp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ap=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Np=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return Dp(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.controllersService.getGridBodyController();l||a<e;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(r.length)this.sortTaskList(o),c=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1;var e={type:Qe.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},Ap([he("controllersService")],t.prototype,"controllersService",void 0),Ap([ce],t.prototype,"init",null),t=Ap([de("animationFrameService")],t)}(Ke),Ip=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeLastPageEventProcessed=0,t}return Ip(t,e),t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){e.gridBodyCon=t.gridBodyCon}))},t.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,o=e.ctrlKey||e.metaKey,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var i=!1;switch(t){case Er.PAGE_HOME:case Er.PAGE_END:o||n||(this.onHomeOrEndKey(t),i=!0);break;case Er.LEFT:case Er.RIGHT:o&&!n&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case Er.UP:case Er.DOWN:o&&!n&&(this.onCtrlUpOrDown(t,r),i=!0);break;case Er.PAGE_DOWN:o||n||(this.onPageDown(r),i=!0);break;case Er.PAGE_UP:o||n||(this.onPageUp(r),i=!0)}return i&&e.preventDefault(),i},t.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},t.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,o=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(r(o)&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),r(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),this.animationFrameService.flushAllFrames(),this.focusController.setFocusedCell(i,s,null,!0),this.rangeController){var a={rowIndex:i,rowPinned:null,column:s};this.rangeController.setRangeToCell(a)}},t.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.controllersService.getGridBodyController().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),o=t.bottom-t.top;this.controllersService.getCenterRowContainerCon().isHorizontalScrollShowing()&&(o-=n);var r=this.paginationProxy.getPixelOffset(),i=t.top+o,s=this.paginationProxy.getRowIndexAtPixel(i+r),a=this.paginationProxy.getRow(e.rowIndex).rowTop+o-r,l=this.paginationProxy.getRowIndexAtPixel(a+r),u=this.paginationProxy.getPageLastRow();l>u&&(l=u),s>u&&(s=u),this.navigateTo({scrollIndex:s,scrollType:"top",scrollColumn:null,focusIndex:l,focusColumn:e.column}),this.setTimeLastPageEventProcessed()}},t.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.controllersService.getGridBodyController().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),o=t.bottom-t.top;this.controllersService.getCenterRowContainerCon().isHorizontalScrollShowing()&&(o-=n);var r=this.paginationProxy.getPixelOffset(),i=t.top,s=this.paginationProxy.getRowIndexAtPixel(i+r),a=this.paginationProxy.getRow(e.rowIndex),l=a.rowTop+a.rowHeight-o-r,u=this.paginationProxy.getRowIndexAtPixel(l+r),c=this.paginationProxy.getPageFirstRow();u<c&&(u=c),s<c&&(s=c),this.navigateTo({scrollIndex:s,scrollType:"bottom",scrollColumn:null,focusIndex:u,focusColumn:e.column}),this.setTimeLastPageEventProcessed()}},t.prototype.getIndexToFocus=function(e,t){var n=e;if(t){var o=this.paginationProxy.getRow(e);o&&o.stub&&(n-=1)}return n},t.prototype.onCtrlUpOrDown=function(e,t){var n=e===Er.UP,o=n?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:t.column,focusIndex:this.getIndexToFocus(o,!n),focusColumn:t.column})},t.prototype.onCtrlLeftOrRight=function(e,t){var n=e===Er.LEFT,o=this.columnController.getAllDisplayedColumns(),r=n?o[0]:y(o);this.navigateTo({scrollIndex:t.rowIndex,scrollType:null,scrollColumn:r,focusIndex:t.rowIndex,focusColumn:r})},t.prototype.onHomeOrEndKey=function(e){var t=e===Er.PAGE_HOME,n=this.columnController.getAllDisplayedColumns(),o=t?n[0]:y(n),r=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:this.getIndexToFocus(r,!t),focusColumn:o})},Fp([he("mouseEventService")],t.prototype,"mouseEventService",void 0),Fp([he("paginationProxy")],t.prototype,"paginationProxy",void 0),Fp([he("focusController")],t.prototype,"focusController",void 0),Fp([he("animationFrameService")],t.prototype,"animationFrameService",void 0),Fp([fe("rangeController")],t.prototype,"rangeController",void 0),Fp([he("columnController")],t.prototype,"columnController",void 0),Fp([he("controllersService")],t.prototype,"controllersService",void 0),Fp([ce],t.prototype,"postConstruct",null),t=Fp([de("navigationService")],t)}(Ke),Lp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gp=function(e,t){return function(n,o){t(n,o,e)}},kp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return Lp(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Qe.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Kt(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.controllersService.getGridBodyController().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Qe.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:Qe.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.controllersService.getGridBodyController().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},Mp([he("controllersService")],t.prototype,"controllersService",void 0),Mp([Gp(0,ye("loggerFactory"))],t.prototype,"agWire",null),Mp([ce],t.prototype,"postConstruct",null),t=Mp([de("rowContainerHeightService")],t)}(Ke),Vp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vp(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren)o=r(p(t(e),"selectable",!0));else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},Hp([ce],t.prototype,"init",null),t=Hp([de("selectableService")],t)}(Ke),Bp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bp(t,e),t.prototype.postConstruct=function(){var e=this;this.controllersService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCon}))},t.prototype.getPreferredHeightForRow=function(e){var t=this,n=document.createElement("div");this.addInRowCssClasses(e,n);var o=this.centerRowContainerCon.getContainerElement();o.appendChild(n);var r=zs.createChildScopeOrNull(e,this.$scope,this.beans.gridOptionsWrapper),i=r?r.scope:void 0,s=r?r.scopeDestroyFunc:void 0,a=[],l=this.columnController.getAllAutoRowHeightCols(),u=this.columnController.getAllDisplayedColumns();l.filter((function(e){return u.indexOf(e)>=0})).forEach((function(o){var r=new ba(i,t.beans,o,e,null,!0,!1,n,!1);a.push(r)})),a.forEach((function(e){return n.appendChild(e.getGui())})),i&&this.$compile(n)(i);for(var c=0,p=0;p<n.children.length;p++){var d=n.children[p];d.offsetHeight>c&&(c=d.offsetHeight)}return o.removeChild(n),a.forEach((function(e){e.detach(),e.destroy()})),s&&s(),c},t.prototype.addInRowCssClasses=function(e,t){var n=e.rowIndex,o={rowNode:e,rowIsEven:n%2==0,rowLevel:this.rowCssClassCalculator.calculateRowLevel(e),firstRowOnPage:n===this.beans.paginationProxy.getPageFirstRow(),lastRowOnPage:n===this.beans.paginationProxy.getPageLastRow(),printLayout:!1,expandable:e.isExpandable()};en(t,this.rowCssClassCalculator.getInitialRowClasses(o).join(" "))},jp([he("beans")],t.prototype,"beans",void 0),jp([he("$scope")],t.prototype,"$scope",void 0),jp([he("columnController")],t.prototype,"columnController",void 0),jp([he("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),jp([he("$compile")],t.prototype,"$compile",void 0),jp([he("controllersService")],t.prototype,"controllersService",void 0),jp([ce],t.prototype,"postConstruct",null),t=jp([de("autoHeightCalculator")],t)}(Ke),zp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yp=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return zp(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Vo(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Vo(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Vo(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Vo(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Qe.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var n=t.el,o=t.fn;e.addManagedListener(n,"click",o),e.addManagedListener(n,"keydown",(function(e){e.keyCode!==Er.ENTER&&e.keyCode!==Er.SPACE||(e.preventDefault(),o())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):wt(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of"),r=e("firstPage","First Page"),i=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'" aria-live="polite" aria-describedby="'+("ag-"+l+"-start-page ag-"+l+"-start-page-number ag-"+l+"-of-page ag-"+l+"-of-page-number")+" "+("ag-"+l+"-first-row ag-"+l+"-to ag-"+l+"-last-row ag-"+l+"-of ag-"+l+"-row-count")+'">\n <span class="ag-paging-row-summary-panel" aria-hidden="true">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+n+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+o+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'" tabindex="0"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'" tabindex="0"></div>\n <span class="ag-paging-description" aria-hidden="true">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+o+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'" tabindex="0"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'" tabindex="0"></div>\n </span>\n </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,nn(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled),po(this.btFirst,this.previousAndFirstButtonsDisabled),nn(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),po(this.btPrevious,this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,nn(this.btNext,"ag-disabled",this.nextButtonDisabled),po(this.btNext,this.nextButtonDisabled),this.lastButtonDisabled=!t||o||e===n-1,nn(this.btLast,"ag-disabled",this.lastButtonDisabled),po(this.btLast,this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var o=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=o,this.lbRecordCount.innerHTML=o}},Kp([he("paginationProxy")],t.prototype,"paginationProxy",void 0),Kp([he("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Kp([gr("btFirst")],t.prototype,"btFirst",void 0),Kp([gr("btPrevious")],t.prototype,"btPrevious",void 0),Kp([gr("btNext")],t.prototype,"btNext",void 0),Kp([gr("btLast")],t.prototype,"btLast",void 0),Kp([gr("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Kp([gr("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Kp([gr("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Kp([gr("lbCurrent")],t.prototype,"lbCurrent",void 0),Kp([gr("lbTotal")],t.prototype,"lbTotal",void 0),Kp([ce],t.prototype,"postConstruct",null),t}(dr),$p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $p(t,e),t.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var o,r,i,s,a,l=this.getFrameworkOverrides(),u=re(t,n),c=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!c?((a=new window.ResizeObserver(u)).observe(e),function(){return a.disconnect()}):(o=On(e),r=bn(e),i=!0,(s=function(){if(i){var a=On(e),u=bn(e);(a!==o||u!==r)&&(o=a,r=u,t()),l.setTimeout(s,n)}})(),function(){return i=!1})},t=qp([de("resizeObserverService")],t)}(Ke),Qp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Mu||(Mu={}));var Jp=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.inProgress=!1,t.destroyRequested=!1,t}return Qp(n,e),n.prototype.updateLayoutClasses=function(e){nn(this.eOverlayWrapper,t.LayoutCssClasses.AUTO_HEIGHT,e.autoHeight),nn(this.eOverlayWrapper,t.LayoutCssClasses.NORMAL,e.normal),nn(this.eOverlayWrapper,t.LayoutCssClasses.PRINT,e.print)},n.prototype.postConstruct=function(){this.createManagedBean(new Kl(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Qe.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){nn(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===Mu.Loading),nn(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===Mu.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Mu.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Mu.NoRows)}},n.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),mn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Zp([he("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Zp([he("paginationProxy")],n.prototype,"paginationProxy",void 0),Zp([he("gridApi")],n.prototype,"gridApi",void 0),Zp([he("columnController")],n.prototype,"columnController",void 0),Zp([gr("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),Zp([ce],n.prototype,"postConstruct",null),n}(dr),ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),td=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nd=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,t.getTemplate(n))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=n.title,i=n.enabled,s=n.items,a=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=n.cssIdentifier||"default",o.enabled=null==i||i,o.items=s||[],o.alignItems=n.alignItems||"center",null!=a&&(o.suppressEnabledCheckbox=a),null!=l&&(o.suppressOpenCloseIcons=l),o}return ed(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(ko("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(ko("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.keyCode){case Er.ENTER:e.toggleGroupExpand();break;case Er.RIGHT:e.toggleGroupExpand(!0);break;case Er.LEFT:e.toggleGroupExpand(!1)}}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;sn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),sn(this.eGroupOpenedIcon,e&&this.expanded),sn(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();return this.alignItems!==e&&tn(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e,en(t,"ag-group-item-alignment-"+this.alignItems),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),sn(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshChildDisplay(),sn(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof dr?e.getGui():e;en(n,"ag-group-item"),en(n,"ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){nn(this.items[t],"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){en(this.eTitleBar,e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){nn(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(en(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(tn(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),nn(this.eContainer,"ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",td([gr("eTitleBar")],t.prototype,"eTitleBar",void 0),td([gr("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),td([gr("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),td([gr("eToolbar")],t.prototype,"eToolbar",void 0),td([gr("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),td([gr("eTitle")],t.prototype,"eTitle",void 0),td([gr("eContainer")],t.prototype,"eContainer",void 0),td([ce],t.prototype,"postConstruct",null),t}(dr),od=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},id=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.positioned=!1,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.size={width:void 0,height:void 0},o.config=n,o}return od(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,o=t.closable,r=t.hideTitleBar,i=t.title,s=t.minWidth,a=t.width,l=t.minHeight,u=t.height,c=t.centered,p=t.x,d=t.y,h=this.getGui();n&&this.setBodyComponent(n),r?en(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){if(h.contains(t.relatedTarget)||h.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),u&&this.setHeight(u),this.renderComponent&&this.renderComponent(),a&&u||this.refreshSize(),c?this.center():(p||d)&&this.offsetElement(p,d),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),n=e.e,o=e.isLeft,r=e.isTop,i=e.anywhereWithin,s=e.topBuffer,a=n.clientX-this.dragStartPosition.x,l=n.clientY-this.dragStartPosition.y,u=this.getWidth(),c=this.getHeight(),p=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+u;return p||(p=o?a<0&&n.clientX>this.position.x+t.left||a>0&&n.clientX<this.position.x+t.left:i?a<0&&n.clientX>this.position.x+t.left+u||a>0&&n.clientX<this.position.x+t.left:a<0&&n.clientX>this.position.x+t.left+u||a>0&&n.clientX<this.position.x+t.left+u),{movementX:a=p?0:a,movementY:l=t.top>=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+c||r&&(l<0&&n.clientY>this.position.y+t.top+(s||0)||l>0&&n.clientY<this.position.y+t.top)||!r&&(l<0&&n.clientY>this.position.y+t.top+c||l>0&&n.clientY<this.position.y+t.top+c)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,n=e.height;t||this.setWidth(this.getGui().offsetWidth),n||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getGui();this.popupService.positionPopup({ePopup:n,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(n.style.left,10),this.position.y=parseInt(n.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))In(t,e),e=hn(t),n=!0;else{e=Math.max(this.minHeight,e);var o=t.offsetParent;o&&o.clientHeight&&e+this.position.y>o.clientHeight&&(e=o.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,n?(t.style.maxHeight="unset",t.style.minHeight="unset"):In(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Nn(t,e),e=fn(t),n=!0;else{e=Math.max(this.minWidth,e);var o=t.offsetParent;o&&o.clientWidth&&e+this.position.x>o.clientWidth&&(e=o.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,n?(t.style.maxWidth="unset",t.style.minWidth="unset"):Nn(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,n=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,n)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new dr(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n),(o=n.getGui()).appendChild(en(Vo("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(n),n.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o;(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var i=e.getGui();en(i,"ag-panel-title-bar-button"),0===t?n.insertAdjacentElement("afterbegin",i):t===r?n.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return pn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return dn(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',rd([he("popupService")],t.prototype,"popupService",void 0),rd([gr("eContentWrapper")],t.prototype,"eContentWrapper",void 0),rd([gr("eTitleBar")],t.prototype,"eTitleBar",void 0),rd([gr("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),rd([gr("eTitle")],t.prototype,"eTitle",void 0),rd([ce],t.prototype,"postConstruct",null),t}(dr),sd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ad=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ld=function(e){function t(t){var n=e.call(this,t)||this;return n.RESIZE_TEMPLATE='<div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',n.resizable={},n.movable=!1,n.isMoving=!1,n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.isResizing=!1,n.lastPosition={x:0,y:0,width:0,height:0},n}return sd(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;en(n,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal,r=this.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n});r&&(this.close=r.hideFunc)},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var n=!!t.match(/left/i),o=!!t.match(/right/i),r=!!t.match(/top/i),i=!!t.match(/bottom/i),s=n||o,a=r||i,l=this.calculateMouseMovement({e,isLeft:n,isTop:r}),u=l.movementX,c=l.movementY,p=0,d=0;if(s&&u){var h=n?-1:1,f=this.getWidth(),g=f+u*h,y=!1;n&&(p=f-g,(this.position.x+p<=0||g<=this.minWidth)&&(y=!0,p=0)),y||this.setWidth(g)}if(a&&c){h=r?-1:1;var v=this.getHeight(),m=v+c*h,C=!1;r&&(d=v-m,(this.position.y+d<=0||m<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(m)}this.updateDragStartPosition(e.clientX,e.clientY),(p||d)&&this.offsetElement(this.position.x+p,this.position.y+d)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,n=t.x,o=t.y,r=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),i=r.movementX,s=r.movementY;this.offsetElement(n+i,o+s),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,n=e.y,o=e.width,r=e.height;this.setWidth(o),this.setHeight(r),this.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){sn(this.maximizeIcon,!this.isMaximized),sn(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){var t=this;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(n){var o=n,r=!!e[o],i=t.getResizerElement(o),s=t.resizerMap[o].dragSource||{eElement:i,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,o)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[o]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(s),i.style.pointerEvents="all"):(t.dragService.removeDragSource(s),i.style.pointerEvents="none"),t.resizerMap[o].dragSource=r?s:void 0)}))},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=this.createBean(new dr('<div class="ag-dialog-button"></span>')),r=o.getGui();r.appendChild(this.maximizeIcon=Vo("maximize",this.gridOptionsWrapper)),en(this.maximizeIcon,"ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Vo("minimize",this.gridOptionsWrapper)),en(this.minimizeIcon,"ag-panel-title-bar-button-icon"),en(this.minimizeIcon,"ag-hidden"),o.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ad([he("dragService")],t.prototype,"dragService",void 0),t}(id),ud=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cd=function(e){function t(t,n,o){return void 0===n&&(n="ag-text-field"),void 0===o&&(o="text"),e.call(this,t,n,o)||this}return ud(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=r(t)?t:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){P(t.clipboardData.getData("text"),(function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(ja),pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dd=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return pd(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(ja),hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gd=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.labelAlignment="top",o}return hd(t,e),t.prototype.init=function(){en(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Ha.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Ha.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',fd([gr("eLabel")],t.prototype,"eLabel",void 0),fd([gr("eSlider")],t.prototype,"eSlider",void 0),fd([gr("eText")],t.prototype,"eText",void 0),fd([ce],t.prototype,"init",null),t}(ka),yd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},md=function(e){function t(n){var o=e.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlphaDragging=!1,o.colorChanged=!1,o.picker=n.picker,o}return yd(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,o=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),o=Math.max(o,0),o=Math.min(o,t.height),this.setSpectrumValue(n/t.width,1-o/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.update=function(){var e=Xn.fromHSB(360*this.H,this.S,this.B,this.A),t=Xn.fromHSB(360*this.H,1,1),n=e.toRgbaString(),o=this.picker;Xn.fromString(o.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),o.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var o=this.spectrumDragger,r=o.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,o.style.left=e*n.width-r.width/2+"px",o.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=Xn.fromString(e),n=t.toHSB(),o=n[0],r=n[1],i=n[2];this.H=(isNaN(o)?0:o)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(r,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(r(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Xn.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',vd([gr("spectrumColor")],t.prototype,"spectrumColor",void 0),vd([gr("spectrumVal")],t.prototype,"spectrumVal",void 0),vd([gr("spectrumDragger")],t.prototype,"spectrumDragger",void 0),vd([gr("spectrumHue")],t.prototype,"spectrumHue",void 0),vd([gr("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),vd([gr("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),vd([gr("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),vd([gr("recentColors")],t.prototype,"recentColors",void 0),vd([ce],t.prototype,"postConstruct",null),t}(dr),Cd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ed=function(e){function t(t,n,o,r){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n '+(r?'aria-haspopup="'+r+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',n)||this;return i.pickerIcon=o,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Cd(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),co(this.eWrapper,n);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&wn(t.pickerComponent.getGui())&&r.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(e){switch(e.keyCode){case Er.UP:case Er.DOWN:case Er.ENTER:case Er.SPACE:o();case Er.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var i=Vo(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){r(this.getLabel())?uo(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return lo(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return An(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},wd([gr("eLabel")],t.prototype,"eLabel",void 0),wd([gr("eWrapper")],t.prototype,"eWrapper",void 0),wd([gr("eDisplayField")],t.prototype,"eDisplayField",void 0),wd([gr("eIcon")],t.prototype,"eIcon",void 0),t}(Ha),bd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Od=function(e){function t(t){var n=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(n.value=t.color),n}return bd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=this.createBean(new ld({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,en(n.getGui(),"ag-color-dialog");var o=this.createBean(new md({picker:this}));return o.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&e.destroyBean(o)),e.isAlive()&&e.getFocusableElement().focus(),e.isPickerDisplayed=!1})),n},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(Ed),Rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sd=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return Rd(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Vn(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Vn(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Vn(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(cd),_d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pd=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return _d(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,o=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=o&&this.setMaxValue(o),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this,t=Vt()?"change":"input";this.addManagedListener(this.eInput,t,(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(ja),Td=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ad=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Td(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.keyCode;switch(t){case Er.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case Er.DOWN:case Er.UP:var o=t===Er.DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(r)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,n=st(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this},t.prototype.renderOption=function(e,t){var n=this,o=document.createElement("div");o.setAttribute("role","option"),en(o,"ag-list-item"),en(o,"ag-"+this.cssIdentifier+"-list-item"),o.innerHTML="<span>"+t+"</span>",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return n.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=S(this.options,(function(t){return t.value===e}));if(-1!==n){var o=this.options[n];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=S(this.options,(function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,en(this.highlightedEl,t.ACTIVE_CLASS),So(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(tn(this.highlightedEl,t.ACTIVE_CLASS),So(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Ha.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",Dd([ce],t.prototype,"init",null),t}(dr),Nd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Id=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fd=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Nd(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Ad("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Ad.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Ha.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.addManagedListener(document.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),o=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),r=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,o(),n(),e.isAlive()&&e.getFocusableElement().focus()}});return r&&(this.hideList=r.hideFunc),this.isPickerDisplayed=!0,An(t,fn(this.eWrapper)),t.style.maxHeight=pn(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,o){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Id([he("popupService")],t.prototype,"popupService",void 0),Id([ce],t.prototype,"init",null),t}(Ed),xd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ld=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Md=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return xd(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),r(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Ha.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,o=t.width/2,r=t.height/2;n.style.left=o+8*Math.cos(e)+"px",n.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=t.width/2,o=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-o,s=Math.atan2(i,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,Ha.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Ha.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Nn(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',Ld([gr("eLabel")],t.prototype,"eLabel",void 0),Ld([gr("eParentCircle")],t.prototype,"eParentCircle",void 0),Ld([gr("eChildCircle")],t.prototype,"eChildCircle",void 0),Ld([gr("eAngleValue")],t.prototype,"eAngleValue",void 0),Ld([he("dragService")],t.prototype,"dragService",void 0),t}(ka),Gd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kd=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Gd(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),nn(this.getGui(),"ag-selected",this.getValue()),this},t}(za),Vd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheItems=[],t}return Vd(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},t.prototype.addOrDestroy=function(e,t,n){if(!this.active||!e.detail)this.destroyFullWidthRow(n);else{var o=this.getCacheItem(e,!0);switch(t){case be.PINNED_LEFT:this.destroyFullWidthRow(o.left),o.left=n;break;case be.PINNED_RIGHT:this.destroyFullWidthRow(o.right),o.right=n;break;default:this.destroyFullWidthRow(o.center),o.center=n}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},t.prototype.getCacheItem=function(e,t){void 0===t&&(t=!1);for(var n=null,o=0;o<this.cacheItems.length;o++){var r=this.cacheItems[o];if(r.rowNode===e){n=r;break}}return!n&&t&&(n={rowNode:e},this.cacheItems.push(n)),n&&this.stampCacheItem(n),n},t.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},t.prototype.destroyFullWidthRow=function(e){this.getContext().destroyBean(e)},t.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var n=this.cacheItems[t];this.destroyFullWidthRow(n.center),this.destroyFullWidthRow(n.left),this.destroyFullWidthRow(n.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},t.prototype.get=function(e,t){if(e.detail){var n,o=this.getCacheItem(e);if(o)switch(t){case be.PINNED_LEFT:o.left&&(n=o.left,o.left=void 0);break;case be.PINNED_RIGHT:o.right&&(n=o.right,o.right=void 0);break;default:o.center&&(n=o.center,o.center=void 0)}return n}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.purgeCache(0)},Hd([ce],t.prototype,"postConstruct",null),Hd([pe],t.prototype,"destroy",null),t=Hd([de("detailRowCompCache")],t)}(Ke),Bd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ud=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bd(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=be.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=be.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),o=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=be.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):o&&(t=be.PINNED_TOP,e=o-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case be.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case be.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case be.PINNED_TOP:if(t.rowPinned!==be.PINNED_TOP)return!0;break;case be.PINNED_BOTTOM:if(t.rowPinned!==be.PINNED_BOTTOM)return!1;break;default:if(r(t.rowPinned))return t.rowPinned!==be.PINNED_TOP}return e.rowIndex<t.rowIndex},jd([he("rowModel")],t.prototype,"rowModel",void 0),jd([he("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),jd([he("paginationProxy")],t.prototype,"paginationProxy",void 0),t=jd([de("rowPositionUtils")],t)}(Ke),zd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zd(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},t=Kd([de("cellPositionUtils")],t)}(Ke),$d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $d(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return s(e===be.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===be.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(s(n))return 0;for(var o=0;o<n.length;o++){var r=n[o];if(r.rowTop+r.rowHeight-1>=e)return o}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Qe.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Qe.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new Qr;n.context.createBean(s),s.data=e;var a=t?Qr.ID_PREFIX_TOP_PINNED:Qr.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?be.PINNED_TOP:be.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=y(e);return t.rowTop+t.rowHeight},qd([he("columnApi")],t.prototype,"columnApi",void 0),qd([he("gridApi")],t.prototype,"gridApi",void 0),qd([ce],t.prototype,"init",null),t=qd([de("pinnedRowModel")],t)}(Ke),Qd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zd=function(e){this.cellValueChanges=e},Jd=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return Qd(t,e),t}(Zd),eh=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),th=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},oh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.isCellEditing=!1,t.isRowEditing=!1,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){if(t.isCellEditing||t.isRowEditing||t.isPasting||t.isFilling){var n=e.rowPinned,o=e.rowIndex,r=e.column,i=e.oldValue,s=e.value,a={rowPinned:n,rowIndex:o,columnId:r.getColId(),newValue:s,oldValue:i};t.cellValueChanges.push(a)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return th(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new eh(e),this.redoStack=new eh(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Qe.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Qe.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Qe.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Jd?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Jd?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);a.displayed&&a.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){var n;if(t){var o=t.startRow,r=t.endRow;n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:t.startColumn.getColId()},this.setLastFocusedCell(n);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a);n={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),Oe.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(n,o,r,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Qe.EVENT_ROW_EDITING_STARTED,(function(){e.isRowEditing=!0})),this.addManagedListener(this.eventService,Qe.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Zd(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Qe.EVENT_CELL_EDITING_STARTED,(function(){e.isCellEditing=!0})),this.addManagedListener(this.eventService,Qe.EVENT_CELL_EDITING_STOPPED,(function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new Zd(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Qe.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,Qe.EVENT_PASTE_END,(function(){var t=new Zd(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Qe.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,Qe.EVENT_FILL_END,(function(t){var n=new Jd(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case be.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case be.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},nh([he("focusController")],n.prototype,"focusController",void 0),nh([he("gridApi")],n.prototype,"gridApi",void 0),nh([he("rowModel")],n.prototype,"rowModel",void 0),nh([he("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),nh([ce],n.prototype,"init",null),n=nh([de("undoRedoService")],n)}(Ke),rh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ih=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return rh(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=ih([de("agStackComponentsRegistry")],t)}(Ke),ah=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ah(t,e),t.prototype.findHeader=function(e,t){var n,o,r;if(e.column instanceof Pe?(o="getDisplayedGroup"+t,n=this.columnController[o](e.column)):(r="getDisplayedCol"+t,n=this.columnController[r](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var n=this.columnController.getAllDisplayedColumns(),o=n["start"===t?0:n.length-1];if(o){var r=this.headerNavigationService.getHeaderContainer(o.getPinned()).getRowComps()[e];return(r&&r.getType())==Js.COLUMN_GROUP?{headerRowIndex:e,column:this.columnController.getColumnGroupAtLevel(o,e)}:{headerRowIndex:r?e:-1,column:o}}},lh([he("columnController")],t.prototype,"columnController",void 0),lh([he("headerNavigationService")],t.prototype,"headerNavigationService",void 0),t=lh([de("headerPositionUtils")],t)}(Ke),ch=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ph=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var o=this,r=[],i={};return e.forEach((function(e){for(var s=!0,a=o.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=i[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=o.createDefFromGroup(l))&&(u.children=[a],i[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&r.push(a)})),r},e.prototype.createDefFromGroup=function(e){var t=x(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var o=x(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?n.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSort()?e.getSort():null,o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o},e=ch([de("columnDefFactory")],e)}(),dh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hh=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return r(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),R(t,this.processClassesFromGridOptions(e.rowNode,e.scope)),R(t,this.preProcessRowClassRules(e.rowNode,e.scope)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===be.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===be.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e,t){var n=[],o=function(e){"string"==typeof e?n.push(e):Array.isArray(e)&&e.forEach((function(e){return n.push(e)}))},r=this.gridOptionsWrapper.getRowClass();if(r){if("function"==typeof r)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(r)}var i=this.gridOptionsWrapper.getRowClassFunc();i&&o(i({data:e.data,node:e,rowIndex:e.rowIndex,$scope:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return n},e.prototype.preProcessRowClassRules=function(e,t){var n=[];return this.processRowClassRules(e,t,(function(e){n.push(e)}),(function(e){})),n},e.prototype.processRowClassRules=function(e,t,n,o){var r={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),$scope:t,context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),r,n,o)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},dh([he("stylingService")],e.prototype,"stylingService",void 0),dh([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=dh([de("rowCssClassCalculator")],e)}(),fh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gh=function(e){function t(n){var o=e.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=n,o}return fh(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Ke),yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mh=function(e,t){return function(n,o){t(n,o,e)}},Ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n;return yh(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=Jo.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(gh.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Jo.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===gh.STATE_WAITING_TO_LOAD&&(e=t)})),e&&(e.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getBlockStateJson(),o=n.id,r=n.state;e[o]=r})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",vh([ce],t.prototype,"postConstruct",null),vh([mh(0,ye("loggerFactory"))],t.prototype,"setBeans",null),t=n=vh([de("rowNodeBlockLoader")],t)}(Ke),wh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Eh=function(){function e(){}return e.prototype.doFullSort=function(e,t){var n=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return n.sort(this.compareRowNodes.bind(this,t)),n.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=a.sort===be.SORT_DESC,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0,d=a.column.getColDef().comparator;if(0!==(p=d?d(u,c,o,r,l):Jo.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort())))return a.sort===be.SORT_ASC?p:-1*p}return t.currentPos-n.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},wh([he("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wh([he("valueService")],e.prototype,"valueService",void 0),e=wh([de("rowNodeSorter")],e)}(),bh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}return bh(t,e),t.prototype.checkReady=function(){if(this.ready=null!=this.gridCompCon&&null!=this.gridBodyCon&&null!=this.centerRowContainerCon&&null!=this.leftRowContainerCon&&null!=this.rightRowContainerCon&&null!=this.bottomCenterRowContainerCon&&null!=this.bottomLeftRowContainerCon&&null!=this.bottomRightRowContainerCon&&null!=this.topCenterRowContainerCon&&null!=this.topLeftRowContainerCon&&null!=this.topRightRowContainerCon&&null!=this.fakeHScrollCon&&null!=this.headerRootComp,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCon:this.centerRowContainerCon,leftRowContainerCon:this.leftRowContainerCon,rightRowContainerCon:this.rightRowContainerCon,bottomCenterRowContainerCon:this.bottomCenterRowContainerCon,bottomLeftRowContainerCon:this.bottomLeftRowContainerCon,bottomRightRowContainerCon:this.bottomRightRowContainerCon,topCenterRowContainerCon:this.topCenterRowContainerCon,topLeftRowContainerCon:this.topLeftRowContainerCon,topRightRowContainerCon:this.topRightRowContainerCon,fakeHScrollCon:this.fakeHScrollCon,gridBodyCon:this.gridBodyCon,gridCompCon:this.gridCompCon,headerRootComp:this.headerRootComp}},t.prototype.registerFakeHScrollCon=function(e){this.fakeHScrollCon=e,this.checkReady()},t.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e,this.checkReady()},t.prototype.registerCenterRowContainerCon=function(e){this.centerRowContainerCon=e,this.checkReady()},t.prototype.registerLeftRowContainerCon=function(e){this.leftRowContainerCon=e,this.checkReady()},t.prototype.registerRightRowContainerCon=function(e){this.rightRowContainerCon=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCon=function(e){this.topCenterRowContainerCon=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCon=e,this.checkReady()},t.prototype.registerTopRightRowContainerCon=function(e){this.topRightRowContainerCon=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCon=function(e){this.bottomCenterRowContainerCon=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCon=function(e){this.bottomLeftRowContainerCon=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCon=function(e){this.bottomRightRowContainerCon=e,this.checkReady()},t.prototype.registerGridBodyController=function(e){this.gridBodyCon=e,this.checkReady()},t.prototype.registerGridCompController=function(e){this.gridCompCon=e,this.checkReady()},t.prototype.getFakeHScrollCon=function(){return this.fakeHScrollCon},t.prototype.getHeaderRootComp=function(){return this.headerRootComp},t.prototype.getGridCompController=function(){return this.gridCompCon},t.prototype.getCenterRowContainerCon=function(){return this.centerRowContainerCon},t.prototype.getTopCenterRowContainerCon=function(){return this.topCenterRowContainerCon},t.prototype.getBottomCenterRowContainerCon=function(){return this.bottomCenterRowContainerCon},t.prototype.getGridBodyController=function(){return this.gridBodyCon},t=Oh([de("controllersService")],t)}(Ke),Sh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_h=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ph=function(e){function t(){return e.call(this)||this}return Sh(t,e),t.prototype.setView=function(e,t,n){this.view=e,this.eViewport=t,this.eContainer=n,this.addManagedListener(this.eventService,Qe.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_DOM_LAYOUT,o),this.setFakeHScrollSpacerWidths(),this.controllersService.registerFakeHScrollCon(this)},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnController.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,o=this.gridOptionsWrapper.getScrollbarWidth();n&&(t+=o),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=o);var r=this.columnController.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(r+=o),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=o)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=qt(),n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===o&&t?15:o,i=Vt()&&e;this.view.setInvisibleStyles(t),this.view.setHeight(r),this.view.setViewportHeight(r+(i?1:0)),this.view.setContainerHeight(r)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},_h([he("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),_h([he("columnController")],t.prototype,"columnController",void 0),_h([he("controllersService")],t.prototype,"controllersService",void 0),_h([ce],t.prototype,"postConstruct",null),t}(Ke),Th=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ah=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Th(t,e),t.prototype.postConstruct=function(){var e=this,t={setHeight:function(t){return In(e.getGui(),t)},setContainerHeight:function(t){return In(e.eContainer,t)},setViewportHeight:function(t){return In(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return Nn(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return Nn(e.eLeftSpacer,t)},setInvisibleStyles:function(t){return nn(e.getGui(),"ag-invisible-scrollbar",t)},includeLeftSpacerScrollerCss:function(t,n){return nn(e.eLeftSpacer,t,n)},includeRightSpacerScrollerCss:function(t,n){return nn(e.eRightSpacer,t,n)}};this.controller=this.createManagedBean(new Ph),this.controller.setView(t,this.eViewport,this.eContainer),this.createManagedBean(new Il((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',Dh([gr("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),Dh([gr("eRightSpacer")],t.prototype,"eRightSpacer",void 0),Dh([gr("eViewport")],t.prototype,"eViewport",void 0),Dh([gr("eContainer")],t.prototype,"eContainer",void 0),Dh([ce],t.prototype,"postConstruct",null),t}(dr),Nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ih=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,t=e?0:this.columnController.getDisplayedColumnsLeftWidth(),n=e?0:this.columnController.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:Qe.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Qe.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Ih([he("columnController")],t.prototype,"columnController",void 0),Ih([ce],t.prototype,"postConstruct",null),t=Ih([de("pinnedWidthService")],t)}(Ke),xh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lh=function(e){function n(t,n,o,r){var i=e.call(this)||this;i.cellComps={},i.container=n,i.beans=o,i.rowNode=t.getRowNode(),i.pinned=r,i.controller=t;var s=i.createTemplate();switch(i.setTemplate(s),i.afterRowAttached(),r){case be.PINNED_LEFT:t.setLeftRowComp(i);break;case be.PINNED_RIGHT:t.setRightRowComp(i);break;default:t.isFullWidth()&&!o.gridOptionsWrapper.isEmbedFullWidthRows()?t.setFullWidthRowComp(i):t.setCenterRowComp(i)}return t.isFullWidth()?i.createFullWidthRowCell():(i.onColumnChanged(),i.controller.refreshAriaLabel(i.getGui(),!!i.rowNode.isSelected())),i}return xh(n,e),n.prototype.createFullWidthRowCell=function(){var e=this,n=this.controller.createFullWidthParams(this.getGui(),this.pinned),o=function(t){if(e.isAlive()){var n=t.getGui();e.getGui().appendChild(n),e.controller.getRowType()===Ls.FullWidthDetail&&e.controller.setupDetailRowAutoHeight(n),e.setFullWidthRowComp(t)}else e.beans.context.destroyBean(t)},r=this.beans.detailRowCompCache.get(this.rowNode,this.pinned);if(r)o(r);else{var i=Xs.get(this.controller.getRowType()),s=qs.get(this.controller.getRowType()),a=this.beans.userComponentFactory.newFullWidthCellRenderer(n,i,s);if(a)a.then(o);else{var l=Oe.isRegistered(t.ModuleNames.MasterDetailModule);"agDetailCellRenderer"!==s||l?console.error("AG Grid: fullWidthCellRenderer "+s+" not found"):console.warn("AG Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?")}}},n.prototype.onColumnChanged=function(){var e=this,t=this.controller.getColsForRowComp(this.pinned),n=W({},this.cellComps);t.forEach((function(t){var o=t.getId(),r=e.cellComps[o];r&&r.getColumn()!==t&&(e.destroyCells([r]),r=null),null==r?e.newCellComp(t):n[o]=null}));var o=V(n).filter((function(t){return!!t&&e.isCellEligibleToBeRemoved(t)}));this.destroyCells(o),this.ensureDomOrder(t)},n.prototype.ensureDomOrder=function(e){var t=this;if(this.beans.gridOptionsWrapper.isEnsureDomOrder()){var n=[];e.forEach((function(e){var o=t.cellComps[e.getColId()];o&&n.push(o.getGui())})),Sn(this.getGui(),n)}},n.prototype.isCellEligibleToBeRemoved=function(e){var t=!0;if(e.getColumn().getPinned()!=this.pinned)return t;var n=e.isEditing(),o=this.beans.focusController.isCellFocused(e.getCellPosition());if(n||o){var r=e.getColumn();return!(this.beans.columnController.getAllDisplayedColumns().indexOf(r)>=0)&&t}return t},n.prototype.newCellComp=function(e){var t=new ba(this.controller.getScope(),this.beans,e,this.rowNode,this.controller,!1,this.controller.isPrintLayout(),this.getGui(),this.controller.isEditing());this.cellComps[e.getId()]=t,this.getGui().appendChild(t.getGui())},n.prototype.getCellComp=function(e){return this.cellComps[e]},n.prototype.getCellCompSpanned=function(e){var t=this,n=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return n.length?n[0]:null},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},n.prototype.destroyAllCells=function(){var e=V(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},n.prototype.getContainer=function(){return this.container},n.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthRowComponent&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthRowComponent=e,this.addDestroyFunc((function(){t.beans.detailRowCompCache.addOrDestroy(t.rowNode,t.pinned,e),t.fullWidthRowComponent=null}))},n.prototype.getFullWidthRowComp=function(){return this.fullWidthRowComponent},n.prototype.createTemplate=function(){var e=this.controller,t=[],n=this.rowNode.rowHeight,o=e.getInitialRowClasses(this.pinned).join(" "),r=st(this.rowNode.id),i=e.preProcessStylesFromGridOptions(),s=e.getRowBusinessKey(),a=st(s),l=e.getInitialRowTopStyle(),u=this.rowNode.getRowIndexString(),c=this.beans.headerNavigationService.getHeaderRowCount();return t.push("<div"),t.push(' role="row"'),t.push(' row-index="'+u+'" aria-rowindex="'+(c+this.rowNode.rowIndex+1)+'"'),t.push(r?' row-id="'+r+'"':""),t.push(s?' row-business-key="'+a+'"':""),t.push(' comp-id="'+this.getCompId()+'"'),t.push(' class="'+o+'"'),e.isFullWidth()&&t.push(' tabindex="-1"'),this.beans.gridOptionsWrapper.isRowSelection()&&t.push(' aria-selected="'+(this.rowNode.isSelected()?"true":"false")+'"'),this.rowNode.group&&t.push(" aria-expanded="+(this.rowNode.expanded?"true":"false")),t.push(' style="height: '+n+"px; "+l+" "+i+'">'),t.push("</div>"),t.join("")},n.prototype.afterRowAttached=function(){this.addDomData();var e=this.getGui();this.controller.isUseAnimationFrameForCreate()?this.beans.taskQueue.createTask(this.controller.addHoverFunctionality.bind(this.controller,e),this.rowNode.rowIndex,"createTasksP2"):this.controller.addHoverFunctionality(e),this.controller.executeProcessRowPostCreateFunc()},n.prototype.addDomData=function(){var e=this,t=this.beans.gridOptionsWrapper;t.setDomData(this.getGui(),Zs.DOM_DATA_KEY_RENDERED_ROW,this.controller),this.addDestroyFunc((function(){return t.setDomData(e.getGui(),Zs.DOM_DATA_KEY_RENDERED_ROW,null)}))},n.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var n=e.getColumn().getId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}}))},n.prototype.forEachCellComp=function(e){I(this.cellComps,(function(t,n){n&&e(n)}))},n}(dr),Mh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gh=function(){return Gh=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Gh.apply(this,arguments)},kh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};var Vh=function(e){function t(){var t=e.call(this,function(){var e,t=ar.getAttribute("name"),n=Tu.get(t),o=Du.get(t),r=Au.get(t);switch(t){case ou.LEFT:case ou.RIGHT:case ou.FULL_WIDTH:case ou.TOP_LEFT:case ou.TOP_RIGHT:case ou.TOP_FULL_WITH:case ou.BOTTOM_LEFT:case ou.BOTTOM_RIGHT:case ou.BOTTOM_FULL_WITH:e='<div class="'+n+'" ref="eContainer" role="presentation" unselectable="on"></div>';break;case ou.CENTER:e='<div class="'+r+'" ref="eWrapper" role="presentation" unselectable="on">\n <div class="'+o+'" ref="eViewport" role="presentation">\n <div class="'+n+'" ref="eContainer" role="rowgroup" unselectable="on"></div>\n </div>\n </div>';break;case ou.TOP_CENTER:case ou.BOTTOM_CENTER:e='<div class="'+o+'" ref="eViewport" role="presentation" unselectable="on">\n <div class="'+n+'" ref="eContainer" role="presentation" unselectable="on"></div>\n </div>';break;default:return""}return e}())||this;return t.renderedRows={},t.name=ar.getAttribute("name"),t}return Mh(t,e),t.prototype.postConstruct=function(){var e=this;this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows();var t={setViewportHeight:function(t){return e.eViewport.style.height=t}};this.createManagedBean(new Nu(this.name)).setView(t,this.eContainer,this.eViewport,this.eWrapper),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows(),this.addManagedListener(this.eventService,Qe.EVENT_DISPLAYED_ROWS_CHANGED,this.onDisplayedRowsChanged.bind(this))},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([ou.TOP_CENTER,ou.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},t.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.domOrder=e.gridOptionsWrapper.isEnsureDomOrder()};this.gridOptionsWrapper.addEventListener(Ms.PROP_DOM_LAYOUT,t),t()},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.clearLastPlacedElement=function(){this.lastPlacedElement=null},t.prototype.appendRow=function(e){this.domOrder?_n(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Rn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.removeRow=function(e){this.eContainer.removeChild(e)},t.prototype.onDisplayedRowsChanged=function(){var e=this,t=this.name===ou.TOP_FULL_WITH||this.name===ou.BOTTOM_FULL_WITH||this.name===ou.FULL_WIDTH,n=Gh({},this.renderedRows);this.renderedRows={},this.clearLastPlacedElement();this.getRowCons().filter((function(n){var o=n.isFullWidth(),r=e.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||r;return t?!i&&o:i||!o})).forEach((function(t){var o=t.getInstanceId(),r=n[o];if(r)e.renderedRows[o]=r,delete n[o],e.ensureDomOrder(r.getGui());else{var i=e.newRowComp(t);e.renderedRows[o]=i,e.appendRow(i.getGui())}})),V(n).forEach((function(t){return e.removeRow(t.getGui())}))},t.prototype.getRowCons=function(){switch(this.name){case ou.TOP_CENTER:case ou.TOP_LEFT:case ou.TOP_RIGHT:case ou.TOP_FULL_WITH:return this.rowRenderer.getTopRowCons();case ou.BOTTOM_CENTER:case ou.BOTTOM_LEFT:case ou.BOTTOM_RIGHT:case ou.BOTTOM_FULL_WITH:return this.rowRenderer.getBottomRowCons();default:return this.rowRenderer.getRowCons()}},t.prototype.newRowComp=function(e){var t;switch(this.name){case ou.BOTTOM_LEFT:case ou.TOP_LEFT:case ou.LEFT:t=be.PINNED_LEFT;break;case ou.BOTTOM_RIGHT:case ou.TOP_RIGHT:case ou.RIGHT:t=be.PINNED_RIGHT;break;default:t=null}return new Lh(e,this,this.beans,t)},kh([he("rowRenderer")],t.prototype,"rowRenderer",void 0),kh([he("beans")],t.prototype,"beans",void 0),kh([gr("eViewport")],t.prototype,"eViewport",void 0),kh([gr("eContainer")],t.prototype,"eContainer",void 0),kh([gr("eWrapper")],t.prototype,"eWrapper",void 0),kh([ce],t.prototype,"postConstruct",null),t}(dr),Hh=function(){function e(e,t,n){t?(this.gridOptions=t,(new Wh).create(e,t,(function(t){var n=new gc(e);t.createBean(n)}),n)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),Wh=function(){function e(){}return e.prototype.create=function(e,n,o,r){var i=!!n.debug,s=this.getRegisteredModules(r),a=this.createBeansList(n.rowModelType,s),l=this.createProvidedBeans(e,n,r);if(a){var u={providedBeanInstances:l,beanClasses:a,debug:i},c=new oc("AG Grid",(function(){return n.debug})),p=new oc("Context",(function(){return u.debug})),d=new le(u,p);this.registerModuleUserComponents(d,s),this.registerStackComponents(d,s),o(d),this.setColumnsAndData(d),this.dispatchGridReadyEvent(d,n);var h=Oe.isRegistered(t.ModuleNames.EnterpriseCoreModule);c.log("initialised successfully, enterprise = "+h)}},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.getBean("agStackComponentsRegistry").setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=Oe.getRegisteredModules(),o=[],r={};function i(e,t){var n;r[(n=t).moduleName]||(r[n.moduleName]=!0,o.push(n),Oe.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!Oe.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e,t){var n=e.getBean("userComponentRegistry");this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(e){n.registerDefaultComponent(e.componentName,e.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,n){var o=n?n.frameworkOverrides:null;i(o)&&(o=new Gc);var r={gridOptions:t,eGridDiv:e,$scope:n?n.$scope:null,$compile:n?n.$compile:null,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:o};return n&&n.providedBeanInstances&&W(r,n.providedBeanInstances),r},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:za},{componentName:"AgRadioButton",componentClass:Lc},{componentName:"AgToggleButton",componentClass:kd},{componentName:"AgInputTextField",componentClass:cd},{componentName:"AgInputTextArea",componentClass:dd},{componentName:"AgInputNumberField",componentClass:Sd},{componentName:"AgInputRange",componentClass:Pd},{componentName:"AgSelect",componentClass:Fd},{componentName:"AgSlider",componentClass:gd},{componentName:"AgAngleSelect",componentClass:Md},{componentName:"AgColorPicker",componentClass:Od},{componentName:"AgGridBody",componentClass:Lu},{componentName:"AgHeaderRoot",componentClass:Ll},{componentName:"AgPagination",componentClass:Yp},{componentName:"AgOverlayWrapper",componentClass:Jp},{componentName:"AgGroupComponent",componentClass:nd},{componentName:"AgPanel",componentClass:id},{componentName:"AgDialog",componentClass:ld},{componentName:"AgRowContainer",componentClass:Vh},{componentName:"AgFakeHorizontalScroll",componentClass:Ah}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var o=[n,bp,Ud,Yd,uh,rp,ku,Ts,vp,wp,Xp,wi,kp,Up,uc,Xd,Ec,Lt,Ee,Ms,Zu,Ws,Vl,gt,Tl,tp,Ta,Bu,Xe,zu,fp,xp,ap,Bl,nc,It,sc,mc,Ri,js,qu,Pc,Tp,Ac,Fc,jc,Hc,Rc,Kc,qc,Wp,Zc,cp,Np,Wd,oh,sh,ph,hh,Ch,Eh,Rh,Fh],r=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));o.push.apply(o,r);var i=[];return o.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(e){var t=e.getBean("gridOptionsWrapper"),n=e.getBean("columnController"),o=t.getColumnDefs();n.setColumnDefs(o||[],"gridInitializing"),e.getBean("rowModel").start()},e.prototype.dispatchGridReadyEvent=function(e,t){var n=e.getBean("eventService"),o={type:Qe.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};n.dispatchEvent(o)},e.prototype.getRowModelClass=function(e,n){e||(e=be.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};n.forEach((function(e){I(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[e];if(r(i))return i;e===be.ROW_MODEL_TYPE_INFINITE&&console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("AG Grid: could not find matching row model for rowModelType "+e),e===be.ROW_MODEL_TYPE_VIEWPORT&&console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" is registered.';"),e===be.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" is registered.';"),e===be.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" is registered.';")},e}();function Bh(e,t,n,o){var r,i=o.agGrid;if(r=t.$eval(i)){var s=e[0],a=new Hh(s,r,{$scope:t,$compile:n}),l=i+".quickFilterText",u=t.$watch(l,(function(e){r.api.setQuickFilter(e)}));t.$on("$destroy",(function(){u(),a&&a.destroy(),a=null}))}else console.warn("WARNING - grid options for AG Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}var jh=!1;var Uh,zh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yh=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return zh(t,e),t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="menu" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case Er.RIGHT:case Er.LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),n=e.keyCode===Er.RIGHT?Math.min(t+1,this.items.length-1):Math.max(t-1,0);if(t===n)return;e.preventDefault();var o=this.items[n];this.showItemWrapper(o),o.eHeaderButton.focus();break;case Er.UP:case Er.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusController,o=t.eHeader,r=t.eBody,i=t.activeItem,s=document.activeElement;if(e.preventDefault(),o.contains(s))n.focusInto(r,e.shiftKey);else if(n.isFocusUnderManagedComponent(r))i.eHeaderButton.focus();else{var a=n.findNextFocusableElement(r,!1,e.shiftKey);a?a.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.getMinDimensions=function(){var e=this.getGui().cloneNode(!0),t=e.querySelector('[ref="eBody"]');e.style.position="fixed",this.getGui().appendChild(e);var n=0,o=0;return this.items.forEach((function(r){mn(t);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=i&&(t.appendChild(i),n<e.offsetWidth&&(n=e.offsetWidth),o<e.offsetHeight&&(o=e.offsetHeight))})),this.getGui().removeChild(e),{height:o,width:n}},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");t.setAttribute("tabIndex","-1"),t.setAttribute("role","menuitem"),t.appendChild(e.title),en(t,"ag-tab"),this.eHeader.appendChild(t),lo(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=p(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(mn(this.eBody),e.tabbedItem.bodyPromise.then((function(n){t.eBody.appendChild(n);var o=!t.focusController.isKeyboardMode();t.focusController.focusInto(t.eBody,!1,o),e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(t.afterAttachedParams)})),this.activeItem&&tn(this.activeItem.eHeaderButton,"ag-tab-selected"),en(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e):se(this.params.onActiveItemClicked)},Kh([gr("eHeader")],t.prototype,"eHeader",void 0),Kh([gr("eBody")],t.prototype,"eBody",void 0),t}(Ar);(Uh=t.ServerSideTransactionResultStatus||(t.ServerSideTransactionResultStatus={})).StoreNotFound="StoreNotFound",Uh.StoreLoading="StoreLoading",Uh.StoreWaitingToLoad="StoreWaitingToLoad",Uh.StoreLoadingFailed="StoreLoadingFailed",Uh.StoreWrongType="StoreWrongType",Uh.Applied="Applied",Uh.Cancelled="Cancelled";var $h,qh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qh=function(e){function t(n,o){void 0===n&&(n="default"),void 0===o&&(o="listbox");var r=e.call(this,t.getTemplate(n),!0)||this;return r.cssIdentifier=n,r.ariaRole=o,r.renderedRows=new Map,r.rowHeight=20,r.isDestroyed=!1,r}return qh(t,e),t.prototype.postConstruct=function(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),e.prototype.postConstruct.call(this)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(t){e.prototype.onFocusIn.call(this,t);var n=t.target;on(n,"ag-virtual-list-item")&&(this.lastFocusedRowIndex=so(n)-1)},t.prototype.onFocusOut=function(t){e.prototype.onFocusOut.call(this,t),this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null)},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case Er.UP:case Er.DOWN:this.navigate(e.keyCode===Er.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusController.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="listbox">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,o=n+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+s<o;if(i>n)r.scrollTop=n;else if(a){var l=o-s;r.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){var e=this;if(null!=this.model&&!this.isDestroyed){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",ie((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,o=Math.floor(t/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(o,r)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(o,r){(r<e||r>t)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var o=e;o<=t;o++)this.renderedRows.has(o)||o<this.model.getRowCount()&&this.insertRow(o)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),o=document.createElement("div");if(en(o,"ag-virtual-list-item"),en(o,"ag-"+this.cssIdentifier+"-virtual-list-item"),o.setAttribute("role","tree"===this.ariaRole?"treeitem":"option"),go(o,this.model.getRowCount()),yo(o,e+1),o.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var r=this.model.isRowSelected(e);So(o,!!r),_o(o,r)}o.style.height=this.rowHeight+"px",o.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,o);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),o.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",o):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",o):this.eContainer.appendChild(o),this.renderedRows.set(e,{rowComponent:i,eDiv:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,e.prototype.destroy.call(this))},Xh([he("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Xh([gr("eContainer")],t.prototype,"eContainer",void 0),t}(Ar);($h=t.ServerSideStoreType||(t.ServerSideStoreType={})).Full="full",$h.Partial="partial";var Zh,Jh,ef=function(){function e(){}return e.prototype.wrap=function(e,t,n,o,r){var i=this;void 0===n&&(n=[]);var s=this.createWrapper(e,o,r);return t.forEach((function(e){i.createMethod(s,e,!0)})),n.forEach((function(e){i.createMethod(s,e,!1)})),s},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();(Zh=t.ChartType||(t.ChartType={})).Column="column",Zh.GroupedColumn="groupedColumn",Zh.StackedColumn="stackedColumn",Zh.NormalizedColumn="normalizedColumn",Zh.Bar="bar",Zh.GroupedBar="groupedBar",Zh.StackedBar="stackedBar",Zh.NormalizedBar="normalizedBar",Zh.Line="line",Zh.Scatter="scatter",Zh.Bubble="bubble",Zh.Pie="pie",Zh.Doughnut="doughnut",Zh.Area="area",Zh.StackedArea="stackedArea",Zh.NormalizedArea="normalizedArea",Zh.Histogram="histogram",(Jh=t.LegendPosition||(t.LegendPosition={})).Top="top",Jh.Right="right",Jh.Bottom="bottom",Jh.Left="left";var tf=void 0===n.g?{}:n.g;tf.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,tf.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,tf.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,tf.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,tf.Node="undefined"==typeof Node?{}:Node,tf.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var nf,of=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},rf=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.context=o,this.eventService=r,this.columnController=i,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Jo.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.rootNode.updateHasChildren(),this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);this.rootNode.allLeafChildren=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL)},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},o=[];return this.executeRemove(e,n,o),this.executeUpdate(e,n,o),this.executeAdd(e,n),this.updateSelection(o),t&&Jo.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionController.updateGroupsFromChildrenSelections(),t){var n={type:Qe.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(t,n){var o=this,r=t.add,i=t.addIndex;if(!Jo.missingOrEmpty(r)){var s=r.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)}));if("number"==typeof i&&i>=0){var a=this.rootNode.allLeafChildren,l=a.slice(0,i),u=a.slice(i,a.length);this.rootNode.allLeafChildren=of(l,s,u)}else this.rootNode.allLeafChildren=of(this.rootNode.allLeafChildren,s);n.add=s}},e.prototype.executeRemove=function(e,t,n){var o=this,r=e.remove;if(!Jo.missingOrEmpty(r)){var i={};r.forEach((function(e){var r=o.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),i[r.id]=!0,delete o.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]}))}},e.prototype.executeUpdate=function(t,n,o){var r=this,i=t.update;Jo.missingOrEmpty(i)||i.forEach((function(t){var i=r.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&o.push(i),r.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(Jo.exists(n)){var o=n(e);if(!(t=this.allNodesMap[o]))return console.error("AG Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(t=Jo.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("AG Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,n){var o=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var i=o.createNode(e,t,n);r.push(i)})),r}console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,n){var o=new Qr;return this.context.createBean(o),o.group=!1,this.setMasterForRow(o,e,n,!0),t&&!this.suppressParentsInRowNodes&&(o.parent=t),o.level=n,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("ag-grid: duplicate node id '"+o.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.setMasterForRow=function(e,t,n,o){if(this.doingTreeData)e.setMaster(!1),o&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),o){var r=this.columnController.getRowGroupColumns(),i=n+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),sf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),af=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(nf||(nf={}));var lf=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowGroupOpenedPending=!1,t}return sf(n,e),n.prototype.init=function(){var e=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING}),n=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,Qe.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.addManagedListener(this.gridOptionsWrapper,Ms.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new Qr,this.nodeManager=new rf(this.rootNode,this.gridOptionsWrapper,this.getContext(),this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.createBean(this.rootNode)},n.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},n.prototype.ensureRowHeightsValid=function(e,t,n,o){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,o),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},n.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var n=this.gridOptionsWrapper.getDomLayout()===be.DOM_LAYOUT_NORMAL,o=this.rowsToDisplay[t];if(Jo.missing(o.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(o,n);o.setRowHeight(r.height,r.estimated)}o.setRowTop(e),o.setRowIndex(t),e+=o.rowHeight}},n.prototype.resetRowTops=function(e){var t={};this.rowsToDisplay.forEach((function(e){null!=e.id&&(t[e.id]=e)}));var n=function(e){e&&null!=e.id&&null==t[e.id]&&e.clearRowTopAndRowIndex()},o=function(t){if(n(t),n(t.detailNode),n(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var r=-1==t.level;e.isActive()&&!r&&!t.expanded||t.childrenAfterGroup.forEach(o)}};o(this.rootNode)},n.prototype.ensureRowsAtPixel=function(e,n,o){var r=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(n);return this.getRow(i)!==e[0]&&(e.forEach((function(e){Jo.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Jo.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(i+o,0)+t)})),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},n.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,o=null!=n?this.getRow(n):null;if(o&&e&&o!==e&&null!=t){var r=this.getHighlightPosition(t,o);this.lastHighlightedRow&&this.lastHighlightedRow!==o&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),o.setHighlighted(r),this.lastHighlightedRow=o}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},n.prototype.getHighlightPosition=function(e,t){if(!t){var n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return"below"}return e-t.rowTop<t.rowHeight/2?"above":"below"},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(Jo.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this;if(!this.onRowGroupOpenedPending){this.onRowGroupOpenedPending=!0;var n=function(){e.onRowGroupOpenedPending=!1;var n=e.gridOptionsWrapper.isAnimateRows();e.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:n})};this.gridOptionsWrapper.isSuppressAnimationFrame()?n():this.animationFrameService.addDestroyTask(n)}},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.FILTER,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return be.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:t.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=Jo.missingOrEmpty(e),n=new Gs(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==e.rowNodeTransactions)return!1;var t=Jo.filter(e.rowNodeTransactions,(function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},n.prototype.refreshModel=function(e){var n=this;if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case t.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,!!e.afterColumnsChanged);case t.ClientSideRowModelSteps.FILTER:this.doFilter(o);case t.ClientSideRowModelSteps.PIVOT:this.doPivot(o);case t.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(o);case t.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,o);case t.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}this.setRowTops(),this.resetRowTops(o);var r={type:Qe.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(r),this.$scope&&window.setTimeout((function(){n.$scope.$apply()}),0)}},n.prototype.isEmpty=function(){var e=Jo.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Jo.missing(this.rootNode)||e||!this.columnController.isReady()},n.prototype.isRowsToRender=function(){return Jo.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.prototype.getNodesInRangeForSelection=function(e,t){var n,o=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=o&&!r;if(o||a!==t&&a!==e||(o=!0),!(a.group&&s)){var u=o&&!r,c=a.isParentOfNode(n);(u||c)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,n=a===t?t:e))})),i},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Jo.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var o=Math.floor((t+n)/2),r=this.rowsToDisplay[o];if(this.isRowInPixel(r,e))return o;r.rowTop<e?t=o+1:r.rowTop>e&&(n=o-1)}},n.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},n.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,nf.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,nf.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,nf.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,nf.PivotNodes,0)},n.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,o){if(!e)return o;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,o++),i.hasChildren()){var s=null;switch(n){case nf.Normal:s=i.childrenAfterGroup;break;case nf.AfterFilter:s=i.childrenAfterFilter;break;case nf.AfterFilterAndSort:s=i.childrenAfterSort;break;case nf.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.expandOrCollapseAll=function(e){var n=this.gridOptionsWrapper.isTreeData();this.rootNode&&function t(o){if(!o)return;o.forEach((function(o){(n?Jo.exists(o.childrenAfterGroup):o.group)&&(o.expanded=e,t(o.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:t.ClientSideRowModelSteps.MAP});var o=e?"expandAll":"collapseAll",r={api:this.gridApi,columnApi:this.columnApi,type:Qe.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(r)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,n,o,r){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:o}):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(o)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.updateHasChildren())},n.prototype.restoreGroupState=function(e){e&&Jo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"==typeof e[n]&&(t.expanded=e[n])}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Jo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(Qr.ID_PREFIX_ROW_GROUP)){var t=null;return this.forEachNode((function(n){n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(e){var n=this.getGroupState();this.nodeManager.setRowData(e);var o={type:Qe.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],o=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(r){var i=e.nodeManager.updateRowData(r.rowDataTransaction,void 0);n.push(i),r.callback&&t.push(r.callback.bind(null,i)),"number"==typeof r.rowDataTransaction.addIndex&&(o=!0)})),this.commonUpdateRowData(n,void 0,o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var r={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:Qe.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(r)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),o="number"==typeof e.addIndex;return this.commonUpdateRowData([n],t,o),n},n.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},n.prototype.commonUpdateRowData=function(e,n,o){o&&(n=this.createRowNodeOrder()),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:n,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var r={type:Qe.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},n.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},af([he("columnController")],n.prototype,"columnController",void 0),af([he("$scope")],n.prototype,"$scope",void 0),af([he("selectionController")],n.prototype,"selectionController",void 0),af([he("valueCache")],n.prototype,"valueCache",void 0),af([he("columnApi")],n.prototype,"columnApi",void 0),af([he("gridApi")],n.prototype,"gridApi",void 0),af([he("animationFrameService")],n.prototype,"animationFrameService",void 0),af([he("filterStage")],n.prototype,"filterStage",void 0),af([he("sortStage")],n.prototype,"sortStage",void 0),af([he("flattenStage")],n.prototype,"flattenStage",void 0),af([fe("groupStage")],n.prototype,"groupStage",void 0),af([fe("aggregationStage")],n.prototype,"aggregationStage",void 0),af([fe("pivotStage")],n.prototype,"pivotStage",void 0),af([ce],n.prototype,"init",null),n=af([de("rowModel")],n)}(Ke),uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return uf(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},cf([he("selectableService")],t.prototype,"selectableService",void 0),cf([he("filterService")],t.prototype,"filterService",void 0),t=cf([de("filterStage")],t)}(Ke),df=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ff=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return df(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=Jo.exists(t)&&t.length>0,o=n&&Jo.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=o?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),s=Jo.missingOrEmpty(i);this.sortService.sort(t,n,o,r,e.changedPath,s)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},hf([he("sortService")],t.prototype,"sortService",void 0),hf([he("sortController")],t.prototype,"sortController",void 0),hf([he("columnController")],t.prototype,"columnController",void 0),t=hf([de("sortStage")],t)}(Ke),gf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gf(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnController.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,n,o,r,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,o,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!Jo.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=o&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=o&&u.leafGroup,g=i&&u.expanded&&!f;if(!(p||g||d||h)&&this.addRowNodeToRowsToDisplay(u,t,n,r),!o||!u.leafGroup)if(c){var y=d||h;if(u.expanded||y){var v=y?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,o,v),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,r))}}else if(u.master&&u.expanded){var m=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(m,t,n,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},t.prototype.ensureFooterNodeExists=function(e){if(!Jo.exists(e.sibling)){var t=new Qr;this.context.createBean(t),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,Jo.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(Jo.exists(e.detailNode))return e.detailNode;var t=new Qr;return this.context.createBean(t),t.detail=!0,t.selectable=!1,t.parent=e,Jo.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},yf([he("columnController")],t.prototype,"columnController",void 0),t=yf([de("flattenStage")],t)}(Ke),mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mf(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,o,r,i){var s=this;r&&r.forEachChangedNodeDepthFirst((function(a){s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),a.childrenAfterSort=t?n?s.doDeltaSort(a,e,o,r,i):s.rowNodeSorter.doFullSort(a.childrenAfterFilter,e):a.childrenAfterFilter.slice(0),s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},t.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},t.prototype.doDeltaSort=function(e,t,n,o,r){var i=e.childrenAfterSort.filter((function(e){var t=!n[e.id],i=r||o&&o.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),s={};i.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.rowNodeSorter.compareRowNodes.bind(this,t)),(0===a.length?i:0===i.length?a:this.mergeSortedArrays(t,i,a)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.rowNodeSorter.compareRowNodes(e,t[r],n[i])<0?o.push(t[r++]):o.push(n[i++])}for(;r<t.length;)o.push(t[r++]);for(;i<n.length;)o.push(n[i++]);return o},t.prototype.updateChildIndexes=function(e){if(!Jo.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var o=t[n],r=0===n,i=n===e.childrenAfterSort.length-1;o.setFirstChild(r),o.setLastChild(i),o.setChildIndex(n)}},t.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&n(e)}))};e&&e.executeFromRootNode((function(e){return n(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!Jo.missing(e)&&e.forEach((function(e){n.columnController.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"==typeof r){var i=r,s=n.columnController.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(o.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Cf([he("columnController")],t.prototype,"columnController",void 0),Cf([he("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Cf([ce],t.prototype,"init",null),t=Cf([de("sortService")],t)}(Ke),Ef=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Of=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ef(t,e),t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,o=function(t,o){t.hasChildren()?(t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&n.filterManager.doesRowPassFilter({rowNode:e});return t||o})):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=function(e,t){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var s=e.childrenAfterGroup[i],a=t||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?r(e.childrenAfterGroup[i],a):o(s,a)}o(e,t)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},t.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},bf([he("filterManager")],t.prototype,"filterManager",void 0),bf([ce],t.prototype,"postConstruct",null),t=bf([de("filterService")],t)}(Ke),Rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rf(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===be.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(Jo.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!Jo.missing(t)){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return Jo.exists(e)&&e.forEach((function(e,i){var s=t(e),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),Jo.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("AG Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},Sf([he("rowModel")],t.prototype,"rowModel",void 0),Sf([ce],t.prototype,"postConstruct",null),t=Sf([de("immutableService")],t)}(Ke),Pf={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[pf,ff,vf,wf,Of,_f],rowModels:{clientSide:lf}},Tf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Df=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Af=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.parentCache=n,r.params=o,r.startRow=t*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Tf(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,n){Jo.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Jo.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()}},t.prototype.forEachNode=function(e,t,n){var o=this;this.rowNodes.forEach((function(r,i){o.startRow+i<n&&e(r,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=this.getContext().createBean(new Qr);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(n,o){var r=e.rowData?e.rowData[o]:void 0;t.setDataAndId(n,r,t.startRow+o)}));var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},Df([ce],t.prototype,"postConstruct",null),Df([pe],t.prototype,"destroyRowNodes",null),t}(gh),Nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),If=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ff=function(e,t){return function(n,o){t(n,o,e)}},xf=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return Nf(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),o=this.blocks[n];if(!o){if(t)return null;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Af(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=this.getBlocksInOrder().filter((function(t){return t!=e}));o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===Af.STATE_WAITING_TO_LOAD&&t>=s||!!r&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusController.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),o=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<o},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Jo.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new er;this.getBlocksInOrder().forEach((function(o){return o.forEachNode(e,n,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return Jo.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:Qe.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(n){n.getId()*e.params.blockSize>=e.rowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new er;Jo.missing(e)&&(i=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(i&&r+1!==l.getId()?a=!0:(r=l.getId(),l.forEachNode((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.rowCount)))})),a||i?[]:o},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,If([he("rowRenderer")],t.prototype,"rowRenderer",void 0),If([he("focusController")],t.prototype,"focusController",void 0),If([Ff(0,ye("loggerFactory"))],t.prototype,"setBeans",null),If([pe],t.prototype,"destroyAllBlocks",null),t}(Ke),Lf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lf(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,o){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getDefaultGroupSortComparator()){Jo.doOnce((function(){return console.warn("AG Grid: defaultGroupSortComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.DefaultGroupSortComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Qe.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Qe.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Jo.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return be.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){Jo.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Qe.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:this.defaultIfInvalid(e,2),initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new er},this.infiniteCache=this.createBean(new xf(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Mf([he("filterManager")],t.prototype,"filterManager",void 0),Mf([he("sortController")],t.prototype,"sortController",void 0),Mf([he("selectionController")],t.prototype,"selectionController",void 0),Mf([he("gridApi")],t.prototype,"gridApi",void 0),Mf([he("columnApi")],t.prototype,"columnApi",void 0),Mf([he("rowRenderer")],t.prototype,"rowRenderer",void 0),Mf([he("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Mf([ce],t.prototype,"init",null),Mf([pe],t.prototype,"destroyDatasource",null),t=Mf([de("rowModel")],t)}(Ke),kf={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Gf}},Vf=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.getDefaultExportParams(),n={};return Jo.assign(n,t),Jo.assign(n,e),n},e}(),Hf=function(){function e(e){this.groupColumns=[];var t=e.columnController,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnController=t,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.groupColumns=Jo.filter(e,(function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o,r){var i,s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?r.rowGroupIndex:0;i=r&&r.group&&(t===s&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var a=this.processCell(n,r,e,i,this.processCellCallback,o);return null!=a?a:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r,i){return r?r({accumulatedRowIndex:e,column:n,node:t,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):null!=o?o:""},e}(),Wf=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n)if(n.navigator.msSaveOrOpenBlob)n.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),r=n.URL.createObjectURL(t);o.setAttribute("href",r),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(o),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),Bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jf=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var o=t.suppressQuotes,r=t.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=r,n}return Bf(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,be.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(Hf),Uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uf(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getDefaultExportParams=function(){return this.gridOptionsWrapper.getDefaultExportParams("csv")},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),n=t.mergedParams,o=t.data,r=new Blob(["\ufeff",o],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"});return Wf.download(this.getFileName(n.fileName),r),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getMergedParamsAndData(e).data},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnController,o=t.valueService,r=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,p=i.columnSeparator;return new jf({columnController:n,valueService:o,gridOptionsWrapper:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},zf([he("columnController")],t.prototype,"columnController",void 0),zf([he("valueService")],t.prototype,"valueService",void 0),zf([he("gridSerializer")],t.prototype,"gridSerializer",void 0),zf([he("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),zf([ce],t.prototype,"postConstruct",null),t=zf([de("csvCreator")],t)}(Vf),Yf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$f=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}));var qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yf(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Jo.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,o){var r=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsWrapper,s=i.getContext(),a=i.getApi(),l=i.getColumnApi(),u=i.isGroupRemoveSingleChildren(),c=i.isGroupHideOpenParents(),p=i.isGroupRemoveLowestSingleChildren(),d=this.columnController.isPivotMode()?o.leafGroup:!o.group,h=t.skipGroups||t.skipRowGroups,f=p&&o.leafGroup,g=1===o.allChildrenCount&&(u||f);if((h&&t.skipGroups&&Jo.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!d&&(t.skipRowGroups||g||c)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned))&&((!(-1===o.level)||o.leafGroup)&&!r({node:o,api:a,context:s}))){var y=e.onNewBodyRow();if(n.forEach((function(e,t){y.onColumn(e,t,o)})),t.getCustomContentBelowRow){var v=t.getCustomContentBelowRow({node:o,api:a,columnApi:l,context:s});v&&e.addCustomContent(v)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Jo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&Jo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&Jo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var r=new Ze,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnController.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Jo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=n.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedTopRow(r),o}},t.prototype.processRows=function(e,t){var n=this;return function(o){var r=n.rowModel,i=r.getType(),s=i===be.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===be.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=n.processRow.bind(n,o,e,t);n.columnController.isPivotMode()?s?r.forEachPivotNode(u):r.forEachNode(u):e.onlySelectedAllPages||l?n.selectionController.getSelectedNodes().forEach(u):s||a?r.forEachNodeAfterFilterAndSort(u):r.forEachNode(u);return o}},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedBottomRow(r),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnController.isPivotMode();return t&&t.length?this.columnController.getGridColumns(t):e&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([be.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof Pe&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var o=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=n?n({columnGroup:s,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnController.getDisplayNameForColumnGroup(s,"header"),r.onColumn(t||"",i++,s.getLeafColumns().length-1)}))},$f([he("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),$f([he("columnController")],t.prototype,"columnController",void 0),$f([he("rowModel")],t.prototype,"rowModel",void 0),$f([he("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),$f([he("selectionController")],t.prototype,"selectionController",void 0),t=$f([de("gridSerializer")],t)}(Ke),Xf={moduleName:t.ModuleNames.CsvExportModule,beans:[Kf,qf]},Qf="\r\n",Zf=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.createXml=function(e,t){var n=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){o+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){o+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">"+Qf:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">"+Qf):r+"/>"+Qf},e.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&n&&(o=n(t))," "+e+'="'+o+'"'},e}(),Jf=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),eg=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,o="",r=0,i=0,s=0,a=t;s<a.length;s++){var l=a[s],u=this.getHeader(l,r),c=u.fileHeader,p=u.folderHeader,d=u.content;r+=c.length+d.length,i+=p.length,e+=c+d,o+=p}return e+o+this.buildFolderEnd(n,i,r)},e.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=e.isBase64,s=Jo.utf8_encode,a=Jo.decToHex,l=s(o),u=l!==o,c=this.convertTime(r),p=this.convertDate(r),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,y=f.content,v="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(y):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+v+l+d,folderHeader:"PK\0"+v+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:y||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var o=Jo.decToHex;return"PK\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),o=0;o<t;o++)n[o]=e.charCodeAt(o);var r=~0,i=0;for(o=0;o<t;o++)i=n[o],r=r>>>8^Jf[255&(r^i)];return~r},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();Oe.register(Pf,!1),Oe.register(kf,!1),Oe.register(Xf,!1),t.AgAbstractField=Ha,t.AgAngleSelect=Md,t.AgCheckbox=za,t.AgColorPicker=Od,t.AgDialog=ld,t.AgGroupComponent=nd,t.AgInputNumberField=Sd,t.AgInputRange=Pd,t.AgInputTextArea=dd,t.AgInputTextField=cd,t.AgPanel=id,t.AgPromise=nr,t.AgRadioButton=Lc,t.AgSelect=Fd,t.AgSlider=gd,t.AgToggleButton=kd,t.AlignedGridsService=fp,t.AnimateShowChangeCellRenderer=Mi,t.AnimateSlideCellRenderer=Vi,t.AnimationFrameService=Np,t.AutoWidthCalculator=sc,t.Autowired=he,t.BaseComponentWrapper=ef,t.BaseCreator=Vf,t.BaseGridSerializingSession=Hf,t.Bean=de,t.BeanStub=Ke,t.BodyDropPivotTarget=vl,t.BodyDropTarget=El,t.CellComp=ba,t.CellNavigationService=Ac,t.CellPositionUtils=Yd,t.ChangedPath=Gs,t.CheckboxSelectionComponent=ei,t.ColDefUtil=qn,t.Color=Xn,t.Column=Se,t.ColumnApi=js,t.ColumnController=gt,t.ColumnFactory=Xe,t.ColumnGroup=Pe,t.ColumnKeyCreator=f,t.ColumnUtils=It,t.Component=dr,t.ComponentUtil=Yn,t.Constants=be,t.Context=le,t.ControllersService=Rh,t.CssClassApplier=Da,t.CsvCreator=Kf,t.CsvExportModule=Xf,t.DateFilter=Br,t.DisplayedGroupCreator=Lt,t.Downloader=Wf,t.DragAndDropService=Ri,t.DragService=Ec,t.Environment=Tp,t.EventService=Ee,t.Events=Qe,t.ExpressionService=Bu,t.FilterManager=Vl,t.FloatingFilterMapper=sl,t.FloatingFilterWrapper=ul,t.FocusController=qu,t.Grid=Hh,t.GridApi=ku,t.GridBodyComp=Lu,t.GridBodyController=ru,t.GridComp=gc,t.GridCompController=dc,t.GridCoreCreator=Wh,t.GridListener=function(e){return vr.bind(this,e)},t.GridOptionsWrapper=Ms,t.GridSerializer=qf,t.GroupCellRenderer=Fi,t.GroupInstanceIdCreator=Ze,t.GuiListener=function(e,t){return mr.bind(this,e,t)},t.HeaderContainer=Rl,t.HeaderNavigationService=Tl,t.HeaderPositionUtils=uh,t.HeaderRootComp=Ll,t.HeaderRowComp=hl,t.HeadlessService=kt,t.HorizontalResizeService=uc,t.KeyCode=Er,t.KeyName=Dl,t.LargeTextCellEditor=Zi,t.Logger=oc,t.LoggerFactory=nc,t.ManagedFocusComponent=Ar,t.ModuleRegistry=Oe,t.MouseEventService=Pc,t.MoveColumnController=gl,t.NumberFilter=ts,t.NumberSequence=er,t.Optional=fe,t.OriginalColumnGroup=Te,t.PaginationProxy=tp,t.PinnedRowModel=Xd,t.PopupComponent=fr,t.PopupEditorWrapper=ta,t.PopupSelectCellEditor=qi,t.PopupService=Zu,t.PopupTextCellEditor=Yi,t.PostConstruct=ce,t.PreConstruct=ue,t.PreDestroy=pe,t.PropertyKeys=Un,t.ProvidedFilter=Fr,t.Qualifier=ye,t.QuerySelector=function(e){return yr.bind(this,e,void 0)},t.RefSelector=gr,t.ResizeObserverService=Xp,t.RowController=Zs,t.RowNode=Qr,t.RowNodeBlock=gh,t.RowNodeBlockLoader=Ch,t.RowNodeSorter=Eh,t.RowPositionUtils=Ud,t.RowRenderer=Ta,t.ScalarFilter=Vr,t.ScrollVisibleService=Hc,t.SelectCellEditor=zi,t.SelectableService=Wp,t.SelectionController=Ws,t.SetLeftFeature=La,t.SimpleFilter=Gr,t.SortController=Rc,t.StandardMenuFactory=mc,t.StylingService=jc,t.TabbedLayout=Yh,t.TemplateService=zu,t.TestHeadless=Bn,t.TextCellEditor=Rr,t.TextFilter=ms,t.TextFloatingFilter=Ss,t.Timer=or,t.TooltipFeature=lr,t.TouchListener=jr,t.UserComponentFactory=wi,t.UserComponentRegistry=Ts,t.ValueCache=ap,t.ValueFormatterService=Fc,t.ValueService=Bl,t.VanillaFrameworkOverrides=Gc,t.VirtualList=Qh,t.XmlFactory=Zf,t.ZipContainer=eg,t._=Jo,t.defaultGroupComparator=function(e,t,n,o,i){void 0===i&&(i=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=r(n)&&n.group,a=r(o)&&o.group,l=!s&&!a;return s&&a?c(n.key,o.key,i):l?c(e,t,i):s?1:-1},t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",Bh],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!jh){jh=!0,"undefined"!=typeof document&&document.registerElement||console.error("AG Grid: unable to find document.registerElement() function, unable to initialise AG Grid as a Web Component");var e=Object.create(HTMLElement.prototype);Yn.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&Yn.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=Yn.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new Hh(this,this._gridOptions,n),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,n="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,o=e.nodeValue;Yn.ALL_PROPERTIES.indexOf(n)>=0&&(this[n]=o)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var n=e.toLowerCase(),o=new Event(n);o.agGridDetails=t,this.dispatchEvent(o);var r="on"+n;"function"==typeof this[r]&&this[r](o)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=function(e){return new nr((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=Qn},4090:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(6540),a=n(6540),l=n(5556),u=n(1094),c=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n}return r(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return s.Children.map(e,(function(e){return e?t.toColDef(e.props):null}))},t.toColDef=function(e){var n=e.children,o=i(e,["children"]);return t.hasChildColumns(n)&&(o.children=t.mapChildColumnDefs(n)),o},t.hasChildColumns=function(e){return s.Children.count(e)>0},t}(a.Component);function p(e,t){e.forEach((function(e){c[e]=t}))}t.AgGridColumn=c,p(u.ColDefUtil.BOOLEAN_PROPERTIES,l.bool),p(u.ColDefUtil.STRING_PROPERTIES,l.string),p(u.ColDefUtil.OBJECT_PROPERTIES,l.object),p(u.ColDefUtil.ARRAY_PROPERTIES,l.array),p(u.ColDefUtil.NUMBER_PROPERTIES,l.number),p(u.ColDefUtil.FUNCTION_PROPERTIES,l.func)},5169:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6540),l=n(6540),u=n(5556),c=n(1094),p=n(4090),d=n(4722),h=n(4549),f=n(1138),g=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.changeDetectionService=new d.ChangeDetectionService,n.api=null,n.portals=[],n.hasPendingPortalUpdate=!1,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n}return r(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){return i({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new v(this)},modules:e},n=this.props.gridOptions||{},o=this.props.children;p.AgGridColumn.hasChildColumns(o)&&(n.columnDefs=p.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=c.ComponentUtil.copyAttributesToGridOptions(n,this.props),new c.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.waitForInstance=function(e,n,o){var r=this;if(void 0===o&&(o=Date.now()),this.destroyed)n(null);else if(e.rendered())n(e);else{if(Date.now()-o>=this.props.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void n(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME_IN_MS+"ms");window.setTimeout((function(){r.waitForInstance(e,n,o)}))}},t.prototype.mountReactPortal=function(e,t,n){this.portals=s(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},t.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},t.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout((function(){e.api&&e.forceUpdate((function(){e.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0)},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(p.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=p.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){c._.includes(c.ComponentUtil.ALL_PROPERTIES,i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),c.ComponentUtil.getEventCallbacks().forEach((function(i){o.props[i]!==t[i]&&(r&&console.log("agGridReact: ["+i+"] event callback changed"),n[i]={previousValue:e[i],currentValue:t[i]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0},t.prototype.isDisableStaticMarkup=function(){return this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=i({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach((function(e){t[e]&&(n[e]=t[e],delete t.context)})),Object.keys(n).length>0&&this.api&&c.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout((function(){t.api&&c.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(l.Component);function y(e,t){e.forEach((function(e){g[e]=t}))}t.AgGridReact=g,g.propTypes={gridOptions:u.object},y(c.ComponentUtil.getEventCallbacks(),u.func),y(c.ComponentUtil.BOOLEAN_PROPERTIES,u.bool),y(c.ComponentUtil.STRING_PROPERTIES,u.string),y(c.ComponentUtil.OBJECT_PROPERTIES,u.object),y(c.ComponentUtil.ARRAY_PROPERTIES,u.array),y(c.ComponentUtil.NUMBER_PROPERTIES,u.number),y(c.ComponentUtil.FUNCTION_PROPERTIES,u.func);var v=function(e){function t(t){var n=e.call(this)||this;return n.agGridReact=t,n}return r(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new h.LegacyReactComponent(e,this.agGridReact,t):new f.NewReactComponent(e,this.agGridReact,t)},t}(c.BaseComponentWrapper)},4722:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var o=function(){function e(){var e;this.strategyMap=((e={})[n.DeepValueCheck]=new i,e[n.IdentityCheck]=new r((function(e,t){return e===t})),e[n.NoCheck]=new r((function(e,t){return!1})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=o;var r=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),i=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return!1;if("object"!=typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var o=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(o)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in n)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],n[i]))return!1;return!0}finally{o&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}},e}()},7048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(){return"agPortalKey_"+ ++n}},4549:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6540),s=n(961),a=n(1094),l=n(946),u=n(7048),c=n(5848),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.staticMarkup=null,t.staticRenderTime=0,t}return r(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.AgPromise((function(n){return t.createReactComponent(e,n)}))},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,u.default());this.portal=r,this.parentComponent.mountReactPortal(r,this,(function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!(this.parentComponent.isDisableStaticMarkup()||this.componentType.isCellRenderer&&!this.componentType.isCellRenderer())){var t=console.error,n=i.createElement(this.reactComponent,e);try{console.error=function(){};var o=Date.now(),r=c.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-o,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERERING_THRESHOLD=3,t}(l.ReactComponent);t.LegacyReactComponent=p},1138:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(6540),a=n(961),l=n(1094),u=n(946),c=n(7048),p=n(5848),d=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.oldPortal=null,r.key=c.default(),r.portalKey=c.default(),r}return r(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new l.AgPromise((function(e){return t.createReactComponent(e)}))},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=s.createElement(this.reactComponent,i(i({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.parentComponent.mountReactPortal(this.portal,this,(function(t){e(t)}))},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(this.componentType.isCellRenderer&&!this.componentType.isCellRenderer())return!1;var t=console.error;try{return console.error=function(){},""===p.renderToStaticMarkup(s.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.parentComponent.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+"Component"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]},t}(u.ReactComponent);t.NewReactComponent=d},946:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1094),s=n(2759),a=function(e){function t(t,n,o){var r=e.call(this)||this;return r.portal=null,r.reactComponent=t,r.parentComponent=n,r.componentType=o,r.statelessComponent=r.isStateless(r.reactComponent),r}return r(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return i._.addCssClass(t,"ag-react-container"),e.reactContainer=t,t},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&s.assignProperties(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return i._.addCssClass(e.eParentElement,t)})))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(o){var r=o[e];return r?r.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout((function(){return n.callMethod(e,t)}))},t.prototype.addMethod=function(e,t){this[e]=t},t}((function(){}));t.ReactComponent=a},2759:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignProperties=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},t.assign=function(e,n,o){if("string"==typeof n&&(n=n.split(".")),n.length>1){var r=n.shift();t.assign(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},n,o)}else e[n[0]]=o}},9973:(e,t,n)=>{t.AgGridReact=n(5169).AgGridReact,n(4090).AgGridColumn,n(4722).ChangeDetectionStrategyType},4734:(e,t,n)=>{n(3758),e.exports=n(6438).Object.assign},8271:(e,t,n)=>{n(1951);var o=n(6438).Object;e.exports=function(e,t){return o.create(e,t)}},2019:(e,t,n)=>{n(2946),e.exports=n(6438).Object.entries},1724:(e,t,n)=>{n(4284),e.exports=n(6438).Object.setPrototypeOf},1205:(e,t,n)=>{n(7186),e.exports=n(6438).Object.values},5219:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},812:(e,t,n)=>{var o=n(4401);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},4448:(e,t,n)=>{var o=n(5133),r=n(181),i=n(2917);e.exports=function(e){return function(t,n,s){var a,l=o(t),u=r(l.length),c=i(s,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},3417:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},6438:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},8852:(e,t,n)=>{var o=n(5219);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},7608:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},8219:(e,t,n)=>{e.exports=!n(1984)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},3802:(e,t,n)=>{var o=n(4401),r=n(6670).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},7956:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},8535:(e,t,n)=>{var o=n(6670),r=n(6438),i=n(8852),s=n(2677),a=n(5509),l="prototype",u=function(e,t,n){var c,p,d,h=e&u.F,f=e&u.G,g=e&u.S,y=e&u.P,v=e&u.B,m=e&u.W,C=f?r:r[t]||(r[t]={}),w=C[l],E=f?o:g?o[t]:(o[t]||{})[l];for(c in f&&(n=t),n)(p=!h&&E&&void 0!==E[c])&&a(C,c)||(d=p?E[c]:n[c],C[c]=f&&"function"!=typeof E[c]?n[c]:v&&p?i(d,o):m&&E[c]==d?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):y&&"function"==typeof d?i(Function.call,d):d,y&&((C.virtual||(C.virtual={}))[c]=d,e&u.R&&w&&!w[c]&&s(w,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},1984:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6670:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},5509:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},2677:(e,t,n)=>{var o=n(8423),r=n(6260);e.exports=n(8219)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},3879:(e,t,n)=>{var o=n(6670).document;e.exports=o&&o.documentElement},2484:(e,t,n)=>{e.exports=!n(8219)&&!n(1984)((function(){return 7!=Object.defineProperty(n(3802)("div"),"a",{get:function(){return 7}}).a}))},7001:(e,t,n)=>{var o=n(3417);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},4401:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4742:e=>{e.exports=!0},6854:(e,t,n)=>{"use strict";var o=n(8219),r=n(4311),i=n(9820),s=n(6569),a=n(6310),l=n(7001),u=Object.assign;e.exports=!u||n(1984)((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o}))?function(e,t){for(var n=a(e),u=arguments.length,c=1,p=i.f,d=s.f;u>c;)for(var h,f=l(arguments[c++]),g=p?r(f).concat(p(f)):r(f),y=g.length,v=0;y>v;)h=g[v++],o&&!d.call(f,h)||(n[h]=f[h]);return n}:u},2087:(e,t,n)=>{var o=n(812),r=n(82),i=n(7956),s=n(4566)("IE_PROTO"),a=function(){},l="prototype",u=function(){var e,t=n(3802)("iframe"),o=i.length;for(t.style.display="none",n(3879).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;o--;)delete u[l][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=o(e),n=new a,a[l]=null,n[s]=e):n=u(),void 0===t?n:r(n,t)}},8423:(e,t,n)=>{var o=n(812),r=n(2484),i=n(752),s=Object.defineProperty;t.f=n(8219)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},82:(e,t,n)=>{var o=n(8423),r=n(812),i=n(4311);e.exports=n(8219)?Object.defineProperties:function(e,t){r(e);for(var n,s=i(t),a=s.length,l=0;a>l;)o.f(e,n=s[l++],t[n]);return e}},1033:(e,t,n)=>{var o=n(6569),r=n(6260),i=n(5133),s=n(752),a=n(5509),l=n(2484),u=Object.getOwnPropertyDescriptor;t.f=n(8219)?u:function(e,t){if(e=i(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(a(e,t))return r(!o.f.call(e,t),e[t])}},9820:(e,t)=>{t.f=Object.getOwnPropertySymbols},5081:(e,t,n)=>{var o=n(5509),r=n(5133),i=n(4448)(!1),s=n(4566)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,u=[];for(n in a)n!=s&&o(a,n)&&u.push(n);for(;t.length>l;)o(a,n=t[l++])&&(~i(u,n)||u.push(n));return u}},4311:(e,t,n)=>{var o=n(5081),r=n(7956);e.exports=Object.keys||function(e){return o(e,r)}},6569:(e,t)=>{t.f={}.propertyIsEnumerable},2566:(e,t,n)=>{var o=n(8219),r=n(4311),i=n(5133),s=n(6569).f;e.exports=function(e){return function(t){for(var n,a=i(t),l=r(a),u=l.length,c=0,p=[];u>c;)n=l[c++],o&&!s.call(a,n)||p.push(e?[n,a[n]]:a[n]);return p}}},6260:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2074:(e,t,n)=>{var o=n(4401),r=n(812),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(8852)(Function.call,n(1033).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},4566:(e,t,n)=>{var o=n(6308)("keys"),r=n(9191);e.exports=function(e){return o[e]||(o[e]=r(e))}},6308:(e,t,n)=>{var o=n(6438),r=n(6670),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(4742)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},2917:(e,t,n)=>{var o=n(9383),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},9383:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},5133:(e,t,n)=>{var o=n(7001),r=n(7608);e.exports=function(e){return o(r(e))}},181:(e,t,n)=>{var o=n(9383),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},6310:(e,t,n)=>{var o=n(7608);e.exports=function(e){return Object(o(e))}},752:(e,t,n)=>{var o=n(4401);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},9191:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},3758:(e,t,n)=>{var o=n(8535);o(o.S+o.F,"Object",{assign:n(6854)})},1951:(e,t,n)=>{var o=n(8535);o(o.S,"Object",{create:n(2087)})},4284:(e,t,n)=>{var o=n(8535);o(o.S,"Object",{setPrototypeOf:n(2074).set})},2946:(e,t,n)=>{var o=n(8535),r=n(2566)(!0);o(o.S,"Object",{entries:function(e){return r(e)}})},7186:(e,t,n)=>{var o=n(8535),r=n(2566)(!1);o(o.S,"Object",{values:function(e){return r(e)}})},4213:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e){void 0===e&&(e=(0,r.default)());try{return e.activeElement}catch(e){}};var r=o(n(7069));e.exports=t.default},2963:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r=o(n(8217));e.exports=t.default},8217:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},3688:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=void 0;var r=o(n(2963));t.addClass=r.default;var i=o(n(788));t.removeClass=i.default;var s=o(n(8217));t.hasClass=s.default;var a={addClass:r.default,removeClass:i.default,hasClass:s.default};t.default=a},788:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},2667:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e,t){return function(n){var o=n.currentTarget,s=n.target;(0,i.default)(o,e).some((function(e){return(0,r.default)(e,s)}))&&t.call(this,n)}};var r=o(n(2523)),i=o(n(9830));e.exports=t.default},5673:(e,t,n)=>{"use strict";var o=n(4994);t.Ay=void 0;var r=o(n(9896));r.default;var i=o(n(1732));i.default;var s=o(n(2667));s.default;var a=o(n(598));a.default;var l={on:r.default,off:i.default,filter:s.default,listen:a.default};t.Ay=l},598:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=void 0;var r=o(n(1833)),i=o(n(9896)),s=o(n(1732)),a=function(){};r.default&&(a=function(e,t,n,o){return(0,i.default)(e,t,n,o),function(){(0,s.default)(e,t,n,o)}});var l=a;t.default=l,e.exports=t.default},1732:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=void 0;var r=function(){};o(n(1833)).default&&(r=document.addEventListener?function(e,t,n,o){return e.removeEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var i=r;t.default=i,e.exports=t.default},9896:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=void 0;var r=function(){};o(n(1833)).default&&(r=document.addEventListener?function(e,t,n,o){return e.addEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},7069:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},2523:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=void 0;var r=o(n(1833)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},8642:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},9830:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var r,i="#"===t[0],s="."===t[0],a=i||s?t.slice(1):t;if(n.test(a))return i?(r=(e=e.getElementById?e:document).getElementById(a))?[r]:[]:e.getElementsByClassName&&s?o(e.getElementsByClassName(a)):o(e.getElementsByTagName(t));return o(e.querySelectorAll(t))};var n=/^[\w-]*$/,o=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},1149:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var o=e.currentStyle[t]||null;if(null==o&&n&&n[t]&&(o=n[t]),s.test(o)&&!i.test(t)){var a=n.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":o,o=n.pixelLeft+"px",n.left=a,u&&(l.left=u)}return o}}};var r=o(n(8325)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},3725:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e,t,n){var o="",c="",p=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(p={})[t]=n}Object.keys(p).forEach((function(t){var n=p[t];n||0===n?(0,u.default)(t)?c+=t+"("+n+") ":o+=(0,i.default)(t)+": "+n+";":(0,a.default)(e,(0,i.default)(t))})),c&&(o+=l.transform+": "+c+";");e.style.cssText+=";"+o};var r=o(n(8325)),i=o(n(4831)),s=o(n(1149)),a=o(n(3196)),l=n(4002),u=o(n(4487));e.exports=t.default},3196:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},4487:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},4002:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r,i,s,a,l,u,c,p,d,h,f,g=o(n(1833)),y="transform";if(t.transform=y,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=f,t.animationTiming=h,t.animationDuration=d,t.animationName=p,g.default){var v=function(){for(var e,t,n=document.createElement("div").style,o={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},r=Object.keys(o),i="",s=0;s<r.length;s++){var a=r[s];if(a+"TransitionProperty"in n){i="-"+a.toLowerCase(),e=o[a]("TransitionEnd"),t=o[a]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=y=r+"-"+y,t.transitionProperty=a=r+"-transition-property",t.transitionDuration=l=r+"-transition-duration",t.transitionDelay=c=r+"-transition-delay",t.transitionTiming=u=r+"-transition-timing-function",t.animationName=p=r+"-animation-name",t.animationDuration=d=r+"-animation-duration",t.animationTiming=h=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var m={transform:y,end:i,property:a,timing:u,delay:c,duration:l};t.default=m},9274:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default},8325:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=o(n(9274)),i=/^-ms-/;e.exports=t.default},1932:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default},4831:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=o(n(1932)),i=/^ms-/;e.exports=t.default},1833:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},1171:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e){if((!r&&0!==r||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r};var r,i=o(n(1833));e.exports=t.default},4146:(e,t,n)=>{"use strict";var o=n(4363),r={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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return o.isMemo(e)?s:a[e.$$typeof]||r}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var s=c(n);p&&(s=s.concat(p(n)));for(var a=l(t),g=l(n),y=0;y<s.length;++y){var v=s[y];if(!(i[v]||o&&o[v]||g&&g[v]||a&&a[v])){var m=d(n,v);try{u(t,v,m)}catch(e){}}}}return t}},311:e=>{"use strict";e.exports=function(e,t,n,o,r,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},6545:(e,t)=>{function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n,i=String(e);return(n=o[i.toLowerCase()])?n:(n=r[i.toLowerCase()])||(1===i.length?i.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var i;if(i=o[t.toLowerCase()])return i===n;if(i=r[t.toLowerCase()])return i===n}else if("number"==typeof t)return t===n;return!1}};var o=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)o[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)o[i-48]=i;for(i=1;i<13;i++)o["f"+i]=i+111;for(i=0;i<10;i++)o["numpad "+i]=i+96;var s=t.names=t.title={};for(i in o)s[o[i]]=i;for(var a in r)o[a]=r[a]},2543:function(e,t,n){var o;e=n.nmd(e),function(){var r,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,u=32,c=64,p=128,d=256,h=1/0,f=9007199254740991,g=NaN,y=4294967295,v=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",d]],m="[object Arguments]",C="[object Array]",w="[object Boolean]",E="[object Date]",b="[object Error]",O="[object Function]",R="[object GeneratorFunction]",S="[object Map]",_="[object Number]",P="[object Object]",T="[object Promise]",D="[object RegExp]",A="[object Set]",N="[object String]",I="[object Symbol]",F="[object WeakMap]",x="[object ArrayBuffer]",L="[object DataView]",M="[object Float32Array]",G="[object Float64Array]",k="[object Int8Array]",V="[object Int16Array]",H="[object Int32Array]",W="[object Uint8Array]",B="[object Uint8ClampedArray]",j="[object Uint16Array]",U="[object Uint32Array]",z=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,X=RegExp($.source),Q=RegExp(q.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(re.source),se=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,Ce=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,Re="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",De="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['’]",Ie="["+Re+"]",Fe="["+Ae+"]",xe="["+Se+"]",Le="\\d+",Me="["+_e+"]",Ge="["+Pe+"]",ke="[^"+Re+Ae+Le+_e+Pe+Te+"]",Ve="\\ud83c[\\udffb-\\udfff]",He="[^"+Re+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Te+"]",Ue="\\u200d",ze="(?:"+Ge+"|"+ke+")",Ke="(?:"+je+"|"+ke+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+xe+"|"+Ve+")"+"?",Xe="["+De+"]?",Qe=Xe+qe+("(?:"+Ue+"(?:"+[He,We,Be].join("|")+")"+Xe+qe+")*"),Ze="(?:"+[Me,We,Be].join("|")+")"+Qe,Je="(?:"+[He+xe+"?",xe,We,Be,Ie].join("|")+")",et=RegExp(Ne,"g"),tt=RegExp(xe,"g"),nt=RegExp(Ve+"(?="+Ve+")|"+Je+Qe,"g"),ot=RegExp([je+"?"+Ge+"+"+Ye+"(?="+[Fe,je,"$"].join("|")+")",Ke+"+"+$e+"(?="+[Fe,je+ze,"$"].join("|")+")",je+"?"+ze+"+"+Ye,je+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ze].join("|"),"g"),rt=RegExp("["+Ue+Re+Se+De+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[M]=lt[G]=lt[k]=lt[V]=lt[H]=lt[W]=lt[B]=lt[j]=lt[U]=!0,lt[m]=lt[C]=lt[x]=lt[w]=lt[L]=lt[E]=lt[b]=lt[O]=lt[S]=lt[_]=lt[P]=lt[D]=lt[A]=lt[N]=lt[F]=!1;var ut={};ut[m]=ut[C]=ut[x]=ut[L]=ut[w]=ut[E]=ut[M]=ut[G]=ut[k]=ut[V]=ut[H]=ut[S]=ut[_]=ut[P]=ut[D]=ut[A]=ut[N]=ut[I]=ut[W]=ut[B]=ut[j]=ut[U]=!0,ut[b]=ut[O]=ut[F]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pt=parseFloat,dt=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||ft||Function("return this")(),yt=t&&!t.nodeType&&t,vt=yt&&e&&!e.nodeType&&e,mt=vt&&vt.exports===yt,Ct=mt&&ht.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||Ct&&Ct.binding&&Ct.binding("util")}catch(e){}}(),Et=wt&&wt.isArrayBuffer,bt=wt&&wt.isDate,Ot=wt&&wt.isMap,Rt=wt&&wt.isRegExp,St=wt&&wt.isSet,_t=wt&&wt.isTypedArray;function Pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,o){for(var r=-1,i=null==e?0:e.length;++r<i;){var s=e[r];t(o,s,n(s),e)}return o}function Dt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}function Ft(e,t){return!!(null==e?0:e.length)&&jt(e,t,0)>-1}function xt(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}function Lt(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}function Mt(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}function Gt(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function kt(e,t,n,o){var r=null==e?0:e.length;for(o&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Vt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var Ht=Yt("length");function Wt(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function Bt(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){var o=n-1,r=e.length;for(;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):Bt(e,zt,n)}function Ut(e,t,n,o){for(var r=n-1,i=e.length;++r<i;)if(o(e[r],t))return r;return-1}function zt(e){return e!=e}function Kt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:g}function Yt(e){return function(t){return null==t?r:t[e]}}function $t(e){return function(t){return null==e?r:e[t]}}function qt(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function Xt(e,t){for(var n,o=-1,i=e.length;++o<i;){var s=t(e[o]);s!==r&&(n=n===r?s:n+s)}return n}function Qt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function Zt(e){return e?e.slice(0,yn(e)+1).replace(se,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return Lt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,o=e.length;++n<o&&jt(t,e[n],0)>-1;);return n}function on(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var rn=$t({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sn=$t({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ct[e]}function ln(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function pn(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[r++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ht(e)}function gn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function yn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var vn=$t({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var n,o=(t=null==t?gt:mn.defaults(gt.Object(),t,mn.pick(gt,st))).Array,ae=t.Date,Re=t.Error,Se=t.Function,_e=t.Math,Pe=t.Object,Te=t.RegExp,De=t.String,Ae=t.TypeError,Ne=o.prototype,Ie=Se.prototype,Fe=Pe.prototype,xe=t["__core-js_shared__"],Le=Ie.toString,Me=Fe.hasOwnProperty,Ge=0,ke=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ve=Fe.toString,He=Le.call(Pe),We=gt._,Be=Te("^"+Le.call(Me).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=mt?t.Buffer:r,Ue=t.Symbol,ze=t.Uint8Array,Ke=je?je.allocUnsafe:r,Ye=cn(Pe.getPrototypeOf,Pe),$e=Pe.create,qe=Fe.propertyIsEnumerable,Xe=Ne.splice,Qe=Ue?Ue.isConcatSpreadable:r,Ze=Ue?Ue.iterator:r,Je=Ue?Ue.toStringTag:r,nt=function(){try{var e=hi(Pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,ct=ae&&ae.now!==gt.Date.now&&ae.now,ht=t.setTimeout!==gt.setTimeout&&t.setTimeout,ft=_e.ceil,yt=_e.floor,vt=Pe.getOwnPropertySymbols,Ct=je?je.isBuffer:r,wt=t.isFinite,Ht=Ne.join,$t=cn(Pe.keys,Pe),Cn=_e.max,wn=_e.min,En=ae.now,bn=t.parseInt,On=_e.random,Rn=Ne.reverse,Sn=hi(t,"DataView"),_n=hi(t,"Map"),Pn=hi(t,"Promise"),Tn=hi(t,"Set"),Dn=hi(t,"WeakMap"),An=hi(Pe,"create"),Nn=Dn&&new Dn,In={},Fn=Vi(Sn),xn=Vi(_n),Ln=Vi(Pn),Mn=Vi(Tn),Gn=Vi(Dn),kn=Ue?Ue.prototype:r,Vn=kn?kn.valueOf:r,Hn=kn?kn.toString:r;function Wn(e){if(na(e)&&!zs(e)&&!(e instanceof zn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return Hi(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!ta(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function jn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=zs(e),o=!n&&Us(e),r=!n&&!o&&qs(e),i=!n&&!o&&!r&&ca(e),s=n||o||r||i,a=s?Qt(e.length,De):[],l=a.length;for(var u in e)!t&&!Me.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,l))||a.push(u);return a}function Zn(e){var t=e.length;return t?e[Xo(0,t-1)]:r}function Jn(e,t){return Mi(Nr(e),lo(t,0,e.length))}function eo(e){return Mi(Nr(e))}function to(e,t,n){(n!==r&&!Ws(e[t],n)||n===r&&!(t in e))&&so(e,t,n)}function no(e,t,n){var o=e[t];Me.call(e,t)&&Ws(o,n)&&(n!==r||t in e)||so(e,t,n)}function oo(e,t){for(var n=e.length;n--;)if(Ws(e[n][0],t))return n;return-1}function ro(e,t,n,o){return fo(e,(function(e,r,i){t(o,e,n(e),i)})),o}function io(e,t){return e&&Ir(t,Ia(t),e)}function so(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ao(e,t){for(var n=-1,i=t.length,s=o(i),a=null==e;++n<i;)s[n]=a?r:Pa(e,t[n]);return s}function lo(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function uo(e,t,n,o,i,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=i?n(e,o,i,s):n(e)),a!==r)return a;if(!ta(e))return e;var p=zs(e);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Nr(e,a)}else{var d=yi(e),h=d==O||d==R;if(qs(e))return Sr(e,l);if(d==P||d==m||h&&!i){if(a=u||h?{}:mi(e),!l)return u?function(e,t){return Ir(e,gi(e),t)}(e,function(e,t){return e&&Ir(t,Fa(t),e)}(a,e)):function(e,t){return Ir(e,fi(e),t)}(e,io(a,e))}else{if(!ut[d])return i?e:{};a=function(e,t,n){var o=e.constructor;switch(t){case x:return _r(e);case w:case E:return new o(+e);case L:return function(e,t){var n=t?_r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case G:case k:case V:case H:case W:case B:case j:case U:return Pr(e,n);case S:return new o;case _:case N:return new o(e);case D:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new o;case I:return r=e,Vn?Pe(Vn.call(r)):{}}var r}(e,d,l)}}s||(s=new Xn);var f=s.get(e);if(f)return f;s.set(e,a),aa(e)?e.forEach((function(o){a.add(uo(o,t,n,o,e,s))})):oa(e)&&e.forEach((function(o,r){a.set(r,uo(o,t,n,r,e,s))}));var g=p?r:(c?u?si:ii:u?Fa:Ia)(e);return Dt(g||e,(function(o,r){g&&(o=e[r=o]),no(a,r,uo(o,t,n,r,e,s))})),a}function co(e,t,n){var o=n.length;if(null==e)return!o;for(e=Pe(e);o--;){var i=n[o],s=t[i],a=e[i];if(a===r&&!(i in e)||!s(a))return!1}return!0}function po(e,t,n){if("function"!=typeof e)throw new Ae(i);return Ii((function(){e.apply(r,n)}),t)}function ho(e,t,n,o){var r=-1,i=Ft,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Lt(t,Jt(n))),o?(i=xt,s=!1):t.length>=200&&(i=tn,s=!1,t=new qn(t));e:for(;++r<a;){var c=e[r],p=null==n?c:n(c);if(c=o||0!==c?c:0,s&&p==p){for(var d=u;d--;)if(t[d]===p)continue e;l.push(c)}else i(t,p,o)||l.push(c)}return l}Wn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:Wn}},Wn.prototype=jn.prototype,Wn.prototype.constructor=Wn,Un.prototype=Bn(jn.prototype),Un.prototype.constructor=Un,zn.prototype=Bn(jn.prototype),zn.prototype.constructor=zn,Kn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===s?r:n}return Me.call(t,e)?t[e]:r},Kn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==r:Me.call(t,e)},Kn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===r?s:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=oo(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=oo(t,e);return n<0?r:t[n][1]},Yn.prototype.has=function(e){return oo(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,o=oo(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(_n||Yn),string:new Kn}},$n.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return pi(this,e).get(e)},$n.prototype.has=function(e){return pi(this,e).has(e)},$n.prototype.set=function(e,t){var n=pi(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,s),this},qn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var o=n.__data__;if(!_n||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(o)}return n.set(e,t),this.size=n.size,this};var fo=Lr(bo),go=Lr(Oo,!0);function yo(e,t){var n=!0;return fo(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function vo(e,t,n){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=t(s);if(null!=a&&(l===r?a==a&&!ua(a):n(a,l)))var l=a,u=s}return u}function mo(e,t){var n=[];return fo(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function Co(e,t,n,o,r){var i=-1,s=e.length;for(n||(n=Ci),r||(r=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?Co(a,t-1,n,o,r):Mt(r,a):o||(r[r.length]=a)}return r}var wo=Mr(),Eo=Mr(!0);function bo(e,t){return e&&wo(e,t,Ia)}function Oo(e,t){return e&&Eo(e,t,Ia)}function Ro(e,t){return It(t,(function(t){return Zs(e[t])}))}function So(e,t){for(var n=0,o=(t=Er(t,e)).length;null!=e&&n<o;)e=e[ki(t[n++])];return n&&n==o?e:r}function _o(e,t,n){var o=t(e);return zs(e)?o:Mt(o,n(e))}function Po(e){return null==e?e===r?"[object Undefined]":"[object Null]":Je&&Je in Pe(e)?function(e){var t=Me.call(e,Je),n=e[Je];try{e[Je]=r;var o=!0}catch(e){}var i=Ve.call(e);o&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Ve.call(e)}(e)}function To(e,t){return e>t}function Do(e,t){return null!=e&&Me.call(e,t)}function Ao(e,t){return null!=e&&t in Pe(e)}function No(e,t,n){for(var i=n?xt:Ft,s=e[0].length,a=e.length,l=a,u=o(a),c=1/0,p=[];l--;){var d=e[l];l&&t&&(d=Lt(d,Jt(t))),c=wn(d.length,c),u[l]=!n&&(t||s>=120&&d.length>=120)?new qn(l&&d):r}d=e[0];var h=-1,f=u[0];e:for(;++h<s&&p.length<c;){var g=d[h],y=t?t(g):g;if(g=n||0!==g?g:0,!(f?tn(f,y):i(p,y,n))){for(l=a;--l;){var v=u[l];if(!(v?tn(v,y):i(e[l],y,n)))continue e}f&&f.push(y),p.push(g)}}return p}function Io(e,t,n){var o=null==(e=Di(e,t=Er(t,e)))?e:e[ki(Qi(t))];return null==o?r:Pt(o,e,n)}function Fo(e){return na(e)&&Po(e)==m}function xo(e,t,n,o,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,o,i,s){var a=zs(e),l=zs(t),u=a?C:yi(e),c=l?C:yi(t),p=(u=u==m?P:u)==P,d=(c=c==m?P:c)==P,h=u==c;if(h&&qs(e)){if(!qs(t))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Xn),a||ca(e)?oi(e,t,n,o,i,s):function(e,t,n,o,r,i,s){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case w:case E:case _:return Ws(+e,+t);case b:return e.name==t.name&&e.message==t.message;case D:case N:return e==t+"";case S:var a=un;case A:var l=1&o;if(a||(a=dn),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;o|=2,s.set(e,t);var c=oi(a(e),a(t),o,r,i,s);return s.delete(e),c;case I:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(e,t,u,n,o,i,s);if(!(1&n)){var f=p&&Me.call(e,"__wrapped__"),g=d&&Me.call(t,"__wrapped__");if(f||g){var y=f?e.value():e,v=g?t.value():t;return s||(s=new Xn),i(y,v,n,o,s)}}if(!h)return!1;return s||(s=new Xn),function(e,t,n,o,i,s){var a=1&n,l=ii(e),u=l.length,c=ii(t),p=c.length;if(u!=p&&!a)return!1;var d=u;for(;d--;){var h=l[d];if(!(a?h in t:Me.call(t,h)))return!1}var f=s.get(e),g=s.get(t);if(f&&g)return f==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);var v=a;for(;++d<u;){var m=e[h=l[d]],C=t[h];if(o)var w=a?o(C,m,h,t,e,s):o(m,C,h,e,t,s);if(!(w===r?m===C||i(m,C,n,o,s):w)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var E=e.constructor,b=t.constructor;E==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof b&&b instanceof b||(y=!1)}return s.delete(e),s.delete(t),y}(e,t,n,o,i,s)}(e,t,n,o,xo,i))}function Lo(e,t,n,o){var i=n.length,s=i,a=!o;if(null==e)return!s;for(e=Pe(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var u=(l=n[i])[0],c=e[u],p=l[1];if(a&&l[2]){if(c===r&&!(u in e))return!1}else{var d=new Xn;if(o)var h=o(c,p,u,e,t,d);if(!(h===r?xo(p,c,3,o,d):h))return!1}}return!0}function Mo(e){return!(!ta(e)||(t=e,ke&&ke in t))&&(Zs(e)?Be:me).test(Vi(e));var t}function Go(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?zs(e)?jo(e[0],e[1]):Bo(e):hl(e)}function ko(e){if(!Si(e))return $t(e);var t=[];for(var n in Pe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Vo(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Pe(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var o in e)("constructor"!=o||!t&&Me.call(e,o))&&n.push(o);return n}function Ho(e,t){return e<t}function Wo(e,t){var n=-1,r=Ys(e)?o(e.length):[];return fo(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Bo(e){var t=di(e);return 1==t.length&&t[0][2]?Pi(t[0][0],t[0][1]):function(n){return n===e||Lo(n,e,t)}}function jo(e,t){return bi(e)&&_i(t)?Pi(ki(e),t):function(n){var o=Pa(n,e);return o===r&&o===t?Ta(n,e):xo(t,o,3)}}function Uo(e,t,n,o,i){e!==t&&wo(t,(function(s,a){if(i||(i=new Xn),ta(s))!function(e,t,n,o,i,s,a){var l=Ai(e,n),u=Ai(t,n),c=a.get(u);if(c)return void to(e,n,c);var p=s?s(l,u,n+"",e,t,a):r,d=p===r;if(d){var h=zs(u),f=!h&&qs(u),g=!h&&!f&&ca(u);p=u,h||f||g?zs(l)?p=l:$s(l)?p=Nr(l):f?(d=!1,p=Sr(u,!0)):g?(d=!1,p=Pr(u,!0)):p=[]:ia(u)||Us(u)?(p=l,Us(l)?p=ma(l):ta(l)&&!Zs(l)||(p=mi(u))):d=!1}d&&(a.set(u,p),i(p,u,o,s,a),a.delete(u));to(e,n,p)}(e,t,a,n,Uo,o,i);else{var l=o?o(Ai(e,a),s,a+"",e,t,i):r;l===r&&(l=s),to(e,a,l)}}),Fa)}function zo(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:r}function Ko(e,t,n){t=t.length?Lt(t,(function(e){return zs(e)?function(t){return So(t,1===e.length?e[0]:e)}:e})):[rl];var o=-1;t=Lt(t,Jt(ci()));var r=Wo(e,(function(e,n,r){var i=Lt(t,(function(t){return t(e)}));return{criteria:i,index:++o,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var o=-1,r=e.criteria,i=t.criteria,s=r.length,a=n.length;for(;++o<s;){var l=Tr(r[o],i[o]);if(l)return o>=a?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yo(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var s=t[o],a=So(e,s);n(a,s)&&tr(i,Er(s,e),a)}return i}function $o(e,t,n,o){var r=o?Ut:jt,i=-1,s=t.length,a=e;for(e===t&&(t=Nr(t)),n&&(a=Lt(e,Jt(n)));++i<s;)for(var l=0,u=t[i],c=n?n(u):u;(l=r(a,c,l,o))>-1;)a!==e&&Xe.call(a,l,1),Xe.call(e,l,1);return e}function qo(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==i){var i=r;wi(r)?Xe.call(e,r,1):hr(e,r)}}return e}function Xo(e,t){return e+yt(On()*(t-e+1))}function Qo(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=yt(t/2))&&(e+=e)}while(t);return n}function Zo(e,t){return Fi(Ti(e,t,rl),e+"")}function Jo(e){return Zn(Wa(e))}function er(e,t){var n=Wa(e);return Mi(n,lo(t,0,n.length))}function tr(e,t,n,o){if(!ta(e))return e;for(var i=-1,s=(t=Er(t,e)).length,a=s-1,l=e;null!=l&&++i<s;){var u=ki(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var p=l[u];(c=o?o(p,u,l):r)===r&&(c=ta(p)?p:wi(t[i+1])?[]:{})}no(l,u,c),l=l[u]}return e}var nr=Nn?function(e,t){return Nn.set(e,t),e}:rl,or=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:rl;function rr(e){return Mi(Wa(e))}function ir(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=o(i);++r<i;)s[r]=e[r+t];return s}function sr(e,t){var n;return fo(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function ar(e,t,n){var o=0,r=null==e?o:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;o<r;){var i=o+r>>>1,s=e[i];null!==s&&!ua(s)&&(n?s<=t:s<t)?o=i+1:r=i}return r}return lr(e,t,rl,n)}function lr(e,t,n,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,u=ua(t),c=t===r;i<s;){var p=yt((i+s)/2),d=n(e[p]),h=d!==r,f=null===d,g=d==d,y=ua(d);if(a)var v=o||g;else v=c?g&&(o||h):l?g&&h&&(o||!f):u?g&&h&&!f&&(o||!y):!f&&!y&&(o?d<=t:d<t);v?i=p+1:s=p}return wn(s,4294967294)}function ur(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var s=e[n],a=t?t(s):s;if(!n||!Ws(a,l)){var l=a;i[r++]=0===s?0:s}}return i}function cr(e){return"number"==typeof e?e:ua(e)?g:+e}function pr(e){if("string"==typeof e)return e;if(zs(e))return Lt(e,pr)+"";if(ua(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,n){var o=-1,r=Ft,i=e.length,s=!0,a=[],l=a;if(n)s=!1,r=xt;else if(i>=200){var u=t?null:Qr(e);if(u)return dn(u);s=!1,r=tn,l=new qn}else l=t?[]:a;e:for(;++o<i;){var c=e[o],p=t?t(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue e;t&&l.push(p),a.push(c)}else r(l,p,n)||(l!==a&&l.push(p),a.push(c))}return a}function hr(e,t){return null==(e=Di(e,t=Er(t,e)))||delete e[ki(Qi(t))]}function fr(e,t,n,o){return tr(e,t,n(So(e,t)),o)}function gr(e,t,n,o){for(var r=e.length,i=o?r:-1;(o?i--:++i<r)&&t(e[i],i,e););return n?ir(e,o?0:i,o?i+1:r):ir(e,o?i+1:0,o?r:i)}function yr(e,t){var n=e;return n instanceof zn&&(n=n.value()),Gt(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function vr(e,t,n){var r=e.length;if(r<2)return r?dr(e[0]):[];for(var i=-1,s=o(r);++i<r;)for(var a=e[i],l=-1;++l<r;)l!=i&&(s[i]=ho(s[i]||a,e[l],t,n));return dr(Co(s,1),t,n)}function mr(e,t,n){for(var o=-1,i=e.length,s=t.length,a={};++o<i;){var l=o<s?t[o]:r;n(a,e[o],l)}return a}function Cr(e){return $s(e)?e:[]}function wr(e){return"function"==typeof e?e:rl}function Er(e,t){return zs(e)?e:bi(e,t)?[e]:Gi(Ca(e))}var br=Zo;function Or(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:ir(e,t,n)}var Rr=rt||function(e){return gt.clearTimeout(e)};function Sr(e,t){if(t)return e.slice();var n=e.length,o=Ke?Ke(n):new e.constructor(n);return e.copy(o),o}function _r(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Pr(e,t){var n=t?_r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tr(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,s=ua(e),a=t!==r,l=null===t,u=t==t,c=ua(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||o&&a&&u||!n&&u||!i)return 1;if(!o&&!s&&!c&&e<t||c&&n&&i&&!o&&!s||l&&n&&i||!a&&i||!u)return-1}return 0}function Dr(e,t,n,r){for(var i=-1,s=e.length,a=n.length,l=-1,u=t.length,c=Cn(s-a,0),p=o(u+c),d=!r;++l<u;)p[l]=t[l];for(;++i<a;)(d||i<s)&&(p[n[i]]=e[i]);for(;c--;)p[l++]=e[i++];return p}function Ar(e,t,n,r){for(var i=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,p=Cn(s-l,0),d=o(p+c),h=!r;++i<p;)d[i]=e[i];for(var f=i;++u<c;)d[f+u]=t[u];for(;++a<l;)(h||i<s)&&(d[f+n[a]]=e[i++]);return d}function Nr(e,t){var n=-1,r=e.length;for(t||(t=o(r));++n<r;)t[n]=e[n];return t}function Ir(e,t,n,o){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=o?o(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),i?so(n,l,u):no(n,l,u)}return n}function Fr(e,t){return function(n,o){var r=zs(n)?Tt:ro,i=t?t():{};return r(n,e,ci(o,2),i)}}function xr(e){return Zo((function(t,n){var o=-1,i=n.length,s=i>1?n[i-1]:r,a=i>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(i--,s):r,a&&Ei(n[0],n[1],a)&&(s=i<3?r:s,i=1),t=Pe(t);++o<i;){var l=n[o];l&&e(t,l,o,s)}return t}))}function Lr(e,t){return function(n,o){if(null==n)return n;if(!Ys(n))return e(n,o);for(var r=n.length,i=t?r:-1,s=Pe(n);(t?i--:++i<r)&&!1!==o(s[i],i,s););return n}}function Mr(e){return function(t,n,o){for(var r=-1,i=Pe(t),s=o(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(i[l],l,i))break}return t}}function Gr(e){return function(t){var n=ln(t=Ca(t))?gn(t):r,o=n?n[0]:t.charAt(0),i=n?Or(n,1).join(""):t.slice(1);return o[e]()+i}}function kr(e){return function(t){return Gt(Za(Ua(t).replace(et,"")),e,"")}}function Vr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),o=e.apply(n,t);return ta(o)?o:n}}function Hr(e){return function(t,n,o){var i=Pe(t);if(!Ys(t)){var s=ci(n,3);t=Ia(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,o);return a>-1?i[s?t[a]:a]:r}}function Wr(e){return ri((function(t){var n=t.length,o=n,s=Un.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Ae(i);if(s&&!l&&"wrapper"==li(a))var l=new Un([],!0)}for(o=l?o:n;++o<n;){var u=li(a=t[o]),c="wrapper"==u?ai(a):r;l=c&&Oi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[li(c[0])].apply(l,c[3]):1==a.length&&Oi(a)?l[u]():l.thru(a)}return function(){var e=arguments,o=e[0];if(l&&1==e.length&&zs(o))return l.plant(o).value();for(var r=0,i=n?t[r].apply(this,e):o;++r<n;)i=t[r].call(this,i);return i}}))}function Br(e,t,n,i,s,a,l,u,c,d){var h=t&p,f=1&t,g=2&t,y=24&t,v=512&t,m=g?r:Vr(e);return function p(){for(var C=arguments.length,w=o(C),E=C;E--;)w[E]=arguments[E];if(y)var b=ui(p),O=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}(w,b);if(i&&(w=Dr(w,i,s,y)),a&&(w=Ar(w,a,l,y)),C-=O,y&&C<d){var R=pn(w,b);return qr(e,t,Br,p.placeholder,n,w,R,u,c,d-C)}var S=f?n:this,_=g?S[e]:e;return C=w.length,u?w=function(e,t){var n=e.length,o=wn(t.length,n),i=Nr(e);for(;o--;){var s=t[o];e[o]=wi(s,n)?i[s]:r}return e}(w,u):v&&C>1&&w.reverse(),h&&c<C&&(w.length=c),this&&this!==gt&&this instanceof p&&(_=m||Vr(_)),_.apply(S,w)}}function jr(e,t){return function(n,o){return function(e,t,n,o){return bo(e,(function(e,r,i){t(o,n(e),r,i)})),o}(n,e,t(o),{})}}function Ur(e,t){return function(n,o){var i;if(n===r&&o===r)return t;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=pr(n),o=pr(o)):(n=cr(n),o=cr(o)),i=e(n,o)}return i}}function zr(e){return ri((function(t){return t=Lt(t,Jt(ci())),Zo((function(n){var o=this;return e(t,(function(e){return Pt(e,o,n)}))}))}))}function Kr(e,t){var n=(t=t===r?" ":pr(t)).length;if(n<2)return n?Qo(t,e):t;var o=Qo(t,ft(e/fn(t)));return ln(t)?Or(gn(o),0,e).join(""):o.slice(0,e)}function Yr(e){return function(t,n,i){return i&&"number"!=typeof i&&Ei(t,n,i)&&(n=i=r),t=fa(t),n===r?(n=t,t=0):n=fa(n),function(e,t,n,r){for(var i=-1,s=Cn(ft((t-e)/(n||1)),0),a=o(s);s--;)a[r?s:++i]=e,e+=n;return a}(t,n,i=i===r?t<n?1:-1:fa(i),e)}}function $r(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=va(t),n=va(n)),e(t,n)}}function qr(e,t,n,o,i,s,a,l,p,d){var h=8&t;t|=h?u:c,4&(t&=~(h?c:u))||(t&=-4);var f=[e,t,i,h?s:r,h?a:r,h?r:s,h?r:a,l,p,d],g=n.apply(r,f);return Oi(e)&&Ni(g,f),g.placeholder=o,xi(g,e,t)}function Xr(e){var t=_e[e];return function(e,n){if(e=va(e),(n=null==n?0:wn(ga(n),292))&&wt(e)){var o=(Ca(e)+"e").split("e");return+((o=(Ca(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var Qr=Tn&&1/dn(new Tn([,-0]))[1]==h?function(e){return new Tn(e)}:ul;function Zr(e){return function(t){var n=yi(t);return n==S?un(t):n==A?hn(t):function(e,t){return Lt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jr(e,t,n,s,h,f,g,y){var v=2&t;if(!v&&"function"!=typeof e)throw new Ae(i);var m=s?s.length:0;if(m||(t&=-97,s=h=r),g=g===r?g:Cn(ga(g),0),y=y===r?y:ga(y),m-=h?h.length:0,t&c){var C=s,w=h;s=h=r}var E=v?r:ai(e),b=[e,t,n,s,h,C,w,f,g,y];if(E&&function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,s=o==p&&8==n||o==p&&n==d&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Dr(u,l,t[4]):l,e[4]=u?pn(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ar(u,l,t[6]):l,e[6]=u?pn(e[5],a):t[6]);(l=t[7])&&(e[7]=l);o&p&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(b,E),e=b[0],t=b[1],n=b[2],s=b[3],h=b[4],!(y=b[9]=b[9]===r?v?0:e.length:Cn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)O=8==t||t==l?function(e,t,n){var i=Vr(e);return function s(){for(var a=arguments.length,l=o(a),u=a,c=ui(s);u--;)l[u]=arguments[u];var p=a<3&&l[0]!==c&&l[a-1]!==c?[]:pn(l,c);return(a-=p.length)<n?qr(e,t,Br,s.placeholder,r,l,p,r,r,n-a):Pt(this&&this!==gt&&this instanceof s?i:e,this,l)}}(e,t,y):t!=u&&33!=t||h.length?Br.apply(r,b):function(e,t,n,r){var i=1&t,s=Vr(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=r.length,p=o(c+l),d=this&&this!==gt&&this instanceof t?s:e;++u<c;)p[u]=r[u];for(;l--;)p[u++]=arguments[++a];return Pt(d,i?n:this,p)}}(e,t,n,s);else var O=function(e,t,n){var o=1&t,r=Vr(e);return function t(){return(this&&this!==gt&&this instanceof t?r:e).apply(o?n:this,arguments)}}(e,t,n);return xi((E?nr:Ni)(O,b),e,t)}function ei(e,t,n,o){return e===r||Ws(e,Fe[n])&&!Me.call(o,n)?t:e}function ti(e,t,n,o,i,s){return ta(e)&&ta(t)&&(s.set(t,e),Uo(e,t,r,ti,s),s.delete(t)),e}function ni(e){return ia(e)?r:e}function oi(e,t,n,o,i,s){var a=1&n,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(e),p=s.get(t);if(c&&p)return c==t&&p==e;var d=-1,h=!0,f=2&n?new qn:r;for(s.set(e,t),s.set(t,e);++d<l;){var g=e[d],y=t[d];if(o)var v=a?o(y,g,d,t,e,s):o(g,y,d,e,t,s);if(v!==r){if(v)continue;h=!1;break}if(f){if(!Vt(t,(function(e,t){if(!tn(f,t)&&(g===e||i(g,e,n,o,s)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!i(g,y,n,o,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function ri(e){return Fi(Ti(e,r,Ki),e+"")}function ii(e){return _o(e,Ia,fi)}function si(e){return _o(e,Fa,gi)}var ai=Nn?function(e){return Nn.get(e)}:ul;function li(e){for(var t=e.name+"",n=In[t],o=Me.call(In,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t}function ui(e){return(Me.call(Wn,"placeholder")?Wn:e).placeholder}function ci(){var e=Wn.iteratee||il;return e=e===il?Go:e,arguments.length?e(arguments[0],arguments[1]):e}function pi(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function di(e){for(var t=Ia(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,_i(r)]}return t}function hi(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Mo(n)?n:r}var fi=vt?function(e){return null==e?[]:(e=Pe(e),It(vt(e),(function(t){return qe.call(e,t)})))}:yl,gi=vt?function(e){for(var t=[];e;)Mt(t,fi(e)),e=Ye(e);return t}:yl,yi=Po;function vi(e,t,n){for(var o=-1,r=(t=Er(t,e)).length,i=!1;++o<r;){var s=ki(t[o]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&ea(r)&&wi(s,r)&&(zs(e)||Us(e))}function mi(e){return"function"!=typeof e.constructor||Si(e)?{}:Bn(Ye(e))}function Ci(e){return zs(e)||Us(e)||!!(Qe&&e&&e[Qe])}function wi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function Ei(e,t,n){if(!ta(n))return!1;var o=typeof t;return!!("number"==o?Ys(n)&&wi(t,n.length):"string"==o&&t in n)&&Ws(n[t],e)}function bi(e,t){if(zs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ua(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Pe(t))}function Oi(e){var t=li(e),n=Wn[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}(Sn&&yi(new Sn(new ArrayBuffer(1)))!=L||_n&&yi(new _n)!=S||Pn&&yi(Pn.resolve())!=T||Tn&&yi(new Tn)!=A||Dn&&yi(new Dn)!=F)&&(yi=function(e){var t=Po(e),n=t==P?e.constructor:r,o=n?Vi(n):"";if(o)switch(o){case Fn:return L;case xn:return S;case Ln:return T;case Mn:return A;case Gn:return F}return t});var Ri=xe?Zs:vl;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Fe)}function _i(e){return e==e&&!ta(e)}function Pi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Pe(n)))}}function Ti(e,t,n){return t=Cn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Cn(r.length-t,0),a=o(s);++i<s;)a[i]=r[t+i];i=-1;for(var l=o(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),Pt(e,this,l)}}function Di(e,t){return t.length<2?e:So(e,ir(t,0,-1))}function Ai(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ni=Li(nr),Ii=ht||function(e,t){return gt.setTimeout(e,t)},Fi=Li(or);function xi(e,t,n){var o=t+"";return Fi(e,function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return Dt(v,(function(n){var o="_."+n[0];t&n[1]&&!Ft(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(o),n)))}function Li(e){var t=0,n=0;return function(){var o=En(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Mi(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n<t;){var s=Xo(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Gi=function(e){var t=Ls(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oe,(function(e,n,o,r){t.push(o?r.replace(he,"$1"):n||e)})),t}));function ki(e){if("string"==typeof e||ua(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Vi(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hi(e){if(e instanceof zn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Nr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wi=Zo((function(e,t){return $s(e)?ho(e,Co(t,1,$s,!0)):[]})),Bi=Zo((function(e,t){var n=Qi(t);return $s(n)&&(n=r),$s(e)?ho(e,Co(t,1,$s,!0),ci(n,2)):[]})),ji=Zo((function(e,t){var n=Qi(t);return $s(n)&&(n=r),$s(e)?ho(e,Co(t,1,$s,!0),r,n):[]}));function Ui(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:ga(n);return r<0&&(r=Cn(o+r,0)),Bt(e,ci(t,3),r)}function zi(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return n!==r&&(i=ga(n),i=n<0?Cn(o+i,0):wn(i,o-1)),Bt(e,ci(t,3),i,!0)}function Ki(e){return(null==e?0:e.length)?Co(e,1):[]}function Yi(e){return e&&e.length?e[0]:r}var $i=Zo((function(e){var t=Lt(e,Cr);return t.length&&t[0]===e[0]?No(t):[]})),qi=Zo((function(e){var t=Qi(e),n=Lt(e,Cr);return t===Qi(n)?t=r:n.pop(),n.length&&n[0]===e[0]?No(n,ci(t,2)):[]})),Xi=Zo((function(e){var t=Qi(e),n=Lt(e,Cr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?No(n,r,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Zi=Zo(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?$o(e,t):e}var es=ri((function(e,t){var n=null==e?0:e.length,o=ao(e,t);return qo(e,Lt(t,(function(e){return wi(e,n)?+e:e})).sort(Tr)),o}));function ts(e){return null==e?e:Rn.call(e)}var ns=Zo((function(e){return dr(Co(e,1,$s,!0))})),os=Zo((function(e){var t=Qi(e);return $s(t)&&(t=r),dr(Co(e,1,$s,!0),ci(t,2))})),rs=Zo((function(e){var t=Qi(e);return t="function"==typeof t?t:r,dr(Co(e,1,$s,!0),r,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if($s(e))return t=Cn(e.length,t),!0})),Qt(t,(function(t){return Lt(e,Yt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Lt(n,(function(e){return Pt(t,r,e)}))}var as=Zo((function(e,t){return $s(e)?ho(e,t):[]})),ls=Zo((function(e){return vr(It(e,$s))})),us=Zo((function(e){var t=Qi(e);return $s(t)&&(t=r),vr(It(e,$s),ci(t,2))})),cs=Zo((function(e){var t=Qi(e);return t="function"==typeof t?t:r,vr(It(e,$s),r,t)})),ps=Zo(is);var ds=Zo((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ss(e,n)}));function hs(e){var t=Wn(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var gs=ri((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return ao(t,e)};return!(t>1||this.__actions__.length)&&o instanceof zn&&wi(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[i],thisArg:r}),new Un(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(i)}));var ys=Fr((function(e,t,n){Me.call(e,n)?++e[n]:so(e,n,1)}));var vs=Hr(Ui),ms=Hr(zi);function Cs(e,t){return(zs(e)?Dt:fo)(e,ci(t,3))}function ws(e,t){return(zs(e)?At:go)(e,ci(t,3))}var Es=Fr((function(e,t,n){Me.call(e,n)?e[n].push(t):so(e,n,[t])}));var bs=Zo((function(e,t,n){var r=-1,i="function"==typeof t,s=Ys(e)?o(e.length):[];return fo(e,(function(e){s[++r]=i?Pt(t,e,n):Io(e,t,n)})),s})),Os=Fr((function(e,t,n){so(e,n,t)}));function Rs(e,t){return(zs(e)?Lt:Wo)(e,ci(t,3))}var Ss=Fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var _s=Zo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ei(e,t[0],t[1])?t=[]:n>2&&Ei(t[0],t[1],t[2])&&(t=[t[0]]),Ko(e,Co(t,1),[])})),Ps=ct||function(){return gt.Date.now()};function Ts(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Jr(e,p,r,r,r,r,t)}function Ds(e,t){var n;if("function"!=typeof t)throw new Ae(i);return e=ga(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var As=Zo((function(e,t,n){var o=1;if(n.length){var r=pn(n,ui(As));o|=u}return Jr(e,o,t,n,r)})),Ns=Zo((function(e,t,n){var o=3;if(n.length){var r=pn(n,ui(Ns));o|=u}return Jr(t,o,e,n,r)}));function Is(e,t,n){var o,s,a,l,u,c,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new Ae(i);function g(t){var n=o,i=s;return o=s=r,p=t,l=e.apply(i,n)}function y(e){var n=e-c;return c===r||n>=t||n<0||h&&e-p>=a}function v(){var e=Ps();if(y(e))return m(e);u=Ii(v,function(e){var n=t-(e-c);return h?wn(n,a-(e-p)):n}(e))}function m(e){return u=r,f&&o?g(e):(o=s=r,l)}function C(){var e=Ps(),n=y(e);if(o=arguments,s=this,c=e,n){if(u===r)return function(e){return p=e,u=Ii(v,t),d?g(e):l}(c);if(h)return Rr(u),u=Ii(v,t),g(c)}return u===r&&(u=Ii(v,t)),l}return t=va(t)||0,ta(n)&&(d=!!n.leading,a=(h="maxWait"in n)?Cn(va(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),C.cancel=function(){u!==r&&Rr(u),p=0,o=c=s=u=r},C.flush=function(){return u===r?l:m(Ps())},C}var Fs=Zo((function(e,t){return po(e,1,t)})),xs=Zo((function(e,t,n){return po(e,va(t)||0,n)}));function Ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(i);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(Ls.Cache||$n),n}function Ms(e){if("function"!=typeof e)throw new Ae(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ls.Cache=$n;var Gs=br((function(e,t){var n=(t=1==t.length&&zs(t[0])?Lt(t[0],Jt(ci())):Lt(Co(t,1),Jt(ci()))).length;return Zo((function(o){for(var r=-1,i=wn(o.length,n);++r<i;)o[r]=t[r].call(this,o[r]);return Pt(e,this,o)}))})),ks=Zo((function(e,t){var n=pn(t,ui(ks));return Jr(e,u,r,t,n)})),Vs=Zo((function(e,t){var n=pn(t,ui(Vs));return Jr(e,c,r,t,n)})),Hs=ri((function(e,t){return Jr(e,d,r,r,r,t)}));function Ws(e,t){return e===t||e!=e&&t!=t}var Bs=$r(To),js=$r((function(e,t){return e>=t})),Us=Fo(function(){return arguments}())?Fo:function(e){return na(e)&&Me.call(e,"callee")&&!qe.call(e,"callee")},zs=o.isArray,Ks=Et?Jt(Et):function(e){return na(e)&&Po(e)==x};function Ys(e){return null!=e&&ea(e.length)&&!Zs(e)}function $s(e){return na(e)&&Ys(e)}var qs=Ct||vl,Xs=bt?Jt(bt):function(e){return na(e)&&Po(e)==E};function Qs(e){if(!na(e))return!1;var t=Po(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Zs(e){if(!ta(e))return!1;var t=Po(e);return t==O||t==R||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==ga(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var oa=Ot?Jt(Ot):function(e){return na(e)&&yi(e)==S};function ra(e){return"number"==typeof e||na(e)&&Po(e)==_}function ia(e){if(!na(e)||Po(e)!=P)return!1;var t=Ye(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==He}var sa=Rt?Jt(Rt):function(e){return na(e)&&Po(e)==D};var aa=St?Jt(St):function(e){return na(e)&&yi(e)==A};function la(e){return"string"==typeof e||!zs(e)&&na(e)&&Po(e)==N}function ua(e){return"symbol"==typeof e||na(e)&&Po(e)==I}var ca=_t?Jt(_t):function(e){return na(e)&&ea(e.length)&&!!lt[Po(e)]};var pa=$r(Ho),da=$r((function(e,t){return e<=t}));function ha(e){if(!e)return[];if(Ys(e))return la(e)?gn(e):Nr(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=yi(e);return(t==S?un:t==A?dn:Wa)(e)}function fa(e){return e?(e=va(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=fa(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?lo(ga(e),0,y):0}function va(e){if("number"==typeof e)return e;if(ua(e))return g;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||Ce.test(e)?dt(e.slice(2),n?2:8):ye.test(e)?g:+e}function ma(e){return Ir(e,Fa(e))}function Ca(e){return null==e?"":pr(e)}var wa=xr((function(e,t){if(Si(t)||Ys(t))Ir(t,Ia(t),e);else for(var n in t)Me.call(t,n)&&no(e,n,t[n])})),Ea=xr((function(e,t){Ir(t,Fa(t),e)})),ba=xr((function(e,t,n,o){Ir(t,Fa(t),e,o)})),Oa=xr((function(e,t,n,o){Ir(t,Ia(t),e,o)})),Ra=ri(ao);var Sa=Zo((function(e,t){e=Pe(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&Ei(t[0],t[1],i)&&(o=1);++n<o;)for(var s=t[n],a=Fa(s),l=-1,u=a.length;++l<u;){var c=a[l],p=e[c];(p===r||Ws(p,Fe[c])&&!Me.call(e,c))&&(e[c]=s[c])}return e})),_a=Zo((function(e){return e.push(r,ti),Pt(La,r,e)}));function Pa(e,t,n){var o=null==e?r:So(e,t);return o===r?n:o}function Ta(e,t){return null!=e&&vi(e,t,Ao)}var Da=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),tl(rl)),Aa=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),ci),Na=Zo(Io);function Ia(e){return Ys(e)?Qn(e):ko(e)}function Fa(e){return Ys(e)?Qn(e,!0):Vo(e)}var xa=xr((function(e,t,n){Uo(e,t,n)})),La=xr((function(e,t,n,o){Uo(e,t,n,o)})),Ma=ri((function(e,t){var n={};if(null==e)return n;var o=!1;t=Lt(t,(function(t){return t=Er(t,e),o||(o=t.length>1),t})),Ir(e,si(e),n),o&&(n=uo(n,7,ni));for(var r=t.length;r--;)hr(n,t[r]);return n}));var Ga=ri((function(e,t){return null==e?{}:function(e,t){return Yo(e,t,(function(t,n){return Ta(e,n)}))}(e,t)}));function ka(e,t){if(null==e)return{};var n=Lt(si(e),(function(e){return[e]}));return t=ci(t),Yo(e,n,(function(e,n){return t(e,n[0])}))}var Va=Zr(Ia),Ha=Zr(Fa);function Wa(e){return null==e?[]:en(e,Ia(e))}var Ba=kr((function(e,t,n){return t=t.toLowerCase(),e+(n?ja(t):t)}));function ja(e){return Qa(Ca(e).toLowerCase())}function Ua(e){return(e=Ca(e))&&e.replace(Ee,rn).replace(tt,"")}var za=kr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ka=kr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ya=Gr("toLowerCase");var $a=kr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var qa=kr((function(e,t,n){return e+(n?" ":"")+Qa(t)}));var Xa=kr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qa=Gr("toUpperCase");function Za(e,t,n){return e=Ca(e),(t=n?r:t)===r?function(e){return it.test(e)}(e)?function(e){return e.match(ot)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var Ja=Zo((function(e,t){try{return Pt(e,r,t)}catch(e){return Qs(e)?e:new Re(e)}})),el=ri((function(e,t){return Dt(t,(function(t){t=ki(t),so(e,t,As(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Wr(),ol=Wr(!0);function rl(e){return e}function il(e){return Go("function"==typeof e?e:uo(e,1))}var sl=Zo((function(e,t){return function(n){return Io(n,e,t)}})),al=Zo((function(e,t){return function(n){return Io(e,n,t)}}));function ll(e,t,n){var o=Ia(t),r=Ro(t,o);null!=n||ta(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=Ro(t,Ia(t)));var i=!(ta(n)&&"chain"in n&&!n.chain),s=Zs(e);return Dt(r,(function(n){var o=t[n];e[n]=o,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Nr(this.__actions__)).push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,Mt([this.value()],arguments))})})),e}function ul(){}var cl=zr(Lt),pl=zr(Nt),dl=zr(Vt);function hl(e){return bi(e)?Yt(ki(e)):function(e){return function(t){return So(t,e)}}(e)}var fl=Yr(),gl=Yr(!0);function yl(){return[]}function vl(){return!1}var ml=Ur((function(e,t){return e+t}),0),Cl=Xr("ceil"),wl=Ur((function(e,t){return e/t}),1),El=Xr("floor");var bl,Ol=Ur((function(e,t){return e*t}),1),Rl=Xr("round"),Sl=Ur((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Ae(i);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=Ts,Wn.assign=wa,Wn.assignIn=Ea,Wn.assignInWith=ba,Wn.assignWith=Oa,Wn.at=Ra,Wn.before=Ds,Wn.bind=As,Wn.bindAll=el,Wn.bindKey=Ns,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Wn.chain=hs,Wn.chunk=function(e,t,n){t=(n?Ei(e,t,n):t===r)?1:Cn(ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,l=o(ft(i/t));s<i;)l[a++]=ir(e,s,s+=t);return l},Wn.compact=function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mt(zs(n)?Nr(n):[n],Co(t,1))},Wn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?Lt(e,(function(e){if("function"!=typeof e[1])throw new Ae(i);return[n(e[0]),e[1]]})):[],Zo((function(n){for(var o=-1;++o<t;){var r=e[o];if(Pt(r[0],this,n))return Pt(r[1],this,n)}}))},Wn.conforms=function(e){return function(e){var t=Ia(e);return function(n){return co(n,e,t)}}(uo(e,1))},Wn.constant=tl,Wn.countBy=ys,Wn.create=function(e,t){var n=Bn(e);return null==t?n:io(n,t)},Wn.curry=function e(t,n,o){var i=Jr(t,8,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},Wn.curryRight=function e(t,n,o){var i=Jr(t,l,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},Wn.debounce=Is,Wn.defaults=Sa,Wn.defaultsDeep=_a,Wn.defer=Fs,Wn.delay=xs,Wn.difference=Wi,Wn.differenceBy=Bi,Wn.differenceWith=ji,Wn.drop=function(e,t,n){var o=null==e?0:e.length;return o?ir(e,(t=n||t===r?1:ga(t))<0?0:t,o):[]},Wn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?ir(e,0,(t=o-(t=n||t===r?1:ga(t)))<0?0:t):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?gr(e,ci(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?gr(e,ci(t,3),!0):[]},Wn.fill=function(e,t,n,o){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Ei(e,t,n)&&(n=0,o=i),function(e,t,n,o){var i=e.length;for((n=ga(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:ga(o))<0&&(o+=i),o=n>o?0:ya(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},Wn.filter=function(e,t){return(zs(e)?It:mo)(e,ci(t,3))},Wn.flatMap=function(e,t){return Co(Rs(e,t),1)},Wn.flatMapDeep=function(e,t){return Co(Rs(e,t),h)},Wn.flatMapDepth=function(e,t,n){return n=n===r?1:ga(n),Co(Rs(e,t),n)},Wn.flatten=Ki,Wn.flattenDeep=function(e){return(null==e?0:e.length)?Co(e,h):[]},Wn.flattenDepth=function(e,t){return(null==e?0:e.length)?Co(e,t=t===r?1:ga(t)):[]},Wn.flip=function(e){return Jr(e,512)},Wn.flow=nl,Wn.flowRight=ol,Wn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o},Wn.functions=function(e){return null==e?[]:Ro(e,Ia(e))},Wn.functionsIn=function(e){return null==e?[]:Ro(e,Fa(e))},Wn.groupBy=Es,Wn.initial=function(e){return(null==e?0:e.length)?ir(e,0,-1):[]},Wn.intersection=$i,Wn.intersectionBy=qi,Wn.intersectionWith=Xi,Wn.invert=Da,Wn.invertBy=Aa,Wn.invokeMap=bs,Wn.iteratee=il,Wn.keyBy=Os,Wn.keys=Ia,Wn.keysIn=Fa,Wn.map=Rs,Wn.mapKeys=function(e,t){var n={};return t=ci(t,3),bo(e,(function(e,o,r){so(n,t(e,o,r),e)})),n},Wn.mapValues=function(e,t){var n={};return t=ci(t,3),bo(e,(function(e,o,r){so(n,o,t(e,o,r))})),n},Wn.matches=function(e){return Bo(uo(e,1))},Wn.matchesProperty=function(e,t){return jo(e,uo(t,1))},Wn.memoize=Ls,Wn.merge=xa,Wn.mergeWith=La,Wn.method=sl,Wn.methodOf=al,Wn.mixin=ll,Wn.negate=Ms,Wn.nthArg=function(e){return e=ga(e),Zo((function(t){return zo(t,e)}))},Wn.omit=Ma,Wn.omitBy=function(e,t){return ka(e,Ms(ci(t)))},Wn.once=function(e){return Ds(2,e)},Wn.orderBy=function(e,t,n,o){return null==e?[]:(zs(t)||(t=null==t?[]:[t]),zs(n=o?r:n)||(n=null==n?[]:[n]),Ko(e,t,n))},Wn.over=cl,Wn.overArgs=Gs,Wn.overEvery=pl,Wn.overSome=dl,Wn.partial=ks,Wn.partialRight=Vs,Wn.partition=Ss,Wn.pick=Ga,Wn.pickBy=ka,Wn.property=hl,Wn.propertyOf=function(e){return function(t){return null==e?r:So(e,t)}},Wn.pull=Zi,Wn.pullAll=Ji,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$o(e,t,ci(n,2)):e},Wn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$o(e,t,r,n):e},Wn.pullAt=es,Wn.range=fl,Wn.rangeRight=gl,Wn.rearg=Hs,Wn.reject=function(e,t){return(zs(e)?It:mo)(e,Ms(ci(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],i=e.length;for(t=ci(t,3);++o<i;){var s=e[o];t(s,o,e)&&(n.push(s),r.push(o))}return qo(e,r),n},Wn.rest=function(e,t){if("function"!=typeof e)throw new Ae(i);return Zo(e,t=t===r?t:ga(t))},Wn.reverse=ts,Wn.sampleSize=function(e,t,n){return t=(n?Ei(e,t,n):t===r)?1:ga(t),(zs(e)?Jn:er)(e,t)},Wn.set=function(e,t,n){return null==e?e:tr(e,t,n)},Wn.setWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:tr(e,t,n,o)},Wn.shuffle=function(e){return(zs(e)?eo:rr)(e)},Wn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Ei(e,t,n)?(t=0,n=o):(t=null==t?0:ga(t),n=n===r?o:ga(n)),ir(e,t,n)):[]},Wn.sortBy=_s,Wn.sortedUniq=function(e){return e&&e.length?ur(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?ur(e,ci(t,2)):[]},Wn.split=function(e,t,n){return n&&"number"!=typeof n&&Ei(e,t,n)&&(t=n=r),(n=n===r?y:n>>>0)?(e=Ca(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=pr(t))&&ln(e)?Or(gn(e),0,n):e.split(t,n):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Ae(i);return t=null==t?0:Cn(ga(t),0),Zo((function(n){var o=n[t],r=Or(n,0,t);return o&&Mt(r,o),Pt(e,this,r)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?ir(e,1,t):[]},Wn.take=function(e,t,n){return e&&e.length?ir(e,0,(t=n||t===r?1:ga(t))<0?0:t):[]},Wn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?ir(e,(t=o-(t=n||t===r?1:ga(t)))<0?0:t,o):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?gr(e,ci(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?gr(e,ci(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new Ae(i);return ta(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Is(e,t,{leading:o,maxWait:t,trailing:r})},Wn.thru=fs,Wn.toArray=ha,Wn.toPairs=Va,Wn.toPairsIn=Ha,Wn.toPath=function(e){return zs(e)?Lt(e,ki):ua(e)?[e]:Nr(Gi(Ca(e)))},Wn.toPlainObject=ma,Wn.transform=function(e,t,n){var o=zs(e),r=o||qs(e)||ca(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=r?o?new i:[]:ta(e)&&Zs(i)?Bn(Ye(e)):{}}return(r?Dt:bo)(e,(function(e,o,r){return t(n,e,o,r)})),n},Wn.unary=function(e){return Ts(e,1)},Wn.union=ns,Wn.unionBy=os,Wn.unionWith=rs,Wn.uniq=function(e){return e&&e.length?dr(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?dr(e,ci(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?dr(e,r,t):[]},Wn.unset=function(e,t){return null==e||hr(e,t)},Wn.unzip=is,Wn.unzipWith=ss,Wn.update=function(e,t,n){return null==e?e:fr(e,t,wr(n))},Wn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:fr(e,t,wr(n),o)},Wn.values=Wa,Wn.valuesIn=function(e){return null==e?[]:en(e,Fa(e))},Wn.without=as,Wn.words=Za,Wn.wrap=function(e,t){return ks(wr(t),e)},Wn.xor=ls,Wn.xorBy=us,Wn.xorWith=cs,Wn.zip=ps,Wn.zipObject=function(e,t){return mr(e||[],t||[],no)},Wn.zipObjectDeep=function(e,t){return mr(e||[],t||[],tr)},Wn.zipWith=ds,Wn.entries=Va,Wn.entriesIn=Ha,Wn.extend=Ea,Wn.extendWith=ba,ll(Wn,Wn),Wn.add=ml,Wn.attempt=Ja,Wn.camelCase=Ba,Wn.capitalize=ja,Wn.ceil=Cl,Wn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=va(n))==n?n:0),t!==r&&(t=(t=va(t))==t?t:0),lo(va(e),t,n)},Wn.clone=function(e){return uo(e,4)},Wn.cloneDeep=function(e){return uo(e,5)},Wn.cloneDeepWith=function(e,t){return uo(e,5,t="function"==typeof t?t:r)},Wn.cloneWith=function(e,t){return uo(e,4,t="function"==typeof t?t:r)},Wn.conformsTo=function(e,t){return null==t||co(e,t,Ia(t))},Wn.deburr=Ua,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=wl,Wn.endsWith=function(e,t,n){e=Ca(e),t=pr(t);var o=e.length,i=n=n===r?o:lo(ga(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},Wn.eq=Ws,Wn.escape=function(e){return(e=Ca(e))&&Q.test(e)?e.replace(q,sn):e},Wn.escapeRegExp=function(e){return(e=Ca(e))&&ie.test(e)?e.replace(re,"\\$&"):e},Wn.every=function(e,t,n){var o=zs(e)?Nt:yo;return n&&Ei(e,t,n)&&(t=r),o(e,ci(t,3))},Wn.find=vs,Wn.findIndex=Ui,Wn.findKey=function(e,t){return Wt(e,ci(t,3),bo)},Wn.findLast=ms,Wn.findLastIndex=zi,Wn.findLastKey=function(e,t){return Wt(e,ci(t,3),Oo)},Wn.floor=El,Wn.forEach=Cs,Wn.forEachRight=ws,Wn.forIn=function(e,t){return null==e?e:wo(e,ci(t,3),Fa)},Wn.forInRight=function(e,t){return null==e?e:Eo(e,ci(t,3),Fa)},Wn.forOwn=function(e,t){return e&&bo(e,ci(t,3))},Wn.forOwnRight=function(e,t){return e&&Oo(e,ci(t,3))},Wn.get=Pa,Wn.gt=Bs,Wn.gte=js,Wn.has=function(e,t){return null!=e&&vi(e,t,Do)},Wn.hasIn=Ta,Wn.head=Yi,Wn.identity=rl,Wn.includes=function(e,t,n,o){e=Ys(e)?e:Wa(e),n=n&&!o?ga(n):0;var r=e.length;return n<0&&(n=Cn(r+n,0)),la(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&jt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:ga(n);return r<0&&(r=Cn(o+r,0)),jt(e,t,r)},Wn.inRange=function(e,t,n){return t=fa(t),n===r?(n=t,t=0):n=fa(n),function(e,t,n){return e>=wn(t,n)&&e<Cn(t,n)}(e=va(e),t,n)},Wn.invoke=Na,Wn.isArguments=Us,Wn.isArray=zs,Wn.isArrayBuffer=Ks,Wn.isArrayLike=Ys,Wn.isArrayLikeObject=$s,Wn.isBoolean=function(e){return!0===e||!1===e||na(e)&&Po(e)==w},Wn.isBuffer=qs,Wn.isDate=Xs,Wn.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Ys(e)&&(zs(e)||"string"==typeof e||"function"==typeof e.splice||qs(e)||ca(e)||Us(e)))return!e.length;var t=yi(e);if(t==S||t==A)return!e.size;if(Si(e))return!ko(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return xo(e,t)},Wn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:r)?n(e,t):r;return o===r?xo(e,t,r,n):!!o},Wn.isError=Qs,Wn.isFinite=function(e){return"number"==typeof e&&wt(e)},Wn.isFunction=Zs,Wn.isInteger=Js,Wn.isLength=ea,Wn.isMap=oa,Wn.isMatch=function(e,t){return e===t||Lo(e,t,di(t))},Wn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Lo(e,t,di(t),n)},Wn.isNaN=function(e){return ra(e)&&e!=+e},Wn.isNative=function(e){if(Ri(e))throw new Re("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mo(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=ra,Wn.isObject=ta,Wn.isObjectLike=na,Wn.isPlainObject=ia,Wn.isRegExp=sa,Wn.isSafeInteger=function(e){return Js(e)&&e>=-9007199254740991&&e<=f},Wn.isSet=aa,Wn.isString=la,Wn.isSymbol=ua,Wn.isTypedArray=ca,Wn.isUndefined=function(e){return e===r},Wn.isWeakMap=function(e){return na(e)&&yi(e)==F},Wn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==Po(e)},Wn.join=function(e,t){return null==e?"":Ht.call(e,t)},Wn.kebabCase=za,Wn.last=Qi,Wn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=ga(n))<0?Cn(o+i,0):wn(i,o-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,i):Bt(e,zt,i,!0)},Wn.lowerCase=Ka,Wn.lowerFirst=Ya,Wn.lt=pa,Wn.lte=da,Wn.max=function(e){return e&&e.length?vo(e,rl,To):r},Wn.maxBy=function(e,t){return e&&e.length?vo(e,ci(t,2),To):r},Wn.mean=function(e){return Kt(e,rl)},Wn.meanBy=function(e,t){return Kt(e,ci(t,2))},Wn.min=function(e){return e&&e.length?vo(e,rl,Ho):r},Wn.minBy=function(e,t){return e&&e.length?vo(e,ci(t,2),Ho):r},Wn.stubArray=yl,Wn.stubFalse=vl,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Ol,Wn.nth=function(e,t){return e&&e.length?zo(e,ga(t)):r},Wn.noConflict=function(){return gt._===this&&(gt._=We),this},Wn.noop=ul,Wn.now=Ps,Wn.pad=function(e,t,n){e=Ca(e);var o=(t=ga(t))?fn(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return Kr(yt(r),n)+e+Kr(ft(r),n)},Wn.padEnd=function(e,t,n){e=Ca(e);var o=(t=ga(t))?fn(e):0;return t&&o<t?e+Kr(t-o,n):e},Wn.padStart=function(e,t,n){e=Ca(e);var o=(t=ga(t))?fn(e):0;return t&&o<t?Kr(t-o,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(Ca(e).replace(se,""),t||0)},Wn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Ei(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=fa(e),t===r?(t=e,e=0):t=fa(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var i=On();return wn(e+i*(t-e+pt("1e-"+((i+"").length-1))),t)}return Xo(e,t)},Wn.reduce=function(e,t,n){var o=zs(e)?Gt:qt,r=arguments.length<3;return o(e,ci(t,4),n,r,fo)},Wn.reduceRight=function(e,t,n){var o=zs(e)?kt:qt,r=arguments.length<3;return o(e,ci(t,4),n,r,go)},Wn.repeat=function(e,t,n){return t=(n?Ei(e,t,n):t===r)?1:ga(t),Qo(Ca(e),t)},Wn.replace=function(){var e=arguments,t=Ca(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,n){var o=-1,i=(t=Er(t,e)).length;for(i||(i=1,e=r);++o<i;){var s=null==e?r:e[ki(t[o])];s===r&&(o=i,s=n),e=Zs(s)?s.call(e):s}return e},Wn.round=Rl,Wn.runInContext=e,Wn.sample=function(e){return(zs(e)?Zn:Jo)(e)},Wn.size=function(e){if(null==e)return 0;if(Ys(e))return la(e)?fn(e):e.length;var t=yi(e);return t==S||t==A?e.size:ko(e).length},Wn.snakeCase=$a,Wn.some=function(e,t,n){var o=zs(e)?Vt:sr;return n&&Ei(e,t,n)&&(t=r),o(e,ci(t,3))},Wn.sortedIndex=function(e,t){return ar(e,t)},Wn.sortedIndexBy=function(e,t,n){return lr(e,t,ci(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=ar(e,t);if(o<n&&Ws(e[o],t))return o}return-1},Wn.sortedLastIndex=function(e,t){return ar(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return lr(e,t,ci(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ar(e,t,!0)-1;if(Ws(e[n],t))return n}return-1},Wn.startCase=qa,Wn.startsWith=function(e,t,n){return e=Ca(e),n=null==n?0:lo(ga(n),0,e.length),t=pr(t),e.slice(n,n+t.length)==t},Wn.subtract=Sl,Wn.sum=function(e){return e&&e.length?Xt(e,rl):0},Wn.sumBy=function(e,t){return e&&e.length?Xt(e,ci(t,2)):0},Wn.template=function(e,t,n){var o=Wn.templateSettings;n&&Ei(e,t,n)&&(t=r),e=Ca(e),t=ba({},t,o,ei);var i,s,a=ba({},t.imports,o.imports,ei),l=Ia(a),u=en(a,l),c=0,p=t.interpolate||be,d="__p += '",h=Te((t.escape||be).source+"|"+p.source+"|"+(p===ee?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),f="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(h,(function(t,n,o,r,a,l){return o||(o=r),d+=e.slice(c,l).replace(Oe,an),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),o&&(d+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var g=Me.call(t,"variable")&&t.variable;if(g){if(de.test(g))throw new Re("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(z,""):d).replace(K,"$1").replace(Y,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=Ja((function(){return Se(l,f+"return "+d).apply(r,u)}));if(y.source=d,Qs(y))throw y;return y},Wn.times=function(e,t){if((e=ga(e))<1||e>f)return[];var n=y,o=wn(e,y);t=ci(t),e-=y;for(var r=Qt(o,t);++n<e;)t(n);return r},Wn.toFinite=fa,Wn.toInteger=ga,Wn.toLength=ya,Wn.toLower=function(e){return Ca(e).toLowerCase()},Wn.toNumber=va,Wn.toSafeInteger=function(e){return e?lo(ga(e),-9007199254740991,f):0===e?e:0},Wn.toString=Ca,Wn.toUpper=function(e){return Ca(e).toUpperCase()},Wn.trim=function(e,t,n){if((e=Ca(e))&&(n||t===r))return Zt(e);if(!e||!(t=pr(t)))return e;var o=gn(e),i=gn(t);return Or(o,nn(o,i),on(o,i)+1).join("")},Wn.trimEnd=function(e,t,n){if((e=Ca(e))&&(n||t===r))return e.slice(0,yn(e)+1);if(!e||!(t=pr(t)))return e;var o=gn(e);return Or(o,0,on(o,gn(t))+1).join("")},Wn.trimStart=function(e,t,n){if((e=Ca(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=pr(t)))return e;var o=gn(e);return Or(o,nn(o,gn(t))).join("")},Wn.truncate=function(e,t){var n=30,o="...";if(ta(t)){var i="separator"in t?t.separator:i;n="length"in t?ga(t.length):n,o="omission"in t?pr(t.omission):o}var s=(e=Ca(e)).length;if(ln(e)){var a=gn(e);s=a.length}if(n>=s)return e;var l=n-fn(o);if(l<1)return o;var u=a?Or(a,0,l).join(""):e.slice(0,l);if(i===r)return u+o;if(a&&(l+=u.length-l),sa(i)){if(e.slice(l).search(i)){var c,p=u;for(i.global||(i=Te(i.source,Ca(ge.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var d=c.index;u=u.slice(0,d===r?l:d)}}else if(e.indexOf(pr(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+o},Wn.unescape=function(e){return(e=Ca(e))&&X.test(e)?e.replace($,vn):e},Wn.uniqueId=function(e){var t=++Ge;return Ca(e)+t},Wn.upperCase=Xa,Wn.upperFirst=Qa,Wn.each=Cs,Wn.eachRight=ws,Wn.first=Yi,ll(Wn,(bl={},bo(Wn,(function(e,t){Me.call(Wn.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Wn.VERSION="4.17.21",Dt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),Dt(["drop","take"],(function(e,t){zn.prototype[e]=function(n){n=n===r?1:Cn(ga(n),0);var o=this.__filtered__&&!t?new zn(this):this.clone();return o.__filtered__?o.__takeCount__=wn(n,o.__takeCount__):o.__views__.push({size:wn(n,y),type:e+(o.__dir__<0?"Right":"")}),o},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Dt(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),Dt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),Dt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(rl)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Zo((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return Io(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(Ms(ci(e)))},zn.prototype.slice=function(e,t){e=ga(e);var n=this;return n.__filtered__&&(e>0||t<0)?new zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ga(t))<0?n.dropRight(-t):n.take(t-e)),n)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(y)},bo(zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Wn[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(Wn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,l=t instanceof zn,u=a[0],c=l||zs(t),p=function(e){var t=i.apply(Wn,Mt([e],a));return o&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,g=l&&!h;if(!s&&c){t=g?t:new zn(this);var y=e.apply(t,a);return y.__actions__.push({func:fs,args:[p],thisArg:r}),new Un(y,d)}return f&&g?e.apply(this,a):(y=this.thru(p),f?o?y.value()[0]:y.value():y)})})),Dt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(zs(r)?r:[],e)}return this[n]((function(n){return t.apply(zs(n)?n:[],e)}))}})),bo(zn.prototype,(function(e,t){var n=Wn[t];if(n){var o=n.name+"";Me.call(In,o)||(In[o]=[]),In[o].push({name:t,func:n})}})),In[Br(r,2).name]=[{name:"wrapper",func:r}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=Nr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Nr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Nr(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zs(e),o=t<0,r=n?e.length:0,i=function(e,t,n){var o=-1,r=n.length;for(;++o<r;){var i=n[o],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=wn(t,e+s);break;case"takeRight":e=Cn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=i.start,a=i.end,l=a-s,u=o?a:s-1,c=this.__iteratees__,p=c.length,d=0,h=wn(l,this.__takeCount__);if(!n||!o&&r==l&&h==l)return yr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var g=-1,y=e[u+=t];++g<p;){var v=c[g],m=v.iteratee,C=v.type,w=m(y);if(2==C)y=w;else if(!w){if(1==C)continue e;break e}}f[d++]=y}return f},Wn.prototype.at=gs,Wn.prototype.chain=function(){return hs(this)},Wn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===r&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var o=Hi(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:fs,args:[ts],thisArg:r}),new Un(t,this.__chain__)}return this.thru(ts)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return yr(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,Ze&&(Wn.prototype[Ze]=function(){return this}),Wn}();gt._=mn,(o=function(){return mn}.call(t,n,t,e))===r||(e.exports=o)}.call(this)},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))n.call(i,u)&&(a[u]=i[u]);if(t){s=t(i);for(var c=0;c<s.length;c++)o.call(i,s[c])&&(a[s[c]]=i[s[c]])}}return a}},2816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.default)((function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var r=null;return t.forEach((function(e){if(null==r){var t=e.apply(void 0,n);null!=t&&(r=t)}})),r}))};var o,r=n(5441),i=(o=r)&&o.__esModule?o:{default:o};e.exports=t.default},161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=s(n(6540)),i=s(n(5441));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n,i,s){var a=e[t],l=void 0===a?"undefined":o(a);return r.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},6242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o,r=n(4597),i=(o=r)&&o.__esModule?o:{default:o};var s={};function a(e,t){return function(n,o,r,a,l){var u=r||"<<anonymous>>",c=l||o;if(null!=n[o]){var p=r+"."+o;(0,i.default)(s[p],"The "+a+" `"+c+"` of `"+u+"` is deprecated. "+t+"."),s[p]=!0}for(var d=arguments.length,h=Array(d>5?d-5:0),f=5;f<d;f++)h[f-5]=arguments[f];return e.apply(void 0,[n,o,r,a,l].concat(h))}}a._resetWarned=function(){s={}},e.exports=t.default},9423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s(n(6540)),r=n(4363),i=s(n(5441));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,n,i,s){var a=e[t];return o.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(a)?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},8239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,o,r,i){var s=o||"<<anonymous>>",a=i||n;if(null==t[n])return new Error("The "+r+" `"+a+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,u=Array(l>5?l-5:0),c=5;c<l;c++)u[c-5]=arguments[c];return e.apply(void 0,[t,n,o,r,i].concat(u))}},e.exports=t.default},5441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,o,r,i,s){var a=r||"<<anonymous>>",l=s||o;if(null==n[o])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+a+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),p=6;p<u;p++)c[p-6]=arguments[p];return e.apply(void 0,[n,o,a,i,l].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},4597:e=>{"use strict";var t=function(){};e.exports=t},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2911:(e,t,n)=>{"use strict";var o=n(5228),r=n(6540);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=60106,a=60107,l=60108,u=60114,c=60109,p=60110,d=60112,h=60113,f=60120,g=60115,y=60116,v=60121,m=60117,C=60119,w=60129,E=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;s=b("react.portal"),a=b("react.fragment"),l=b("react.strict_mode"),u=b("react.profiler"),c=b("react.provider"),p=b("react.context"),d=b("react.forward_ref"),h=b("react.suspense"),f=b("react.suspense_list"),g=b("react.memo"),y=b("react.lazy"),v=b("react.block"),m=b("react.fundamental"),C=b("react.scope"),w=b("react.debug_trace_mode"),E=b("react.legacy_hidden")}function O(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case s:return"Portal";case u:return"Profiler";case l:return"StrictMode";case h:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Consumer";case c:return(e._context.displayName||"Context")+".Provider";case d:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case g:return O(e.type);case v:return O(e._render);case y:t=e._payload,e=e._init;try{return O(e(t))}catch(e){}}return null}var R=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S={};function _(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var P=new Uint16Array(16),T=0;15>T;T++)P[T]=T+1;P[15]=0;var D=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A=Object.prototype.hasOwnProperty,N={},I={};function F(e){return!!A.call(I,e)||!A.call(N,e)&&(D.test(e)?I[e]=!0:(N[e]=!0,!1))}function x(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){L[e]=new x(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];L[t]=new x(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){L[e]=new x(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){L[e]=new x(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){L[e]=new x(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){L[e]=new x(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){L[e]=new x(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){L[e]=new x(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){L[e]=new x(e,5,!1,e.toLowerCase(),null,!1,!1)}));var M=/[\-:]([a-z])/g;function G(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(M,G);L[t]=new x(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(M,G);L[t]=new x(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(M,G);L[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){L[e]=new x(e,1,!1,e.toLowerCase(),null,!1,!1)})),L.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){L[e]=new x(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=/["'&<>]/;function V(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=k.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}function H(e,t){var n,o=L.hasOwnProperty(e)?L[e]:null;return(n="style"!==e)&&(n=null!==o?0===o.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,o,!1)?"":null!==o?(e=o.attributeName,3===(n=o.type)||4===n&&!0===t?e+'=""':(o.sanitizeURL&&(t=""+t),e+'="'+V(t)+'"')):F(e)?e+'="'+V(t)+'"':""}var W="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},B=null,j=null,U=null,z=!1,K=!1,Y=null,$=0;function q(){if(null===B)throw Error(i(321));return B}function X(){if(0<$)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Q(){return null===U?null===j?(z=!1,j=U=X()):(z=!0,U=j):null===U.next?(z=!1,U=U.next=X()):(z=!0,U=U.next),U}function Z(e,t,n,o){for(;K;)K=!1,$+=1,U=null,n=e(t,o);return J(),n}function J(){B=null,K=!1,j=null,$=0,U=Y=null}function ee(e,t){return"function"==typeof t?t(e):t}function te(e,t,n){if(B=q(),U=Q(),z){var o=U.queue;if(t=o.dispatch,null!==Y&&void 0!==(n=Y.get(o))){Y.delete(o),o=U.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return U.memoizedState=o,[o,t]}return[U.memoizedState,t]}return e=e===ee?"function"==typeof t?t():t:void 0!==n?n(t):t,U.memoizedState=e,e=(e=U.queue={last:null,dispatch:null}).dispatch=oe.bind(null,B,e),[U.memoizedState,e]}function ne(e,t){if(B=q(),t=void 0===t?null:t,null!==(U=Q())){var n=U.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!W(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),U.memoizedState=[e,t],e}function oe(e,t,n){if(!(25>$))throw Error(i(301));if(e===B)if(K=!0,e={action:n,next:null},null===Y&&(Y=new Map),void 0===(n=Y.get(t)))Y.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function re(){}var ie=null,se={readContext:function(e){var t=ie.threadID;return _(e,t),e[t]},useContext:function(e){q();var t=ie.threadID;return _(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){B=q();var t=(U=Q()).memoizedState;return null===t?(e={current:e},U.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:re,useEffect:re,useDebugValue:re,useDeferredValue:function(e){return q(),e},useTransition:function(){return q(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(ie.identifierPrefix||"")+"R:"+(ie.uniqueID++).toString(36)},useMutableSource:function(e,t){return q(),t(e._source)}},ae="http://www.w3.org/1999/xhtml";function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ue={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ce=o({menuitem:!0},ue),pe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];Object.keys(pe).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var he=/([A-Z])/g,fe=/^ms-/,ge=r.Children.toArray,ye=R.ReactCurrentDispatcher,ve={listing:!0,pre:!0,textarea:!0},me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ce={},we={};var Ee=Object.prototype.hasOwnProperty,be={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Oe(e,t){if(void 0===e)throw Error(i(152,O(t)||"Component"))}function Re(e,t,n){function s(r,s){var a=s.prototype&&s.prototype.isReactComponent,l=function(e,t,n,o){if(o&&"object"==typeof(o=e.contextType)&&null!==o)return _(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=S;return t}(s,t,n,a),u=[],c=!1,p={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(a){if(a=new s(r.props,l,p),"function"==typeof s.getDerivedStateFromProps){var d=s.getDerivedStateFromProps.call(null,r.props,a.state);null!=d&&(a.state=o({},a.state,d))}}else if(B={},a=s(r.props,l,p),null==(a=Z(s,r.props,a,l))||null==a.render)return void Oe(e=a,s);if(a.props=r.props,a.context=l,a.updater=p,void 0===(p=a.state)&&(a.state=p=null),"function"==typeof a.UNSAFE_componentWillMount||"function"==typeof a.componentWillMount)if("function"==typeof a.componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&a.UNSAFE_componentWillMount(),u.length){p=u;var h=c;if(u=null,c=!1,h&&1===p.length)a.state=p[0];else{d=h?p[0]:a.state;var f=!0;for(h=h?1:0;h<p.length;h++){var g=p[h];null!=(g="function"==typeof g?g.call(a,d,r.props,l):g)&&(f?(f=!1,d=o({},d,g)):o(d,g))}a.state=d}}else u=null;if(Oe(e=a.render(),s),"function"==typeof a.getChildContext&&"object"==typeof(r=s.childContextTypes)){var y=a.getChildContext();for(var v in y)if(!(v in r))throw Error(i(108,O(s)||"Unknown",v))}y&&(t=o({},t,y))}for(;r.isValidElement(e);){var a=e,l=a.type;if("function"!=typeof l)break;s(a,l)}return{child:e,context:t}}var Se=function(){function e(e,t,n){r.isValidElement(e)?e.type!==a?e=[e]:(e=e.props.children,e=r.isValidElement(e)?[e]:ge(e)):e=ge(e),e={type:null,domNamespace:ae,children:e,childIndex:0,context:S,footer:""};var o=P[0];if(0===o){var s=P,l=2*(o=s.length);if(!(65536>=l))throw Error(i(304));var u=new Uint16Array(l);for(u.set(s),(P=u)[0]=o+1,s=o;s<l-1;s++)P[s]=s+1;P[l-1]=0}else P[0]=P[o];this.threadID=o,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;P[e]=P[0],P[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;_(n,o);var r=n[o];this.contextStack[t]=n,this.contextValueStack[t]=r,n[o]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ie;ie=this;var n=ye.current;ye.current=se;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var s=this.threadID;P[s]=P[0],P[0]=s;break}var a=this.stack[this.stack.length-1];if(r||a.childIndex>=a.children.length){var l=a.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===c)this.popProvider(a.type);else if(a.type===h){this.suspenseDepth--;var u=o.pop();if(r){r=!1;var p=a.fallbackFrame;if(!p)throw Error(i(303));this.stack.push(p),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=u}o[this.suspenseDepth]+=l}else{var d=a.children[a.childIndex++],f="";try{f+=this.render(d,a.context,a.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=f}}return o[0]}finally{ye.current=n,ie=t,J()}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?V(n):this.previousWasTextNode?"\x3c!-- --\x3e"+V(n):(this.previousWasTextNode=!0,V(n));if(e=(t=Re(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===s)throw Error(i(257));throw Error(i(258,n.toString()))}return e=ge(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var v=e.type;if("string"==typeof v)return this.renderDOM(e,t,n);switch(v){case E:case w:case l:case u:case f:case a:return e=ge(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case h:throw Error(i(294));case C:throw Error(i(343))}if("object"==typeof v&&null!==v)switch(v.$$typeof){case d:B={};var b=v.render(e.props,e.ref);return b=Z(v.render,e.props,b,e.ref),b=ge(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:t,footer:""}),"";case g:return e=[r.createElement(v.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case c:return n={type:e,domNamespace:n,children:v=ge(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case p:v=e.type,b=e.props;var O=this.threadID;return _(v,O),v=ge(b.children(v[O])),this.stack.push({type:e,domNamespace:n,children:v,childIndex:0,context:t,footer:""}),"";case m:throw Error(i(338));case y:return v=(b=(v=e.type)._init)(v._payload),e=[r.createElement(v,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(i(130,null==v?v:typeof v,""))},t.renderDOM=function(e,t,n){var s=e.type.toLowerCase();if(n===ae&&le(s),!Ce.hasOwnProperty(s)){if(!me.test(s))throw Error(i(65,s));Ce[s]=!0}var a=e.props;if("input"===s)a=o({type:void 0},a,{defaultChecked:void 0,defaultValue:void 0,value:null!=a.value?a.value:a.defaultValue,checked:null!=a.checked?a.checked:a.defaultChecked});else if("textarea"===s){var l=a.value;if(null==l){l=a.defaultValue;var u=a.children;if(null!=u){if(null!=l)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}l=""+u}null==l&&(l="")}a=o({},a,{value:void 0,children:""+l})}else if("select"===s)this.currentSelectValue=null!=a.value?a.value:a.defaultValue,a=o({},a,{value:void 0});else if("option"===s){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(a.children);if(null!=u){var p=null!=a.value?a.value+"":c;if(l=!1,Array.isArray(u)){for(var d=0;d<u.length;d++)if(""+u[d]===p){l=!0;break}}else l=""+u===p;a=o({selected:void 0,children:void 0},a,{selected:l,children:c})}}if(l=a){if(ce[s]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(i(137,s));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(i(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(i(62))}l=a,u=this.makeStaticMarkup,c=1===this.stack.length,p="<"+e.type;e:if(-1===s.indexOf("-"))d="string"==typeof l.is;else switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":d=!1;break e;default:d=!0}for(E in l)if(Ee.call(l,E)){var h=l[E];if(null!=h){if("style"===E){var f=void 0,g="",y="";for(f in h)if(h.hasOwnProperty(f)){var v=0===f.indexOf("--"),m=h[f];if(null!=m){if(v)var C=f;else if(C=f,we.hasOwnProperty(C))C=we[C];else{var w=C.replace(he,"-$1").toLowerCase().replace(fe,"-ms-");C=we[C]=w}g+=y+C+":",y=f,g+=v=null==m||"boolean"==typeof m||""===m?"":v||"number"!=typeof m||0===m||pe.hasOwnProperty(y)&&pe[y]?(""+m).trim():m+"px",y=";"}}h=g||null}f=null,d?be.hasOwnProperty(E)||(f=F(f=E)&&null!=h?f+'="'+V(h)+'"':""):f=H(E,h),f&&(p+=" "+f)}}u||c&&(p+=' data-reactroot=""');var E=p;l="",ue.hasOwnProperty(s)?E+="/>":(E+=">",l="</"+e.type+">");e:{if(null!=(u=a.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=a.children)||"number"==typeof u){u=V(u);break e}u=null}return null!=u?(a=[],ve.hasOwnProperty(s)&&"\n"===u.charAt(0)&&(E+="\n"),E+=u):a=ge(a.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?le(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:s,children:a,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,E},e}();t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){e=new Se(e,!0,t);try{return e.read(1/0)}finally{e.destroy()}},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){e=new Se(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}},t.version="17.0.2"},2551:(e,t,n)=>{"use strict";var o=n(6540),r=n(5228),i=n(9982);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(s(227));var a=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var p=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,f={},g={};function y(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function C(e){return e[1].toUpperCase()}function w(e,t,n,o){var r=v.hasOwnProperty(t)?v[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!h.call(g,e)||!h.call(f,e)&&(d.test(e)?g[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,C);v[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,C);v[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,C);v[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=60103,O=60106,R=60107,S=60108,_=60114,P=60109,T=60110,D=60112,A=60113,N=60120,I=60115,F=60116,x=60121,L=60128,M=60129,G=60130,k=60131;if("function"==typeof Symbol&&Symbol.for){var V=Symbol.for;b=V("react.element"),O=V("react.portal"),R=V("react.fragment"),S=V("react.strict_mode"),_=V("react.profiler"),P=V("react.provider"),T=V("react.context"),D=V("react.forward_ref"),A=V("react.suspense"),N=V("react.suspense_list"),I=V("react.memo"),F=V("react.lazy"),x=V("react.block"),V("react.scope"),L=V("react.opaque.id"),M=V("react.debug_trace_mode"),G=V("react.offscreen"),k=V("react.legacy_hidden")}var H,W="function"==typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=W&&e[W]||e["@@iterator"])?e:null}function j(e){if(void 0===H)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||""}return"\n"+H+e}var U=!1;function z(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var o=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){o=e}e.call(t.prototype)}else{try{throw Error()}catch(e){o=e}e()}}catch(e){if(e&&o&&"string"==typeof e.stack){for(var r=e.stack.split("\n"),i=o.stack.split("\n"),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||r[s]!==i[a])return"\n"+r[s].replace(" at new "," at ")}while(1<=s&&0<=a);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function K(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 22:return e=z(e.type._render,!1);case 1:return e=z(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case R:return"Fragment";case O:return"Portal";case _:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return Y(e.type);case x:return Y(e._render);case F:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=q(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=$(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?re(e,t.type,n):t.hasOwnProperty("defaultValue")&&re(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function re(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ue(e,t){var n=$(t.value),o=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var pe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ye,ve=(ye=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ce={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ce.hasOwnProperty(e)&&Ce[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=Ee(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(Ce).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ce[t]=Ce[e]}))}));var Oe=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Re(e,t){if(t){if(Oe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Te=null,De=null;function Ae(e){if(e=rr(e)){if("function"!=typeof Pe)throw Error(s(280));var t=e.stateNode;t&&(t=sr(t),Pe(e.stateNode,e.type,t))}}function Ne(e){Te?De?De.push(e):De=[e]:Te=e}function Ie(){if(Te){var e=Te,t=De;if(De=Te=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Fe(e,t){return e(t)}function xe(e,t,n,o,r){return e(t,n,o,r)}function Le(){}var Me=Fe,Ge=!1,ke=!1;function Ve(){null===Te&&null===De||(Le(),Ie())}function He(e,t){var n=e.stateNode;if(null===n)return null;var o=sr(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var We=!1;if(p)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){We=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ye){We=!1}function je(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ue=!1,ze=null,Ke=!1,Ye=null,$e={onError:function(e){Ue=!0,ze=e}};function qe(e,t,n,o,r,i,s,a,l){Ue=!1,ze=null,je.apply($e,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(Xe(e)!==e)throw Error(s(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Ze(r),e;if(i===o)return Ze(r),t;i=i.sibling}throw Error(s(188))}if(n.return!==o.return)n=r,o=i;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=i;break}if(l===o){a=!0,o=r,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,o=r;break}if(l===o){a=!0,o=i,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==o)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,ot,rt,it=!1,st=[],at=null,lt=null,ut=null,ct=new Map,pt=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ft(e,t,n,o,r){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:r,targetContainers:[o]}}function gt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(t.pointerId)}}function yt(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=ft(t,n,o,r,i),null!==t&&(null!==(t=rr(t))&&nt(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function vt(e){var t=or(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){ot(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=rr(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function Ct(e,t,n){mt(e)&&n.delete(t)}function wt(){for(it=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=rr(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&st.shift()}null!==at&&mt(at)&&(at=null),null!==lt&&mt(lt)&&(lt=null),null!==ut&&mt(ut)&&(ut=null),ct.forEach(Ct),pt.forEach(Ct)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function bt(e){function t(t){return Et(t,e)}if(0<st.length){Et(st[0],e);for(var n=1;n<st.length;n++){var o=st[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==at&&Et(at,e),null!==lt&&Et(lt,e),null!==ut&&Et(ut,e),ct.forEach(t),pt.forEach(t),n=0;n<dt.length;n++)(o=dt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)vt(n),null===n.blockedOn&&dt.shift()}function Ot(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rt={animationend:Ot("Animation","AnimationEnd"),animationiteration:Ot("Animation","AnimationIteration"),animationstart:Ot("Animation","AnimationStart"),transitionend:Ot("Transition","TransitionEnd")},St={},_t={};function Pt(e){if(St[e])return St[e];if(!Rt[e])return e;var t,n=Rt[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return St[e]=n[t];return e}p&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete Rt.animationend.animation,delete Rt.animationiteration.animation,delete Rt.animationstart.animation),"TransitionEvent"in window||delete Rt.transitionend.transition);var Tt=Pt("animationend"),Dt=Pt("animationiteration"),At=Pt("animationstart"),Nt=Pt("transitionend"),It=new Map,Ft=new Map,xt=["abort","abort",Tt,"animationEnd",Dt,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];r="on"+(r[0].toUpperCase()+r.slice(1)),Ft.set(o,t),It.set(o,r),u(r,[o])}}(0,i.unstable_now)();var Mt=8;function Gt(e){if(1&e)return Mt=15,1;if(2&e)return Mt=14,2;if(4&e)return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):32&e?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):256&e?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):4096&e?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):134217728&e?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):1073741824&e?(Mt=1,1073741824):(Mt=8,e)}function kt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var o=0,r=0,i=e.expiredLanes,s=e.suspendedLanes,a=e.pingedLanes;if(0!==i)o=i,r=Mt=15;else if(0!==(i=134217727&n)){var l=i&~s;0!==l?(o=Gt(l),r=Mt):0!==(a&=i)&&(o=Gt(a),r=Mt)}else 0!==(i=n&~s)?(o=Gt(i),r=Mt):0!==a&&(o=Gt(a),r=Mt);if(0===o)return 0;if(o=n&((0>(o=31-Ut(o))?0:1<<o)<<1)-1,0!==t&&t!==o&&!(t&s)){if(Gt(t),r<=Mt)return t;Mt=r}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-Ut(t)),o|=e[n],t&=~r;return o}function Vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ht(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Wt(24&~t))?Ht(10,t):e;case 10:return 0===(e=Wt(192&~t))?Ht(8,t):e;case 8:return 0===(e=Wt(3584&~t))&&(0===(e=Wt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Wt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function Wt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jt(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(zt(e)/Kt|0)|0},zt=Math.log,Kt=Math.LN2;var Yt=i.unstable_UserBlockingPriority,$t=i.unstable_runWithPriority,qt=!0;function Xt(e,t,n,o){Ge||Le();var r=Zt,i=Ge;Ge=!0;try{xe(r,e,t,n,o)}finally{(Ge=i)||Ve()}}function Qt(e,t,n,o){$t(Yt,Zt.bind(null,e,t,n,o))}function Zt(e,t,n,o){var r;if(qt)if((r=!(4&t))&&0<st.length&&-1<ht.indexOf(e))e=ft(null,e,t,n,o),st.push(e);else{var i=Jt(e,t,n,o);if(null===i)r&&gt(e,o);else{if(r){if(-1<ht.indexOf(e))return e=ft(i,e,t,n,o),void st.push(e);if(function(e,t,n,o,r){switch(t){case"focusin":return at=yt(at,e,t,n,o,r),!0;case"dragenter":return lt=yt(lt,e,t,n,o,r),!0;case"mouseover":return ut=yt(ut,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return ct.set(i,yt(ct.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,pt.set(i,yt(pt.get(i)||null,e,t,n,o,r)),!0}return!1}(i,e,t,n,o))return;gt(e,o)}Mo(e,t,o,null,n)}}}function Jt(e,t,n,o){var r=_e(o);if(null!==(r=or(r))){var i=Xe(r);if(null===i)r=null;else{var s=i.tag;if(13===s){if(null!==(r=Qe(i)))return r;r=null}else if(3===s){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Mo(e,t,o,r,n),null}var en=null,tn=null,nn=null;function on(){if(nn)return nn;var e,t,n=tn,o=n.length,r="value"in en?en.value:en.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var s=o-e;for(t=1;t<=s&&n[o-t]===r[i-t];t++);return nn=r.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function an(){return!1}function ln(e){function t(t,n,o,r,i){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?sn:an,this.isPropagationStopped=an,this}return r(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var un,cn,pn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=ln(dn),fn=r({},dn,{view:0,detail:0}),gn=ln(fn),yn=r({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pn&&(pn&&"mousemove"===e.type?(un=e.screenX-pn.screenX,cn=e.screenY-pn.screenY):cn=un=0,pn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),vn=ln(yn),mn=ln(r({},yn,{dataTransfer:0})),Cn=ln(r({},fn,{relatedTarget:0})),wn=ln(r({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=r({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=ln(En),On=ln(r({},dn,{data:0})),Rn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Tn(){return Pn}var Dn=r({},fn,{key:function(e){if(e.key){var t=Rn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=ln(Dn),Nn=ln(r({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=ln(r({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Fn=ln(r({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=r({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=ln(xn),Mn=[9,13,27,32],Gn=p&&"CompositionEvent"in window,kn=null;p&&"documentMode"in document&&(kn=document.documentMode);var Vn=p&&"TextEvent"in window&&!kn,Hn=p&&(!Gn||kn&&8<kn&&11>=kn),Wn=String.fromCharCode(32),Bn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function $n(e,t,n,o){Ne(o),0<(t=ko(t,"onChange")).length&&(n=new hn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var qn=null,Xn=null;function Qn(e){Ao(e,0)}function Zn(e){if(Q(ir(e)))return e}function Jn(e,t){if("change"===e)return t}var eo=!1;if(p){var to;if(p){var no="oninput"in document;if(!no){var oo=document.createElement("div");oo.setAttribute("oninput","return;"),no="function"==typeof oo.oninput}to=no}else to=!1;eo=to&&(!document.documentMode||9<document.documentMode)}function ro(){qn&&(qn.detachEvent("onpropertychange",io),Xn=qn=null)}function io(e){if("value"===e.propertyName&&Zn(Xn)){var t=[];if($n(t,Xn,e,_e(e)),e=Qn,Ge)e(t);else{Ge=!0;try{Fe(e,t)}finally{Ge=!1,Ve()}}}}function so(e,t,n){"focusin"===e?(ro(),Xn=n,(qn=t).attachEvent("onpropertychange",io)):"focusout"===e&&ro()}function ao(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Xn)}function lo(e,t){if("click"===e)return Zn(t)}function uo(e,t){if("input"===e||"change"===e)return Zn(t)}var co="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},po=Object.prototype.hasOwnProperty;function ho(e,t){if(co(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!po.call(t,n[o])||!co(e[n[o]],t[n[o]]))return!1;return!0}function fo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var n,o=fo(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=fo(o)}}function yo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?yo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vo(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function mo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Co=p&&"documentMode"in document&&11>=document.documentMode,wo=null,Eo=null,bo=null,Oo=!1;function Ro(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Oo||null==wo||wo!==Z(o)||("selectionStart"in(o=wo)&&mo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},bo&&ho(bo,o)||(bo=o,0<(o=ko(Eo,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=wo)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(xt,2);for(var So="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_o=0;_o<So.length;_o++)Ft.set(So[_o],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),To=new Set("cancel close invalid load scroll toggle".split(" ").concat(Po));function Do(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,i,a,l,u){if(qe.apply(this,arguments),Ue){if(!Ue)throw Error(s(198));var c=ze;Ue=!1,ze=null,Ke||(Ke=!0,Ye=c)}}(o,t,void 0,e),e.currentTarget=null}function Ao(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Do(r,a,u),i=l}else for(s=0;s<o.length;s++){if(l=(a=o[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Do(r,a,u),i=l}}}if(Ke)throw e=Ye,Ke=!1,Ye=null,e}function No(e,t){var n=ar(t),o=e+"__bubble";n.has(o)||(Lo(t,e,2,!1),n.add(o))}var Io="_reactListening"+Math.random().toString(36).slice(2);function Fo(e){e[Io]||(e[Io]=!0,a.forEach((function(t){To.has(t)||xo(t,!1,e,null),xo(t,!0,e,null)})))}function xo(e,t,n,o){var r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==o&&!t&&To.has(e)){if("scroll"!==e)return;r|=2,i=o}var s=ar(i),a=e+"__"+(t?"capture":"bubble");s.has(a)||(t&&(r|=4),Lo(i,e,r,t),s.add(a))}function Lo(e,t,n,o){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Xt;break;case 1:r=Qt;break;default:r=Zt}n=r.bind(null,t,n,e),r=void 0,!We||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Mo(e,t,n,o,r){var i=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===r||8===a.nodeType&&a.parentNode===r)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==a;){if(null===(s=or(a)))return;if(5===(l=s.tag)||6===l){o=i=s;continue e}a=a.parentNode}}o=o.return}!function(e,t,n){if(ke)return e(t,n);ke=!0;try{return Me(e,t,n)}finally{ke=!1,Ve()}}((function(){var o=i,r=_e(n),s=[];e:{var a=It.get(e);if(void 0!==a){var l=hn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=Cn;break;case"focusout":u="blur",l=Cn;break;case"beforeblur":case"afterblur":l=Cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Tt:case Dt:case At:l=wn;break;case Nt:l=Fn;break;case"scroll":l=gn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var c=!!(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=o;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=He(f,d))&&c.push(Go(f,g,h)))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,r),s.push({event:a,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||16&t||!(u=n.relatedTarget||n.fromElement)||!or(u)&&!u[tr])&&(l||a)&&(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(u=(u=n.relatedTarget||n.toElement)?or(u):null)&&(u!==(p=Xe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=o),l!==u)){if(c=vn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:ir(l),h=null==u?a:ir(u),(a=new c(g,f+"leave",l,n,r)).target=p,a.relatedTarget=h,g=null,or(r)===o&&((c=new c(d,f+"enter",u,n,r)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Vo(h))f++;for(h=0,g=d;g;g=Vo(g))h++;for(;0<f-h;)c=Vo(c),f--;for(;0<h-f;)d=Vo(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Vo(c),d=Vo(d)}c=null}else c=null;null!==l&&Ho(s,a,l,c,!1),null!==u&&null!==p&&Ho(s,p,u,c,!0)}if("select"===(l=(a=o?ir(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var y=Jn;else if(Yn(a))if(eo)y=uo;else{y=ao;var v=so}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(y=lo);switch(y&&(y=y(e,o))?$n(s,y,n,r):(v&&v(e,a,o),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&re(a,"number",a.value)),v=o?ir(o):window,e){case"focusin":(Yn(v)||"true"===v.contentEditable)&&(wo=v,Eo=o,bo=null);break;case"focusout":bo=Eo=wo=null;break;case"mousedown":Oo=!0;break;case"contextmenu":case"mouseup":case"dragend":Oo=!1,Ro(s,n,r);break;case"selectionchange":if(Co)break;case"keydown":case"keyup":Ro(s,n,r)}var m;if(Gn)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else zn?jn(e,n)&&(C="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(C="onCompositionStart");C&&(Hn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==C?"onCompositionEnd"===C&&zn&&(m=on()):(tn="value"in(en=r)?en.value:en.textContent,zn=!0)),0<(v=ko(o,C)).length&&(C=new On(C,e,null,n,r),s.push({event:C,listeners:v}),m?C.data=m:null!==(m=Un(n))&&(C.data=m))),(m=Vn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Wn);case"textInput":return(e=t.data)===Wn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Gn&&jn(e,t)?(e=on(),nn=tn=en=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Hn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=ko(o,"onBeforeInput")).length&&(r=new On("onBeforeInput","beforeinput",null,n,r),s.push({event:r,listeners:o}),r.data=m))}Ao(s,t)}))}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ko(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=He(e,n))&&o.unshift(Go(e,i,r)),null!=(i=He(e,t))&&o.push(Go(e,i,r))),e=e.return}return o}function Vo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ho(e,t,n,o,r){for(var i=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==u&&(a=u,r?null!=(l=He(n,i))&&s.unshift(Go(n,l,a)):r||null!=(l=He(n,i))&&s.push(Go(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}function Wo(){}var Bo=null,jo=null;function Uo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ko="function"==typeof setTimeout?setTimeout:void 0,Yo="function"==typeof clearTimeout?clearTimeout:void 0;function $o(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Xo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qo=0;var Zo=Math.random().toString(36).slice(2),Jo="__reactFiber$"+Zo,er="__reactProps$"+Zo,tr="__reactContainer$"+Zo,nr="__reactEvents$"+Zo;function or(e){var t=e[Jo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tr]||n[Jo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Xo(e);null!==e;){if(n=e[Jo])return n;e=Xo(e)}return t}n=(e=n).parentNode}return null}function rr(e){return!(e=e[Jo]||e[tr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ir(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function sr(e){return e[er]||null}function ar(e){var t=e[nr];return void 0===t&&(t=e[nr]=new Set),t}var lr=[],ur=-1;function cr(e){return{current:e}}function pr(e){0>ur||(e.current=lr[ur],lr[ur]=null,ur--)}function dr(e,t){ur++,lr[ur]=e.current,e.current=t}var hr={},fr=cr(hr),gr=cr(!1),yr=hr;function vr(e,t){var n=e.type.contextTypes;if(!n)return hr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mr(e){return null!=(e=e.childContextTypes)}function Cr(){pr(gr),pr(fr)}function wr(e,t,n){if(fr.current!==hr)throw Error(s(168));dr(fr,t),dr(gr,n)}function Er(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(s(108,Y(t)||"Unknown",i));return r({},n,o)}function br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hr,yr=fr.current,dr(fr,e),dr(gr,gr.current),!0}function Or(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=Er(e,t,yr),o.__reactInternalMemoizedMergedChildContext=e,pr(gr),pr(fr),dr(fr,e)):pr(gr),dr(gr,n)}var Rr=null,Sr=null,_r=i.unstable_runWithPriority,Pr=i.unstable_scheduleCallback,Tr=i.unstable_cancelCallback,Dr=i.unstable_shouldYield,Ar=i.unstable_requestPaint,Nr=i.unstable_now,Ir=i.unstable_getCurrentPriorityLevel,Fr=i.unstable_ImmediatePriority,xr=i.unstable_UserBlockingPriority,Lr=i.unstable_NormalPriority,Mr=i.unstable_LowPriority,Gr=i.unstable_IdlePriority,kr={},Vr=void 0!==Ar?Ar:function(){},Hr=null,Wr=null,Br=!1,jr=Nr(),Ur=1e4>jr?Nr:function(){return Nr()-jr};function zr(){switch(Ir()){case Fr:return 99;case xr:return 98;case Lr:return 97;case Mr:return 96;case Gr:return 95;default:throw Error(s(332))}}function Kr(e){switch(e){case 99:return Fr;case 98:return xr;case 97:return Lr;case 96:return Mr;case 95:return Gr;default:throw Error(s(332))}}function Yr(e,t){return e=Kr(e),_r(e,t)}function $r(e,t,n){return e=Kr(e),Pr(e,t,n)}function qr(){if(null!==Wr){var e=Wr;Wr=null,Tr(e)}Xr()}function Xr(){if(!Br&&null!==Hr){Br=!0;var e=0;try{var t=Hr;Yr(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Hr=null}catch(t){throw null!==Hr&&(Hr=Hr.slice(e+1)),Pr(Fr,qr),t}finally{Br=!1}}}var Qr=E.ReactCurrentBatchConfig;function Zr(e,t){if(e&&e.defaultProps){for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jr=cr(null),ei=null,ti=null,ni=null;function oi(){ni=ti=ei=null}function ri(e){var t=Jr.current;pr(Jr),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function si(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Gs=!0),e.firstContext=null)}function ai(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(s(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fi(e,t,n,o){var i=e.updateQueue;li=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===a?s=c:a.next=c,a=u;var p=e.alternate;if(null!==p){var d=(p=p.updateQueue).lastBaseUpdate;d!==a&&(null===d?p.firstBaseUpdate=c:d.next=c,p.lastBaseUpdate=u)}}if(null!==s){for(d=i.baseState,a=0,p=c=u=null;;){l=s.lane;var h=s.eventTime;if((o&l)===l){null!==p&&(p=p.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,g=s;switch(l=t,h=n,g.tag){case 1:if("function"==typeof(f=g.payload)){d=f.call(h,d,l);break e}d=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(l="function"==typeof(f=g.payload)?f.call(h,d,l):f))break e;d=r({},d,l);break e;case 2:li=!0}}null!==s.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[s]:l.push(s))}else h={eventTime:h,lane:l,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===p?(c=p=h,u=d):p=p.next=h,a|=l;if(null===(s=s.next)){if(null===(l=i.shared.pending))break;s=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===p&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=p,Ba|=a,e.lanes=a,e.memoizedState=d}}function gi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=n,"function"!=typeof r)throw Error(s(191,r));r.call(o)}}}var yi=(new o.Component).refs;function vi(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=hl(),r=fl(e),i=pi(o,r);i.payload=t,null!=n&&(i.callback=n),di(e,i),gl(e,r,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=hl(),r=fl(e),i=pi(o,r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),di(e,i),gl(e,r,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hl(),o=fl(e),r=pi(n,o);r.tag=2,null!=t&&(r.callback=t),di(e,r),gl(e,o,n)}};function Ci(e,t,n,o,r,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!ho(n,o)||!ho(r,i))}function wi(e,t,n){var o=!1,r=hr,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(r=mr(t)?yr:fr.current,i=(o=null!=(o=t.contextTypes))?vr(e,r):hr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ei(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function bi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=yi,ui(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ai(i):(i=mr(t)?yr:fr.current,r.context=vr(e,i)),fi(e,n,r,o),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&mi.enqueueReplaceState(r,r.state,null),fi(e,n,r,o),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4)}var Oi=Array.isArray;function Ri(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var o=n.stateNode}if(!o)throw Error(s(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=o.refs;t===yi&&(t=o.refs={}),null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Si(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _i(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Yl(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags=2,n):o:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Ql(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Ri(e,t,n),o.return=e,o):((o=$l(n.type,n.key,n.props,null,e.mode,o)).ref=Ri(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zl(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,o,i){return null===t||7!==t.tag?((t=ql(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ql(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=$l(t.type,t.key,t.props,null,e.mode,n)).ref=Ri(e,null,t),n.return=e,n;case O:return(t=Zl(t,e.mode,n)).return=e,t}if(Oi(t)||B(t))return(t=ql(t,e.mode,n,null)).return=e,t;Si(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===r?n.type===R?p(e,t,n.props.children,o,r):u(e,t,n,o):null;case O:return n.key===r?c(e,t,n,o):null}if(Oi(n)||B(n))return null!==r?null:p(e,t,n,o,null);Si(e,n)}return null}function f(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case b:return e=e.get(null===o.key?n:o.key)||null,o.type===R?p(t,e,o.props.children,r,o.key):u(t,e,o,r);case O:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(Oi(o)||B(o))return p(t,e=e.get(n)||null,o,r,null);Si(t,o)}return null}function g(r,s,a,l){for(var u=null,c=null,p=s,g=s=0,y=null;null!==p&&g<a.length;g++){p.index>g?(y=p,p=null):y=p.sibling;var v=h(r,p,a[g],l);if(null===v){null===p&&(p=y);break}e&&p&&null===v.alternate&&t(r,p),s=i(v,s,g),null===c?u=v:c.sibling=v,c=v,p=y}if(g===a.length)return n(r,p),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(s=i(p,s,g),null===c?u=p:c.sibling=p,c=p);return u}for(p=o(r,p);g<a.length;g++)null!==(y=f(p,r,g,a[g],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?g:y.key),s=i(y,s,g),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(r,e)})),u}function y(r,a,l,u){var c=B(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var p=c=null,g=a,y=a=0,v=null,m=l.next();null!==g&&!m.done;y++,m=l.next()){g.index>y?(v=g,g=null):v=g.sibling;var C=h(r,g,m.value,u);if(null===C){null===g&&(g=v);break}e&&g&&null===C.alternate&&t(r,g),a=i(C,a,y),null===p?c=C:p.sibling=C,p=C,g=v}if(m.done)return n(r,g),c;if(null===g){for(;!m.done;y++,m=l.next())null!==(m=d(r,m.value,u))&&(a=i(m,a,y),null===p?c=m:p.sibling=m,p=m);return c}for(g=o(r,g);!m.done;y++,m=l.next())null!==(m=f(g,r,y,m.value,u))&&(e&&null!==m.alternate&&g.delete(null===m.key?y:m.key),a=i(m,a,y),null===p?c=m:p.sibling=m,p=m);return e&&g.forEach((function(e){return t(r,e)})),c}return function(e,o,i,l){var u="object"==typeof i&&null!==i&&i.type===R&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case b:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===R){n(e,u.sibling),(o=r(u,i.props.children)).return=e,e=o;break e}}else if(u.elementType===i.type){n(e,u.sibling),(o=r(u,i.props)).ref=Ri(e,u,i),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===R?((o=ql(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=$l(i.type,i.key,i.props,null,e.mode,l)).ref=Ri(e,o,i),l.return=e,e=l)}return a(e);case O:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Zl(i,e.mode,l)).return=e,e=o}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Ql(i,e.mode,l)).return=e,e=o),a(e);if(Oi(i))return g(e,o,i,l);if(B(i))return y(e,o,i,l);if(c&&Si(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,o)}}var Pi=_i(!0),Ti=_i(!1),Di={},Ai=cr(Di),Ni=cr(Di),Ii=cr(Di);function Fi(e){if(e===Di)throw Error(s(174));return e}function xi(e,t){switch(dr(Ii,t),dr(Ni,e),dr(Ai,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pr(Ai),dr(Ai,t)}function Li(){pr(Ai),pr(Ni),pr(Ii)}function Mi(e){Fi(Ii.current);var t=Fi(Ai.current),n=fe(t,e.type);t!==n&&(dr(Ni,e),dr(Ai,n))}function Gi(e){Ni.current===e&&(pr(Ai),pr(Ni))}var ki=cr(0);function Vi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hi=null,Wi=null,Bi=!1;function ji(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function zi(e){if(Bi){var t=Wi;if(t){var n=t;if(!Ui(e,t)){if(!(t=qo(n.nextSibling))||!Ui(e,t))return e.flags=-1025&e.flags|2,Bi=!1,void(Hi=e);ji(Hi,n)}Hi=e,Wi=qo(t.firstChild)}else e.flags=-1025&e.flags|2,Bi=!1,Hi=e}}function Ki(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Hi=e}function Yi(e){if(e!==Hi)return!1;if(!Bi)return Ki(e),Bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zo(t,e.memoizedProps))for(t=Wi;t;)ji(e,t),t=qo(t.nextSibling);if(Ki(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wi=qo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wi=null}}else Wi=Hi?qo(e.stateNode.nextSibling):null;return!0}function $i(){Wi=Hi=null,Bi=!1}var qi=[];function Xi(){for(var e=0;e<qi.length;e++)qi[e]._workInProgressVersionPrimary=null;qi.length=0}var Qi=E.ReactCurrentDispatcher,Zi=E.ReactCurrentBatchConfig,Ji=0,es=null,ts=null,ns=null,os=!1,rs=!1;function is(){throw Error(s(321))}function ss(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function as(e,t,n,o,r,i){if(Ji=i,es=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qi.current=null===e||null===e.memoizedState?Fs:xs,e=n(o,r),rs){i=0;do{if(rs=!1,!(25>i))throw Error(s(301));i+=1,ns=ts=null,t.updateQueue=null,Qi.current=Ls,e=n(o,r)}while(rs)}if(Qi.current=Is,t=null!==ts&&null!==ts.next,Ji=0,ns=ts=es=null,os=!1,t)throw Error(s(300));return e}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ns?es.memoizedState=ns=e:ns=ns.next=e,ns}function us(){if(null===ts){var e=es.alternate;e=null!==e?e.memoizedState:null}else e=ts.next;var t=null===ns?es.memoizedState:ns.next;if(null!==t)ns=t,ts=e;else{if(null===e)throw Error(s(310));e={memoizedState:(ts=e).memoizedState,baseState:ts.baseState,baseQueue:ts.baseQueue,queue:ts.queue,next:null},null===ns?es.memoizedState=ns=e:ns=ns.next=e}return ns}function cs(e,t){return"function"==typeof t?t(e):t}function ps(e){var t=us(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=ts,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var a=r.next;r.next=i.next,i.next=a}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var l=a=i=null,u=r;do{var c=u.lane;if((Ji&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),o=u.eagerReducer===e?u.eagerState:e(o,u.action);else{var p={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(a=l=p,i=o):l=l.next=p,es.lanes|=c,Ba|=c}u=u.next}while(null!==u&&u!==r);null===l?i=o:l.next=a,co(o,t.memoizedState)||(Gs=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function ds(e){var t=us(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{i=e(i,a.action),a=a.next}while(a!==r);co(i,t.memoizedState)||(Gs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function hs(e,t,n){var o=t._getVersion;o=o(t._source);var r=t._workInProgressVersionPrimary;if(null!==r?e=r===o:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=o,qi.push(t))),e)return n(t._source);throw qi.push(t),Error(s(350))}function fs(e,t,n,o){var r=xa;if(null===r)throw Error(s(349));var i=t._getVersion,a=i(t._source),l=Qi.current,u=l.useState((function(){return hs(r,t,n)})),c=u[1],p=u[0];u=ns;var d=e.memoizedState,h=d.refs,f=h.getSnapshot,g=d.source;d=d.subscribe;var y=es;return e.memoizedState={refs:h,source:t,subscribe:o},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=i(t._source);if(!co(a,e)){e=n(t._source),co(p,e)||(c(e),e=fl(y),r.mutableReadLanes|=e&r.pendingLanes),e=r.mutableReadLanes,r.entangledLanes|=e;for(var o=r.entanglements,s=e;0<s;){var l=31-Ut(s),u=1<<l;o[l]|=e,s&=~u}}}),[n,t,o]),l.useEffect((function(){return o(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var o=fl(y);r.mutableReadLanes|=o&r.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,o]),co(f,n)&&co(g,t)&&co(d,o)||((e={pending:null,dispatch:null,lastRenderedReducer:cs,lastRenderedState:p}).dispatch=c=Ns.bind(null,es,e),u.queue=e,u.baseQueue=null,p=hs(r,t,n),u.memoizedState=u.baseState=p),p}function gs(e,t,n){return fs(us(),e,t,n)}function ys(e){var t=ls();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e}).dispatch=Ns.bind(null,es,e),[t.memoizedState,e]}function vs(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=es.updateQueue)?(t={lastEffect:null},es.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function ms(e){return e={current:e},ls().memoizedState=e}function Cs(){return us().memoizedState}function ws(e,t,n,o){var r=ls();es.flags|=e,r.memoizedState=vs(1|t,n,void 0,void 0===o?null:o)}function Es(e,t,n,o){var r=us();o=void 0===o?null:o;var i=void 0;if(null!==ts){var s=ts.memoizedState;if(i=s.destroy,null!==o&&ss(o,s.deps))return void vs(t,n,i,o)}es.flags|=e,r.memoizedState=vs(1|t,n,i,o)}function bs(e,t){return ws(516,4,e,t)}function Os(e,t){return Es(516,4,e,t)}function Rs(e,t){return Es(4,2,e,t)}function Ss(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _s(e,t,n){return n=null!=n?n.concat([e]):null,Es(4,2,Ss.bind(null,t,e),n)}function Ps(){}function Ts(e,t){var n=us();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ss(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Ds(e,t){var n=us();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ss(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function As(e,t){var n=zr();Yr(98>n?98:n,(function(){e(!0)})),Yr(97<n?97:n,(function(){var n=Zi.transition;Zi.transition=1;try{e(!1),t()}finally{Zi.transition=n}}))}function Ns(e,t,n){var o=hl(),r=fl(e),i={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(null===s?i.next=i:(i.next=s.next,s.next=i),t.pending=i,s=e.alternate,e===es||null!==s&&s===es)rs=os=!0;else{if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=s(a,n);if(i.eagerReducer=s,i.eagerState=l,co(l,a))return}catch(e){}gl(e,r,o)}}var Is={readContext:ai,useCallback:is,useContext:is,useEffect:is,useImperativeHandle:is,useLayoutEffect:is,useMemo:is,useReducer:is,useRef:is,useState:is,useDebugValue:is,useDeferredValue:is,useTransition:is,useMutableSource:is,useOpaqueIdentifier:is,unstable_isNewReconciler:!1},Fs={readContext:ai,useCallback:function(e,t){return ls().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:bs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ws(4,2,Ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ws(4,2,e,t)},useMemo:function(e,t){var n=ls();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ls();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ns.bind(null,es,e),[o.memoizedState,e]},useRef:ms,useState:ys,useDebugValue:Ps,useDeferredValue:function(e){var t=ys(e),n=t[0],o=t[1];return bs((function(){var t=Zi.transition;Zi.transition=1;try{o(e)}finally{Zi.transition=t}}),[e]),n},useTransition:function(){var e=ys(!1),t=e[0];return ms(e=As.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var o=ls();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fs(o,e,t,n)},useOpaqueIdentifier:function(){if(Bi){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qo++).toString(36))),Error(s(355))})),n=ys(t)[1];return!(2&es.mode)&&(es.flags|=516,vs(5,(function(){n("r:"+(Qo++).toString(36))}),void 0,null)),t}return ys(t="r:"+(Qo++).toString(36)),t},unstable_isNewReconciler:!1},xs={readContext:ai,useCallback:Ts,useContext:ai,useEffect:Os,useImperativeHandle:_s,useLayoutEffect:Rs,useMemo:Ds,useReducer:ps,useRef:Cs,useState:function(){return ps(cs)},useDebugValue:Ps,useDeferredValue:function(e){var t=ps(cs),n=t[0],o=t[1];return Os((function(){var t=Zi.transition;Zi.transition=1;try{o(e)}finally{Zi.transition=t}}),[e]),n},useTransition:function(){var e=ps(cs)[0];return[Cs().current,e]},useMutableSource:gs,useOpaqueIdentifier:function(){return ps(cs)[0]},unstable_isNewReconciler:!1},Ls={readContext:ai,useCallback:Ts,useContext:ai,useEffect:Os,useImperativeHandle:_s,useLayoutEffect:Rs,useMemo:Ds,useReducer:ds,useRef:Cs,useState:function(){return ds(cs)},useDebugValue:Ps,useDeferredValue:function(e){var t=ds(cs),n=t[0],o=t[1];return Os((function(){var t=Zi.transition;Zi.transition=1;try{o(e)}finally{Zi.transition=t}}),[e]),n},useTransition:function(){var e=ds(cs)[0];return[Cs().current,e]},useMutableSource:gs,useOpaqueIdentifier:function(){return ds(cs)[0]},unstable_isNewReconciler:!1},Ms=E.ReactCurrentOwner,Gs=!1;function ks(e,t,n,o){t.child=null===e?Ti(t,null,n,o):Pi(t,e.child,n,o)}function Vs(e,t,n,o,r){n=n.render;var i=t.ref;return si(t,r),o=as(e,t,n,o,i,r),null===e||Gs?(t.flags|=1,ks(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~r,sa(e,t,r))}function Hs(e,t,n,o,r,i){if(null===e){var s=n.type;return"function"!=typeof s||Kl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$l(n.type,null,o,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Ws(e,t,s,o,r,i))}return s=e.child,r&i||(r=s.memoizedProps,!(n=null!==(n=n.compare)?n:ho)(r,o)||e.ref!==t.ref)?(t.flags|=1,(e=Yl(s,o)).ref=t.ref,e.return=t,t.child=e):sa(e,t,i)}function Ws(e,t,n,o,r,i){if(null!==e&&ho(e.memoizedProps,o)&&e.ref===t.ref){if(Gs=!1,!(i&r))return t.lanes=e.lanes,sa(e,t,i);16384&e.flags&&(Gs=!0)}return Us(e,t,n,o,i)}function Bs(e,t,n){var o=t.pendingProps,r=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode||"unstable-defer-without-hiding"===o.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ol(t,e),null;t.memoizedState={baseLanes:0},Ol(t,null!==i?i.baseLanes:n)}else t.memoizedState={baseLanes:0},Ol(t,n);else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,Ol(t,o);return ks(e,t,r,n),t.child}function js(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Us(e,t,n,o,r){var i=mr(n)?yr:fr.current;return i=vr(t,i),si(t,r),n=as(e,t,n,o,i,r),null===e||Gs?(t.flags|=1,ks(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~r,sa(e,t,r))}function zs(e,t,n,o,r){if(mr(n)){var i=!0;br(t)}else i=!1;if(si(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,o),bi(t,n,o,r),o=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;"object"==typeof u&&null!==u?u=ai(u):u=vr(t,u=mr(n)?yr:fr.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&Ei(t,s,o,u),li=!1;var d=t.memoizedState;s.state=d,fi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||gr.current||li?("function"==typeof c&&(vi(t,n,c,o),l=t.memoizedState),(a=li||Ci(t,n,a,o,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4)):("function"==typeof s.componentDidMount&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"==typeof s.componentDidMount&&(t.flags|=4),o=!1)}else{s=t.stateNode,ci(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Zr(t.type,a),s.props=u,p=t.pendingProps,d=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=ai(l):l=vr(t,l=mr(n)?yr:fr.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ei(t,s,o,l),li=!1,d=t.memoizedState,s.state=d,fi(t,o,s,r);var f=t.memoizedState;a!==p||d!==f||gr.current||li?("function"==typeof h&&(vi(t,n,h,o),f=t.memoizedState),(u=li||Ci(t,n,u,o,d,f,l))?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=l,o=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),o=!1)}return Ks(e,t,n,o,i,r)}function Ks(e,t,n,o,r,i){js(e,t);var s=!!(64&t.flags);if(!o&&!s)return r&&Or(t,n,!1),sa(e,t,i);o=t.stateNode,Ms.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,a,i)):ks(e,t,a,i),t.memoizedState=o.state,r&&Or(t,n,!0),t.child}function Ys(e){var t=e.stateNode;t.pendingContext?wr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wr(0,t.context,!1),xi(e,t.containerInfo)}var $s,qs,Xs,Qs,Zs={dehydrated:null,retryLane:0};function Js(e,t,n){var o,r=t.pendingProps,i=ki.current,s=!1;return(o=!!(64&t.flags))||(o=(null===e||null!==e.memoizedState)&&!!(2&i)),o?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===r.fallback||!0===r.unstable_avoidThisFallback||(i|=1),dr(ki,1&i),null===e?(void 0!==r.fallback&&zi(t),e=r.children,i=r.fallback,s?(e=ea(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Zs,e):"number"==typeof r.unstable_expectedLoadTime?(e=ea(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Zs,t.lanes=33554432,e):((n=Xl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,s?(r=na(e,t,r.children,r.fallback,n),s=t.child,i=e.child.memoizedState,s.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},s.childLanes=e.childLanes&~n,t.memoizedState=Zs,r):(n=ta(e,t,r.children,n),t.memoizedState=null,n))}function ea(e,t,n,o){var r=e.mode,i=e.child;return t={mode:"hidden",children:t},2&r||null===i?i=Xl(t,r,0,null):(i.childLanes=0,i.pendingProps=t),n=ql(n,r,o,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function ta(e,t,n,o){var r=e.child;return e=r.sibling,n=Yl(r,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=o),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function na(e,t,n,o,r){var i=t.mode,s=e.child;e=s.sibling;var a={mode:"hidden",children:n};return 2&i||t.child===s?n=Yl(s,a):((n=t.child).childLanes=0,n.pendingProps=a,null!==(s=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?o=Yl(e,o):(o=ql(o,i,r,null)).flags|=2,o.return=t,n.return=t,n.sibling=o,t.child=n,o}function oa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function ra(e,t,n,o,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r,s.lastEffect=i)}function ia(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(ks(e,t,o.children,n),2&(o=ki.current))o=1&o|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oa(e,n);else if(19===e.tag)oa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(dr(ki,o),2&t.mode)switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Vi(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ra(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Vi(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ra(t,!0,n,null,i,t.lastEffect);break;case"together":ra(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function sa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ba|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Yl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function aa(e,t){if(!Bi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function la(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mr(t.type)&&Cr(),null;case 3:return Li(),pr(gr),pr(fr),Xi(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(Yi(t)?t.flags|=4:o.hydrate||(t.flags|=256)),qs(t),null;case 5:Gi(t);var i=Fi(Ii.current);if(n=t.type,null!==e&&null!=t.stateNode)Xs(e,t,n,o,i),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(null===t.stateNode)throw Error(s(166));return null}if(e=Fi(Ai.current),Yi(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[Jo]=t,o[er]=a,n){case"dialog":No("cancel",o),No("close",o);break;case"iframe":case"object":case"embed":No("load",o);break;case"video":case"audio":for(e=0;e<Po.length;e++)No(Po[e],o);break;case"source":No("error",o);break;case"img":case"image":case"link":No("error",o),No("load",o);break;case"details":No("toggle",o);break;case"input":ee(o,a),No("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},No("invalid",o);break;case"textarea":le(o,a),No("invalid",o)}for(var u in Re(n,a),e=null,a)a.hasOwnProperty(u)&&(i=a[u],"children"===u?"string"==typeof i?o.textContent!==i&&(e=["children",i]):"number"==typeof i&&o.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&No("scroll",o));switch(n){case"input":X(o),oe(o,a,!0);break;case"textarea":X(o),ce(o);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(o.onclick=Wo)}o=e,t.updateQueue=o,null!==o&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===pe&&(e=he(n)),e===pe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=u.createElement(n,{is:o.is}):(e=u.createElement(n),"select"===n&&(u=e,o.multiple?u.multiple=!0:o.size&&(u.size=o.size))):e=u.createElementNS(e,n),e[Jo]=t,e[er]=o,$s(e,t,!1,!1),t.stateNode=e,u=Se(n,o),n){case"dialog":No("cancel",e),No("close",e),i=o;break;case"iframe":case"object":case"embed":No("load",e),i=o;break;case"video":case"audio":for(i=0;i<Po.length;i++)No(Po[i],e);i=o;break;case"source":No("error",e),i=o;break;case"img":case"image":case"link":No("error",e),No("load",e),i=o;break;case"details":No("toggle",e),i=o;break;case"input":ee(e,o),i=J(e,o),No("invalid",e);break;case"option":i=ie(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=r({},o,{value:void 0}),No("invalid",e);break;case"textarea":le(e,o),i=ae(e,o),No("invalid",e);break;default:i=o}Re(n,i);var c=i;for(a in c)if(c.hasOwnProperty(a)){var p=c[a];"style"===a?be(e,p):"dangerouslySetInnerHTML"===a?null!=(p=p?p.__html:void 0)&&ve(e,p):"children"===a?"string"==typeof p?("textarea"!==n||""!==p)&&me(e,p):"number"==typeof p&&me(e,""+p):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=p&&"onScroll"===a&&No("scroll",e):null!=p&&w(e,a,p,u))}switch(n){case"input":X(e),oe(e,o,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=o.value&&e.setAttribute("value",""+$(o.value));break;case"select":e.multiple=!!o.multiple,null!=(a=o.value)?se(e,!!o.multiple,a,!1):null!=o.defaultValue&&se(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Wo)}Uo(n,o)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qs(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(s(166));n=Fi(Ii.current),Fi(Ai.current),Yi(t)?(o=t.stateNode,n=t.memoizedProps,o[Jo]=t,o.nodeValue!==n&&(t.flags|=4)):((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[Jo]=t,t.stateNode=o)}return null;case 13:return pr(ki),o=t.memoizedState,64&t.flags?(t.lanes=n,t):(o=null!==o,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yi(t):n=null!==e.memoizedState,o&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&ki.current?0===Va&&(Va=3):(0!==Va&&3!==Va||(Va=4),null===xa||!(134217727&Ba)&&!(134217727&ja)||Cl(xa,Ma))),(o||n)&&(t.flags|=4),null);case 4:return Li(),qs(t),null===e&&Fo(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(pr(ki),null===(o=t.memoizedState))return null;if(a=!!(64&t.flags),null===(u=o.rendering))if(a)aa(o,!1);else{if(0!==Va||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(u=Vi(e))){for(t.flags|=64,aa(o,!1),null!==(a=u.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;null!==n;)e=o,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return dr(ki,1&ki.current|2),t.child}e=e.sibling}null!==o.tail&&Ur()>Ya&&(t.flags|=64,a=!0,aa(o,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Vi(u))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),aa(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!Bi)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*Ur()-o.renderingStartTime>Ya&&1073741824!==n&&(t.flags|=64,a=!0,aa(o,!1),t.lanes=33554432);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Ur(),n.sibling=null,t=ki.current,dr(ki,a?1&t|2:1&t),n):null;case 23:case 24:return Rl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==o.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function ua(e){switch(e.tag){case 1:mr(e.type)&&Cr();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Li(),pr(gr),pr(fr),Xi(),64&(t=e.flags))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Gi(e),null;case 13:return pr(ki),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return pr(ki),null;case 4:return Li(),null;case 10:return ri(e),null;case 23:case 24:return Rl(),null;default:return null}}function ca(e,t){try{var n="",o=t;do{n+=K(o),o=o.return}while(o);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r}}function pa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}$s=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qs=function(){},Xs=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Fi(Ai.current);var s,a=null;switch(n){case"input":i=J(e,i),o=J(e,o),a=[];break;case"option":i=ie(e,i),o=ie(e,o),a=[];break;case"select":i=r({},i,{value:void 0}),o=r({},o,{value:void 0}),a=[];break;case"textarea":i=ae(e,i),o=ae(e,o),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=Wo)}for(p in Re(n,o),n=null,i)if(!o.hasOwnProperty(p)&&i.hasOwnProperty(p)&&null!=i[p])if("style"===p){var u=i[p];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(l.hasOwnProperty(p)?a||(a=[]):(a=a||[]).push(p,null));for(p in o){var c=o[p];if(u=null!=i?i[p]:void 0,o.hasOwnProperty(p)&&c!==u&&(null!=c||null!=u))if("style"===p)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(a||(a=[]),a.push(p,n)),n=c;else"dangerouslySetInnerHTML"===p?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(p,c)):"children"===p?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(p,""+c):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(l.hasOwnProperty(p)?(null!=c&&"onScroll"===p&&No("scroll",e),a||u===c||(a=[])):"object"==typeof c&&null!==c&&c.$$typeof===L?c.toString():(a=a||[]).push(p,c))}n&&(a=a||[]).push("style",n);var p=a;(t.updateQueue=p)&&(t.flags|=4)}},Qs=function(e,t,n,o){n!==o&&(t.flags|=4)};var da="function"==typeof WeakMap?WeakMap:Map;function ha(e,t,n){(n=pi(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Qa||(Qa=!0,Za=o),pa(0,t)},n}function fa(e,t,n){(n=pi(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return pa(0,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Ja?Ja=new Set([this]):Ja.add(this),pa(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ga="function"==typeof WeakSet?WeakSet:Set;function ya(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Wl(e,t)}else t.current=null}function va(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zr(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$o(t.stateNode.containerInfo))}throw Error(s(163))}function ma(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var r=e;o=r.next,4&(r=r.tag)&&1&r&&(kl(n,e),Gl(n,e)),e=o}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Zr(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&gi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}gi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Uo(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&bt(n)))))}throw Error(s(163))}function Ca(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=null!=r&&r.hasOwnProperty("display")?r.display:null,o.style.display=Ee("display",r)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function wa(e,t){if(Sr&&"function"==typeof Sr.onCommitFiberUnmount)try{Sr.onCommitFiberUnmount(Rr,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var o=n,r=o.destroy;if(o=o.tag,void 0!==r)if(4&o)kl(t,n);else{o=t;try{r()}catch(e){Wl(o,e)}}n=n.next}while(n!==e)}break;case 1:if(ya(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Wl(t,e)}break;case 5:ya(t);break;case 4:_a(e,t)}}function Ea(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ba(e){return 5===e.tag||3===e.tag||4===e.tag}function Oa(e){e:{for(var t=e.return;null!==t;){if(ba(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(s(161))}16&n.flags&&(me(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ba(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}o?Ra(e,n,t):Sa(e,n,t)}function Ra(e,t,n){var o=e.tag,r=5===o||6===o;if(r)e=r?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Wo));else if(4!==o&&null!==(e=e.child))for(Ra(e,t,n),e=e.sibling;null!==e;)Ra(e,t,n),e=e.sibling}function Sa(e,t,n){var o=e.tag,r=5===o||6===o;if(r)e=r?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(Sa(e,t,n),e=e.sibling;null!==e;)Sa(e,t,n),e=e.sibling}function _a(e,t){for(var n,o,r=t,i=!1;;){if(!i){i=r.return;e:for(;;){if(null===i)throw Error(s(160));switch(n=i.stateNode,i.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}i=i.return}i=!0}if(5===r.tag||6===r.tag){e:for(var a=e,l=r,u=l;;)if(wa(a,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(a=n,l=r.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(r.stateNode)}else if(4===r.tag){if(null!==r.child){n=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(wa(e,r),null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;4===(r=r.return).tag&&(i=!1)}r.sibling.return=r.return,r=r.sibling}}function Pa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{!(3&~o.tag)&&(e=o.destroy,o.destroy=void 0,void 0!==e&&e()),o=o.next}while(o!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){o=t.memoizedProps;var r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[er]=o,"input"===e&&"radio"===o.type&&null!=o.name&&te(n,o),Se(e,r),t=Se(e,o),r=0;r<i.length;r+=2){var a=i[r],l=i[r+1];"style"===a?be(n,l):"dangerouslySetInnerHTML"===a?ve(n,l):"children"===a?me(n,l):w(n,a,l,t)}switch(e){case"input":ne(n,o);break;case"textarea":ue(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(i=o.value)?se(n,!!o.multiple,i,!1):e!==!!o.multiple&&(null!=o.defaultValue?se(n,!!o.multiple,o.defaultValue,!0):se(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,bt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ka=Ur(),Ca(t.child,!0)),void Ta(t);case 19:return void Ta(t);case 23:case 24:return void Ca(t,null!==t.memoizedState)}throw Error(s(163))}function Ta(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ga),t.forEach((function(t){var o=jl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function Da(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Aa=Math.ceil,Na=E.ReactCurrentDispatcher,Ia=E.ReactCurrentOwner,Fa=0,xa=null,La=null,Ma=0,Ga=0,ka=cr(0),Va=0,Ha=null,Wa=0,Ba=0,ja=0,Ua=0,za=null,Ka=0,Ya=1/0;function $a(){Ya=Ur()+500}var qa,Xa=null,Qa=!1,Za=null,Ja=null,el=!1,tl=null,nl=90,ol=[],rl=[],il=null,sl=0,al=null,ll=-1,ul=0,cl=0,pl=null,dl=!1;function hl(){return 48&Fa?Ur():-1!==ll?ll:ll=Ur()}function fl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===zr()?1:2;if(0===ul&&(ul=Wa),0!==Qr.transition){0!==cl&&(cl=null!==za?za.pendingLanes:0),e=ul;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=zr(),4&Fa&&98===e?e=Ht(12,ul):e=Ht(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ul),e}function gl(e,t,n){if(50<sl)throw sl=0,al=null,Error(s(185));if(null===(e=yl(e,t)))return null;jt(e,t,n),e===xa&&(ja|=t,4===Va&&Cl(e,Ma));var o=zr();1===t?8&Fa&&!(48&Fa)?wl(e):(vl(e,n),0===Fa&&($a(),qr())):(!(4&Fa)||98!==o&&99!==o||(null===il?il=new Set([e]):il.add(e)),vl(e,n)),za=e}function yl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function vl(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Ut(a),u=1<<l,c=i[l];if(-1===c){if(!(u&o)||u&r){c=t,Gt(u);var p=Mt;i[l]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);a&=~u}if(o=kt(e,e===xa?Ma:0),t=Mt,0===o)null!==n&&(n!==kr&&Tr(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==kr&&Tr(n)}15===t?(n=wl.bind(null,e),null===Hr?(Hr=[n],Wr=Pr(Fr,Xr)):Hr.push(n),n=kr):14===t?n=$r(99,wl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),n=$r(n,ml.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ml(e){if(ll=-1,cl=ul=0,48&Fa)throw Error(s(327));var t=e.callbackNode;if(Ml()&&e.callbackNode!==t)return null;var n=kt(e,e===xa?Ma:0);if(0===n)return null;var o=n,r=Fa;Fa|=16;var i=Pl();for(xa===e&&Ma===o||($a(),Sl(e,o));;)try{Al();break}catch(t){_l(e,t)}if(oi(),Na.current=i,Fa=r,null!==La?o=0:(xa=null,Ma=0,o=Va),Wa&ja)Sl(e,0);else if(0!==o){if(2===o&&(Fa|=64,e.hydrate&&(e.hydrate=!1,$o(e.containerInfo)),0!==(n=Vt(e))&&(o=Tl(e,n))),1===o)throw t=Ha,Sl(e,0),Cl(e,n),vl(e,Ur()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(s(345));case 2:case 5:Fl(e);break;case 3:if(Cl(e,n),(62914560&n)===n&&10<(o=Ka+500-Ur())){if(0!==kt(e,0))break;if(((r=e.suspendedLanes)&n)!==n){hl(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=Ko(Fl.bind(null,e),o);break}Fl(e);break;case 4:if(Cl(e,n),(4186112&n)===n)break;for(o=e.eventTimes,r=-1;0<n;){var a=31-Ut(n);i=1<<a,(a=o[a])>r&&(r=a),n&=~i}if(n=r,10<(n=(120>(n=Ur()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Aa(n/1960))-n)){e.timeoutHandle=Ko(Fl.bind(null,e),n);break}Fl(e);break;default:throw Error(s(329))}}return vl(e,Ur()),e.callbackNode===t?ml.bind(null,e):null}function Cl(e,t){for(t&=~Ua,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),o=1<<n;e[n]=-1,t&=~o}}function wl(e){if(48&Fa)throw Error(s(327));if(Ml(),e===xa&&e.expiredLanes&Ma){var t=Ma,n=Tl(e,t);Wa&ja&&(n=Tl(e,t=kt(e,t)))}else n=Tl(e,t=kt(e,0));if(0!==e.tag&&2===n&&(Fa|=64,e.hydrate&&(e.hydrate=!1,$o(e.containerInfo)),0!==(t=Vt(e))&&(n=Tl(e,t))),1===n)throw n=Ha,Sl(e,0),Cl(e,t),vl(e,Ur()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e),vl(e,Ur()),null}function El(e,t){var n=Fa;Fa|=1;try{return e(t)}finally{0===(Fa=n)&&($a(),qr())}}function bl(e,t){var n=Fa;Fa&=-2,Fa|=8;try{return e(t)}finally{0===(Fa=n)&&($a(),qr())}}function Ol(e,t){dr(ka,Ga),Ga|=t,Wa|=t}function Rl(){Ga=ka.current,pr(ka)}function Sl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yo(n)),null!==La)for(n=La.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&Cr();break;case 3:Li(),pr(gr),pr(fr),Xi();break;case 5:Gi(o);break;case 4:Li();break;case 13:case 19:pr(ki);break;case 10:ri(o);break;case 23:case 24:Rl()}n=n.return}xa=e,La=Yl(e.current,null),Ma=Ga=Wa=t,Va=0,Ha=null,Ua=ja=Ba=0}function _l(e,t){for(;;){var n=La;try{if(oi(),Qi.current=Is,os){for(var o=es.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}os=!1}if(Ji=0,ns=ts=es=null,rs=!1,Ia.current=null,null===n||null===n.return){Va=1,Ha=t,La=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Ma,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(!(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.lanes=c.lanes):(a.updateQueue=null,a.memoizedState=null)}var p=!!(1&ki.current),d=s;do{var h;if(h=13===d.tag){var f=d.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var g=d.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!p)}}if(h){var y=d.updateQueue;if(null===y){var v=new Set;v.add(u),d.updateQueue=v}else y.add(u);if(!(2&d.mode)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var m=pi(-1,1);m.tag=2,di(a,m)}a.lanes|=1;break e}l=void 0,a=t;var C=i.pingCache;if(null===C?(C=i.pingCache=new da,l=new Set,C.set(u,l)):void 0===(l=C.get(u))&&(l=new Set,C.set(u,l)),!l.has(a)){l.add(a);var w=Bl.bind(null,i,u,a);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Y(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Va&&(Va=2),l=ca(l,a),d=s;do{switch(d.tag){case 3:i=l,d.flags|=4096,t&=-t,d.lanes|=t,hi(d,ha(0,i,t));break e;case 1:i=l;var E=d.type,b=d.stateNode;if(!(64&d.flags||"function"!=typeof E.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ja&&Ja.has(b)))){d.flags|=4096,t&=-t,d.lanes|=t,hi(d,fa(d,i,t));break e}}d=d.return}while(null!==d)}Il(n)}catch(e){t=e,La===n&&null!==n&&(La=n=n.return);continue}break}}function Pl(){var e=Na.current;return Na.current=Is,null===e?Is:e}function Tl(e,t){var n=Fa;Fa|=16;var o=Pl();for(xa===e&&Ma===t||Sl(e,t);;)try{Dl();break}catch(t){_l(e,t)}if(oi(),Fa=n,Na.current=o,null!==La)throw Error(s(261));return xa=null,Ma=0,Va}function Dl(){for(;null!==La;)Nl(La)}function Al(){for(;null!==La&&!Dr();)Nl(La)}function Nl(e){var t=qa(e.alternate,e,Ga);e.memoizedProps=e.pendingProps,null===t?Il(e):La=t,Ia.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=ua(t)))return n.flags&=2047,void(La=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=la(n,t,Ga)))return void(La=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ga||!(4&n.mode)){for(var o=0,r=n.child;null!==r;)o|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=o}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(La=t);La=t=e}while(null!==t);0===Va&&(Va=5)}function Fl(e){var t=zr();return Yr(99,xl.bind(null,e,t)),null}function xl(e,t){do{Ml()}while(null!==tl);if(48&Fa)throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var o=n.lanes|n.childLanes,r=o,i=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<i;){var u=31-Ut(i),c=1<<u;r[u]=0,a[u]=-1,l[u]=-1,i&=~c}if(null!==il&&!(24&o)&&il.has(e)&&il.delete(e),e===xa&&(La=xa=null,Ma=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){if(r=Fa,Fa|=32,Ia.current=null,Bo=qt,mo(a=vo())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var p=0,d=-1,h=-1,f=0,g=0,y=a,v=null;t:for(;;){for(var m;y!==l||0!==i&&3!==y.nodeType||(d=p+i),y!==u||0!==c&&3!==y.nodeType||(h=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(m=y.firstChild);)v=y,y=m;for(;;){if(y===a)break t;if(v===l&&++f===i&&(d=p),v===u&&++g===c&&(h=p),null!==(m=y.nextSibling))break;v=(y=v).parentNode}y=m}l=-1===d||-1===h?null:{start:d,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;jo={focusedElem:a,selectionRange:l},qt=!1,pl=null,dl=!1,Xa=o;do{try{Ll()}catch(e){if(null===Xa)throw Error(s(330));Wl(Xa,e),Xa=Xa.nextEffect}}while(null!==Xa);pl=null,Xa=o;do{try{for(a=e;null!==Xa;){var C=Xa.flags;if(16&C&&me(Xa.stateNode,""),128&C){var w=Xa.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&C){case 2:Oa(Xa),Xa.flags&=-3;break;case 6:Oa(Xa),Xa.flags&=-3,Pa(Xa.alternate,Xa);break;case 1024:Xa.flags&=-1025;break;case 1028:Xa.flags&=-1025,Pa(Xa.alternate,Xa);break;case 4:Pa(Xa.alternate,Xa);break;case 8:_a(a,l=Xa);var b=l.alternate;Ea(l),null!==b&&Ea(b)}Xa=Xa.nextEffect}}catch(e){if(null===Xa)throw Error(s(330));Wl(Xa,e),Xa=Xa.nextEffect}}while(null!==Xa);if(E=jo,w=vo(),C=E.focusedElem,a=E.selectionRange,w!==C&&C&&C.ownerDocument&&yo(C.ownerDocument.documentElement,C)){null!==a&&mo(C)&&(w=a.start,void 0===(E=a.end)&&(E=w),"selectionStart"in C?(C.selectionStart=w,C.selectionEnd=Math.min(E,C.value.length)):(E=(w=C.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),l=C.textContent.length,b=Math.min(a.start,l),a=void 0===a.end?b:Math.min(a.end,l),!E.extend&&b>a&&(l=a,a=b,b=l),l=go(C,b),i=go(C,a),l&&i&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==i.node||E.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),b>a?(E.addRange(w),E.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),E.addRange(w))))),w=[];for(E=C;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<w.length;C++)(E=w[C]).element.scrollLeft=E.left,E.element.scrollTop=E.top}qt=!!Bo,jo=Bo=null,e.current=n,Xa=o;do{try{for(C=e;null!==Xa;){var O=Xa.flags;if(36&O&&ma(C,Xa.alternate,Xa),128&O){w=void 0;var R=Xa.ref;if(null!==R){var S=Xa.stateNode;Xa.tag,w=S,"function"==typeof R?R(w):R.current=w}}Xa=Xa.nextEffect}}catch(e){if(null===Xa)throw Error(s(330));Wl(Xa,e),Xa=Xa.nextEffect}}while(null!==Xa);Xa=null,Vr(),Fa=r}else e.current=n;if(el)el=!1,tl=e,nl=t;else for(Xa=o;null!==Xa;)t=Xa.nextEffect,Xa.nextEffect=null,8&Xa.flags&&((O=Xa).sibling=null,O.stateNode=null),Xa=t;if(0===(o=e.pendingLanes)&&(Ja=null),1===o?e===al?sl++:(sl=0,al=e):sl=0,n=n.stateNode,Sr&&"function"==typeof Sr.onCommitFiberRoot)try{Sr.onCommitFiberRoot(Rr,n,void 0,!(64&~n.current.flags))}catch(e){}if(vl(e,Ur()),Qa)throw Qa=!1,e=Za,Za=null,e;return 8&Fa||qr(),null}function Ll(){for(;null!==Xa;){var e=Xa.alternate;dl||null===pl||(8&Xa.flags?et(Xa,pl)&&(dl=!0):13===Xa.tag&&Da(e,Xa)&&et(Xa,pl)&&(dl=!0));var t=Xa.flags;256&t&&va(e,Xa),!(512&t)||el||(el=!0,$r(97,(function(){return Ml(),null}))),Xa=Xa.nextEffect}}function Ml(){if(90!==nl){var e=97<nl?97:nl;return nl=90,Yr(e,Vl)}return!1}function Gl(e,t){ol.push(t,e),el||(el=!0,$r(97,(function(){return Ml(),null})))}function kl(e,t){rl.push(t,e),el||(el=!0,$r(97,(function(){return Ml(),null})))}function Vl(){if(null===tl)return!1;var e=tl;if(tl=null,48&Fa)throw Error(s(331));var t=Fa;Fa|=32;var n=rl;rl=[];for(var o=0;o<n.length;o+=2){var r=n[o],i=n[o+1],a=r.destroy;if(r.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===i)throw Error(s(330));Wl(i,e)}}for(n=ol,ol=[],o=0;o<n.length;o+=2){r=n[o],i=n[o+1];try{var l=r.create;r.destroy=l()}catch(e){if(null===i)throw Error(s(330));Wl(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Fa=t,qr(),!0}function Hl(e,t,n){di(e,t=ha(0,t=ca(n,t),1)),t=hl(),null!==(e=yl(e,1))&&(jt(e,1,t),vl(e,t))}function Wl(e,t){if(3===e.tag)Hl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Hl(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Ja||!Ja.has(o))){var r=fa(n,e=ca(t,e),1);if(di(n,r),r=hl(),null!==(n=yl(n,1)))jt(n,1,r),vl(n,r);else if("function"==typeof o.componentDidCatch&&(null===Ja||!Ja.has(o)))try{o.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Bl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=hl(),e.pingedLanes|=e.suspendedLanes&n,xa===e&&(Ma&n)===n&&(4===Va||3===Va&&(62914560&Ma)===Ma&&500>Ur()-Ka?Sl(e,0):Ua|=n),vl(e,t)}function jl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(2&(t=e.mode)?4&t?(0===ul&&(ul=Wa),0===(t=Wt(62914560&~ul))&&(t=4194304)):t=99===zr()?1:2:t=1),n=hl(),null!==(e=yl(e,t))&&(jt(e,t,n),vl(e,n))}function Ul(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,t,n,o){return new Ul(e,t,n,o)}function Kl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,o,r,i){var a=2;if(o=e,"function"==typeof e)Kl(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case R:return ql(n.children,r,i,t);case M:a=8,r|=16;break;case S:a=8,r|=1;break;case _:return(e=zl(12,n,t,8|r)).elementType=_,e.type=_,e.lanes=i,e;case A:return(e=zl(13,n,t,r)).type=A,e.elementType=A,e.lanes=i,e;case N:return(e=zl(19,n,t,r)).elementType=N,e.lanes=i,e;case G:return Xl(n,r,i,t);case k:return(e=zl(24,n,t,r)).elementType=k,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:a=10;break e;case T:a=9;break e;case D:a=11;break e;case I:a=14;break e;case F:a=16,o=null;break e;case x:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=zl(a,n,t,r)).elementType=e,t.type=o,t.lanes=i,t}function ql(e,t,n,o){return(e=zl(7,e,o,t)).lanes=n,e}function Xl(e,t,n,o){return(e=zl(23,e,o,t)).elementType=G,e.lanes=n,e}function Ql(e,t,n){return(e=zl(6,e,null,t)).lanes=n,e}function Zl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function eu(e,t,n,o){var r=t.current,i=hl(),a=fl(r);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(mr(u)){n=Er(n,u,l);break e}}n=l}else n=hr;return null===t.context?t.context=n:t.pendingContext=n,(t=pi(i,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),di(r,t),gl(r,a,i),a}function tu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ou(e,t){nu(e,t),(e=e.alternate)&&nu(e,t)}function ru(e,t,n){var o=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ui(t),e[tr]=n.current,Fo(8===e.nodeType?e.parentNode:e),o)for(e=0;e<o.length;e++){var r=(t=o[e])._getVersion;r=r(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,r]:n.mutableSourceEagerHydrationData.push(t,r)}this._internalRoot=n}function iu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function su(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if("function"==typeof r){var a=r;r=function(){var e=tu(s);a.call(e)}}eu(t,s,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ru(e,0,t?{hydrate:!0}:void 0)}(n,o),s=i._internalRoot,"function"==typeof r){var l=r;r=function(){var e=tu(s);l.call(e)}}bl((function(){eu(t,s,e,r)}))}return tu(s)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!iu(t))throw Error(s(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}qa=function(e,t,n){var o=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||gr.current)Gs=!0;else{if(!(n&o)){switch(Gs=!1,t.tag){case 3:Ys(t),$i();break;case 5:Mi(t);break;case 1:mr(t.type)&&br(t);break;case 4:xi(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var r=t.type._context;dr(Jr,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Js(e,t,n):(dr(ki,1&ki.current),null!==(t=sa(e,t,n))?t.sibling:null);dr(ki,1&ki.current);break;case 19:if(o=!!(n&t.childLanes),64&e.flags){if(o)return ia(e,t,n);t.flags|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),dr(ki,ki.current),o)break;return null;case 23:case 24:return t.lanes=0,Bs(e,t,n)}return sa(e,t,n)}Gs=!!(16384&e.flags)}else Gs=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=vr(t,fr.current),si(t,n),r=as(null,t,o,e,r,n),t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mr(o)){var i=!0;br(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,ui(t);var a=o.getDerivedStateFromProps;"function"==typeof a&&vi(t,o,a,e),r.updater=mi,t.stateNode=r,r._reactInternals=t,bi(t,o,e,n),t=Ks(null,t,o,!0,i,n)}else t.tag=0,ks(null,t,r,n),t=t.child;return t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Kl(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===I)return 14}return 2}(r),e=Zr(r,e),i){case 0:t=Us(null,t,r,e,n);break e;case 1:t=zs(null,t,r,e,n);break e;case 11:t=Vs(null,t,r,e,n);break e;case 14:t=Hs(null,t,r,Zr(r.type,e),o,n);break e}throw Error(s(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Us(e,t,o,r=t.elementType===o?r:Zr(o,r),n);case 1:return o=t.type,r=t.pendingProps,zs(e,t,o,r=t.elementType===o?r:Zr(o,r),n);case 3:if(Ys(t),o=t.updateQueue,null===e||null===o)throw Error(s(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,ci(e,t),fi(t,o,null,n),(o=t.memoizedState.element)===r)$i(),t=sa(e,t,n);else{if((i=(r=t.stateNode).hydrate)&&(Wi=qo(t.stateNode.containerInfo.firstChild),Hi=t,i=Bi=!0),i){if(null!=(e=r.mutableSourceEagerHydrationData))for(r=0;r<e.length;r+=2)(i=e[r])._workInProgressVersionPrimary=e[r+1],qi.push(i);for(n=Ti(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ks(e,t,o,n),$i();t=t.child}return t;case 5:return Mi(t),null===e&&zi(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,a=r.children,zo(o,r)?a=null:null!==i&&zo(o,i)&&(t.flags|=16),js(e,t),ks(e,t,a,n),t.child;case 6:return null===e&&zi(t),null;case 13:return Js(e,t,n);case 4:return xi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Pi(t,null,o,n):ks(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Vs(e,t,o,r=t.elementType===o?r:Zr(o,r),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value;var l=t.type._context;if(dr(Jr,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0===(i=co(l,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(a.children===r.children&&!gr.current){t=sa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var c=u.firstContext;null!==c;){if(c.context===o&&c.observedBits&i){1===l.tag&&((c=pi(-1,n&-n)).tag=2,di(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ii(l.return,n),u.lanes|=n;break}c=c.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}ks(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,si(t,n),o=o(r=ai(r,i.unstable_observedBits)),t.flags|=1,ks(e,t,o,n),t.child;case 14:return i=Zr(r=t.type,t.pendingProps),Hs(e,t,r,i=Zr(r.type,i),o,n);case 15:return Ws(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Zr(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mr(o)?(e=!0,br(t)):e=!1,si(t,n),wi(t,o,r),bi(t,o,r,n),Ks(null,t,o,!0,e,n);case 19:return ia(e,t,n);case 23:case 24:return Bs(e,t,n)}throw Error(s(156,t.tag))},ru.prototype.render=function(e){eu(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;eu(null,e,null,(function(){t[tr]=null}))},tt=function(e){13===e.tag&&(gl(e,4,hl()),ou(e,4))},nt=function(e){13===e.tag&&(gl(e,67108864,hl()),ou(e,67108864))},ot=function(e){if(13===e.tag){var t=hl(),n=fl(e);gl(e,n,t),ou(e,n)}},rt=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=sr(o);if(!r)throw Error(s(90));Q(o),ne(o,r)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Fe=El,xe=function(e,t,n,o,r){var i=Fa;Fa|=4;try{return Yr(98,e.bind(null,t,n,o,r))}finally{0===(Fa=i)&&($a(),qr())}},Le=function(){!(49&Fa)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vl(e,Ur())}))}qr()}(),Ml())},Me=function(e,t){var n=Fa;Fa|=2;try{return e(t)}finally{0===(Fa=n)&&($a(),qr())}};var lu={Events:[rr,ir,sr,Ne,Ie,Ml,{current:!1}]},uu={findFiberByHostInstance:or,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cu={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pu.isDisabled&&pu.supportsFiber)try{Rr=pu.inject(cu),Sr=pu}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lu,t.createPortal=au,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Fa;if(48&n)return e(t);Fa|=1;try{if(e)return Yr(99,e.bind(null,t))}finally{Fa=n,qr()}},t.hydrate=function(e,t,n){if(!iu(t))throw Error(s(200));return su(null,e,t,!0,n)},t.render=function(e,t,n){if(!iu(t))throw Error(s(200));return su(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!iu(e))throw Error(s(40));return!!e._reactRootContainer&&(bl((function(){su(null,null,e,!1,(function(){e._reactRootContainer=null,e[tr]=null}))})),!0)},t.unstable_batchedUpdates=El,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!iu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return su(e,t,n,!1,o)},t.version="17.0.2"},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},5848:(e,t,n)=>{"use strict";e.exports=n(2911)},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case y:case g:case l:return e;default:return t}}case r:return t}}}function b(e){return E(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=g,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return b(e)||E(e)===c},t.isConcurrentMode=b,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===y},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===a},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===m||e.$$typeof===C||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},5137:(e,t,n)=>{"use strict";t.__esModule=!0;var o=u(n(5556)),r=u(n(161)),i=u(n(6540)),s=u(n(961)),a=u(n(7565)),l=u(n(3022));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,u=Array(r),p=0;p<r;p++)u[p]=arguments[p];return n=o=c(this,e.call.apply(e,[this].concat(u))),o._mountOverlayTarget=function(){o._overlayTarget||(o._overlayTarget=document.createElement("div"),o._portalContainerNode=(0,a.default)(o.props.container,(0,l.default)(o).body),o._portalContainerNode.appendChild(o._overlayTarget))},o._unmountOverlayTarget=function(){o._overlayTarget&&(o._portalContainerNode.removeChild(o._overlayTarget),o._overlayTarget=null),o._portalContainerNode=null},o._renderOverlay=function(){var e=o.props.children?i.default.Children.only(o.props.children):null;if(null!==e){o._mountOverlayTarget();var t=!o._overlayInstance;o._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(o,e,o._overlayTarget,(function(){t&&o.props.onRendered&&o.props.onRendered()}))}else o._unrenderOverlay(),o._unmountOverlayTarget()},o._unrenderOverlay=function(){o._overlayTarget&&(s.default.unmountComponentAtNode(o._overlayTarget),o._overlayInstance=null)},o.getMountNode=function(){return o._overlayTarget},c(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,a.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);p.displayName="Portal",p.propTypes={container:o.default.oneOfType([r.default,o.default.func]),onRendered:o.default.func},t.default=p,e.exports=t.default},8247:(e,t,n)=>{"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=b(n(4213)),i=b(n(2523)),s=b(n(1833)),a=b(n(5556)),l=b(n(161)),u=b(n(6242)),c=b(n(9423)),p=n(6540),d=b(p),h=b(n(961)),f=b(n(583)),g=b(n(7580)),y=b(n(1494)),v=b(n(9897)),m=b(n(5467)),C=b(n(9307)),w=b(n(7565)),E=b(n(3022));function b(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var R=new g.default,S=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=o=O(this,e.call.apply(e,[this].concat(i))),_.call(o),O(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.omitProps=function(e,t){var n=Object.keys(e),o={};return n.map((function(n){Object.prototype.hasOwnProperty.call(t,n)||(o[n]=e[n])})),o},t.prototype.render=function(){var e=this.props,n=e.show,r=e.container,i=e.children,s=e.transition,a=e.backdrop,l=e.className,u=e.style,c=e.onExit,h=e.onExiting,f=e.onEnter,g=e.onEntering,m=e.onEntered,C=d.default.Children.only(i),w=this.omitProps(this.props,t.propTypes);if(!(n||s&&!this.state.exited))return null;var E=C.props,b=E.role,O=E.tabIndex;return void 0!==b&&void 0!==O||(C=(0,p.cloneElement)(C,{role:void 0===b?"document":b,tabIndex:null==O?"-1":O})),s&&(C=d.default.createElement(s,{appear:!0,unmountOnExit:!0,in:n,onExit:c,onExiting:h,onExited:this.handleHidden,onEnter:f,onEntering:g,onEntered:m},C)),d.default.createElement(y.default,{ref:this.setMountNode,container:r,onRendered:this.onPortalRendered},d.default.createElement("div",o({ref:this.setModalNodeRef,role:b||"dialog"},w,{style:u,className:l}),a&&this.renderBackdrop(),d.default.createElement(v.default,{ref:this.setDialogRef},C)))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.UNSAFE_componentWillUpdate=function(e){!this.props.show&&e.show&&this.checkForFocus()},t.prototype.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},t.prototype.componentDidUpdate=function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.show,n=e.transition;this._isMounted=!1,(t||n&&!this.state.exited)&&this.onHide()},t.prototype.autoFocus=function(){if(this.props.autoFocus){var e=this.getDialogElement(),t=(0,r.default)((0,E.default)(this));e&&!(0,i.default)(e,t)&&(this.lastFocus=t,e.hasAttribute("tabIndex")||((0,f.default)(!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'),e.setAttribute("tabIndex",-1)),e.focus())}},t.prototype.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},t.prototype.getDialogElement=function(){return h.default.findDOMNode(this.dialog)},t.prototype.isTopModal=function(){return this.props.manager.isTopModal(this)},t}(d.default.Component);S.propTypes=o({},y.default.propTypes,{show:a.default.bool,container:a.default.oneOfType([l.default,a.default.func]),onShow:a.default.func,onHide:a.default.func,backdrop:a.default.oneOfType([a.default.bool,a.default.oneOf(["static"])]),renderBackdrop:a.default.func,onEscapeKeyDown:a.default.func,onEscapeKeyUp:(0,u.default)(a.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:a.default.func,backdropStyle:a.default.object,backdropClassName:a.default.string,containerClassName:a.default.string,keyboard:a.default.bool,transition:c.default,backdropTransition:c.default,autoFocus:a.default.bool,enforceFocus:a.default.bool,restoreFocus:a.default.bool,onEnter:a.default.func,onEntering:a.default.func,onEntered:a.default.func,onExit:a.default.func,onExiting:a.default.func,onExited:a.default.func,manager:a.default.object.isRequired}),S.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:R,renderBackdrop:function(e){return d.default.createElement("div",e)}};var _=function(){var e=this;this.state={exited:!this.props.show},this.renderBackdrop=function(){var t=e.props,n=t.backdropStyle,o=t.backdropClassName,r=t.renderBackdrop,i=t.backdropTransition,s=r({ref:function(t){return e.backdrop=t},style:n,className:o,onClick:e.handleBackdropClick});return i&&(s=d.default.createElement(i,{appear:!0,in:e.props.show},s)),s},this.onPortalRendered=function(){e.autoFocus(),e.props.onShow&&e.props.onShow()},this.onShow=function(){var t=(0,E.default)(e),n=(0,w.default)(e.props.container,t.body);e.props.manager.add(e,n,e.props.containerClassName),e._onDocumentKeydownListener=(0,m.default)(t,"keydown",e.handleDocumentKeyDown),e._onDocumentKeyupListener=(0,m.default)(t,"keyup",e.handleDocumentKeyUp),e._onFocusinListener=(0,C.default)(e.enforceFocus)},this.onHide=function(){e.props.manager.remove(e),e._onDocumentKeydownListener.remove(),e._onDocumentKeyupListener.remove(),e._onFocusinListener.remove(),e.props.restoreFocus&&e.restoreLastFocus()},this.setMountNode=function(t){e.mountNode=t?t.getMountNode():t},this.setModalNodeRef=function(t){e.modalNode=t},this.setDialogRef=function(t){e.dialog=t},this.handleHidden=function(){var t;(e.setState({exited:!0}),e.onHide(),e.props.onExited)&&(t=e.props).onExited.apply(t,arguments)},this.handleBackdropClick=function(t){t.target===t.currentTarget&&(e.props.onBackdropClick&&e.props.onBackdropClick(t),!0===e.props.backdrop&&e.props.onHide())},this.handleDocumentKeyDown=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&(e.props.onEscapeKeyDown&&e.props.onEscapeKeyDown(t),e.props.onHide())},this.handleDocumentKeyUp=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&e.props.onEscapeKeyUp&&e.props.onEscapeKeyUp(t)},this.checkForFocus=function(){s.default&&(e.lastFocus=(0,r.default)())},this.enforceFocus=function(){if(e.props.enforceFocus&&e._isMounted&&e.isTopModal()){var t=e.getDialogElement(),n=(0,r.default)((0,E.default)(e));t&&!(0,i.default)(t,n)&&t.focus()}}};S.Manager=g.default,t.default=S,e.exports=t.default},7580:(e,t,n)=>{"use strict";t.__esModule=!0;var o=l(n(3688)),r=l(n(3725)),i=l(n(1171)),s=l(n(1030)),a=n(9172);function l(e){return e&&e.__esModule?e:{default:e}}t.default=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=n.hideSiblingNodes,u=void 0===l||l,c=n.handleContainerOverflow,p=void 0===c||c;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.add=function(e,n,l){var u=t.modals.indexOf(e),c=t.containers.indexOf(n);if(-1!==u)return u;if(u=t.modals.length,t.modals.push(e),t.hideSiblingNodes&&(0,a.hideSiblings)(n,e.modalNode),-1!==c)return t.data[c].modals.push(e),u;var p={modals:[e],classes:l?l.split(/\s+/):[],overflowing:(0,s.default)(n)};return t.handleContainerOverflow&&function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt((0,r.default)(t,"paddingRight")||0,10)+(0,i.default)()+"px"),(0,r.default)(t,n)}(p,n),p.classes.forEach(o.default.addClass.bind(null,n)),t.containers.push(n),t.data.push(p),u},this.remove=function(e){var n=t.modals.indexOf(e);if(-1!==n){var r=function(e,t){return n=function(e){return-1!==e.modals.indexOf(t)},o=-1,e.some((function(e,t){if(n(e,t))return o=t,!0})),o;var n,o}(t.data,e),i=t.data[r],s=t.containers[r];i.modals.splice(i.modals.indexOf(e),1),t.modals.splice(n,1),0===i.modals.length?(i.classes.forEach(o.default.removeClass.bind(null,s)),t.handleContainerOverflow&&function(e,t){var n=e.style;Object.keys(n).forEach((function(e){return t.style[e]=n[e]}))}(i,s),t.hideSiblingNodes&&(0,a.showSiblings)(s,e.modalNode),t.containers.splice(r,1),t.data.splice(r,1)):t.hideSiblingNodes&&(0,a.ariaHidden)(!1,i.modals[i.modals.length-1].modalNode)}},this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e},this.hideSiblingNodes=u,this.handleContainerOverflow=p,this.modals=[],this.containers=[],this.data=[]},e.exports=t.default},1494:(e,t,n)=>{"use strict";t.__esModule=!0;var o=p(n(1833)),r=p(n(5556)),i=p(n(161)),s=p(n(6540)),a=p(n(961)),l=p(n(7565)),u=p(n(3022)),c=p(n(5137));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=o=d(this,e.call.apply(e,[this].concat(i))),o.getMountNode=function(){return o._portalContainerNode},d(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.UNSAFE_componentWillMount=function(){if(o.default){var e=this.props.container;"function"==typeof e&&(e=e()),e&&!a.default.findDOMNode(e)||this.setContainer(e)}},t.prototype.componentDidMount=function(){this._portalContainerNode?this.props.onRendered&&this.props.onRendered():(this.setContainer(this.props.container),this.forceUpdate(this.props.onRendered))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e.container)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.setContainer=function(e){this._portalContainerNode=(0,l.default)(e,(0,u.default)(this).body)},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?a.default.createPortal(this.props.children,this._portalContainerNode):null},t}(s.default.Component);h.displayName="Portal",h.propTypes={container:r.default.oneOfType([i.default,r.default.func]),onRendered:r.default.func},t.default=a.default.createPortal?h:c.default,e.exports=t.default},9897:(e,t,n)=>{"use strict";t.__esModule=!0;var o=i(n(5556)),r=i(n(6540));function i(e){return e&&e.__esModule?e:{default:e}}var s={children:o.default.node},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.children},t}(r.default.Component);a.propTypes=s,t.default=a,e.exports=t.default},5467:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,i){return(0,o.default)(e,t,n,i),{remove:function(){(0,r.default)(e,t,n,i)}}};var o=i(n(9896)),r=i(n(1732));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9307:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=!document.addEventListener,n=void 0;t?(document.attachEvent("onfocusin",e),n=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),n=function(){return document.removeEventListener("focus",e,!0)});return{remove:n}},e.exports=t.default},7565:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var o,r=n(961),i=(o=r)&&o.__esModule?o:{default:o};e.exports=t.default},1030:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,o.default)(e)||(t=e,t&&"body"===t.tagName.toLowerCase())?function(e){var t=(0,r.default)(e),n=(0,o.default)(t),i=n.innerWidth;if(!i){var s=t.documentElement.getBoundingClientRect();i=s.right-Math.abs(s.left)}return t.body.clientWidth<i}(e):e.scrollHeight>e.clientHeight;var t};var o=i(n(8642)),r=i(n(7069));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9172:(e,t)=>{"use strict";t.__esModule=!0,t.ariaHidden=r,t.hideSiblings=function(e,t){o(e,t,(function(e){return r(!0,e)}))},t.showSiblings=function(e,t){o(e,t,(function(e){return r(!1,e)}))};var n=["template","script","style"],o=function(e,t,o){t=[].concat(t),[].forEach.call(e.children,(function(e){var r,i,s;-1===t.indexOf(e)&&(i=(r=e).nodeType,s=r.tagName,1===i&&-1===n.indexOf(s.toLowerCase()))&&o(e)}))};function r(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},3022:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,r.default)(o.default.findDOMNode(e))};var o=i(n(961)),r=i(n(7069));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},495:(e,t,n)=>{"use strict";t.Ay=t._K=t.ns=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(5556)),r=a(n(6540)),i=a(n(961)),s=n(1345);n(554);function a(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";var u="exited";var c="entering";t.ns=c;var p="entered";t._K=p;var d="exiting";var h=function(e){var t,n;function o(t,n){var o;o=e.call(this,t,n)||this;var r,i=n.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?s?(r=u,o.appearStatus=c):r=p:r=t.unmountOnExit||t.mountOnEnter?l:u,o.state={status:r},o.nextCallback=null,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.getChildContext=function(){return{transitionGroup:null}},o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:u}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==p&&(t=c):n!==c&&n!==p||(t=d)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},s.performEnter=function(e,t){var n=this,o=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||o?(this.props.onEnter(e,r),this.safeSetState({status:c},(function(){n.props.onEntering(e,r),n.onTransitionEnd(e,s,(function(){n.safeSetState({status:p},(function(){n.props.onEntered(e,r)}))}))}))):this.safeSetState({status:p},(function(){n.props.onEntered(e)}))},s.performExit=function(e){var t=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:d},(function(){t.props.onExiting(e),t.onTransitionEnd(e,o.exit,(function(){t.safeSetState({status:u},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:u},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var o=null==t&&!this.props.addEndListener;e&&!o?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(e,o);var i=r.default.Children.only(n);return r.default.cloneElement(i,o)},o}(r.default.Component);function f(){}h.contextTypes={transitionGroup:o.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var g=(0,s.polyfill)(h);t.Ay=g},554:(e,t,n)=>{"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var o;(o=n(5556))&&o.__esModule;t.timeoutsShape=null;t.classNamesShape=null},5287:(e,t,n)=>{"use strict";var o=n(5228),r=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var s=60109,a=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var p=Symbol.for;r=p("react.element"),i=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),s=p("react.provider"),a=p("react.context"),l=p("react.forward_ref"),t.Suspense=p("react.suspense"),u=p("react.memo"),c=p("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var C=m.prototype=new v;C.constructor=m,o(C,y.prototype),C.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)E.call(t,o)&&!b.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:s,ref:a,props:i,_owner:w.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var S=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,o,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case i:l=!0}}if(l)return s=s(l=e),e=""===o?"."+_(l,0):o,Array.isArray(s)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),P(s,t,n,"",(function(e){return e}))):null!=s&&(R(s)&&(s=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(S,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=o+_(a=e[u],u);l+=P(a,t,n,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=P(a=a.value,t,n,c=o+_(a,u++),s);else if("object"===a)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var o=[],r=0;return P(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function D(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var A={current:null};function N(){var e=A.current;if(null===e)throw Error(h(321));return e}var I={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error(h(143));return e}},t.Component=y,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var i=o({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=w.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)E.call(t,c)&&!b.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];i.children=u}return{$$typeof:r,type:e.type,key:s,ref:a,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},7463:(e,t)=>{"use strict";var n,o,r,i;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,p=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(p,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(p,0))},o=function(e,t){c=setTimeout(e,t)},r=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,y=null,v=-1,m=5,C=0;t.unstable_shouldYield=function(){return t.unstable_now()>=C},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();C=e+m;try{y(!0,e)?E.postMessage(null):(g=!1,y=null)}catch(e){throw E.postMessage(null),e}}else g=!1},n=function(e){y=e,g||(g=!0,E.postMessage(null))},o=function(e,n){v=d((function(){e(t.unstable_now())}),n)},r=function(){h(v),v=-1}}function b(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<S(r,t)))break e;e[o]=t,e[n]=r,n=o}}function O(e){return void 0===(e=e[0])?null:e}function R(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length;o<r;){var i=2*(o+1)-1,s=e[i],a=i+1,l=e[a];if(void 0!==s&&0>S(s,n))void 0!==l&&0>S(l,s)?(e[o]=l,e[a]=n,o=a):(e[o]=s,e[i]=n,o=i);else{if(!(void 0!==l&&0>S(l,n)))break e;e[o]=l,e[a]=n,o=a}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var _=[],P=[],T=1,D=null,A=3,N=!1,I=!1,F=!1;function x(e){for(var t=O(P);null!==t;){if(null===t.callback)R(P);else{if(!(t.startTime<=e))break;R(P),t.sortIndex=t.expirationTime,b(_,t)}t=O(P)}}function L(e){if(F=!1,x(e),!I)if(null!==O(_))I=!0,n(M);else{var t=O(P);null!==t&&o(L,t.startTime-e)}}function M(e,n){I=!1,F&&(F=!1,r()),N=!0;var i=A;try{for(x(n),D=O(_);null!==D&&(!(D.expirationTime>n)||e&&!t.unstable_shouldYield());){var s=D.callback;if("function"==typeof s){D.callback=null,A=D.priorityLevel;var a=s(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?D.callback=a:D===O(_)&&R(_),x(n)}else R(_);D=O(_)}if(null!==D)var l=!0;else{var u=O(P);null!==u&&o(L,u.startTime-n),l=!1}return l}finally{D=null,A=i,N=!1}}var G=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||N||(I=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return O(_)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=G,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:i,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>a?(e.sortIndex=s,b(P,e),null===O(_)&&e===O(P)&&(F?r():F=!0,o(L,s-a))):(e.sortIndex=l,b(_,e),I||N||(I=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},583:e=>{"use strict";e.exports=function(){}},5090:(e,t,n)=>{e.exports=n(2019)},5938:(e,t,n)=>{e.exports=n(1205)},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(i,s),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);(()=>{"use strict";var e=r(6540),t=r.t(e,2),n=r(961);function o(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}var i=r(8271),s=r(1724);function a(e,t){return a=s?s.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){e.prototype=i(t.prototype),e.prototype.constructor=e,a(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=r(4734);function p(){return p=c?c.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(null,arguments)}var d,h=r(6942),f=r.n(h),g=r(5673),y=r(7069),v=r.n(y),m=r(1833),C=r.n(m),w=r(1171),E=r.n(w),b=r(5556),O=r.n(b),R=r(8247),S=r.n(R),_=r(1030),P=r.n(_),T=r(9423),D=r.n(T),A=r(495),N={in:O().bool,mountOnEnter:O().bool,unmountOnExit:O().bool,appear:O().bool,timeout:O().number,onEnter:O().func,onEntering:O().func,onEntered:O().func,onExit:O().func,onExiting:O().func,onExited:O().func},I=((d={})[A.ns]="in",d[A._K]="in",d),F=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.children,i=o(t,["className","children"]);return e.createElement(A.Ay,i,(function(t,o){return e.cloneElement(r,p({},o,{className:f()("fade",n,r.props.className,I[t])}))}))},n}(e.Component);F.propTypes=N,F.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const x=F;var L=r(5090),M=r.n(L),G=r(311),k=r.n(G),V="large",H="small",W="xsmall",B={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},j="default",U="primary",z="link";function K(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return"function"==typeof n[n.length-1]?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function Y(e,t){var n=(e.bsClass||"").trim();return null==n&&k()(!1),n+(t?"-"+t:"")}var $=K((function(e,t){var n=t.propTypes||(t.propTypes={}),o=t.defaultProps||(t.defaultProps={});return n.bsClass=O().string,o.bsClass=e,t})),q=K((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var o=n.STYLES||[],r=n.propTypes||{};e.forEach((function(e){-1===o.indexOf(e)&&o.push(e)}));var i=O().oneOf(o);(n.STYLES=o,i._values=o,n.propTypes=p({},r,{bsStyle:i}),void 0!==t)&&((n.defaultProps||(n.defaultProps={})).bsStyle=t);return n})),X=K((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var o=n.SIZES||[],r=n.propTypes||{};e.forEach((function(e){-1===o.indexOf(e)&&o.push(e)}));var i=[];o.forEach((function(e){var t=B[e];t&&t!==e&&i.push(t),i.push(e)}));var s=O().oneOf(i);return s._values=i,n.SIZES=o,n.propTypes=p({},r,{bsSize:s}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n}));function Q(e){var t,n=((t={})[Y(e)]=!0,t);e.bsSize&&(n[Y(e,B[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(n[Y(e,e.bsStyle)]=!0),n}function Z(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function J(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function ee(e){var t={};return M()(e).forEach((function(e){var n=e[0],o=e[1];J(n)||(t[n]=o)})),[Z(e),t]}function te(e,t){var n={};t.forEach((function(e){n[e]=!0}));var o={};return M()(e).forEach((function(e){var t=e[0],r=e[1];J(t)||n[t]||(o[t]=r)})),[Z(e),o]}var ne={componentClass:D()},oe=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=this.props,n=t.componentClass,r=t.className,i=ee(o(t,["componentClass","className"])),s=i[0],a=i[1],l=Q(s);return e.createElement(n,p({},a,{className:f()(r,l)}))},n}(e.Component);oe.propTypes=ne,oe.defaultProps={componentClass:"div"};const re=$("modal-body",oe);var ie={dialogClassName:O().string},se=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t,n=this.props,r=n.dialogClassName,i=n.className,s=n.style,a=n.children,l=n.onMouseDownDialog,u=ee(o(n,["dialogClassName","className","style","children","onMouseDownDialog"])),c=u[0],d=u[1],h=Y(c),g=p({display:"block"},s),y=p({},Q(c),((t={})[h]=!1,t[Y(c,"dialog")]=!0,t));return e.createElement("div",p({},d,{tabIndex:"-1",role:"dialog",style:g,className:f()(i,h)}),e.createElement("div",{className:f()(r,y),onMouseDown:l},e.createElement("div",{className:Y(c,"content"),role:"document"},a)))},n}(e.Component);se.propTypes=ie;const ae=$("modal",X([V,H],se));var le={componentClass:D()},ue=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=this.props,n=t.componentClass,r=t.className,i=ee(o(t,["componentClass","className"])),s=i[0],a=i[1],l=Q(s);return e.createElement(n,p({},a,{className:f()(r,l)}))},n}(e.Component);ue.propTypes=le,ue.defaultProps={componentClass:"div"};const ce=$("modal-footer",ue);const pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];e.apply(this,o),t.apply(this,o)}}),null)};var de={label:O().string.isRequired,onClick:O().func},he=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=this.props,n=t.label,o=t.onClick;return e.createElement("button",{type:"button",className:"close",onClick:o},e.createElement("span",{"aria-hidden":"true"},"×"),e.createElement("span",{className:"sr-only"},n))},n}(e.Component);he.propTypes=de,he.defaultProps={label:"Close"};const fe=he;var ge={closeLabel:O().string,closeButton:O().bool,onHide:O().func},ye={$bs_modal:O().shape({onHide:O().func})},ve=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=this.props,n=t.closeLabel,r=t.closeButton,i=t.onHide,s=t.className,a=t.children,l=o(t,["closeLabel","closeButton","onHide","className","children"]),u=this.context.$bs_modal,c=ee(l),d=c[0],h=c[1],g=Q(d);return e.createElement("div",p({},h,{className:f()(s,g)}),r&&e.createElement(fe,{label:n,onClick:pe(u&&u.onHide,i)}),a)},n}(e.Component);ve.propTypes=ge,ve.defaultProps={closeLabel:"Close",closeButton:!1},ve.contextTypes=ye;const me=$("modal-header",ve);var Ce={componentClass:D()},we=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=this.props,n=t.componentClass,r=t.className,i=ee(o(t,["componentClass","className"])),s=i[0],a=i[1],l=Q(s);return e.createElement(n,p({},a,{className:f()(r,l)}))},n}(e.Component);we.propTypes=Ce,we.defaultProps={componentClass:"h4"};const Ee=$("modal-title",we);var be=p({},S().propTypes,ae.propTypes,{backdrop:O().oneOf(["static",!0,!1]),backdropClassName:O().string,keyboard:O().bool,animation:O().bool,dialogComponentClass:D(),autoFocus:O().bool,enforceFocus:O().bool,restoreFocus:O().bool,show:O().bool,onHide:O().func,onEnter:O().func,onEntering:O().func,onEntered:O().func,onExit:O().func,onExiting:O().func,onExited:O().func,container:S().propTypes.container}),Oe=p({},S().defaultProps,{animation:!0,dialogComponentClass:ae}),Re={$bs_modal:O().shape({onHide:O().func})};function Se(t){return e.createElement(x,p({},t,{timeout:Pe.TRANSITION_DURATION}))}function _e(t){return e.createElement(x,p({},t,{timeout:Pe.BACKDROP_TRANSITION_DURATION}))}var Pe=function(t){function r(e,n){var o;return(o=t.call(this,e,n)||this).handleDialogBackdropMouseDown=function(){o._waitingForMouseUp=!0},o.handleMouseUp=function(e){var t=o._modal.getDialogElement();o._waitingForMouseUp&&e.target===t&&(o._ignoreBackdropClick=!0),o._waitingForMouseUp=!1},o.handleEntering=o.handleEntering.bind(u(u(o))),o.handleExited=o.handleExited.bind(u(u(o))),o.handleWindowResize=o.handleWindowResize.bind(u(u(o))),o.handleDialogClick=o.handleDialogClick.bind(u(u(o))),o.setModalRef=o.setModalRef.bind(u(u(o))),o.state={style:{}},o}l(r,t);var i=r.prototype;return i.getChildContext=function(){return{$bs_modal:{onHide:this.props.onHide}}},i.componentWillUnmount=function(){this.handleExited()},i.setModalRef=function(e){this._modal=e},i.handleDialogClick=function(e){this._ignoreBackdropClick||e.target!==e.currentTarget?this._ignoreBackdropClick=!1:this.props.onHide()},i.handleEntering=function(){g.Ay.on(window,"resize",this.handleWindowResize),this.updateStyle()},i.handleExited=function(){g.Ay.off(window,"resize",this.handleWindowResize)},i.handleWindowResize=function(){this.updateStyle()},i.updateStyle=function(){if(C()){var e=this._modal.getDialogElement(),t=e.scrollHeight,o=v()(e),r=P()(n.findDOMNode(this.props.container||o.body)),i=t>o.documentElement.clientHeight;this.setState({style:{paddingRight:r&&!i?E()():void 0,paddingLeft:!r&&i?E()():void 0}})}},i.render=function(){var t=this.props,n=t.backdrop,r=t.backdropClassName,i=t.animation,s=t.show,a=t.dialogComponentClass,l=t.className,u=t.style,c=t.children,d=t.onEntering,h=t.onExited,g=o(t,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),y=function(e,t){var n=t.propTypes,o={},r={};return M()(e).forEach((function(e){var t=e[0],i=e[1];n[t]?o[t]=i:r[t]=i})),[o,r]}(g,S()),v=y[0],m=y[1],C=s&&!i&&"in";return e.createElement(S(),p({},v,{ref:this.setModalRef,show:s,containerClassName:Y(g,"open"),transition:i?Se:void 0,backdrop:n,backdropTransition:i?_e:void 0,backdropClassName:f()(Y(g,"backdrop"),r,C),onEntering:pe(d,this.handleEntering),onExited:pe(h,this.handleExited),onMouseUp:this.handleMouseUp}),e.createElement(a,p({},m,{style:p({},this.state.style,u),className:f()(l,C),onClick:!0===n?this.handleDialogClick:null,onMouseDownDialog:this.handleDialogBackdropMouseDown}),c))},r}(e.Component);Pe.propTypes=be,Pe.defaultProps=Oe,Pe.childContextTypes=Re,Pe.Body=re,Pe.Header=me,Pe.Title=Ee,Pe.Footer=ce,Pe.Dialog=ae,Pe.TRANSITION_DURATION=300,Pe.BACKDROP_TRANSITION_DURATION=150;const Te=$("modal",X([V,H],Pe));var De=r(5938),Ae=r.n(De),Ne={href:O().string,onClick:O().func,onKeyDown:O().func,disabled:O().bool,role:O().string,tabIndex:O().oneOfType([O().number,O().string]),componentClass:D()};function Ie(e){return!e||"#"===e.trim()}var Fe=function(t){function n(e,n){var o;return(o=t.call(this,e,n)||this).handleClick=o.handleClick.bind(u(u(o))),o.handleKeyDown=o.handleKeyDown.bind(u(u(o))),o}l(n,t);var r=n.prototype;return r.handleClick=function(e){var t=this.props,n=t.disabled,o=t.href,r=t.onClick;(n||Ie(o))&&e.preventDefault(),n?e.stopPropagation():r&&r(e)},r.handleKeyDown=function(e){" "===e.key&&(e.preventDefault(),this.handleClick(e))},r.render=function(){var t=this.props,n=t.componentClass,r=t.disabled,i=t.onKeyDown,s=o(t,["componentClass","disabled","onKeyDown"]);return Ie(s.href)&&(s.role=s.role||"button",s.href=s.href||"#"),r&&(s.tabIndex=-1,s.style=p({pointerEvents:"none"},s.style)),e.createElement(n,p({},s,{onClick:this.handleClick,onKeyDown:pe(this.handleKeyDown,i)}))},n}(e.Component);Fe.propTypes=Ne,Fe.defaultProps={componentClass:"a"};const xe=Fe;var Le={active:O().bool,disabled:O().bool,block:O().bool,onClick:O().func,componentClass:D(),href:O().string,type:O().oneOf(["button","reset","submit"])},Me=function(t){function n(){return t.apply(this,arguments)||this}l(n,t);var r=n.prototype;return r.renderAnchor=function(t,n){return e.createElement(xe,p({},t,{className:f()(n,t.disabled&&"disabled")}))},r.renderButton=function(t,n){var r=t.componentClass,i=o(t,["componentClass"]),s=r||"button";return e.createElement(s,p({},i,{type:i.type||"button",className:n}))},r.render=function(){var e,t=this.props,n=t.active,r=t.block,i=t.className,s=ee(o(t,["active","block","className"])),a=s[0],l=s[1],u=p({},Q(a),((e={active:n})[Y(a,"block")]=r,e)),c=f()(i,u);return l.href?this.renderAnchor(l,c):this.renderButton(l,c)},n}(e.Component);Me.propTypes=Le,Me.defaultProps={active:!1,block:!1,disabled:!1};const Ge=$("btn",X([V,H,W],q(Ae()({SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"}).concat([j,U,z]),j,Me)));function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function Ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,He(o.key),o)}}function He(e){var t=function(e,t){if("object"!=ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ke(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ke(t)?t:t+""}var We="http://127.0.0.1:5000",Be=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"fetchProfiles",value:function(){return fetch(We+"/profiles",{method:"GET"}).then((function(e){if(!e.ok)throw e;return e.json()})).then((function(e){return e}))}},{key:"fetchTables",value:function(e){var t=new FormData;return t.append("file",e),fetch(We+"/tables",{method:"POST",body:t}).then((function(e){if(!e.ok)throw e;return e.json()})).then((function(e){return e}))}},{key:"createProfile",value:function(e){var t,n={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}};return fetch(We+"/profiles",n).then((function(e){return t=e.ok,e.json()})).then((function(e){if(t)return e;throw e}))}},{key:"updateProfile",value:function(e){var t,n={method:"PUT",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}};return fetch(We+"/profiles/"+e.id,n).then((function(e){return t=e.ok,e.json()})).then((function(e){if(t)return e;throw new Error(e)}))}},{key:"deleteProfile",value:function(e){return fetch(We+"/profiles/"+e.id,{method:"DELETE"}).then((function(e){if(!e.ok)throw e;return e}))}},{key:"fetchConversion",value:function(e,t){var n,o=new FormData;return o.append("file",e),o.append("format",t),fetch(We+"/conversions",{method:"POST",body:o}).then((function(e){if(!e.ok)throw e;return n=e.headers.get("content-disposition").split(";").find((function(e){return e.includes("filename=")})).replace("filename=","").trim(),e.blob()})).then((function(e){var t=window.URL.createObjectURL(e),o=document.createElement("a");return o.href=t,o.download=n,document.body.appendChild(o),o.click(),o.remove(),"success"}))}},{key:"fetchDatasets",value:function(){return fetch(We+"/datasets",{method:"GET"}).then((function(e){if(!e.ok)throw e;return e.json()})).then((function(e){return e}))}},{key:"fetchOptions",value:function(){return fetch(We+"/options",{method:"GET"}).then((function(e){if(!e.ok)throw e;return e.json()})).then((function(e){return e}))}}],(t=null)&&Ve(e.prototype,t),n&&Ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const je=Be;function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function ze(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ke(o.key),o)}}function Ke(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ue(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}function Ye(e,t,n){return t=qe(t),function(e,t){if(t&&("object"==Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$e()?Reflect.construct(t,n||[],qe(e).constructor):t.apply(e,n))}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}function Xe(e,t){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xe(e,t)}var Qe=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ye(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(n,t),o=n,(r=[{key:"render",value:function(){var t=this.props,n=t.id,o=t.title,r=t.description,i=t.updateProfile,s=t.deleteProfile,a=t.downloadProfile,l=t.isAdmin;return e.createElement("li",{className:"list-group-item"},e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-6"},e.createElement("div",null,e.createElement("strong",null,o)),r),e.createElement("div",{className:"col-md-6 text-right"},e.createElement("code",{className:"mr-10"},n),e.createElement("span",{className:"btn btn-success btn-sm mr-10",disabled:!l,onClick:l?a:function(){}},"Download"),e.createElement("span",{className:"btn btn-primary btn-sm mr-10",disabled:!l,onClick:l?i:function(){}},"Edit"),e.createElement("span",{className:"btn btn-danger btn-sm",disabled:!l,onClick:l?s:function(){}},"Delete"))))}}])&&ze(o.prototype,r),i&&ze(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,r,i}(e.Component);Qe.propTypes={id:O().string,title:O().string,description:O().string,updateProfile:O().func,deleteProfile:O().func,downloadProfile:O().func,isAdmin:O().bool},Qe.defaultProps={isAdmin:!1};const Ze=Qe;function Je(e){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Je(e)}function et(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tt(o.key),o)}}function tt(e){var t=function(e,t){if("object"!=Je(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Je(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Je(t)?t:t+""}function nt(e,t,n){return t=rt(t),function(e,t){if(t&&("object"==Je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ot()?Reflect.construct(t,n||[],rt(e).constructor):t.apply(e,n))}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ot=function(){return!!e})()}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}var st=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),nt(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)}(n,t),o=n,(r=[{key:"render",value:function(){var t=this.props,n=t.profiles,o=t.updateProfile,r=t.deleteProfile,i=t.downloadProfile,s=t.isAdmin;return e.createElement("ul",{className:"list-group mb-20"},n.map((function(t,n){return e.createElement(Ze,{key:n,id:t.id,title:t.title,isAdmin:s,description:t.description,updateProfile:function(){return o(t)},deleteProfile:function(){return r(t)},downloadProfile:function(){return i(t)}})})))}}])&&et(o.prototype,r),i&&et(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,r,i}(e.Component);st.propTypes={profiles:O().array,updateProfile:O().func,deleteProfile:O().func,downloadProfile:O().func,isAdmin:O().bool},st.defaultProps={isAdmin:!1};const at=st;var lt=r(9973),ut=function(){};function ct(e,t){return void 0!==e[t]}function pt(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function dt(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ht.apply(null,arguments)}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}var gt=r(1345);function yt(t,n,o){void 0===o&&(o=[]);var r,i=t.displayName||t.name||"Component",s=!!(r=t)&&("function"!=typeof r||r.prototype&&r.prototype.isReactComponent),a=Object.keys(n),l=a.map(pt);!s&&o.length&&k()(!1);var u=function(r){var i,s;function u(){for(var e,t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];(e=r.call.apply(r,[this].concat(i))||this).handlers=Object.create(null),a.forEach((function(t){var o=n[t];e.handlers[o]=function(n){if(e.props[o]){var r;e._notifying=!0;for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];(r=e.props)[o].apply(r,[n].concat(s)),e._notifying=!1}e.unmounted||e.setState((function(e){var o,r=e.values;return{values:ht(Object.create(null),r,(o={},o[t]=n,o))}}))}})),o.length&&(e.attachRef=function(t){e.inner=t});var l=Object.create(null);return a.forEach((function(t){l[t]=e.props[pt(t)]})),e.state={values:l,prevProps:{}},e}s=r,(i=u).prototype=Object.create(s.prototype),i.prototype.constructor=i,ft(i,s);var c=u.prototype;return c.shouldComponentUpdate=function(){return!this._notifying},u.getDerivedStateFromProps=function(e,t){var n=t.values,o=t.prevProps,r={values:ht(Object.create(null),n),prevProps:{}};return a.forEach((function(t){r.prevProps[t]=e[t],!ct(e,t)&&ct(o,t)&&(r.values[t]=e[pt(t)])})),r},c.componentWillUnmount=function(){this.unmounted=!0},c.render=function(){var n=this,o=this.props,r=o.innerRef,i=dt(o,["innerRef"]);l.forEach((function(e){delete i[e]}));var s={};return a.forEach((function(e){var t=n.props[e];s[e]=void 0!==t?t:n.state.values[e]})),e.createElement(t,ht({},i,s,this.handlers,{ref:r||this.attachRef}))},u}(e.Component);(0,gt.polyfill)(u),u.displayName="Uncontrolled("+i+")",u.propTypes=ht({innerRef:function(){}},function(e){var t={};return Object.keys(e).forEach((function(e){t[pt(e)]=ut})),t}(n)),o.forEach((function(e){u.prototype[e]=function(){var t;return(t=this.inner)[e].apply(t,arguments)}}));var c=u;return e.forwardRef&&((c=e.forwardRef((function(t,n){return e.createElement(u,ht({},t,{innerRef:n,__source:{fileName:"/Users/jquense/src/uncontrollable/src/uncontrollable.js",lineNumber:128},__self:this}))}))).propTypes=u.propTypes),c.ControlledComponent=t,c.deferControlTo=function(e,t,o){return void 0===t&&(t={}),yt(e,ht({},n,t),o)},c}var vt=O().oneOfType([O().string,O().number]),mt={id:function(e){var t=null;if(!e.generateChildId){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];(t=vt.apply(void 0,[e].concat(o)))||e.id||(t=new Error("In order to properly initialize Tabs in a way that is accessible to assistive technologies (such as screen readers) an `id` or a `generateChildId` prop to TabContainer is required"))}return t},generateChildId:O().func,onSelect:O().func,activeKey:O().any},Ct={$bs_tabContainer:O().shape({activeKey:O().any,onSelect:O().func.isRequired,getTabId:O().func.isRequired,getPaneId:O().func.isRequired})},wt=function(t){function n(){return t.apply(this,arguments)||this}l(n,t);var r=n.prototype;return r.getChildContext=function(){var e=this.props,t=e.activeKey,n=e.onSelect,o=e.generateChildId,r=e.id,i=o||function(e,t){return r?r+"-"+t+"-"+e:null};return{$bs_tabContainer:{activeKey:t,onSelect:n,getTabId:function(e){return i(e,"tab")},getPaneId:function(e){return i(e,"pane")}}}},r.render=function(){var t=this.props,n=t.children,r=o(t,["children"]);return delete r.generateChildId,delete r.onSelect,delete r.activeKey,e.cloneElement(e.Children.only(n),r)},n}(e.Component);wt.propTypes=mt,wt.childContextTypes=Ct;const Et=yt(wt,{activeKey:"onSelect"});var bt={componentClass:D(),animation:O().oneOfType([O().bool,D()]),mountOnEnter:O().bool,unmountOnExit:O().bool},Ot={$bs_tabContainer:O().shape({activeKey:O().any})},Rt={$bs_tabContent:O().shape({bsClass:O().string,animation:O().oneOfType([O().bool,D()]),activeKey:O().any,mountOnEnter:O().bool,unmountOnExit:O().bool,onPaneEnter:O().func.isRequired,onPaneExited:O().func.isRequired,exiting:O().bool.isRequired})},St=function(t){function n(e,n){var o;return(o=t.call(this,e,n)||this).handlePaneEnter=o.handlePaneEnter.bind(u(u(o))),o.handlePaneExited=o.handlePaneExited.bind(u(u(o))),o.state={activeKey:null,activeChild:null},o}l(n,t);var r=n.prototype;return r.getChildContext=function(){var e=this.props,t=e.bsClass,n=e.animation,o=e.mountOnEnter,r=e.unmountOnExit,i=this.state.activeKey,s=this.getContainerActiveKey(),a=null!=i&&i!==s;return{$bs_tabContent:{bsClass:t,animation:n,activeKey:null!=i?i:s,mountOnEnter:o,unmountOnExit:r,onPaneEnter:this.handlePaneEnter,onPaneExited:this.handlePaneExited,exiting:a}}},r.UNSAFE_componentWillReceiveProps=function(e){!e.animation&&this.state.activeChild&&this.setState({activeKey:null,activeChild:null})},r.componentWillUnmount=function(){this.isUnmounted=!0},r.getContainerActiveKey=function(){var e=this.context.$bs_tabContainer;return e&&e.activeKey},r.handlePaneEnter=function(e,t){return!!this.props.animation&&(t===this.getContainerActiveKey()&&(this.setState({activeKey:t,activeChild:e}),!0))},r.handlePaneExited=function(e){this.isUnmounted||this.setState((function(t){return t.activeChild!==e?null:{activeKey:null,activeChild:null}}))},r.render=function(){var t=this.props,n=t.componentClass,r=t.className,i=te(o(t,["componentClass","className"]),["animation","mountOnEnter","unmountOnExit"]),s=i[0],a=i[1];return e.createElement(n,p({},a,{className:f()(r,Y(s,"content"))}))},n}(e.Component);St.propTypes=bt,St.defaultProps={componentClass:"div",animation:!0,mountOnEnter:!1,unmountOnExit:!1},St.contextTypes=Ot,St.childContextTypes=Rt;const _t=$("tab",St);r(583);var Pt={eventKey:O().any,animation:O().oneOfType([O().bool,D()]),id:O().string,"aria-labelledby":O().string,bsClass:O().string,onEnter:O().func,onEntering:O().func,onEntered:O().func,onExit:O().func,onExiting:O().func,onExited:O().func,mountOnEnter:O().bool,unmountOnExit:O().bool},Tt={$bs_tabContainer:O().shape({getTabId:O().func,getPaneId:O().func}),$bs_tabContent:O().shape({bsClass:O().string,animation:O().oneOfType([O().bool,D()]),activeKey:O().any,mountOnEnter:O().bool,unmountOnExit:O().bool,onPaneEnter:O().func.isRequired,onPaneExited:O().func.isRequired,exiting:O().bool.isRequired})},Dt={$bs_tabContainer:O().oneOf([null])},At=function(t){function n(e,n){var o;return(o=t.call(this,e,n)||this).handleEnter=o.handleEnter.bind(u(u(o))),o.handleExited=o.handleExited.bind(u(u(o))),o.in=!1,o}l(n,t);var r=n.prototype;return r.getChildContext=function(){return{$bs_tabContainer:null}},r.componentDidMount=function(){this.shouldBeIn()&&this.handleEnter()},r.componentDidUpdate=function(){this.in?this.shouldBeIn()||this.handleExited():this.shouldBeIn()&&this.handleEnter()},r.componentWillUnmount=function(){this.in&&this.handleExited()},r.getAnimation=function(){if(null!=this.props.animation)return this.props.animation;var e=this.context.$bs_tabContent;return e&&e.animation},r.handleEnter=function(){var e=this.context.$bs_tabContent;e&&(this.in=e.onPaneEnter(this,this.props.eventKey))},r.handleExited=function(){var e=this.context.$bs_tabContent;e&&(e.onPaneExited(this),this.in=!1)},r.isActive=function(){var e=this.context.$bs_tabContent,t=e&&e.activeKey;return this.props.eventKey===t},r.shouldBeIn=function(){return this.getAnimation()&&this.isActive()},r.render=function(){var t=this.props,n=t.eventKey,r=t.className,i=t.onEnter,s=t.onEntering,a=t.onEntered,l=t.onExit,u=t.onExiting,c=t.onExited,d=t.mountOnEnter,h=t.unmountOnExit,g=o(t,["eventKey","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit"]),y=this.context,v=y.$bs_tabContent,m=y.$bs_tabContainer,C=te(g,["animation"]),w=C[0],E=C[1],b=this.isActive(),O=this.getAnimation(),R=null!=d?d:v&&v.mountOnEnter,S=null!=h?h:v&&v.unmountOnExit;if(!b&&!O&&S)return null;var _=!0===O?x:O||null;v&&(w.bsClass=Y(v,"pane"));var P=p({},Q(w),{active:b});m&&(E.id=m.getPaneId(n),E["aria-labelledby"]=m.getTabId(n));var T=e.createElement("div",p({},E,{role:"tabpanel","aria-hidden":!b,className:f()(r,P)}));if(_){var D=v&&v.exiting;return e.createElement(_,{in:b&&!D,onEnter:pe(this.handleEnter,i),onEntering:s,onEntered:a,onExit:l,onExiting:u,onExited:pe(this.handleExited,c),mountOnEnter:R,unmountOnExit:S},T)}return T},n}(e.Component);At.propTypes=Pt,At.contextTypes=Tt,At.childContextTypes=Dt;const Nt=$("tab-pane",At);var It=p({},Nt.propTypes,{disabled:O().bool,title:O().node,tabClassName:O().string}),Ft=function(t){function n(){return t.apply(this,arguments)||this}return l(n,t),n.prototype.render=function(){var t=p({},this.props);return delete t.title,delete t.disabled,delete t.tabClassName,e.createElement(Nt,t)},n}(e.Component);Ft.propTypes=It,Ft.Container=Et,Ft.Content=_t,Ft.Pane=Nt;const xt=Ft;var Lt=r(8239),Mt=r.n(Lt),Gt=r(6545),kt=r.n(Gt),Vt=r(2816),Ht=r.n(Vt);const Wt={map:function(t,n,o){var r=0;return e.Children.map(t,(function(t){return e.isValidElement(t)?n.call(o,t,r++):t}))},forEach:function(t,n,o){var r=0;e.Children.forEach(t,(function(t){e.isValidElement(t)&&n.call(o,t,r++)}))},count:function(t){var n=0;return e.Children.forEach(t,(function(t){e.isValidElement(t)&&++n})),n},find:function(t,n,o){var r,i=0;return e.Children.forEach(t,(function(t){r||e.isValidElement(t)&&n.call(o,t,i++)&&(r=t)})),r},filter:function(t,n,o){var r=0,i=[];return e.Children.forEach(t,(function(t){e.isValidElement(t)&&n.call(o,t,r++)&&i.push(t)})),i},every:function(t,n,o){var r=0,i=!0;return e.Children.forEach(t,(function(t){i&&e.isValidElement(t)&&(n.call(o,t,r++)||(i=!1))})),i},some:function(t,n,o){var r=0,i=!1;return e.Children.forEach(t,(function(t){i||e.isValidElement(t)&&n.call(o,t,r++)&&(i=!0)})),i},toArray:function(t){var n=[];return e.Children.forEach(t,(function(t){e.isValidElement(t)&&n.push(t)})),n}};var Bt={activeKey:O().any,activeHref:O().string,stacked:O().bool,justified:Ht()(O().bool,(function(e){var t=e.justified,n=e.navbar;return t&&n?Error("justified navbar `Nav`s are not supported"):null})),onSelect:O().func,role:O().string,navbar:O().bool,pullRight:O().bool,pullLeft:O().bool},jt={$bs_navbar:O().shape({bsClass:O().string,onSelect:O().func}),$bs_tabContainer:O().shape({activeKey:O().any,onSelect:O().func.isRequired,getTabId:O().func.isRequired,getPaneId:O().func.isRequired})},Ut=function(t){function r(){return t.apply(this,arguments)||this}l(r,t);var i=r.prototype;return i.componentDidUpdate=function(){var e=this;if(this._needsRefocus){this._needsRefocus=!1;var t=this.props.children,o=this.getActiveProps(),r=o.activeKey,i=o.activeHref,s=Wt.find(t,(function(t){return e.isActive(t,r,i)})),a=Wt.toArray(t).indexOf(s),l=n.findDOMNode(this).children,u=l&&l[a];u&&u.firstChild&&u.firstChild.focus()}},i.getActiveProps=function(){var e=this.context.$bs_tabContainer;return e||this.props},i.getNextActiveChild=function(e){var t=this,n=this.props.children,o=Wt.filter(n,(function(e){return null!=e.props.eventKey&&!e.props.disabled})),r=this.getActiveProps(),i=r.activeKey,s=r.activeHref,a=Wt.find(n,(function(e){return t.isActive(e,i,s)})),l=o.indexOf(a);if(-1===l)return o[0];var u=l+e,c=o.length;return u>=c?u=0:u<0&&(u=c-1),o[u]},i.getTabProps=function(e,t,n,o,r){var i=this;if(!t&&"tablist"!==n)return null;var s=e.props,a=s.id,l=s["aria-controls"],u=s.eventKey,c=s.role,p=s.onKeyDown,d=s.tabIndex;return t&&(a=t.getTabId(u),l=t.getPaneId(u)),"tablist"===n&&(c=c||"tab",p=pe((function(e){return i.handleTabKeyDown(r,e)}),p),d=o?d:-1),{id:a,role:c,onKeyDown:p,"aria-controls":l,tabIndex:d}},i.handleTabKeyDown=function(e,t){var n;switch(t.keyCode){case kt().codes.left:case kt().codes.up:n=this.getNextActiveChild(-1);break;case kt().codes.right:case kt().codes.down:n=this.getNextActiveChild(1);break;default:return}t.preventDefault(),e&&n&&null!=n.props.eventKey&&e(n.props.eventKey),this._needsRefocus=!0},i.isActive=function(e,t,n){var o=e.props;return!!(o.active||null!=t&&o.eventKey===t||n&&o.href===n)||o.active},i.render=function(){var t,n=this,r=this.props,i=r.stacked,s=r.justified,a=r.onSelect,l=r.role,u=r.navbar,c=r.pullRight,d=r.pullLeft,h=r.className,g=r.children,y=o(r,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]),v=this.context.$bs_tabContainer,m=l||(v?"tablist":null),C=this.getActiveProps(),w=C.activeKey,E=C.activeHref;delete y.activeKey,delete y.activeHref;var b,O,R=ee(y),S=R[0],_=R[1],P=p({},Q(S),((t={})[Y(S,"stacked")]=i,t[Y(S,"justified")]=s,t)),T=null!=u?u:this.context.$bs_navbar;if(T){var D=this.context.$bs_navbar||{bsClass:"navbar"};P[Y(D,"nav")]=!0,O=Y(D,"right"),b=Y(D,"left")}else O="pull-right",b="pull-left";return P[O]=c,P[b]=d,e.createElement("ul",p({},_,{role:m,className:f()(h,P)}),Wt.map(g,(function(t){var o=n.isActive(t,w,E),r=pe(t.props.onSelect,a,T&&T.onSelect,v&&v.onSelect);return(0,e.cloneElement)(t,p({},n.getTabProps(t,v,m,o,r),{active:o,activeKey:w,activeHref:E,onSelect:r}))})))},r}(e.Component);Ut.propTypes=Bt,Ut.defaultProps={justified:!1,pullRight:!1,pullLeft:!1,stacked:!1},Ut.contextTypes=jt;const zt=$("nav",q(["tabs","pills"],Ut));var Kt={active:O().bool,disabled:O().bool,role:O().string,href:O().string,onClick:O().func,onSelect:O().func,eventKey:O().any},Yt=function(t){function n(e,n){var o;return(o=t.call(this,e,n)||this).handleClick=o.handleClick.bind(u(u(o))),o}l(n,t);var r=n.prototype;return r.handleClick=function(e){this.props.disabled?e.preventDefault():this.props.onSelect&&this.props.onSelect(this.props.eventKey,e)},r.render=function(){var t=this.props,n=t.active,r=t.disabled,i=t.onClick,s=t.className,a=t.style,l=o(t,["active","disabled","onClick","className","style"]);return delete l.onSelect,delete l.eventKey,delete l.activeKey,delete l.activeHref,l.role?"tab"===l.role&&(l["aria-selected"]=n):"#"===l.href&&(l.role="button"),e.createElement("li",{role:"presentation",className:f()(s,{active:n,disabled:r}),style:a},e.createElement(xe,p({},l,{disabled:r,onClick:pe(i,this.handleClick)})))},n}(e.Component);Yt.propTypes=Kt,Yt.defaultProps={active:!1,disabled:!1};const $t=Yt;var qt=Et.ControlledComponent,Xt={activeKey:O().any,bsStyle:O().oneOf(["tabs","pills"]),animation:O().oneOfType([O().bool,D()]),id:Mt()(O().oneOfType([O().string,O().number])),onSelect:O().func,mountOnEnter:O().bool,unmountOnExit:O().bool};var Qt=function(t){function n(){return t.apply(this,arguments)||this}l(n,t);var r=n.prototype;return r.renderTab=function(t){var n=t.props,o=n.title,r=n.eventKey,i=n.disabled,s=n.tabClassName;return null==o?null:e.createElement($t,{eventKey:r,disabled:i,className:s},o)},r.render=function(){var t=this.props,n=t.id,r=t.onSelect,i=t.animation,s=t.mountOnEnter,a=t.unmountOnExit,l=t.bsClass,u=t.className,c=t.style,d=t.children,h=t.activeKey,f=void 0===h?function(e){var t;return Wt.forEach(e,(function(e){null==t&&(t=e.props.eventKey)})),t}(d):h,g=o(t,["id","onSelect","animation","mountOnEnter","unmountOnExit","bsClass","className","style","children","activeKey"]);return e.createElement(qt,{id:n,activeKey:f,onSelect:r,className:u,style:c},e.createElement("div",null,e.createElement(zt,p({},g,{role:"tablist"}),Wt.map(d,this.renderTab)),e.createElement(_t,{bsClass:l,animation:i,mountOnEnter:s,unmountOnExit:a},d)))},n}(e.Component);Qt.propTypes=Xt,Qt.defaultProps={bsStyle:"tabs",animation:!0,mountOnEnter:!1,unmountOnExit:!1},$("tab",Qt);const Zt=yt(Qt,{activeKey:"onSelect"});var Jt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),en=Math.abs,tn=String.fromCharCode,nn=Object.assign;function on(e){return e.trim()}function rn(e,t,n){return e.replace(t,n)}function sn(e,t){return e.indexOf(t)}function an(e,t){return 0|e.charCodeAt(t)}function ln(e,t,n){return e.slice(t,n)}function un(e){return e.length}function cn(e){return e.length}function pn(e,t){return t.push(e),e}var dn=1,hn=1,fn=0,gn=0,yn=0,vn="";function mn(e,t,n,o,r,i,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:dn,column:hn,length:s,return:""}}function Cn(e,t){return nn(mn("",null,null,"",null,null,0),e,{length:-e.length},t)}function wn(){return yn=gn>0?an(vn,--gn):0,hn--,10===yn&&(hn=1,dn--),yn}function En(){return yn=gn<fn?an(vn,gn++):0,hn++,10===yn&&(hn=1,dn++),yn}function bn(){return an(vn,gn)}function On(){return gn}function Rn(e,t){return ln(vn,e,t)}function Sn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _n(e){return dn=hn=1,fn=un(vn=e),gn=0,[]}function Pn(e){return vn="",e}function Tn(e){return on(Rn(gn-1,Nn(91===e?e+2:40===e?e+1:e)))}function Dn(e){for(;(yn=bn())&&yn<33;)En();return Sn(e)>2||Sn(yn)>3?"":" "}function An(e,t){for(;--t&&En()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return Rn(e,On()+(t<6&&32==bn()&&32==En()))}function Nn(e){for(;En();)switch(yn){case e:return gn;case 34:case 39:34!==e&&39!==e&&Nn(yn);break;case 40:41===e&&Nn(e);break;case 92:En()}return gn}function In(e,t){for(;En()&&e+yn!==57&&(e+yn!==84||47!==bn()););return"/*"+Rn(t,gn-1)+"*"+tn(47===e?e:En())}function Fn(e){for(;!Sn(bn());)En();return Rn(e,gn)}var xn="-ms-",Ln="-moz-",Mn="-webkit-",Gn="comm",kn="rule",Vn="decl",Hn="@keyframes";function Wn(e,t){for(var n="",o=cn(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Bn(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Vn:return e.return=e.return||e.value;case Gn:return"";case Hn:return e.return=e.value+"{"+Wn(e.children,o)+"}";case kn:e.value=e.props.join(",")}return un(n=Wn(e.children,o))?e.return=e.value+"{"+n+"}":""}function jn(e){return Pn(Un("",null,null,null,[""],e=_n(e),0,[0],e))}function Un(e,t,n,o,r,i,s,a,l){for(var u=0,c=0,p=s,d=0,h=0,f=0,g=1,y=1,v=1,m=0,C="",w=r,E=i,b=o,O=C;y;)switch(f=m,m=En()){case 40:if(108!=f&&58==an(O,p-1)){-1!=sn(O+=rn(Tn(m),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:O+=Tn(m);break;case 9:case 10:case 13:case 32:O+=Dn(f);break;case 92:O+=An(On()-1,7);continue;case 47:switch(bn()){case 42:case 47:pn(Kn(In(En(),On()),t,n),l);break;default:O+="/"}break;case 123*g:a[u++]=un(O)*v;case 125*g:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+c:-1==v&&(O=rn(O,/\f/g,"")),h>0&&un(O)-p&&pn(h>32?Yn(O+";",o,n,p-1):Yn(rn(O," ","")+";",o,n,p-2),l);break;case 59:O+=";";default:if(pn(b=zn(O,t,n,u,c,r,a,C,w=[],E=[],p),i),123===m)if(0===c)Un(O,t,b,b,w,i,p,a,E);else switch(99===d&&110===an(O,3)?100:d){case 100:case 108:case 109:case 115:Un(e,b,b,o&&pn(zn(e,b,b,0,0,r,a,C,r,w=[],p),E),r,E,p,a,o?w:E);break;default:Un(O,b,b,b,[""],E,0,a,E)}}u=c=h=0,g=v=1,C=O="",p=s;break;case 58:p=1+un(O),h=f;default:if(g<1)if(123==m)--g;else if(125==m&&0==g++&&125==wn())continue;switch(O+=tn(m),m*g){case 38:v=c>0?1:(O+="\f",-1);break;case 44:a[u++]=(un(O)-1)*v,v=1;break;case 64:45===bn()&&(O+=Tn(En())),d=bn(),c=p=un(C=O+=Fn(On())),m++;break;case 45:45===f&&2==un(O)&&(g=0)}}return i}function zn(e,t,n,o,r,i,s,a,l,u,c){for(var p=r-1,d=0===r?i:[""],h=cn(d),f=0,g=0,y=0;f<o;++f)for(var v=0,m=ln(e,p+1,p=en(g=s[f])),C=e;v<h;++v)(C=on(g>0?d[v]+" "+m:rn(m,/&\f/g,d[v])))&&(l[y++]=C);return mn(e,t,n,0===r?kn:a,l,u,c)}function Kn(e,t,n){return mn(e,t,n,Gn,tn(yn),ln(e,2,-2),0)}function Yn(e,t,n,o){return mn(e,t,n,Vn,ln(e,0,o),ln(e,o+1,-1),o)}var $n=function(e,t,n){for(var o=0,r=0;o=r,r=bn(),38===o&&12===r&&(t[n]=1),!Sn(r);)En();return Rn(e,gn)},qn=function(e,t){return Pn(function(e,t){var n=-1,o=44;do{switch(Sn(o)){case 0:38===o&&12===bn()&&(t[n]=1),e[n]+=$n(gn-1,t,n);break;case 2:e[n]+=Tn(o);break;case 4:if(44===o){e[++n]=58===bn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=tn(o)}}while(o=En());return e}(_n(e),t))},Xn=new WeakMap,Qn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Xn.get(n))&&!o){Xn.set(e,!0);for(var r=[],i=qn(t,r),s=n.props,a=0,l=0;a<i.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=r[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},Zn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Jn(e,t){switch(function(e,t){return 45^an(e,0)?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}(e,t)){case 5103:return Mn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Mn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mn+e+Ln+e+xn+e+e;case 6828:case 4268:return Mn+e+xn+e+e;case 6165:return Mn+e+xn+"flex-"+e+e;case 5187:return Mn+e+rn(e,/(\w+).+(:[^]+)/,Mn+"box-$1$2"+xn+"flex-$1$2")+e;case 5443:return Mn+e+xn+"flex-item-"+rn(e,/flex-|-self/,"")+e;case 4675:return Mn+e+xn+"flex-line-pack"+rn(e,/align-content|flex-|-self/,"")+e;case 5548:return Mn+e+xn+rn(e,"shrink","negative")+e;case 5292:return Mn+e+xn+rn(e,"basis","preferred-size")+e;case 6060:return Mn+"box-"+rn(e,"-grow","")+Mn+e+xn+rn(e,"grow","positive")+e;case 4554:return Mn+rn(e,/([^-])(transform)/g,"$1"+Mn+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Mn+"$1"),/(image-set)/,Mn+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Mn+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Mn+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mn+e+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,Mn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(un(e)-1-t>6)switch(an(e,t+1)){case 109:if(45!==an(e,t+4))break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Mn+"$2-$3$1"+Ln+(108==an(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sn(e,"stretch")?Jn(rn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==an(e,t+1))break;case 6444:switch(an(e,un(e)-3-(~sn(e,"!important")&&10))){case 107:return rn(e,":",":"+Mn)+e;case 101:return rn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mn+(45===an(e,14)?"inline-":"")+"box$3$1"+Mn+"$2$3$1"+xn+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return Mn+e+xn+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mn+e+xn+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mn+e+xn+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mn+e+xn+e+e}return e}var eo=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Vn:e.return=Jn(e.value,e.length);break;case Hn:return Wn([Cn(e,{value:rn(e.value,"@","@"+Mn)})],o);case kn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([Cn(e,{props:[rn(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Wn([Cn(e,{props:[rn(t,/:(plac\w+)/,":"+Mn+"input-$1")]}),Cn(e,{props:[rn(t,/:(plac\w+)/,":-moz-$1")]}),Cn(e,{props:[rn(t,/:(plac\w+)/,xn+"input-$1")]})],o)}return""}))}}],to=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||eo,s={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,u,c,p,d=[Bn,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(u=[Qn,Zn].concat(i,d),c=cn(u),function(e,t,n,o){for(var r="",i=0;i<c;i++)r+=u[i](e,t,n,o)||"";return r});r=function(e,t,n,o){l=n,Wn(jn(e?e+"{"+t.styles+"}":t.styles),h),o&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Jt({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:r};return f.sheet.hydrate(a),f};function no(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}var oo=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ro=function(e,t,n){oo(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}};var io={animationIterationCount:1,aspectRatio: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,scale: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};function so(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ao=/[A-Z]|^ms/g,lo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uo=function(e){return 45===e.charCodeAt(1)},co=function(e){return null!=e&&"boolean"!=typeof e},po=so((function(e){return uo(e)?e:e.replace(ao,"-$&").toLowerCase()})),ho=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(lo,(function(e,t,n){return go={name:t,styles:n,next:go},t}))}return 1===io[e]||uo(e)||"number"!=typeof t||0===t?t:t+"px"};function fo(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return go={name:r.name,styles:r.styles,next:go},r.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)go={name:s.name,styles:s.styles,next:go},s=s.next;return i.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=fo(e,t,n[r])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?o+=i+"{"+t[a]+"}":co(a)&&(o+=po(i)+":"+ho(i,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=fo(e,t,s);switch(i){case"animation":case"animationName":o+=po(i)+":"+l+";";break;default:o+=i+"{"+l+"}"}}else for(var u=0;u<s.length;u++)co(s[u])&&(o+=po(i)+":"+ho(i,s[u])+";")}return o}(e,t,n);case"function":if(void 0!==e){var a=go,l=n(e);return go=a,fo(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var go,yo=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function vo(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";go=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=fo(n,t,i)):r+=i[0];for(var s=1;s<e.length;s++){if(r+=fo(n,t,e[s]),o)r+=i[s]}yo.lastIndex=0;for(var a,l="";null!==(a=yo.exec(r));)l+="-"+a[1];var u=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:u,styles:r,next:go}}var mo=!!t.useInsertionEffect&&t.useInsertionEffect,Co=mo||function(e){return e()},wo=(mo||e.useLayoutEffect,e.createContext("undefined"!=typeof HTMLElement?to({key:"css"}):null)),Eo=(wo.Provider,function(t){return(0,e.forwardRef)((function(n,o){var r=(0,e.useContext)(wo);return t(n,r,o)}))}),bo=e.createContext({});var Oo={}.hasOwnProperty,Ro="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",So=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return oo(t,n,o),Co((function(){return ro(t,n,o)})),null},_o=Eo((function(t,n,o){var r=t.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=t[Ro],s=[r],a="";"string"==typeof t.className?a=no(n.registered,s,t.className):null!=t.className&&(a=t.className+" ");var l=vo(s,void 0,e.useContext(bo));a+=n.key+"-"+l.name;var u={};for(var c in t)Oo.call(t,c)&&"css"!==c&&c!==Ro&&(u[c]=t[c]);return u.className=a,o&&(u.ref=o),e.createElement(e.Fragment,null,e.createElement(So,{cache:n,serialized:l,isStringTag:"string"==typeof i}),e.createElement(i,u))})),Po=(r(4146),function(t,n){var o=arguments;if(null==n||!Oo.call(n,"css"))return e.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=_o,i[1]=function(e,t){var n={};for(var o in t)Oo.call(t,o)&&(n[o]=t[o]);return n[Ro]=e,n}(t,n);for(var s=2;s<r;s++)i[s]=o[s];return e.createElement.apply(null,i)});function To(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vo(t)}var Do=function e(t){for(var n=t.length,o=0,r="";o<n;o++){var i=t[o];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=e(i);else for(var a in s="",i)i[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=i}s&&(r&&(r+=" "),r+=s)}}return r};var Ao=function(e){var t=e.cache,n=e.serializedArr;return Co((function(){for(var e=0;e<n.length;e++)ro(t,n[e],!1)})),null},No=Eo((function(t,n){var o=[],r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=vo(t,n.registered);return o.push(i),oo(n,i,!1),n.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e,t,n){var o=[],r=no(e,o,n);return o.length<2?n:r+t(o)}(n.registered,r,Do(t))},theme:e.useContext(bo)},s=t.children(i);return e.createElement(e.Fragment,null,e.createElement(Ao,{cache:n,serializedArr:o}),s)}));function Io(e,t){if(null==e)return{};var n,o,r=dt(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fo(e){return Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fo(e)}function xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e){var t=function(e,t){if("object"!=Fo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fo(t)?t:t+""}function Mo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Lo(o.key),o)}}function Go(e,t,n){return t&&Mo(e.prototype,t),n&&Mo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ko(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ft(e,t)}function Vo(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jo(e)}function Uo(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=jo(e);if(t){var r=jo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Uo(this,n)}}var Ko=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Yo=function(){};function $o(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function qo(e,t,n){var o=[n];if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&o.push("".concat($o(e,r)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Xo=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Fo(e)&&null!==e?[e]:[];var t},Qo=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Bo({},Io(e,Ko))};function Zo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Jo(e){return Zo(e)?window.pageYOffset:e.scrollTop}function er(e,t){Zo(e)?window.scrollTo(0,t):e.scrollTop=t}function tr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yo,r=Jo(e),i=t-r,s=0;!function t(){var a,l=i*((a=(a=s+=10)/n-1)*a*a+1)+r;er(e,l),s<n?window.requestAnimationFrame(t):o(e)}()}function nr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var or=!1,rr={get passive(){return or=!0}},ir="undefined"!=typeof window?window:{};ir.addEventListener&&ir.removeEventListener&&(ir.addEventListener("p",Yo,rr),ir.removeEventListener("p",Yo,!1));var sr=or;function ar(e){return null!=e}function lr(e,t,n){return e?t:n}function ur(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,h=p.height,f=p.top,g=n.offsetParent.getBoundingClientRect().top,y=window.innerHeight,v=Jo(l),m=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),w=g-C,E=y-f,b=w+v,O=c-v-f,R=d-y+v+m,S=v+f-C,_=160;switch(r){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(O>=h&&!s)return i&&tr(l,R,_),{placement:"bottom",maxHeight:t};if(!s&&O>=o||s&&E>=o)return i&&tr(l,R,_),{placement:"bottom",maxHeight:s?E-m:O-m};if("auto"===r||s){var P=t,T=s?w:b;return T>=o&&(P=Math.min(T-m-a.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===r)return i&&er(l,R),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(b>=h&&!s)return i&&tr(l,S,_),{placement:"top",maxHeight:t};if(!s&&b>=o||s&&w>=o){var D=t;return(!s&&b>=o||s&&w>=o)&&(D=s?w-C:b-C),i&&tr(l,S,_),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}var cr=function(e){return"auto"===e?"bottom":e},pr=(0,e.createContext)({getPortalPlacement:null}),dr=function(e){ko(n,e);var t=zo(n);function n(){var e;xo(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,o=n.minMenuHeight,r=n.maxMenuHeight,i=n.menuPlacement,s=n.menuPosition,a=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===s,c=ur({maxHeight:r,menuEl:t,minHeight:o,placement:i,shouldScroll:a&&!u,isFixedPosition:u,theme:l}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||cr(t);return Bo(Bo({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Go(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);dr.contextType=pr;var hr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},fr=hr,gr=hr,yr=function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Po("div",ht({css:r("noOptionsMessage",e),className:o({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};yr.defaultProps={children:"No options"};var vr=function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Po("div",ht({css:r("loadingMessage",e),className:o({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};vr.defaultProps={children:"Loading..."};var mr,Cr=function(e){ko(o,e);var t=zo(o);function o(){var e;xo(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==cr(e.props.menuPlacement)&&e.setState({placement:n})},e}return Go(o,[{key:"render",value:function(){var e=this.props,t=e.appendTo,o=e.children,r=e.className,i=e.controlElement,s=e.cx,a=e.innerProps,l=e.menuPlacement,u=e.menuPosition,c=e.getStyles,p="fixed"===u;if(!t&&!p||!i)return null;var d=this.state.placement||cr(l),h=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),f=p?0:window.pageYOffset,g=h[d]+f,y=Po("div",ht({css:c("menuPortal",{offset:g,position:u,rect:h}),className:s({"menu-portal":!0},r)},a),o);return Po(pr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,n.createPortal)(y,t):y)}}]),o}(e.Component),wr=["size"];var Er,br,Or={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Rr=function(e){var t=e.size,n=Io(e,wr);return Po("svg",ht({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Or},n))},Sr=function(e){return Po(Rr,ht({size:20},e),Po("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},_r=function(e){return Po(Rr,ht({size:20},e),Po("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Pr=function(e){var t=e.isFocused,n=e.theme,o=n.spacing.baseUnit,r=n.colors;return{label:"indicatorContainer",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*o,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},Tr=Pr,Dr=Pr,Ar=function(){var e=To.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(mr||(Er=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],br||(br=Er.slice(0)),mr=Object.freeze(Object.defineProperties(Er,{raw:{value:Object.freeze(br)}})))),Nr=function(e){var t=e.delay,n=e.offset;return Po("span",{css:To({animation:"".concat(Ar," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ir=function(e){var t=e.className,n=e.cx,o=e.getStyles,r=e.innerProps,i=e.isRtl;return Po("div",ht({css:o("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},r),Po(Nr,{delay:0,offset:i}),Po(Nr,{delay:160,offset:!0}),Po(Nr,{delay:320,offset:!i}))};Ir.defaultProps={size:4};var Fr=["data"],xr=["innerRef","isDisabled","isHidden","inputClassName"],Lr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mr={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Bo({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Lr)},Gr=function(e){return Bo({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Lr)},kr=function(e){var t=e.children,n=e.innerProps;return Po("div",n,t)};var Vr={ClearIndicator:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Po("div",ht({css:r("clearIndicator",e),className:o({indicator:!0,"clear-indicator":!0},n)},i),t||Po(Sr,null))},Control:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.className,i=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return Po("div",ht({ref:a,css:o("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":s,"control--menu-is-open":u},r)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Po("div",ht({css:r("dropdownIndicator",e),className:o({indicator:!0,"dropdown-indicator":!0},n)},i),t||Po(_r,null))},DownChevron:_r,CrossIcon:Sr,Group:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return Po("div",ht({css:r("group",e),className:o({group:!0},n)},a),Po(i,ht({},s,{selectProps:c,theme:u,getStyles:r,cx:o}),l),Po("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,o=e.className,r=Qo(e);r.data;var i=Io(r,Fr);return Po("div",ht({css:t("groupHeading",e),className:n({"group-heading":!0},o)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,o=e.cx,r=e.innerProps,i=e.getStyles;return Po("div",ht({css:i("indicatorsContainer",e),className:o({indicators:!0},n)},r),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,o=e.getStyles,r=e.innerProps;return Po("span",ht({},r,{css:o("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,o=e.getStyles,r=e.value,i=Qo(e),s=i.innerRef,a=i.isDisabled,l=i.isHidden,u=i.inputClassName,c=Io(i,xr);return Po("div",{className:n({"input-container":!0},t),css:o("input",e),"data-value":r||""},Po("input",ht({className:n({input:!0},u),ref:s,style:Gr(l),disabled:a},c)))},LoadingIndicator:Ir,Menu:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerRef,s=e.innerProps;return Po("div",ht({css:r("menu",e),className:o({menu:!0},n),ref:i},s),t)},MenuList:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps,s=e.innerRef,a=e.isMulti;return Po("div",ht({css:r("menuList",e),className:o({"menu-list":!0,"menu-list--is-multi":a},n),ref:s},i),t)},MenuPortal:Cr,LoadingMessage:vr,NoOptionsMessage:yr,MultiValue:function(e){var t=e.children,n=e.className,o=e.components,r=e.cx,i=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,p=o.Container,d=o.Label,h=o.Remove;return Po(No,null,(function(o){var f=o.css,g=o.cx;return Po(p,{data:i,innerProps:Bo({className:g(f(s("multiValue",e)),r({"multi-value":!0,"multi-value--is-disabled":l},n))},a),selectProps:c},Po(d,{data:i,innerProps:{className:g(f(s("multiValueLabel",e)),r({"multi-value__label":!0},n))},selectProps:c},t),Po(h,{data:i,innerProps:Bo({className:g(f(s("multiValueRemove",e)),r({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},u),selectProps:c}))}))},MultiValueContainer:kr,MultiValueLabel:kr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Po("div",ht({role:"button"},n),t||Po(Sr,{size:14}))},Option:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,u=e.innerProps;return Po("div",ht({css:r("option",e),className:o({option:!0,"option--is-disabled":i,"option--is-focused":s,"option--is-selected":a},n),ref:l,"aria-disabled":i},u),t)},Placeholder:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps;return Po("div",ht({css:r("placeholder",e),className:o({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.innerProps,s=e.isDisabled,a=e.isRtl;return Po("div",ht({css:r("container",e),className:o({"--is-disabled":s,"--is-rtl":a},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,o=e.cx,r=e.getStyles,i=e.isDisabled,s=e.innerProps;return Po("div",ht({css:r("singleValue",e),className:o({"single-value":!0,"single-value--is-disabled":i},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,o=e.cx,r=e.innerProps,i=e.isMulti,s=e.getStyles,a=e.hasValue;return Po("div",ht({css:s("valueContainer",e),className:o({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a},n)},r),t)}};function Hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Wr(e,t){if(e){if("string"==typeof e)return Hr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hr(e,t):void 0}}function Br(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(e,t)||Wr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var jr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ur(t){var n=t.defaultInputValue,o=void 0===n?"":n,r=t.defaultMenuIsOpen,i=void 0!==r&&r,s=t.defaultValue,a=void 0===s?null:s,l=t.inputValue,u=t.menuIsOpen,c=t.onChange,p=t.onInputChange,d=t.onMenuClose,h=t.onMenuOpen,f=t.value,g=Io(t,jr),y=Br((0,e.useState)(void 0!==l?l:o),2),v=y[0],m=y[1],C=Br((0,e.useState)(void 0!==u?u:i),2),w=C[0],E=C[1],b=Br((0,e.useState)(void 0!==f?f:a),2),O=b[0],R=b[1],S=(0,e.useCallback)((function(e,t){"function"==typeof c&&c(e,t),R(e)}),[c]),_=(0,e.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),m(void 0!==n?n:e)}),[p]),P=(0,e.useCallback)((function(){"function"==typeof h&&h(),E(!0)}),[h]),T=(0,e.useCallback)((function(){"function"==typeof d&&d(),E(!1)}),[d]),D=void 0!==l?l:v,A=void 0!==u?u:w,N=void 0!==f?f:O;return Bo(Bo({},g),{},{inputValue:D,menuIsOpen:A,onChange:S,onInputChange:_,onMenuClose:T,onMenuOpen:P,value:N})}function zr(e){return function(e){if(Array.isArray(e))return Hr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Kr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],r=t[n],!(o===r||Kr(o)&&Kr(r)))return!1;var o,r;return!0}const $r=function(e,t){var n;void 0===t&&(t=Yr);var o,r=[],i=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i&&n===this&&t(s,r)||(o=e.apply(this,s),i=!0,n=this,r=s),o}};for(var qr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Xr=function(e){return Po("span",ht({css:qr},e))},Qr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,s=e.selectValue,a=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(u(s,n),".");if("menu"===t){var c=a?" disabled":"",p="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(p,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Zr=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=l.ariaLiveMessages,p=l.getOptionLabel,d=l.inputValue,h=l.isMulti,f=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,v=l.options,m=l.screenReaderStatus,C=l.tabSelectsValue,w=l["aria-label"],E=l["aria-live"],b=(0,e.useMemo)((function(){return Bo(Bo({},Qr),c||{})}),[c]),O=(0,e.useMemo)((function(){var e,t="";if(n&&b.onChange){var o=n.option,r=n.options,i=n.removedValue,s=n.removedValues,l=n.value,u=i||o||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=r||s||void 0,h=d?d.map(p):[],g=Bo({isDisabled:u&&f(u,a),label:c,labels:h},n);t=b.onChange(g)}return t}),[n,b,f,a,p]),R=(0,e.useMemo)((function(){var e="",t=o||r,n=!!(o&&a&&a.includes(o));if(t&&b.onFocus){var i={focused:t,label:p(t),isDisabled:f(t,a),isSelected:n,options:v,context:t===o?"menu":"value",selectValue:a};e=b.onFocus(i)}return e}),[o,r,p,f,b,v,a]),S=(0,e.useMemo)((function(){var e="";if(y&&v.length&&b.onFilter){var t=m({count:i.length});e=b.onFilter({inputValue:d,resultsMessage:t})}return e}),[i,d,y,b,v,m]),_=(0,e.useMemo)((function(){var e="";if(b.guidance){var t=r?"value":y?"menu":"input";e=b.guidance({"aria-label":w,context:t,isDisabled:o&&f(o,a),isMulti:h,isSearchable:g,tabSelectsValue:C})}return e}),[w,o,r,h,f,g,y,b,a,C]),P="".concat(R," ").concat(S," ").concat(_),T=Po(e.Fragment,null,Po("span",{id:"aria-selection"},O),Po("span",{id:"aria-context"},P)),D="initial-input-focus"===(null==n?void 0:n.action);return Po(e.Fragment,null,Po(Xr,{id:u},D&&T),Po(Xr,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text"},s&&!D&&T))},Jr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ei=new RegExp("["+Jr.map((function(e){return e.letters})).join("")+"]","g"),ti={},ni=0;ni<Jr.length;ni++)for(var oi=Jr[ni],ri=0;ri<oi.letters.length;ri++)ti[oi.letters[ri]]=oi.base;var ii=function(e){return e.replace(ei,(function(e){return ti[e]}))},si=$r(ii),ai=function(e){return e.replace(/^\s+|\s+$/g,"")},li=function(e){return"".concat(e.label," ").concat(e.value)},ui=["innerRef"];function ci(e){var t=e.innerRef,n=Io(e,ui);return Po("input",ht({ref:t},n,{css:To({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pi=["boxSizing","height","overflow","paddingRight","position"],di={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hi(e){e.preventDefault()}function fi(e){e.stopPropagation()}function gi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function yi(){return"ontouchstart"in window||navigator.maxTouchPoints}var vi=!("undefined"==typeof window||!window.document||!window.document.createElement),mi=0,Ci={capture:!1,passive:!1};var wi=function(){return document.activeElement&&document.activeElement.blur()},Ei={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function bi(t){var n=t.children,o=t.lockEnabled,r=t.captureEnabled,i=function(t){var n=t.isEnabled,o=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,s=t.onTopLeave,a=(0,e.useRef)(!1),l=(0,e.useRef)(!1),u=(0,e.useRef)(0),c=(0,e.useRef)(null),p=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,p=n.scrollHeight,d=n.clientHeight,h=c.current,f=t>0,g=p-d-u,y=!1;g>t&&a.current&&(r&&r(e),a.current=!1),f&&l.current&&(s&&s(e),l.current=!1),f&&t>g?(o&&!a.current&&o(e),h.scrollTop=p,y=!0,a.current=!0):!f&&-t>u&&(i&&!l.current&&i(e),h.scrollTop=0,y=!0,l.current=!0),y&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[o,r,i,s]),d=(0,e.useCallback)((function(e){p(e,e.deltaY)}),[p]),h=(0,e.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),f=(0,e.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),g=(0,e.useCallback)((function(e){if(e){var t=!!sr&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}}),[f,h,d]),y=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))}),[f,h,d]);return(0,e.useEffect)((function(){if(n){var e=c.current;return g(e),function(){y(e)}}}),[n,g,y]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),s=function(t){var n=t.isEnabled,o=t.accountForScrollbars,r=void 0===o||o,i=(0,e.useRef)({}),s=(0,e.useRef)(null),a=(0,e.useCallback)((function(e){if(vi){var t=document.body,n=t&&t.style;if(r&&pi.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&mi<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(di).forEach((function(e){var t=di[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&yi()&&(t.addEventListener("touchmove",hi,Ci),e&&(e.addEventListener("touchstart",gi,Ci),e.addEventListener("touchmove",fi,Ci))),mi+=1}}),[r]),l=(0,e.useCallback)((function(e){if(vi){var t=document.body,n=t&&t.style;mi=Math.max(mi-1,0),r&&mi<1&&pi.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&yi()&&(t.removeEventListener("touchmove",hi,Ci),e&&(e.removeEventListener("touchstart",gi,Ci),e.removeEventListener("touchmove",fi,Ci)))}}),[r]);return(0,e.useEffect)((function(){if(n){var e=s.current;return a(e),function(){l(e)}}}),[n,a,l]),function(e){s.current=e}}({isEnabled:o});return Po(e.Fragment,null,o&&Po("div",{onClick:wi,css:Ei}),n((function(e){i(e),s(e)})))}var Oi=function(e){return e.label},Ri=function(e){return e.value},Si={clearIndicator:Dr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,o=e.theme,r=o.colors,i=o.borderRadius,s=o.spacing;return{label:"control",alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:n?r.primary:r.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(r.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?r.primary:r.neutral30}}},dropdownIndicator:Tr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing.baseUnit,r=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*o,marginTop:2*o,width:1}},input:function(e){var t=e.isDisabled,n=e.value,o=e.theme,r=o.spacing,i=o.colors;return Bo({margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Mr)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,o=e.theme,r=o.colors,i=o.spacing.baseUnit;return{label:"loadingIndicator",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:gr,menu:function(e){var t,n=e.placement,o=e.theme,r=o.borderRadius,i=o.spacing,s=o.colors;return Vo(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Vo(t,"backgroundColor",s.neutral0),Vo(t,"borderRadius",r),Vo(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Vo(t,"marginBottom",i.menuGutter),Vo(t,"marginTop",i.menuGutter),Vo(t,"position","absolute"),Vo(t,"width","100%"),Vo(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,o=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:o/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,o=t.colors,r=e.cropWithEllipsis;return{borderRadius:n/2,color:o.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,o=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:o/2,backgroundColor:e.isFocused?r.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:fr,option:function(e){var t=e.isDisabled,n=e.isFocused,o=e.isSelected,r=e.theme,i=r.spacing,s=r.colors;return{label:"option",backgroundColor:o?s.primary:n?s.primary25:"transparent",color:t?s.neutral20:o?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:o?s.primary:s.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing,r=n.colors;return{label:"singleValue",color:t?r.neutral40:r.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,o=e.hasValue,r=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&o&&r?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var _i,Pi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ti={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nr(),captureMenuScroll:!nr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Bo({ignoreCase:!0,ignoreAccents:!0,stringify:li,trim:!0,matchFrom:"any"},_i),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,l=s?ai(t):t,u=s?ai(i(e)):i(e);return o&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=si(l),u=ii(u)),"start"===a?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:Oi,getOptionValue:Ri,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Di(e,t,n,o){return{type:"option",data:t,isDisabled:Li(e,t,n),isSelected:Mi(e,t,n),label:Fi(e,t),value:xi(e,t),index:o}}function Ai(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return Di(e,n,t,o)})).filter((function(t){return Ii(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Di(e,n,t,o);return Ii(e,i)?i:void 0})).filter(ar)}function Ni(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,zr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ii(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,s=t.label,a=t.value;return(!ki(e)||!i)&&Gi(e,{label:s,value:a,data:r},o)}var Fi=function(e,t){return e.getOptionLabel(t)},xi=function(e,t){return e.getOptionValue(t)};function Li(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Mi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=xi(e,t);return n.some((function(t){return xi(e,t)===o}))}function Gi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ki=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vi=1,Hi=function(t){ko(o,t);var n=zo(o);function o(e){var t;return xo(this,o),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e,n,o){var r=t.props,i=r.closeMenuOnSelect,s=r.isMulti,a=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,s=t.state.selectValue,a=r&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(a){var u=t.getOptionValue(e);t.setValue(s.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(zr(s),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),s=lr(n,i,i[0]||null);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(lr(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=lr(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return qo.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Fi(t.props,e)},t.getOptionValue=function(e){return xi(t.props,e)},t.getStyles=function(e,n){var o=Si[e](n);o.boxSizing="border-box";var r=t.props.styles[e];return r?r(o,n):o},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Bo(Bo({},Vr),e.components);var e},t.buildCategorizedOptions=function(){return Ai(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ni(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Bo({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,r=n.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Zo(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var r=Math.abs(o.clientX-t.initialTouchX),i=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=r>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return ki(t.props)},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,s=n.inputValue,a=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,h=t.state,f=h.focusedOption,g=h.focusedValue,y=h.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||s)return;t.focusValue("previous");break;case"ArrowRight":if(!o||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(g)t.removeValue(g);else{if(!r)return;o?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!p||!f||d&&t.isOptionSelected(f,y))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):a&&i&&t.clearValue();break;case" ":if(s)return;if(!u){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Vi),t.state.selectValue=Xo(e.value),t}return Go(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,o,r,i,s=this.props,a=s.isDisabled,l=s.menuIsOpen,u=this.state.isFocused;(u&&!a&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,o=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=n.offsetHeight/3,r.bottom+i>o.bottom?er(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i<o.top&&er(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(o[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(s=r+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Pi):Bo(Bo({},Pi),this.props.theme):Pi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getValue,r=this.selectOption,i=this.setValue,s=this.props,a=s.isMulti,l=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getValue:o,hasValue:this.hasValue(),isMulti:a,isRtl:l,options:u,selectOption:r,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Li(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Mi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Gi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,o=t.isSearchable,r=t.inputId,i=t.inputValue,s=t.tabIndex,a=t.form,l=t.menuIsOpen,u=this.getComponents().Input,c=this.state,p=c.inputIsHidden,d=c.ariaSelection,h=this.commonProps,f=r||this.getElementId("input"),g=Bo(Bo({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!o&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?e.createElement(u,ht({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:i},g)):e.createElement(ci,ht({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yo,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),o=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,s=n.MultiValueRemove,a=n.SingleValue,l=n.Placeholder,u=this.commonProps,c=this.props,p=c.controlShouldRenderValue,d=c.isDisabled,h=c.isMulti,f=c.inputValue,g=c.placeholder,y=this.state,v=y.selectValue,m=y.focusedValue,C=y.isFocused;if(!this.hasValue()||!p)return f?null:e.createElement(l,ht({},u,{key:"placeholder",isDisabled:d,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(n,a){var l=n===m,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(o,ht({},u,{components:{Container:r,Label:i,Remove:s},isFocused:l,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),t.formatOptionLabel(n,"value"))}));if(f)return null;var w=v[0];return e.createElement(a,ht({},u,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ht({},n,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,s=this.state.isFocused;if(!t||!i)return null;return e.createElement(t,ht({},n,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,o=t.IndicatorSeparator;if(!n||!o)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return e.createElement(o,ht({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ht({},n,{innerProps:i,isDisabled:o,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),o=n.Group,r=n.GroupHeading,i=n.Menu,s=n.MenuList,a=n.MenuPortal,l=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,p=this.commonProps,d=this.state.focusedOption,h=this.props,f=h.captureMenuScroll,g=h.inputValue,y=h.isLoading,v=h.loadingMessage,m=h.minMenuHeight,C=h.maxMenuHeight,w=h.menuIsOpen,E=h.menuPlacement,b=h.menuPosition,O=h.menuPortalTarget,R=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,_=h.noOptionsMessage,P=h.onMenuScrollToTop,T=h.onMenuScrollToBottom;if(!w)return null;var D,A=function(n,o){var r=n.type,i=n.data,s=n.isDisabled,a=n.isSelected,l=n.label,u=n.value,h=d===i,f=s?void 0:function(){return t.onOptionHover(i)},g=s?void 0:function(){return t.selectOption(i)},y="".concat(t.getElementId("option"),"-").concat(o),v={id:y,onClick:g,onMouseMove:f,onMouseOver:f,tabIndex:-1};return e.createElement(c,ht({},p,{innerProps:v,data:i,isDisabled:s,isSelected:a,key:y,label:l,type:r,value:u,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,s=n.options,a=n.index,l="".concat(t.getElementId("group"),"-").concat(a),u="".concat(l,"-heading");return e.createElement(o,ht({},p,{key:l,data:i,options:s,Heading:r,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return A(e,"".concat(a,"-").concat(e.index))})))}if("option"===n.type)return A(n,"".concat(n.index))}));else if(y){var N=v({inputValue:g});if(null===N)return null;D=e.createElement(l,p,N)}else{var I=_({inputValue:g});if(null===I)return null;D=e.createElement(u,p,I)}var F={minMenuHeight:m,maxMenuHeight:C,menuPlacement:E,menuPosition:b,menuShouldScrollIntoView:S},x=e.createElement(dr,ht({},p,F),(function(n){var o=n.ref,r=n.placerProps,a=r.placement,l=r.maxHeight;return e.createElement(i,ht({},p,F,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:y,placement:a}),e.createElement(bi,{captureEnabled:f,onTopArrive:P,onBottomArrive:T,lockEnabled:R},(function(n){return e.createElement(s,ht({},p,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:y,maxHeight:l,focusedOption:d}),D)})))}));return O||"fixed"===b?e.createElement(a,ht({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:E,menuPosition:b}),x):x}},{key:"renderFormField",value:function(){var t=this,n=this.props,o=n.delimiter,r=n.isDisabled,i=n.isMulti,s=n.name,a=this.state.selectValue;if(s&&!r){if(i){if(o){var l=a.map((function(e){return t.getOptionValue(e)})).join(o);return e.createElement("input",{name:s,type:"hidden",value:l})}var u=a.length>0?a.map((function(n,o){return e.createElement("input",{key:"i-".concat(o),name:s,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:s,type:"hidden"});return e.createElement("div",null,u)}var c=a[0]?this.getOptionValue(a[0]):"";return e.createElement("input",{name:s,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,o=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,s=n.isFocused,a=n.selectValue,l=this.getFocusableOptions();return e.createElement(Zr,ht({},t,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:r,focusedValue:i,isFocused:s,selectValue:a,focusableOptions:l}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,o=t.IndicatorsContainer,r=t.SelectContainer,i=t.ValueContainer,s=this.props,a=s.className,l=s.id,u=s.isDisabled,c=s.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return e.createElement(r,ht({},d,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),e.createElement(n,ht({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:c}),e.createElement(i,ht({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(o,ht({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=e.options,u=e.value,c=e.menuIsOpen,p=e.inputValue,d=e.isMulti,h=Xo(u),f={};if(n&&(u!==n.value||l!==n.options||c!==n.menuIsOpen||p!==n.inputValue)){var g=c?function(e,t){return Ni(Ai(e,t))}(e,h):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,h):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);f={selectValue:h,focusedOption:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var m=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,w=s&&a;return s&&!w&&(C={value:lr(d,h,h[0]||null),options:h,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),Bo(Bo(Bo({},f),m),{},{prevProps:e,ariaSelection:C,prevWasFocused:w})}}]),o}(e.Component);Hi.defaultProps=Ti;const Wi=(0,e.forwardRef)((function(t,n){var o=Ur(t);return e.createElement(Hi,ht({ref:n},o))}));function Bi(e){return e.data?e.matchTables?[e.data.tables[0]]:e.data.tables:[]}function ji(e){var t=Bi(e);return t.length>0?t.reduce((function(e,t,n){var o=t.columns.map((function(e,t){return Object.assign({},e,{label:"Input table #".concat(n," Column #").concat(t),value:{tableIndex:n,columnIndex:t}})}));return e.concat(o)}),[]):[]}function Ui(e){return e.data?Object.keys(e.data.metadata).map((function(t){return{key:t,label:t,value:e.data.metadata[t]}})):[]}function zi(e){var t=Bi(e);return t.length>0?t.reduce((function(e,t,n){return void 0!==t.metadata?e.concat(Object.keys(t.metadata).map((function(e){return{key:e,tableIndex:n,value:t.metadata[e],label:"Input table #".concat(n," ").concat(e)}}))):e}),[]):[]}var Ki=function(t){var n=t.optionKey,o=t.value,r=t.values,i=t.updateHeader,s=r.indexOf(o);return r=r.map((function(e){return{value:e,label:e}})),-1===s&&(o&&r.unshift({value:o,label:o}),s=0),e.createElement("div",{className:"form-group row"},e.createElement("label",{htmlFor:n,className:"col-sm-4 col-form-label"},n),e.createElement("div",{className:"col-sm-8"},e.createElement(Wi,{options:r,defaultValue:r[s],onChange:function(e){i(n,e.value)}})))};Ki.propTypes={optionKey:O().string,value:O().string,values:O().array,updateHeader:O().func};const Yi=Ki;var $i=function(t){var n=t.column,o=t.onChange,r=function(e,t){return void 0===e||"number"!=typeof e[t]||isNaN(e[t])?null:e[t]},i=function(e,t){var n=r(e,t);return null===n?"":n};return e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-6"},e.createElement("input",{type:"number",className:"form-control input-sm",onChange:function(e){return o({tableIndex:parseInt(e.target.value),columnIndex:r(n,"columnIndex")})},value:i(n,"tableIndex")}),e.createElement("small",null,"Table Index")),e.createElement("div",{className:"col-md-6"},e.createElement("input",{type:"number",className:"form-control input-sm",onChange:function(e){return o({tableIndex:r(n,"tableIndex"),columnIndex:parseInt(e.target.value)})},value:i(n,"columnIndex")}),e.createElement("small",null,"Column Index")))};$i.propTypes={column:O().object,onChange:O().func};const qi=$i;var Xi=function(t){var n=t.column,o=t.columnList,r=t.onChange;return e.createElement("select",{className:"form-control input-sm",value:function(e){return!!e&&o.reduce((function(t,n,o){return n.value.tableIndex==e.tableIndex&&n.value.columnIndex==e.columnIndex?o:t}),!1)}(n),onChange:function(e){var t=e.target.value;r(!!t&&o[t].value)}},e.createElement("option",{value:""},"---"),o.map((function(t,n){return e.createElement("option",{value:n,key:n},t.label)})))};Xi.propTypes={column:O().object,columnList:O().array,onChange:O().func};const Qi=Xi;var Zi=function(t){var n=t.value,o=t.onChange;return e.createElement("select",{className:"form-control input-sm",value:n,onChange:function(e){return o(e.target.value)}},e.createElement("option",{value:"+"},"+"),e.createElement("option",{value:"-"},"-"),e.createElement("option",{value:"*"},"*"),e.createElement("option",{value:":"},":"))};Zi.propTypes={value:O().string,onChange:O().func};const Ji=Zi;function es(e){return es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(e)}function ts(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ns(o.key),o)}}function ns(e){var t=function(e,t){if("object"!=es(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=es(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==es(t)?t:t+""}function os(e,t,n){return t=is(t),function(e,t){if(t&&("object"==es(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rs()?Reflect.construct(t,n||[],is(e).constructor):t.apply(e,n))}function rs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rs=function(){return!!e})()}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},is(e)}function ss(e,t){return ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ss(e,t)}var as=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),os(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ss(e,t)}(n,t),function(e,t,n){return t&&ts(e.prototype,t),n&&ts(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"render",value:function(){var t=this.props,n=t.table,o=t.label,r=t.columnKey,i=t.operationsKey,s=t.inputColumns,a=t.updateTable,l=t.addOperation,u=t.updateOperation,c=t.removeOperation;return e.createElement(e.Fragment,null,e.createElement("div",{className:"form-group"},e.createElement("label",null,o),s.length>0?e.createElement(Qi,{column:n[r],columnList:s,onChange:function(e){return a(r,e)}}):e.createElement(qi,{column:n[r],onChange:function(e){return a(r,e)}})),n[i]&&n[i].map((function(t,n){return e.createElement("div",{key:n,className:"form-group row"},e.createElement("div",{className:"col-sm-2"},e.createElement(Ji,{value:t.operator,onChange:function(e){return u(i,n,"operator",e)}})),"column"==t.type&&e.createElement("div",{className:"col-sm-8"},s.length>0?e.createElement(Qi,{column:t.column,columnList:s,onChange:function(e){return u(i,n,"column",e)}}):e.createElement(qi,{column:t.column,onChange:function(e){return u(i,n,"column",e)}})),"value"==t.type&&e.createElement("div",{className:"col-sm-8"},e.createElement("input",{type:"text",className:"form-control input-sm",value:t.value||"",onChange:function(e){return u(i,n,"value",e.target.value)}})),e.createElement("div",{className:"col-sm-2 text-right"},e.createElement("button",{type:"button",className:"btn btn-danger btn-sm",onClick:function(e){return c(i,n)}},"×")))})),e.createElement("div",{className:"mb-20"},e.createElement("button",{type:"button",className:"btn btn-success btn-xs mr-10",onClick:function(e){return l(i,"column")}},"Add column operation"),e.createElement("button",{type:"button",className:"btn btn-success btn-xs",onClick:function(e){return l(i,"value")}},"Add scalar operation")))}}])}(e.Component);as.propTypes={table:O().object,label:O().string,columnKey:O().string,operationsKey:O().string,inputColumns:O().array,updateTable:O().func,updateHeader:O().func,addOperation:O().func,updateOperation:O().func,removeOperation:O().func};const ls=as;var us=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier;return e.createElement("select",{className:"form-control input-sm",value:o.type,onChange:function(e){return r(n,{type:e.target.value})}},e.createElement("option",{value:"fileMetadata"},"Based on file metadata"),e.createElement("option",{value:"tableMetadata"},"Based on table metadata"),e.createElement("option",{value:"tableHeader"},"Based on table headers"))};us.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func};const cs=us;var ps=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier;return e.createElement(e.Fragment,null,e.createElement("input",{type:"text",id:"keyInput".concat(n),className:"form-control input-sm",value:o.key||"",onChange:function(e){return r(n,{key:e.target.value})}}),e.createElement("label",{className:"mb-0",htmlFor:"keyInput".concat(n)},e.createElement("small",null,"Key")))};ps.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func};const ds=ps;var hs=function(t){var n=t.index,o=t.identifier,r=t.fileMetadataOptions,i=t.tableMetadataOptions,s=t.updateIdentifier,a="fileMetadata"==o.type?r:i;return e.createElement(e.Fragment,null,e.createElement("label",{className:"sr-only",htmlFor:"keySelect".concat(n)},"Key"),e.createElement("select",{className:"form-control input-sm",id:"keySelect".concat(n),value:function(e){return"fileMetadata"==e.type?a.findIndex((function(t){return t.key==e.key})):a.findIndex((function(t){return t.key==e.key&&t.tableIndex==e.tableIndex}))}(o),onChange:function(e){return t=e.target.value,r=a[t],i={key:r.key,value:r.value},"tableMetadata"==o.type&&(i.tableIndex=r.tableIndex),void s(n,i);var t,r,i}},a.map((function(t,n){return e.createElement("option",{key:n,value:n},t.label)}))),e.createElement("label",{className:"mb-0",htmlFor:"keyInput".concat(n)},e.createElement("small",null,"Key")))};hs.propTypes={index:O().number,identifier:O().object,fileMetadataOptions:O().array,tableMetadataOptions:O().array,updateIdentifier:O().func};const fs=hs;var gs=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier,i=function(e){r(n,e?{lineNumber:parseInt(event.target.value,10)}:{lineNumber:null})};return e.createElement(e.Fragment,null,e.createElement("input",{type:"text",id:"lineNumberInput".concat(n),className:"form-control input-sm",value:o.lineNumber||"",onChange:function(e){return i(e.target.value)}}),e.createElement("label",{className:"mb-0",htmlFor:"lineNumberInput".concat(n)},e.createElement("small",null,"Line")))};gs.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func};const ys=gs;var vs=r(2543),ms=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier;return e.createElement(e.Fragment,null,e.createElement("select",{className:"form-control input-sm",id:"matchSelect".concat(n),value:o.match,onChange:function(e){return r(n,{match:e.target.value})}},[{value:"exact",label:"Exact value"},{value:"any",label:"Any value"},{value:"regex",label:"RegEx"}].map((function(t){return e.createElement("option",{key:t.value,value:t.value},t.label)}))),e.createElement("label",{className:"mb-0",htmlFor:"outputTableIndexSelect".concat(n)},e.createElement("small",null,"Match")))};ms.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func};const Cs=ms;var ws=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier,i=t.dataset;if(o.outputLayer&&i&&i.layers&&i.layers[o.outputLayer]&&i.layers[o.outputLayer].fields){var s=i&&i.layers&&i.layers[o.outputLayer]&&i.layers[o.outputLayer].fields&&i.layers[o.outputLayer].fields.map((function(e){return{value:e.field,label:e.label}}));return e.createElement(e.Fragment,null,e.createElement("label",{className:"sr-only",htmlFor:"outputLayerInput".concat(n)},"Output key"),e.createElement(Wi,{id:"outputKeyInput".concat(n),isDisabled:!1,isLoading:!1,isClearable:!1,isRtl:!1,name:"s-dataset",onChange:function(e){return r(n,{outputKey:e.value})},options:s,value:s.find((function(e){return e.value==o.outputKey}))}),e.createElement("label",{className:"mb-0",htmlFor:"outputLayerInput".concat(n)},e.createElement("small",null,"Output key")))}return e.createElement(e.Fragment,null,e.createElement("input",{type:"text",id:"outputKeyInput".concat(n),className:"form-control input-sm",value:o.outputKey||"",onChange:function(e){return r(n,{outputKey:e.target.value})}}),e.createElement("label",{className:"mb-0",htmlFor:"outputLayerInput".concat(n)},e.createElement("small",null,"Output key")))};ws.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func,dataset:O().object};const Es=ws;var bs=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier,i=t.dataset;if(i&&i.layers){var s=(0,vs.sortBy)(i.layers,(function(e){return e.position})),a=s&&s.map((function(e){return{value:e.key,label:e.label}}));return e.createElement(e.Fragment,null,e.createElement("label",{className:"sr-only",htmlFor:"outputLayerInput".concat(n)},"Output layer"),e.createElement(Wi,{id:"outputLayerInput".concat(n),isDisabled:!1,isLoading:!1,isClearable:!1,isRtl:!1,name:"s-dataset",onChange:function(e){return r(n,{outputLayer:e.value})},options:a,value:a.find((function(e){return e.value==o.outputLayer}))}),e.createElement("label",{className:"mb-0",htmlFor:"outputLayerInput".concat(n)},e.createElement("small",null,"Output layer")))}return e.createElement(e.Fragment,null,e.createElement("label",{className:"sr-only",htmlFor:"outputLayerInput".concat(n)},"Output layer"),e.createElement("input",{type:"text",id:"outputLayerInput".concat(n),className:"form-control input-sm",value:o.outputLayer||"",onChange:function(e){return r(n,{outputLayer:e.target.value})}}),e.createElement("label",{className:"mb-0",htmlFor:"outputLayerInput".concat(n)},e.createElement("small",null,"Output layer")))};bs.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func,dataset:O().object};const Os=bs;var Rs=function(t){var n=t.index,o=t.identifier,r=t.tables,i=t.updateIdentifier;return e.createElement(e.Fragment,null,e.createElement("select",{className:"form-control input-sm",id:"outputTableIndexSelect".concat(n),value:null===o.outputTableIndex?"":o.outputTableIndex,onChange:function(e){return i(n,{outputTableIndex:parseInt(e.target.value,10)})}},e.createElement("option",{value:""},"Add to all output tables"),r.map((function(t,n){return e.createElement("option",{key:n,value:n},"Output table #",n)}))),e.createElement("label",{className:"mb-0",htmlFor:"outputTableIndexSelect".concat(n)},e.createElement("small",null,"Output table")))};Rs.propTypes={index:O().number,identifier:O().object,tables:O().array,updateIdentifier:O().func};const Ss=Rs;var _s=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier;return e.createElement(e.Fragment,null,e.createElement("input",{type:"number",id:"tableIndexInput".concat(n),className:"form-control input-sm",value:o.tableIndex||"",onChange:function(e){return r(n,{tableIndex:parseInt(e.target.value,10)})}}),e.createElement("label",{className:"mb-0",htmlFor:"tableIndexInput".concat(n)},e.createElement("small",null,"Input table")))};_s.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func};const Ps=_s;var Ts=function(t){var n=t.index,o=(t.identifier,t.tables),r=t.updateIdentifier;return e.createElement(e.Fragment,null,e.createElement("select",{className:"form-control input-sm",id:"tableIndexSelect".concat(n),onChange:function(e){return r(n,{tableIndex:parseInt(e.target.value,10)})}},o.map((function(t,n){return e.createElement("option",{key:n,value:n},"Input table #",n)}))),e.createElement("label",{className:"mb-0",htmlFor:"tableIndexSelect".concat(n)},e.createElement("small",null,"Input table")))};Ts.propTypes={index:O().number,identifier:O().object,tables:O().array,updateIdentifier:O().func};const Ds=Ts;var As=function(t){var n=t.index,o=t.identifier,r=t.updateIdentifier,i=t.disabled;return e.createElement(e.Fragment,null,e.createElement("input",{type:"text",id:"valueInput".concat(n),className:"form-control input-sm",value:o.value||"",onChange:function(e){return r(n,{value:e.target.value})},disabled:i}),e.createElement("label",{className:"mb-0",htmlFor:"valueInput".concat(n)},e.createElement("small",null,"Value")))};As.propTypes={index:O().number,identifier:O().object,updateIdentifier:O().func,disabled:O().bool};const Ns=As;function Is(e){return Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(e)}function Fs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xs(o.key),o)}}function xs(e){var t=function(e,t){if("object"!=Is(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Is(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Is(t)?t:t+""}function Ls(e,t,n){return t=Gs(t),function(e,t){if(t&&("object"==Is(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ms()?Reflect.construct(t,n||[],Gs(e).constructor):t.apply(e,n))}function Ms(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ms=function(){return!!e})()}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(e)}function ks(e,t){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ks(e,t)}var Vs=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ls(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ks(e,t)}(n,t),function(e,t,n){return t&&Fs(e.prototype,t),n&&Fs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"render",value:function(){var t=this.props,n=t.index,o=t.identifier,r=t.fileMetadataOptions,i=t.tableMetadataOptions,s=t.inputTables,a=t.outputTables,l=t.updateIdentifier,u=(t.removeIdentifier,t.updateIdentifierOperation),c=t.removeIdentifierOperation,p=t.dataset,d="any"==o.match;return e.createElement("form",{className:"mt-15 mb-0"},e.createElement("div",{className:"row"},("fileMetadata"==o.type||"tableMetadata"==o.type)&&e.createElement("div",{className:"col-md-12 mb-10"},r.length>0?e.createElement(fs,{index:n,identifier:o,fileMetadataOptions:r,tableMetadataOptions:i,updateIdentifier:l}):e.createElement(ds,{index:n,identifier:o,updateIdentifier:l})),"tableHeader"==o.type&&e.createElement("div",{className:"col-md-10 mb-10"},s.length>0?e.createElement(Ds,{index:n,identifier:o,tables:s,updateIdentifier:l}):e.createElement(Ps,{index:n,identifier:o,updateIdentifier:l})),"tableHeader"==o.type&&e.createElement("div",{className:"col-md-2 mb-10"},e.createElement(ys,{index:n,identifier:o,updateIdentifier:l}))),e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-4 mb-10"},e.createElement(Cs,{index:n,identifier:o,updateIdentifier:l})),e.createElement("div",{className:"col-md-8 mb-10"},e.createElement(Ns,{index:n,identifier:o,updateIdentifier:l,disabled:d}))),o.optional&&e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-4 mb-10"},e.createElement(Ss,{index:n,identifier:o,tables:a,updateIdentifier:l})),e.createElement("div",{className:"col-md-4 mb-10"},e.createElement(Os,{index:n,identifier:o,updateIdentifier:l,dataset:p})),e.createElement("div",{className:"col-md-4 mb-10"},e.createElement(Es,{index:n,identifier:o,updateIdentifier:l,dataset:p}))),Array.isArray(o.operations)&&o.operations.map((function(t,o){return e.createElement("div",{key:o,className:"row"},e.createElement("div",{className:"col-sm-4 mb-10"},e.createElement(Ji,{value:t.operator,id:"identifierOperationOperator".concat(n).concat(o),onChange:function(e){return u(n,o,"operator",e)}}),e.createElement("label",{className:"mb-0",htmlFor:"identifierOperationOperator".concat(n).concat(o)},e.createElement("small",null,"Operator"))),e.createElement("div",{className:"col-sm-6 mb-10"},e.createElement("input",{type:"text",id:"identifierOperationValue".concat(n).concat(o),className:"form-control input-sm",value:t.value||"",onChange:function(e){return u(n,o,"value",e.target.value)}}),e.createElement("label",{className:"mb-0",htmlFor:"identifierOperationValue".concat(n).concat(o)},e.createElement("small",null,"Value"))),e.createElement("div",{className:"col-sm-2 mb-10 text-right"},e.createElement("button",{type:"button",className:"btn btn-danger btn-sm",onClick:function(e){return c(n,o)}},"×")))})))}}])}(e.Component);Vs.propTypes={index:O().number,identifier:O().object,fileMetadataOptions:O().array,tableMetadataOptions:O().array,inputTables:O().array,outputTables:O().array,dataset:O().object,updateIdentifier:O().func,removeIdentifier:O().func};const Hs=Vs;function Ws(e){return Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ws(e)}function Bs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,js(o.key),o)}}function js(e){var t=function(e,t){if("object"!=Ws(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ws(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ws(t)?t:t+""}function Us(e,t,n){return t=Ks(t),function(e,t){if(t&&("object"==Ws(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zs()?Reflect.construct(t,n||[],Ks(e).constructor):t.apply(e,n))}function zs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zs=function(){return!!e})()}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(e)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}var $s=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=Us(this,n,[e])).updateTableIdentifier=t.updateTableIdentifier.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(e,t)}(n,t),function(e,t,n){return t&&Bs(e.prototype,t),n&&Bs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"updateTableIdentifier",value:function(e,t){var n=this.props,o=n.headerKey,r=n.table;(0,n.updateHeader)(o,Object.assign({},r.header[o],t))}},{key:"render",value:function(){var t=this.props,n=t.index,o=t.headerKey,r=t.table,i=t.inputTables,s=t.fileMetadataOptions,a=t.tableMetadataOptions;return e.createElement("div",null,e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-2 mb-10"},e.createElement("p",{className:"form-control-static"},o)),e.createElement("div",{className:"col-md-10 mb-10"},e.createElement(cs,{index:n,identifier:r.header[o],updateIdentifier:this.updateTableIdentifier}))),e.createElement(Hs,{index:n,identifier:r.header[o],inputTables:i,fileMetadataOptions:s,tableMetadataOptions:a,updateIdentifier:this.updateTableIdentifier}))}}])}(e.Component);$s.propTypes={index:O().number,headerKey:O().string,table:O().object,inputTables:O().array,updateHeader:O().func,fileMetadataOptions:O().array,tableMetadataOptions:O().array};const qs=$s;var Xs=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Qs=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),o=String(t.getOptionValue(e)).toLowerCase(),r=String(t.getOptionLabel(e)).toLowerCase();return o===n||r===n},Zs={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,o){return!(!e||t.some((function(t){return Qs(e,t,o)}))||n.some((function(t){return Qs(e,t,o)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Js=(0,e.forwardRef)((function(t,n){var o=function(t){var n=t.allowCreateWhileLoading,o=void 0!==n&&n,r=t.createOptionPosition,i=void 0===r?"last":r,s=t.formatCreateLabel,a=void 0===s?Zs.formatCreateLabel:s,l=t.isValidNewOption,u=void 0===l?Zs.isValidNewOption:l,c=t.getNewOptionData,p=void 0===c?Zs.getNewOptionData:c,d=t.onCreateOption,h=t.options,f=void 0===h?[]:h,g=t.onChange,y=Io(t,Xs),v=y.getOptionValue,m=void 0===v?Ri:v,C=y.getOptionLabel,w=void 0===C?Oi:C,E=y.inputValue,b=y.isLoading,O=y.isMulti,R=y.value,S=y.name,_=(0,e.useMemo)((function(){return u(E,Xo(R),f,{getOptionValue:m,getOptionLabel:w})?p(E,a(E)):void 0}),[a,p,w,m,E,u,f,R]),P=(0,e.useMemo)((function(){return!o&&b||!_?f:"first"===i?[_].concat(zr(f)):[].concat(zr(f),[_])}),[o,i,b,_,f]),T=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==_)g(e,t);else if(d)d(E);else{var o=p(E,E),r={action:"create-option",name:S,option:o};g(lr(O,[].concat(zr(Xo(R)),[o]),o),r)}}),[p,E,O,S,_,d,g,R]);return Bo(Bo({},y),{},{options:P,onChange:T})}(Ur(t));return e.createElement(Hi,ht({ref:n},o))}));const ea=Js;var ta=function(t){var n=t.optionKey,o=t.value,r=t.values,i=t.updateHeader,s=r.indexOf(o);return r=r.map((function(e){return{value:e,label:e}})),-1===s&&(o&&r.unshift({value:o,label:o}),s=0),e.createElement("div",{className:"form-group row"},e.createElement("label",{htmlFor:n,className:"col-sm-4 col-form-label"},n),e.createElement("div",{className:"col-sm-8"},e.createElement(ea,{options:r,defaultValue:r[s],onChange:function(e){i(n,e.value)}})))};ta.propTypes={optionKey:O().string,value:O().string,values:O().array,updateHeader:O().func};const na=ta;function oa(e){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(e)}function ra(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ia(o.key),o)}}function ia(e){var t=function(e,t){if("object"!=oa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=oa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oa(t)?t:t+""}function sa(e,t,n){return t=la(t),function(e,t){if(t&&("object"==oa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,aa()?Reflect.construct(t,n||[],la(e).constructor):t.apply(e,n))}function aa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aa=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},la(e)}function ua(e,t){return ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ua(e,t)}var ca=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),sa(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ua(e,t)}(n,t),function(e,t,n){return t&&ra(e.prototype,t),n&&ra(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"render",value:function(){var t=this.props,n=t.table,o=t.inputTables,r=t.inputColumns,i=t.options,s=t.updateTable,a=t.updateHeader,l=t.addOperation,u=t.updateOperation,c=t.removeOperation,p=t.fileMetadataOptions,d=t.tableMetadataOptions,h={XUNITS:i.XUNITS,YUNITS:i.YUNITS},f=Object.keys(i).reduce((function(e,t){return t in h||(e[t]=i[t]),e}),{});return e.createElement("div",null,e.createElement("div",{className:"mb-10"},e.createElement("strong",null,"Table header")),Object.keys(f).map((function(t,o){return e.createElement(Yi,{key:o,optionKey:t,value:n.header[t],values:f[t],updateHeader:a})})),Object.keys(h).map((function(t,o){return e.createElement(na,{key:o,optionKey:t,value:n.header[t],values:h[t],updateHeader:a})})),e.createElement("div",{className:"mb-10"},e.createElement("strong",null,"Table columns")),"XYDATA"===n.header["DATA CLASS"]&&e.createElement("div",null,e.createElement("div",{className:"mb-10"},"Which metadata should be used for the x-values?"),["FIRSTX","LASTX","DELTAX"].map((function(t,r){return e.createElement(qs,{key:r,index:r+1e3,headerKey:t,table:n,inputTables:o,updateHeader:a,fileMetadataOptions:p,tableMetadataOptions:d})}))),"XYDATA"!==n.header["DATA CLASS"]&&e.createElement(ls,{table:n.table,label:"Which column should be used as x-values?",columnKey:"xColumn",operationsKey:"xOperations",inputColumns:r,updateTable:s,addOperation:l,updateOperation:u,removeOperation:c}),e.createElement(ls,{table:n.table,label:"Which column should be used as y-values?",columnKey:"yColumn",operationsKey:"yOperations",inputColumns:r,updateTable:s,addOperation:l,updateOperation:u,removeOperation:c}),e.createElement("small",{className:"text-muted"},"The data you pick will determine which table columns are going to converted."))}}])}(e.Component);ca.propTypes={table:O().object,inputTables:O().array,inputColumns:O().array,options:O().object,updateTable:O().func,updateHeader:O().func,addOperation:O().func,updateOperation:O().func,removeOperation:O().func,fileMetadataOptions:O().array,tableMetadataOptions:O().array};const pa=ca;function da(e){return da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},da(e)}function ha(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,fa(o.key),o)}}function fa(e){var t=function(e,t){if("object"!=da(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=da(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==da(t)?t:t+""}function ga(e,t,n){return t=va(t),function(e,t){if(t&&("object"==da(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ya()?Reflect.construct(t,n||[],va(e).constructor):t.apply(e,n))}function ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ya=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},va(e)}function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ma(e,t)}var Ca=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ga(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ma(e,t)}(n,t),function(e,t,n){return t&&ha(e.prototype,t),n&&ha(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"render",value:function(){var t=this.props,n=t.identifier,o=t.show,r=t.onToggle,i=t.onRemove;return e.createElement("p",null,e.createElement("span",{className:"pull-right"},e.createElement("button",{type:"button",className:"button-right btn btn-xs btn-info ml-5",onClick:function(){return r()}},o?"Hide":"Show"),e.createElement("button",{type:"button",className:"button-right btn btn-xs btn-danger ml-5",onClick:function(){return i()}},"Remove")),e.createElement("code",null,void 0!==n.tableIndex&&"Input table #".concat(n.tableIndex," "),n.key,void 0!==n.lineNumber&&"Line ".concat(n.lineNumber)),n.outputKey&&e.createElement(e.Fragment,null,e.createElement("span",{className:"mr-5 ml-5"},"→"),e.createElement("code",null,n.outputLayer&&"".concat(n.outputLayer,"/"),n.outputKey)))}}])}(e.Component);Ca.propTypes={identifier:O().object,show:O().bool};const wa=Ca;function Ea(e){return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(e)}function ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Oa(o.key),o)}}function Oa(e){var t=function(e,t){if("object"!=Ea(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ea(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ea(t)?t:t+""}function Ra(e,t,n){return t=_a(t),function(e,t){if(t&&("object"==Ea(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sa()?Reflect.construct(t,n||[],_a(e).constructor):t.apply(e,n))}function Sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sa=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}function Pa(e,t){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pa(e,t)}var Ta=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ra(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pa(e,t)}(n,t),function(e,t,n){return t&&ba(e.prototype,t),n&&ba(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"render",value:function(){var t=this.props,n=t.label,o=t.type,r=t.optional,i=t.identifiers,s=t.fileMetadataOptions,a=t.tableMetadataOptions,l=t.inputTables,u=t.outputTables,c=t.dataset,p=t.addIdentifier,d=t.updateIdentifier,h=t.removeIdentifier,f=t.addIdentifierOperation,g=t.updateIdentifierOperation,y=t.removeIdentifierOperation,v=function(e){d(e,{show:!i[e].show})},m=i.some((function(e){return e.type===o&&e.optional==r}));return e.createElement("div",{className:"mb-10"},e.createElement("label",null,n),m&&e.createElement("ul",{className:"list-group mb-10"},i.map((function(t,n){if(t.type===o&&t.optional==r)return t.show?e.createElement("li",{className:"list-group-item",key:n},e.createElement(wa,{identifier:t,show:!0,onToggle:function(){return v(n)},onRemove:function(){return h(n)}}),e.createElement(Hs,{key:n,index:n,optional:r,identifier:t,fileMetadataOptions:s,tableMetadataOptions:a,inputTables:l,outputTables:u,dataset:c,updateIdentifier:d,removeIdentifier:h,updateIdentifierOperation:g,removeIdentifierOperation:y}),t.optional&&e.createElement("div",{className:"mb-10"},e.createElement("button",{type:"button",className:"btn btn-success btn-xs",onClick:function(e){return f(n)}},"Add scalar operation"))):e.createElement("li",{key:n,className:"list-group-item"},e.createElement(wa,{identifier:t,show:!1,onToggle:function(){return v(n)},onRemove:function(){return h(n)}}))}))),e.createElement("form",null,e.createElement("div",{className:"form"},e.createElement("button",{type:"button",className:"btn btn-success btn-xs",onClick:function(e){return p(o,r)}},r?"Add metadata":"Add Identifier"))))}}])}(e.Component);Ta.propTypes={label:O().string,type:O().string,optional:O().bool,identifiers:O().array,fileMetadataOptions:O().array,tableMetadataOptions:O().array,inputTables:O().array,outputTables:O().array,dataset:O().object,addIdentifier:O().func,updateIdentifier:O().func,removeIdentifier:O().func,addIdentifierOperation:O().func,updateIdentifierOperation:O().func,removeIdentifierOperation:O().func};const Da=Ta;function Aa(e){return Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(e)}function Na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ia(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ia(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Fa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xa(o.key),o)}}function xa(e){var t=function(e,t){if("object"!=Aa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Aa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Aa(t)?t:t+""}function La(e,t,n){return t=Ga(t),function(e,t){if(t&&("object"==Aa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ma()?Reflect.construct(t,n||[],Ga(e).constructor):t.apply(e,n))}function Ma(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ma=function(){return!!e})()}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ga(e)}function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ka(e,t)}var Va=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=La(this,n,[e])).onGridReady=t.onGridReady.bind(t),t.onSubmit=t.onSubmit.bind(t),t.updateTitle=t.updateTitle.bind(t),t.updateDescription=t.updateDescription.bind(t),t.updateOls=t.updateOls.bind(t),t.toggleMatchTables=t.toggleMatchTables.bind(t),t.addTable=t.addTable.bind(t),t.updateTable=t.updateTable.bind(t),t.removeTable=t.removeTable.bind(t),t.addHeader=t.addHeader.bind(t),t.updateHeader=t.updateHeader.bind(t),t.removeHeader=t.removeHeader.bind(t),t.addOperation=t.addOperation.bind(t),t.updateOperation=t.updateOperation.bind(t),t.removeOperation=t.removeOperation.bind(t),t.addIdentifier=t.addIdentifier.bind(t),t.updateIdentifier=t.updateIdentifier.bind(t),t.removeIdentifier=t.removeIdentifier.bind(t),t.addIdentifierOperation=t.addIdentifierOperation.bind(t),t.updateIdentifierOperation=t.updateIdentifierOperation.bind(t),t.removeIdentifierOperation=t.removeIdentifierOperation.bind(t),"create"==t.props.status&&t.addTable(),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ka(e,t)}(n,t),function(e,t,n){return t&&Fa(e.prototype,t),n&&Fa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"onGridReady",value:function(e){this.api=e.api}},{key:"onSubmit",value:function(e){e.preventDefault(),this.props.storeProfile()}},{key:"updateTitle",value:function(e){var t=Object.assign({},this.props.profile);t.title=e,this.props.updateProfile(t)}},{key:"updateDescription",value:function(e){var t=Object.assign({},this.props.profile);t.description=e,this.props.updateProfile(t)}},{key:"updateOls",value:function(e){var t=Object.assign({},this.props.profile);null!=t&&void 0!==e&&null!=e&&(t.ols=e,this.props.updateProfile(t))}},{key:"toggleMatchTables",value:function(){var e=Object.assign({},this.props.profile);e.matchTables=!e.matchTables,this.props.updateProfile(e)}},{key:"addTable",value:function(){var e=this.props.options,t={};if(e)for(var n in e)t[n]=e[n][0];var o=ji(this.props.profile),r={};o.length>2&&(r.xColumn=o[0].value,r.yColumn=o[1].value);var i=Object.assign({},this.props.profile);i.tables.push({header:t,table:r}),this.props.updateProfile(i)}},{key:"updateTable",value:function(e,t,n){var o=Object.assign({},this.props.profile);-1!==e&&(o.tables[e].table[t]=n,(null===o.tables[e].table[t]||Object.values(o.tables[e].table[t]).every((function(e){return null===e||isNaN(e)})))&&delete o.tables[e].table[t],this.props.updateProfile(o))}},{key:"removeTable",value:function(e){var t=Object.assign({},this.props.profile);t.tables.splice(e,1),this.props.updateProfile(t)}},{key:"addHeader",value:function(e){var t=Object.assign({},this.props.profile);if(-1!==e){var n="HEADER"+Object.keys(t.tables[e].header).length;t.tables[e].header[n]=""}this.props.updateProfile(t)}},{key:"updateHeader",value:function(e,t,n,o){var r=this,i=Object.assign({},this.props.profile),s=Object.assign({},i.tables[e].header);-1!==e&&(void 0===o?s[t]=n:(Object.keys(s).reduce((function(e,r){return r==o?e[t]=n:e[r]=s[r],e}),{}),function(e){throw new TypeError('"'+e+'" is read-only')}("header")),"XYDATA"==s["DATA CLASS"]&&["FIRSTX","LASTX","DELTAX"].forEach((function(n){void 0===s[n]&&(s[n]=r.initIdentifier(i,"fileMetadata")),n==t&&i.tables[e].header[n].type!=s[n].type&&(s[n]=r.initIdentifier(i,s[n].type))})),i.tables[e].header=s,this.props.updateProfile(i))}},{key:"removeHeader",value:function(e,t){var n=Object.assign({},this.props.profile);delete n.tables[e].header[t],this.props.updateProfile(n)}},{key:"addOperation",value:function(e,t,n){var o=Object.assign({},this.props.profile);if(-1!==e){var r={type:n,operator:"+"};"column"==n&&(r.column={tableIndex:null,columnIndex:null}),void 0===o.tables[e].table[t]&&(o.tables[e].table[t]=[]),o.tables[e].table[t].push(r),this.props.updateProfile(o)}}},{key:"updateOperation",value:function(e,t,n,o,r){var i=Object.assign({},this.props.profile);-1!==e&&(i.tables[e].table[t][n][o]=r,this.props.updateProfile(i))}},{key:"removeOperation",value:function(e,t,n){var o=Object.assign({},this.props.profile);-1!==e&&(o.tables[e].table[t].splice(n,1),0==o.tables[e].table[t].length&&delete o.tables[e].table[t],this.props.updateProfile(o))}},{key:"initIdentifier",value:function(e,t){var n={type:t,match:"any",value:""};if("fileMetadata"==n.type){var o=Ui(e);o.length>0?(n.key=o[0].key,n.value=o[0].value):n.key=""}else if("tableMetadata"==n.type){var r=zi(e);r.length>0?(n.key=r[0].key,n.tableIndex=r[0].tableIndex,n.value=r[0].value):(n.key="",n.tableIndex=0)}else"tableHeader"==n.type&&(n.tableIndex=0,n.lineNumber="");return n}},{key:"addIdentifier",value:function(e,t){var n=Object.assign({},this.props.profile),o=this.initIdentifier(n,e);o.show=!0,o.optional=t,o.optional?(o.outputTableIndex=0,o.outputLayer="",o.outputKey=""):o.match="exact",n.identifiers.push(o),this.props.updateProfile(n)}},{key:"updateIdentifier",value:function(e,t){var n=Object.assign({},this.props.profile);-1!==e&&(n.identifiers[e]=Object.assign(n.identifiers[e],t),this.props.updateProfile(n))}},{key:"removeIdentifier",value:function(e){var t=Object.assign({},this.props.profile);-1!==e&&(t.identifiers.splice(e,1),this.props.updateProfile(t))}},{key:"addIdentifierOperation",value:function(e){var t=Object.assign({},this.props.profile);if(-1!==e){void 0===t.identifiers[e].operations&&(t.identifiers[e].operations=[]),t.identifiers[e].operations.push({operator:"+"}),this.props.updateProfile(t)}}},{key:"updateIdentifierOperation",value:function(e,t,n,o){var r=Object.assign({},this.props.profile);-1!==e&&(r.identifiers[e].operations[t][n]=o,this.props.updateProfile(r))}},{key:"removeIdentifierOperation",value:function(e,t){var n=Object.assign({},this.props.profile);-1!==e&&(n.identifiers[e].operations.splice(t,1),0==n.identifiers[e].operations.length&&delete n.identifiers[e].operations,this.props.updateProfile(n))}},{key:"submitForm",value:function(e,t){e.preventDefault(),t.id?this.props.updateProfile():this.props.createProfile()}},{key:"renderMetadata",value:function(t){return e.createElement("div",{className:"panel panel-default"},e.createElement("div",{className:"panel-body"},e.createElement("dl",{className:"dl-horizontal mb-0"},Object.keys(t).map((function(n,o){return e.createElement(e.Fragment,{key:o},e.createElement("dt",null,n,":"),e.createElement("dd",null,t[n]||" "))})))))}},{key:"renderHeader",value:function(t){return e.createElement("pre",null,t.map((function(t,n){return e.createElement("code",{key:n},t)})))}},{key:"renderDataGrid",value:function(t){var n=t.columns.map((function(e){return{field:e.key,headerName:e.name}})),o=t.rows.map((function(e){return Object.fromEntries(e.map((function(e,t){return[t,e]})))}));return e.createElement("div",{className:"ag-theme-alpine"},e.createElement(lt.AgGridReact,{enableColResize:!0,columnDefs:n,rowData:o,defaultColDef:{resizable:!0,lockPosition:!0},domLayout:"autoHeight",suppressRowHoverHighlight:!0,onGridReady:this.onGridReady}))}},{key:"render",value:function(){var t=this,n=this.props,o=n.status,r=n.profile,i=n.options,s=n.datasets,a=Bi(r),l=ji(r),u=Ui(r),c=zi(r),p={},d=e.createElement("span",null);if(s.length>0){var h,f;p=function(e,t){return t&&null!=e&&e.ols?t.find((function(t){return(null==t?void 0:t.ols)===(null==e?void 0:e.ols)})):null}(r,s);var g=s.map((function(e){return{value:null==e?void 0:e.ols,label:null==e?void 0:e.name}})),y=null!=p?{value:null===(h=p)||void 0===h?void 0:h.ols,label:null===(f=p)||void 0===f?void 0:f.name}:"";d=e.createElement("div",{className:"panel panel-default"},e.createElement("div",{className:"panel-heading"},e.createElement("div",null,"Dataset")),e.createElement("div",{className:"panel-body"},e.createElement("div",null,e.createElement("label",null,"Datasets"),e.createElement(Wi,{isDisabled:!1,isLoading:!1,isClearable:!0,isRtl:!1,name:"dataset",options:g,value:y,onChange:function(e){return t.updateOls(null===e?null:e.value)}}))))}var v=[];return r.data&&r.data.tables.forEach((function(n,o){v.push(e.createElement(xt,{key:"tableTab".concat(o),eventKey:o,title:"Input table # ".concat(o)},void 0!==n.metadata&&Object.keys(n.metadata).length>0&&e.createElement("div",{className:"mt-20"},e.createElement("h4",null,"Input table metadata"),t.renderMetadata(n.metadata)),void 0!==n.header&&n.header.length>0&&e.createElement("div",{className:"mt-20"},e.createElement("h4",null,"Input table header"),t.renderHeader(n.header)),void 0!==n.rows&&void 0!==n.rows&&n.rows.length>0&&e.createElement("div",{className:"mt-20"},e.createElement("h4",null,"Input table data"),t.renderDataGrid(n))))})),e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-7"},r.data?e.createElement("div",{className:"scroll"},e.createElement("h4",null,"Input file metadata"),Object.keys(r.data.metadata).length>0&&this.renderMetadata(r.data.metadata),e.createElement("h4",null,"Input tables"),e.createElement(Zt,{defaultActiveKey:0,id:"uncontrolled-tab-example"},v)):e.createElement("p",null,e.createElement("em",null,"The profile does not contain the initial uploaded data."))),e.createElement("div",{className:"col-md-5"},e.createElement("div",{className:"scroll"},e.createElement("div",{className:"panel panel-default"},e.createElement("div",{className:"panel-heading"},"Profile"),e.createElement("div",{className:"panel-body"},e.createElement("div",null,e.createElement("label",null,"Title"),e.createElement("input",{type:"text",className:"form-control input-sm",onChange:function(e){return t.updateTitle(e.currentTarget.value)},value:r.title}),e.createElement("small",{className:"text-muted"},"Please add a title for this profile.")),e.createElement("div",{className:"mt-10"},e.createElement("label",null,"Description"),e.createElement("textarea",{className:"form-control",rows:"3",onChange:function(e){return t.updateDescription(e.currentTarget.value)},value:r.description}),e.createElement("small",{className:"text-muted"},"Please add a description for this profile.")),e.createElement("div",{className:"checkbox mb-0 mt-10"},e.createElement("label",{htmlFor:"match-tables-checkbox"},e.createElement("input",{type:"checkbox",id:"match-tables-checkbox",checked:r.matchTables||!1,onChange:this.toggleMatchTables,disabled:1!=r.tables.length}),e.createElement("span",{className:1!=r.tables.length?"text-muted":""},"Configure only one output table and use it for each input table."))))),r.tables.map((function(n,o){return e.createElement(e.Fragment,{key:o},e.createElement("div",{className:"panel panel-default"},e.createElement("div",{className:"panel-heading"},e.createElement("button",{type:"button",className:"btn btn-danger btn-xs pull-right",onClick:function(){return t.removeTable()}},"Remove"),"Output table #",o),e.createElement("div",{className:"panel-body"},e.createElement(pa,{table:n,inputTables:a,inputColumns:l,options:i,updateHeader:function(e,n){return t.updateHeader(o,e,n)},updateTable:function(e,n){return t.updateTable(o,e,n)},addOperation:function(e,n){return t.addOperation(o,e,n)},updateOperation:function(e,n,r,i){return t.updateOperation(o,e,n,r,i)},removeOperation:function(e,n){return t.removeOperation(o,e,n)},fileMetadataOptions:u,tableMetadataOptions:c}))))})),e.createElement("div",{className:"mb-20"},e.createElement("button",{type:"button",className:"btn btn-success btn-sm",disabled:r.matchTables,onClick:function(){return t.addTable()}},"Add table")),e.createElement("div",{className:"panel panel-default"},e.createElement("div",{className:"panel-heading"},"Identifiers"),e.createElement("div",{className:"panel-body"},[["Based on file metadata","fileMetadata"],["Based on table metadata","tableMetadata"],["Based on table headers","tableHeader"]].map((function(n){var o=Na(n,2),i=o[0],s=o[1];return e.createElement(Da,{key:s,label:i,type:s,optional:!1,identifiers:r.identifiers,fileMetadataOptions:u,tableMetadataOptions:c,inputTables:a,outputTables:r.tables,dataset:p,addIdentifier:t.addIdentifier,updateIdentifier:t.updateIdentifier,removeIdentifier:t.removeIdentifier,addIdentifierOperation:t.addIdentifierOperation,updateIdentifierOperation:t.updateIdentifierOperation,removeIdentifierOperation:t.removeIdentifierOperation})})),e.createElement("small",null,e.createElement("p",{className:"text-muted"},"The identifiers you create here are used to find the correct profile for uploaded files."),e.createElement("ul",{className:"text-muted"},e.createElement("li",null,"The ",e.createElement("code",null,"Value")," will be compared to the selected metadata or to the header of a table. If you select ",e.createElement("code",null,"Regex"),", you can enter a regular expression as value."),e.createElement("li",null,"If you provide a line number, only this line of the header will be used. If line number is ommited, the whole header is compared (or searched with the Regex)."))))),d,e.createElement("div",{className:"panel panel-default"},e.createElement("div",{className:"panel-heading"},"Metadata"),e.createElement("div",{className:"panel-body"},[["Based on file metadata","fileMetadata"],["Based on table metadata","tableMetadata"],["Based on table headers","tableHeader"]].map((function(n){var o=Na(n,2),i=o[0],s=o[1];return e.createElement(Da,{key:s,label:i,type:s,optional:!0,identifiers:r.identifiers,fileMetadataOptions:u,tableMetadataOptions:c,inputTables:a,outputTables:r.tables,dataset:p,addIdentifier:t.addIdentifier,updateIdentifier:t.updateIdentifier,removeIdentifier:t.removeIdentifier,addIdentifierOperation:t.addIdentifierOperation,updateIdentifierOperation:t.updateIdentifierOperation,removeIdentifierOperation:t.removeIdentifierOperation})})),e.createElement("small",null,e.createElement("p",{className:"text-muted"},"The metadata you define here are extracted from the input file and added to the output tables."),e.createElement("ul",{className:"text-muted"},e.createElement("li",null,"As above, the ",e.createElement("code",null,"Value")," will be compared to the selected metadata or to the header of a table. If you select ",e.createElement("code",null,"Regex"),", you can enter a regular expression as value."),e.createElement("li",null,"Also, if you provide a line number, only this line of the header will be used. If line number is ommited, the whole header is compared (or searched with the Regex)."),e.createElement("li",null,"If groups are used in the regular expression (e.g. ",e.createElement("code",null,"Key: (.*?)"),") only the first group will be extracted as metadata."),e.createElement("li",null,"If you enter an ",e.createElement("code",null,"Output key")," the matched value will be added to the output tables. If you set an ",e.createElement("code",null,"Output table")," explicitely, it will only be added to this table, otherwise it will be added to all output tables."),e.createElement("li",null,"The ",e.createElement("code",null,"Output layer")," input is used for additional processing in the Chemotion ELN."))))),e.createElement("form",null,e.createElement("button",{type:"submit",className:"btn btn-primary",onClick:this.onSubmit},"create"==o&&"Create profile","update"==o&&"Update profile")))))}}])}(e.Component);Va.propTypes={status:O().string,profile:O().object,options:O().object,datasets:O().array,updateProfile:O().func,storeProfile:O().func};const Ha=Va;function Wa(e){return Wa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wa(e)}function Ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ja(o.key),o)}}function ja(e){var t=function(e,t){if("object"!=Wa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Wa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wa(t)?t:t+""}function Ua(e,t,n){return t=Ka(t),function(e,t){if(t&&("object"==Wa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,za()?Reflect.construct(t,n||[],Ka(e).constructor):t.apply(e,n))}function za(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(za=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ka(e)}function Ya(e,t){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ya(e,t)}var $a=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ua(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ya(e,t)}(n,t),function(e,t,n){return t&&Ba(e.prototype,t),n&&Ba(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"render",value:function(){return e.createElement("form",null,this.props.error&&e.createElement("div",{className:"alert alert-danger mt-10"},this.props.errorMessage),e.createElement("div",{className:"form-group"},e.createElement("input",{type:"file",className:"form-control form-control-file",id:"fileUpload",onChange:this.props.onFileChangeHandler})),e.createElement("button",{type:"button",className:"btn btn-primary float-right",onClick:this.props.onSubmitFileHandler,disabled:this.props.disabled},"Upload"),this.props.isLoading&&e.createElement("div",{className:"d-flex justify-content-center mt-10"},e.createElement("div",{className:"spinner-border text-primary",role:"status"},e.createElement("span",{className:"sr-only"},"Loading..."))))}}])}(e.Component);$a.propTypes={disabled:O().bool,isLoading:O().bool,onFileChangeHandler:O().func,onSubmitFileHandler:O().func,error:O().bool,errorMessage:O().string};const qa=$a;function Xa(e){return Xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xa(e)}function Qa(e){return function(e){if(Array.isArray(e))return el(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ja(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(e,t)||Ja(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ja(e,t){if(e){if("string"==typeof e)return el(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?el(e,t):void 0}}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nl(o.key),o)}}function nl(e){var t=function(e,t){if("object"!=Xa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Xa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xa(t)?t:t+""}function ol(e,t,n){return t=il(t),function(e,t){if(t&&("object"==Xa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rl()?Reflect.construct(t,n||[],il(e).constructor):t.apply(e,n))}function rl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rl=function(){return!!e})()}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},il(e)}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sl(e,t)}var al=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=ol(this,n,[e])).state={status:"list",selectedFile:null,profiles:[],options:[],datasets:[],profile:null,error:!1,errorMessage:"",isLoading:!1,createdModal:!1,deleteModal:!1},t.showCreateView=t.showCreateView.bind(t),t.showUpdateView=t.showUpdateView.bind(t),t.showImportView=t.showImportView.bind(t),t.showCreatedModal=t.showCreatedModal.bind(t),t.hideCreatedModal=t.hideCreatedModal.bind(t),t.showDeleteModal=t.showDeleteModal.bind(t),t.hideDeleteModal=t.hideDeleteModal.bind(t),t.updateProfile=t.updateProfile.bind(t),t.storeProfile=t.storeProfile.bind(t),t.deleteProfile=t.deleteProfile.bind(t),t.downloadProfile=t.downloadProfile.bind(t),t.updateFile=t.updateFile.bind(t),t.uploadFile=t.uploadFile.bind(t),t.importFile=t.importFile.bind(t),t.dispatchView=t.dispatchView.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}(n,t),function(e,t,n){return t&&tl(e.prototype,t),n&&tl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"componentDidMount",value:function(){var e=this;Promise.all([je.fetchProfiles(),je.fetchDatasets(),je.fetchOptions()]).then((function(t){var n=Za(t,3),o=n[0],r=n[1],i=n[2];e.setState({profiles:o,datasets:r,options:i})}))}},{key:"showImportView",value:function(){this.setState({status:"import",profile:null})}},{key:"showCreateView",value:function(){this.setState({status:"upload",profile:null})}},{key:"showUpdateView",value:function(e){this.setState({status:"update",profile:Object.assign({},e),error:!1,errorMessage:""})}},{key:"showCreatedModal",value:function(){this.setState({createdModal:!0})}},{key:"hideCreatedModal",value:function(){this.setState({createdModal:!1})}},{key:"showDeleteModal",value:function(e){this.setState({deleteModal:!0,profile:Object.assign({},e)})}},{key:"hideDeleteModal",value:function(){this.setState({deleteModal:!1,profile:null})}},{key:"updateProfile",value:function(e){this.setState({profile:e})}},{key:"storeProfile",value:function(){var e=this,t=this.state,n=t.status,o=t.profile;Array.isArray(o.identifiers)&&o.identifiers.forEach((function(e){delete e.show})),"create"==n?je.createProfile(o).then((function(t){var n=Qa(e.state.profiles);n.push(t),e.setState({status:"list",profiles:n,profile:null},e.showCreatedModal())})):"update"==n&&je.updateProfile(o).then((function(t){var n=Qa(e.state.profiles),o=n.findIndex((function(e){return e.id==t.id}));n[o]=t,e.setState({status:"list",profiles:n,profile:null})}))}},{key:"deleteProfile",value:function(){var e=this;je.deleteProfile(this.state.profile).then((function(){var t=Qa(e.state.profiles),n=t.findIndex((function(t){return t.id==e.state.profile.id}));t.splice(n,1),e.setState({status:"list",profiles:t,profile:null},e.hideDeleteModal())}))}},{key:"downloadProfile",value:function(e){var t=document.createElement("a");t.href="data:application/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null,2)),t.download=e.id+".json",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},{key:"updateFile",value:function(e){this.setState({selectedFile:e.target.files[0],loaded:0,isLoading:!1,error:!1,errorMessage:""})}},{key:"uploadFile",value:function(){var e=this,t=this.state.selectedFile;this.setState({isLoading:!0}),je.fetchTables(t).then((function(t){if(t){var n={title:"",description:"",tables:[],identifiers:[],data:t};e.setState({status:"create",profile:n,selectedFile:null,isLoading:!1,error:!1,errorMessage:""})}})).catch((function(t){413===t.status?e.setState({error:!0,errorMessage:"The uploaded file is too large.",isLoading:!1}):t.text().then((function(t){e.setState({error:!0,errorMessage:JSON.parse(t).error,isLoading:!1})}))}))}},{key:"importFile",value:function(){var e=this,t=this.state.selectedFile;this.setState({isLoading:!0});var n=new FileReader;n.readAsText(t),n.onload=function(t){var n=JSON.parse(t.target.result);je.createProfile(n).then((function(t){var n=Qa(e.state.profiles);n.push(t),e.setState({status:"list",profiles:n,profile:null},e.showCreatedModal())})).catch((function(t){e.setState({error:!0,errorMessage:Object.values(t).join(", "),isLoading:!1})}))}.bind(this)}},{key:"dispatchView",value:function(){return"list"===this.state.status?e.createElement(at,{profiles:this.state.profiles,isAdmin:!0,updateProfile:this.showUpdateView,deleteProfile:this.showDeleteModal,downloadProfile:this.downloadProfile}):"import"==this.state.status?e.createElement(qa,{onFileChangeHandler:this.updateFile,onSubmitFileHandler:this.importFile,errorMessage:this.state.errorMessage,error:this.state.error,isLoading:this.state.isLoading,disabled:null===this.state.selectedFile}):"upload"==this.state.status?e.createElement(qa,{onFileChangeHandler:this.updateFile,onSubmitFileHandler:this.uploadFile,errorMessage:this.state.errorMessage,error:this.state.error,isLoading:this.state.isLoading,disabled:null===this.state.selectedFile}):e.createElement(Ha,{status:this.state.status,profile:this.state.profile,options:this.state.options,datasets:this.state.datasets,updateProfile:this.updateProfile,storeProfile:this.storeProfile})}},{key:"render",value:function(){return e.createElement("div",{className:["create","update"].includes(this.state.status)?"container-fluid":"container"},e.createElement("header",null,e.createElement("nav",{"aria-label":"breadcrumb"},"list"==this.state.status&&e.createElement("ol",{className:"breadcrumb"},e.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},"Chemotion file converter admin")),["upload","create"].includes(this.state.status)&&e.createElement("ol",{className:"breadcrumb"},e.createElement("li",{className:"breadcrumb-item","aria-current":"page"},e.createElement("a",{href:""},"Chemotion file converter admin")),e.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},"Create Profile")),"update"==this.state.status&&e.createElement("ol",{className:"breadcrumb"},e.createElement("li",{className:"breadcrumb-item","aria-current":"page"},e.createElement("a",{href:""},"Chemotion file converter admin")),e.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},"Edit Profile: "+this.state.title)),"import"==this.state.status&&e.createElement("ol",{className:"breadcrumb"},e.createElement("li",{className:"breadcrumb-item","aria-current":"page"},e.createElement("a",{href:""},"Chemotion file converter admin")),e.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},"Import Profile"))),e.createElement("div",null,"list"==this.state.status&&e.createElement("div",{className:"pull-right"},e.createElement("button",{type:"button",onClick:this.showImportView,className:"btn btn-success mr-10"},"Import profile"),e.createElement("button",{type:"button",onClick:this.showCreateView,className:"btn btn-primary"},"Create new profile")),e.createElement("h2",null,"list"==this.state.status&&"Profiles List",["upload","create"].includes(this.state.status)&&"Create Profile","update"==this.state.status&&"Edit Profile","import"==this.state.status&&"Import Profile"))),e.createElement("main",null,this.dispatchView()),e.createElement(Te,{show:this.state.createdModal},e.createElement(Te.Header,null,e.createElement(Te.Title,null,"Profile successfully created!")),e.createElement(Te.Footer,null,e.createElement(Ge,{bsStyle:"primary",onClick:this.hideCreatedModal},"Great!"))),e.createElement(Te,{show:this.state.deleteModal},e.createElement(Te.Header,null,e.createElement(Te.Title,null,"Do you really want to delete this profile?")),e.createElement(Te.Footer,null,e.createElement(Ge,{bsStyle:"default",onClick:this.hideDeleteModal},"Cancel"),e.createElement(Ge,{bsStyle:"danger",onClick:this.deleteProfile},"Delete profile"))))}}])}(e.Component);const ll=al;n.render(e.createElement(ll,null),document.getElementById("root"))})(),this["admin/index"]={}})();